@pagopa/io-app-design-system 5.3.8 → 5.3.9

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.
@@ -16,13 +16,17 @@ depending on the size value
16
16
  */
17
17
  const ContentWrapper = ({
18
18
  margin = _IOStyles.IOVisualCostants.appMarginDefault,
19
+ style,
20
+ children,
19
21
  testID,
20
- children
22
+ ...rest
21
23
  }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
22
24
  testID: testID,
23
25
  style: {
24
- paddingHorizontal: margin
26
+ paddingHorizontal: margin,
27
+ ...style
25
28
  },
29
+ ...rest,
26
30
  children: children
27
31
  });
28
32
  exports.ContentWrapper = ContentWrapper;
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_IOStyles","_jsxRuntime","e","__esModule","default","ContentWrapper","margin","IOVisualCostants","appMarginDefault","testID","children","jsx","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,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOvD;AACA;AACA;AACA;AACA;AACO,MAAMG,cAAc,GAAGA,CAAC;EAC7BC,MAAM,GAAGC,0BAAgB,CAACC,gBAAgB;EAC1CC,MAAM;EACNC;AACqB,CAAC,kBACtB,IAAAT,WAAA,CAAAU,GAAA,EAACZ,YAAA,CAAAa,IAAI;EACHH,MAAM,EAAEA,MAAO;EACfI,KAAK,EAAE;IACLC,iBAAiB,EAAER;EACrB,CAAE;EAAAI,QAAA,EAEDA;AAAQ,CACL,CACP;AAACK,OAAA,CAAAV,cAAA,GAAAA,cAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_IOStyles","_jsxRuntime","e","__esModule","default","ContentWrapper","margin","IOVisualCostants","appMarginDefault","style","children","testID","rest","jsx","View","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,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAavD;AACA;AACA;AACA;AACA;AACO,MAAMG,cAAc,GAAGA,CAAC;EAC7BC,MAAM,GAAGC,0BAAgB,CAACC,gBAAgB;EAC1CC,KAAK;EACLC,QAAQ;EACRC,MAAM;EACN,GAAGC;AACkB,CAAC,kBACtB,IAAAX,WAAA,CAAAY,GAAA,EAACd,YAAA,CAAAe,IAAI;EACHH,MAAM,EAAEA,MAAO;EACfF,KAAK,EAAE;IACLM,iBAAiB,EAAET,MAAM;IACzB,GAAGG;EACL,CAAE;EAAA,GACEG,IAAI;EAAAF,QAAA,EAEPA;AAAQ,CACL,CACP;AAACM,OAAA,CAAAX,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -11,13 +11,17 @@ depending on the size value
11
11
  */
12
12
  export const ContentWrapper = ({
13
13
  margin = IOVisualCostants.appMarginDefault,
14
+ style,
15
+ children,
14
16
  testID,
15
- children
17
+ ...rest
16
18
  }) => /*#__PURE__*/_jsx(View, {
17
19
  testID: testID,
18
20
  style: {
19
- paddingHorizontal: margin
21
+ paddingHorizontal: margin,
22
+ ...style
20
23
  },
24
+ ...rest,
21
25
  children: children
22
26
  });
23
27
  //# sourceMappingURL=ContentWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","IOVisualCostants","jsx","_jsx","ContentWrapper","margin","appMarginDefault","testID","children","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;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOvD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAC7BC,MAAM,GAAGJ,gBAAgB,CAACK,gBAAgB;EAC1CC,MAAM;EACNC;AACqB,CAAC,kBACtBL,IAAA,CAACH,IAAI;EACHO,MAAM,EAAEA,MAAO;EACfE,KAAK,EAAE;IACLC,iBAAiB,EAAEL;EACrB,CAAE;EAAAG,QAAA,EAEDA;AAAQ,CACL,CACP","ignoreList":[]}
1
+ {"version":3,"names":["React","View","IOVisualCostants","jsx","_jsx","ContentWrapper","margin","appMarginDefault","style","children","testID","rest","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/contentWrapper/ContentWrapper.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,SAASC,IAAI,QAA8B,cAAc;AAGzD,SAASC,gBAAgB,QAAQ,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAavD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAC7BC,MAAM,GAAGJ,gBAAgB,CAACK,gBAAgB;EAC1CC,KAAK;EACLC,QAAQ;EACRC,MAAM;EACN,GAAGC;AACkB,CAAC,kBACtBP,IAAA,CAACH,IAAI;EACHS,MAAM,EAAEA,MAAO;EACfF,KAAK,EAAE;IACLI,iBAAiB,EAAEN,MAAM;IACzB,GAAGE;EACL,CAAE;EAAA,GACEG,IAAI;EAAAF,QAAA,EAEPA;AAAQ,CACL,CACP","ignoreList":[]}
@@ -1,15 +1,17 @@
1
- import React from "react";
1
+ import React, { ReactNode } from "react";
2
+ import { ViewProps, ViewStyle } from "react-native";
2
3
  import { WithTestID } from "src/utils/types";
3
4
  import type { IOAppMargin } from "../../core";
4
- type IOContentWrapperProps = WithTestID<{
5
+ type IOContentWrapperProps = WithTestID<Omit<ViewProps, "style"> & {
5
6
  margin?: IOAppMargin;
6
- children: React.ReactNode;
7
+ children: ReactNode;
8
+ style?: Omit<ViewStyle, "paddingHorizontal" | "paddingLeft" | "paddingRight">;
7
9
  }>;
8
10
  /**
9
11
  `ContentWrapper` is the main wrapper of the application. It automatically sets side margins,
10
12
  depending on the size value
11
13
  @param {IOContentWrapper} margin
12
14
  */
13
- export declare const ContentWrapper: ({ margin, testID, children }: IOContentWrapperProps) => React.JSX.Element;
15
+ export declare const ContentWrapper: ({ margin, style, children, testID, ...rest }: IOContentWrapperProps) => React.JSX.Element;
14
16
  export {};
15
17
  //# 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,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,GAAI,8BAI5B,qBAAqB,sBASvB,CAAC"}
1
+ {"version":3,"file":"ContentWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/contentWrapper/ContentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAQ,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9C,KAAK,qBAAqB,GAAG,UAAU,CACrC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,IAAI,CACV,SAAS,EACT,mBAAmB,GAAG,aAAa,GAAG,cAAc,CACrD,CAAC;CACH,CACF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,8CAM5B,qBAAqB,sBAWvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-app-design-system",
3
- "version": "5.3.8",
3
+ "version": "5.3.9",
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,13 +1,19 @@
1
- import React from "react";
2
- import { View } from "react-native";
1
+ import React, { ReactNode } from "react";
2
+ import { View, ViewProps, ViewStyle } from "react-native";
3
3
  import { WithTestID } from "src/utils/types";
4
4
  import type { IOAppMargin } from "../../core";
5
5
  import { IOVisualCostants } from "../../core/IOStyles";
6
6
 
7
- type IOContentWrapperProps = WithTestID<{
8
- margin?: IOAppMargin;
9
- children: React.ReactNode;
10
- }>;
7
+ type IOContentWrapperProps = WithTestID<
8
+ Omit<ViewProps, "style"> & {
9
+ margin?: IOAppMargin;
10
+ children: ReactNode;
11
+ style?: Omit<
12
+ ViewStyle,
13
+ "paddingHorizontal" | "paddingLeft" | "paddingRight"
14
+ >;
15
+ }
16
+ >;
11
17
 
12
18
  /**
13
19
  `ContentWrapper` is the main wrapper of the application. It automatically sets side margins,
@@ -16,14 +22,18 @@ depending on the size value
16
22
  */
17
23
  export const ContentWrapper = ({
18
24
  margin = IOVisualCostants.appMarginDefault,
25
+ style,
26
+ children,
19
27
  testID,
20
- children
28
+ ...rest
21
29
  }: IOContentWrapperProps) => (
22
30
  <View
23
31
  testID={testID}
24
32
  style={{
25
- paddingHorizontal: margin
33
+ paddingHorizontal: margin,
34
+ ...style
26
35
  }}
36
+ {...rest}
27
37
  >
28
38
  {children}
29
39
  </View>