@applicaster/zapp-react-native-ui-components 16.0.0-alpha.1453660071 → 16.0.0-alpha.1454930193

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 (124) hide show
  1. package/Components/AudioPlayer/tv/__tests__/audioPlayer.test.js +19 -0
  2. package/Components/AudioPlayer/tv/__tests__/index.test.tsx +120 -0
  3. package/Components/AudioPlayer/tv/index.tsx +5 -1
  4. package/Components/Cell/Cell.tsx +3 -6
  5. package/Components/Cell/TvOSCellComponent.tsx +0 -1
  6. package/Components/GeneralContentScreen/GeneralContentScreenHookAdapter.tsx +15 -0
  7. package/Components/GeneralContentScreen/hookAdapter/__tests__/skipExpression.test.ts +294 -0
  8. package/Components/GeneralContentScreen/hookAdapter/__tests__/validationHelper.test.ts +64 -0
  9. package/Components/GeneralContentScreen/hookAdapter/skipExpression.ts +252 -0
  10. package/Components/GeneralContentScreen/hookAdapter/validationHelper.ts +18 -0
  11. package/Components/LinkHandler/LinkHandler.tsx +2 -7
  12. package/Components/MasterCell/DefaultComponents/ActionButton.tsx +5 -1
  13. package/Components/MasterCell/DefaultComponents/ActionButtonsCore/__tests__/placement.test.ts +47 -21
  14. package/Components/MasterCell/DefaultComponents/ActionButtonsCore/components/ActionButtonController.tsx +19 -4
  15. package/Components/MasterCell/DefaultComponents/ActionButtonsCore/components/__tests__/ActionButtonController.test.tsx +43 -1
  16. package/Components/MasterCell/DefaultComponents/ActionButtonsCore/placement.ts +34 -6
  17. package/Components/MasterCell/DefaultComponents/Button.tsx +1 -0
  18. package/Components/MasterCell/DefaultComponents/Image/hoc/utils/__tests__/withDimensions.test.ts +420 -125
  19. package/Components/MasterCell/DefaultComponents/Image/hoc/utils/index.ts +114 -19
  20. package/Components/MasterCell/DefaultComponents/Image/hoc/withDimensions.tsx +19 -8
  21. package/Components/MasterCell/DefaultComponents/ImageContainer/index.tsx +5 -3
  22. package/Components/MasterCell/DefaultComponents/LiveImage/executePreloadHooks.ts +2 -4
  23. package/Components/MasterCell/DefaultComponents/LiveImage/index.tsx +2 -3
  24. package/Components/MasterCell/DefaultComponents/PressableView.tsx +29 -9
  25. package/Components/MasterCell/DefaultComponents/Text/hooks/useText.ts +4 -0
  26. package/Components/MasterCell/DefaultComponents/Toggle.tsx +36 -14
  27. package/Components/MasterCell/DefaultComponents/__tests__/Toggle.test.tsx +167 -0
  28. package/Components/MasterCell/DefaultComponents/mobile/MobileActionButtons/ActionButton.tsx +154 -100
  29. package/Components/MasterCell/DefaultComponents/mobile/MobileActionButtons/AssetComponent.tsx +15 -4
  30. package/Components/MasterCell/DefaultComponents/mobile/MobileActionButtons/Button.ts +56 -22
  31. package/Components/MasterCell/DefaultComponents/mobile/MobileActionButtons/Spacer.ts +6 -4
  32. package/Components/MasterCell/DefaultComponents/mobile/MobileActionButtons/TextLabelsContainer.ts +3 -1
  33. package/Components/MasterCell/DefaultComponents/mobile/MobileActionButtons/__tests__/PressableView.test.tsx +32 -21
  34. package/Components/MasterCell/DefaultComponents/mobile/MobileActionButtons/__tests__/index.test.ts +15 -4
  35. package/Components/MasterCell/DefaultComponents/mobile/MobileActionButtons/index.ts +23 -16
  36. package/Components/MasterCell/DefaultComponents/mobile/MobileActionButtons/utils/__tests__/insertButtons.test.ts +8 -3
  37. package/Components/MasterCell/DefaultComponents/mobile/MobileActionButtons/utils/index.ts +2 -2
  38. package/Components/MasterCell/DefaultComponents/tv/TvActionButtons/utils/__tests__/insertButtonsBetweenLabels.test.ts +45 -13
  39. package/Components/MasterCell/DefaultComponents/tv/TvActionButtons/utils/index.ts +2 -2
  40. package/Components/MasterCell/SharedUI/CollapsibleTextContainer/__tests__/factory.test.ts +32 -0
  41. package/Components/MasterCell/SharedUI/CollapsibleTextContainer/index.ts +1 -2
  42. package/Components/MasterCell/contexts/PressedStateContext.ts +3 -0
  43. package/Components/MasterCell/hooks/index.ts +2 -0
  44. package/Components/MasterCell/hooks/usePressedState.ts +4 -0
  45. package/Components/ModalComponent/ActionsBottomSheet/ActionButton.tsx +56 -0
  46. package/Components/ModalComponent/ActionsBottomSheet/__tests__/openActionsBottomSheet.test.ts +38 -0
  47. package/Components/ModalComponent/ActionsBottomSheet/boundActionButton.tsx +24 -0
  48. package/Components/ModalComponent/ActionsBottomSheet/index.ts +9 -0
  49. package/Components/ModalComponent/ActionsBottomSheet/openActionsBottomSheet.ts +61 -0
  50. package/Components/ModalComponent/AudioPlayer/Components/Button.tsx +392 -0
  51. package/Components/ModalComponent/AudioPlayer/Components/Header.tsx +772 -0
  52. package/Components/ModalComponent/AudioPlayer/Components/Input.tsx +728 -0
  53. package/Components/ModalComponent/AudioPlayer/Components/Item.tsx +1007 -0
  54. package/Components/ModalComponent/AudioPlayer/Components/NowPlayingHeaderSection.tsx +205 -0
  55. package/Components/ModalComponent/AudioPlayer/Components/__tests__/Item.test.tsx +113 -0
  56. package/Components/ModalComponent/AudioPlayer/Components/__tests__/NowPlayingHeaderSection.test.tsx +36 -0
  57. package/Components/ModalComponent/AudioPlayer/Components/index.ts +9 -0
  58. package/Components/ModalComponent/AudioPlayer/utils/__tests__/mergeStyles.test.ts +356 -0
  59. package/Components/ModalComponent/AudioPlayer/utils/mergeStyles.ts +521 -0
  60. package/Components/ModalComponent/BottomSheetDragArea.tsx +33 -0
  61. package/Components/ModalComponent/BottomSheetModalContent.tsx +505 -50
  62. package/Components/ModalComponent/Button/index.tsx +5 -3
  63. package/Components/ModalComponent/Header/CloseButton.tsx +12 -0
  64. package/Components/ModalComponent/Header/__tests__/CloseButton.test.tsx +72 -0
  65. package/Components/ModalComponent/Header/index.tsx +20 -7
  66. package/Components/ModalComponent/Header/utils.ts +1 -1
  67. package/Components/ModalComponent/ModalBlocksStyleContext.tsx +10 -0
  68. package/Components/ModalComponent/SortableList.tsx +156 -0
  69. package/Components/ModalComponent/SortableList.web.tsx +34 -0
  70. package/Components/ModalComponent/TextInputContent.tsx +135 -0
  71. package/Components/ModalComponent/__tests__/BottomSheetDragArea.test.tsx +74 -0
  72. package/Components/ModalComponent/__tests__/BottomSheetModalContent.test.tsx +343 -0
  73. package/Components/ModalComponent/__tests__/SortableList.web.test.tsx +16 -0
  74. package/Components/ModalComponent/__tests__/TextInputContent.test.tsx +169 -0
  75. package/Components/ModalComponent/__tests__/showTextInput.test.ts +95 -0
  76. package/Components/ModalComponent/index.tsx +18 -9
  77. package/Components/ModalComponent/presets/__tests__/getCell.test.ts +90 -0
  78. package/Components/ModalComponent/presets/dynamicCollectionCell.tsx +78 -0
  79. package/Components/ModalComponent/presets/index.ts +27 -0
  80. package/Components/ModalComponent/presets/selectableCell.tsx +28 -0
  81. package/Components/ModalComponent/presets/standardCell.tsx +41 -0
  82. package/Components/ModalComponent/presets/types.ts +35 -0
  83. package/Components/ModalComponent/showTextInput.ts +52 -0
  84. package/Components/ModalComponent/utils.ts +82 -21
  85. package/Components/OfflineHandler/__tests__/__snapshots__/index.test.tsx.snap +4 -85
  86. package/Components/OfflineHandler/__tests__/index.test.tsx +78 -18
  87. package/Components/OfflineHandler/hooks.ts +111 -0
  88. package/Components/OfflineHandler/index.tsx +51 -73
  89. package/Components/OfflineHandler/utils/index.ts +1 -13
  90. package/Components/PlayerContainer/PlayerContainer.tsx +11 -7
  91. package/Components/PlayerContainer/ProgramInfo/index.tsx +3 -4
  92. package/Components/PlayerContainer/__tests__/PlayerContainer.test.tsx +66 -13
  93. package/Components/PreloaderWrapper/index.tsx +1 -1
  94. package/Components/River/ComponentsMap/ComponentsMap.tsx +85 -59
  95. package/Components/River/River.tsx +4 -0
  96. package/Components/River/__tests__/__snapshots__/componentsMap.test.js.snap +140 -75
  97. package/Components/River/__tests__/componentsMap.test.js +8 -3
  98. package/Components/River/__tests__/resultCallback.test.tsx +47 -0
  99. package/Components/Screen/__tests__/Screen.test.tsx +24 -0
  100. package/Components/Screen/__tests__/__snapshots__/Screen.test.tsx.snap +2 -0
  101. package/Components/Screen/index.tsx +5 -0
  102. package/Components/Screen/navigationHandler.ts +8 -8
  103. package/Components/ScreenFeedLoader/ScreenFeedLoader.tsx +5 -3
  104. package/Components/ScreenResolverFeedProvider/ScreenResolverFeedProvider.tsx +1 -1
  105. package/Components/ScreenRevealManager/ScreenRevealManager.ts +18 -2
  106. package/Components/ScreenRevealManager/__tests__/ScreenRevealManager.test.ts +36 -0
  107. package/Components/ScreenRevealManager/__tests__/withScreenRevealManager.test.tsx +56 -0
  108. package/Components/ScreenRevealManager/withScreenRevealManager.tsx +21 -4
  109. package/Components/TopCutoffOverlay/index.tsx +2 -2
  110. package/Components/Transitioner/Transitioner.tsx +30 -20
  111. package/Components/Transitioner/__tests__/transitioner.test.js +83 -2
  112. package/Components/VideoLive/LiveImageManager.ts +9 -3
  113. package/Components/VideoLive/__tests__/LiveImageManager.test.ts +59 -0
  114. package/Contexts/ModalNavigationContext/__tests__/index.test.tsx +15 -0
  115. package/Contexts/ModalNavigationContext/index.tsx +2 -2
  116. package/Hooks/useEntryActionsExpander.ts +63 -0
  117. package/assets/empty-Info.png +0 -0
  118. package/package.json +6 -5
  119. package/Components/OfflineHandler/NotificationView/NotificationView.lg.tsx +0 -112
  120. package/Components/OfflineHandler/NotificationView/NotificationView.samsung.tsx +0 -107
  121. package/Components/OfflineHandler/NotificationView/NotificationView.tsx +0 -153
  122. package/Components/OfflineHandler/NotificationView/__tests__/index.test.tsx +0 -66
  123. package/Components/OfflineHandler/NotificationView/utils.ts +0 -34
  124. /package/Decorators/ZappPipesDataConnector/__tests__/{Hero.js → Hero.tsx} +0 -0
@@ -0,0 +1,392 @@
1
+ /**
2
+ * Modal Building Block — Button
3
+ *
4
+ * Single-file Expo Snack demo for the Button building block spec.
5
+ * Two variants (with / without leading icon) are driven only by configuration + data.
6
+ *
7
+ * Green (configurable): background, title, icons (size + leading icon enable/action type)
8
+ * Black (hardcoded): action type → icon asset mapping
9
+ */
10
+
11
+ import React from "react";
12
+ import {
13
+ Image,
14
+ Platform,
15
+ Pressable,
16
+ StyleSheet,
17
+ Text,
18
+ View,
19
+ } from "react-native";
20
+ import { createLogger } from "@applicaster/zapp-react-native-utils/logger";
21
+
22
+ const logger = createLogger({ category: "ModalComponent:AudioPlayerButton" });
23
+
24
+ const styles = StyleSheet.create({
25
+ container: {
26
+ alignSelf: "stretch",
27
+ alignItems: "center",
28
+ justifyContent: "center",
29
+ },
30
+ contentRow: {
31
+ flexDirection: "row",
32
+ alignItems: "center",
33
+ justifyContent: "center",
34
+ },
35
+ title: {
36
+ textAlign: "center",
37
+ },
38
+ });
39
+
40
+ // ---------------------------------------------------------------------------
41
+ // Configuration (green / editable fields from spec)
42
+ // ---------------------------------------------------------------------------
43
+
44
+ export type ButtonActionType =
45
+ | "addToQueue"
46
+ | "addToPlaylist"
47
+ | "goToPlaylist"
48
+ | "confirm"
49
+ | "cancel";
50
+
51
+ export type TextTransform =
52
+ | "default"
53
+ | "lowercase"
54
+ | "uppercase"
55
+ | "capitalize";
56
+
57
+ export type BackgroundConfiguration = {
58
+ defaultColor: string;
59
+ focusedColor: string;
60
+ inactiveColor: string;
61
+ cornerRadius: number;
62
+ paddingTop: number;
63
+ paddingRight: number;
64
+ paddingBottom: number;
65
+ paddingLeft: number;
66
+ horizontalGutter: number;
67
+ };
68
+
69
+ export type TitleConfiguration = {
70
+ fontColor: string;
71
+ focusedFontColor: string;
72
+ inactiveFontColor: string;
73
+ iosFontFamily: string;
74
+ androidFontFamily: string;
75
+ fontSize: number;
76
+ lineHeight: number;
77
+ iosLetterSpacing: number;
78
+ androidLetterSpacing: number;
79
+ textTransform: TextTransform;
80
+ };
81
+
82
+ export type LeadingIconConfiguration = {
83
+ /** Enable: On / Off */
84
+ enabled: boolean;
85
+ /** Decides which icon will be displayed when enabled */
86
+ actionType?: ButtonActionType;
87
+ /** Optional Studio / modal-blocks asset URI (overrides actionType mapping) */
88
+ asset?: string;
89
+ };
90
+
91
+ export type IconsConfiguration = {
92
+ width: number;
93
+ height: number;
94
+ leadingIcon: LeadingIconConfiguration;
95
+ };
96
+
97
+ export type ButtonConfiguration = {
98
+ background: BackgroundConfiguration;
99
+ title: TitleConfiguration;
100
+ icons: IconsConfiguration;
101
+ };
102
+
103
+ export const DEFAULT_BACKGROUND_CONFIGURATION: BackgroundConfiguration = {
104
+ defaultColor: "#FFFFFF",
105
+ focusedColor: "#E0E0E0",
106
+ inactiveColor: "#999999",
107
+ cornerRadius: 12,
108
+ paddingTop: 12,
109
+ paddingRight: 12,
110
+ paddingBottom: 12,
111
+ paddingLeft: 12,
112
+ horizontalGutter: 6,
113
+ };
114
+
115
+ export const DEFAULT_TITLE_CONFIGURATION: TitleConfiguration = {
116
+ fontColor: "#000000",
117
+ focusedFontColor: "#000000",
118
+ inactiveFontColor: "#000000",
119
+ iosFontFamily: "SFProText-Bold",
120
+ androidFontFamily: "Roboto-Bold",
121
+ fontSize: 15,
122
+ lineHeight: 24,
123
+ iosLetterSpacing: -0.2,
124
+ androidLetterSpacing: 0,
125
+ textTransform: "default",
126
+ };
127
+
128
+ export const DEFAULT_ICONS_CONFIGURATION: IconsConfiguration = {
129
+ width: 24,
130
+ height: 24,
131
+ leadingIcon: {
132
+ enabled: false,
133
+ },
134
+ };
135
+
136
+ // ---------------------------------------------------------------------------
137
+ // Variant configurations
138
+ // ---------------------------------------------------------------------------
139
+
140
+ export const VARIANT_TEXT_ONLY: ButtonConfiguration = {
141
+ background: DEFAULT_BACKGROUND_CONFIGURATION,
142
+ title: DEFAULT_TITLE_CONFIGURATION,
143
+ icons: DEFAULT_ICONS_CONFIGURATION,
144
+ };
145
+
146
+ export const VARIANT_WITH_ICON: ButtonConfiguration = {
147
+ background: DEFAULT_BACKGROUND_CONFIGURATION,
148
+ title: DEFAULT_TITLE_CONFIGURATION,
149
+ icons: {
150
+ ...DEFAULT_ICONS_CONFIGURATION,
151
+ leadingIcon: {
152
+ enabled: true,
153
+ actionType: "addToPlaylist",
154
+ },
155
+ },
156
+ };
157
+
158
+ // ---------------------------------------------------------------------------
159
+ // Data (runtime / localization — not styling config)
160
+ // ---------------------------------------------------------------------------
161
+
162
+ export type ButtonData = {
163
+ title: string;
164
+ disabled?: boolean;
165
+ };
166
+
167
+ export type AudioPlayerButtonProps = {
168
+ configuration?: ButtonConfiguration;
169
+ data?: ButtonData;
170
+ disabled?: boolean;
171
+ focused?: boolean;
172
+ onPress?: () => void;
173
+ };
174
+
175
+ const PLACEHOLDER_RED_BOX =
176
+ "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAJ0lEQVR4nO3NMQEAAAjDsIF/z2ACvlRAU5NMHuvPOQAAAAAAAMBdC/07Ai5sNw+CAAAAAElFTkSuQmCC";
177
+
178
+ function getTextTransformStyle(
179
+ textTransform: TextTransform
180
+ ): "none" | "lowercase" | "uppercase" | "capitalize" {
181
+ return textTransform === "default" ? "none" : textTransform;
182
+ }
183
+
184
+ function shouldShowLeadingIcon(leadingIcon: LeadingIconConfiguration) {
185
+ return (
186
+ leadingIcon.enabled && (!!leadingIcon.actionType || !!leadingIcon.asset)
187
+ );
188
+ }
189
+
190
+ // ---------------------------------------------------------------------------
191
+ // Inner components (hardcoded styling lives here)
192
+ // ---------------------------------------------------------------------------
193
+
194
+ type ButtonContainerProps = {
195
+ focused: boolean;
196
+ disabled: boolean;
197
+ configuration: BackgroundConfiguration;
198
+ children: React.ReactNode;
199
+ onPress?: () => void;
200
+ };
201
+
202
+ function ButtonContainer({
203
+ focused,
204
+ disabled,
205
+ configuration,
206
+ children,
207
+ onPress,
208
+ }: ButtonContainerProps) {
209
+ const defaultBgColor = disabled
210
+ ? configuration.inactiveColor
211
+ : focused
212
+ ? configuration.focusedColor
213
+ : configuration.defaultColor;
214
+
215
+ return (
216
+ <Pressable
217
+ onPress={disabled ? undefined : onPress}
218
+ style={({ pressed }) => [
219
+ styles.container,
220
+ {
221
+ backgroundColor:
222
+ pressed && !disabled ? configuration.focusedColor : defaultBgColor,
223
+ borderRadius: configuration.cornerRadius,
224
+ paddingTop: configuration.paddingTop,
225
+ paddingRight: configuration.paddingRight,
226
+ paddingBottom: configuration.paddingBottom,
227
+ paddingLeft: configuration.paddingLeft,
228
+ },
229
+ ]}
230
+ >
231
+ {children}
232
+ </Pressable>
233
+ );
234
+ }
235
+
236
+ type ButtonTitleProps = {
237
+ title: string;
238
+ focused: boolean;
239
+ disabled: boolean;
240
+ configuration: TitleConfiguration;
241
+ };
242
+
243
+ function ButtonTitle({
244
+ title,
245
+ focused,
246
+ disabled,
247
+ configuration,
248
+ }: ButtonTitleProps) {
249
+ const color = disabled
250
+ ? configuration.inactiveFontColor
251
+ : focused
252
+ ? configuration.focusedFontColor
253
+ : configuration.fontColor;
254
+
255
+ const letterSpacing =
256
+ Platform.OS === "ios"
257
+ ? configuration.iosLetterSpacing
258
+ : configuration.androidLetterSpacing;
259
+
260
+ return (
261
+ <Text
262
+ style={[
263
+ styles.title,
264
+ {
265
+ color,
266
+ fontSize: configuration.fontSize,
267
+ lineHeight: configuration.lineHeight,
268
+ letterSpacing,
269
+ fontFamily: Platform.select({
270
+ ios: configuration.iosFontFamily,
271
+ android: configuration.androidFontFamily,
272
+ default: configuration.androidFontFamily,
273
+ }),
274
+ textTransform: getTextTransformStyle(configuration.textTransform),
275
+ },
276
+ ]}
277
+ numberOfLines={1}
278
+ >
279
+ {title}
280
+ </Text>
281
+ );
282
+ }
283
+
284
+ type ButtonLeadingIconProps = {
285
+ actionType?: ButtonActionType;
286
+ configuration: IconsConfiguration;
287
+ };
288
+
289
+ function ButtonLeadingIcon({ configuration }: ButtonLeadingIconProps) {
290
+ const asset = configuration.leadingIcon.asset || PLACEHOLDER_RED_BOX;
291
+
292
+ React.useEffect(() => {
293
+ if (!configuration.leadingIcon.asset) {
294
+ logger.log_warning(
295
+ "AudioPlayerButton has leadingIcon enabled but no asset was provided. Falling back to placeholder red box. Ensure the relevant plugin (e.g. playlist-experience) provides leadingIcon.asset in styleOverrides.",
296
+ {
297
+ leadingIcon: configuration.leadingIcon,
298
+ }
299
+ );
300
+ }
301
+ }, [configuration.leadingIcon.asset]);
302
+
303
+ if (!asset) {
304
+ return null;
305
+ }
306
+
307
+ return (
308
+ <Image
309
+ source={{ uri: asset }}
310
+ style={{
311
+ width: configuration.width,
312
+ height: configuration.height,
313
+ }}
314
+ resizeMode="contain"
315
+ />
316
+ );
317
+ }
318
+
319
+ // ---------------------------------------------------------------------------
320
+ // AudioPlayerButton — single building block driven by configuration + data
321
+ // ---------------------------------------------------------------------------
322
+
323
+ import { useModalBlocksStyle } from "../../ModalBlocksStyleContext";
324
+ import { mergeButtonConfiguration } from "../utils/mergeStyles";
325
+
326
+ export function AudioPlayerButton({
327
+ configuration = VARIANT_WITH_ICON,
328
+ data = { title: undefined },
329
+ disabled,
330
+ focused = false,
331
+ onPress,
332
+ }: AudioPlayerButtonProps) {
333
+ const modalBlocksStyle = useModalBlocksStyle();
334
+
335
+ const buttonBlock = modalBlocksStyle?.button;
336
+ const actionBlock = modalBlocksStyle?.action;
337
+
338
+ const effectiveConfig = React.useMemo(() => {
339
+ return mergeButtonConfiguration(configuration, buttonBlock, actionBlock);
340
+ }, [configuration, buttonBlock, actionBlock]);
341
+
342
+ const {
343
+ background: effectiveBgConfig,
344
+ title: effectiveTitleConfig,
345
+ icons: iconsConfiguration,
346
+ } = effectiveConfig;
347
+
348
+ const title = data?.title || buttonBlock?.title.default;
349
+ const isDisabled = disabled ?? data.disabled ?? false;
350
+
351
+ React.useEffect(() => {
352
+ if (!title) {
353
+ logger.log_warning(
354
+ "Create New Playlist button rendering with empty title. Ensure data.title is set for AudioPlayerButton or styleOverrides providing button title.",
355
+ {
356
+ leadingIcon: iconsConfiguration.leadingIcon,
357
+ modalBlocksStyle: modalBlocksStyle,
358
+ }
359
+ );
360
+ }
361
+ }, [title]);
362
+
363
+ const { leadingIcon } = iconsConfiguration;
364
+ const showIcon = shouldShowLeadingIcon(leadingIcon);
365
+
366
+ return (
367
+ <ButtonContainer
368
+ focused={focused}
369
+ disabled={isDisabled}
370
+ configuration={effectiveBgConfig}
371
+ onPress={onPress}
372
+ >
373
+ <View style={styles.contentRow}>
374
+ {showIcon ? (
375
+ <>
376
+ <ButtonLeadingIcon
377
+ actionType={leadingIcon.actionType}
378
+ configuration={iconsConfiguration}
379
+ />
380
+ <View style={{ width: effectiveBgConfig.horizontalGutter }} />
381
+ </>
382
+ ) : null}
383
+ <ButtonTitle
384
+ title={title}
385
+ focused={focused}
386
+ disabled={isDisabled}
387
+ configuration={effectiveTitleConfig}
388
+ />
389
+ </View>
390
+ </ButtonContainer>
391
+ );
392
+ }