@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,47 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Icon } from "../icons";
|
|
4
|
+
import { triggerHaptic } from "../../functions";
|
|
5
|
+
import { TextInputBase } from "./TextInputBase";
|
|
6
|
+
export const TextInputValidation = props => {
|
|
7
|
+
const {
|
|
8
|
+
onValidate,
|
|
9
|
+
errorMessage,
|
|
10
|
+
value,
|
|
11
|
+
bottomMessage,
|
|
12
|
+
onBlur,
|
|
13
|
+
onFocus
|
|
14
|
+
} = props;
|
|
15
|
+
const [isValid, setIsValid] = React.useState(undefined);
|
|
16
|
+
const onBlurHandler = React.useCallback(() => {
|
|
17
|
+
const validation = onValidate(value);
|
|
18
|
+
setIsValid(validation);
|
|
19
|
+
if (!validation) {
|
|
20
|
+
triggerHaptic("notificationError");
|
|
21
|
+
} else {
|
|
22
|
+
triggerHaptic("notificationSuccess");
|
|
23
|
+
}
|
|
24
|
+
onBlur === null || onBlur === void 0 || onBlur();
|
|
25
|
+
}, [onValidate, value, onBlur]);
|
|
26
|
+
const onFocusHandler = React.useCallback(() => {
|
|
27
|
+
setIsValid(undefined);
|
|
28
|
+
onFocus === null || onFocus === void 0 || onFocus();
|
|
29
|
+
}, [onFocus]);
|
|
30
|
+
const labelError = React.useMemo(() => isValid === false && errorMessage ? errorMessage : bottomMessage, [isValid, errorMessage, bottomMessage]);
|
|
31
|
+
const labelErrorColor = React.useMemo(() => isValid === false && errorMessage ? "error-600" : undefined, [isValid, errorMessage]);
|
|
32
|
+
const rightIcon = React.useMemo(() => isValid !== undefined && /*#__PURE__*/React.createElement(Icon, {
|
|
33
|
+
name: isValid ? "success" : "errorFilled",
|
|
34
|
+
color: isValid ? "green" : "error-600",
|
|
35
|
+
size: 24
|
|
36
|
+
}), [isValid]);
|
|
37
|
+
return /*#__PURE__*/React.createElement(TextInputBase, _extends({}, props, {
|
|
38
|
+
status: isValid === false ? "error" : undefined,
|
|
39
|
+
bottomMessage: labelError,
|
|
40
|
+
bottomMessageColor: labelErrorColor,
|
|
41
|
+
rightElement: rightIcon,
|
|
42
|
+
onBlur: onBlurHandler,
|
|
43
|
+
onFocus: onFocusHandler
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
export default TextInputValidation;
|
|
47
|
+
//# sourceMappingURL=TextInputValidation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Icon","triggerHaptic","TextInputBase","TextInputValidation","props","onValidate","errorMessage","value","bottomMessage","onBlur","onFocus","isValid","setIsValid","useState","undefined","onBlurHandler","useCallback","validation","onFocusHandler","labelError","useMemo","labelErrorColor","rightIcon","createElement","name","color","size","_extends","status","bottomMessageColor","rightElement"],"sourceRoot":"../../../../src","sources":["components/textInput/TextInputValidation.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAAkBC,IAAI,QAAQ,UAAU;AAExC,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,aAAa,QAAQ,iBAAiB;AAU/C,OAAO,MAAMC,mBAAmB,GAAIC,KAA+B,IAAK;EACtE,MAAM;IAAEC,UAAU;IAAEC,YAAY;IAAEC,KAAK;IAAEC,aAAa;IAAEC,MAAM;IAAEC;EAAQ,CAAC,GACvEN,KAAK;EACP,MAAM,CAACO,OAAO,EAAEC,UAAU,CAAC,GAAGb,KAAK,CAACc,QAAQ,CAAsBC,SAAS,CAAC;EAE5E,MAAMC,aAAa,GAAGhB,KAAK,CAACiB,WAAW,CAAC,MAAM;IAC5C,MAAMC,UAAU,GAAGZ,UAAU,CAACE,KAAK,CAAC;IACpCK,UAAU,CAACK,UAAU,CAAC;IACtB,IAAI,CAACA,UAAU,EAAE;MACfhB,aAAa,CAAC,mBAAmB,CAAC;IACpC,CAAC,MAAM;MACLA,aAAa,CAAC,qBAAqB,CAAC;IACtC;IACAQ,MAAM,aAANA,MAAM,eAANA,MAAM,CAAG,CAAC;EACZ,CAAC,EAAE,CAACJ,UAAU,EAAEE,KAAK,EAAEE,MAAM,CAAC,CAAC;EAE/B,MAAMS,cAAc,GAAGnB,KAAK,CAACiB,WAAW,CAAC,MAAM;IAC7CJ,UAAU,CAACE,SAAS,CAAC;IACrBJ,OAAO,aAAPA,OAAO,eAAPA,OAAO,CAAG,CAAC;EACb,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;EAEb,MAAMS,UAAU,GAAGpB,KAAK,CAACqB,OAAO,CAC9B,MAAOT,OAAO,KAAK,KAAK,IAAIL,YAAY,GAAGA,YAAY,GAAGE,aAAc,EACxE,CAACG,OAAO,EAAEL,YAAY,EAAEE,aAAa,CACvC,CAAC;EAED,MAAMa,eAAqC,GAAGtB,KAAK,CAACqB,OAAO,CACzD,MAAOT,OAAO,KAAK,KAAK,IAAIL,YAAY,GAAG,WAAW,GAAGQ,SAAU,EACnE,CAACH,OAAO,EAAEL,YAAY,CACxB,CAAC;EAED,MAAMgB,SAAS,GAAGvB,KAAK,CAACqB,OAAO,CAC7B,MACET,OAAO,KAAKG,SAAS,iBACnBf,KAAA,CAAAwB,aAAA,CAACvB,IAAI;IACHwB,IAAI,EAAGb,OAAO,GAAG,SAAS,GAAG,aAA0B;IACvDc,KAAK,EAAGd,OAAO,GAAG,OAAO,GAAG,WAAyB;IACrDe,IAAI,EAAE;EAAG,CACV,CACF,EACH,CAACf,OAAO,CACV,CAAC;EAED,oBACEZ,KAAA,CAAAwB,aAAA,CAACrB,aAAa,EAAAyB,QAAA,KACRvB,KAAK;IACTwB,MAAM,EAAEjB,OAAO,KAAK,KAAK,GAAG,OAAO,GAAGG,SAAU;IAChDN,aAAa,EAAEW,UAAW;IAC1BU,kBAAkB,EAAER,eAAgB;IACpCS,YAAY,EAAER,SAAU;IACxBb,MAAM,EAAEM,aAAc;IACtBL,OAAO,EAAEQ;EAAe,EACzB,CAAC;AAEN,CAAC;AAED,eAAef,mBAAmB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/textInput/index.tsx"],"mappings":"AAAA,cAAc,aAAa;AAC3B,cAAc,qBAAqB;AACnC,cAAc,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IOSpringValues","button","damping","mass","stiffness","selection","IOScaleValues","basicButton","pressedState","magnifiedButton","exaggeratedButton"],"sourceRoot":"../../../src","sources":["core/IOAnimations.ts"],"mappings":"AAAA;AACA;AACA;;AAEA,OAAO,MAAMA,cAAc,GAAG;EAC5B;EACAC,MAAM,EAAE;IACNC,OAAO,EAAE,EAAE;IACXC,IAAI,EAAE,GAAG;IACTC,SAAS,EAAE;EACb,CAAC;EACD;
|
|
1
|
+
{"version":3,"names":["IOSpringValues","button","damping","mass","stiffness","accordion","selection","IOScaleValues","basicButton","pressedState","magnifiedButton","exaggeratedButton"],"sourceRoot":"../../../src","sources":["core/IOAnimations.ts"],"mappings":"AAAA;AACA;AACA;;AAEA,OAAO,MAAMA,cAAc,GAAG;EAC5B;EACAC,MAAM,EAAE;IACNC,OAAO,EAAE,EAAE;IACXC,IAAI,EAAE,GAAG;IACTC,SAAS,EAAE;EACb,CAAC;EACDC,SAAS,EAAE;IACTH,OAAO,EAAE,EAAE;IACXC,IAAI,EAAE,CAAC;IACPC,SAAS,EAAE;EACb,CAAC;EACD;EACAE,SAAS,EAAE;IACTJ,OAAO,EAAE,EAAE;IACXC,IAAI,EAAE,GAAG;IACTC,SAAS,EAAE;EACb;AACF,CAAC;AAED,OAAO,MAAMG,aAAa,GAAG;EAC3B;EACAC,WAAW,EAAE;IACXC,YAAY,EAAE;EAChB,CAAC;EACD;EACAC,eAAe,EAAE;IACfD,YAAY,EAAE;EAChB,CAAC;EACD;EACAE,iBAAiB,EAAE;IACjBF,YAAY,EAAE;EAChB;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IORadiusScale","IODefaultRadius","IOAlertRadius","IOBannerRadius","IOTagRadius","IOBottomSheetHeaderRadius","IOListItemIDPRadius","IOBadgeRadius"],"sourceRoot":"../../../src","sources":["core/IOShapes.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,aAAa,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAU;AAGpD,MAAMC,eAA8B,GAAG,CAAC;;AAExC;AACA;AACA;AACA,OAAO,MAAMC,aAA4B,GAAGD,eAAe;AAC3D,OAAO,MAAME,cAA6B,GAAGF,eAAe;AAC5D,OAAO,MAAMG,WAA0B,GAAG,CAAC;AAC3C,OAAO,MAAMC,yBAAwC,GAAG,EAAE;AAC1D,OAAO,MAAMC,mBAAkC,GAAGL,eAAe;AACjE,OAAO,MAAMM,aAA4B,GAAG,EAAE"}
|
|
1
|
+
{"version":3,"names":["IORadiusScale","IODefaultRadius","IOAlertRadius","IOBannerRadius","IOTagRadius","IOBottomSheetHeaderRadius","IOListItemIDPRadius","IOBadgeRadius","IOAccordionRadius"],"sourceRoot":"../../../src","sources":["core/IOShapes.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,aAAa,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAU;AAGpD,MAAMC,eAA8B,GAAG,CAAC;;AAExC;AACA;AACA;AACA,OAAO,MAAMC,aAA4B,GAAGD,eAAe;AAC3D,OAAO,MAAME,cAA6B,GAAGF,eAAe;AAC5D,OAAO,MAAMG,WAA0B,GAAG,CAAC;AAC3C,OAAO,MAAMC,yBAAwC,GAAG,EAAE;AAC1D,OAAO,MAAMC,mBAAkC,GAAGL,eAAe;AACjE,OAAO,MAAMM,aAA4B,GAAG,EAAE;AAC9C,OAAO,MAAMC,iBAAgC,GAAGP,eAAe"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { ButtonSolid } from "../components";
|
|
3
|
+
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Example/ButtonSolid",
|
|
7
|
+
component: ButtonSolid,
|
|
8
|
+
parameters: {
|
|
9
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
10
|
+
layout: "centered"
|
|
11
|
+
},
|
|
12
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
13
|
+
tags: ["autodocs"]
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
17
|
+
export const Primary = {
|
|
18
|
+
args: {
|
|
19
|
+
color: "primary",
|
|
20
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
21
|
+
label: "Primary button",
|
|
22
|
+
onPress: e => {
|
|
23
|
+
action("clicked")(e);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=ButtonDS.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["action","ButtonSolid","meta","title","component","parameters","layout","tags","Primary","args","color","accessibilityLabel","label","onPress","e"],"sourceRoot":"../../../src","sources":["stories/ButtonDS.stories.ts"],"mappings":"AACA,SAASA,MAAM,QAAQ,0BAA0B;AAEjD,SAASC,WAAW,QAAQ,eAAe;;AAE3C;AACA,MAAMC,IAAI,GAAG;EACXC,KAAK,EAAE,qBAAqB;EAC5BC,SAAS,EAAEH,WAAW;EACtBI,UAAU,EAAE;IACV;IACAC,MAAM,EAAE;EACV,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAAoC;AAEpC,eAAeL,IAAI;AAGnB;AACA,OAAO,MAAMM,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,KAAK,EAAE,SAAS;IAChBC,kBAAkB,EAAE,2BAA2B;IAC/CC,KAAK,EAAE,gBAAgB;IACvBC,OAAO,EAAEC,CAAC,IAAI;MACZd,MAAM,CAAC,SAAS,CAAC,CAACc,CAAC,CAAC;IACtB;EACF;AACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Alert } from "react-native";
|
|
2
|
+
import { H1 } from "../components";
|
|
3
|
+
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Example/H1",
|
|
7
|
+
component: H1,
|
|
8
|
+
parameters: {
|
|
9
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
10
|
+
layout: "centered",
|
|
11
|
+
actions: {
|
|
12
|
+
argTypesRegex: "^on.*"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Primary = {
|
|
20
|
+
args: {
|
|
21
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
22
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
23
|
+
children: "Hello World"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=H1.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","H1","meta","title","component","parameters","layout","actions","argTypesRegex","tags","Primary","args","accessibilityLabel","onPress","alert","children"],"sourceRoot":"../../../src","sources":["stories/H1.stories.ts"],"mappings":"AAEA,SAASA,KAAK,QAAQ,cAAc;AACpC,SAASC,EAAE,QAAQ,eAAe;;AAElC;AACA,MAAMC,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEH,EAAE;EACbI,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAE3B,eAAeP,IAAI;AAGnB,OAAO,MAAMQ,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMb,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Alert } from "react-native";
|
|
2
|
+
import { H2 } from "../components";
|
|
3
|
+
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Example/H2",
|
|
7
|
+
component: H2,
|
|
8
|
+
parameters: {
|
|
9
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
10
|
+
layout: "centered",
|
|
11
|
+
actions: {
|
|
12
|
+
argTypesRegex: "^on.*"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Primary = {
|
|
20
|
+
args: {
|
|
21
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
22
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
23
|
+
children: "Hello World"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=H2.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","H2","meta","title","component","parameters","layout","actions","argTypesRegex","tags","Primary","args","accessibilityLabel","onPress","alert","children"],"sourceRoot":"../../../src","sources":["stories/H2.stories.ts"],"mappings":"AAEA,SAASA,KAAK,QAAQ,cAAc;AACpC,SAASC,EAAE,QAAQ,eAAe;;AAElC;AACA,MAAMC,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEH,EAAE;EACbI,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAE3B,eAAeP,IAAI;AAGnB,OAAO,MAAMQ,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMb,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Alert } from "react-native";
|
|
2
|
+
import { H3 } from "../components";
|
|
3
|
+
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Example/H3",
|
|
7
|
+
component: H3,
|
|
8
|
+
parameters: {
|
|
9
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
10
|
+
layout: "centered",
|
|
11
|
+
actions: {
|
|
12
|
+
argTypesRegex: "^on.*"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Primary = {
|
|
20
|
+
args: {
|
|
21
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
22
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
23
|
+
children: "Hello World"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=H3.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","H3","meta","title","component","parameters","layout","actions","argTypesRegex","tags","Primary","args","accessibilityLabel","onPress","alert","children"],"sourceRoot":"../../../src","sources":["stories/H3.stories.ts"],"mappings":"AAEA,SAASA,KAAK,QAAQ,cAAc;AACpC,SAASC,EAAE,QAAQ,eAAe;;AAElC;AACA,MAAMC,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEH,EAAE;EACbI,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAE3B,eAAeP,IAAI;AAGnB,OAAO,MAAMQ,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMb,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Alert } from "react-native";
|
|
2
|
+
import { H4 } from "../components";
|
|
3
|
+
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Example/H4",
|
|
7
|
+
component: H4,
|
|
8
|
+
parameters: {
|
|
9
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
10
|
+
layout: "centered",
|
|
11
|
+
actions: {
|
|
12
|
+
argTypesRegex: "^on.*"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Primary = {
|
|
20
|
+
args: {
|
|
21
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
22
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
23
|
+
children: "Hello World"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=H4.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","H4","meta","title","component","parameters","layout","actions","argTypesRegex","tags","Primary","args","accessibilityLabel","onPress","alert","children"],"sourceRoot":"../../../src","sources":["stories/H4.stories.ts"],"mappings":"AAEA,SAASA,KAAK,QAAQ,cAAc;AACpC,SAASC,EAAE,QAAQ,eAAe;;AAElC;AACA,MAAMC,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEH,EAAE;EACbI,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAE3B,eAAeP,IAAI;AAGnB,OAAO,MAAMQ,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMb,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Alert } from "react-native";
|
|
2
|
+
import { H5 } from "../components";
|
|
3
|
+
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Example/H5",
|
|
7
|
+
component: H5,
|
|
8
|
+
parameters: {
|
|
9
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
10
|
+
layout: "centered",
|
|
11
|
+
actions: {
|
|
12
|
+
argTypesRegex: "^on.*"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Primary = {
|
|
20
|
+
args: {
|
|
21
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
22
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
23
|
+
children: "Hello World"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=H5.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","H5","meta","title","component","parameters","layout","actions","argTypesRegex","tags","Primary","args","accessibilityLabel","onPress","alert","children"],"sourceRoot":"../../../src","sources":["stories/H5.stories.ts"],"mappings":"AAEA,SAASA,KAAK,QAAQ,cAAc;AACpC,SAASC,EAAE,QAAQ,eAAe;;AAElC;AACA,MAAMC,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEH,EAAE;EACbI,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAE3B,eAAeP,IAAI;AAGnB,OAAO,MAAMQ,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMb,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Alert } from "react-native";
|
|
2
|
+
import { H6 } from "../components";
|
|
3
|
+
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Example/H6",
|
|
7
|
+
component: H6,
|
|
8
|
+
parameters: {
|
|
9
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
10
|
+
layout: "centered",
|
|
11
|
+
actions: {
|
|
12
|
+
argTypesRegex: "^on.*"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Primary = {
|
|
20
|
+
args: {
|
|
21
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
22
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
23
|
+
children: "Hello World"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=H6.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","H6","meta","title","component","parameters","layout","actions","argTypesRegex","tags","Primary","args","accessibilityLabel","onPress","alert","children"],"sourceRoot":"../../../src","sources":["stories/H6.stories.ts"],"mappings":"AAEA,SAASA,KAAK,QAAQ,cAAc;AACpC,SAASC,EAAE,QAAQ,eAAe;;AAElC;AACA,MAAMC,IAAI,GAAG;EACXC,KAAK,EAAE,YAAY;EACnBC,SAAS,EAAEH,EAAE;EACbI,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA2B;AAE3B,eAAeP,IAAI;AAGnB,OAAO,MAAMQ,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMb,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Alert } from "react-native";
|
|
2
|
+
import { Label } from "../components";
|
|
3
|
+
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Example/Label",
|
|
7
|
+
component: Label,
|
|
8
|
+
parameters: {
|
|
9
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
10
|
+
layout: "centered",
|
|
11
|
+
actions: {
|
|
12
|
+
argTypesRegex: "^on.*"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Primary = {
|
|
20
|
+
args: {
|
|
21
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
22
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
23
|
+
children: "Hello World"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Label.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","Label","meta","title","component","parameters","layout","actions","argTypesRegex","tags","Primary","args","accessibilityLabel","onPress","alert","children"],"sourceRoot":"../../../src","sources":["stories/Label.stories.ts"],"mappings":"AAEA,SAASA,KAAK,QAAQ,cAAc;AACpC,SAASC,KAAK,QAAQ,eAAe;;AAErC;AACA,MAAMC,IAAI,GAAG;EACXC,KAAK,EAAE,eAAe;EACtBC,SAAS,EAAEH,KAAK;EAChBI,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA8B;AAE9B,eAAeP,IAAI;AAGnB,OAAO,MAAMQ,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMb,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Alert } from "react-native";
|
|
2
|
+
import { LabelSmall } from "../components";
|
|
3
|
+
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Example/LabelSmall",
|
|
7
|
+
component: LabelSmall,
|
|
8
|
+
parameters: {
|
|
9
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
10
|
+
layout: "centered",
|
|
11
|
+
actions: {
|
|
12
|
+
argTypesRegex: "^on.*"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Primary = {
|
|
20
|
+
args: {
|
|
21
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
22
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
23
|
+
children: "Hello World"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=LabelSmall.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","LabelSmall","meta","title","component","parameters","layout","actions","argTypesRegex","tags","Primary","args","accessibilityLabel","onPress","alert","children"],"sourceRoot":"../../../src","sources":["stories/LabelSmall.stories.ts"],"mappings":"AAEA,SAASA,KAAK,QAAQ,cAAc;AACpC,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,MAAMC,IAAI,GAAG;EACXC,KAAK,EAAE,oBAAoB;EAC3BC,SAAS,EAAEH,UAAU;EACrBI,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAAmC;AAEnC,eAAeP,IAAI;AAGnB,OAAO,MAAMQ,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMb,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Alert } from "react-native";
|
|
2
|
+
import { Link } from "../components";
|
|
3
|
+
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Example/Link",
|
|
7
|
+
component: Link,
|
|
8
|
+
parameters: {
|
|
9
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
10
|
+
layout: "centered",
|
|
11
|
+
actions: {
|
|
12
|
+
argTypesRegex: "^on.*"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Primary = {
|
|
20
|
+
args: {
|
|
21
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
22
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
23
|
+
children: "Hello World"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Link.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","Link","meta","title","component","parameters","layout","actions","argTypesRegex","tags","Primary","args","accessibilityLabel","onPress","alert","children"],"sourceRoot":"../../../src","sources":["stories/Link.stories.ts"],"mappings":"AAEA,SAASA,KAAK,QAAQ,cAAc;AACpC,SAASC,IAAI,QAAQ,eAAe;;AAEpC;AACA,MAAMC,IAAI,GAAG;EACXC,KAAK,EAAE,cAAc;EACrBC,SAAS,EAAEH,IAAI;EACfI,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAA6B;AAE7B,eAAeP,IAAI;AAGnB,OAAO,MAAMQ,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMb,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Alert } from "react-native";
|
|
2
|
+
import { Monospace } from "../components";
|
|
3
|
+
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Example/Monospace",
|
|
7
|
+
component: Monospace,
|
|
8
|
+
parameters: {
|
|
9
|
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
10
|
+
layout: "centered",
|
|
11
|
+
actions: {
|
|
12
|
+
argTypesRegex: "^on.*"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
16
|
+
tags: ["autodocs"]
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const Primary = {
|
|
20
|
+
args: {
|
|
21
|
+
accessibilityLabel: "Tap to trigger test alert",
|
|
22
|
+
onPress: () => Alert.alert("Alert", "Action triggered"),
|
|
23
|
+
children: "Hello World"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Monospace.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","Monospace","meta","title","component","parameters","layout","actions","argTypesRegex","tags","Primary","args","accessibilityLabel","onPress","alert","children"],"sourceRoot":"../../../src","sources":["stories/Monospace.stories.ts"],"mappings":"AAEA,SAASA,KAAK,QAAQ,cAAc;AACpC,SAASC,SAAS,QAAQ,eAAe;;AAEzC;AACA,MAAMC,IAAI,GAAG;EACXC,KAAK,EAAE,mBAAmB;EAC1BC,SAAS,EAAEH,SAAS;EACpBI,UAAU,EAAE;IACV;IACAC,MAAM,EAAE,UAAU;IAClBC,OAAO,EAAE;MAAEC,aAAa,EAAE;IAAQ;EACpC,CAAC;EACD;EACAC,IAAI,EAAE,CAAC,UAAU;AACnB,CAAkC;AAElC,eAAeP,IAAI;AAGnB,OAAO,MAAMQ,OAAc,GAAG;EAC5BC,IAAI,EAAE;IACJC,kBAAkB,EAAE,2BAA2B;IAC/CC,OAAO,EAAEA,CAAA,KAAMb,KAAK,CAACc,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACvDC,QAAQ,EAAE;EACZ;AACF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { pipe } from "fp-ts/lib/function";
|
|
2
|
+
import * as O from "fp-ts/lib/Option";
|
|
3
|
+
import I18n from "i18n-js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This function is used to get the text that will be read by the screen reader
|
|
7
|
+
* with the correct minus symbol pronunciation.
|
|
8
|
+
*/
|
|
9
|
+
export const getAccessibleAmountText = amount => pipe(amount, O.fromNullable, O.map(amount => amount.replace("-", I18n.t("global.accessibility.minusSymbol"))), O.getOrElseW(() => undefined));
|
|
10
|
+
//# sourceMappingURL=accessibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pipe","O","I18n","getAccessibleAmountText","amount","fromNullable","map","replace","t","getOrElseW","undefined"],"sourceRoot":"../../../src","sources":["utils/accessibility.ts"],"mappings":"AAAA,SAASA,IAAI,QAAQ,oBAAoB;AACzC,OAAO,KAAKC,CAAC,MAAM,kBAAkB;AACrC,OAAOC,IAAI,MAAM,SAAS;;AAE1B;AACA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAIC,MAAe,IACrDJ,IAAI,CACFI,MAAM,EACNH,CAAC,CAACI,YAAY,EACdJ,CAAC,CAACK,GAAG,CAACF,MAAM,IACVA,MAAM,CAACG,OAAO,CAAC,GAAG,EAAEL,IAAI,CAACM,CAAC,CAAC,kCAAkC,CAAC,CAChE,CAAC,EACDP,CAAC,CAACQ,UAAU,CAAC,MAAMC,SAAS,CAC9B,CAAC"}
|
|
@@ -13,14 +13,17 @@ const weightValues = ["300", "400", "600", "700"];
|
|
|
13
13
|
const fonts = {
|
|
14
14
|
TitilliumWeb: Platform.select({
|
|
15
15
|
android: "TitilliumWeb",
|
|
16
|
+
web: "TitilliumWeb",
|
|
16
17
|
ios: "Titillium Web"
|
|
17
18
|
}),
|
|
18
19
|
ReadexPro: Platform.select({
|
|
19
20
|
android: "ReadexPro",
|
|
21
|
+
web: "ReadexPro",
|
|
20
22
|
ios: "Readex Pro"
|
|
21
23
|
}),
|
|
22
24
|
RobotoMono: Platform.select({
|
|
23
25
|
android: "RobotoMono",
|
|
26
|
+
web: "RobotoMono",
|
|
24
27
|
ios: "Roboto Mono"
|
|
25
28
|
})
|
|
26
29
|
};
|
|
@@ -59,9 +62,10 @@ export let FontStyle = /*#__PURE__*/function (FontStyle) {
|
|
|
59
62
|
export const makeFontFamilyName = function (font, weight) {
|
|
60
63
|
let isItalic = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
61
64
|
return Platform.select({
|
|
62
|
-
|
|
65
|
+
web: fonts[font],
|
|
63
66
|
android: `${fonts[font]}-${weight || "Regular"}${isItalic ? "Italic" : ""}`,
|
|
64
|
-
ios: fonts[font]
|
|
67
|
+
ios: fonts[font],
|
|
68
|
+
default: "undefined"
|
|
65
69
|
});
|
|
66
70
|
};
|
|
67
71
|
|
|
@@ -76,8 +80,10 @@ export const makeFontStyleObject = function () {
|
|
|
76
80
|
let isItalic = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
77
81
|
let font = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "TitilliumWeb";
|
|
78
82
|
return Platform.select({
|
|
79
|
-
|
|
80
|
-
fontFamily:
|
|
83
|
+
web: {
|
|
84
|
+
fontFamily: makeFontFamilyName(font, weight, isItalic),
|
|
85
|
+
fontWeight: weight !== undefined ? fontWeightsMap[weight] : weight,
|
|
86
|
+
fontStyle: isItalic ? FontStyle.italic : FontStyle.normal
|
|
81
87
|
},
|
|
82
88
|
android: {
|
|
83
89
|
fontFamily: makeFontFamilyName(font, weight, isItalic)
|
|
@@ -86,6 +92,9 @@ export const makeFontStyleObject = function () {
|
|
|
86
92
|
fontFamily: makeFontFamilyName(font, weight, isItalic),
|
|
87
93
|
fontWeight: weight !== undefined ? fontWeightsMap[weight] : weight,
|
|
88
94
|
fontStyle: isItalic ? FontStyle.italic : FontStyle.normal
|
|
95
|
+
},
|
|
96
|
+
default: {
|
|
97
|
+
fontFamily: "undefined"
|
|
89
98
|
}
|
|
90
99
|
});
|
|
91
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","weights","weightValues","fonts","TitilliumWeb","select","android","ios","ReadexPro","RobotoMono","fontWeights","Light","Regular","SemiBold","Bold","fontWeightsMap","FontStyle","makeFontFamilyName","font","weight","isItalic","arguments","length","undefined","default","makeFontStyleObject","fontFamily","fontWeight","fontStyle","italic","normal"],"sourceRoot":"../../../src","sources":["utils/fonts.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,cAAc;AAIvC,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,EAAEJ,QAAQ,CAACK,MAAM,CAAC;IAC5BC,OAAO,EAAE,cAAc;IACvBC,GAAG,EAAE;EACP,CAAC,CAAC;EACFC,SAAS,
|
|
1
|
+
{"version":3,"names":["Platform","weights","weightValues","fonts","TitilliumWeb","select","android","web","ios","ReadexPro","RobotoMono","fontWeights","Light","Regular","SemiBold","Bold","fontWeightsMap","FontStyle","makeFontFamilyName","font","weight","isItalic","arguments","length","undefined","default","makeFontStyleObject","fontFamily","fontWeight","fontStyle","italic","normal"],"sourceRoot":"../../../src","sources":["utils/fonts.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,cAAc;AAIvC,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,EAAEJ,QAAQ,CAACK,MAAM,CAAC;IAC5BC,OAAO,EAAE,cAAc;IACvBC,GAAG,EAAE,cAAc;IACnBC,GAAG,EAAE;EACP,CAAC,CAAC;EACFC,SAAS,EAAET,QAAQ,CAACK,MAAM,CAAC;IACzBC,OAAO,EAAE,WAAW;IACpBC,GAAG,EAAE,WAAW;IAChBC,GAAG,EAAE;EACP,CAAC,CAAC;EACFE,UAAU,EAAEV,QAAQ,CAACK,MAAM,CAAC;IAC1BC,OAAO,EAAE,YAAY;IACrBC,GAAG,EAAE,YAAY;IACjBC,GAAG,EAAE;EACP,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMG,WAAkD,GAAG;EAChEC,KAAK,EAAE,KAAK;EACZC,OAAO,EAAE,KAAK;EACdC,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE;AACR,CAAC;AAKD;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAqD,GAAG;EACnEJ,KAAK,EAAE,KAAK;EACZC,OAAO,EAAE,KAAK;EACdC,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE;AACR,CAAC;AAED,WAAYE,SAAS,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA;AAWrB;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,kBAAkB,GAAG,SAAAA,CAChCC,IAAgB,EAChBC,MAAqB;EAAA,IACrBC,QAAiB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAAA,OAEzBtB,QAAQ,CAACK,MAAM,CAAC;IACdE,GAAG,EAAEJ,KAAK,CAACgB,IAAI,CAAC;IAChBb,OAAO,EAAG,GAAEH,KAAK,CAACgB,IAAI,CAAE,IAAGC,MAAM,IAAI,SAAU,GAAEC,QAAQ,GAAG,QAAQ,GAAG,EAAG,EAAC;IAC3Eb,GAAG,EAAEL,KAAK,CAACgB,IAAI,CAAC;IAChBM,OAAO,EAAE;EACX,CAAC,CAAC;AAAA;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAG,SAAAA,CAAA;EAAA,IACjCN,MAAgC,GAAAE,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGE,SAAS;EAAA,IAC5CH,QAA6B,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAAA,IACrCH,IAA4B,GAAAG,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,cAAc;EAAA,OAE7CtB,QAAQ,CAACK,MAAM,CAAC;IACdE,GAAG,EAAE;MACHoB,UAAU,EAAET,kBAAkB,CAACC,IAAI,EAAEC,MAAM,EAAEC,QAAQ,CAAC;MACtDO,UAAU,EAAER,MAAM,KAAKI,SAAS,GAAGR,cAAc,CAACI,MAAM,CAAC,GAAGA,MAAM;MAClES,SAAS,EAAER,QAAQ,GAAGJ,SAAS,CAACa,MAAM,GAAGb,SAAS,CAACc;IACrD,CAAC;IACDzB,OAAO,EAAE;MACPqB,UAAU,EAAET,kBAAkB,CAACC,IAAI,EAAEC,MAAM,EAAEC,QAAQ;IACvD,CAAC;IACDb,GAAG,EAAE;MACHmB,UAAU,EAAET,kBAAkB,CAACC,IAAI,EAAEC,MAAM,EAAEC,QAAQ,CAAC;MACtDO,UAAU,EAAER,MAAM,KAAKI,SAAS,GAAGR,cAAc,CAACI,MAAM,CAAC,GAAGA,MAAM;MAClES,SAAS,EAAER,QAAQ,GAAGJ,SAAS,CAACa,MAAM,GAAGb,SAAS,CAACc;IACrD,CAAC;IACDN,OAAO,EAAE;MAAEE,UAAU,EAAE;IAAY;EACrC,CAAC,CAAC;AAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as A from "fp-ts/Array";
|
|
2
|
+
import { pipe } from "fp-ts/lib/function";
|
|
3
|
+
export const findFirstCaseInsensitive = obj => key => pipe(obj, Object.entries, A.findFirst(_ref => {
|
|
4
|
+
let [k, _] = _ref;
|
|
5
|
+
return k.toLowerCase() === key.toLowerCase();
|
|
6
|
+
}));
|
|
7
|
+
//# sourceMappingURL=object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["A","pipe","findFirstCaseInsensitive","obj","key","Object","entries","findFirst","_ref","k","_","toLowerCase"],"sourceRoot":"../../../src","sources":["utils/object.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,aAAa;AAEhC,SAASC,IAAI,QAAQ,oBAAoB;AAEzC,OAAO,MAAMC,wBAAwB,GAC/BC,GAAyB,IAC5BC,GAAW,IACVH,IAAI,CACFE,GAAG,EACHE,MAAM,CAACC,OAAO,EACdN,CAAC,CAACO,SAAS,CAACC,IAAA;EAAA,IAAC,CAACC,CAAC,EAAEC,CAAC,CAAC,GAAAF,IAAA;EAAA,OAAKC,CAAC,CAACE,WAAW,CAAC,CAAC,KAAKP,GAAG,CAACO,WAAW,CAAC,CAAC;AAAA,EAC/D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const getInputPropsByType = type => {
|
|
2
|
+
switch (type) {
|
|
3
|
+
case "credit-card":
|
|
4
|
+
return {
|
|
5
|
+
valueFormat: v => v.replace(/\D/g, "").replace(/\d{4}?(?=.)/g, "$& "),
|
|
6
|
+
textInputProps: {
|
|
7
|
+
autoComplete: "cc-number",
|
|
8
|
+
keyboardType: "numeric",
|
|
9
|
+
textContentType: "creditCardNumber",
|
|
10
|
+
inputMode: "numeric"
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
default:
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getInputPropsByType","type","valueFormat","v","replace","textInputProps","autoComplete","keyboardType","textContentType","inputMode","undefined"],"sourceRoot":"../../../../src","sources":["utils/textInput/index.ts"],"mappings":"AAWA,OAAO,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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* type guard to check if a value is an ImageURISource
|
|
3
|
+
* @argument value the value to check, can be anything
|
|
4
|
+
* @returns boolean
|
|
5
|
+
*/
|
|
6
|
+
export const isImageUri = value => typeof value === "object" && value !== null && "uri" in value;
|
|
7
|
+
//# sourceMappingURL=url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isImageUri","value"],"sourceRoot":"../../../src","sources":["utils/url.ts"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,GAAIC,KAAc,IACvC,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,IAAI,KAAK,IAAIA,KAAK"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type AccordionItem = {
|
|
3
|
+
id: number;
|
|
4
|
+
title: string;
|
|
5
|
+
body: string | React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
type AccordionBody = {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
expanded: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const AccordionBody: ({ children, expanded }: AccordionBody) => React.JSX.Element;
|
|
12
|
+
export declare const AccordionItem: ({ title, body }: AccordionItem) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=AccordionItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/AccordionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAoBxC,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CAChC,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAUF,eAAO,MAAM,aAAa,2BAA4B,aAAa,sBA6BlE,CAAC;AAEF,eAAO,MAAM,aAAa,oBAAqB,aAAa,sBAgE3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|