diff --git a/example/src/components/Embedded/Embedded.styles.ts b/example/src/components/Embedded/Embedded.styles.ts index a1fb26b7e..7ffddac29 100644 --- a/example/src/components/Embedded/Embedded.styles.ts +++ b/example/src/components/Embedded/Embedded.styles.ts @@ -19,14 +19,31 @@ import { const styles = StyleSheet.create({ button, buttonText, - container, + compactUtilityButton: { + ...button, + paddingVertical: 8, + }, + compactUtilityButtonText: { + ...buttonText, + fontSize: 12, + lineHeight: 17, + }, + container:{ + ...container, + marginHorizontal: 0, + marginTop: 0, + paddingHorizontal: 0, + }, + embeddedHr: { + ...hr, + marginVertical: 12, + }, embeddedSection: { display: 'flex', flexDirection: 'column', gap: 16, paddingHorizontal: 16, }, - hr, inputContainer: { marginVertical: 10, }, @@ -39,6 +56,30 @@ const styles = StyleSheet.create({ modalButtons, modalContent, modalOverlay, + placementIdsInput: { + ...input, + flex: 1, + marginBottom: 0, + minWidth: 72, + }, + placementIdsLabel: { + flexShrink: 1, + fontSize: 14, + }, + placementIdsRow: { + alignItems: 'center', + flexDirection: 'row', + gap: 8, + marginBottom: 8, + }, + sessionButtonHalf: { + flex: 1, + }, + sessionButtonsRow: { + flexDirection: 'row', + gap: 8, + marginBottom: 8, + }, subtitle: { ...subtitle, textAlign: 'center' }, text: { textAlign: 'center' }, textInput: input, @@ -52,27 +93,37 @@ const styles = StyleSheet.create({ borderRadius: 8, borderWidth: 2, flex: 1, - paddingHorizontal: 12, - paddingVertical: 8, + paddingHorizontal: 8, + paddingVertical: 7, }, viewTypeButtonSelected: { backgroundColor: colors.brandCyan, }, viewTypeButtonText: { color: colors.brandCyan, - fontSize: 14, + fontSize: 12, fontWeight: '600', }, viewTypeButtonTextSelected: { color: colors.backgroundPrimary, }, viewTypeButtons: { + flex: 1, flexDirection: 'row', gap: 8, justifyContent: 'space-around', - marginTop: 8, + minWidth: 0, + }, + viewTypeLabel: { + flexShrink: 0, + fontSize: 13, + fontWeight: '600', }, viewTypeSelector: { + alignItems: 'center', + flexDirection: 'row', + flexWrap: 'wrap', + gap: 8, marginVertical: 12, }, warningContainer: { diff --git a/example/src/components/Embedded/Embedded.tsx b/example/src/components/Embedded/Embedded.tsx index 189293d37..fbcff222d 100644 --- a/example/src/components/Embedded/Embedded.tsx +++ b/example/src/components/Embedded/Embedded.tsx @@ -88,7 +88,6 @@ export const Embedded = () => { return ( - Embedded {!Iterable.embeddedManager.isEnabled && ( @@ -97,12 +96,9 @@ export const Embedded = () => { )} - - Enter placement IDs to fetch embedded messages - - Select View Type: + View: { - - Sync messages - - - Start session - - - End session - - - Set view config + + + Sync + + + Start session + + + End session + + + + Set view config - Placement IDs (comma-separated): - + + + Placement IDs{'\n'}(comma-separated): + + + Get messages for placement ids @@ -227,7 +238,7 @@ export const Embedded = () => { - + {embeddedMessages.map((message) => ( diff --git a/src/embedded/components/IterableEmbeddedBanner/IterableEmbeddedBanner.styles.ts b/src/embedded/components/IterableEmbeddedBanner/IterableEmbeddedBanner.styles.ts index 12c6a1d50..45a2099ea 100644 --- a/src/embedded/components/IterableEmbeddedBanner/IterableEmbeddedBanner.styles.ts +++ b/src/embedded/components/IterableEmbeddedBanner/IterableEmbeddedBanner.styles.ts @@ -34,7 +34,7 @@ export const styles = StyleSheet.create({ }, buttonText: { fontSize: 14, - fontWeight: '400', + fontWeight: '700', lineHeight: 20, paddingHorizontal: 12, paddingVertical: 8, diff --git a/src/embedded/components/IterableEmbeddedNotification/IterableEmbeddedNotification.styles.ts b/src/embedded/components/IterableEmbeddedNotification/IterableEmbeddedNotification.styles.ts index 01df507a5..24c2ca7ed 100644 --- a/src/embedded/components/IterableEmbeddedNotification/IterableEmbeddedNotification.styles.ts +++ b/src/embedded/components/IterableEmbeddedNotification/IterableEmbeddedNotification.styles.ts @@ -18,8 +18,14 @@ export const styles = StyleSheet.create({ width: '100%', }, button: { + alignItems: 'center', + alignSelf: 'flex-start', borderRadius: 32, + flexShrink: 1, gap: 8, + justifyContent: 'center', + maxWidth: '100%', + minWidth: 0, paddingHorizontal: 12, paddingVertical: 8, }, @@ -28,13 +34,17 @@ export const styles = StyleSheet.create({ alignSelf: 'stretch', display: 'flex', flexDirection: 'row', + flexWrap: 'wrap', gap: 12, width: '100%', }, buttonText: { + flexShrink: 1, fontSize: 14, fontWeight: '700', lineHeight: 20, + maxWidth: '100%', + textAlign: 'center', }, container: { alignItems: 'flex-start', diff --git a/src/embedded/components/IterableEmbeddedNotification/IterableEmbeddedNotification.tsx b/src/embedded/components/IterableEmbeddedNotification/IterableEmbeddedNotification.tsx index 6d86aecbc..f713b6d60 100644 --- a/src/embedded/components/IterableEmbeddedNotification/IterableEmbeddedNotification.tsx +++ b/src/embedded/components/IterableEmbeddedNotification/IterableEmbeddedNotification.tsx @@ -98,6 +98,8 @@ export const IterableEmbeddedNotification = ({ key={button.id} >