ferns-ui 0.2.0
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/LICENSE +203 -0
- package/README.md +22 -0
- package/dist/ActionSheet.d.ts +490 -0
- package/dist/ActionSheet.js +647 -0
- package/dist/ActionSheet.js.map +1 -0
- package/dist/Banner.d.ts +27 -0
- package/dist/Banner.js +56 -0
- package/dist/Banner.js.map +1 -0
- package/dist/Banner.stories.d.ts +1 -0
- package/dist/Banner.stories.js +13 -0
- package/dist/Banner.stories.js.map +1 -0
- package/dist/BlurBox.d.ts +5 -0
- package/dist/BlurBox.js +28 -0
- package/dist/BlurBox.js.map +1 -0
- package/dist/BlurBox.native.d.ts +6 -0
- package/dist/BlurBox.native.js +30 -0
- package/dist/BlurBox.native.js.map +1 -0
- package/dist/Body.d.ts +6 -0
- package/dist/Body.js +21 -0
- package/dist/Body.js.map +1 -0
- package/dist/Box.d.ts +18 -0
- package/dist/Box.js +228 -0
- package/dist/Box.js.map +1 -0
- package/dist/Box.stories.d.ts +1 -0
- package/dist/Box.stories.js +45 -0
- package/dist/Box.stories.js.map +1 -0
- package/dist/Button.d.ts +20 -0
- package/dist/Button.js +103 -0
- package/dist/Button.js.map +1 -0
- package/dist/Button.stories.d.ts +1 -0
- package/dist/Button.stories.js +41 -0
- package/dist/Button.stories.js.map +1 -0
- package/dist/Card.d.ts +5 -0
- package/dist/Card.js +8 -0
- package/dist/Card.js.map +1 -0
- package/dist/Card.stories.d.ts +6 -0
- package/dist/Card.stories.js +18 -0
- package/dist/Card.stories.js.map +1 -0
- package/dist/CheckBox.d.ts +6 -0
- package/dist/CheckBox.js +27 -0
- package/dist/CheckBox.js.map +1 -0
- package/dist/CheckBox.stories.d.ts +1 -0
- package/dist/CheckBox.stories.js +28 -0
- package/dist/CheckBox.stories.js.map +1 -0
- package/dist/Common.d.ts +868 -0
- package/dist/Common.js +46 -0
- package/dist/Common.js.map +1 -0
- package/dist/DateTimeActionSheet.d.ts +15 -0
- package/dist/DateTimeActionSheet.js +28 -0
- package/dist/DateTimeActionSheet.js.map +1 -0
- package/dist/DecimalRangeActionSheet.d.ts +18 -0
- package/dist/DecimalRangeActionSheet.js +65 -0
- package/dist/DecimalRangeActionSheet.js.map +1 -0
- package/dist/ErrorBoundary.d.ts +19 -0
- package/dist/ErrorBoundary.js +31 -0
- package/dist/ErrorBoundary.js.map +1 -0
- package/dist/ErrorPage.d.ts +10 -0
- package/dist/ErrorPage.js +20 -0
- package/dist/ErrorPage.js.map +1 -0
- package/dist/Field.d.ts +15 -0
- package/dist/Field.js +136 -0
- package/dist/Field.js.map +1 -0
- package/dist/Field.stories.d.ts +6 -0
- package/dist/Field.stories.js +38 -0
- package/dist/Field.stories.js.map +1 -0
- package/dist/FieldWithLabels.d.ts +3 -0
- package/dist/FieldWithLabels.js +8 -0
- package/dist/FieldWithLabels.js.map +1 -0
- package/dist/FlatList.d.ts +2 -0
- package/dist/FlatList.js +3 -0
- package/dist/FlatList.js.map +1 -0
- package/dist/Form.d.ts +22 -0
- package/dist/Form.js +89 -0
- package/dist/Form.js.map +1 -0
- package/dist/Form.stories.d.ts +6 -0
- package/dist/Form.stories.js +36 -0
- package/dist/Form.stories.js.map +1 -0
- package/dist/HeaderButtons.d.ts +31 -0
- package/dist/HeaderButtons.js +53 -0
- package/dist/HeaderButtons.js.map +1 -0
- package/dist/HeaderButtons.stories.d.ts +6 -0
- package/dist/HeaderButtons.stories.js +6 -0
- package/dist/HeaderButtons.stories.js.map +1 -0
- package/dist/Heading.d.ts +11 -0
- package/dist/Heading.js +46 -0
- package/dist/Heading.js.map +1 -0
- package/dist/Heading.stories.d.ts +1 -0
- package/dist/Heading.stories.js +22 -0
- package/dist/Heading.stories.js.map +1 -0
- package/dist/HeightActionSheet.d.ts +16 -0
- package/dist/HeightActionSheet.js +58 -0
- package/dist/HeightActionSheet.js.map +1 -0
- package/dist/Icon.d.ts +9 -0
- package/dist/Icon.js +125 -0
- package/dist/Icon.js.map +1 -0
- package/dist/Icon.stories.d.ts +1 -0
- package/dist/Icon.stories.js +30 -0
- package/dist/Icon.stories.js.map +1 -0
- package/dist/IconButton.d.ts +5 -0
- package/dist/IconButton.js +41 -0
- package/dist/IconButton.js.map +1 -0
- package/dist/IconButton.stories.d.ts +1 -0
- package/dist/IconButton.stories.js +16 -0
- package/dist/IconButton.stories.js.map +1 -0
- package/dist/Image.d.ts +8 -0
- package/dist/Image.js +37 -0
- package/dist/Image.js.map +1 -0
- package/dist/ImageBackground.d.ts +9 -0
- package/dist/ImageBackground.js +8 -0
- package/dist/ImageBackground.js.map +1 -0
- package/dist/Layer.d.ts +9 -0
- package/dist/Layer.js +12 -0
- package/dist/Layer.js.map +1 -0
- package/dist/Link.d.ts +9 -0
- package/dist/Link.js +12 -0
- package/dist/Link.js.map +1 -0
- package/dist/Link.stories.d.ts +1 -0
- package/dist/Link.stories.js +18 -0
- package/dist/Link.stories.js.map +1 -0
- package/dist/Mask.d.ts +5 -0
- package/dist/Mask.js +22 -0
- package/dist/Mask.js.map +1 -0
- package/dist/Mask.stories.d.ts +1 -0
- package/dist/Mask.stories.js +28 -0
- package/dist/Mask.stories.js.map +1 -0
- package/dist/MediaQuery.d.ts +2 -0
- package/dist/MediaQuery.js +33 -0
- package/dist/MediaQuery.js.map +1 -0
- package/dist/Meta.d.ts +5 -0
- package/dist/Meta.js +7 -0
- package/dist/Meta.js.map +1 -0
- package/dist/ModalSheet.d.ts +7 -0
- package/dist/ModalSheet.js +42 -0
- package/dist/ModalSheet.js.map +1 -0
- package/dist/NumberPickerActionSheet.d.ts +16 -0
- package/dist/NumberPickerActionSheet.js +29 -0
- package/dist/NumberPickerActionSheet.js.map +1 -0
- package/dist/Page.d.ts +26 -0
- package/dist/Page.js +38 -0
- package/dist/Page.js.map +1 -0
- package/dist/Permissions.d.ts +2 -0
- package/dist/Permissions.js +35 -0
- package/dist/Permissions.js.map +1 -0
- package/dist/PickerSelect.d.ts +174 -0
- package/dist/PickerSelect.js +426 -0
- package/dist/PickerSelect.js.map +1 -0
- package/dist/Pill.d.ts +5 -0
- package/dist/Pill.js +10 -0
- package/dist/Pill.js.map +1 -0
- package/dist/Pill.stories.d.ts +1 -0
- package/dist/Pill.stories.js +38 -0
- package/dist/Pill.stories.js.map +1 -0
- package/dist/Pog.d.ts +15 -0
- package/dist/Pog.js +144 -0
- package/dist/Pog.js.map +1 -0
- package/dist/ProgressBar.d.ts +9 -0
- package/dist/ProgressBar.js +41 -0
- package/dist/ProgressBar.js.map +1 -0
- package/dist/ScrollView.d.ts +2 -0
- package/dist/ScrollView.js +3 -0
- package/dist/ScrollView.js.map +1 -0
- package/dist/SegmentedControl.d.ts +6 -0
- package/dist/SegmentedControl.js +18 -0
- package/dist/SegmentedControl.js.map +1 -0
- package/dist/SegmentedControl.stories.d.ts +1 -0
- package/dist/SegmentedControl.stories.js +31 -0
- package/dist/SegmentedControl.stories.js.map +1 -0
- package/dist/SelectList.d.ts +22 -0
- package/dist/SelectList.js +28 -0
- package/dist/SelectList.js.map +1 -0
- package/dist/SelectList.stories.d.ts +1 -0
- package/dist/SelectList.stories.js +26 -0
- package/dist/SelectList.stories.js.map +1 -0
- package/dist/Spinner.d.ts +21 -0
- package/dist/Spinner.js +58 -0
- package/dist/Spinner.js.map +1 -0
- package/dist/Spinner.stories.d.ts +1 -0
- package/dist/Spinner.stories.js +12 -0
- package/dist/Spinner.stories.js.map +1 -0
- package/dist/SplitPage.d.ts +31 -0
- package/dist/SplitPage.js +51 -0
- package/dist/SplitPage.js.map +1 -0
- package/dist/SplitPage.stories.d.ts +1 -0
- package/dist/SplitPage.stories.js +15 -0
- package/dist/SplitPage.stories.js.map +1 -0
- package/dist/StorybookContainer.d.ts +4 -0
- package/dist/StorybookContainer.js +8 -0
- package/dist/StorybookContainer.js.map +1 -0
- package/dist/Switch.d.ts +5 -0
- package/dist/Switch.js +10 -0
- package/dist/Switch.js.map +1 -0
- package/dist/Switch.stories.d.ts +1 -0
- package/dist/Switch.stories.js +34 -0
- package/dist/Switch.stories.js.map +1 -0
- package/dist/TapToEdit.d.ts +12 -0
- package/dist/TapToEdit.js +32 -0
- package/dist/TapToEdit.js.map +1 -0
- package/dist/Text.d.ts +11 -0
- package/dist/Text.js +85 -0
- package/dist/Text.js.map +1 -0
- package/dist/Text.stories.d.ts +1 -0
- package/dist/Text.stories.js +37 -0
- package/dist/Text.stories.js.map +1 -0
- package/dist/TextArea.d.ts +6 -0
- package/dist/TextArea.js +12 -0
- package/dist/TextArea.js.map +1 -0
- package/dist/TextArea.stories.d.ts +10 -0
- package/dist/TextArea.stories.js +24 -0
- package/dist/TextArea.stories.js.map +1 -0
- package/dist/TextField.d.ts +48 -0
- package/dist/TextField.js +207 -0
- package/dist/TextField.js.map +1 -0
- package/dist/TextField.stories.d.ts +6 -0
- package/dist/TextField.stories.js +18 -0
- package/dist/TextField.stories.js.map +1 -0
- package/dist/TextFieldNumberActionSheet.d.ts +15 -0
- package/dist/TextFieldNumberActionSheet.js +28 -0
- package/dist/TextFieldNumberActionSheet.js.map +1 -0
- package/dist/UnifiedScreens.d.ts +9 -0
- package/dist/UnifiedScreens.js +25 -0
- package/dist/UnifiedScreens.js.map +1 -0
- package/dist/Unifier.d.ts +40 -0
- package/dist/Unifier.js +203 -0
- package/dist/Unifier.js.map +1 -0
- package/dist/Utilities.d.ts +31 -0
- package/dist/Utilities.js +74 -0
- package/dist/Utilities.js.map +1 -0
- package/dist/WithLabel.d.ts +5 -0
- package/dist/WithLabel.js +27 -0
- package/dist/WithLabel.js.map +1 -0
- package/dist/dist/ActionSheet.d.ts +139 -0
- package/dist/dist/ActionSheet.js +637 -0
- package/dist/dist/ActionSheet.js.map +1 -0
- package/dist/dist/Banner.d.ts +12 -0
- package/dist/dist/Banner.js +49 -0
- package/dist/dist/Banner.js.map +1 -0
- package/dist/dist/Banner.stories.d.ts +1 -0
- package/dist/dist/Banner.stories.js +9 -0
- package/dist/dist/Banner.stories.js.map +1 -0
- package/dist/dist/BlurBox.d.ts +7 -0
- package/dist/dist/BlurBox.js +29 -0
- package/dist/dist/BlurBox.js.map +1 -0
- package/dist/dist/BlurBox.native.d.ts +9 -0
- package/dist/dist/BlurBox.native.js +32 -0
- package/dist/dist/BlurBox.native.js.map +1 -0
- package/dist/dist/Body.d.ts +12 -0
- package/dist/dist/Body.js +19 -0
- package/dist/dist/Body.js.map +1 -0
- package/dist/dist/Box.d.ts +205 -0
- package/dist/dist/Box.js +229 -0
- package/dist/dist/Box.js.map +1 -0
- package/dist/dist/Box.stories.d.ts +1 -0
- package/dist/dist/Box.stories.js +37 -0
- package/dist/dist/Box.stories.js.map +1 -0
- package/dist/dist/Button.d.ts +16 -0
- package/dist/dist/Button.js +98 -0
- package/dist/dist/Button.js.map +1 -0
- package/dist/dist/Button.stories.d.ts +13 -0
- package/dist/dist/Button.stories.js +26 -0
- package/dist/dist/Button.stories.js.map +1 -0
- package/dist/dist/Card.d.ts +6 -0
- package/dist/dist/Card.js +9 -0
- package/dist/dist/Card.js.map +1 -0
- package/dist/dist/Card.stories.d.ts +6 -0
- package/dist/dist/Card.stories.js +11 -0
- package/dist/dist/Card.stories.js.map +1 -0
- package/dist/dist/CheckBox.d.ts +8 -0
- package/dist/dist/CheckBox.js +23 -0
- package/dist/dist/CheckBox.js.map +1 -0
- package/dist/dist/CheckBox.stories.d.ts +1 -0
- package/dist/dist/CheckBox.stories.js +22 -0
- package/dist/dist/CheckBox.stories.js.map +1 -0
- package/dist/dist/Common.d.ts +5 -0
- package/dist/dist/Common.js +47 -0
- package/dist/dist/Common.js.map +1 -0
- package/dist/dist/DateTimeActionSheet.d.ts +5 -0
- package/dist/dist/DateTimeActionSheet.js +24 -0
- package/dist/dist/DateTimeActionSheet.js.map +1 -0
- package/dist/dist/DecimalRangeActionSheet.d.ts +9 -0
- package/dist/dist/DecimalRangeActionSheet.js +57 -0
- package/dist/dist/DecimalRangeActionSheet.js.map +1 -0
- package/dist/dist/ErrorBoundary.d.ts +12 -0
- package/dist/dist/ErrorBoundary.js +32 -0
- package/dist/dist/ErrorBoundary.js.map +1 -0
- package/dist/dist/ErrorPage.d.ts +7 -0
- package/dist/dist/ErrorPage.js +15 -0
- package/dist/dist/ErrorPage.js.map +1 -0
- package/dist/dist/Field.d.ts +17 -0
- package/dist/dist/Field.js +136 -0
- package/dist/dist/Field.js.map +1 -0
- package/dist/dist/Field.stories.d.ts +6 -0
- package/dist/dist/Field.stories.js +25 -0
- package/dist/dist/Field.stories.js.map +1 -0
- package/dist/dist/FieldWithLabels.d.ts +10 -0
- package/dist/dist/FieldWithLabels.js +7 -0
- package/dist/dist/FieldWithLabels.js.map +1 -0
- package/dist/dist/FlatList.d.ts +1 -0
- package/dist/dist/FlatList.js +4 -0
- package/dist/dist/FlatList.js.map +1 -0
- package/dist/dist/Form.d.ts +15 -0
- package/dist/dist/Form.js +56 -0
- package/dist/dist/Form.js.map +1 -0
- package/dist/dist/Form.stories.d.ts +6 -0
- package/dist/dist/Form.stories.js +27 -0
- package/dist/dist/Form.stories.js.map +1 -0
- package/dist/dist/HeaderButtons.d.ts +39 -0
- package/dist/dist/HeaderButtons.js +50 -0
- package/dist/dist/HeaderButtons.js.map +1 -0
- package/dist/dist/HeaderButtons.stories.d.ts +6 -0
- package/dist/dist/HeaderButtons.stories.js +7 -0
- package/dist/dist/HeaderButtons.stories.js.map +1 -0
- package/dist/dist/Heading.d.ts +32 -0
- package/dist/dist/Heading.js +47 -0
- package/dist/dist/Heading.js.map +1 -0
- package/dist/dist/Heading.stories.d.ts +1 -0
- package/dist/dist/Heading.stories.js +11 -0
- package/dist/dist/Heading.stories.js.map +1 -0
- package/dist/dist/HeightActionSheet.d.ts +9 -0
- package/dist/dist/HeightActionSheet.js +50 -0
- package/dist/dist/HeightActionSheet.js.map +1 -0
- package/dist/dist/Icon.d.ts +12 -0
- package/dist/dist/Icon.js +126 -0
- package/dist/dist/Icon.js.map +1 -0
- package/dist/dist/Icon.stories.d.ts +1 -0
- package/dist/dist/Icon.stories.js +11 -0
- package/dist/dist/Icon.stories.js.map +1 -0
- package/dist/dist/IconButton.d.ts +42 -0
- package/dist/dist/IconButton.js +41 -0
- package/dist/dist/IconButton.js.map +1 -0
- package/dist/dist/IconButton.stories.d.ts +1 -0
- package/dist/dist/IconButton.stories.js +8 -0
- package/dist/dist/IconButton.stories.js.map +1 -0
- package/dist/dist/Image.d.ts +9 -0
- package/dist/dist/Image.js +37 -0
- package/dist/dist/Image.js.map +1 -0
- package/dist/dist/ImageBackground.d.ts +6 -0
- package/dist/dist/ImageBackground.js +9 -0
- package/dist/dist/ImageBackground.js.map +1 -0
- package/dist/dist/Layer.d.ts +5 -0
- package/dist/dist/Layer.js +13 -0
- package/dist/dist/Layer.js.map +1 -0
- package/dist/dist/Link.d.ts +7 -0
- package/dist/dist/Link.js +13 -0
- package/dist/dist/Link.js.map +1 -0
- package/dist/dist/Link.stories.d.ts +1 -0
- package/dist/dist/Link.stories.js +8 -0
- package/dist/dist/Link.stories.js.map +1 -0
- package/dist/dist/Mask.d.ts +5 -0
- package/dist/dist/Mask.js +23 -0
- package/dist/dist/Mask.js.map +1 -0
- package/dist/dist/Mask.stories.d.ts +1 -0
- package/dist/dist/Mask.stories.js +13 -0
- package/dist/dist/Mask.stories.js.map +1 -0
- package/dist/dist/MediaQuery.d.ts +2 -0
- package/dist/dist/MediaQuery.js +34 -0
- package/dist/dist/MediaQuery.js.map +1 -0
- package/dist/dist/Meta.d.ts +6 -0
- package/dist/dist/Meta.js +8 -0
- package/dist/dist/Meta.js.map +1 -0
- package/dist/dist/ModalSheet.d.ts +3 -0
- package/dist/dist/ModalSheet.js +43 -0
- package/dist/dist/ModalSheet.js.map +1 -0
- package/dist/dist/NumberPickerActionSheet.d.ts +5 -0
- package/dist/dist/NumberPickerActionSheet.js +25 -0
- package/dist/dist/NumberPickerActionSheet.js.map +1 -0
- package/dist/dist/Page.d.ts +9 -0
- package/dist/dist/Page.js +26 -0
- package/dist/dist/Page.js.map +1 -0
- package/dist/dist/Permissions.d.ts +1 -0
- package/dist/dist/Permissions.js +36 -0
- package/dist/dist/Permissions.js.map +1 -0
- package/dist/dist/PickerSelect.d.ts +172 -0
- package/dist/dist/PickerSelect.js +403 -0
- package/dist/dist/PickerSelect.js.map +1 -0
- package/dist/dist/Pill.d.ts +7 -0
- package/dist/dist/Pill.js +10 -0
- package/dist/dist/Pill.js.map +1 -0
- package/dist/dist/Pill.stories.d.ts +1 -0
- package/dist/dist/Pill.stories.js +36 -0
- package/dist/dist/Pill.stories.js.map +1 -0
- package/dist/dist/Pog.d.ts +7 -0
- package/dist/dist/Pog.js +144 -0
- package/dist/dist/Pog.js.map +1 -0
- package/dist/dist/ProgressBar.d.ts +16 -0
- package/dist/dist/ProgressBar.js +40 -0
- package/dist/dist/ProgressBar.js.map +1 -0
- package/dist/dist/ScrollView.d.ts +1 -0
- package/dist/dist/ScrollView.js +4 -0
- package/dist/dist/ScrollView.js.map +1 -0
- package/dist/dist/SegmentedControl.d.ts +9 -0
- package/dist/dist/SegmentedControl.js +18 -0
- package/dist/dist/SegmentedControl.js.map +1 -0
- package/dist/dist/SegmentedControl.stories.d.ts +1 -0
- package/dist/dist/SegmentedControl.stories.js +32 -0
- package/dist/dist/SegmentedControl.stories.js.map +1 -0
- package/dist/dist/SelectList.d.ts +9 -0
- package/dist/dist/SelectList.js +29 -0
- package/dist/dist/SelectList.js.map +1 -0
- package/dist/dist/SelectList.stories.d.ts +1 -0
- package/dist/dist/SelectList.stories.js +24 -0
- package/dist/dist/SelectList.stories.js.map +1 -0
- package/dist/dist/Spinner.d.ts +44 -0
- package/dist/dist/Spinner.js +58 -0
- package/dist/dist/Spinner.js.map +1 -0
- package/dist/dist/Spinner.stories.d.ts +1 -0
- package/dist/dist/Spinner.stories.js +10 -0
- package/dist/dist/Spinner.stories.js.map +1 -0
- package/dist/dist/SplitPage.d.ts +7 -0
- package/dist/dist/SplitPage.js +20 -0
- package/dist/dist/SplitPage.js.map +1 -0
- package/dist/dist/SplitPage.stories.d.ts +1 -0
- package/dist/dist/SplitPage.stories.js +7 -0
- package/dist/dist/SplitPage.stories.js.map +1 -0
- package/dist/dist/StorybookContainer.d.ts +7 -0
- package/dist/dist/StorybookContainer.js +9 -0
- package/dist/dist/StorybookContainer.js.map +1 -0
- package/dist/dist/Switch.d.ts +6 -0
- package/dist/dist/Switch.js +10 -0
- package/dist/dist/Switch.js.map +1 -0
- package/dist/dist/Switch.stories.d.ts +1 -0
- package/dist/dist/Switch.stories.js +27 -0
- package/dist/dist/Switch.stories.js.map +1 -0
- package/dist/dist/TapToEdit.d.ts +9 -0
- package/dist/dist/TapToEdit.js +27 -0
- package/dist/dist/TapToEdit.js.map +1 -0
- package/dist/dist/Text.d.ts +36 -0
- package/dist/dist/Text.js +86 -0
- package/dist/dist/Text.js.map +1 -0
- package/dist/dist/Text.stories.d.ts +1 -0
- package/dist/dist/Text.stories.js +13 -0
- package/dist/dist/Text.stories.js.map +1 -0
- package/dist/dist/TextArea.d.ts +6 -0
- package/dist/dist/TextArea.js +13 -0
- package/dist/dist/TextArea.js.map +1 -0
- package/dist/dist/TextArea.stories.d.ts +12 -0
- package/dist/dist/TextArea.stories.js +21 -0
- package/dist/dist/TextArea.stories.js.map +1 -0
- package/dist/dist/TextField.d.ts +47 -0
- package/dist/dist/TextField.js +199 -0
- package/dist/dist/TextField.js.map +1 -0
- package/dist/dist/TextField.stories.d.ts +6 -0
- package/dist/dist/TextField.stories.js +15 -0
- package/dist/dist/TextField.stories.js.map +1 -0
- package/dist/dist/TextFieldNumberActionSheet.d.ts +5 -0
- package/dist/dist/TextFieldNumberActionSheet.js +24 -0
- package/dist/dist/TextFieldNumberActionSheet.js.map +1 -0
- package/dist/dist/UnifiedScreens.d.ts +2 -0
- package/dist/dist/UnifiedScreens.js +26 -0
- package/dist/dist/UnifiedScreens.js.map +1 -0
- package/dist/dist/Unifier.d.ts +131 -0
- package/dist/dist/Unifier.js +198 -0
- package/dist/dist/Unifier.js.map +1 -0
- package/dist/dist/Utilities.d.ts +51 -0
- package/dist/dist/Utilities.js +77 -0
- package/dist/dist/Utilities.js.map +1 -0
- package/dist/dist/WithLabel.d.ts +6 -0
- package/dist/dist/WithLabel.js +23 -0
- package/dist/dist/WithLabel.js.map +1 -0
- package/dist/dist/index.d.ts +43 -0
- package/dist/dist/index.js +49 -0
- package/dist/dist/index.js.map +1 -0
- package/dist/index.d.ts +1284 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/package.json +197 -0
- package/src/ActionSheet.tsx +1234 -0
- package/src/Banner.tsx +124 -0
- package/src/BlurBox.native.tsx +40 -0
- package/src/BlurBox.tsx +31 -0
- package/src/Body.tsx +32 -0
- package/src/Box.tsx +277 -0
- package/src/Button.tsx +139 -0
- package/src/Card.tsx +23 -0
- package/src/CheckBox.tsx +93 -0
- package/src/Common.ts +1376 -0
- package/src/DateTimeActionSheet.tsx +61 -0
- package/src/DecimalRangeActionSheet.tsx +113 -0
- package/src/ErrorBoundary.tsx +39 -0
- package/src/ErrorPage.tsx +44 -0
- package/src/Field.tsx +194 -0
- package/src/FieldWithLabels.tsx +36 -0
- package/src/FlatList.tsx +2 -0
- package/src/Form.tsx +182 -0
- package/src/HeaderButtons.tsx +107 -0
- package/src/Heading.tsx +53 -0
- package/src/HeightActionSheet.tsx +104 -0
- package/src/Icon.tsx +139 -0
- package/src/IconButton.tsx +52 -0
- package/src/Image.tsx +50 -0
- package/src/ImageBackground.tsx +13 -0
- package/src/Layer.tsx +17 -0
- package/src/Link.tsx +17 -0
- package/src/Mask.tsx +24 -0
- package/src/MediaQuery.ts +28 -0
- package/src/Meta.tsx +9 -0
- package/src/ModalSheet.tsx +58 -0
- package/src/NumberPickerActionSheet.tsx +66 -0
- package/src/Page.tsx +134 -0
- package/src/Permissions.ts +44 -0
- package/src/PickerSelect.tsx +673 -0
- package/src/Pill.tsx +24 -0
- package/src/Pog.tsx +211 -0
- package/src/ProgressBar.tsx +55 -0
- package/src/ScrollView.tsx +2 -0
- package/src/SegmentedControl.tsx +51 -0
- package/src/SelectList.tsx +48 -0
- package/src/Spinner.tsx +69 -0
- package/src/SplitPage.tsx +115 -0
- package/src/Switch.tsx +19 -0
- package/src/TapToEdit.tsx +48 -0
- package/src/Text.tsx +92 -0
- package/src/TextArea.tsx +15 -0
- package/src/TextField.tsx +291 -0
- package/src/TextFieldNumberActionSheet.tsx +61 -0
- package/src/UnifiedScreens.ts +24 -0
- package/src/Unifier.ts +268 -0
- package/src/Utilities.tsx +161 -0
- package/src/WithLabel.tsx +46 -0
- package/src/index.tsx +1332 -0
- package/src/polyfill.d.ts +11 -0
- package/tsconfig.json +29 -0
package/src/Text.tsx
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {Text as NativeText} from "react-native";
|
|
3
|
+
import Hyperlink from "react-native-hyperlink";
|
|
4
|
+
|
|
5
|
+
import {TextProps} from "./Common";
|
|
6
|
+
import {Unifier} from "./Unifier";
|
|
7
|
+
|
|
8
|
+
export class Text extends React.Component<TextProps, {}> {
|
|
9
|
+
fontSizes = {
|
|
10
|
+
sm: 12,
|
|
11
|
+
md: 14,
|
|
12
|
+
lg: 16,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
propsToStyle(): any {
|
|
16
|
+
const style: any = {};
|
|
17
|
+
|
|
18
|
+
let font:
|
|
19
|
+
| "primaryFont"
|
|
20
|
+
| "primaryBoldFont"
|
|
21
|
+
| "secondaryFont"
|
|
22
|
+
| "secondaryBoldFont"
|
|
23
|
+
| "buttonFont"
|
|
24
|
+
| "accentFont"
|
|
25
|
+
| "accentBoldFont"
|
|
26
|
+
| "titleFont" = "primaryFont";
|
|
27
|
+
if (this.props.font === "primary") {
|
|
28
|
+
if (this.props.weight === "bold") {
|
|
29
|
+
font = "primaryBoldFont";
|
|
30
|
+
} else {
|
|
31
|
+
font = "primaryFont";
|
|
32
|
+
}
|
|
33
|
+
} else if (this.props.font === "secondary") {
|
|
34
|
+
if (this.props.weight === "bold") {
|
|
35
|
+
font = "secondaryBoldFont";
|
|
36
|
+
} else {
|
|
37
|
+
font = "secondaryFont";
|
|
38
|
+
}
|
|
39
|
+
} else if (this.props.font === "button") {
|
|
40
|
+
font = "buttonFont";
|
|
41
|
+
} else if (this.props.font === "title") {
|
|
42
|
+
font = "titleFont";
|
|
43
|
+
} else if (this.props.font === "accent") {
|
|
44
|
+
if (this.props.weight === "bold") {
|
|
45
|
+
font = "accentBoldFont";
|
|
46
|
+
} else {
|
|
47
|
+
font = "accentFont";
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
style.fontFamily = Unifier.theme[font];
|
|
52
|
+
|
|
53
|
+
style.fontSize = this.fontSizes[this.props.size || "md"];
|
|
54
|
+
if (this.props.align) {
|
|
55
|
+
style.textAlign = this.props.align;
|
|
56
|
+
}
|
|
57
|
+
if (this.props.color) {
|
|
58
|
+
style.color = Unifier.theme[this.props.color];
|
|
59
|
+
} else {
|
|
60
|
+
style.color = Unifier.theme.darkGray;
|
|
61
|
+
}
|
|
62
|
+
// TODO: might be useful for wrapping/truncating
|
|
63
|
+
// if (this.props.numberOfLines !== 1 && !this.props.inline) {
|
|
64
|
+
// style.flexWrap = "wrap";
|
|
65
|
+
// }
|
|
66
|
+
return style;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
render() {
|
|
70
|
+
let lines = 0;
|
|
71
|
+
if (this.props.numberOfLines) {
|
|
72
|
+
lines = this.props.numberOfLines;
|
|
73
|
+
} else if (this.props.inline) {
|
|
74
|
+
lines = 1;
|
|
75
|
+
}
|
|
76
|
+
const inner = (
|
|
77
|
+
<NativeText numberOfLines={lines} style={this.propsToStyle()}>
|
|
78
|
+
{this.props.children}
|
|
79
|
+
</NativeText>
|
|
80
|
+
);
|
|
81
|
+
if (this.props.skipLinking) {
|
|
82
|
+
return inner;
|
|
83
|
+
} else {
|
|
84
|
+
return (
|
|
85
|
+
// <Hyperlink linkDefault={true} linkStyle={{textDecorationLine: "underline"}}>
|
|
86
|
+
// {inner}
|
|
87
|
+
// </Hyperlink>
|
|
88
|
+
<Hyperlink linkDefault>{inner}</Hyperlink>
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
package/src/TextArea.tsx
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import {TextAreaProps} from "./Common";
|
|
4
|
+
import {TextField} from "./TextField";
|
|
5
|
+
|
|
6
|
+
export class TextArea extends React.Component<TextAreaProps, {}> {
|
|
7
|
+
constructor(props: TextAreaProps) {
|
|
8
|
+
super(props);
|
|
9
|
+
this.state = {};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
render() {
|
|
13
|
+
return <TextField {...this.props} height={100} multiline rows={4} />;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import moment from "moment-timezone";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import {ActivityIndicator, KeyboardTypeOptions, Platform, TextInput, View} from "react-native";
|
|
4
|
+
|
|
5
|
+
import {Box} from "./Box";
|
|
6
|
+
import {TextFieldProps} from "./Common";
|
|
7
|
+
import {DateTimeActionSheet} from "./DateTimeActionSheet";
|
|
8
|
+
import {DecimalRangeActionSheet} from "./DecimalRangeActionSheet";
|
|
9
|
+
import {HeightActionSheet} from "./HeightActionSheet";
|
|
10
|
+
import {Icon} from "./Icon";
|
|
11
|
+
import {NumberPickerActionSheet} from "./NumberPickerActionSheet";
|
|
12
|
+
import {Unifier} from "./Unifier";
|
|
13
|
+
import {WithLabel} from "./WithLabel";
|
|
14
|
+
|
|
15
|
+
interface TextFieldState {
|
|
16
|
+
focused: boolean;
|
|
17
|
+
height: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class TextField extends React.Component<TextFieldProps, TextFieldState> {
|
|
21
|
+
dateActionSheetRef: React.RefObject<any> = React.createRef();
|
|
22
|
+
|
|
23
|
+
numberRangeActionSheetRef: React.RefObject<any> = React.createRef();
|
|
24
|
+
|
|
25
|
+
decimalRangeActionSheetRef: React.RefObject<any> = React.createRef();
|
|
26
|
+
|
|
27
|
+
weightActionSheetRef: React.RefObject<any> = React.createRef();
|
|
28
|
+
|
|
29
|
+
constructor(props: TextFieldProps) {
|
|
30
|
+
super(props);
|
|
31
|
+
this.state = {focused: false, height: props.height || 40};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
keyboardMap = {
|
|
35
|
+
date: "default",
|
|
36
|
+
email: "email-address",
|
|
37
|
+
number: "number-pad",
|
|
38
|
+
numberRange: "number-pad",
|
|
39
|
+
decimalRange: "decimal-pad",
|
|
40
|
+
decimal: "decimal-pad",
|
|
41
|
+
height: "default",
|
|
42
|
+
password: "default",
|
|
43
|
+
search: "default",
|
|
44
|
+
text: "default",
|
|
45
|
+
url: Platform.select({
|
|
46
|
+
ios: "url",
|
|
47
|
+
android: "default",
|
|
48
|
+
}),
|
|
49
|
+
username: "default",
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
textContentMap = {
|
|
53
|
+
date: "none",
|
|
54
|
+
email: "emailAddress",
|
|
55
|
+
number: "none",
|
|
56
|
+
decimal: "none",
|
|
57
|
+
decimalRange: "none",
|
|
58
|
+
height: "none",
|
|
59
|
+
password: "password",
|
|
60
|
+
search: "none",
|
|
61
|
+
text: "none",
|
|
62
|
+
url: Platform.select({
|
|
63
|
+
ios: "URL",
|
|
64
|
+
android: "none",
|
|
65
|
+
}),
|
|
66
|
+
username: "username",
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
renderIcon() {
|
|
70
|
+
if (this.props.type !== "search") {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
if (this.props.searching === true) {
|
|
74
|
+
return (
|
|
75
|
+
<Box marginRight={4}>
|
|
76
|
+
<ActivityIndicator color={Unifier.theme.primary} size="small" />
|
|
77
|
+
</Box>
|
|
78
|
+
);
|
|
79
|
+
} else {
|
|
80
|
+
return (
|
|
81
|
+
<Box marginRight={2}>
|
|
82
|
+
<Icon name="search" prefix="far" size={14} />
|
|
83
|
+
</Box>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
getBorderColor = () => {
|
|
89
|
+
if (this.props.errorMessage) {
|
|
90
|
+
return Unifier.theme.red;
|
|
91
|
+
} else if (this.state.focused) {
|
|
92
|
+
return Unifier.theme.blue;
|
|
93
|
+
} else {
|
|
94
|
+
return Unifier.theme.gray;
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
getHeight = () => {
|
|
99
|
+
if (this.props.grow) {
|
|
100
|
+
return Math.max(40, this.state.height);
|
|
101
|
+
} else if (this.props.multiline) {
|
|
102
|
+
return this.props.height || "100%";
|
|
103
|
+
} else {
|
|
104
|
+
return 40;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
focus() {
|
|
109
|
+
// Empty
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
isEditable() {
|
|
113
|
+
return !this.props.disabled && !this.isHandledByModal();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
isHandledByModal = () => {
|
|
117
|
+
return (
|
|
118
|
+
this.props.type === "date" ||
|
|
119
|
+
this.props.type === "numberRange" ||
|
|
120
|
+
this.props.type === "decimalRange" ||
|
|
121
|
+
this.props.type === "height"
|
|
122
|
+
);
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
render() {
|
|
126
|
+
const type = this.props.type || "text";
|
|
127
|
+
const keyboardType = this.keyboardMap[type];
|
|
128
|
+
// let textContentType = this.textContentMap[this.props.type || "text"];
|
|
129
|
+
const {errorMessage, ...props} = this.props;
|
|
130
|
+
let value = this.props.value;
|
|
131
|
+
if (this.props.type === "date") {
|
|
132
|
+
value = moment(this.props.value).format("MM/DD/YYYY");
|
|
133
|
+
} else if (this.props.type === "height") {
|
|
134
|
+
value = `${Math.floor(Number(this.props.value) / 12)} ft, ${
|
|
135
|
+
Number(this.props.value) % 12
|
|
136
|
+
} in`;
|
|
137
|
+
}
|
|
138
|
+
return (
|
|
139
|
+
<>
|
|
140
|
+
<WithLabel
|
|
141
|
+
label={errorMessage}
|
|
142
|
+
labelColor={this.props.errorMessageColor || "red"}
|
|
143
|
+
labelPlacement="after"
|
|
144
|
+
labelSize="sm"
|
|
145
|
+
>
|
|
146
|
+
<WithLabel {...props}>
|
|
147
|
+
<View
|
|
148
|
+
style={{
|
|
149
|
+
flexDirection: "row",
|
|
150
|
+
justifyContent: "center",
|
|
151
|
+
alignItems: "center",
|
|
152
|
+
// height: 40,
|
|
153
|
+
// minHeight: this.getHeight(),
|
|
154
|
+
minHeight: this.getHeight(),
|
|
155
|
+
width: "100%",
|
|
156
|
+
// Add padding so the border doesn't mess up layouts
|
|
157
|
+
paddingHorizontal: this.props.paddingX || this.state.focused ? 10 : 14,
|
|
158
|
+
paddingVertical: this.props.paddingY || this.state.focused ? 0 : 4,
|
|
159
|
+
borderColor: this.getBorderColor(),
|
|
160
|
+
borderWidth: this.state.focused && !this.props.errorMessage ? 5 : 1,
|
|
161
|
+
borderRadius: 16,
|
|
162
|
+
backgroundColor: this.props.disabled ? Unifier.theme.gray : Unifier.theme.white,
|
|
163
|
+
overflow: "hidden",
|
|
164
|
+
}}
|
|
165
|
+
onTouchEnd={() => {
|
|
166
|
+
if (this.props.type === "date") {
|
|
167
|
+
this.dateActionSheetRef?.current?.setModalVisible(true);
|
|
168
|
+
} else if (this.props.type === "numberRange") {
|
|
169
|
+
this.numberRangeActionSheetRef?.current?.setModalVisible(true);
|
|
170
|
+
} else if (this.props.type === "decimalRange") {
|
|
171
|
+
this.decimalRangeActionSheetRef?.current?.setModalVisible(true);
|
|
172
|
+
} else if (this.props.type === "height") {
|
|
173
|
+
this.weightActionSheetRef?.current?.setModalVisible(true);
|
|
174
|
+
}
|
|
175
|
+
}}
|
|
176
|
+
>
|
|
177
|
+
{this.renderIcon()}
|
|
178
|
+
<TextInput
|
|
179
|
+
ref={(ref) => {
|
|
180
|
+
if (this.props.inputRef) {
|
|
181
|
+
this.props.inputRef(ref);
|
|
182
|
+
}
|
|
183
|
+
}}
|
|
184
|
+
autoCapitalize={type === "text" ? "sentences" : "none"}
|
|
185
|
+
autoFocus={this.props.autoFocus}
|
|
186
|
+
blurOnSubmit
|
|
187
|
+
// TODO: uncomment with upgrade to React 0.56.
|
|
188
|
+
// textContentType={textContentType}
|
|
189
|
+
editable={this.isEditable()}
|
|
190
|
+
keyboardType={keyboardType as KeyboardTypeOptions}
|
|
191
|
+
multiline={this.props.multiline}
|
|
192
|
+
numberOfLines={this.props.rows || 4}
|
|
193
|
+
placeholder={this.props.placeholder}
|
|
194
|
+
placeholderTextColor={Unifier.theme.gray}
|
|
195
|
+
returnKeyType={
|
|
196
|
+
type === "number" || type === "decimal" ? "done" : this.props.returnKeyType
|
|
197
|
+
}
|
|
198
|
+
secureTextEntry={type === "password"}
|
|
199
|
+
// For react-native-autofocus
|
|
200
|
+
style={{
|
|
201
|
+
flex: 1,
|
|
202
|
+
paddingTop: 10,
|
|
203
|
+
paddingRight: 10,
|
|
204
|
+
paddingBottom: 10,
|
|
205
|
+
paddingLeft: 0,
|
|
206
|
+
height: this.getHeight(),
|
|
207
|
+
width: "100%",
|
|
208
|
+
color: Unifier.theme.darkGray,
|
|
209
|
+
fontFamily: Unifier.theme.primaryFont,
|
|
210
|
+
// Remove border in web.
|
|
211
|
+
outlineWidth: 0,
|
|
212
|
+
...this.props.style,
|
|
213
|
+
}}
|
|
214
|
+
underlineColorAndroid="transparent"
|
|
215
|
+
value={value}
|
|
216
|
+
onBlur={() => {
|
|
217
|
+
if (!this.isHandledByModal()) {
|
|
218
|
+
this.setState({focused: false});
|
|
219
|
+
}
|
|
220
|
+
if (this.props.onBlur && this.props.value) {
|
|
221
|
+
this.props.onBlur({value: this.props.value});
|
|
222
|
+
}
|
|
223
|
+
// if (this.props.type === "date") {
|
|
224
|
+
// this.actionSheetRef?.current?.setModalVisible(false);
|
|
225
|
+
// }
|
|
226
|
+
}}
|
|
227
|
+
onChangeText={(text) => {
|
|
228
|
+
this.props.onChange({value: text});
|
|
229
|
+
}}
|
|
230
|
+
onContentSizeChange={(event) => {
|
|
231
|
+
if (!this.props.grow) {
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
this.setState({height: event.nativeEvent.contentSize.height});
|
|
235
|
+
}}
|
|
236
|
+
onFocus={() => {
|
|
237
|
+
if (!this.isHandledByModal()) {
|
|
238
|
+
this.setState({focused: true});
|
|
239
|
+
}
|
|
240
|
+
}}
|
|
241
|
+
onSubmitEditing={() => {
|
|
242
|
+
if (this.props.onEnter) {
|
|
243
|
+
this.props.onEnter();
|
|
244
|
+
}
|
|
245
|
+
if (this.props.onSubmitEditing) {
|
|
246
|
+
this.props.onSubmitEditing();
|
|
247
|
+
}
|
|
248
|
+
}}
|
|
249
|
+
/>
|
|
250
|
+
</View>
|
|
251
|
+
</WithLabel>
|
|
252
|
+
</WithLabel>
|
|
253
|
+
{this.props.type === "date" && (
|
|
254
|
+
<DateTimeActionSheet
|
|
255
|
+
actionSheetRef={this.dateActionSheetRef}
|
|
256
|
+
mode="date"
|
|
257
|
+
value={this.props.value}
|
|
258
|
+
onChange={(result) => this.props.onChange(result)}
|
|
259
|
+
/>
|
|
260
|
+
)}
|
|
261
|
+
{this.props.type === "numberRange" && this.props.value && (
|
|
262
|
+
<NumberPickerActionSheet
|
|
263
|
+
actionSheetRef={this.numberRangeActionSheetRef}
|
|
264
|
+
max={this.props.max || (this.props.min || 0) + 100}
|
|
265
|
+
min={this.props.min || 0}
|
|
266
|
+
value={this.props.value}
|
|
267
|
+
onChange={(result) => this.props.onChange(result)}
|
|
268
|
+
/>
|
|
269
|
+
)}
|
|
270
|
+
{this.props.type === "decimalRange" && this.props.value && (
|
|
271
|
+
<DecimalRangeActionSheet
|
|
272
|
+
actionSheetRef={this.decimalRangeActionSheetRef}
|
|
273
|
+
max={this.props.max || (this.props.min || 0) + 100}
|
|
274
|
+
min={this.props.min || 0}
|
|
275
|
+
value={this.props.value}
|
|
276
|
+
onChange={(result) => this.props.onChange(result)}
|
|
277
|
+
/>
|
|
278
|
+
)}
|
|
279
|
+
{this.props.type === "height" && (
|
|
280
|
+
<HeightActionSheet
|
|
281
|
+
actionSheetRef={this.weightActionSheetRef}
|
|
282
|
+
value={this.props.value}
|
|
283
|
+
onChange={(result) => {
|
|
284
|
+
this.props.onChange(result);
|
|
285
|
+
}}
|
|
286
|
+
/>
|
|
287
|
+
)}
|
|
288
|
+
</>
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import DateTimePicker from "@react-native-community/datetimepicker";
|
|
2
|
+
import moment from "moment-timezone";
|
|
3
|
+
import React, {SyntheticEvent} from "react";
|
|
4
|
+
|
|
5
|
+
import {ActionSheet} from "./ActionSheet";
|
|
6
|
+
import {Box} from "./Box";
|
|
7
|
+
import {Button} from "./Button";
|
|
8
|
+
import {OnChangeCallback} from "./Common";
|
|
9
|
+
|
|
10
|
+
interface NumberPickerActionSheetProps {
|
|
11
|
+
value?: string;
|
|
12
|
+
mode?: "date" | "time";
|
|
13
|
+
onChange: OnChangeCallback;
|
|
14
|
+
actionSheetRef: React.RefObject<any>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface NumberPickerActionSheetState {}
|
|
18
|
+
|
|
19
|
+
export class NumberPickerActionSheet extends React.Component<
|
|
20
|
+
NumberPickerActionSheetProps,
|
|
21
|
+
NumberPickerActionSheetState
|
|
22
|
+
> {
|
|
23
|
+
constructor(props: NumberPickerActionSheetProps) {
|
|
24
|
+
super(props);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
render() {
|
|
28
|
+
return (
|
|
29
|
+
<ActionSheet ref={this.props.actionSheetRef} bounceOnOpen gestureEnabled>
|
|
30
|
+
<Box marginBottom={8} paddingX={4} width="100%">
|
|
31
|
+
<Box alignItems="end" display="flex" width="100%">
|
|
32
|
+
<Box width="33%">
|
|
33
|
+
<Button
|
|
34
|
+
color="blue"
|
|
35
|
+
size="lg"
|
|
36
|
+
text="Save"
|
|
37
|
+
type="ghost"
|
|
38
|
+
onClick={() => {
|
|
39
|
+
this.props.actionSheetRef?.current?.setModalVisible(false);
|
|
40
|
+
}}
|
|
41
|
+
/>
|
|
42
|
+
</Box>
|
|
43
|
+
</Box>
|
|
44
|
+
<DateTimePicker
|
|
45
|
+
display="spinner"
|
|
46
|
+
is24Hour
|
|
47
|
+
mode={this.props.mode}
|
|
48
|
+
testID="dateTimePicker"
|
|
49
|
+
value={moment(this.props.value).toDate()}
|
|
50
|
+
onChange={(event: any, date?: Date) => {
|
|
51
|
+
if (!date) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
this.props.onChange({event, value: date.toString()});
|
|
55
|
+
}}
|
|
56
|
+
/>
|
|
57
|
+
</Box>
|
|
58
|
+
</ActionSheet>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// import {Screens} from "./UnifiedScreens";
|
|
2
|
+
|
|
3
|
+
export enum UnifierScreens {
|
|
4
|
+
// BarcodeView = "BarcodeView",
|
|
5
|
+
Contacts = "Contacts",
|
|
6
|
+
FullPageModal = "FullPageModal",
|
|
7
|
+
Auth = "Auth",
|
|
8
|
+
Spinner = "lib.Spinner",
|
|
9
|
+
Payment = "Payment",
|
|
10
|
+
Onboarding = "Onboarding",
|
|
11
|
+
}
|
|
12
|
+
let initialized = false;
|
|
13
|
+
export function initializeUnifiedScreens() {
|
|
14
|
+
if (initialized) {
|
|
15
|
+
console.error("Cannot initialize screens multiple times.");
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
initialized = true;
|
|
19
|
+
console.debug("[unifier] Registering unifier screens");
|
|
20
|
+
// Unifier.navigation.registerScreen(UnifierScreens.Auth, Auth, {url: "/auth"});
|
|
21
|
+
// registerScreen(Screens.BarcodeView, BarcodeView, {url: "/barcode"});
|
|
22
|
+
// Unifier.navigation.registerScreen(UnifierScreens.FullPageModal, FullPageModal, {url: "/item"});
|
|
23
|
+
// Unifier.navigation.registerScreen(UnifierScreens.Spinner, Spinner);
|
|
24
|
+
}
|