@pagopa/io-app-design-system 1.3.2 → 1.5.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/README.md +11 -0
- package/lib/commonjs/components/accordion/AccordionItem.js +137 -0
- package/lib/commonjs/components/accordion/AccordionItem.js.map +1 -0
- package/lib/commonjs/components/accordion/index.js +4 -4
- package/lib/commonjs/components/accordion/index.js.map +1 -1
- package/lib/commonjs/components/alert/Alert.js +1 -1
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/banner/Banner.js +1 -1
- package/lib/commonjs/components/banner/Banner.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonExtendedOutline.js +1 -1
- package/lib/commonjs/components/buttons/ButtonExtendedOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonLink.js +6 -6
- package/lib/commonjs/components/buttons/ButtonLink.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonOutline.js +10 -10
- package/lib/commonjs/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/commonjs/components/buttons/ButtonSolid.js +5 -5
- package/lib/commonjs/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButton.js +4 -4
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonContained.js +4 -4
- package/lib/commonjs/components/buttons/IconButtonContained.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButtonSolid.js +5 -5
- package/lib/commonjs/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/commonjs/components/common/LogoPaymentWithFallback.js +49 -0
- package/lib/commonjs/components/common/LogoPaymentWithFallback.js.map +1 -0
- package/lib/commonjs/components/index.js +22 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/layout/BlockButtons.js +82 -0
- package/lib/commonjs/components/layout/BlockButtons.js.map +1 -0
- package/lib/commonjs/components/layout/FooterWithButtons.js +41 -0
- package/lib/commonjs/components/layout/FooterWithButtons.js.map +1 -0
- package/lib/commonjs/components/layout/index.js +11 -0
- package/lib/commonjs/components/layout/index.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemAction.js +1 -1
- package/lib/commonjs/components/listitems/ListItemAction.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js +1 -1
- package/lib/commonjs/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemIDP.js +1 -1
- package/lib/commonjs/components/listitems/ListItemIDP.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js +1 -1
- package/lib/commonjs/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js +1 -1
- package/lib/commonjs/components/listitems/ListItemNav.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js +1 -1
- package/lib/commonjs/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js +1 -1
- package/lib/commonjs/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/commonjs/components/listitems/ListItemTransaction.js +47 -29
- package/lib/commonjs/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/commonjs/components/listitems/hooks/useListItemSpringAnimation.js +1 -1
- package/lib/commonjs/components/listitems/hooks/useListItemSpringAnimation.js.map +1 -1
- package/lib/commonjs/components/tabs/TabItem.js +1 -1
- package/lib/commonjs/components/tabs/TabItem.js.map +1 -1
- package/lib/commonjs/components/tabs/TabNavigation.js +2 -2
- package/lib/commonjs/components/tabs/TabNavigation.js.map +1 -1
- package/lib/commonjs/components/{accordion/IOAccordion.js → textInput/TextInput.js} +5 -27
- package/lib/commonjs/components/textInput/TextInput.js.map +1 -0
- package/lib/commonjs/components/textInput/TextInputBase.js +233 -0
- package/lib/commonjs/components/textInput/TextInputBase.js.map +1 -0
- package/lib/commonjs/components/textInput/TextInputPassword.js +36 -0
- package/lib/commonjs/components/textInput/TextInputPassword.js.map +1 -0
- package/lib/commonjs/components/textInput/TextInputValidation.js +57 -0
- package/lib/commonjs/components/textInput/TextInputValidation.js.map +1 -0
- package/lib/commonjs/components/textInput/index.js +39 -0
- package/lib/commonjs/components/textInput/index.js.map +1 -0
- package/lib/commonjs/core/IOAnimations.js +5 -0
- package/lib/commonjs/core/IOAnimations.js.map +1 -1
- package/lib/commonjs/core/IOShapes.js +3 -1
- package/lib/commonjs/core/IOShapes.js.map +1 -1
- package/lib/commonjs/stories/ButtonDS.stories.js +34 -0
- package/lib/commonjs/stories/ButtonDS.stories.js.map +1 -0
- package/lib/commonjs/stories/H1.stories.js +33 -0
- package/lib/commonjs/stories/H1.stories.js.map +1 -0
- package/lib/commonjs/stories/H2.stories.js +33 -0
- package/lib/commonjs/stories/H2.stories.js.map +1 -0
- package/lib/commonjs/stories/H3.stories.js +33 -0
- package/lib/commonjs/stories/H3.stories.js.map +1 -0
- package/lib/commonjs/stories/H4.stories.js +33 -0
- package/lib/commonjs/stories/H4.stories.js.map +1 -0
- package/lib/commonjs/stories/H5.stories.js +33 -0
- package/lib/commonjs/stories/H5.stories.js.map +1 -0
- package/lib/commonjs/stories/H6.stories.js +33 -0
- package/lib/commonjs/stories/H6.stories.js.map +1 -0
- package/lib/commonjs/stories/Label.stories.js +33 -0
- package/lib/commonjs/stories/Label.stories.js.map +1 -0
- package/lib/commonjs/stories/LabelSmall.stories.js +33 -0
- package/lib/commonjs/stories/LabelSmall.stories.js.map +1 -0
- package/lib/commonjs/stories/Link.stories.js +33 -0
- package/lib/commonjs/stories/Link.stories.js.map +1 -0
- package/lib/commonjs/stories/Monospace.stories.js +33 -0
- package/lib/commonjs/stories/Monospace.stories.js.map +1 -0
- package/lib/commonjs/utils/accessibility.js +19 -0
- package/lib/commonjs/utils/accessibility.js.map +1 -0
- package/lib/commonjs/utils/fonts.js +13 -4
- package/lib/commonjs/utils/fonts.js.map +1 -1
- package/lib/commonjs/utils/object.js +16 -0
- package/lib/commonjs/utils/object.js.map +1 -0
- package/lib/commonjs/utils/textInput/index.js +24 -0
- package/lib/commonjs/utils/textInput/index.js.map +1 -0
- package/lib/commonjs/utils/url.js +14 -0
- package/lib/commonjs/utils/url.js.map +1 -0
- package/lib/module/components/accordion/AccordionItem.js +126 -0
- package/lib/module/components/accordion/AccordionItem.js.map +1 -0
- package/lib/module/components/accordion/index.js +1 -1
- package/lib/module/components/accordion/index.js.map +1 -1
- package/lib/module/components/alert/Alert.js +1 -1
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/banner/Banner.js +1 -1
- package/lib/module/components/banner/Banner.js.map +1 -1
- package/lib/module/components/buttons/ButtonExtendedOutline.js +1 -1
- package/lib/module/components/buttons/ButtonExtendedOutline.js.map +1 -1
- package/lib/module/components/buttons/ButtonLink.js +6 -6
- package/lib/module/components/buttons/ButtonLink.js.map +1 -1
- package/lib/module/components/buttons/ButtonOutline.js +10 -10
- package/lib/module/components/buttons/ButtonOutline.js.map +1 -1
- package/lib/module/components/buttons/ButtonSolid.js +5 -5
- package/lib/module/components/buttons/ButtonSolid.js.map +1 -1
- package/lib/module/components/buttons/IconButton.js +4 -4
- package/lib/module/components/buttons/IconButton.js.map +1 -1
- package/lib/module/components/buttons/IconButtonContained.js +4 -4
- package/lib/module/components/buttons/IconButtonContained.js.map +1 -1
- package/lib/module/components/buttons/IconButtonSolid.js +5 -5
- package/lib/module/components/buttons/IconButtonSolid.js.map +1 -1
- package/lib/module/components/common/LogoPaymentWithFallback.js +40 -0
- package/lib/module/components/common/LogoPaymentWithFallback.js.map +1 -0
- package/lib/module/components/index.js +2 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/BlockButtons.js +73 -0
- package/lib/module/components/layout/BlockButtons.js.map +1 -0
- package/lib/module/components/layout/FooterWithButtons.js +32 -0
- package/lib/module/components/layout/FooterWithButtons.js.map +1 -0
- package/lib/module/components/layout/index.js +1 -0
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/components/listitems/ListItemAction.js +1 -1
- package/lib/module/components/listitems/ListItemAction.js.map +1 -1
- package/lib/module/components/listitems/ListItemCheckbox.js +1 -1
- package/lib/module/components/listitems/ListItemCheckbox.js.map +1 -1
- package/lib/module/components/listitems/ListItemIDP.js +1 -1
- package/lib/module/components/listitems/ListItemIDP.js.map +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js +1 -1
- package/lib/module/components/listitems/ListItemInfoCopy.js.map +1 -1
- package/lib/module/components/listitems/ListItemNav.js +1 -1
- package/lib/module/components/listitems/ListItemNav.js.map +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js +1 -1
- package/lib/module/components/listitems/ListItemNavAlert.js.map +1 -1
- package/lib/module/components/listitems/ListItemRadio.js +1 -1
- package/lib/module/components/listitems/ListItemRadio.js.map +1 -1
- package/lib/module/components/listitems/ListItemTransaction.js +48 -30
- package/lib/module/components/listitems/ListItemTransaction.js.map +1 -1
- package/lib/module/components/listitems/hooks/useListItemSpringAnimation.js +1 -1
- package/lib/module/components/listitems/hooks/useListItemSpringAnimation.js.map +1 -1
- package/lib/module/components/tabs/TabItem.js +1 -1
- package/lib/module/components/tabs/TabItem.js.map +1 -1
- package/lib/module/components/tabs/TabNavigation.js +2 -2
- package/lib/module/components/tabs/TabNavigation.js.map +1 -1
- package/lib/module/components/textInput/TextInput.js +4 -0
- package/lib/module/components/textInput/TextInput.js.map +1 -0
- package/lib/module/components/textInput/TextInputBase.js +225 -0
- package/lib/module/components/textInput/TextInputBase.js.map +1 -0
- package/lib/module/components/textInput/TextInputPassword.js +27 -0
- package/lib/module/components/textInput/TextInputPassword.js.map +1 -0
- package/lib/module/components/textInput/TextInputValidation.js +47 -0
- package/lib/module/components/textInput/TextInputValidation.js.map +1 -0
- package/lib/module/components/textInput/index.js +4 -0
- package/lib/module/components/textInput/index.js.map +1 -0
- package/lib/module/core/IOAnimations.js +5 -0
- package/lib/module/core/IOAnimations.js.map +1 -1
- package/lib/module/core/IOShapes.js +1 -0
- package/lib/module/core/IOShapes.js.map +1 -1
- package/lib/module/stories/ButtonDS.stories.js +27 -0
- package/lib/module/stories/ButtonDS.stories.js.map +1 -0
- package/lib/module/stories/H1.stories.js +26 -0
- package/lib/module/stories/H1.stories.js.map +1 -0
- package/lib/module/stories/H2.stories.js +26 -0
- package/lib/module/stories/H2.stories.js.map +1 -0
- package/lib/module/stories/H3.stories.js +26 -0
- package/lib/module/stories/H3.stories.js.map +1 -0
- package/lib/module/stories/H4.stories.js +26 -0
- package/lib/module/stories/H4.stories.js.map +1 -0
- package/lib/module/stories/H5.stories.js +26 -0
- package/lib/module/stories/H5.stories.js.map +1 -0
- package/lib/module/stories/H6.stories.js +26 -0
- package/lib/module/stories/H6.stories.js.map +1 -0
- package/lib/module/stories/Label.stories.js +26 -0
- package/lib/module/stories/Label.stories.js.map +1 -0
- package/lib/module/stories/LabelSmall.stories.js +26 -0
- package/lib/module/stories/LabelSmall.stories.js.map +1 -0
- package/lib/module/stories/Link.stories.js +26 -0
- package/lib/module/stories/Link.stories.js.map +1 -0
- package/lib/module/stories/Monospace.stories.js +26 -0
- package/lib/module/stories/Monospace.stories.js.map +1 -0
- package/lib/module/utils/accessibility.js +10 -0
- package/lib/module/utils/accessibility.js.map +1 -0
- package/lib/module/utils/fonts.js +13 -4
- package/lib/module/utils/fonts.js.map +1 -1
- package/lib/module/utils/object.js +7 -0
- package/lib/module/utils/object.js.map +1 -0
- package/lib/module/utils/textInput/index.js +17 -0
- package/lib/module/utils/textInput/index.js.map +1 -0
- package/lib/module/utils/url.js +7 -0
- package/lib/module/utils/url.js.map +1 -0
- package/lib/typescript/components/accordion/AccordionItem.d.ts +14 -0
- package/lib/typescript/components/accordion/AccordionItem.d.ts.map +1 -0
- package/lib/typescript/components/accordion/index.d.ts +1 -1
- package/lib/typescript/components/accordion/index.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonSolid.d.ts +16 -0
- package/lib/typescript/components/buttons/ButtonSolid.d.ts.map +1 -1
- package/lib/typescript/components/common/LogoPaymentWithFallback.d.ts +27 -0
- package/lib/typescript/components/common/LogoPaymentWithFallback.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +2 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/layout/BlockButtons.d.ts +53 -0
- package/lib/typescript/components/layout/BlockButtons.d.ts.map +1 -0
- package/lib/typescript/components/layout/FooterWithButtons.d.ts +9 -0
- package/lib/typescript/components/layout/FooterWithButtons.d.ts.map +1 -0
- package/lib/typescript/components/layout/index.d.ts +1 -0
- package/lib/typescript/components/layout/index.d.ts.map +1 -1
- package/lib/typescript/components/listitems/ListItemTransaction.d.ts +13 -5
- package/lib/typescript/components/listitems/ListItemTransaction.d.ts.map +1 -1
- package/lib/typescript/components/textInput/TextInput.d.ts +6 -0
- package/lib/typescript/components/textInput/TextInput.d.ts.map +1 -0
- package/lib/typescript/components/textInput/TextInputBase.d.ts +28 -0
- package/lib/typescript/components/textInput/TextInputBase.d.ts.map +1 -0
- package/lib/typescript/components/textInput/TextInputPassword.d.ts +6 -0
- package/lib/typescript/components/textInput/TextInputPassword.d.ts.map +1 -0
- package/lib/typescript/components/textInput/TextInputValidation.d.ts +9 -0
- package/lib/typescript/components/textInput/TextInputValidation.d.ts.map +1 -0
- package/lib/typescript/components/textInput/index.d.ts +4 -0
- package/lib/typescript/components/textInput/index.d.ts.map +1 -0
- package/lib/typescript/core/IOAnimations.d.ts +5 -0
- package/lib/typescript/core/IOAnimations.d.ts.map +1 -1
- package/lib/typescript/core/IOShapes.d.ts +1 -0
- package/lib/typescript/core/IOShapes.d.ts.map +1 -1
- package/lib/typescript/stories/ButtonDS.stories.d.ts +14 -0
- package/lib/typescript/stories/ButtonDS.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H1.stories.d.ts +19 -0
- package/lib/typescript/stories/H1.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H2.stories.d.ts +19 -0
- package/lib/typescript/stories/H2.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H3.stories.d.ts +19 -0
- package/lib/typescript/stories/H3.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H4.stories.d.ts +19 -0
- package/lib/typescript/stories/H4.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H5.stories.d.ts +27 -0
- package/lib/typescript/stories/H5.stories.d.ts.map +1 -0
- package/lib/typescript/stories/H6.stories.d.ts +19 -0
- package/lib/typescript/stories/H6.stories.d.ts.map +1 -0
- package/lib/typescript/stories/Label.stories.d.ts +19 -0
- package/lib/typescript/stories/Label.stories.d.ts.map +1 -0
- package/lib/typescript/stories/LabelSmall.stories.d.ts +21 -0
- package/lib/typescript/stories/LabelSmall.stories.d.ts.map +1 -0
- package/lib/typescript/stories/Link.stories.d.ts +21 -0
- package/lib/typescript/stories/Link.stories.d.ts.map +1 -0
- package/lib/typescript/stories/Monospace.stories.d.ts +19 -0
- package/lib/typescript/stories/Monospace.stories.d.ts.map +1 -0
- package/lib/typescript/utils/accessibility.d.ts +6 -0
- package/lib/typescript/utils/accessibility.d.ts.map +1 -0
- package/lib/typescript/utils/fonts.d.ts.map +1 -1
- package/lib/typescript/utils/object.d.ts +5 -0
- package/lib/typescript/utils/object.d.ts.map +1 -0
- package/lib/typescript/utils/textInput/index.d.ts +9 -0
- package/lib/typescript/utils/textInput/index.d.ts.map +1 -0
- package/lib/typescript/utils/types.d.ts +1 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/lib/typescript/utils/url.d.ts +8 -0
- package/lib/typescript/utils/url.d.ts.map +1 -0
- package/package.json +25 -4
- package/src/components/accordion/AccordionItem.tsx +165 -0
- package/src/components/accordion/index.tsx +1 -1
- package/src/components/buttons/ButtonSolid.tsx +16 -0
- package/src/components/common/LogoPaymentWithFallback.tsx +60 -0
- package/src/components/index.tsx +2 -0
- package/src/components/layout/BlockButtons.tsx +142 -0
- package/src/components/layout/FooterWithButtons.tsx +37 -0
- package/src/components/layout/index.tsx +1 -0
- package/src/components/listitems/ListItemTransaction.tsx +86 -39
- package/src/components/textInput/TextInput.tsx +15 -0
- package/src/components/textInput/TextInputBase.tsx +327 -0
- package/src/components/textInput/TextInputPassword.tsx +36 -0
- package/src/components/textInput/TextInputValidation.tsx +71 -0
- package/src/components/textInput/index.tsx +3 -0
- package/src/core/IOAnimations.ts +5 -0
- package/src/core/IOShapes.ts +1 -0
- package/src/stories/ButtonDS.stories.ts +31 -0
- package/src/stories/H1.stories.ts +28 -0
- package/src/stories/H2.stories.ts +28 -0
- package/src/stories/H3.stories.ts +28 -0
- package/src/stories/H4.stories.ts +28 -0
- package/src/stories/H5.stories.ts +28 -0
- package/src/stories/H6.stories.ts +28 -0
- package/src/stories/Label.stories.ts +28 -0
- package/src/stories/LabelSmall.stories.ts +28 -0
- package/src/stories/Link.stories.ts +28 -0
- package/src/stories/Monospace.stories.ts +28 -0
- package/src/utils/accessibility.ts +17 -0
- package/src/utils/fonts.ts +12 -5
- package/src/utils/object.ts +12 -0
- package/src/utils/textInput/index.ts +29 -0
- package/src/utils/types.ts +2 -0
- package/src/utils/url.ts +9 -0
- package/lib/commonjs/components/accordion/IOAccordion.js.map +0 -1
- package/lib/module/components/accordion/IOAccordion.js +0 -26
- package/lib/module/components/accordion/IOAccordion.js.map +0 -1
- package/lib/typescript/components/accordion/IOAccordion.d.ts +0 -13
- package/lib/typescript/components/accordion/IOAccordion.d.ts.map +0 -1
- package/src/components/accordion/IOAccordion.tsx +0 -35
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Primary = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _components = require("../components");
|
|
9
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Example/H1",
|
|
12
|
+
component: _components.H1,
|
|
13
|
+
parameters: {
|
|
14
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
15
|
+
layout: "centered",
|
|
16
|
+
actions: {
|
|
17
|
+
argTypesRegex: "^on.*"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
21
|
+
tags: ["autodocs"]
|
|
22
|
+
};
|
|
23
|
+
var _default = meta;
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
const Primary = {
|
|
26
|
+
args: {
|
|
27
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
28
|
+
onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
|
|
29
|
+
children: "Hello World"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Primary = Primary;
|
|
33
|
+
//# sourceMappingURL=H1.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_components","meta","title","component","H1","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H1.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Primary = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _components = require("../components");
|
|
9
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Example/H2",
|
|
12
|
+
component: _components.H2,
|
|
13
|
+
parameters: {
|
|
14
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
15
|
+
layout: "centered",
|
|
16
|
+
actions: {
|
|
17
|
+
argTypesRegex: "^on.*"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
21
|
+
tags: ["autodocs"]
|
|
22
|
+
};
|
|
23
|
+
var _default = meta;
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
const Primary = {
|
|
26
|
+
args: {
|
|
27
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
28
|
+
onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
|
|
29
|
+
children: "Hello World"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Primary = Primary;
|
|
33
|
+
//# sourceMappingURL=H2.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_components","meta","title","component","H2","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H2.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Primary = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _components = require("../components");
|
|
9
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Example/H3",
|
|
12
|
+
component: _components.H3,
|
|
13
|
+
parameters: {
|
|
14
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
15
|
+
layout: "centered",
|
|
16
|
+
actions: {
|
|
17
|
+
argTypesRegex: "^on.*"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
21
|
+
tags: ["autodocs"]
|
|
22
|
+
};
|
|
23
|
+
var _default = meta;
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
const Primary = {
|
|
26
|
+
args: {
|
|
27
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
28
|
+
onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
|
|
29
|
+
children: "Hello World"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Primary = Primary;
|
|
33
|
+
//# sourceMappingURL=H3.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_components","meta","title","component","H3","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H3.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Primary = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _components = require("../components");
|
|
9
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Example/H4",
|
|
12
|
+
component: _components.H4,
|
|
13
|
+
parameters: {
|
|
14
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
15
|
+
layout: "centered",
|
|
16
|
+
actions: {
|
|
17
|
+
argTypesRegex: "^on.*"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
21
|
+
tags: ["autodocs"]
|
|
22
|
+
};
|
|
23
|
+
var _default = meta;
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
const Primary = {
|
|
26
|
+
args: {
|
|
27
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
28
|
+
onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
|
|
29
|
+
children: "Hello World"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Primary = Primary;
|
|
33
|
+
//# sourceMappingURL=H4.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_components","meta","title","component","H4","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H4.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Primary = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _components = require("../components");
|
|
9
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Example/H5",
|
|
12
|
+
component: _components.H5,
|
|
13
|
+
parameters: {
|
|
14
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
15
|
+
layout: "centered",
|
|
16
|
+
actions: {
|
|
17
|
+
argTypesRegex: "^on.*"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
21
|
+
tags: ["autodocs"]
|
|
22
|
+
};
|
|
23
|
+
var _default = meta;
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
const Primary = {
|
|
26
|
+
args: {
|
|
27
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
28
|
+
onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
|
|
29
|
+
children: "Hello World"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Primary = Primary;
|
|
33
|
+
//# sourceMappingURL=H5.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_components","meta","title","component","H5","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H5.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Primary = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _components = require("../components");
|
|
9
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Example/H6",
|
|
12
|
+
component: _components.H6,
|
|
13
|
+
parameters: {
|
|
14
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
15
|
+
layout: "centered",
|
|
16
|
+
actions: {
|
|
17
|
+
argTypesRegex: "^on.*"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
21
|
+
tags: ["autodocs"]
|
|
22
|
+
};
|
|
23
|
+
var _default = meta;
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
const Primary = {
|
|
26
|
+
args: {
|
|
27
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
28
|
+
onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
|
|
29
|
+
children: "Hello World"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Primary = Primary;
|
|
33
|
+
//# sourceMappingURL=H6.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_components","meta","title","component","H6","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/H6.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEC,cAAE;EACbC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAAC,IAAAC,QAAA,GAEbT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Primary = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _components = require("../components");
|
|
9
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Example/Label",
|
|
12
|
+
component: _components.Label,
|
|
13
|
+
parameters: {
|
|
14
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
15
|
+
layout: "centered",
|
|
16
|
+
actions: {
|
|
17
|
+
argTypesRegex: "^on.*"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
21
|
+
tags: ["autodocs"]
|
|
22
|
+
};
|
|
23
|
+
var _default = meta;
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
const Primary = {
|
|
26
|
+
args: {
|
|
27
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
28
|
+
onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
|
|
29
|
+
children: "Hello World"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Primary = Primary;
|
|
33
|
+
//# sourceMappingURL=Label.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_components","meta","title","component","Label","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/Label.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,eAAe;EACtBC,SAAS,EAAEC,iBAAK;EAChBC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA8B;AAAC,IAAAC,QAAA,GAEhBT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Primary = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _components = require("../components");
|
|
9
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Example/LabelSmall",
|
|
12
|
+
component: _components.LabelSmall,
|
|
13
|
+
parameters: {
|
|
14
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
15
|
+
layout: "centered",
|
|
16
|
+
actions: {
|
|
17
|
+
argTypesRegex: "^on.*"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
21
|
+
tags: ["autodocs"]
|
|
22
|
+
};
|
|
23
|
+
var _default = meta;
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
const Primary = {
|
|
26
|
+
args: {
|
|
27
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
28
|
+
onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
|
|
29
|
+
children: "Hello World"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Primary = Primary;
|
|
33
|
+
//# sourceMappingURL=LabelSmall.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_components","meta","title","component","LabelSmall","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/LabelSmall.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,oBAAoB;EAC3BC,SAAS,EAAEC,sBAAU;EACrBC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAAmC;AAAC,IAAAC,QAAA,GAErBT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Primary = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _components = require("../components");
|
|
9
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Example/Link",
|
|
12
|
+
component: _components.Link,
|
|
13
|
+
parameters: {
|
|
14
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
15
|
+
layout: "centered",
|
|
16
|
+
actions: {
|
|
17
|
+
argTypesRegex: "^on.*"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
21
|
+
tags: ["autodocs"]
|
|
22
|
+
};
|
|
23
|
+
var _default = meta;
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
const Primary = {
|
|
26
|
+
args: {
|
|
27
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
28
|
+
onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
|
|
29
|
+
children: "Hello World"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Primary = Primary;
|
|
33
|
+
//# sourceMappingURL=Link.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_components","meta","title","component","Link","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/Link.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,cAAc;EACrBC,SAAS,EAAEC,gBAAI;EACfC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA6B;AAAC,IAAAC,QAAA,GAEfT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Primary = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _components = require("../components");
|
|
9
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Example/Monospace",
|
|
12
|
+
component: _components.Monospace,
|
|
13
|
+
parameters: {
|
|
14
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
15
|
+
layout: "centered",
|
|
16
|
+
actions: {
|
|
17
|
+
argTypesRegex: "^on.*"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
21
|
+
tags: ["autodocs"]
|
|
22
|
+
};
|
|
23
|
+
var _default = meta;
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
const Primary = {
|
|
26
|
+
args: {
|
|
27
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
28
|
+
onPress: () => _reactNative.Alert.alert("Alert", "Action triggered"),
|
|
29
|
+
children: "Hello World"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Primary = Primary;
|
|
33
|
+
//# sourceMappingURL=Monospace.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_components","meta","title","component","Monospace","parameters","layout","actions","argTypesRegex","tags","_default","exports","default","Primary","args","accessibilityLabel","onPress","Alert","alert","children"],"sourceRoot":"../../../src","sources":["stories/Monospace.stories.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;AACA,MAAME,IAAI,GAAG;EACXC,KAAK,EAAE,mBAAmB;EAC1BC,SAAS,EAAEC,qBAAS;EACpBC,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAAkC;AAAC,IAAAC,QAAA,GAEpBT,IAAI;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAGZ,MAAMG,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMC,kBAAK,CAACC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC;AAACR,OAAA,CAAAE,OAAA,GAAAA,OAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getAccessibleAmountText = void 0;
|
|
7
|
+
var _function = require("fp-ts/lib/function");
|
|
8
|
+
var O = _interopRequireWildcard(require("fp-ts/lib/Option"));
|
|
9
|
+
var _i18nJs = _interopRequireDefault(require("i18n-js"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
/**
|
|
14
|
+
* This function is used to get the text that will be read by the screen reader
|
|
15
|
+
* with the correct minus symbol pronunciation.
|
|
16
|
+
*/
|
|
17
|
+
const getAccessibleAmountText = amount => (0, _function.pipe)(amount, O.fromNullable, O.map(amount => amount.replace("-", _i18nJs.default.t("global.accessibility.minusSymbol"))), O.getOrElseW(() => undefined));
|
|
18
|
+
exports.getAccessibleAmountText = getAccessibleAmountText;
|
|
19
|
+
//# sourceMappingURL=accessibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_function","require","O","_interopRequireWildcard","_i18nJs","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","getAccessibleAmountText","amount","pipe","fromNullable","map","replace","I18n","t","getOrElseW","undefined","exports"],"sourceRoot":"../../../src","sources":["utils/accessibility.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,CAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAA2B,SAAAI,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAP,wBAAAG,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAQ,KAAA,GAAAL,wBAAA,CAAAC,WAAA,OAAAI,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAT,GAAA,YAAAQ,KAAA,CAAAE,GAAA,CAAAV,GAAA,SAAAW,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAhB,GAAA,QAAAgB,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAnB,GAAA,EAAAgB,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAf,GAAA,EAAAgB,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAhB,GAAA,CAAAgB,GAAA,SAAAL,MAAA,CAAAT,OAAA,GAAAF,GAAA,MAAAQ,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAArB,GAAA,EAAAW,MAAA,YAAAA,MAAA;AAE3B;AACA;AACA;AACA;AACO,MAAMW,uBAAuB,GAAIC,MAAe,IACrD,IAAAC,cAAI,EACFD,MAAM,EACN3B,CAAC,CAAC6B,YAAY,EACd7B,CAAC,CAAC8B,GAAG,CAACH,MAAM,IACVA,MAAM,CAACI,OAAO,CAAC,GAAG,EAAEC,eAAI,CAACC,CAAC,CAAC,kCAAkC,CAAC,CAChE,CAAC,EACDjC,CAAC,CAACkC,UAAU,CAAC,MAAMC,SAAS,CAC9B,CAAC;AAACC,OAAA,CAAAV,uBAAA,GAAAA,uBAAA"}
|
|
@@ -19,14 +19,17 @@ const weightValues = ["300", "400", "600", "700"];
|
|
|
19
19
|
const fonts = {
|
|
20
20
|
TitilliumWeb: _reactNative.Platform.select({
|
|
21
21
|
android: "TitilliumWeb",
|
|
22
|
+
web: "TitilliumWeb",
|
|
22
23
|
ios: "Titillium Web"
|
|
23
24
|
}),
|
|
24
25
|
ReadexPro: _reactNative.Platform.select({
|
|
25
26
|
android: "ReadexPro",
|
|
27
|
+
web: "ReadexPro",
|
|
26
28
|
ios: "Readex Pro"
|
|
27
29
|
}),
|
|
28
30
|
RobotoMono: _reactNative.Platform.select({
|
|
29
31
|
android: "RobotoMono",
|
|
32
|
+
web: "RobotoMono",
|
|
30
33
|
ios: "Roboto Mono"
|
|
31
34
|
})
|
|
32
35
|
};
|
|
@@ -68,9 +71,10 @@ exports.FontStyle = FontStyle;
|
|
|
68
71
|
const makeFontFamilyName = function (font, weight) {
|
|
69
72
|
let isItalic = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
70
73
|
return _reactNative.Platform.select({
|
|
71
|
-
|
|
74
|
+
web: fonts[font],
|
|
72
75
|
android: `${fonts[font]}-${weight || "Regular"}${isItalic ? "Italic" : ""}`,
|
|
73
|
-
ios: fonts[font]
|
|
76
|
+
ios: fonts[font],
|
|
77
|
+
default: "undefined"
|
|
74
78
|
});
|
|
75
79
|
};
|
|
76
80
|
|
|
@@ -86,8 +90,10 @@ const makeFontStyleObject = function () {
|
|
|
86
90
|
let isItalic = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
87
91
|
let font = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "TitilliumWeb";
|
|
88
92
|
return _reactNative.Platform.select({
|
|
89
|
-
|
|
90
|
-
fontFamily:
|
|
93
|
+
web: {
|
|
94
|
+
fontFamily: makeFontFamilyName(font, weight, isItalic),
|
|
95
|
+
fontWeight: weight !== undefined ? fontWeightsMap[weight] : weight,
|
|
96
|
+
fontStyle: isItalic ? FontStyle.italic : FontStyle.normal
|
|
91
97
|
},
|
|
92
98
|
android: {
|
|
93
99
|
fontFamily: makeFontFamilyName(font, weight, isItalic)
|
|
@@ -96,6 +102,9 @@ const makeFontStyleObject = function () {
|
|
|
96
102
|
fontFamily: makeFontFamilyName(font, weight, isItalic),
|
|
97
103
|
fontWeight: weight !== undefined ? fontWeightsMap[weight] : weight,
|
|
98
104
|
fontStyle: isItalic ? FontStyle.italic : FontStyle.normal
|
|
105
|
+
},
|
|
106
|
+
default: {
|
|
107
|
+
fontFamily: "undefined"
|
|
99
108
|
}
|
|
100
109
|
});
|
|
101
110
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","weights","weightValues","fonts","TitilliumWeb","Platform","select","android","ios","ReadexPro","RobotoMono","fontWeights","Light","Regular","SemiBold","Bold","exports","fontWeightsMap","FontStyle","makeFontFamilyName","font","weight","isItalic","arguments","length","undefined","default","makeFontStyleObject","fontFamily","fontWeight","fontStyle","italic","normal"],"sourceRoot":"../../../src","sources":["utils/fonts.ts"],"mappings":";;;;;;AAMA,IAAAA,YAAA,GAAAC,OAAA;AANA;AACA;AACA;AACA;AACA;;AAMA,MAAMC,OAAO,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,CAAU;AAGjE,MAAMC,YAAY,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAU;AAG1D;AACA;AACA;AACA,MAAMC,KAAK,GAAG;EACZC,YAAY,EAAEC,qBAAQ,CAACC,MAAM,CAAC;IAC5BC,OAAO,EAAE,cAAc;IACvBC,GAAG,EAAE;EACP,CAAC,CAAC;EACFC,SAAS,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","weights","weightValues","fonts","TitilliumWeb","Platform","select","android","web","ios","ReadexPro","RobotoMono","fontWeights","Light","Regular","SemiBold","Bold","exports","fontWeightsMap","FontStyle","makeFontFamilyName","font","weight","isItalic","arguments","length","undefined","default","makeFontStyleObject","fontFamily","fontWeight","fontStyle","italic","normal"],"sourceRoot":"../../../src","sources":["utils/fonts.ts"],"mappings":"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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.findFirstCaseInsensitive = void 0;
|
|
7
|
+
var A = _interopRequireWildcard(require("fp-ts/Array"));
|
|
8
|
+
var _function = require("fp-ts/lib/function");
|
|
9
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
+
const findFirstCaseInsensitive = obj => key => (0, _function.pipe)(obj, Object.entries, A.findFirst(_ref => {
|
|
12
|
+
let [k, _] = _ref;
|
|
13
|
+
return k.toLowerCase() === key.toLowerCase();
|
|
14
|
+
}));
|
|
15
|
+
exports.findFirstCaseInsensitive = findFirstCaseInsensitive;
|
|
16
|
+
//# sourceMappingURL=object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["A","_interopRequireWildcard","require","_function","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","findFirstCaseInsensitive","pipe","entries","findFirst","_ref","k","_","toLowerCase","exports"],"sourceRoot":"../../../src","sources":["utils/object.ts"],"mappings":";;;;;;AAAA,IAAAA,CAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAA0C,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA;AAEnC,MAAMW,wBAAwB,GAC/BjB,GAAyB,IAC5BW,GAAW,IACV,IAAAO,cAAI,EACFlB,GAAG,EACHQ,MAAM,CAACW,OAAO,EACd5B,CAAC,CAAC6B,SAAS,CAACC,IAAA;EAAA,IAAC,CAACC,CAAC,EAAEC,CAAC,CAAC,GAAAF,IAAA;EAAA,OAAKC,CAAC,CAACE,WAAW,CAAC,CAAC,KAAKb,GAAG,CAACa,WAAW,CAAC,CAAC;AAAA,EAC/D,CAAC;AAACC,OAAA,CAAAR,wBAAA,GAAAA,wBAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getInputPropsByType = void 0;
|
|
7
|
+
const getInputPropsByType = type => {
|
|
8
|
+
switch (type) {
|
|
9
|
+
case "credit-card":
|
|
10
|
+
return {
|
|
11
|
+
valueFormat: v => v.replace(/\D/g, "").replace(/\d{4}?(?=.)/g, "$& "),
|
|
12
|
+
textInputProps: {
|
|
13
|
+
autoComplete: "cc-number",
|
|
14
|
+
keyboardType: "numeric",
|
|
15
|
+
textContentType: "creditCardNumber",
|
|
16
|
+
inputMode: "numeric"
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
default:
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.getInputPropsByType = getInputPropsByType;
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getInputPropsByType","type","valueFormat","v","replace","textInputProps","autoComplete","keyboardType","textContentType","inputMode","undefined","exports"],"sourceRoot":"../../../../src","sources":["utils/textInput/index.ts"],"mappings":";;;;;;AAWO,MAAMA,mBAAmB,GAC9BC,IAAe,IACY;EAC3B,QAAQA,IAAI;IACV,KAAK,aAAa;MAChB,OAAO;QACLC,WAAW,EAAEC,CAAC,IAAIA,CAAC,CAACC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAACA,OAAO,CAAC,cAAc,EAAE,KAAK,CAAC;QACrEC,cAAc,EAAE;UACdC,YAAY,EAAE,WAAW;UACzBC,YAAY,EAAE,SAAS;UACvBC,eAAe,EAAE,kBAAkB;UACnCC,SAAS,EAAE;QACb;MACF,CAAC;IACH;MACE,OAAOC,SAAS;EACpB;AACF,CAAC;AAACC,OAAA,CAAAX,mBAAA,GAAAA,mBAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isImageUri = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* type guard to check if a value is an ImageURISource
|
|
9
|
+
* @argument value the value to check, can be anything
|
|
10
|
+
* @returns boolean
|
|
11
|
+
*/
|
|
12
|
+
const isImageUri = value => typeof value === "object" && value !== null && "uri" in value;
|
|
13
|
+
exports.isImageUri = isImageUri;
|
|
14
|
+
//# sourceMappingURL=url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isImageUri","value","exports"],"sourceRoot":"../../../src","sources":["utils/url.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMA,UAAU,GAAIC,KAAc,IACvC,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,IAAI,KAAK,IAAIA,KAAK;AAACC,OAAA,CAAAF,UAAA,GAAAA,UAAA"}
|