@jobber/components-native 0.17.0 → 0.19.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.
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { FlexProps } from "./types";
3
+ export declare function Flex({ template, align, gap, children, }: PropsWithChildren<FlexProps>): JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ViewStyle } from "react-native";
2
+ import { ColumnKeys } from "./types";
3
+ export declare const styles: {
4
+ row: {
5
+ flexDirection: "row";
6
+ };
7
+ };
8
+ export declare const columnStyles: Record<ColumnKeys, ViewStyle>;
9
+ export declare const gapStyles: Record<"none" | "small" | "base" | "smallest" | "smaller" | "large", ViewStyle>;
@@ -0,0 +1 @@
1
+ export * from "./Flex";
@@ -0,0 +1,29 @@
1
+ import { ViewStyle } from "react-native";
2
+ export type ColumnKeys = "shrink" | "grow";
3
+ export interface FlexProps {
4
+ /**
5
+ * Determine how the children gets laid out on the flex grid. If there are more
6
+ * Children than elements in the template, it will render multiple rows.
7
+ *
8
+ * **Supported keys**
9
+ * - `"grow"` - Grows to the space available. If all children are set to
10
+ * grow, then they'll have equal width.
11
+ * - `"shrink"` - Shrinks to the smallest size possible. Normally the size of
12
+ * the child.
13
+ *
14
+ * By default, this will set every children to grow in equal widths.
15
+ */
16
+ readonly template?: ColumnKeys[];
17
+ /**
18
+ * It works the same way as `alignItems` style with flex.
19
+ */
20
+ readonly align?: ViewStyle["alignItems"];
21
+ /**
22
+ * The spacing between the children.
23
+ */
24
+ readonly gap?: Spacing;
25
+ }
26
+ export declare const spacing: readonly ["none", "smallest", "smaller", "small", "base", "large"];
27
+ type ValuesOfSpacing<T extends typeof spacing> = T[number];
28
+ export type Spacing = ValuesOfSpacing<typeof spacing>;
29
+ export {};
@@ -8,6 +8,7 @@ export * from "./Chip";
8
8
  export * from "./Content";
9
9
  export * from "./Divider";
10
10
  export * from "./ErrorMessageWrapper";
11
+ export * from "./Flex";
11
12
  export * from "./Heading";
12
13
  export * from "./Icon";
13
14
  export * from "./IconButton";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "dist/src/index.js",
@@ -21,7 +21,8 @@
21
21
  "build:clean": "rm -rf ./dist"
22
22
  },
23
23
  "dependencies": {
24
- "@jobber/design": "^0.40.0",
24
+ "@jobber/design": "^0.41.0",
25
+ "lodash.chunk": "^4.2.0",
25
26
  "react-hook-form": "^7.30.0",
26
27
  "react-intl": "^6.4.2",
27
28
  "react-native-gesture-handler": "^2.5.0",
@@ -35,6 +36,7 @@
35
36
  "@testing-library/jest-native": "^5.4.2",
36
37
  "@testing-library/react-hooks": "^7.0.2",
37
38
  "@testing-library/react-native": "^12.0.1",
39
+ "@types/lodash.chunk": "^4.2.7",
38
40
  "@types/react": "^18.0.28",
39
41
  "@types/react-native": "^0.71.6",
40
42
  "@types/react-native-uuid": "^1.4.0",
@@ -47,5 +49,5 @@
47
49
  "react": "^18",
48
50
  "react-native": ">=0.69.2"
49
51
  },
50
- "gitHead": "4f8524610aba80691217778e1824149409c65524"
52
+ "gitHead": "e112ab079fb049e3ef003bb4c27ccae64cd75991"
51
53
  }
@@ -0,0 +1,29 @@
1
+ import { StyleSheet, ViewStyle } from "react-native";
2
+ import { ColumnKeys, Spacing, spacing } from "./types";
3
+ import { tokens } from "../utils/design";
4
+
5
+ export const styles = StyleSheet.create({
6
+ row: { flexDirection: "row" },
7
+ });
8
+
9
+ export const columnStyles: Record<ColumnKeys, ViewStyle> = StyleSheet.create({
10
+ shrink: {
11
+ flexGrow: 0,
12
+ flexShrink: 1,
13
+ },
14
+ grow: {
15
+ flexGrow: 1,
16
+ flexShrink: 0,
17
+ flexBasis: 0,
18
+ },
19
+ });
20
+
21
+ export const gapStyles = StyleSheet.create(
22
+ spacing.reduce((gapObj, space) => {
23
+ let paddingLeft = 0;
24
+ if (space !== "none") paddingLeft = tokens[`space-${space}`];
25
+
26
+ gapObj[space] = { paddingLeft };
27
+ return gapObj;
28
+ }, {} as Record<Spacing, ViewStyle>),
29
+ );
@@ -0,0 +1,129 @@
1
+ import React from "react";
2
+ import { render } from "@testing-library/react-native";
3
+ import { View, ViewStyle } from "react-native";
4
+ import { ReactTestInstance } from "react-test-renderer";
5
+ import { JobberStyle } from "@jobber/design/foundation";
6
+ import { Flex } from "./Flex";
7
+ import { FlexProps, Spacing } from "./types";
8
+ import { columnStyles } from "./Flex.styles";
9
+ import { Text } from "../Text";
10
+ import { Icon } from "../Icon";
11
+
12
+ function getContentComponent(parentView: ReactTestInstance) {
13
+ return (parentView?.children[0] as ReactTestInstance)
14
+ ?.children[0] as ReactTestInstance;
15
+ }
16
+
17
+ function getFlexCol(flexRow: ReactTestInstance) {
18
+ return flexRow.children as ReactTestInstance[];
19
+ }
20
+ function setUp(props?: FlexProps) {
21
+ const container = render(
22
+ <View accessibilityLabel="contentView">
23
+ <Flex align={props?.align} template={props?.template} gap={props?.gap}>
24
+ <Icon name={"email"} />
25
+ <Text>Hi onLookers!</Text>
26
+ <Text>You look Great Today!</Text>
27
+ <Text>Thanks for coming to my Ted Talk :D</Text>
28
+ </Flex>
29
+ </View>,
30
+ );
31
+ const contentView = getContentComponent(
32
+ container.getByLabelText("contentView"),
33
+ );
34
+ const flexRow = container.getAllByTestId("ATL-Flex-Row");
35
+ const flexCol = getFlexCol(flexRow[0]);
36
+ return { ...container, contentView, flexRow, flexCol };
37
+ }
38
+
39
+ describe("Gap", () => {
40
+ const gapTestCases: [Spacing, number][] = [
41
+ ["none", 0],
42
+ ["smallest", JobberStyle["space-smallest"]],
43
+ ["smaller", JobberStyle["space-smaller"]],
44
+ ["small", JobberStyle["space-small"]],
45
+ ["base", JobberStyle["space-base"]],
46
+ ["large", JobberStyle["space-large"]],
47
+ ];
48
+ it.each(gapTestCases)(
49
+ "Should have a gap of %s around the children components",
50
+ (a, expected) => {
51
+ const { contentView, flexCol } = setUp({
52
+ template: ["grow", "grow", "shrink"],
53
+ gap: a,
54
+ });
55
+ expect(flexCol[1].props.style).toContainEqual({
56
+ paddingLeft: expected,
57
+ });
58
+ expect(contentView.props.childSpacing).toEqual(a);
59
+ },
60
+ );
61
+ });
62
+
63
+ describe("Vertical alignment", () => {
64
+ it("should align children to center by default if align is not specified", () => {
65
+ const { flexRow } = setUp({
66
+ template: ["grow", "grow", "shrink"],
67
+ gap: "large",
68
+ });
69
+
70
+ expect(flexRow[0].props.style).toContainEqual({ alignItems: "center" });
71
+ });
72
+
73
+ const alignTestCases: [ViewStyle["alignItems"]][] = [
74
+ ["flex-start"],
75
+ ["flex-end"],
76
+ ["center"],
77
+ ["baseline"],
78
+ ["stretch"],
79
+ ];
80
+ it.each(alignTestCases)("should align children to %s", a => {
81
+ const { flexRow } = setUp({
82
+ template: ["grow", "grow", "shrink"],
83
+ align: a,
84
+ });
85
+
86
+ expect(flexRow[0].props.style).toContainEqual({
87
+ alignItems: a,
88
+ });
89
+ });
90
+ });
91
+
92
+ describe("Layout", () => {
93
+ it("should by default display a 1 row flex grid with equal spacing between each children", () => {
94
+ const { flexCol, flexRow } = setUp({});
95
+
96
+ expect(flexCol[0].props.style).toContainEqual(columnStyles.grow);
97
+ expect(flexCol[1].props.style).toContainEqual(columnStyles.grow);
98
+ expect(flexCol[2].props.style).toContainEqual(columnStyles.grow);
99
+ expect(flexCol[3].props.style).toContainEqual(columnStyles.grow);
100
+ expect(flexRow.length).toEqual(1);
101
+ });
102
+
103
+ it("should follow the template to decide whether to grow or shrink", () => {
104
+ const { flexCol } = setUp({
105
+ template: ["grow", "grow", "shrink"],
106
+ });
107
+
108
+ expect(flexCol[0].props.style).toContainEqual(columnStyles.grow);
109
+ expect(flexCol[1].props.style).toContainEqual(columnStyles.grow);
110
+ expect(flexCol[2].props.style).toContainEqual(columnStyles.shrink);
111
+ });
112
+
113
+ it("should create a flex grid with 2 rows", () => {
114
+ const { flexRow } = setUp({
115
+ template: ["grow", "grow", "shrink"],
116
+ });
117
+
118
+ expect(flexRow.length).toEqual(2);
119
+ });
120
+
121
+ it("should inject extra children on the last row of a multiRow flex grid if needed", () => {
122
+ const { flexRow } = setUp({
123
+ template: ["grow", "grow", "shrink"],
124
+ });
125
+ const flexCol2 = getFlexCol(flexRow[1]);
126
+ expect(flexRow.length > 1).toBeTruthy();
127
+ expect(flexCol2.length).toEqual(3);
128
+ });
129
+ });
@@ -0,0 +1,71 @@
1
+ import React, { Children, PropsWithChildren } from "react";
2
+ import { View } from "react-native";
3
+ import chunk from "lodash.chunk";
4
+ import { columnStyles, gapStyles, styles } from "./Flex.styles";
5
+ import { FlexProps } from "./types";
6
+ import { Content } from "../Content";
7
+
8
+ export function Flex({
9
+ template = [],
10
+ align = "center",
11
+ gap = "base",
12
+ children,
13
+ }: PropsWithChildren<FlexProps>): JSX.Element {
14
+ if (template.length === 1) {
15
+ console.warn("Please use <Content /> component for a stacked layout");
16
+ }
17
+
18
+ const childrenArray = Children.toArray(children);
19
+ const chunkedChildren = chunk(
20
+ childrenArray,
21
+ template.length || childrenArray.length,
22
+ );
23
+
24
+ return (
25
+ <Content spacing="none" childSpacing={gap}>
26
+ {chunkedChildren.map((childArray, rowIndex) => (
27
+ <Row key={rowIndex} template={template} align={align} gap={gap}>
28
+ {injectChild(childArray)}
29
+ </Row>
30
+ ))}
31
+ </Content>
32
+ );
33
+
34
+ function injectChild(value: ReturnType<typeof Children.toArray>) {
35
+ const hasMoreRows = chunkedChildren.length > 1;
36
+ const childrenCount = value.length;
37
+ const templateCount = template.length;
38
+
39
+ if (hasMoreRows && childrenCount < templateCount) {
40
+ const missingChildCount = templateCount - childrenCount;
41
+
42
+ for (let index = 0; index < missingChildCount; index++) {
43
+ value.push(<React.Fragment key={index} />);
44
+ }
45
+ }
46
+
47
+ return value;
48
+ }
49
+ }
50
+
51
+ function Row({
52
+ template = [],
53
+ align = "center",
54
+ gap = "base",
55
+ children,
56
+ }: PropsWithChildren<FlexProps>): JSX.Element {
57
+ return (
58
+ <View testID="ATL-Flex-Row" style={[styles.row, { alignItems: align }]}>
59
+ {Children.map(children, (child, index) => (
60
+ <View
61
+ style={[
62
+ columnStyles[template[index]] || columnStyles.grow,
63
+ index > 0 && gap && gapStyles[gap],
64
+ ]}
65
+ >
66
+ {child}
67
+ </View>
68
+ ))}
69
+ </View>
70
+ );
71
+ }
@@ -0,0 +1 @@
1
+ export * from "./Flex";
@@ -0,0 +1,41 @@
1
+ import { ViewStyle } from "react-native";
2
+
3
+ export type ColumnKeys = "shrink" | "grow";
4
+
5
+ export interface FlexProps {
6
+ /**
7
+ * Determine how the children gets laid out on the flex grid. If there are more
8
+ * Children than elements in the template, it will render multiple rows.
9
+ *
10
+ * **Supported keys**
11
+ * - `"grow"` - Grows to the space available. If all children are set to
12
+ * grow, then they'll have equal width.
13
+ * - `"shrink"` - Shrinks to the smallest size possible. Normally the size of
14
+ * the child.
15
+ *
16
+ * By default, this will set every children to grow in equal widths.
17
+ */
18
+ readonly template?: ColumnKeys[];
19
+
20
+ /**
21
+ * It works the same way as `alignItems` style with flex.
22
+ */
23
+ readonly align?: ViewStyle["alignItems"];
24
+
25
+ /**
26
+ * The spacing between the children.
27
+ */
28
+ readonly gap?: Spacing;
29
+ }
30
+
31
+ export const spacing = [
32
+ "none",
33
+ "smallest",
34
+ "smaller",
35
+ "small",
36
+ "base",
37
+ "large",
38
+ ] as const;
39
+
40
+ type ValuesOfSpacing<T extends typeof spacing> = T[number];
41
+ export type Spacing = ValuesOfSpacing<typeof spacing>;
@@ -8,7 +8,7 @@ exports[`when Heading called with Subtitle variation should match snapshot 1`] =
8
8
  collapsable={false}
9
9
  maxFontSizeMultiplier={1}
10
10
  selectable={true}
11
- selectionColor="rgb(160, 215, 42)"
11
+ selectionColor="rgb(132, 234, 0)"
12
12
  style={
13
13
  [
14
14
  {
@@ -41,7 +41,7 @@ exports[`when Heading called with an alignment should match snapshot 1`] = `
41
41
  allowFontScaling={true}
42
42
  collapsable={false}
43
43
  selectable={true}
44
- selectionColor="rgb(160, 215, 42)"
44
+ selectionColor="rgb(132, 234, 0)"
45
45
  style={
46
46
  [
47
47
  {
@@ -75,7 +75,7 @@ exports[`when Heading called with maxLines should match snapshot 1`] = `
75
75
  collapsable={false}
76
76
  numberOfLines={1}
77
77
  selectable={true}
78
- selectionColor="rgb(160, 215, 42)"
78
+ selectionColor="rgb(132, 234, 0)"
79
79
  style={
80
80
  [
81
81
  {
@@ -108,7 +108,7 @@ exports[`when Heading called with reverseTheme should match snapshot 1`] = `
108
108
  allowFontScaling={true}
109
109
  collapsable={false}
110
110
  selectable={true}
111
- selectionColor="rgb(160, 215, 42)"
111
+ selectionColor="rgb(132, 234, 0)"
112
112
  style={
113
113
  [
114
114
  {
@@ -142,7 +142,7 @@ exports[`when Heading called with sub-heading variation and text-color should ma
142
142
  collapsable={false}
143
143
  maxFontSizeMultiplier={1.375}
144
144
  selectable={true}
145
- selectionColor="rgb(160, 215, 42)"
145
+ selectionColor="rgb(132, 234, 0)"
146
146
  style={
147
147
  [
148
148
  {
@@ -176,7 +176,7 @@ exports[`when Heading called with sub-heading variation should match snapshot 1`
176
176
  collapsable={false}
177
177
  maxFontSizeMultiplier={1.375}
178
178
  selectable={true}
179
- selectionColor="rgb(160, 215, 42)"
179
+ selectionColor="rgb(132, 234, 0)"
180
180
  style={
181
181
  [
182
182
  {
@@ -209,7 +209,7 @@ exports[`when Heading called with text as the only prop should match snapshot 1`
209
209
  allowFontScaling={true}
210
210
  collapsable={false}
211
211
  selectable={true}
212
- selectionColor="rgb(160, 215, 42)"
212
+ selectionColor="rgb(132, 234, 0)"
213
213
  style={
214
214
  [
215
215
  {
@@ -243,7 +243,7 @@ exports[`when Heading called with title variation should match snapshot 1`] = `
243
243
  collapsable={false}
244
244
  maxFontSizeMultiplier={1.0625}
245
245
  selectable={true}
246
- selectionColor="rgb(160, 215, 42)"
246
+ selectionColor="rgb(132, 234, 0)"
247
247
  style={
248
248
  [
249
249
  {
@@ -27,7 +27,7 @@ exports[`StatusLabel alignment when alignment prop set to "end" should match sna
27
27
  collapsable={false}
28
28
  maxFontSizeMultiplier={1.1428571428571428}
29
29
  selectable={true}
30
- selectionColor="rgb(160, 215, 42)"
30
+ selectionColor="rgb(132, 234, 0)"
31
31
  style={
32
32
  [
33
33
  {
@@ -106,7 +106,7 @@ exports[`StatusLabel alignment when alignment prop set to default ("start") shou
106
106
  collapsable={false}
107
107
  maxFontSizeMultiplier={1.1428571428571428}
108
108
  selectable={true}
109
- selectionColor="rgb(160, 215, 42)"
109
+ selectionColor="rgb(132, 234, 0)"
110
110
  style={
111
111
  [
112
112
  {
@@ -185,7 +185,7 @@ exports[`StatusLabel status when status prop set to "critical" should match snap
185
185
  collapsable={false}
186
186
  maxFontSizeMultiplier={1.1428571428571428}
187
187
  selectable={true}
188
- selectionColor="rgb(160, 215, 42)"
188
+ selectionColor="rgb(132, 234, 0)"
189
189
  style={
190
190
  [
191
191
  {
@@ -264,7 +264,7 @@ exports[`StatusLabel status when status prop set to "inactive" should match snap
264
264
  collapsable={false}
265
265
  maxFontSizeMultiplier={1.1428571428571428}
266
266
  selectable={true}
267
- selectionColor="rgb(160, 215, 42)"
267
+ selectionColor="rgb(132, 234, 0)"
268
268
  style={
269
269
  [
270
270
  {
@@ -343,7 +343,7 @@ exports[`StatusLabel status when status prop set to "informative" should match s
343
343
  collapsable={false}
344
344
  maxFontSizeMultiplier={1.1428571428571428}
345
345
  selectable={true}
346
- selectionColor="rgb(160, 215, 42)"
346
+ selectionColor="rgb(132, 234, 0)"
347
347
  style={
348
348
  [
349
349
  {
@@ -422,7 +422,7 @@ exports[`StatusLabel status when status prop set to "warning" should match snaps
422
422
  collapsable={false}
423
423
  maxFontSizeMultiplier={1.1428571428571428}
424
424
  selectable={true}
425
- selectionColor="rgb(160, 215, 42)"
425
+ selectionColor="rgb(132, 234, 0)"
426
426
  style={
427
427
  [
428
428
  {
@@ -501,7 +501,7 @@ exports[`StatusLabel status when status prop set to default ("success") should m
501
501
  collapsable={false}
502
502
  maxFontSizeMultiplier={1.1428571428571428}
503
503
  selectable={true}
504
- selectionColor="rgb(160, 215, 42)"
504
+ selectionColor="rgb(132, 234, 0)"
505
505
  style={
506
506
  [
507
507
  {
@@ -8,7 +8,7 @@ exports[`renders text supporting with no additional props 1`] = `
8
8
  collapsable={false}
9
9
  maxFontSizeMultiplier={1.1428571428571428}
10
10
  selectable={true}
11
- selectionColor="rgb(160, 215, 42)"
11
+ selectionColor="rgb(132, 234, 0)"
12
12
  style={
13
13
  [
14
14
  {
@@ -42,7 +42,7 @@ exports[`renders text supporting with variation success 1`] = `
42
42
  collapsable={false}
43
43
  maxFontSizeMultiplier={1.1428571428571428}
44
44
  selectable={true}
45
- selectionColor="rgb(160, 215, 42)"
45
+ selectionColor="rgb(132, 234, 0)"
46
46
  style={
47
47
  [
48
48
  {
@@ -76,7 +76,7 @@ exports[`renders text supporting with variation success reverseTheme true 1`] =
76
76
  collapsable={false}
77
77
  maxFontSizeMultiplier={1.1428571428571428}
78
78
  selectable={true}
79
- selectionColor="rgb(160, 215, 42)"
79
+ selectionColor="rgb(132, 234, 0)"
80
80
  style={
81
81
  [
82
82
  {
@@ -111,7 +111,7 @@ exports[`renders text that is not scaled down with adjustsFontSize false 1`] = `
111
111
  maxFontSizeMultiplier={3.125}
112
112
  numberOfLines={4}
113
113
  selectable={true}
114
- selectionColor="rgb(160, 215, 42)"
114
+ selectionColor="rgb(132, 234, 0)"
115
115
  style={
116
116
  [
117
117
  {
@@ -146,7 +146,7 @@ exports[`renders text that is scaled down with adjustsFontSize true 1`] = `
146
146
  maxFontSizeMultiplier={3.125}
147
147
  numberOfLines={4}
148
148
  selectable={true}
149
- selectionColor="rgb(160, 215, 42)"
149
+ selectionColor="rgb(132, 234, 0)"
150
150
  style={
151
151
  [
152
152
  {
@@ -180,7 +180,7 @@ exports[`renders text with base variation 1`] = `
180
180
  collapsable={false}
181
181
  maxFontSizeMultiplier={3.125}
182
182
  selectable={true}
183
- selectionColor="rgb(160, 215, 42)"
183
+ selectionColor="rgb(132, 234, 0)"
184
184
  style={
185
185
  [
186
186
  {
@@ -214,7 +214,7 @@ exports[`renders text with center alignment 1`] = `
214
214
  collapsable={false}
215
215
  maxFontSizeMultiplier={3.125}
216
216
  selectable={true}
217
- selectionColor="rgb(160, 215, 42)"
217
+ selectionColor="rgb(132, 234, 0)"
218
218
  style={
219
219
  [
220
220
  {
@@ -248,7 +248,7 @@ exports[`renders text with error variation 1`] = `
248
248
  collapsable={false}
249
249
  maxFontSizeMultiplier={3.125}
250
250
  selectable={true}
251
- selectionColor="rgb(160, 215, 42)"
251
+ selectionColor="rgb(132, 234, 0)"
252
252
  style={
253
253
  [
254
254
  {
@@ -282,7 +282,7 @@ exports[`renders text with error variation reverseTheme true 1`] = `
282
282
  collapsable={false}
283
283
  maxFontSizeMultiplier={3.125}
284
284
  selectable={true}
285
- selectionColor="rgb(160, 215, 42)"
285
+ selectionColor="rgb(132, 234, 0)"
286
286
  style={
287
287
  [
288
288
  {
@@ -316,7 +316,7 @@ exports[`renders text with info variation 1`] = `
316
316
  collapsable={false}
317
317
  maxFontSizeMultiplier={3.125}
318
318
  selectable={true}
319
- selectionColor="rgb(160, 215, 42)"
319
+ selectionColor="rgb(132, 234, 0)"
320
320
  style={
321
321
  [
322
322
  {
@@ -350,7 +350,7 @@ exports[`renders text with left alignment 1`] = `
350
350
  collapsable={false}
351
351
  maxFontSizeMultiplier={3.125}
352
352
  selectable={true}
353
- selectionColor="rgb(160, 215, 42)"
353
+ selectionColor="rgb(132, 234, 0)"
354
354
  style={
355
355
  [
356
356
  {
@@ -384,7 +384,7 @@ exports[`renders text with no additional props 1`] = `
384
384
  collapsable={false}
385
385
  maxFontSizeMultiplier={3.125}
386
386
  selectable={true}
387
- selectionColor="rgb(160, 215, 42)"
387
+ selectionColor="rgb(132, 234, 0)"
388
388
  style={
389
389
  [
390
390
  {
@@ -418,7 +418,7 @@ exports[`renders text with right alignment 1`] = `
418
418
  collapsable={false}
419
419
  maxFontSizeMultiplier={3.125}
420
420
  selectable={true}
421
- selectionColor="rgb(160, 215, 42)"
421
+ selectionColor="rgb(132, 234, 0)"
422
422
  style={
423
423
  [
424
424
  {
@@ -452,7 +452,7 @@ exports[`renders text with subdued variation 1`] = `
452
452
  collapsable={false}
453
453
  maxFontSizeMultiplier={3.125}
454
454
  selectable={true}
455
- selectionColor="rgb(160, 215, 42)"
455
+ selectionColor="rgb(132, 234, 0)"
456
456
  style={
457
457
  [
458
458
  {
@@ -486,7 +486,7 @@ exports[`renders text with success variation 1`] = `
486
486
  collapsable={false}
487
487
  maxFontSizeMultiplier={3.125}
488
488
  selectable={true}
489
- selectionColor="rgb(160, 215, 42)"
489
+ selectionColor="rgb(132, 234, 0)"
490
490
  style={
491
491
  [
492
492
  {
@@ -520,7 +520,7 @@ exports[`renders text with success variation reverseTheme true 1`] = `
520
520
  collapsable={false}
521
521
  maxFontSizeMultiplier={3.125}
522
522
  selectable={true}
523
- selectionColor="rgb(160, 215, 42)"
523
+ selectionColor="rgb(132, 234, 0)"
524
524
  style={
525
525
  [
526
526
  {
@@ -554,7 +554,7 @@ exports[`renders text with warn variation 1`] = `
554
554
  collapsable={false}
555
555
  maxFontSizeMultiplier={3.125}
556
556
  selectable={true}
557
- selectionColor="rgb(160, 215, 42)"
557
+ selectionColor="rgb(132, 234, 0)"
558
558
  style={
559
559
  [
560
560
  {
@@ -588,7 +588,7 @@ exports[`renders with strikethrough styling 1`] = `
588
588
  collapsable={false}
589
589
  maxFontSizeMultiplier={3.125}
590
590
  selectable={true}
591
- selectionColor="rgb(160, 215, 42)"
591
+ selectionColor="rgb(132, 234, 0)"
592
592
  style={
593
593
  [
594
594
  {