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
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export const Unifier: UnifierClass;
|
|
2
|
+
declare class UnifierClass {
|
|
3
|
+
_web: boolean;
|
|
4
|
+
_dev: boolean;
|
|
5
|
+
navigation: {
|
|
6
|
+
dismissOverlay: () => void;
|
|
7
|
+
};
|
|
8
|
+
utils: {
|
|
9
|
+
dismissKeyboard: () => void;
|
|
10
|
+
dimensions: () => {
|
|
11
|
+
width: any;
|
|
12
|
+
height: any;
|
|
13
|
+
};
|
|
14
|
+
copyToClipboard: (text: any) => void;
|
|
15
|
+
orientationChange: (callback: any) => void;
|
|
16
|
+
requestPermissions: (_perm: any) => Promise<import("./Common").PermissionStatus>;
|
|
17
|
+
makePurchase: () => void;
|
|
18
|
+
PaymentService: () => void;
|
|
19
|
+
vibrate: (pattern: any) => void;
|
|
20
|
+
haptic: () => void;
|
|
21
|
+
openUrl: (url: any) => Promise<any>;
|
|
22
|
+
};
|
|
23
|
+
storage: {
|
|
24
|
+
getItem: (key: any, defaultValue: any) => Promise<any>;
|
|
25
|
+
setItem: (key: any, item: any) => Promise<void>;
|
|
26
|
+
};
|
|
27
|
+
tracking: {
|
|
28
|
+
log: (message: any) => void;
|
|
29
|
+
};
|
|
30
|
+
initIcons: () => void;
|
|
31
|
+
get web(): boolean;
|
|
32
|
+
get dev(): boolean;
|
|
33
|
+
setTheme(theme: any): void;
|
|
34
|
+
_theme: any;
|
|
35
|
+
get theme(): {
|
|
36
|
+
red: string;
|
|
37
|
+
white: string;
|
|
38
|
+
lightGray: string;
|
|
39
|
+
gray: string;
|
|
40
|
+
darkGray: string;
|
|
41
|
+
green: string;
|
|
42
|
+
pine: string;
|
|
43
|
+
olive: string;
|
|
44
|
+
blue: string;
|
|
45
|
+
navy: string;
|
|
46
|
+
midnight: string;
|
|
47
|
+
purple: string;
|
|
48
|
+
orchid: string;
|
|
49
|
+
eggplant: string;
|
|
50
|
+
maroon: string;
|
|
51
|
+
watermelon: string;
|
|
52
|
+
orange: string;
|
|
53
|
+
black: string;
|
|
54
|
+
primaryLighter: string;
|
|
55
|
+
primaryLight: string;
|
|
56
|
+
primary: string;
|
|
57
|
+
primaryDark: string;
|
|
58
|
+
primaryDarker: string;
|
|
59
|
+
secondaryLighter: string;
|
|
60
|
+
secondaryLight: string;
|
|
61
|
+
secondary: string;
|
|
62
|
+
secondaryDark: string;
|
|
63
|
+
secondaryDarker: string;
|
|
64
|
+
accentLighter: string;
|
|
65
|
+
accentLight: string;
|
|
66
|
+
accent: string;
|
|
67
|
+
accentDark: string;
|
|
68
|
+
accentDarker: string;
|
|
69
|
+
tertiaryLighter: string;
|
|
70
|
+
tertiaryLight: string;
|
|
71
|
+
tertiary: string;
|
|
72
|
+
tertiaryDark: string;
|
|
73
|
+
tertiaryDarker: string;
|
|
74
|
+
neutral900: string;
|
|
75
|
+
neutral800: string;
|
|
76
|
+
neutral700: string;
|
|
77
|
+
neutral600: string;
|
|
78
|
+
neutral500: string;
|
|
79
|
+
neutral400: string;
|
|
80
|
+
neutral300: string;
|
|
81
|
+
neutral200: string;
|
|
82
|
+
neutral100: string;
|
|
83
|
+
neutral90: string;
|
|
84
|
+
neutral80: string;
|
|
85
|
+
neutral70: string;
|
|
86
|
+
neutral60: string;
|
|
87
|
+
neutral50: string;
|
|
88
|
+
neutral40: string;
|
|
89
|
+
neutral30: string;
|
|
90
|
+
neutral20: string;
|
|
91
|
+
neutral10: string;
|
|
92
|
+
primaryFont: string;
|
|
93
|
+
primaryBoldFont: string;
|
|
94
|
+
secondaryFont: string;
|
|
95
|
+
secondaryBoldFont: string;
|
|
96
|
+
accentFont: string;
|
|
97
|
+
accentBoldFont: string;
|
|
98
|
+
buttonFont: string;
|
|
99
|
+
titleFont: string;
|
|
100
|
+
} & {
|
|
101
|
+
primaryLighter: any;
|
|
102
|
+
primaryLight: any;
|
|
103
|
+
primary: any;
|
|
104
|
+
primaryDark: any;
|
|
105
|
+
primaryDarker: any;
|
|
106
|
+
secondaryLighter: any;
|
|
107
|
+
secondaryLight: any;
|
|
108
|
+
secondary: any;
|
|
109
|
+
secondaryDark: any;
|
|
110
|
+
secondaryDarker: any;
|
|
111
|
+
accentLighter: any;
|
|
112
|
+
accentLight: any;
|
|
113
|
+
accent: any;
|
|
114
|
+
accentDark: any;
|
|
115
|
+
accentDarker: any;
|
|
116
|
+
tertiaryLighter: any;
|
|
117
|
+
tertiaryLight: any;
|
|
118
|
+
tertiary: any;
|
|
119
|
+
tertiaryDark: any;
|
|
120
|
+
tertiaryDarker: any;
|
|
121
|
+
primaryFont: any;
|
|
122
|
+
primaryBoldFont: any;
|
|
123
|
+
secondaryFont: any;
|
|
124
|
+
secondaryBoldFont: any;
|
|
125
|
+
buttonFont: any;
|
|
126
|
+
accentFont: any;
|
|
127
|
+
accentBoldFont: any;
|
|
128
|
+
titleFont: any;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
export {};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
3
|
+
import AsyncStorage from "@react-native-async-storage/async-storage";
|
|
4
|
+
import { Clipboard, Dimensions, Keyboard, Linking, Vibration } from "react-native";
|
|
5
|
+
import ReactNativeHapticFeedback from "react-native-haptic-feedback";
|
|
6
|
+
import { requestPermissions } from "./Permissions";
|
|
7
|
+
const DEFAULT_FONT = "Cochin";
|
|
8
|
+
const DEFAULT_BOLD_FONT = "Cochin";
|
|
9
|
+
const DefaultTheme = {
|
|
10
|
+
// Primary colors
|
|
11
|
+
red: "#bd081c",
|
|
12
|
+
white: "#fdfdfd",
|
|
13
|
+
lightGray: "#efefef",
|
|
14
|
+
gray: "#8e8e8e",
|
|
15
|
+
darkGray: "#111",
|
|
16
|
+
// secondary colors
|
|
17
|
+
green: "#0fa573",
|
|
18
|
+
pine: "#0a6955",
|
|
19
|
+
olive: "#364a4c",
|
|
20
|
+
blue: "#4a90e2",
|
|
21
|
+
navy: "#004b91",
|
|
22
|
+
midnight: "#133a5e",
|
|
23
|
+
purple: "#b469eb",
|
|
24
|
+
orchid: "#8046a5",
|
|
25
|
+
eggplant: "#5b2677",
|
|
26
|
+
maroon: "#6e0f3c",
|
|
27
|
+
watermelon: "#f13535",
|
|
28
|
+
orange: "#e3780c",
|
|
29
|
+
black: "#000000",
|
|
30
|
+
primaryLighter: "#4ED456",
|
|
31
|
+
primaryLight: "#28CA32",
|
|
32
|
+
primary: "#00BD0C",
|
|
33
|
+
primaryDark: "#00960A",
|
|
34
|
+
primaryDarker: "#007508",
|
|
35
|
+
secondaryLighter: "#41AAAE",
|
|
36
|
+
secondaryLight: "#20989D",
|
|
37
|
+
secondary: "#018B91",
|
|
38
|
+
secondaryDark: "#016E73",
|
|
39
|
+
secondaryDarker: "#00565A",
|
|
40
|
+
accentLighter: "#FF625D",
|
|
41
|
+
accentLight: "#FF3732",
|
|
42
|
+
accent: "#F00600",
|
|
43
|
+
accentDark: "#BE0500",
|
|
44
|
+
accentDarker: "#950400",
|
|
45
|
+
tertiaryLighter: "#FFCF67",
|
|
46
|
+
tertiaryLight: "#FFC23E",
|
|
47
|
+
tertiary: "#FFB109",
|
|
48
|
+
tertiaryDark: "#CA8A00",
|
|
49
|
+
tertiaryDarker: "#9F6D00",
|
|
50
|
+
// From the Atlassian templates
|
|
51
|
+
neutral900: "#091E42",
|
|
52
|
+
neutral800: "#172B4D",
|
|
53
|
+
neutral700: "#253858",
|
|
54
|
+
neutral600: "#344563",
|
|
55
|
+
neutral500: "#42526E",
|
|
56
|
+
neutral400: "#505F79",
|
|
57
|
+
neutral300: "#5E6C84",
|
|
58
|
+
neutral200: "#6B778C",
|
|
59
|
+
neutral100: "#7A869A",
|
|
60
|
+
neutral90: "#8993A4",
|
|
61
|
+
neutral80: "#97A0AF",
|
|
62
|
+
neutral70: "#A5ADBA",
|
|
63
|
+
neutral60: "#B3BAC5",
|
|
64
|
+
neutral50: "#C1C7D0",
|
|
65
|
+
neutral40: "#DFE1E6",
|
|
66
|
+
neutral30: "#EBECF0",
|
|
67
|
+
neutral20: "#F4F5F7",
|
|
68
|
+
neutral10: "#FAFBFC",
|
|
69
|
+
primaryFont: DEFAULT_FONT,
|
|
70
|
+
primaryBoldFont: DEFAULT_BOLD_FONT,
|
|
71
|
+
secondaryFont: DEFAULT_FONT,
|
|
72
|
+
secondaryBoldFont: DEFAULT_BOLD_FONT,
|
|
73
|
+
accentFont: DEFAULT_FONT,
|
|
74
|
+
accentBoldFont: DEFAULT_BOLD_FONT,
|
|
75
|
+
buttonFont: DEFAULT_FONT,
|
|
76
|
+
titleFont: DEFAULT_FONT,
|
|
77
|
+
};
|
|
78
|
+
class UnifierClass {
|
|
79
|
+
constructor() {
|
|
80
|
+
this._web = false;
|
|
81
|
+
this._dev = false;
|
|
82
|
+
this.navigation = {
|
|
83
|
+
dismissOverlay: () => {
|
|
84
|
+
console.warn("Dismiss overlay not supported.");
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
// tracking: Tracking,
|
|
88
|
+
this.utils = {
|
|
89
|
+
dismissKeyboard: () => {
|
|
90
|
+
Keyboard.dismiss();
|
|
91
|
+
},
|
|
92
|
+
dimensions: () => ({
|
|
93
|
+
width: Dimensions.get("window").width,
|
|
94
|
+
height: Dimensions.get("window").height,
|
|
95
|
+
}),
|
|
96
|
+
copyToClipboard: (text) => {
|
|
97
|
+
Clipboard.setString(text);
|
|
98
|
+
},
|
|
99
|
+
orientationChange: (callback) => {
|
|
100
|
+
Dimensions.addEventListener("change", () => {
|
|
101
|
+
const screen = Dimensions.get("screen");
|
|
102
|
+
const isPortrait = screen.width < screen.height;
|
|
103
|
+
console.log("Orientation change, isPortrait:", isPortrait);
|
|
104
|
+
callback(isPortrait ? "portrait" : "landscape");
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
requestPermissions: async (_perm) => {
|
|
108
|
+
return requestPermissions(_perm);
|
|
109
|
+
// return requestPermissions(perm);
|
|
110
|
+
},
|
|
111
|
+
makePurchase: () => {
|
|
112
|
+
console.warn("Make purchase not supported yet.");
|
|
113
|
+
},
|
|
114
|
+
PaymentService: () => {
|
|
115
|
+
console.warn("Make purchase not supported yet.");
|
|
116
|
+
},
|
|
117
|
+
vibrate: (pattern) => {
|
|
118
|
+
Vibration.vibrate(pattern || [100], false);
|
|
119
|
+
},
|
|
120
|
+
haptic: () => {
|
|
121
|
+
const options = {
|
|
122
|
+
enableVibrateFallback: true,
|
|
123
|
+
ignoreAndroidSystemSettings: false,
|
|
124
|
+
};
|
|
125
|
+
ReactNativeHapticFeedback.trigger("impactLight", options);
|
|
126
|
+
},
|
|
127
|
+
openUrl: async (url) => {
|
|
128
|
+
return Linking.openURL(url);
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
this.storage = {
|
|
132
|
+
getItem: async (key, defaultValue) => {
|
|
133
|
+
try {
|
|
134
|
+
const jsonValue = await AsyncStorage.getItem(key);
|
|
135
|
+
if (jsonValue) {
|
|
136
|
+
let value = JSON.parse(jsonValue);
|
|
137
|
+
if (value === null || value === undefined) {
|
|
138
|
+
return defaultValue;
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
else if (defaultValue !== undefined) {
|
|
145
|
+
return defaultValue;
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
catch (e) {
|
|
152
|
+
console.error(`[storage] Error reading ${key}`, e);
|
|
153
|
+
return defaultValue || null;
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
setItem: async (key, item) => {
|
|
157
|
+
try {
|
|
158
|
+
const jsonValue = JSON.stringify(item);
|
|
159
|
+
await AsyncStorage.setItem(key, jsonValue);
|
|
160
|
+
}
|
|
161
|
+
catch (e) {
|
|
162
|
+
console.error(`[storage] Error storing ${key}`, item, e);
|
|
163
|
+
throw new Error(e);
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
this.tracking = {
|
|
168
|
+
log: (message) => {
|
|
169
|
+
console.log(message);
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
this.initIcons = () => {
|
|
173
|
+
console.debug("[unifier] Initializing icons");
|
|
174
|
+
};
|
|
175
|
+
console.debug("[unifier] Setting up Unifier");
|
|
176
|
+
}
|
|
177
|
+
get web() {
|
|
178
|
+
return this._web;
|
|
179
|
+
}
|
|
180
|
+
get dev() {
|
|
181
|
+
return this._dev;
|
|
182
|
+
}
|
|
183
|
+
setTheme(theme) {
|
|
184
|
+
this._theme = theme;
|
|
185
|
+
}
|
|
186
|
+
get theme() {
|
|
187
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30;
|
|
188
|
+
return Object.assign(Object.assign({}, DefaultTheme), {
|
|
189
|
+
// Custom per project
|
|
190
|
+
primaryLighter: ((_a = this._theme) === null || _a === void 0 ? void 0 : _a.primaryLighter) || ((_b = this._theme) === null || _b === void 0 ? void 0 : _b.primary) || DefaultTheme.primary, primaryLight: ((_c = this._theme) === null || _c === void 0 ? void 0 : _c.primaryLight) || ((_d = this._theme) === null || _d === void 0 ? void 0 : _d.primary) || DefaultTheme.primary, primary: ((_e = this._theme) === null || _e === void 0 ? void 0 : _e.primary) || ((_f = this._theme) === null || _f === void 0 ? void 0 : _f.primary) || DefaultTheme.primary, primaryDark: ((_g = this._theme) === null || _g === void 0 ? void 0 : _g.primaryDark) || ((_h = this._theme) === null || _h === void 0 ? void 0 : _h.primary) || DefaultTheme.primary, primaryDarker: ((_j = this._theme) === null || _j === void 0 ? void 0 : _j.primaryDarker) || ((_k = this._theme) === null || _k === void 0 ? void 0 : _k.primary) || DefaultTheme.primary, secondaryLighter: ((_l = this._theme) === null || _l === void 0 ? void 0 : _l.secondaryLighter) || ((_m = this._theme) === null || _m === void 0 ? void 0 : _m.secondary) || DefaultTheme.secondary, secondaryLight: ((_o = this._theme) === null || _o === void 0 ? void 0 : _o.secondaryLight) || ((_p = this._theme) === null || _p === void 0 ? void 0 : _p.secondary) || DefaultTheme.secondary, secondary: ((_q = this._theme) === null || _q === void 0 ? void 0 : _q.secondary) || ((_r = this._theme) === null || _r === void 0 ? void 0 : _r.secondary) || DefaultTheme.secondary, secondaryDark: ((_s = this._theme) === null || _s === void 0 ? void 0 : _s.secondaryDark) || ((_t = this._theme) === null || _t === void 0 ? void 0 : _t.secondary) || DefaultTheme.secondary, secondaryDarker: ((_u = this._theme) === null || _u === void 0 ? void 0 : _u.secondaryDarker) || ((_v = this._theme) === null || _v === void 0 ? void 0 : _v.secondary) || DefaultTheme.secondary, accentLighter: ((_w = this._theme) === null || _w === void 0 ? void 0 : _w.accentLighter) || ((_x = this._theme) === null || _x === void 0 ? void 0 : _x.accent) || DefaultTheme.accent, accentLight: ((_y = this._theme) === null || _y === void 0 ? void 0 : _y.accentLight) || ((_z = this._theme) === null || _z === void 0 ? void 0 : _z.accent) || DefaultTheme.accent, accent: ((_0 = this._theme) === null || _0 === void 0 ? void 0 : _0.accent) || ((_1 = this._theme) === null || _1 === void 0 ? void 0 : _1.accent) || DefaultTheme.accent, accentDark: ((_2 = this._theme) === null || _2 === void 0 ? void 0 : _2.accentDark) || ((_3 = this._theme) === null || _3 === void 0 ? void 0 : _3.accent) || DefaultTheme.accent, accentDarker: ((_4 = this._theme) === null || _4 === void 0 ? void 0 : _4.accentDarker) || ((_5 = this._theme) === null || _5 === void 0 ? void 0 : _5.accent) || DefaultTheme.accent, tertiaryLighter: ((_6 = this._theme) === null || _6 === void 0 ? void 0 : _6.tertiaryLighter) || ((_7 = this._theme) === null || _7 === void 0 ? void 0 : _7.accent) || DefaultTheme.accent, tertiaryLight: ((_8 = this._theme) === null || _8 === void 0 ? void 0 : _8.tertiaryLight) || ((_9 = this._theme) === null || _9 === void 0 ? void 0 : _9.accent) || DefaultTheme.accent, tertiary: ((_10 = this._theme) === null || _10 === void 0 ? void 0 : _10.tertiary) || ((_11 = this._theme) === null || _11 === void 0 ? void 0 : _11.accent) || DefaultTheme.accent, tertiaryDark: ((_12 = this._theme) === null || _12 === void 0 ? void 0 : _12.tertiaryDark) || ((_13 = this._theme) === null || _13 === void 0 ? void 0 : _13.accent) || DefaultTheme.accent, tertiaryDarker: ((_14 = this._theme) === null || _14 === void 0 ? void 0 : _14.tertiaryDarker) || ((_15 = this._theme) === null || _15 === void 0 ? void 0 : _15.accent) || DefaultTheme.accent, primaryFont: ((_16 = this._theme) === null || _16 === void 0 ? void 0 : _16.primaryFont) || DefaultTheme.primaryFont, primaryBoldFont: ((_17 = this._theme) === null || _17 === void 0 ? void 0 : _17.primaryBoldFont) || ((_18 = this._theme) === null || _18 === void 0 ? void 0 : _18.primaryFont) || DefaultTheme.primaryBoldFont, secondaryFont: ((_19 = this._theme) === null || _19 === void 0 ? void 0 : _19.secondaryFont) || ((_20 = this._theme) === null || _20 === void 0 ? void 0 : _20.primaryFont) || DefaultTheme.secondaryFont, secondaryBoldFont: ((_21 = this._theme) === null || _21 === void 0 ? void 0 : _21.secondaryBoldFont) || ((_22 = this._theme) === null || _22 === void 0 ? void 0 : _22.primaryFont) ||
|
|
191
|
+
DefaultTheme.secondaryBoldFont, buttonFont: ((_23 = this._theme) === null || _23 === void 0 ? void 0 : _23.buttonFont) || ((_24 = this._theme) === null || _24 === void 0 ? void 0 : _24.primaryFont) || DefaultTheme.buttonFont, accentFont: ((_25 = this._theme) === null || _25 === void 0 ? void 0 : _25.accentFont) || ((_26 = this._theme) === null || _26 === void 0 ? void 0 : _26.primaryFont) || DefaultTheme.accentFont, accentBoldFont: ((_27 = this._theme) === null || _27 === void 0 ? void 0 : _27.accentBoldFont) || ((_28 = this._theme) === null || _28 === void 0 ? void 0 : _28.primaryFont) || DefaultTheme.accentBoldFont, titleFont: ((_29 = this._theme) === null || _29 === void 0 ? void 0 : _29.titleFont) || ((_30 = this._theme) === null || _30 === void 0 ? void 0 : _30.primaryFont) || DefaultTheme.titleFont
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
const NOTIFICATION_TAB_KEY = "@unifier/tabNotifications";
|
|
196
|
+
export const Unifier = new UnifierClass();
|
|
197
|
+
//# sourceMappingURL=Unifier.js.map
|
|
198
|
+
//# sourceMappingURL=Unifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Unifier.js","sourceRoot":"","sources":["../../src/dist/Unifier.js"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,yDAAyD;AACzD,OAAO,YAAY,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,yBAAyB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,YAAY,GAAG,QAAQ,CAAC;AAC9B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AACnC,MAAM,YAAY,GAAG;IACjB,iBAAiB;IACjB,GAAG,EAAE,SAAS;IACd,K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AC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,YAAY,CAAC,SAAS;SAAE,CAAC,CAAC;IAC/zB,CAAC;CACJ;AACD,MAAM,oBAAoB,GAAG,2BAA2B,CAAC;AACzD,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,YAAY,EAAE,CAAC;AAC1C,mCAAmC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export function mergeInlineStyles(inlineStyle: any, newStyle: any): {
|
|
2
|
+
__style: any;
|
|
3
|
+
};
|
|
4
|
+
export function bind(fn: any, scope: any): (val: any) => {
|
|
5
|
+
className: Set<any>;
|
|
6
|
+
inlineStyle: any;
|
|
7
|
+
};
|
|
8
|
+
export function identity(): {
|
|
9
|
+
className: Set<any>;
|
|
10
|
+
inlineStyle: {};
|
|
11
|
+
};
|
|
12
|
+
export function fromClassName(...classNames: any[]): {
|
|
13
|
+
className: Set<any>;
|
|
14
|
+
inlineStyle: {};
|
|
15
|
+
};
|
|
16
|
+
export function fromInlineStyle(inlineStyle: any): {
|
|
17
|
+
className: Set<any>;
|
|
18
|
+
inlineStyle: any;
|
|
19
|
+
};
|
|
20
|
+
export function concat(styles: any): any;
|
|
21
|
+
export function mapClassName(fn: any): ({ className, inlineStyle, }: {
|
|
22
|
+
className: any;
|
|
23
|
+
inlineStyle: any;
|
|
24
|
+
}) => {
|
|
25
|
+
className: Set<any>;
|
|
26
|
+
inlineStyle: any;
|
|
27
|
+
};
|
|
28
|
+
export function toProps({ className, inlineStyle, }: {
|
|
29
|
+
className: any;
|
|
30
|
+
inlineStyle: any;
|
|
31
|
+
}): {
|
|
32
|
+
className: string;
|
|
33
|
+
style: any;
|
|
34
|
+
};
|
|
35
|
+
export function toggle(...classNames: any[]): (val: any) => {
|
|
36
|
+
className: Set<any>;
|
|
37
|
+
inlineStyle: {};
|
|
38
|
+
};
|
|
39
|
+
export function mapping(map: any): (val: any) => {
|
|
40
|
+
className: Set<any>;
|
|
41
|
+
inlineStyle: {};
|
|
42
|
+
};
|
|
43
|
+
export function range(scale: any): (n: any) => {
|
|
44
|
+
className: Set<any>;
|
|
45
|
+
inlineStyle: {};
|
|
46
|
+
};
|
|
47
|
+
export function rangeWithoutZero(scale: any): (n: any) => {
|
|
48
|
+
className: Set<any>;
|
|
49
|
+
inlineStyle: {};
|
|
50
|
+
};
|
|
51
|
+
export function union(...fns: any[]): (val: any) => any;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Originally based on https://github.com/pinterest/gestalt
|
|
2
|
+
// Forked, updated to Typescript, and added features.
|
|
3
|
+
import get from "lodash/get";
|
|
4
|
+
export function mergeInlineStyles(inlineStyle, newStyle) {
|
|
5
|
+
const inline = get(inlineStyle, "__style");
|
|
6
|
+
let dangerouslySetInlineStyle = {
|
|
7
|
+
__style: Object.assign(Object.assign({}, inline), newStyle),
|
|
8
|
+
};
|
|
9
|
+
return dangerouslySetInlineStyle;
|
|
10
|
+
}
|
|
11
|
+
export const identity = () => ({
|
|
12
|
+
className: new Set(),
|
|
13
|
+
inlineStyle: {},
|
|
14
|
+
});
|
|
15
|
+
export const fromClassName = (...classNames) => ({
|
|
16
|
+
className: new Set(classNames),
|
|
17
|
+
inlineStyle: {},
|
|
18
|
+
});
|
|
19
|
+
export const fromInlineStyle = (inlineStyle) => ({
|
|
20
|
+
className: new Set(),
|
|
21
|
+
inlineStyle,
|
|
22
|
+
});
|
|
23
|
+
export const concat = (styles) => styles.reduce(({ className: classNameA, inlineStyle: inlineStyleA }, { className: classNameB, inlineStyle: inlineStyleB }) => ({
|
|
24
|
+
className: new Set([...classNameA, ...classNameB]),
|
|
25
|
+
inlineStyle: Object.assign(Object.assign({}, inlineStyleA), inlineStyleB),
|
|
26
|
+
}), identity());
|
|
27
|
+
export const mapClassName = (fn) => ({ className, inlineStyle, }) => ({
|
|
28
|
+
className: new Set(Array.from(className).map(fn)),
|
|
29
|
+
inlineStyle,
|
|
30
|
+
});
|
|
31
|
+
export const toProps = ({ className, inlineStyle, }) => {
|
|
32
|
+
const props = {};
|
|
33
|
+
if (className.size > 0) {
|
|
34
|
+
// Sorting here ensures that classNames are always stable, reducing diff
|
|
35
|
+
// churn. Box usually has a small number of properties so it's not a perf
|
|
36
|
+
// concern.
|
|
37
|
+
props.className = Array.from(className)
|
|
38
|
+
.sort()
|
|
39
|
+
.join(" ");
|
|
40
|
+
}
|
|
41
|
+
if (Object.keys(inlineStyle).length > 0) {
|
|
42
|
+
props.style = inlineStyle;
|
|
43
|
+
}
|
|
44
|
+
return props;
|
|
45
|
+
};
|
|
46
|
+
// Adds a classname when a property is present.
|
|
47
|
+
//
|
|
48
|
+
// <Box top />
|
|
49
|
+
//
|
|
50
|
+
export const toggle = (...classNames) => (val) => val ? fromClassName(...classNames) : identity();
|
|
51
|
+
// Maps string values to classes
|
|
52
|
+
//
|
|
53
|
+
// <Box alignItems="center" />
|
|
54
|
+
//
|
|
55
|
+
export const mapping = (map) => (val) => Object.prototype.hasOwnProperty.call(map, val) ? fromClassName(map[val]) : identity();
|
|
56
|
+
// Maps a range of integers to a range of classnames
|
|
57
|
+
//
|
|
58
|
+
// <Box padding={1} />
|
|
59
|
+
//
|
|
60
|
+
export const range = (scale) => (n) => fromClassName(`${scale}${n < 0 ? `N${Math.abs(n)}` : n}`);
|
|
61
|
+
// Like `range`, maps a range of integers to a range of classnames, excluding
|
|
62
|
+
// zero values.
|
|
63
|
+
//
|
|
64
|
+
// <Box padding={0} />
|
|
65
|
+
export const rangeWithoutZero = (scale) => (n) => n === 0 ? identity() : range(scale)(n);
|
|
66
|
+
// Binds a string classname to the value in an object. Useful when interacting
|
|
67
|
+
// with ranges that need to come dynamically from a style object. This is
|
|
68
|
+
// similar to the NPM package 'classnames/bind'.
|
|
69
|
+
export function bind(fn, scope) {
|
|
70
|
+
const map = mapClassName((name) => scope[name]);
|
|
71
|
+
return (val) => map(fn(val));
|
|
72
|
+
}
|
|
73
|
+
// This takes a series of the previously defined functors, runs them all
|
|
74
|
+
// against a value and returns the set of their classnames.
|
|
75
|
+
export const union = (...fns) => (val) => concat(fns.map((fn) => fn(val)));
|
|
76
|
+
//# sourceMappingURL=Utilities.js.map
|
|
77
|
+
//# sourceMappingURL=Utilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Utilities.js","sourceRoot":"","sources":["../../src/dist/Utilities.js"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,qDAAqD;AACrD,OAAO,GAAG,MAAM,YAAY,CAAC;AAC7B,MAAM,UAAU,iBAAiB,CAAC,WAAW,EAAE,QAAQ;IACnD,MAAM,MAAM,GAAG,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAC3C,IAAI,yBAAyB,GAAG;QAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC;KAC9D,CAAC;IACF,OAAO,yBAAyB,CAAC;AACrC,CAAC;AACD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CAAC;IAC3B,SAAS,EAAE,IAAI,GAAG,EAAE;IACpB,WAAW,EAAE,EAAE;CAClB,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAG,UAAU,EAAE,EAAE,CAAC,CAAC;IAC7C,SAAS,EAAE,IAAI,GAAG,CAAC,UAAU,CAAC;IAC9B,WAAW,EAAE,EAAE;CAClB,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7C,SAAS,EAAE,IAAI,GAAG,EAAE;IACpB,WAAW;CACd,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE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CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AACjC,CAAC;AACD,wEAAwE;AACxE,2DAA2D;AAC3D,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC3E,qCAAqC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box } from "./Box";
|
|
3
|
+
import { Text } from "./Text";
|
|
4
|
+
export class WithLabel extends React.Component {
|
|
5
|
+
render() {
|
|
6
|
+
const { label, labelInline, labelColor, children } = this.props;
|
|
7
|
+
// If show is undefined or true, show, only hide for actual false for simplicity.
|
|
8
|
+
if (this.props.show === false) {
|
|
9
|
+
return children;
|
|
10
|
+
}
|
|
11
|
+
if (!children) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
if (label) {
|
|
15
|
+
return (React.createElement(Box, { direction: labelInline ? "row" : "column", justifyContent: this.props.labelJustifyContent, width: "100%" }, this.props.labelPlacement !== "after" && (React.createElement(Box, { paddingY: 1 }, React.createElement(Text, { size: this.props.labelSize, color: labelColor || "darkGray", weight: "bold" }, label))), children, this.props.labelPlacement === "after" && (React.createElement(Box, { paddingY: 1 }, React.createElement(Text, { size: this.props.labelSize, color: labelColor || "darkGray" }, label)))));
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
return children;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=WithLabel.js.map
|
|
23
|
+
//# sourceMappingURL=WithLabel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithLabel.js","sourceRoot":"","sources":["../../src/dist/WithLabel.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,M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AE,UAAU,IAAI,UAAU,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SACjH;aACI;YACD,OAAO,QAAQ,CAAC;SACnB;IACL,CAAC;CACJ;AACD,qCAAqC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * from "./Common";
|
|
2
|
+
export * from "./Banner";
|
|
3
|
+
export * from "./BlurBox";
|
|
4
|
+
export * from "./Body";
|
|
5
|
+
export * from "./Box";
|
|
6
|
+
export * from "./Button";
|
|
7
|
+
export * from "./Card";
|
|
8
|
+
export * from "./CheckBox";
|
|
9
|
+
export * from "./DateTimeActionSheet";
|
|
10
|
+
export * from "./ErrorBoundary";
|
|
11
|
+
export * from "./ErrorPage";
|
|
12
|
+
export * from "./FlatList";
|
|
13
|
+
export * from "./Field";
|
|
14
|
+
export * from "./Form";
|
|
15
|
+
export * from "./HeaderButtons";
|
|
16
|
+
export * from "./Heading";
|
|
17
|
+
export * from "./Icon";
|
|
18
|
+
export * from "./ActionSheet";
|
|
19
|
+
export * from "./IconButton";
|
|
20
|
+
export * from "./Image";
|
|
21
|
+
export * from "./ImageBackground";
|
|
22
|
+
export * from "./Link";
|
|
23
|
+
export * from "./Mask";
|
|
24
|
+
export * from "./Meta";
|
|
25
|
+
export * from "./Page";
|
|
26
|
+
export * from "./Pill";
|
|
27
|
+
export * from "./ScrollView";
|
|
28
|
+
export * from "./SegmentedControl";
|
|
29
|
+
export * from "./SelectList";
|
|
30
|
+
export * from "./SplitPage";
|
|
31
|
+
export * from "./Spinner";
|
|
32
|
+
export * from "./Switch";
|
|
33
|
+
export * from "./TapToEdit";
|
|
34
|
+
export * from "./Text";
|
|
35
|
+
export * from "./TextField";
|
|
36
|
+
export * from "./UnifiedScreens";
|
|
37
|
+
export * from "./Unifier";
|
|
38
|
+
export * from "./WithLabel";
|
|
39
|
+
export * from "./DecimalRangeActionSheet";
|
|
40
|
+
export * from "./HeightActionSheet";
|
|
41
|
+
export * from "./NumberPickerActionSheet";
|
|
42
|
+
export * from "./ModalSheet";
|
|
43
|
+
export * from "./ProgressBar";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export * from "./Common";
|
|
2
|
+
export * from "./Banner";
|
|
3
|
+
export * from "./BlurBox";
|
|
4
|
+
export * from "./Body";
|
|
5
|
+
export * from "./Box";
|
|
6
|
+
export * from "./Button";
|
|
7
|
+
export * from "./Card";
|
|
8
|
+
export * from "./CheckBox";
|
|
9
|
+
export * from "./DateTimeActionSheet";
|
|
10
|
+
export * from "./ErrorBoundary";
|
|
11
|
+
export * from "./ErrorPage";
|
|
12
|
+
export * from "./FlatList";
|
|
13
|
+
export * from "./Field";
|
|
14
|
+
export * from "./Form";
|
|
15
|
+
export * from "./HeaderButtons";
|
|
16
|
+
export * from "./Heading";
|
|
17
|
+
export * from "./Icon";
|
|
18
|
+
export * from "./ActionSheet";
|
|
19
|
+
export * from "./IconButton";
|
|
20
|
+
export * from "./Image";
|
|
21
|
+
export * from "./ImageBackground";
|
|
22
|
+
// export * from "./Layout";
|
|
23
|
+
// export * from "./Drawer";
|
|
24
|
+
export * from "./Link";
|
|
25
|
+
export * from "./Mask";
|
|
26
|
+
export * from "./Meta";
|
|
27
|
+
// export * from "./Modal";
|
|
28
|
+
export * from "./Page";
|
|
29
|
+
export * from "./Pill";
|
|
30
|
+
export * from "./ScrollView";
|
|
31
|
+
export * from "./SegmentedControl";
|
|
32
|
+
export * from "./SelectList";
|
|
33
|
+
export * from "./SplitPage";
|
|
34
|
+
export * from "./Spinner";
|
|
35
|
+
export * from "./Switch";
|
|
36
|
+
export * from "./TapToEdit";
|
|
37
|
+
export * from "./Text";
|
|
38
|
+
export * from "./TextField";
|
|
39
|
+
export * from "./UnifiedScreens";
|
|
40
|
+
export * from "./Unifier";
|
|
41
|
+
export * from "./WithLabel";
|
|
42
|
+
export * from "./DecimalRangeActionSheet";
|
|
43
|
+
export * from "./HeightActionSheet";
|
|
44
|
+
export * from "./NumberPickerActionSheet";
|
|
45
|
+
// export * from "./Chart";
|
|
46
|
+
export * from "./ModalSheet";
|
|
47
|
+
export * from "./ProgressBar";
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dist/index.js"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,4BAA4B;AAC5B,4BAA4B;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,2BAA2B;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,aA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