@pagopa/io-app-design-system 1.47.1 → 1.47.2

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.
@@ -15,8 +15,10 @@ depending on the size value
15
15
  */
16
16
  const ContentWrapper = ({
17
17
  margin = _IOStyles.IOVisualCostants.appMarginDefault,
18
+ testID,
18
19
  children
19
20
  }) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
21
+ testID: testID,
20
22
  style: {
21
23
  paddingHorizontal: margin
22
24
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_IOStyles","obj","__esModule","default","ContentWrapper","margin","IOVisualCostants","appMarginDefault","children","createElement","View","style","paddingHorizontal","exports"],"sourceRoot":"../../../../src","sources":["components/contentWrapper/ContentWrapper.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AAAuD,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAOvD;AACA;AACA;AACA;AACA;AACO,MAAMG,cAAc,GAAGA,CAAC;EAC7BC,MAAM,GAAGC,0BAAgB,CAACC,gBAAgB;EAC1CC;AACqB,CAAC,kBACtBZ,MAAA,CAAAO,OAAA,CAAAM,aAAA,CAACV,YAAA,CAAAW,IAAI;EACHC,KAAK,EAAE;IACLC,iBAAiB,EAAEP;EACrB;AAAE,GAEDG,QACG,CACP;AAACK,OAAA,CAAAT,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_IOStyles","obj","__esModule","default","ContentWrapper","margin","IOVisualCostants","appMarginDefault","testID","children","createElement","View","style","paddingHorizontal","exports"],"sourceRoot":"../../../../src","sources":["components/contentWrapper/ContentWrapper.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,SAAA,GAAAF,OAAA;AAAuD,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAOvD;AACA;AACA;AACA;AACA;AACO,MAAMG,cAAc,GAAGA,CAAC;EAC7BC,MAAM,GAAGC,0BAAgB,CAACC,gBAAgB;EAC1CC,MAAM;EACNC;AACqB,CAAC,kBACtBb,MAAA,CAAAO,OAAA,CAAAO,aAAA,CAACX,YAAA,CAAAY,IAAI;EACHH,MAAM,EAAEA,MAAO;EACfI,KAAK,EAAE;IACLC,iBAAiB,EAAER;EACrB;AAAE,GAEDI,QACG,CACP;AAACK,OAAA,CAAAV,cAAA,GAAAA,cAAA"}
@@ -8,8 +8,10 @@ depending on the size value
8
8
  */
9
9
  export const ContentWrapper = ({
10
10
  margin = IOVisualCostants.appMarginDefault,
11
+ testID,
11
12
  children
12
13
  }) => /*#__PURE__*/React.createElement(View, {
14
+ testID: testID,
13
15
  style: {
14
16
  paddingHorizontal: margin
15
17
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","IOVisualCostants","ContentWrapper","margin","appMarginDefault","children","createElement","style","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/contentWrapper/ContentWrapper.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,gBAAgB,QAAQ,qBAAqB;AAOtD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAC7BC,MAAM,GAAGF,gBAAgB,CAACG,gBAAgB;EAC1CC;AACqB,CAAC,kBACtBN,KAAA,CAAAO,aAAA,CAACN,IAAI;EACHO,KAAK,EAAE;IACLC,iBAAiB,EAAEL;EACrB;AAAE,GAEDE,QACG,CACP"}
1
+ {"version":3,"names":["React","View","IOVisualCostants","ContentWrapper","margin","appMarginDefault","testID","children","createElement","style","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/contentWrapper/ContentWrapper.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAGnC,SAASC,gBAAgB,QAAQ,qBAAqB;AAOtD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAC7BC,MAAM,GAAGF,gBAAgB,CAACG,gBAAgB;EAC1CC,MAAM;EACNC;AACqB,CAAC,kBACtBP,KAAA,CAAAQ,aAAA,CAACP,IAAI;EACHK,MAAM,EAAEA,MAAO;EACfG,KAAK,EAAE;IACLC,iBAAiB,EAAEN;EACrB;AAAE,GAEDG,QACG,CACP"}
@@ -1,14 +1,15 @@
1
1
  import React from "react";
2
+ import { WithTestID } from "src/utils/types";
2
3
  import type { IOAppMargin } from "../../core";
3
- type IOContentWrapperProps = {
4
+ type IOContentWrapperProps = WithTestID<{
4
5
  margin?: IOAppMargin;
5
6
  children: React.ReactNode;
6
- };
7
+ }>;
7
8
  /**
8
9
  `ContentWrapper` is the main wrapper of the application. It automatically sets side margins,
9
10
  depending on the size value
10
11
  @param {IOContentWrapper} margin
11
12
  */
12
- export declare const ContentWrapper: ({ margin, children }: IOContentWrapperProps) => React.JSX.Element;
13
+ export declare const ContentWrapper: ({ margin, testID, children }: IOContentWrapperProps) => React.JSX.Element;
13
14
  export {};
14
15
  //# sourceMappingURL=ContentWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/contentWrapper/ContentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,KAAK,qBAAqB,GAAG;IAC3B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,yBAGxB,qBAAqB,sBAQvB,CAAC"}
1
+ {"version":3,"file":"ContentWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/contentWrapper/ContentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,KAAK,qBAAqB,GAAG,UAAU,CAAC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,cAAc,iCAIxB,qBAAqB,sBASvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-app-design-system",
3
- "version": "1.47.1",
3
+ "version": "1.47.2",
4
4
  "description": "The library defining the core components of the design system of @pagopa/io-app",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -1,12 +1,13 @@
1
1
  import React from "react";
2
2
  import { View } from "react-native";
3
+ import { WithTestID } from "src/utils/types";
3
4
  import type { IOAppMargin } from "../../core";
4
5
  import { IOVisualCostants } from "../../core/IOStyles";
5
6
 
6
- type IOContentWrapperProps = {
7
+ type IOContentWrapperProps = WithTestID<{
7
8
  margin?: IOAppMargin;
8
9
  children: React.ReactNode;
9
- };
10
+ }>;
10
11
 
11
12
  /**
12
13
  `ContentWrapper` is the main wrapper of the application. It automatically sets side margins,
@@ -15,9 +16,11 @@ depending on the size value
15
16
  */
16
17
  export const ContentWrapper = ({
17
18
  margin = IOVisualCostants.appMarginDefault,
19
+ testID,
18
20
  children
19
21
  }: IOContentWrapperProps) => (
20
22
  <View
23
+ testID={testID}
21
24
  style={{
22
25
  paddingHorizontal: margin
23
26
  }}