@pagopa/io-app-design-system 7.0.2 → 7.1.1
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.
- package/lib/commonjs/components/alert/Alert.js +6 -5
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/banner/Banner.js +7 -6
- package/lib/commonjs/components/banner/Banner.js.map +1 -1
- package/lib/commonjs/components/buttons/IOButton/IOButton.js +10 -8
- package/lib/commonjs/components/buttons/IOButton/IOButton.js.map +1 -1
- package/lib/commonjs/components/layout/ContentWrapper.js +5 -4
- package/lib/commonjs/components/layout/ContentWrapper.js.map +1 -1
- package/lib/commonjs/components/otpInput/OTPInput.js +6 -4
- package/lib/commonjs/components/otpInput/OTPInput.js.map +1 -1
- package/lib/commonjs/components/searchInput/SearchInput.js +8 -6
- package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -1
- package/lib/commonjs/components/tabs/TabItem.js +6 -4
- package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputBase.js +8 -4
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -1
- package/lib/commonjs/components/textInput/TextInputValidation.js +5 -3
- package/lib/commonjs/components/textInput/TextInputValidation.js.map +1 -1
- package/lib/commonjs/components/typography/Body.js +8 -5
- package/lib/commonjs/components/typography/Body.js.map +1 -1
- package/lib/commonjs/components/typography/BodyMonospace.js +4 -5
- package/lib/commonjs/components/typography/BodyMonospace.js.map +1 -1
- package/lib/commonjs/components/typography/BodySmall.js +8 -5
- package/lib/commonjs/components/typography/BodySmall.js.map +1 -1
- package/lib/commonjs/components/typography/ButtonText.js +4 -5
- package/lib/commonjs/components/typography/ButtonText.js.map +1 -1
- package/lib/commonjs/components/typography/Caption.js +4 -5
- package/lib/commonjs/components/typography/Caption.js.map +1 -1
- package/lib/commonjs/components/typography/H1.js +4 -5
- package/lib/commonjs/components/typography/H1.js.map +1 -1
- package/lib/commonjs/components/typography/H2.js +4 -5
- package/lib/commonjs/components/typography/H2.js.map +1 -1
- package/lib/commonjs/components/typography/H3.js +4 -5
- package/lib/commonjs/components/typography/H3.js.map +1 -1
- package/lib/commonjs/components/typography/H4.js +4 -5
- package/lib/commonjs/components/typography/H4.js.map +1 -1
- package/lib/commonjs/components/typography/H5.js +4 -5
- package/lib/commonjs/components/typography/H5.js.map +1 -1
- package/lib/commonjs/components/typography/H6.js +4 -5
- package/lib/commonjs/components/typography/H6.js.map +1 -1
- package/lib/commonjs/components/typography/Hero.js +4 -5
- package/lib/commonjs/components/typography/Hero.js.map +1 -1
- package/lib/commonjs/components/typography/IOText.js +16 -14
- package/lib/commonjs/components/typography/IOText.js.map +1 -1
- package/lib/commonjs/components/typography/LabelMini.js +8 -5
- package/lib/commonjs/components/typography/LabelMini.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH1.js +4 -5
- package/lib/commonjs/components/typography/markdown/MdH1.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH2.js +4 -5
- package/lib/commonjs/components/typography/markdown/MdH2.js.map +1 -1
- package/lib/commonjs/components/typography/markdown/MdH3.js +4 -5
- package/lib/commonjs/components/typography/markdown/MdH3.js.map +1 -1
- package/lib/commonjs/context/IOThemeContextProvider.js +3 -4
- package/lib/commonjs/context/IOThemeContextProvider.js.map +1 -1
- package/lib/module/components/alert/Alert.js +5 -5
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/banner/Banner.js +6 -6
- package/lib/module/components/banner/Banner.js.map +1 -1
- package/lib/module/components/buttons/IOButton/IOButton.js +10 -9
- package/lib/module/components/buttons/IOButton/IOButton.js.map +1 -1
- package/lib/module/components/layout/ContentWrapper.js +4 -4
- package/lib/module/components/layout/ContentWrapper.js.map +1 -1
- package/lib/module/components/otpInput/OTPInput.js +6 -5
- package/lib/module/components/otpInput/OTPInput.js.map +1 -1
- package/lib/module/components/searchInput/SearchInput.js +8 -7
- package/lib/module/components/searchInput/SearchInput.js.map +1 -1
- package/lib/module/components/tabs/TabItem.js +6 -5
- package/lib/module/components/tabs/TabItem.js.map +1 -1
- package/lib/module/components/textInput/TextInputBase.js +8 -4
- package/lib/module/components/textInput/TextInputBase.js.map +1 -1
- package/lib/module/components/textInput/TextInputValidation.js +5 -4
- package/lib/module/components/textInput/TextInputValidation.js.map +1 -1
- package/lib/module/components/typography/Body.js +7 -5
- package/lib/module/components/typography/Body.js.map +1 -1
- package/lib/module/components/typography/BodyMonospace.js +3 -5
- package/lib/module/components/typography/BodyMonospace.js.map +1 -1
- package/lib/module/components/typography/BodySmall.js +7 -5
- package/lib/module/components/typography/BodySmall.js.map +1 -1
- package/lib/module/components/typography/ButtonText.js +3 -5
- package/lib/module/components/typography/ButtonText.js.map +1 -1
- package/lib/module/components/typography/Caption.js +3 -5
- package/lib/module/components/typography/Caption.js.map +1 -1
- package/lib/module/components/typography/H1.js +3 -5
- package/lib/module/components/typography/H1.js.map +1 -1
- package/lib/module/components/typography/H2.js +3 -5
- package/lib/module/components/typography/H2.js.map +1 -1
- package/lib/module/components/typography/H3.js +3 -5
- package/lib/module/components/typography/H3.js.map +1 -1
- package/lib/module/components/typography/H4.js +3 -5
- package/lib/module/components/typography/H4.js.map +1 -1
- package/lib/module/components/typography/H5.js +3 -5
- package/lib/module/components/typography/H5.js.map +1 -1
- package/lib/module/components/typography/H6.js +3 -5
- package/lib/module/components/typography/H6.js.map +1 -1
- package/lib/module/components/typography/Hero.js +3 -5
- package/lib/module/components/typography/Hero.js.map +1 -1
- package/lib/module/components/typography/IOText.js +16 -15
- package/lib/module/components/typography/IOText.js.map +1 -1
- package/lib/module/components/typography/LabelMini.js +7 -5
- package/lib/module/components/typography/LabelMini.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH1.js +3 -5
- package/lib/module/components/typography/markdown/MdH1.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH2.js +3 -5
- package/lib/module/components/typography/markdown/MdH2.js.map +1 -1
- package/lib/module/components/typography/markdown/MdH3.js +3 -5
- package/lib/module/components/typography/markdown/MdH3.js.map +1 -1
- package/lib/module/context/IOThemeContextProvider.js +3 -4
- package/lib/module/context/IOThemeContextProvider.js.map +1 -1
- package/lib/typescript/components/alert/Alert.d.ts +3 -1
- package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/components/banner/Banner.d.ts +3 -1
- package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
- package/lib/typescript/components/buttons/IOButton/IOButton.d.ts +3 -2
- package/lib/typescript/components/buttons/IOButton/IOButton.d.ts.map +1 -1
- package/lib/typescript/components/layout/ContentWrapper.d.ts +10 -6
- package/lib/typescript/components/layout/ContentWrapper.d.ts.map +1 -1
- package/lib/typescript/components/otpInput/OTPInput.d.ts +3 -1
- package/lib/typescript/components/otpInput/OTPInput.d.ts.map +1 -1
- package/lib/typescript/components/searchInput/SearchInput.d.ts +3 -1
- package/lib/typescript/components/searchInput/SearchInput.d.ts.map +1 -1
- package/lib/typescript/components/tabs/TabItem.d.ts +3 -11
- package/lib/typescript/components/tabs/TabItem.d.ts.map +1 -1
- package/lib/typescript/components/textInput/TextInputBase.d.ts +2 -1
- package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -1
- package/lib/typescript/components/textInput/TextInputValidation.d.ts +13 -24
- package/lib/typescript/components/textInput/TextInputValidation.d.ts.map +1 -1
- package/lib/typescript/components/typography/Body.d.ts +4 -2
- package/lib/typescript/components/typography/Body.d.ts.map +1 -1
- package/lib/typescript/components/typography/BodyMonospace.d.ts +2 -8
- package/lib/typescript/components/typography/BodyMonospace.d.ts.map +1 -1
- package/lib/typescript/components/typography/BodySmall.d.ts +4 -2
- package/lib/typescript/components/typography/BodySmall.d.ts.map +1 -1
- package/lib/typescript/components/typography/ButtonText.d.ts +2 -8
- package/lib/typescript/components/typography/ButtonText.d.ts.map +1 -1
- package/lib/typescript/components/typography/Caption.d.ts +2 -8
- package/lib/typescript/components/typography/Caption.d.ts.map +1 -1
- package/lib/typescript/components/typography/H1.d.ts +2 -8
- package/lib/typescript/components/typography/H1.d.ts.map +1 -1
- package/lib/typescript/components/typography/H2.d.ts +6 -10
- package/lib/typescript/components/typography/H2.d.ts.map +1 -1
- package/lib/typescript/components/typography/H3.d.ts +2 -8
- package/lib/typescript/components/typography/H3.d.ts.map +1 -1
- package/lib/typescript/components/typography/H4.d.ts +2 -8
- package/lib/typescript/components/typography/H4.d.ts.map +1 -1
- package/lib/typescript/components/typography/H5.d.ts +2 -8
- package/lib/typescript/components/typography/H5.d.ts.map +1 -1
- package/lib/typescript/components/typography/H6.d.ts +2 -8
- package/lib/typescript/components/typography/H6.d.ts.map +1 -1
- package/lib/typescript/components/typography/Hero.d.ts +2 -8
- package/lib/typescript/components/typography/Hero.d.ts.map +1 -1
- package/lib/typescript/components/typography/IOText.d.ts +5 -5
- package/lib/typescript/components/typography/IOText.d.ts.map +1 -1
- package/lib/typescript/components/typography/LabelMini.d.ts +4 -2
- package/lib/typescript/components/typography/LabelMini.d.ts.map +1 -1
- package/lib/typescript/components/typography/markdown/MdH1.d.ts +2 -8
- package/lib/typescript/components/typography/markdown/MdH1.d.ts.map +1 -1
- package/lib/typescript/components/typography/markdown/MdH2.d.ts +2 -8
- package/lib/typescript/components/typography/markdown/MdH2.d.ts.map +1 -1
- package/lib/typescript/components/typography/markdown/MdH3.d.ts +2 -8
- package/lib/typescript/components/typography/markdown/MdH3.d.ts.map +1 -1
- package/lib/typescript/context/IOThemeContextProvider.d.ts.map +1 -1
- package/package.json +6 -7
- package/src/components/alert/Alert.tsx +108 -112
- package/src/components/banner/Banner.tsx +121 -125
- package/src/components/buttons/IOButton/IOButton.tsx +204 -216
- package/src/components/layout/ContentWrapper.tsx +21 -24
- package/src/components/otpInput/OTPInput.tsx +156 -167
- package/src/components/searchInput/SearchInput.tsx +208 -217
- package/src/components/tabs/TabItem.tsx +143 -146
- package/src/components/textInput/TextInputBase.tsx +13 -4
- package/src/components/textInput/TextInputValidation.tsx +122 -122
- package/src/components/typography/Body.tsx +51 -52
- package/src/components/typography/BodyMonospace.tsx +19 -24
- package/src/components/typography/BodySmall.tsx +51 -52
- package/src/components/typography/ButtonText.tsx +14 -20
- package/src/components/typography/Caption.tsx +18 -23
- package/src/components/typography/H1.tsx +12 -20
- package/src/components/typography/H2.tsx +16 -23
- package/src/components/typography/H3.tsx +12 -20
- package/src/components/typography/H4.tsx +12 -20
- package/src/components/typography/H5.tsx +16 -24
- package/src/components/typography/H6.tsx +13 -21
- package/src/components/typography/Hero.tsx +14 -19
- package/src/components/typography/IOText.tsx +54 -59
- package/src/components/typography/LabelMini.tsx +45 -49
- package/src/components/typography/markdown/MdH1.tsx +14 -19
- package/src/components/typography/markdown/MdH2.tsx +14 -19
- package/src/components/typography/markdown/MdH3.tsx +14 -19
- package/src/context/IOThemeContextProvider.tsx +4 -12
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { Pressable } from "react-native";
|
|
5
4
|
import { useIOTheme } from "../../context";
|
|
6
5
|
import { IOText } from "./IOText";
|
|
@@ -8,7 +7,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
8
7
|
/**
|
|
9
8
|
* `LabelMini` typographic style
|
|
10
9
|
*/
|
|
11
|
-
export const LabelMini =
|
|
10
|
+
export const LabelMini = ({
|
|
11
|
+
ref,
|
|
12
12
|
weight: customWeight,
|
|
13
13
|
color: customColor,
|
|
14
14
|
asLink,
|
|
@@ -16,7 +16,7 @@ export const LabelMini = /*#__PURE__*/forwardRef(({
|
|
|
16
16
|
textStyle: customTextStyle,
|
|
17
17
|
onPress,
|
|
18
18
|
...props
|
|
19
|
-
}
|
|
19
|
+
}) => {
|
|
20
20
|
const theme = useIOTheme();
|
|
21
21
|
const defaultColor = asLink ? theme["interactiveElem-default"] : theme["textBody-tertiary"];
|
|
22
22
|
const LabelMiniProps = {
|
|
@@ -34,6 +34,9 @@ export const LabelMini = /*#__PURE__*/forwardRef(({
|
|
|
34
34
|
} : {})
|
|
35
35
|
};
|
|
36
36
|
if (asLink) {
|
|
37
|
+
// TODO: If Pressable is replaced with `onPress` on IOText, ref would
|
|
38
|
+
// always point to a Text node and the Ref<View> override in the prop
|
|
39
|
+
// type can be removed entirely.
|
|
37
40
|
return /*#__PURE__*/_jsx(Pressable, {
|
|
38
41
|
onPress: onPress,
|
|
39
42
|
ref: ref,
|
|
@@ -45,9 +48,8 @@ export const LabelMini = /*#__PURE__*/forwardRef(({
|
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
return /*#__PURE__*/_jsx(IOText, {
|
|
48
|
-
ref: ref,
|
|
49
51
|
...LabelMiniProps,
|
|
50
52
|
children: props.children
|
|
51
53
|
});
|
|
52
|
-
}
|
|
54
|
+
};
|
|
53
55
|
//# sourceMappingURL=LabelMini.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Pressable","useIOTheme","IOText","jsx","_jsx","LabelMini","ref","weight","customWeight","color","customColor","asLink","accessibilityRole","textStyle","customTextStyle","onPress","props","theme","defaultColor","LabelMiniProps","dynamicTypeRamp","size","lineHeight","textDecorationLine","children"],"sourceRoot":"../../../../src","sources":["components/typography/LabelMini.tsx"],"mappings":";;AACA,SAASA,SAAS,QAAc,cAAc;AAC9C,SAASC,UAAU,QAAQ,eAAe;AAE1C,SACEC,MAAM,QAID,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOlB;AACA;AACA;AACA,OAAO,MAAMC,SAAS,GAAGA,CAAC;EACxBC,GAAG;EACHC,MAAM,EAAEC,YAAY;EACpBC,KAAK,EAAEC,WAAW;EAClBC,MAAM;EACNC,iBAAiB,GAAG,MAAM;EAC1BC,SAAS,EAAEC,eAAe;EAC1BC,OAAO;EACP,GAAGC;AACW,CAAC,KAAK;EACpB,MAAMC,KAAK,GAAGhB,UAAU,CAAC,CAAC;EAE1B,MAAMiB,YAAY,GAAGP,MAAM,GACvBM,KAAK,CAAC,yBAAyB,CAAC,GAChCA,KAAK,CAAC,mBAAmB,CAAC;EAE9B,MAAME,cAA2B,GAAG;IAClC,GAAGH,KAAK;IACRI,eAAe,EAAE,UAAU,CAAC;IAC5Bb,MAAM,EAAEC,YAAY,IAAI,UAAU;IAClCa,IAAI,EAAE,EAAE;IACRC,UAAU,EAAE,EAAE;IACdb,KAAK,EAAEC,WAAW,IAAIQ,YAAY;IAClC,IAAIP,MAAM,GACN;MACEC,iBAAiB;MACjBC,SAAS,EAAEC,eAAe,IAAI;QAAES,kBAAkB,EAAE;MAAY;IAClE,CAAC,GACD,CAAC,CAAC;EACR,CAAC;EAED,IAAIZ,MAAM,EAAE;IACV;IACA;IACA;IACA,oBACEP,IAAA,CAACJ,SAAS;MACRe,OAAO,EAAEA,OAAQ;MACjBT,GAAG,EAAEA,GAAI;MACTM,iBAAiB,EAAEA,iBAAkB;MAAAY,QAAA,eAErCpB,IAAA,CAACF,MAAM;QAAA,GAAKiB,cAAc;QAAAK,QAAA,EAAGR,KAAK,CAACQ;MAAQ,CAAS;IAAC,CAC5C,CAAC;EAEhB;EAEA,oBAAOpB,IAAA,CAACF,MAAM;IAAA,GAAKiB,cAAc;IAAAK,QAAA,EAAGR,KAAK,CAACQ;EAAQ,CAAS,CAAC;AAC9D,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { useIOTheme } from "../../../context";
|
|
5
4
|
import { IOText } from "../IOText";
|
|
6
5
|
|
|
@@ -8,10 +7,10 @@ import { IOText } from "../IOText";
|
|
|
8
7
|
* `MdH1` typographic style
|
|
9
8
|
*/
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
export const MdH1 =
|
|
10
|
+
export const MdH1 = ({
|
|
12
11
|
color: customColor,
|
|
13
12
|
...props
|
|
14
|
-
}
|
|
13
|
+
}) => {
|
|
15
14
|
const theme = useIOTheme();
|
|
16
15
|
const MdH1Props = {
|
|
17
16
|
...props,
|
|
@@ -21,9 +20,8 @@ export const MdH1 = /*#__PURE__*/forwardRef(({
|
|
|
21
20
|
color: customColor ?? theme["textHeading-default"]
|
|
22
21
|
};
|
|
23
22
|
return /*#__PURE__*/_jsx(IOText, {
|
|
24
|
-
ref: ref,
|
|
25
23
|
...MdH1Props,
|
|
26
24
|
children: props.children
|
|
27
25
|
});
|
|
28
|
-
}
|
|
26
|
+
};
|
|
29
27
|
//# sourceMappingURL=MdH1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["useIOTheme","IOText","jsx","_jsx","MdH1","color","customColor","props","theme","MdH1Props","weight","size","lineHeight","children"],"sourceRoot":"../../../../../src","sources":["components/typography/markdown/MdH1.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,MAAM,QAA4C,WAAW;;AAEtE;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAGA,OAAO,MAAMC,IAAI,GAAGA,CAAC;EACnBC,KAAK,EAAEC,WAAW;EAClB,GAAGC;AACkB,CAAC,KAAK;EAC3B,MAAMC,KAAK,GAAGR,UAAU,CAAC,CAAC;EAE1B,MAAMS,SAAsB,GAAG;IAC7B,GAAGF,KAAK;IACRG,MAAM,EAAE,UAAU;IAClBC,IAAI,EAAE,EAAE;IACRC,UAAU,EAAE,EAAE;IACdP,KAAK,EAAEC,WAAW,IAAIE,KAAK,CAAC,qBAAqB;EACnD,CAAC;EAED,oBAAOL,IAAA,CAACF,MAAM;IAAA,GAAKQ,SAAS;IAAAI,QAAA,EAAGN,KAAK,CAACM;EAAQ,CAAS,CAAC;AACzD,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { useIOTheme } from "../../../context";
|
|
5
4
|
import { IOText } from "../IOText";
|
|
6
5
|
|
|
@@ -8,10 +7,10 @@ import { IOText } from "../IOText";
|
|
|
8
7
|
* `MdH2` typographic style
|
|
9
8
|
*/
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
export const MdH2 =
|
|
10
|
+
export const MdH2 = ({
|
|
12
11
|
color: customColor,
|
|
13
12
|
...props
|
|
14
|
-
}
|
|
13
|
+
}) => {
|
|
15
14
|
const theme = useIOTheme();
|
|
16
15
|
const MdH2Props = {
|
|
17
16
|
...props,
|
|
@@ -21,9 +20,8 @@ export const MdH2 = /*#__PURE__*/forwardRef(({
|
|
|
21
20
|
color: customColor ?? theme["textHeading-default"]
|
|
22
21
|
};
|
|
23
22
|
return /*#__PURE__*/_jsx(IOText, {
|
|
24
|
-
ref: ref,
|
|
25
23
|
...MdH2Props,
|
|
26
24
|
children: props.children
|
|
27
25
|
});
|
|
28
|
-
}
|
|
26
|
+
};
|
|
29
27
|
//# sourceMappingURL=MdH2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["useIOTheme","IOText","jsx","_jsx","MdH2","color","customColor","props","theme","MdH2Props","weight","size","lineHeight","children"],"sourceRoot":"../../../../../src","sources":["components/typography/markdown/MdH2.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,MAAM,QAA4C,WAAW;;AAEtE;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAGA,OAAO,MAAMC,IAAI,GAAGA,CAAC;EACnBC,KAAK,EAAEC,WAAW;EAClB,GAAGC;AACkB,CAAC,KAAK;EAC3B,MAAMC,KAAK,GAAGR,UAAU,CAAC,CAAC;EAE1B,MAAMS,SAAsB,GAAG;IAC7B,GAAGF,KAAK;IACRG,MAAM,EAAE,UAAU;IAClBC,IAAI,EAAE,EAAE;IACRC,UAAU,EAAE,EAAE;IACdP,KAAK,EAAEC,WAAW,IAAIE,KAAK,CAAC,qBAAqB;EACnD,CAAC;EAED,oBAAOL,IAAA,CAACF,MAAM;IAAA,GAAKQ,SAAS;IAAAI,QAAA,EAAGN,KAAK,CAACM;EAAQ,CAAS,CAAC;AACzD,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
3
|
import { useIOTheme } from "../../../context";
|
|
5
4
|
import { IOText } from "../IOText";
|
|
6
5
|
|
|
@@ -8,10 +7,10 @@ import { IOText } from "../IOText";
|
|
|
8
7
|
* `MdH3` typographic style
|
|
9
8
|
*/
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
export const MdH3 =
|
|
10
|
+
export const MdH3 = ({
|
|
12
11
|
color: customColor,
|
|
13
12
|
...props
|
|
14
|
-
}
|
|
13
|
+
}) => {
|
|
15
14
|
const theme = useIOTheme();
|
|
16
15
|
const MdH3Props = {
|
|
17
16
|
...props,
|
|
@@ -21,9 +20,8 @@ export const MdH3 = /*#__PURE__*/forwardRef(({
|
|
|
21
20
|
color: customColor ?? theme["textHeading-default"]
|
|
22
21
|
};
|
|
23
22
|
return /*#__PURE__*/_jsx(IOText, {
|
|
24
|
-
ref: ref,
|
|
25
23
|
...MdH3Props,
|
|
26
24
|
children: props.children
|
|
27
25
|
});
|
|
28
|
-
}
|
|
26
|
+
};
|
|
29
27
|
//# sourceMappingURL=MdH3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["useIOTheme","IOText","jsx","_jsx","MdH3","color","customColor","props","theme","MdH3Props","weight","size","lineHeight","children"],"sourceRoot":"../../../../../src","sources":["components/typography/markdown/MdH3.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,MAAM,QAA4C,WAAW;;AAEtE;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAGA,OAAO,MAAMC,IAAI,GAAGA,CAAC;EACnBC,KAAK,EAAEC,WAAW;EAClB,GAAGC;AACkB,CAAC,KAAK;EAC3B,MAAMC,KAAK,GAAGR,UAAU,CAAC,CAAC;EAE1B,MAAMS,SAAsB,GAAG;IAC7B,GAAGF,KAAK;IACRG,MAAM,EAAE,UAAU;IAClBC,IAAI,EAAE,EAAE;IACRC,UAAU,EAAE,EAAE;IACdP,KAAK,EAAEC,WAAW,IAAIE,KAAK,CAAC,qBAAqB;EACnD,CAAC;EAED,oBAAOL,IAAA,CAACF,MAAM;IAAA,GAAKQ,SAAS;IAAAI,QAAA,EAAGN,KAAK,CAACM;EAAQ,CAAS,CAAC;AACzD,CAAC","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ export const IOThemes = {
|
|
|
9
9
|
dark: IOThemeDark
|
|
10
10
|
};
|
|
11
11
|
export const IOThemeContext = /*#__PURE__*/createContext({
|
|
12
|
-
themeType: Appearance.getColorScheme()
|
|
12
|
+
themeType: Appearance.getColorScheme(),
|
|
13
13
|
theme: Appearance.getColorScheme() === "dark" ? IOThemes.dark : IOThemes.light,
|
|
14
14
|
setTheme: () => void 0
|
|
15
15
|
});
|
|
@@ -19,15 +19,14 @@ export const IOThemeContextProvider = ({
|
|
|
19
19
|
children,
|
|
20
20
|
theme
|
|
21
21
|
}) => {
|
|
22
|
-
const [currentTheme, setCurrentTheme] = useState(theme ??
|
|
23
|
-
const resolvedTheme = currentTheme === "unspecified" ? Appearance.getColorScheme() ?? "light" : currentTheme;
|
|
22
|
+
const [currentTheme, setCurrentTheme] = useState(theme ?? Appearance.getColorScheme());
|
|
24
23
|
const handleThemeChange = useCallback(newTheme => {
|
|
25
24
|
setCurrentTheme(newTheme);
|
|
26
25
|
}, []);
|
|
27
26
|
return /*#__PURE__*/_jsx(IOThemeContext.Provider, {
|
|
28
27
|
value: {
|
|
29
28
|
themeType: currentTheme,
|
|
30
|
-
theme:
|
|
29
|
+
theme: IOThemes[currentTheme ?? "light"],
|
|
31
30
|
setTheme: handleThemeChange
|
|
32
31
|
},
|
|
33
32
|
children: children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createContext","useCallback","useContext","useState","Appearance","IOThemeDark","IOThemeLight","jsx","_jsx","IOThemes","light","dark","IOThemeContext","themeType","getColorScheme","theme","setTheme","useIOThemeContext","useIOTheme","IOThemeContextProvider","children","currentTheme","setCurrentTheme","
|
|
1
|
+
{"version":3,"names":["createContext","useCallback","useContext","useState","Appearance","IOThemeDark","IOThemeLight","jsx","_jsx","IOThemes","light","dark","IOThemeContext","themeType","getColorScheme","theme","setTheme","useIOThemeContext","useIOTheme","IOThemeContextProvider","children","currentTheme","setCurrentTheme","handleThemeChange","newTheme","Provider","value"],"sourceRoot":"../../../src","sources":["context/IOThemeContextProvider.tsx"],"mappings":";;AAAA,SAEEA,aAAa,EAEbC,WAAW,EACXC,UAAU,EACVC,QAAQ,QACH,OAAO;AACd,SAASC,UAAU,QAAyB,cAAc;AAC1D,SAAkBC,WAAW,EAAEC,YAAY,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtE,OAAO,MAAMC,QAAQ,GAAG;EAAEC,KAAK,EAAEJ,YAAY;EAAEK,IAAI,EAAEN;AAAY,CAAC;AAQlE,OAAO,MAAMO,cAA2C,gBACtDZ,aAAa,CAAqB;EAChCa,SAAS,EAAET,UAAU,CAACU,cAAc,CAAC,CAAC;EACtCC,KAAK,EACHX,UAAU,CAACU,cAAc,CAAC,CAAC,KAAK,MAAM,GAAGL,QAAQ,CAACE,IAAI,GAAGF,QAAQ,CAACC,KAAK;EACzEM,QAAQ,EAAEA,CAAA,KAAM,KAAK;AACvB,CAAC,CAAC;AAEJ,OAAO,MAAMC,iBAAiB,GAAGA,CAAA,KAAMf,UAAU,CAACU,cAAc,CAAC;AAEjE,OAAO,MAAMM,UAAU,GAAGA,CAAA,KAAMD,iBAAiB,CAAC,CAAC,CAACF,KAAK;AAMzD,OAAO,MAAMI,sBAAsB,GAAGA,CAAC;EACrCC,QAAQ;EACRL;AAC8C,CAAC,KAAK;EACpD,MAAM,CAACM,YAAY,EAAEC,eAAe,CAAC,GAAGnB,QAAQ,CAC9CY,KAAK,IAAIX,UAAU,CAACU,cAAc,CAAC,CACrC,CAAC;EAED,MAAMS,iBAAiB,GAAGtB,WAAW,CAAEuB,QAAyB,IAAK;IACnEF,eAAe,CAACE,QAAQ,CAAC;EAC3B,CAAC,EAAE,EAAE,CAAC;EAEN,oBACEhB,IAAA,CAACI,cAAc,CAACa,QAAQ;IACtBC,KAAK,EAAE;MACLb,SAAS,EAAEQ,YAAY;MACvBN,KAAK,EAAEN,QAAQ,CAACY,YAAY,IAAI,OAAO,CAAC;MACxCL,QAAQ,EAAEO;IACZ,CAAE;IAAAH,QAAA,EAEDA;EAAQ,CACc,CAAC;AAE9B,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { JSX, Ref } from "react";
|
|
1
2
|
import { GestureResponderEvent, View } from "react-native";
|
|
2
3
|
import { WithTestID } from "../../utils/types";
|
|
3
4
|
type AlertProps = WithTestID<{
|
|
5
|
+
ref?: Ref<View>;
|
|
4
6
|
variant: "error" | "warning" | "info" | "success";
|
|
5
7
|
content: string;
|
|
6
8
|
fullWidth?: boolean;
|
|
@@ -15,6 +17,6 @@ type AlertActionProps = {
|
|
|
15
17
|
onPress?: never;
|
|
16
18
|
};
|
|
17
19
|
type AlertType = AlertProps & AlertActionProps;
|
|
18
|
-
export declare const Alert:
|
|
20
|
+
export declare const Alert: ({ variant, content, action, onPress, fullWidth, accessibilityHint, ref: viewRef, testID }: AlertType) => JSX.Element;
|
|
19
21
|
export {};
|
|
20
22
|
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/Alert.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAEL,qBAAqB,EAErB,IAAI,EAEL,MAAM,cAAc,CAAC;AAStB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAS/C,KAAK,UAAU,GAAG,UAAU,CAAC;IAC3B,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAChB,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IAClD,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC,CAAC;AAEH,KAAK,gBAAgB,GACjB;IACE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACjD,GACD;IACE,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAEN,KAAK,SAAS,GAAG,UAAU,GAAG,gBAAgB,CAAC;AAgE/C,eAAO,MAAM,KAAK,GAAI,2FASnB,SAAS,KAAG,GAAG,CAAC,OAyGlB,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Ref } from "react";
|
|
1
2
|
import { AccessibilityRole, GestureResponderEvent, View } from "react-native";
|
|
2
3
|
import { WithTestID } from "../../utils/types";
|
|
3
4
|
import { IOPictogramsBleed } from "../pictograms";
|
|
4
5
|
type BaseBannerProps = WithTestID<{
|
|
6
|
+
ref?: Ref<View>;
|
|
5
7
|
color: "neutral" | "turquoise";
|
|
6
8
|
pictogramName: IOPictogramsBleed;
|
|
7
9
|
accessibilityLabel?: string;
|
|
@@ -38,6 +40,6 @@ type BannerCloseProps = {
|
|
|
38
40
|
};
|
|
39
41
|
export type Banner = BaseBannerProps & RequiredBannerProps & BannerActionProps & BannerCloseProps;
|
|
40
42
|
export declare const bannerBackgroundColours: Array<BaseBannerProps["color"]>;
|
|
41
|
-
export declare const Banner:
|
|
43
|
+
export declare const Banner: ({ color, pictogramName, title, content, action, labelClose, onPress, onClose, accessibilityHint, accessibilityLabel, accessibilityRole, ref: viewRef, testID }: Banner) => import("react/jsx-runtime").JSX.Element;
|
|
42
44
|
export {};
|
|
43
45
|
//# sourceMappingURL=Banner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../src/components/banner/Banner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../src/components/banner/Banner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EAGrB,IAAI,EAEL,MAAM,cAAc,CAAC;AAMtB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EACL,iBAAiB,EAGlB,MAAM,eAAe,CAAC;AA+BvB,KAAK,eAAe,GAAG,UAAU,CAAC;IAChC,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAChB,KAAK,EAAE,SAAS,GAAG,WAAW,CAAC;IAC/B,aAAa,EAAE,iBAAiB,CAAC;IAEjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC,CAAC;AAGH,KAAK,mBAAmB,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,KAAK,oBAAoB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,KAAK,CAAA;CAAE,CAAC;AAE/D,KAAK,uBAAuB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpE,KAAK,mBAAmB,GACpB,mBAAmB,GACnB,oBAAoB,GACpB,uBAAuB,CAAC;AAE5B,KAAK,iBAAiB,GAClB;IACE,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAChD,iBAAiB,CAAC,EAAE,OAAO,CAAC,iBAAiB,EAAE,QAAQ,GAAG,MAAM,CAAC,CAAC;CACnE,GACD;IACE,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,CAAC;AAGN,KAAK,gBAAgB,GACjB;IACE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GACD;IACE,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,UAAU,CAAC,EAAE,KAAK,CAAC;CACpB,CAAC;AAEN,MAAM,MAAM,MAAM,GAAG,eAAe,GAClC,mBAAmB,GACnB,iBAAiB,GACjB,gBAAgB,CAAC;AAMnB,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,CAGnE,CAAC;AAkBF,eAAO,MAAM,MAAM,GAAI,gKAcpB,MAAM,4CAqHR,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps } from "react";
|
|
1
|
+
import { ComponentProps, Ref } from "react";
|
|
2
2
|
import { AccessibilityRole, GestureResponderEvent, Pressable, TextProps, TextStyle, View } from "react-native";
|
|
3
3
|
import { WithTestID } from "../../../utils/types";
|
|
4
4
|
import { IOIcons } from "../../icons";
|
|
@@ -20,6 +20,7 @@ type IOButtonSpecificProps = {
|
|
|
20
20
|
textAlign?: never;
|
|
21
21
|
};
|
|
22
22
|
export type IOButtonProps = WithTestID<IOButtonSpecificProps & {
|
|
23
|
+
ref?: Ref<View>;
|
|
23
24
|
/**
|
|
24
25
|
* @default primary
|
|
25
26
|
*/
|
|
@@ -52,6 +53,6 @@ export type IOButtonProps = WithTestID<IOButtonSpecificProps & {
|
|
|
52
53
|
*/
|
|
53
54
|
accessibilityRole?: Extract<AccessibilityRole, "button" | "link">;
|
|
54
55
|
} & Pick<ComponentProps<typeof Pressable>, "disabled" | "accessibilityLabel" | "accessibilityHint">>;
|
|
55
|
-
export declare const IOButton:
|
|
56
|
+
export declare const IOButton: ({ variant, color, label, fullWidth, disabled, loading, numberOfLines, textAlign, icon, iconPosition, onPress, accessibilityLabel, accessibilityHint, accessibilityRole, ref, testID }: IOButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
57
|
export {};
|
|
57
58
|
//# sourceMappingURL=IOButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/IOButton/IOButton.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IOButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/IOButton/IOButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,GAAG,EAAkC,MAAM,OAAO,CAAC;AAC5E,OAAO,EACL,iBAAiB,EAEjB,qBAAqB,EACrB,SAAS,EAGT,SAAS,EACT,SAAS,EACT,IAAI,EAEL,MAAM,cAAc,CAAC;AAYtB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAIL,OAAO,EACR,MAAM,aAAa,CAAC;AASrB,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3D,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,cAAc,CAAC,OAAO,QAAQ,CAAC,EAC/B,eAAe,GAAG,WAAW,CAC9B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,cAAc,CAAC,OAAO,QAAQ,CAAC,EAC/B,WAAW,GAAG,SAAS,CACxB,CAAC;AAEF,KAAK,qBAAqB,GACtB;IACE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,GACD;IACE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB,CAAC;AAEN,MAAM,MAAM,aAAa,GAAG,UAAU,CACpC,qBAAqB,GAAG;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,iBAAiB,EAAE,QAAQ,GAAG,MAAM,CAAC,CAAC;CACnE,GAAG,IAAI,CACJ,cAAc,CAAC,OAAO,SAAS,CAAC,EAChC,UAAU,GAAG,oBAAoB,GAAG,mBAAmB,CACxD,CACJ,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,uLAiBtB,aAAa,4CAqNf,CAAC"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { Ref, ReactNode } from "react";
|
|
2
2
|
import { View, ViewProps, ViewStyle } from "react-native";
|
|
3
|
+
import { WithTestID } from "src/utils/types";
|
|
3
4
|
import type { IOAppMargin } from "../../core";
|
|
5
|
+
type IOContentWrapperProps = WithTestID<Omit<ViewProps, "style"> & {
|
|
6
|
+
ref?: Ref<View>;
|
|
7
|
+
margin?: IOAppMargin;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
style?: Omit<ViewStyle, "paddingHorizontal" | "paddingLeft" | "paddingRight">;
|
|
10
|
+
}>;
|
|
4
11
|
/**
|
|
5
12
|
`ContentWrapper` is the main wrapper of the application. It automatically sets side margins,
|
|
6
13
|
depending on the size value
|
|
7
14
|
@param {IOContentWrapper} margin
|
|
8
15
|
*/
|
|
9
|
-
export declare const ContentWrapper: import("react").
|
|
10
|
-
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
style?: Omit<ViewStyle, "paddingHorizontal" | "paddingLeft" | "paddingRight">;
|
|
13
|
-
} & import("src/utils/types").TestID & import("react").RefAttributes<View>>;
|
|
16
|
+
export declare const ContentWrapper: ({ margin, style, children, testID, ref, ...rest }: IOContentWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
14
18
|
//# sourceMappingURL=ContentWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/ContentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ContentWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/ContentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,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,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAChB,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,mDAO5B,qBAAqB,4CAYvB,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Ref } from "react";
|
|
1
2
|
import { View } from "react-native";
|
|
2
3
|
type Props = {
|
|
4
|
+
ref?: Ref<View>;
|
|
3
5
|
value: string;
|
|
4
6
|
onValueChange: (value: string) => void;
|
|
5
7
|
length: number;
|
|
@@ -30,6 +32,6 @@ type Props = {
|
|
|
30
32
|
* @param errorMessage - The error message to display
|
|
31
33
|
* @returns
|
|
32
34
|
*/
|
|
33
|
-
export declare const OTPInput:
|
|
35
|
+
export declare const OTPInput: ({ value, onValueChange, length, accessibilityLabel, accessibilityHint, accessibilityValueText, onValidate, errorMessage, secret, autocomplete, inputAccessoryViewID, autoFocus, deleteButtonAccessibilityLabel, ref }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
34
36
|
export {};
|
|
35
37
|
//# sourceMappingURL=OTPInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTPInput.d.ts","sourceRoot":"","sources":["../../../../src/components/otpInput/OTPInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OTPInput.d.ts","sourceRoot":"","sources":["../../../../src/components/otpInput/OTPInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAmD,MAAM,OAAO,CAAC;AAC7E,OAAO,EAOL,IAAI,EACL,MAAM,cAAc,CAAC;AAWtB,KAAK,KAAK,GAAG;IACX,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE;QAChC,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;KAChB,KAAK,MAAM,CAAC;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,GAAI,uNAetB,KAAK,4CAuJP,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Ref } from "react";
|
|
1
2
|
import { GestureResponderEvent, TextInputProps } from "react-native";
|
|
2
3
|
import { WithTestID } from "src/utils/types";
|
|
3
4
|
type SearchInputPressableProps = {
|
|
@@ -17,6 +18,7 @@ type SearchInputActionProps = {
|
|
|
17
18
|
value: string;
|
|
18
19
|
};
|
|
19
20
|
type SearchInputProps = WithTestID<{
|
|
21
|
+
ref?: Ref<SearchInputRef>;
|
|
20
22
|
accessibilityLabel: TextInputProps["accessibilityLabel"];
|
|
21
23
|
cancelButtonLabel: string;
|
|
22
24
|
clearAccessibilityLabel: string;
|
|
@@ -26,6 +28,6 @@ type SearchInputProps = WithTestID<{
|
|
|
26
28
|
export type SearchInputRef = {
|
|
27
29
|
focus: () => void;
|
|
28
30
|
};
|
|
29
|
-
export declare const SearchInput:
|
|
31
|
+
export declare const SearchInput: ({ accessibilityLabel, cancelButtonLabel, clearAccessibilityLabel, placeholder, autoFocus, keepCancelVisible, onCancel, onChangeText, pressable, testID, value, ref }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
32
|
export {};
|
|
31
33
|
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../src/components/searchInput/SearchInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../src/components/searchInput/SearchInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAsD,MAAM,OAAO,CAAC;AAChF,OAAO,EAGL,qBAAqB,EAOrB,cAAc,EAEf,MAAM,cAAc,CAAC;AAUtB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AA2B7C,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACjD,CAAC;AAEF,KAAK,sBAAsB,GACvB;IACE,SAAS,EAAE,yBAAyB,CAAC;IACrC,iBAAiB,CAAC,EAAE,KAAK,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GACD;IACE,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEN,KAAK,gBAAgB,GAAG,UAAU,CAAC;IACjC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1B,kBAAkB,EAAE,cAAc,CAAC,oBAAoB,CAAC,CAAC;IACzD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CACzC,CAAC,GACA,sBAAsB,CAAC;AAEzB,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAUF,eAAO,MAAM,WAAW,GAAI,sKAazB,gBAAgB,4CA8NlB,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { Ref } from "react";
|
|
1
2
|
import { GestureResponderEvent, View } from "react-native";
|
|
2
3
|
import { WithTestID } from "../../utils/types";
|
|
3
4
|
import { IOIcons } from "../icons";
|
|
4
5
|
type ColorMode = "light" | "dark";
|
|
5
6
|
export type TabItem = WithTestID<{
|
|
7
|
+
ref?: Ref<View>;
|
|
6
8
|
label: string;
|
|
7
9
|
color?: ColorMode;
|
|
8
10
|
selected?: boolean;
|
|
@@ -13,16 +15,6 @@ export type TabItem = WithTestID<{
|
|
|
13
15
|
onPress?: (event: GestureResponderEvent) => void;
|
|
14
16
|
disabled?: boolean;
|
|
15
17
|
}>;
|
|
16
|
-
declare const TabItem: import("react").
|
|
17
|
-
label: string;
|
|
18
|
-
color?: ColorMode;
|
|
19
|
-
selected?: boolean;
|
|
20
|
-
icon?: IOIcons;
|
|
21
|
-
iconSelected?: IOIcons;
|
|
22
|
-
accessibilityLabel: string;
|
|
23
|
-
accessibilityHint?: string;
|
|
24
|
-
onPress?: (event: GestureResponderEvent) => void;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
} & import("../../utils/types").TestID & import("react").RefAttributes<View>>;
|
|
18
|
+
declare const TabItem: ({ label, color, selected, accessibilityLabel, accessibilityHint, testID, onPress, disabled, icon, iconSelected, ref }: TabItem) => import("react/jsx-runtime").JSX.Element;
|
|
27
19
|
export { TabItem };
|
|
28
20
|
//# sourceMappingURL=TabItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabItem.d.ts","sourceRoot":"","sources":["../../../../src/components/tabs/TabItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabItem.d.ts","sourceRoot":"","sources":["../../../../src/components/tabs/TabItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAwB,MAAM,OAAO,CAAC;AAClD,OAAO,EACL,qBAAqB,EAGrB,IAAI,EACL,MAAM,cAAc,CAAC;AAYtB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAQ,MAAM,UAAU,CAAC;AAGzC,KAAK,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAIlC,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC;IAC/B,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAoBH,QAAA,MAAM,OAAO,GAAI,uHAYd,OAAO,4CAoIT,CAAC;AAgBF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -16,6 +16,7 @@ type InputTextProps = WithTestID<{
|
|
|
16
16
|
icon?: IOIcons;
|
|
17
17
|
rightElement?: ReactNode;
|
|
18
18
|
counterLimit?: number;
|
|
19
|
+
showCounterOnlyWhenLimitReached?: boolean;
|
|
19
20
|
accessibilityAnnounceLimitReached?: string;
|
|
20
21
|
bottomMessage?: string;
|
|
21
22
|
bottomMessageColor?: IOColors;
|
|
@@ -25,6 +26,6 @@ type InputTextProps = WithTestID<{
|
|
|
25
26
|
onFocus?: () => void;
|
|
26
27
|
autoFocus?: boolean;
|
|
27
28
|
}>;
|
|
28
|
-
export declare const TextInputBase: ({ disabled, placeholder, value, onChangeText, accessibilityLabel, accessibilityHint, textInputProps, inputType, status, icon, rightElement, counterLimit, accessibilityAnnounceLimitReached, bottomMessage, bottomMessageColor, onBlur, onFocus, isPassword, autoFocus, testID }: InputTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const TextInputBase: ({ disabled, placeholder, value, onChangeText, accessibilityLabel, accessibilityHint, textInputProps, inputType, status, icon, rightElement, counterLimit, showCounterOnlyWhenLimitReached, accessibilityAnnounceLimitReached, bottomMessage, bottomMessageColor, onBlur, onFocus, isPassword, autoFocus, testID }: InputTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
30
|
export {};
|
|
30
31
|
//# sourceMappingURL=TextInputBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInputBase.d.ts","sourceRoot":"","sources":["../../../../src/components/textInput/TextInputBase.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAMV,MAAM,OAAO,CAAC;AAsBf,OAAO,EAAE,QAAQ,EAA6B,MAAM,YAAY,CAAC;AAOjE,OAAO,EAAE,gBAAgB,EAAuB,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAmB,OAAO,EAAQ,MAAM,UAAU,CAAC;AAI1D,KAAK,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;AAEhE,KAAK,cAAc,GAAG,UAAU,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,QAAQ,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"TextInputBase.d.ts","sourceRoot":"","sources":["../../../../src/components/textInput/TextInputBase.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAMV,MAAM,OAAO,CAAC;AAsBf,OAAO,EAAE,QAAQ,EAA6B,MAAM,YAAY,CAAC;AAOjE,OAAO,EAAE,gBAAgB,EAAuB,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAmB,OAAO,EAAQ,MAAM,UAAU,CAAC;AAI1D,KAAK,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;AAEhE,KAAK,cAAc,GAAG,UAAU,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,QAAQ,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC,CAAC;AAoJH,eAAO,MAAM,aAAa,GAAI,mTAsB3B,cAAc,4CAiVhB,CAAC"}
|
|
@@ -1,31 +1,18 @@
|
|
|
1
|
+
import { ComponentProps, Ref } from "react";
|
|
1
2
|
import { TextInputValidationRefProps } from "../../utils/types";
|
|
2
|
-
import {
|
|
3
|
-
import { IOIcons } from "../icons";
|
|
3
|
+
import { TextInputBase } from "./TextInputBase";
|
|
4
4
|
export type ValidationWithOptions = {
|
|
5
5
|
isValid: boolean;
|
|
6
6
|
errorMessage: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
status?: "disabled" | "error" | "initial" | "focused";
|
|
17
|
-
icon?: IOIcons;
|
|
18
|
-
rightElement?: import("react").ReactNode;
|
|
19
|
-
counterLimit?: number;
|
|
20
|
-
accessibilityAnnounceLimitReached?: string;
|
|
21
|
-
bottomMessage?: string;
|
|
22
|
-
bottomMessageColor?: IOColors;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
isPassword?: boolean;
|
|
25
|
-
onBlur?: () => void;
|
|
26
|
-
onFocus?: () => void;
|
|
27
|
-
autoFocus?: boolean;
|
|
28
|
-
} & import("../../utils/types").TestID, "status" | "rightElement" | "bottomMessageColor" | "isPassword"> & {
|
|
8
|
+
type TextInputValidationProps = Omit<ComponentProps<typeof TextInputBase>, "rightElement" | "status" | "bottomMessageColor" | "isPassword"> & {
|
|
9
|
+
ref?: Ref<TextInputValidationRefProps>;
|
|
10
|
+
/**
|
|
11
|
+
* If true, the character counter will only be displayed/announced when the counter limit is reached.
|
|
12
|
+
* If false or undefined, the character counter will be displayed/announced whenever the counter is enabled,
|
|
13
|
+
* including before the user starts typing (for example, `0 / limit`).
|
|
14
|
+
*/
|
|
15
|
+
showCounterOnlyWhenLimitReached?: boolean;
|
|
29
16
|
/**
|
|
30
17
|
* This function can return either a `boolean` or a `ValidationWithOptions` object.
|
|
31
18
|
* If a `boolean` is returned and the field is not valid, the value of the errorMessage prop will be displayed/announced.
|
|
@@ -44,5 +31,7 @@ export declare const TextInputValidation: import("react").ForwardRefExoticCompon
|
|
|
44
31
|
* A string that will be read by screen readers when the field is not valid.
|
|
45
32
|
*/
|
|
46
33
|
accessibilityErrorLabel?: string;
|
|
47
|
-
}
|
|
34
|
+
};
|
|
35
|
+
export declare const TextInputValidation: ({ onValidate, errorMessage, value, bottomMessage, onBlur, onFocus, validationMode, accessibilityErrorLabel, ref, ...props }: TextInputValidationProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export {};
|
|
48
37
|
//# sourceMappingURL=TextInputValidation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInputValidation.d.ts","sourceRoot":"","sources":["../../../../src/components/textInput/TextInputValidation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextInputValidation.d.ts","sourceRoot":"","sources":["../../../../src/components/textInput/TextInputValidation.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,GAAG,EAKJ,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAShE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/E,KAAK,wBAAwB,GAAG,IAAI,CAClC,cAAc,CAAC,OAAO,aAAa,CAAC,EACpC,cAAc,GAAG,QAAQ,GAAG,oBAAoB,GAAG,YAAY,CAChE,GAAG;IACF,GAAG,CAAC,EAAE,GAAG,CAAC,2BAA2B,CAAC,CAAC;IACvC;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C;;;;OAIG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,qBAAqB,CAAC;IAC/D;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAC;IACzC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC;AAcF,eAAO,MAAM,mBAAmB,GAAI,6HAWjC,wBAAwB,4CA8G1B,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Ref } from "react";
|
|
1
2
|
import { View } from "react-native";
|
|
2
3
|
import { IOFontWeight } from "../../utils/fonts";
|
|
3
4
|
import { TypographicStyleAsLinkProps, TypographicStyleProps } from "./IOText";
|
|
4
|
-
type BodyStyleProps = TypographicStyleProps & {
|
|
5
|
+
type BodyStyleProps = Omit<TypographicStyleProps, "ref"> & {
|
|
6
|
+
ref?: Ref<View>;
|
|
5
7
|
weight?: Extract<IOFontWeight, "Regular" | "Semibold">;
|
|
6
8
|
} & TypographicStyleAsLinkProps;
|
|
7
9
|
export declare const bodyFontSize = 16;
|
|
@@ -9,6 +11,6 @@ export declare const bodyLineHeight = 24;
|
|
|
9
11
|
/**
|
|
10
12
|
* `Body` typographic style
|
|
11
13
|
*/
|
|
12
|
-
export declare const Body:
|
|
14
|
+
export declare const Body: ({ ref, weight: customWeight, color: customColor, asLink, avoidPressable, accessibilityRole, textStyle: customTextStyle, onPress, ...props }: BodyStyleProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export {};
|
|
14
16
|
//# sourceMappingURL=Body.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Body.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAa,IAAI,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAGL,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAElB,KAAK,cAAc,GAAG,IAAI,CAAC,qBAAqB,EAAE,KAAK,CAAC,GAAG;IACzD,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;CACxD,GAAG,2BAA2B,CAAC;AAEhC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,6IAUlB,cAAc,4CA6ChB,CAAC"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IOTextProps } from "./IOText";
|
|
1
|
+
import { TypographicStyleProps } from "./IOText";
|
|
3
2
|
/**
|
|
4
3
|
* `BodyMonospace` typographic style
|
|
5
4
|
*/
|
|
6
|
-
export declare const BodyMonospace:
|
|
7
|
-
textStyle?: import("./IOText").IOTextStyle;
|
|
8
|
-
style?: import("./IOText").IOTextStyle;
|
|
9
|
-
} & {
|
|
10
|
-
color?: "white" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-450" | "grey-650" | "grey-700" | "grey-850" | "grey-900" | "black" | "blueIO-850" | "blueIO-600" | "blueIO-500" | "blueIO-400" | "blueIO-300" | "blueIO-200" | "blueIO-150" | "blueIO-100" | "blueIO-50" | "hanPurple-850" | "hanPurple-500" | "hanPurple-250" | "hanPurple-100" | "hanPurple-50" | "turquoise-850" | "turquoise-500" | "turquoise-450" | "turquoise-300" | "turquoise-150" | "turquoise-100" | "turquoise-50" | "error-850" | "error-600" | "error-500" | "error-400" | "error-100" | "warning-850" | "warning-700" | "warning-500" | "warning-400" | "warning-100" | "success-850" | "success-700" | "success-500" | "success-400" | "success-100" | "info-850" | "info-700" | "info-500" | "info-400" | "info-100" | "blueItalia-850" | "blueItalia-600" | "blueItalia-500" | "blueItalia-300" | "blueItalia-100" | "blueItalia-50" | undefined;
|
|
11
|
-
} & import("react").RefAttributes<View>>;
|
|
5
|
+
export declare const BodyMonospace: ({ color: customColor, ...props }: TypographicStyleProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
6
|
//# sourceMappingURL=BodyMonospace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BodyMonospace.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/BodyMonospace.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BodyMonospace.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/BodyMonospace.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,kCAG3B,qBAAqB,4CAiBvB,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Ref } from "react";
|
|
1
2
|
import { View } from "react-native";
|
|
2
3
|
import { IOFontWeight } from "../../utils/fonts";
|
|
3
4
|
import { TypographicStyleAsLinkProps, TypographicStyleProps } from "./IOText";
|
|
4
|
-
type BodySmallProps = TypographicStyleProps & {
|
|
5
|
+
type BodySmallProps = Omit<TypographicStyleProps, "ref"> & {
|
|
6
|
+
ref?: Ref<View>;
|
|
5
7
|
weight?: Extract<IOFontWeight, "Regular" | "Semibold">;
|
|
6
8
|
} & TypographicStyleAsLinkProps;
|
|
7
9
|
export declare const bodySmallFontSize = 14;
|
|
@@ -9,6 +11,6 @@ export declare const bodySmallLineHeight = 21;
|
|
|
9
11
|
/**
|
|
10
12
|
* `BodySmall` typographic style
|
|
11
13
|
*/
|
|
12
|
-
export declare const BodySmall:
|
|
14
|
+
export declare const BodySmall: ({ ref, weight: customWeight, color: customColor, asLink, avoidPressable, accessibilityRole, textStyle: customTextStyle, onPress, ...props }: BodySmallProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export {};
|
|
14
16
|
//# sourceMappingURL=BodySmall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BodySmall.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/BodySmall.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BodySmall.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/BodySmall.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAa,IAAI,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAGL,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAElB,KAAK,cAAc,GAAG,IAAI,CAAC,qBAAqB,EAAE,KAAK,CAAC,GAAG;IACzD,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;CACxD,GAAG,2BAA2B,CAAC;AAEhC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,6IAUvB,cAAc,4CA6ChB,CAAC"}
|