@applicaster/zapp-react-native-ui-components 16.0.0-rc.109 → 16.0.0-rc.110

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.
@@ -20,13 +20,13 @@ const getValue = (key: string) => {
20
20
  };
21
21
 
22
22
  describe("CollapsibleTextContainer view tree", () => {
23
- it("stretches to the parent width so labels wrap using the cell width", () => {
23
+ it("aligns the label to the text alignment instead of stretching the cell", () => {
24
24
  const result = CollapsibleTextContainer({
25
25
  getValue,
26
26
  elements: [],
27
27
  additionalStyles: { backgroundColor: "transparent" },
28
28
  });
29
29
 
30
- expect(result.style.alignSelf).toBe("stretch");
30
+ expect(result.style.alignSelf).toBe("flex-start");
31
31
  });
32
32
  });
@@ -3,6 +3,7 @@ import { isNilOrEmpty } from "@applicaster/zapp-react-native-utils/reactUtils/he
3
3
  import {
4
4
  getColorFromData,
5
5
  getKeyForLabel,
6
+ mapSelfAlignment,
6
7
  } from "@applicaster/zapp-react-native-utils/cellUtils";
7
8
  import { toNumberWithDefaultZero } from "@applicaster/zapp-react-native-utils/numberUtils";
8
9
 
@@ -22,7 +23,7 @@ export const CollapsibleTextContainer = ({
22
23
  return {
23
24
  type: "CollapsibleTextContainer", // Collapsible Text Container,
24
25
  style: {
25
- alignSelf: "stretch",
26
+ alignSelf: mapSelfAlignment(getValue("text_alignment")),
26
27
  marginTop: toNumberWithDefaultZero(getValue("margin_top")),
27
28
  marginRight: toNumberWithDefaultZero(getValue("margin_right")),
28
29
  marginBottom: toNumberWithDefaultZero(getValue("margin_bottom")),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "16.0.0-rc.109",
3
+ "version": "16.0.0-rc.110",
4
4
  "description": "Applicaster Zapp React Native ui components for the Quick Brick App",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "homepage": "https://github.com/applicaster/quickbrick#readme",
30
30
  "dependencies": {
31
- "@applicaster/applicaster-types": "16.0.0-rc.109",
32
- "@applicaster/zapp-react-native-bridge": "16.0.0-rc.109",
33
- "@applicaster/zapp-react-native-redux": "16.0.0-rc.109",
34
- "@applicaster/zapp-react-native-utils": "16.0.0-rc.109",
31
+ "@applicaster/applicaster-types": "16.0.0-rc.110",
32
+ "@applicaster/zapp-react-native-bridge": "16.0.0-rc.110",
33
+ "@applicaster/zapp-react-native-redux": "16.0.0-rc.110",
34
+ "@applicaster/zapp-react-native-utils": "16.0.0-rc.110",
35
35
  "fast-json-stable-stringify": "^2.1.0",
36
36
  "promise": "^8.3.0",
37
37
  "react-native-sortables": "1.7.1",