react95-native-rabbl 0.1.1 → 0.1.3
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/dist/commonjs/assets/fonts/src/ms-sans-serif/MS Sans Serif.ttf +0 -0
- package/dist/commonjs/assets/fonts/src/ms-sans-serif/license.txt +4 -0
- package/dist/commonjs/assets/fonts/src/ms-sans-serif/readme.txt +26 -0
- package/dist/commonjs/assets/fonts/src/ms-sans-serif-bold/MS Sans Serif Bold.ttf +0 -0
- package/dist/commonjs/assets/fonts/src/ms-sans-serif-bold/license.txt +4 -0
- package/dist/commonjs/assets/fonts/src/ms-sans-serif-bold/readme.txt +26 -0
- package/dist/commonjs/components/AppBar/AppBar.js +40 -0
- package/dist/commonjs/components/AppBar/AppBar.js.map +1 -0
- package/dist/commonjs/components/AppBar/AppBar.spec.js +154 -0
- package/dist/commonjs/components/AppBar/AppBar.spec.js.map +1 -0
- package/dist/commonjs/components/AppBar/AppBarBackAction.js +30 -0
- package/dist/commonjs/components/AppBar/AppBarBackAction.js.map +1 -0
- package/dist/commonjs/components/AppBar/AppBarContent.js +66 -0
- package/dist/commonjs/components/AppBar/AppBarContent.js.map +1 -0
- package/dist/commonjs/components/AppBar/index.js +14 -0
- package/dist/commonjs/components/AppBar/index.js.map +1 -0
- package/dist/commonjs/components/Button/Button.js +170 -0
- package/dist/commonjs/components/Button/Button.js.map +1 -0
- package/dist/commonjs/components/Button/Button.spec.js +70 -0
- package/dist/commonjs/components/Button/Button.spec.js.map +1 -0
- package/dist/commonjs/components/Button/index.js +14 -0
- package/dist/commonjs/components/Button/index.js.map +1 -0
- package/dist/commonjs/components/Card/Card.js +69 -0
- package/dist/commonjs/components/Card/Card.js.map +1 -0
- package/dist/commonjs/components/Card/Card.spec.js +63 -0
- package/dist/commonjs/components/Card/Card.spec.js.map +1 -0
- package/dist/commonjs/components/Card/CardContent.js +28 -0
- package/dist/commonjs/components/Card/CardContent.js.map +1 -0
- package/dist/commonjs/components/Card/index.js +14 -0
- package/dist/commonjs/components/Card/index.js.map +1 -0
- package/dist/commonjs/components/Checkbox/Checkbox.js +19 -0
- package/dist/commonjs/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/commonjs/components/Checkbox/index.js +14 -0
- package/dist/commonjs/components/Checkbox/index.js.map +1 -0
- package/dist/commonjs/components/ColorButton/ColorButton.js +67 -0
- package/dist/commonjs/components/ColorButton/ColorButton.js.map +1 -0
- package/dist/commonjs/components/ColorButton/index.js +14 -0
- package/dist/commonjs/components/ColorButton/index.js.map +1 -0
- package/dist/commonjs/components/ColorPicker/ColorPicker.js +85 -0
- package/dist/commonjs/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/commonjs/components/ColorPicker/index.js +14 -0
- package/dist/commonjs/components/ColorPicker/index.js.map +1 -0
- package/dist/commonjs/components/Desktop/Desktop.js +149 -0
- package/dist/commonjs/components/Desktop/Desktop.js.map +1 -0
- package/dist/commonjs/components/Desktop/Desktop.spec.js +43 -0
- package/dist/commonjs/components/Desktop/Desktop.spec.js.map +1 -0
- package/dist/commonjs/components/Desktop/index.js +14 -0
- package/dist/commonjs/components/Desktop/index.js.map +1 -0
- package/dist/commonjs/components/Divider/Divider.js +46 -0
- package/dist/commonjs/components/Divider/Divider.js.map +1 -0
- package/dist/commonjs/components/Divider/Divider.spec.js +74 -0
- package/dist/commonjs/components/Divider/Divider.spec.js.map +1 -0
- package/dist/commonjs/components/Divider/index.js +14 -0
- package/dist/commonjs/components/Divider/index.js.map +1 -0
- package/dist/commonjs/components/FAB/FAB.js +210 -0
- package/dist/commonjs/components/FAB/FAB.js.map +1 -0
- package/dist/commonjs/components/FAB/FABGroup.js +255 -0
- package/dist/commonjs/components/FAB/FABGroup.js.map +1 -0
- package/dist/commonjs/components/FAB/index.js +14 -0
- package/dist/commonjs/components/FAB/index.js.map +1 -0
- package/dist/commonjs/components/Fieldset/Fieldset.js +85 -0
- package/dist/commonjs/components/Fieldset/Fieldset.js.map +1 -0
- package/dist/commonjs/components/Fieldset/Fieldset.spec.js +60 -0
- package/dist/commonjs/components/Fieldset/Fieldset.spec.js.map +1 -0
- package/dist/commonjs/components/Fieldset/index.js +14 -0
- package/dist/commonjs/components/Fieldset/index.js.map +1 -0
- package/dist/commonjs/components/Hourglass/Hourglass.js +40 -0
- package/dist/commonjs/components/Hourglass/Hourglass.js.map +1 -0
- package/dist/commonjs/components/Hourglass/Hourglass.spec.js +35 -0
- package/dist/commonjs/components/Hourglass/Hourglass.spec.js.map +1 -0
- package/dist/commonjs/components/Hourglass/base64hourglass.js +9 -0
- package/dist/commonjs/components/Hourglass/base64hourglass.js.map +1 -0
- package/dist/commonjs/components/Hourglass/index.js +14 -0
- package/dist/commonjs/components/Hourglass/index.js.map +1 -0
- package/dist/commonjs/components/Icons/ArrowIcon.js +59 -0
- package/dist/commonjs/components/Icons/ArrowIcon.js.map +1 -0
- package/dist/commonjs/components/Icons/CheckmarkIcon.js +43 -0
- package/dist/commonjs/components/Icons/CheckmarkIcon.js.map +1 -0
- package/dist/commonjs/components/Icons/ChevronIcon.js +65 -0
- package/dist/commonjs/components/Icons/ChevronIcon.js.map +1 -0
- package/dist/commonjs/components/Icons/CloseIcon.js +47 -0
- package/dist/commonjs/components/Icons/CloseIcon.js.map +1 -0
- package/dist/commonjs/components/Icons/index.js +35 -0
- package/dist/commonjs/components/Icons/index.js.map +1 -0
- package/dist/commonjs/components/Label/Label.js +58 -0
- package/dist/commonjs/components/Label/Label.js.map +1 -0
- package/dist/commonjs/components/Label/index.js +14 -0
- package/dist/commonjs/components/Label/index.js.map +1 -0
- package/dist/commonjs/components/List/List.js +35 -0
- package/dist/commonjs/components/List/List.js.map +1 -0
- package/dist/commonjs/components/List/ListAccordion.js +135 -0
- package/dist/commonjs/components/List/ListAccordion.js.map +1 -0
- package/dist/commonjs/components/List/ListItem.js +67 -0
- package/dist/commonjs/components/List/ListItem.js.map +1 -0
- package/dist/commonjs/components/List/ListSection.js +41 -0
- package/dist/commonjs/components/List/ListSection.js.map +1 -0
- package/dist/commonjs/components/List/index.js +10 -0
- package/dist/commonjs/components/List/index.js.map +1 -0
- package/dist/commonjs/components/Menu/Menu.js +86 -0
- package/dist/commonjs/components/Menu/Menu.js.map +1 -0
- package/dist/commonjs/components/Menu/MenuItem.js +79 -0
- package/dist/commonjs/components/Menu/MenuItem.js.map +1 -0
- package/dist/commonjs/components/Menu/index.js +14 -0
- package/dist/commonjs/components/Menu/index.js.map +1 -0
- package/dist/commonjs/components/NumberInput/NumberInput.js +123 -0
- package/dist/commonjs/components/NumberInput/NumberInput.js.map +1 -0
- package/dist/commonjs/components/NumberInput/NumberInput.spec.js +130 -0
- package/dist/commonjs/components/NumberInput/NumberInput.spec.js.map +1 -0
- package/dist/commonjs/components/NumberInput/index.js +14 -0
- package/dist/commonjs/components/NumberInput/index.js.map +1 -0
- package/dist/commonjs/components/Panel/Panel.js +60 -0
- package/dist/commonjs/components/Panel/Panel.js.map +1 -0
- package/dist/commonjs/components/Panel/Panel.spec.js +35 -0
- package/dist/commonjs/components/Panel/Panel.spec.js.map +1 -0
- package/dist/commonjs/components/Panel/index.js +14 -0
- package/dist/commonjs/components/Panel/index.js.map +1 -0
- package/dist/commonjs/components/Portal/Portal.js +49 -0
- package/dist/commonjs/components/Portal/Portal.js.map +1 -0
- package/dist/commonjs/components/Portal/PortalConsumer.js +39 -0
- package/dist/commonjs/components/Portal/PortalConsumer.js.map +1 -0
- package/dist/commonjs/components/Portal/PortalHost.js +141 -0
- package/dist/commonjs/components/Portal/PortalHost.js.map +1 -0
- package/dist/commonjs/components/Portal/PortalManager.js +57 -0
- package/dist/commonjs/components/Portal/PortalManager.js.map +1 -0
- package/dist/commonjs/components/Portal/index.js +14 -0
- package/dist/commonjs/components/Portal/index.js.map +1 -0
- package/dist/commonjs/components/Progress/Progress.js +94 -0
- package/dist/commonjs/components/Progress/Progress.js.map +1 -0
- package/dist/commonjs/components/Progress/index.js +14 -0
- package/dist/commonjs/components/Progress/index.js.map +1 -0
- package/dist/commonjs/components/Radio/Radio.js +19 -0
- package/dist/commonjs/components/Radio/Radio.js.map +1 -0
- package/dist/commonjs/components/Radio/index.js +14 -0
- package/dist/commonjs/components/Radio/index.js.map +1 -0
- package/dist/commonjs/components/ScrollPanel/ScrollPanel.js +78 -0
- package/dist/commonjs/components/ScrollPanel/ScrollPanel.js.map +1 -0
- package/dist/commonjs/components/ScrollPanel/index.js +14 -0
- package/dist/commonjs/components/ScrollPanel/index.js.map +1 -0
- package/dist/commonjs/components/ScrollView/ScrollView.js +211 -0
- package/dist/commonjs/components/ScrollView/ScrollView.js.map +1 -0
- package/dist/commonjs/components/ScrollView/index.js +14 -0
- package/dist/commonjs/components/ScrollView/index.js.map +1 -0
- package/dist/commonjs/components/Select/Select.js +180 -0
- package/dist/commonjs/components/Select/Select.js.map +1 -0
- package/dist/commonjs/components/Select/SelectBase.js +80 -0
- package/dist/commonjs/components/Select/SelectBase.js.map +1 -0
- package/dist/commonjs/components/Select/SelectBox.js +60 -0
- package/dist/commonjs/components/Select/SelectBox.js.map +1 -0
- package/dist/commonjs/components/Select/index.js +21 -0
- package/dist/commonjs/components/Select/index.js.map +1 -0
- package/dist/commonjs/components/Slider/Slider.js +243 -0
- package/dist/commonjs/components/Slider/Slider.js.map +1 -0
- package/dist/commonjs/components/Slider/index.js +14 -0
- package/dist/commonjs/components/Slider/index.js.map +1 -0
- package/dist/commonjs/components/Snackbar/Snackbar.js +192 -0
- package/dist/commonjs/components/Snackbar/Snackbar.js.map +1 -0
- package/dist/commonjs/components/Snackbar/SnackbarContent.js +28 -0
- package/dist/commonjs/components/Snackbar/SnackbarContent.js.map +1 -0
- package/dist/commonjs/components/Snackbar/index.js +14 -0
- package/dist/commonjs/components/Snackbar/index.js.map +1 -0
- package/dist/commonjs/components/SwitchBase/SwitchBase.js +154 -0
- package/dist/commonjs/components/SwitchBase/SwitchBase.js.map +1 -0
- package/dist/commonjs/components/SwitchBase/index.js +17 -0
- package/dist/commonjs/components/SwitchBase/index.js.map +1 -0
- package/dist/commonjs/components/Tabs/Tabs.js +162 -0
- package/dist/commonjs/components/Tabs/Tabs.js.map +1 -0
- package/dist/commonjs/components/Tabs/index.js +14 -0
- package/dist/commonjs/components/Tabs/index.js.map +1 -0
- package/dist/commonjs/components/TextInput/TextInput.js +66 -0
- package/dist/commonjs/components/TextInput/TextInput.js.map +1 -0
- package/dist/commonjs/components/TextInput/index.js +14 -0
- package/dist/commonjs/components/TextInput/index.js.map +1 -0
- package/dist/commonjs/components/Toolbar/Toolbar.js +90 -0
- package/dist/commonjs/components/Toolbar/Toolbar.js.map +1 -0
- package/dist/commonjs/components/Toolbar/index.js +14 -0
- package/dist/commonjs/components/Toolbar/index.js.map +1 -0
- package/dist/commonjs/components/Typography/Anchor.js +31 -0
- package/dist/commonjs/components/Typography/Anchor.js.map +1 -0
- package/dist/commonjs/components/Typography/Text.js +40 -0
- package/dist/commonjs/components/Typography/Text.js.map +1 -0
- package/dist/commonjs/components/Typography/Text.spec.js +37 -0
- package/dist/commonjs/components/Typography/Text.spec.js.map +1 -0
- package/dist/commonjs/components/Typography/Title.js +64 -0
- package/dist/commonjs/components/Typography/Title.js.map +1 -0
- package/dist/commonjs/components/Typography/index.js +28 -0
- package/dist/commonjs/components/Typography/index.js.map +1 -0
- package/dist/commonjs/components/Window/Window.js +107 -0
- package/dist/commonjs/components/Window/Window.js.map +1 -0
- package/dist/commonjs/components/Window/index.js +14 -0
- package/dist/commonjs/components/Window/index.js.map +1 -0
- package/dist/commonjs/core/Provider.js +59 -0
- package/dist/commonjs/core/Provider.js.map +1 -0
- package/dist/commonjs/core/theming.js +18 -0
- package/dist/commonjs/core/theming.js.map +1 -0
- package/dist/commonjs/hooks/useAsyncReference.js +19 -0
- package/dist/commonjs/hooks/useAsyncReference.js.map +1 -0
- package/dist/commonjs/hooks/useControlledOrUncontrolled.js +24 -0
- package/dist/commonjs/hooks/useControlledOrUncontrolled.js.map +1 -0
- package/dist/commonjs/index.js +328 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/package.json +1 -0
- package/dist/commonjs/styles/shadow.js +40 -0
- package/dist/commonjs/styles/shadow.js.map +1 -0
- package/dist/commonjs/styles/styleElements.js +81 -0
- package/dist/commonjs/styles/styleElements.js.map +1 -0
- package/dist/commonjs/styles/styles.js +134 -0
- package/dist/commonjs/styles/styles.js.map +1 -0
- package/dist/commonjs/styles/themes/aiee.js +42 -0
- package/dist/commonjs/styles/themes/aiee.js.map +1 -0
- package/dist/commonjs/styles/themes/ash.js +42 -0
- package/dist/commonjs/styles/themes/ash.js.map +1 -0
- package/dist/commonjs/styles/themes/azureOrange.js +39 -0
- package/dist/commonjs/styles/themes/azureOrange.js.map +1 -0
- package/dist/commonjs/styles/themes/bee.js +39 -0
- package/dist/commonjs/styles/themes/bee.js.map +1 -0
- package/dist/commonjs/styles/themes/blackAndWhite.js +39 -0
- package/dist/commonjs/styles/themes/blackAndWhite.js.map +1 -0
- package/dist/commonjs/styles/themes/blue.js +42 -0
- package/dist/commonjs/styles/themes/blue.js.map +1 -0
- package/dist/commonjs/styles/themes/brick.js +39 -0
- package/dist/commonjs/styles/themes/brick.js.map +1 -0
- package/dist/commonjs/styles/themes/candy.js +39 -0
- package/dist/commonjs/styles/themes/candy.js.map +1 -0
- package/dist/commonjs/styles/themes/cherry.js +42 -0
- package/dist/commonjs/styles/themes/cherry.js.map +1 -0
- package/dist/commonjs/styles/themes/coldGray.js +40 -0
- package/dist/commonjs/styles/themes/coldGray.js.map +1 -0
- package/dist/commonjs/styles/themes/counterStrike.js +39 -0
- package/dist/commonjs/styles/themes/counterStrike.js.map +1 -0
- package/dist/commonjs/styles/themes/darkTeal.js +42 -0
- package/dist/commonjs/styles/themes/darkTeal.js.map +1 -0
- package/dist/commonjs/styles/themes/eggplant.js +39 -0
- package/dist/commonjs/styles/themes/eggplant.js.map +1 -0
- package/dist/commonjs/styles/themes/fxDev.js +42 -0
- package/dist/commonjs/styles/themes/fxDev.js.map +1 -0
- package/dist/commonjs/styles/themes/highContrast.js +39 -0
- package/dist/commonjs/styles/themes/highContrast.js.map +1 -0
- package/dist/commonjs/styles/themes/hotChocolate.js +42 -0
- package/dist/commonjs/styles/themes/hotChocolate.js.map +1 -0
- package/dist/commonjs/styles/themes/index.js +110 -0
- package/dist/commonjs/styles/themes/index.js.map +1 -0
- package/dist/commonjs/styles/themes/lilac.js +39 -0
- package/dist/commonjs/styles/themes/lilac.js.map +1 -0
- package/dist/commonjs/styles/themes/lilacRoseDark.js +40 -0
- package/dist/commonjs/styles/themes/lilacRoseDark.js.map +1 -0
- package/dist/commonjs/styles/themes/maple.js +39 -0
- package/dist/commonjs/styles/themes/maple.js.map +1 -0
- package/dist/commonjs/styles/themes/marine.js +39 -0
- package/dist/commonjs/styles/themes/marine.js.map +1 -0
- package/dist/commonjs/styles/themes/matrix.js +39 -0
- package/dist/commonjs/styles/themes/matrix.js.map +1 -0
- package/dist/commonjs/styles/themes/millenium.js +39 -0
- package/dist/commonjs/styles/themes/millenium.js.map +1 -0
- package/dist/commonjs/styles/themes/modernDark.js +39 -0
- package/dist/commonjs/styles/themes/modernDark.js.map +1 -0
- package/dist/commonjs/styles/themes/molecule.js +39 -0
- package/dist/commonjs/styles/themes/molecule.js.map +1 -0
- package/dist/commonjs/styles/themes/monochrome.js +2 -0
- package/dist/commonjs/styles/themes/monochrome.js.map +1 -0
- package/dist/commonjs/styles/themes/ninjaTurtles.js +39 -0
- package/dist/commonjs/styles/themes/ninjaTurtles.js.map +1 -0
- package/dist/commonjs/styles/themes/olive.js +39 -0
- package/dist/commonjs/styles/themes/olive.js.map +1 -0
- package/dist/commonjs/styles/themes/original.js +39 -0
- package/dist/commonjs/styles/themes/original.js.map +1 -0
- package/dist/commonjs/styles/themes/pamelaAnderson.js +39 -0
- package/dist/commonjs/styles/themes/pamelaAnderson.js.map +1 -0
- package/dist/commonjs/styles/themes/plum.js +39 -0
- package/dist/commonjs/styles/themes/plum.js.map +1 -0
- package/dist/commonjs/styles/themes/polarized.js +42 -0
- package/dist/commonjs/styles/themes/polarized.js.map +1 -0
- package/dist/commonjs/styles/themes/powerShell.js +42 -0
- package/dist/commonjs/styles/themes/powerShell.js.map +1 -0
- package/dist/commonjs/styles/themes/rainyDay.js +39 -0
- package/dist/commonjs/styles/themes/rainyDay.js.map +1 -0
- package/dist/commonjs/styles/themes/raspberry.js +42 -0
- package/dist/commonjs/styles/themes/raspberry.js.map +1 -0
- package/dist/commonjs/styles/themes/redWine.js +42 -0
- package/dist/commonjs/styles/themes/redWine.js.map +1 -0
- package/dist/commonjs/styles/themes/rose.js +39 -0
- package/dist/commonjs/styles/themes/rose.js.map +1 -0
- package/dist/commonjs/styles/themes/seawater.js +42 -0
- package/dist/commonjs/styles/themes/seawater.js.map +1 -0
- package/dist/commonjs/styles/themes/slate.js +39 -0
- package/dist/commonjs/styles/themes/slate.js.map +1 -0
- package/dist/commonjs/styles/themes/solarizedDark.js +42 -0
- package/dist/commonjs/styles/themes/solarizedDark.js.map +1 -0
- package/dist/commonjs/styles/themes/solarizedLight.js +42 -0
- package/dist/commonjs/styles/themes/solarizedLight.js.map +1 -0
- package/dist/commonjs/styles/themes/spruce.js +39 -0
- package/dist/commonjs/styles/themes/spruce.js.map +1 -0
- package/dist/commonjs/styles/themes/stormClouds.js +42 -0
- package/dist/commonjs/styles/themes/stormClouds.js.map +1 -0
- package/dist/commonjs/styles/themes/theSixtiesUSA.js +39 -0
- package/dist/commonjs/styles/themes/theSixtiesUSA.js.map +1 -0
- package/dist/commonjs/styles/themes/tokyoDark.js +39 -0
- package/dist/commonjs/styles/themes/tokyoDark.js.map +1 -0
- package/dist/commonjs/styles/themes/tooSexy.js +39 -0
- package/dist/commonjs/styles/themes/tooSexy.js.map +1 -0
- package/dist/commonjs/styles/themes/travel.js +39 -0
- package/dist/commonjs/styles/themes/travel.js.map +1 -0
- package/dist/commonjs/styles/themes/vaporTeal.js +39 -0
- package/dist/commonjs/styles/themes/vaporTeal.js.map +1 -0
- package/dist/commonjs/styles/themes/vermillion.js +39 -0
- package/dist/commonjs/styles/themes/vermillion.js.map +1 -0
- package/dist/commonjs/styles/themes/violetDark.js +39 -0
- package/dist/commonjs/styles/themes/violetDark.js.map +1 -0
- package/dist/commonjs/styles/themes/water.js +39 -0
- package/dist/commonjs/styles/themes/water.js.map +1 -0
- package/dist/commonjs/styles/themes/wmii.js +42 -0
- package/dist/commonjs/styles/themes/wmii.js.map +1 -0
- package/dist/commonjs/types.js +6 -0
- package/dist/commonjs/types.js.map +1 -0
- package/dist/commonjs/utils/index.js +54 -0
- package/dist/commonjs/utils/index.js.map +1 -0
- package/dist/module/assets/fonts/src/ms-sans-serif/MS Sans Serif.ttf +0 -0
- package/dist/module/assets/fonts/src/ms-sans-serif/license.txt +4 -0
- package/dist/module/assets/fonts/src/ms-sans-serif/readme.txt +26 -0
- package/dist/module/assets/fonts/src/ms-sans-serif-bold/MS Sans Serif Bold.ttf +0 -0
- package/dist/module/assets/fonts/src/ms-sans-serif-bold/license.txt +4 -0
- package/dist/module/assets/fonts/src/ms-sans-serif-bold/readme.txt +26 -0
- package/dist/module/components/AppBar/AppBar.js +35 -0
- package/dist/module/components/AppBar/AppBar.js.map +1 -0
- package/dist/module/components/AppBar/AppBar.spec.js +153 -0
- package/dist/module/components/AppBar/AppBar.spec.js.map +1 -0
- package/dist/module/components/AppBar/AppBarBackAction.js +25 -0
- package/dist/module/components/AppBar/AppBarBackAction.js.map +1 -0
- package/dist/module/components/AppBar/AppBarContent.js +60 -0
- package/dist/module/components/AppBar/AppBarContent.js.map +1 -0
- package/dist/module/components/AppBar/index.js +4 -0
- package/dist/module/components/AppBar/index.js.map +1 -0
- package/dist/module/components/Button/Button.js +170 -0
- package/dist/module/components/Button/Button.js.map +1 -0
- package/dist/module/components/Button/Button.spec.js +69 -0
- package/dist/module/components/Button/Button.spec.js.map +1 -0
- package/dist/module/components/Button/index.js +4 -0
- package/dist/module/components/Button/index.js.map +1 -0
- package/dist/module/components/Card/Card.js +64 -0
- package/dist/module/components/Card/Card.js.map +1 -0
- package/dist/module/components/Card/Card.spec.js +62 -0
- package/dist/module/components/Card/Card.spec.js.map +1 -0
- package/dist/module/components/Card/CardContent.js +23 -0
- package/dist/module/components/Card/CardContent.js.map +1 -0
- package/dist/module/components/Card/index.js +4 -0
- package/dist/module/components/Card/index.js.map +1 -0
- package/dist/module/components/Checkbox/Checkbox.js +14 -0
- package/dist/module/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/module/components/Checkbox/index.js +4 -0
- package/dist/module/components/Checkbox/index.js.map +1 -0
- package/dist/module/components/ColorButton/ColorButton.js +62 -0
- package/dist/module/components/ColorButton/ColorButton.js.map +1 -0
- package/dist/module/components/ColorButton/index.js +4 -0
- package/dist/module/components/ColorButton/index.js.map +1 -0
- package/dist/module/components/ColorPicker/ColorPicker.js +80 -0
- package/dist/module/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/module/components/ColorPicker/index.js +4 -0
- package/dist/module/components/ColorPicker/index.js.map +1 -0
- package/dist/module/components/Desktop/Desktop.js +144 -0
- package/dist/module/components/Desktop/Desktop.js.map +1 -0
- package/dist/module/components/Desktop/Desktop.spec.js +42 -0
- package/dist/module/components/Desktop/Desktop.spec.js.map +1 -0
- package/dist/module/components/Desktop/index.js +4 -0
- package/dist/module/components/Desktop/index.js.map +1 -0
- package/dist/module/components/Divider/Divider.js +41 -0
- package/dist/module/components/Divider/Divider.js.map +1 -0
- package/dist/module/components/Divider/Divider.spec.js +73 -0
- package/dist/module/components/Divider/Divider.spec.js.map +1 -0
- package/dist/module/components/Divider/index.js +4 -0
- package/dist/module/components/Divider/index.js.map +1 -0
- package/dist/module/components/FAB/FAB.js +205 -0
- package/dist/module/components/FAB/FAB.js.map +1 -0
- package/dist/module/components/FAB/FABGroup.js +250 -0
- package/dist/module/components/FAB/FABGroup.js.map +1 -0
- package/dist/module/components/FAB/index.js +4 -0
- package/dist/module/components/FAB/index.js.map +1 -0
- package/dist/module/components/Fieldset/Fieldset.js +79 -0
- package/dist/module/components/Fieldset/Fieldset.js.map +1 -0
- package/dist/module/components/Fieldset/Fieldset.spec.js +59 -0
- package/dist/module/components/Fieldset/Fieldset.spec.js.map +1 -0
- package/dist/module/components/Fieldset/index.js +4 -0
- package/dist/module/components/Fieldset/index.js.map +1 -0
- package/dist/module/components/Hourglass/Hourglass.js +35 -0
- package/dist/module/components/Hourglass/Hourglass.js.map +1 -0
- package/dist/module/components/Hourglass/Hourglass.spec.js +34 -0
- package/dist/module/components/Hourglass/Hourglass.spec.js.map +1 -0
- package/dist/module/components/Hourglass/base64hourglass.js +5 -0
- package/dist/module/components/Hourglass/base64hourglass.js.map +1 -0
- package/dist/module/components/Hourglass/index.js +4 -0
- package/dist/module/components/Hourglass/index.js.map +1 -0
- package/dist/module/components/Icons/ArrowIcon.js +54 -0
- package/dist/module/components/Icons/ArrowIcon.js.map +1 -0
- package/dist/module/components/Icons/CheckmarkIcon.js +38 -0
- package/dist/module/components/Icons/CheckmarkIcon.js.map +1 -0
- package/dist/module/components/Icons/ChevronIcon.js +60 -0
- package/dist/module/components/Icons/ChevronIcon.js.map +1 -0
- package/dist/module/components/Icons/CloseIcon.js +42 -0
- package/dist/module/components/Icons/CloseIcon.js.map +1 -0
- package/dist/module/components/Icons/index.js +7 -0
- package/dist/module/components/Icons/index.js.map +1 -0
- package/dist/module/components/Label/Label.js +53 -0
- package/dist/module/components/Label/Label.js.map +1 -0
- package/dist/module/components/Label/index.js +4 -0
- package/dist/module/components/Label/index.js.map +1 -0
- package/dist/module/components/List/List.js +6 -0
- package/dist/module/components/List/List.js.map +1 -0
- package/dist/module/components/List/ListAccordion.js +131 -0
- package/dist/module/components/List/ListAccordion.js.map +1 -0
- package/dist/module/components/List/ListItem.js +62 -0
- package/dist/module/components/List/ListItem.js.map +1 -0
- package/dist/module/components/List/ListSection.js +36 -0
- package/dist/module/components/List/ListSection.js.map +1 -0
- package/dist/module/components/List/index.js +5 -0
- package/dist/module/components/List/index.js.map +1 -0
- package/dist/module/components/Menu/Menu.js +81 -0
- package/dist/module/components/Menu/Menu.js.map +1 -0
- package/dist/module/components/Menu/MenuItem.js +73 -0
- package/dist/module/components/Menu/MenuItem.js.map +1 -0
- package/dist/module/components/Menu/index.js +4 -0
- package/dist/module/components/Menu/index.js.map +1 -0
- package/dist/module/components/NumberInput/NumberInput.js +118 -0
- package/dist/module/components/NumberInput/NumberInput.js.map +1 -0
- package/dist/module/components/NumberInput/NumberInput.spec.js +129 -0
- package/dist/module/components/NumberInput/NumberInput.spec.js.map +1 -0
- package/dist/module/components/NumberInput/index.js +4 -0
- package/dist/module/components/NumberInput/index.js.map +1 -0
- package/dist/module/components/Panel/Panel.js +55 -0
- package/dist/module/components/Panel/Panel.js.map +1 -0
- package/dist/module/components/Panel/Panel.spec.js +34 -0
- package/dist/module/components/Panel/Panel.spec.js.map +1 -0
- package/dist/module/components/Panel/index.js +4 -0
- package/dist/module/components/Panel/index.js.map +1 -0
- package/dist/module/components/Portal/Portal.js +43 -0
- package/dist/module/components/Portal/Portal.js.map +1 -0
- package/dist/module/components/Portal/PortalConsumer.js +32 -0
- package/dist/module/components/Portal/PortalConsumer.js.map +1 -0
- package/dist/module/components/Portal/PortalHost.js +133 -0
- package/dist/module/components/Portal/PortalHost.js.map +1 -0
- package/dist/module/components/Portal/PortalManager.js +50 -0
- package/dist/module/components/Portal/PortalManager.js.map +1 -0
- package/dist/module/components/Portal/index.js +4 -0
- package/dist/module/components/Portal/index.js.map +1 -0
- package/dist/module/components/Progress/Progress.js +89 -0
- package/dist/module/components/Progress/Progress.js.map +1 -0
- package/dist/module/components/Progress/index.js +4 -0
- package/dist/module/components/Progress/index.js.map +1 -0
- package/dist/module/components/Radio/Radio.js +14 -0
- package/dist/module/components/Radio/Radio.js.map +1 -0
- package/dist/module/components/Radio/index.js +4 -0
- package/dist/module/components/Radio/index.js.map +1 -0
- package/dist/module/components/ScrollPanel/ScrollPanel.js +73 -0
- package/dist/module/components/ScrollPanel/ScrollPanel.js.map +1 -0
- package/dist/module/components/ScrollPanel/index.js +4 -0
- package/dist/module/components/ScrollPanel/index.js.map +1 -0
- package/dist/module/components/ScrollView/ScrollView.js +205 -0
- package/dist/module/components/ScrollView/ScrollView.js.map +1 -0
- package/dist/module/components/ScrollView/index.js +4 -0
- package/dist/module/components/ScrollView/index.js.map +1 -0
- package/dist/module/components/Select/Select.js +174 -0
- package/dist/module/components/Select/Select.js.map +1 -0
- package/dist/module/components/Select/SelectBase.js +74 -0
- package/dist/module/components/Select/SelectBase.js.map +1 -0
- package/dist/module/components/Select/SelectBox.js +55 -0
- package/dist/module/components/Select/SelectBox.js.map +1 -0
- package/dist/module/components/Select/index.js +5 -0
- package/dist/module/components/Select/index.js.map +1 -0
- package/dist/module/components/Slider/Slider.js +237 -0
- package/dist/module/components/Slider/Slider.js.map +1 -0
- package/dist/module/components/Slider/index.js +4 -0
- package/dist/module/components/Slider/index.js.map +1 -0
- package/dist/module/components/Snackbar/Snackbar.js +187 -0
- package/dist/module/components/Snackbar/Snackbar.js.map +1 -0
- package/dist/module/components/Snackbar/SnackbarContent.js +23 -0
- package/dist/module/components/Snackbar/SnackbarContent.js.map +1 -0
- package/dist/module/components/Snackbar/index.js +4 -0
- package/dist/module/components/Snackbar/index.js.map +1 -0
- package/dist/module/components/SwitchBase/SwitchBase.js +150 -0
- package/dist/module/components/SwitchBase/SwitchBase.js.map +1 -0
- package/dist/module/components/SwitchBase/index.js +4 -0
- package/dist/module/components/SwitchBase/index.js.map +1 -0
- package/dist/module/components/Tabs/Tabs.js +157 -0
- package/dist/module/components/Tabs/Tabs.js.map +1 -0
- package/dist/module/components/Tabs/index.js +4 -0
- package/dist/module/components/Tabs/index.js.map +1 -0
- package/dist/module/components/TextInput/TextInput.js +61 -0
- package/dist/module/components/TextInput/TextInput.js.map +1 -0
- package/dist/module/components/TextInput/index.js +4 -0
- package/dist/module/components/TextInput/index.js.map +1 -0
- package/dist/module/components/Toolbar/Toolbar.js +85 -0
- package/dist/module/components/Toolbar/Toolbar.js.map +1 -0
- package/dist/module/components/Toolbar/index.js +4 -0
- package/dist/module/components/Toolbar/index.js.map +1 -0
- package/dist/module/components/Typography/Anchor.js +26 -0
- package/dist/module/components/Typography/Anchor.js.map +1 -0
- package/dist/module/components/Typography/Text.js +35 -0
- package/dist/module/components/Typography/Text.js.map +1 -0
- package/dist/module/components/Typography/Text.spec.js +36 -0
- package/dist/module/components/Typography/Text.spec.js.map +1 -0
- package/dist/module/components/Typography/Title.js +59 -0
- package/dist/module/components/Typography/Title.js.map +1 -0
- package/dist/module/components/Typography/index.js +6 -0
- package/dist/module/components/Typography/index.js.map +1 -0
- package/dist/module/components/Window/Window.js +102 -0
- package/dist/module/components/Window/Window.js.map +1 -0
- package/dist/module/components/Window/index.js +4 -0
- package/dist/module/components/Window/index.js.map +1 -0
- package/dist/module/core/Provider.js +51 -0
- package/dist/module/core/Provider.js.map +1 -0
- package/dist/module/core/theming.js +10 -0
- package/dist/module/core/theming.js.map +1 -0
- package/dist/module/hooks/useAsyncReference.js +15 -0
- package/dist/module/hooks/useAsyncReference.js.map +1 -0
- package/dist/module/hooks/useControlledOrUncontrolled.js +19 -0
- package/dist/module/hooks/useControlledOrUncontrolled.js.map +1 -0
- package/dist/module/index.js +38 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/styles/shadow.js +36 -0
- package/dist/module/styles/shadow.js.map +1 -0
- package/dist/module/styles/styleElements.js +76 -0
- package/dist/module/styles/styleElements.js.map +1 -0
- package/dist/module/styles/styles.js +126 -0
- package/dist/module/styles/styles.js.map +1 -0
- package/dist/module/styles/themes/aiee.js +39 -0
- package/dist/module/styles/themes/aiee.js.map +1 -0
- package/dist/module/styles/themes/ash.js +38 -0
- package/dist/module/styles/themes/ash.js.map +1 -0
- package/dist/module/styles/themes/azureOrange.js +35 -0
- package/dist/module/styles/themes/azureOrange.js.map +1 -0
- package/dist/module/styles/themes/bee.js +35 -0
- package/dist/module/styles/themes/bee.js.map +1 -0
- package/dist/module/styles/themes/blackAndWhite.js +35 -0
- package/dist/module/styles/themes/blackAndWhite.js.map +1 -0
- package/dist/module/styles/themes/blue.js +39 -0
- package/dist/module/styles/themes/blue.js.map +1 -0
- package/dist/module/styles/themes/brick.js +35 -0
- package/dist/module/styles/themes/brick.js.map +1 -0
- package/dist/module/styles/themes/candy.js +35 -0
- package/dist/module/styles/themes/candy.js.map +1 -0
- package/dist/module/styles/themes/cherry.js +39 -0
- package/dist/module/styles/themes/cherry.js.map +1 -0
- package/dist/module/styles/themes/coldGray.js +36 -0
- package/dist/module/styles/themes/coldGray.js.map +1 -0
- package/dist/module/styles/themes/counterStrike.js +35 -0
- package/dist/module/styles/themes/counterStrike.js.map +1 -0
- package/dist/module/styles/themes/darkTeal.js +39 -0
- package/dist/module/styles/themes/darkTeal.js.map +1 -0
- package/dist/module/styles/themes/eggplant.js +35 -0
- package/dist/module/styles/themes/eggplant.js.map +1 -0
- package/dist/module/styles/themes/fxDev.js +39 -0
- package/dist/module/styles/themes/fxDev.js.map +1 -0
- package/dist/module/styles/themes/highContrast.js +35 -0
- package/dist/module/styles/themes/highContrast.js.map +1 -0
- package/dist/module/styles/themes/hotChocolate.js +39 -0
- package/dist/module/styles/themes/hotChocolate.js.map +1 -0
- package/dist/module/styles/themes/index.js +105 -0
- package/dist/module/styles/themes/index.js.map +1 -0
- package/dist/module/styles/themes/lilac.js +35 -0
- package/dist/module/styles/themes/lilac.js.map +1 -0
- package/dist/module/styles/themes/lilacRoseDark.js +36 -0
- package/dist/module/styles/themes/lilacRoseDark.js.map +1 -0
- package/dist/module/styles/themes/maple.js +35 -0
- package/dist/module/styles/themes/maple.js.map +1 -0
- package/dist/module/styles/themes/marine.js +35 -0
- package/dist/module/styles/themes/marine.js.map +1 -0
- package/dist/module/styles/themes/matrix.js +35 -0
- package/dist/module/styles/themes/matrix.js.map +1 -0
- package/dist/module/styles/themes/millenium.js +35 -0
- package/dist/module/styles/themes/millenium.js.map +1 -0
- package/dist/module/styles/themes/modernDark.js +35 -0
- package/dist/module/styles/themes/modernDark.js.map +1 -0
- package/dist/module/styles/themes/molecule.js +35 -0
- package/dist/module/styles/themes/molecule.js.map +1 -0
- package/dist/module/styles/themes/monochrome.js +2 -0
- package/dist/module/styles/themes/monochrome.js.map +1 -0
- package/dist/module/styles/themes/ninjaTurtles.js +35 -0
- package/dist/module/styles/themes/ninjaTurtles.js.map +1 -0
- package/dist/module/styles/themes/olive.js +35 -0
- package/dist/module/styles/themes/olive.js.map +1 -0
- package/dist/module/styles/themes/original.js +35 -0
- package/dist/module/styles/themes/original.js.map +1 -0
- package/dist/module/styles/themes/pamelaAnderson.js +35 -0
- package/dist/module/styles/themes/pamelaAnderson.js.map +1 -0
- package/dist/module/styles/themes/plum.js +35 -0
- package/dist/module/styles/themes/plum.js.map +1 -0
- package/dist/module/styles/themes/polarized.js +39 -0
- package/dist/module/styles/themes/polarized.js.map +1 -0
- package/dist/module/styles/themes/powerShell.js +39 -0
- package/dist/module/styles/themes/powerShell.js.map +1 -0
- package/dist/module/styles/themes/rainyDay.js +35 -0
- package/dist/module/styles/themes/rainyDay.js.map +1 -0
- package/dist/module/styles/themes/raspberry.js +39 -0
- package/dist/module/styles/themes/raspberry.js.map +1 -0
- package/dist/module/styles/themes/redWine.js +39 -0
- package/dist/module/styles/themes/redWine.js.map +1 -0
- package/dist/module/styles/themes/rose.js +35 -0
- package/dist/module/styles/themes/rose.js.map +1 -0
- package/dist/module/styles/themes/seawater.js +39 -0
- package/dist/module/styles/themes/seawater.js.map +1 -0
- package/dist/module/styles/themes/slate.js +35 -0
- package/dist/module/styles/themes/slate.js.map +1 -0
- package/dist/module/styles/themes/solarizedDark.js +39 -0
- package/dist/module/styles/themes/solarizedDark.js.map +1 -0
- package/dist/module/styles/themes/solarizedLight.js +39 -0
- package/dist/module/styles/themes/solarizedLight.js.map +1 -0
- package/dist/module/styles/themes/spruce.js +35 -0
- package/dist/module/styles/themes/spruce.js.map +1 -0
- package/dist/module/styles/themes/stormClouds.js +39 -0
- package/dist/module/styles/themes/stormClouds.js.map +1 -0
- package/dist/module/styles/themes/theSixtiesUSA.js +35 -0
- package/dist/module/styles/themes/theSixtiesUSA.js.map +1 -0
- package/dist/module/styles/themes/tokyoDark.js +35 -0
- package/dist/module/styles/themes/tokyoDark.js.map +1 -0
- package/dist/module/styles/themes/tooSexy.js +35 -0
- package/dist/module/styles/themes/tooSexy.js.map +1 -0
- package/dist/module/styles/themes/travel.js +35 -0
- package/dist/module/styles/themes/travel.js.map +1 -0
- package/dist/module/styles/themes/vaporTeal.js +35 -0
- package/dist/module/styles/themes/vaporTeal.js.map +1 -0
- package/dist/module/styles/themes/vermillion.js +35 -0
- package/dist/module/styles/themes/vermillion.js.map +1 -0
- package/dist/module/styles/themes/violetDark.js +35 -0
- package/dist/module/styles/themes/violetDark.js.map +1 -0
- package/dist/module/styles/themes/water.js +35 -0
- package/dist/module/styles/themes/water.js.map +1 -0
- package/dist/module/styles/themes/wmii.js +39 -0
- package/dist/module/styles/themes/wmii.js.map +1 -0
- package/dist/module/types.js +4 -0
- package/dist/module/types.js.map +1 -0
- package/dist/module/utils/index.js +47 -0
- package/dist/module/utils/index.js.map +1 -0
- package/dist/typescript/jest.setup.d.ts +2 -0
- package/dist/typescript/jest.setup.d.ts.map +1 -0
- package/dist/typescript/src/components/AppBar/AppBar.d.ts +152 -0
- package/dist/typescript/src/components/AppBar/AppBar.d.ts.map +1 -0
- package/dist/typescript/src/components/AppBar/AppBar.spec.d.ts +2 -0
- package/dist/typescript/src/components/AppBar/AppBar.spec.d.ts.map +1 -0
- package/dist/typescript/src/components/AppBar/AppBarBackAction.d.ts +7 -0
- package/dist/typescript/src/components/AppBar/AppBarBackAction.d.ts.map +1 -0
- package/dist/typescript/src/components/AppBar/AppBarContent.d.ts +21 -0
- package/dist/typescript/src/components/AppBar/AppBarContent.d.ts.map +1 -0
- package/dist/typescript/src/components/AppBar/index.d.ts +2 -0
- package/dist/typescript/src/components/AppBar/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Button/Button.d.ts +24 -0
- package/dist/typescript/src/components/Button/Button.d.ts.map +1 -0
- package/dist/typescript/src/components/Button/Button.spec.d.ts +2 -0
- package/dist/typescript/src/components/Button/Button.spec.d.ts.map +1 -0
- package/dist/typescript/src/components/Button/index.d.ts +2 -0
- package/dist/typescript/src/components/Button/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Card/Card.d.ts +20 -0
- package/dist/typescript/src/components/Card/Card.d.ts.map +1 -0
- package/dist/typescript/src/components/Card/Card.spec.d.ts +2 -0
- package/dist/typescript/src/components/Card/Card.spec.d.ts.map +1 -0
- package/dist/typescript/src/components/Card/CardContent.d.ts +9 -0
- package/dist/typescript/src/components/Card/CardContent.d.ts.map +1 -0
- package/dist/typescript/src/components/Card/index.d.ts +2 -0
- package/dist/typescript/src/components/Card/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Checkbox/Checkbox.d.ts +7 -0
- package/dist/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/typescript/src/components/Checkbox/index.d.ts +2 -0
- package/dist/typescript/src/components/Checkbox/index.d.ts.map +1 -0
- package/dist/typescript/src/components/ColorButton/ColorButton.d.ts +12 -0
- package/dist/typescript/src/components/ColorButton/ColorButton.d.ts.map +1 -0
- package/dist/typescript/src/components/ColorButton/index.d.ts +2 -0
- package/dist/typescript/src/components/ColorButton/index.d.ts.map +1 -0
- package/dist/typescript/src/components/ColorPicker/ColorPicker.d.ts +17 -0
- package/dist/typescript/src/components/ColorPicker/ColorPicker.d.ts.map +1 -0
- package/dist/typescript/src/components/ColorPicker/index.d.ts +2 -0
- package/dist/typescript/src/components/ColorPicker/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Desktop/Desktop.d.ts +14 -0
- package/dist/typescript/src/components/Desktop/Desktop.d.ts.map +1 -0
- package/dist/typescript/src/components/Desktop/Desktop.spec.d.ts +2 -0
- package/dist/typescript/src/components/Desktop/Desktop.spec.d.ts.map +1 -0
- package/dist/typescript/src/components/Desktop/index.d.ts +2 -0
- package/dist/typescript/src/components/Desktop/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Divider/Divider.d.ts +15 -0
- package/dist/typescript/src/components/Divider/Divider.d.ts.map +1 -0
- package/dist/typescript/src/components/Divider/Divider.spec.d.ts +2 -0
- package/dist/typescript/src/components/Divider/Divider.spec.d.ts.map +1 -0
- package/dist/typescript/src/components/Divider/index.d.ts +2 -0
- package/dist/typescript/src/components/Divider/index.d.ts.map +1 -0
- package/dist/typescript/src/components/FAB/FAB.d.ts +68 -0
- package/dist/typescript/src/components/FAB/FAB.d.ts.map +1 -0
- package/dist/typescript/src/components/FAB/FABGroup.d.ts +132 -0
- package/dist/typescript/src/components/FAB/FABGroup.d.ts.map +1 -0
- package/dist/typescript/src/components/FAB/index.d.ts +2 -0
- package/dist/typescript/src/components/FAB/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Fieldset/Fieldset.d.ts +18 -0
- package/dist/typescript/src/components/Fieldset/Fieldset.d.ts.map +1 -0
- package/dist/typescript/src/components/Fieldset/Fieldset.spec.d.ts +2 -0
- package/dist/typescript/src/components/Fieldset/Fieldset.spec.d.ts.map +1 -0
- package/dist/typescript/src/components/Fieldset/index.d.ts +2 -0
- package/dist/typescript/src/components/Fieldset/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Hourglass/Hourglass.d.ts +10 -0
- package/dist/typescript/src/components/Hourglass/Hourglass.d.ts.map +1 -0
- package/dist/typescript/src/components/Hourglass/Hourglass.spec.d.ts +2 -0
- package/dist/typescript/src/components/Hourglass/Hourglass.spec.d.ts.map +1 -0
- package/dist/typescript/src/components/Hourglass/base64hourglass.d.ts +3 -0
- package/dist/typescript/src/components/Hourglass/base64hourglass.d.ts.map +1 -0
- package/dist/typescript/src/components/Hourglass/index.d.ts +2 -0
- package/dist/typescript/src/components/Hourglass/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Icons/ArrowIcon.d.ts +17 -0
- package/dist/typescript/src/components/Icons/ArrowIcon.d.ts.map +1 -0
- package/dist/typescript/src/components/Icons/CheckmarkIcon.d.ts +13 -0
- package/dist/typescript/src/components/Icons/CheckmarkIcon.d.ts.map +1 -0
- package/dist/typescript/src/components/Icons/ChevronIcon.d.ts +16 -0
- package/dist/typescript/src/components/Icons/ChevronIcon.d.ts.map +1 -0
- package/dist/typescript/src/components/Icons/CloseIcon.d.ts +14 -0
- package/dist/typescript/src/components/Icons/CloseIcon.d.ts.map +1 -0
- package/dist/typescript/src/components/Icons/index.d.ts +5 -0
- package/dist/typescript/src/components/Icons/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Label/Label.d.ts +18 -0
- package/dist/typescript/src/components/Label/Label.d.ts.map +1 -0
- package/dist/typescript/src/components/Label/index.d.ts +2 -0
- package/dist/typescript/src/components/Label/index.d.ts.map +1 -0
- package/dist/typescript/src/components/List/List.d.ts +4 -0
- package/dist/typescript/src/components/List/List.d.ts.map +1 -0
- package/dist/typescript/src/components/List/ListAccordion.d.ts +27 -0
- package/dist/typescript/src/components/List/ListAccordion.d.ts.map +1 -0
- package/dist/typescript/src/components/List/ListItem.d.ts +17 -0
- package/dist/typescript/src/components/List/ListItem.d.ts.map +1 -0
- package/dist/typescript/src/components/List/ListSection.d.ts +15 -0
- package/dist/typescript/src/components/List/ListSection.d.ts.map +1 -0
- package/dist/typescript/src/components/List/index.d.ts +3 -0
- package/dist/typescript/src/components/List/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Menu/Menu.d.ts +47 -0
- package/dist/typescript/src/components/Menu/Menu.d.ts.map +1 -0
- package/dist/typescript/src/components/Menu/MenuItem.d.ts +18 -0
- package/dist/typescript/src/components/Menu/MenuItem.d.ts.map +1 -0
- package/dist/typescript/src/components/Menu/index.d.ts +2 -0
- package/dist/typescript/src/components/Menu/index.d.ts.map +1 -0
- package/dist/typescript/src/components/NumberInput/NumberInput.d.ts +21 -0
- package/dist/typescript/src/components/NumberInput/NumberInput.d.ts.map +1 -0
- package/dist/typescript/src/components/NumberInput/NumberInput.spec.d.ts +2 -0
- package/dist/typescript/src/components/NumberInput/NumberInput.spec.d.ts.map +1 -0
- package/dist/typescript/src/components/NumberInput/index.d.ts +2 -0
- package/dist/typescript/src/components/NumberInput/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Panel/Panel.d.ts +19 -0
- package/dist/typescript/src/components/Panel/Panel.d.ts.map +1 -0
- package/dist/typescript/src/components/Panel/Panel.spec.d.ts +2 -0
- package/dist/typescript/src/components/Panel/Panel.spec.d.ts.map +1 -0
- package/dist/typescript/src/components/Panel/index.d.ts +2 -0
- package/dist/typescript/src/components/Panel/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Portal/Portal.d.ts +21 -0
- package/dist/typescript/src/components/Portal/Portal.d.ts.map +1 -0
- package/dist/typescript/src/components/Portal/PortalConsumer.d.ts +16 -0
- package/dist/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
- package/dist/typescript/src/components/Portal/PortalHost.d.ts +46 -0
- package/dist/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
- package/dist/typescript/src/components/Portal/PortalManager.d.ts +19 -0
- package/dist/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
- package/dist/typescript/src/components/Portal/index.d.ts +2 -0
- package/dist/typescript/src/components/Portal/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Progress/Progress.d.ts +15 -0
- package/dist/typescript/src/components/Progress/Progress.d.ts.map +1 -0
- package/dist/typescript/src/components/Progress/index.d.ts +2 -0
- package/dist/typescript/src/components/Progress/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Radio/Radio.d.ts +10 -0
- package/dist/typescript/src/components/Radio/Radio.d.ts.map +1 -0
- package/dist/typescript/src/components/Radio/index.d.ts +2 -0
- package/dist/typescript/src/components/Radio/index.d.ts.map +1 -0
- package/dist/typescript/src/components/ScrollPanel/ScrollPanel.d.ts +13 -0
- package/dist/typescript/src/components/ScrollPanel/ScrollPanel.d.ts.map +1 -0
- package/dist/typescript/src/components/ScrollPanel/index.d.ts +2 -0
- package/dist/typescript/src/components/ScrollPanel/index.d.ts.map +1 -0
- package/dist/typescript/src/components/ScrollView/ScrollView.d.ts +17 -0
- package/dist/typescript/src/components/ScrollView/ScrollView.d.ts.map +1 -0
- package/dist/typescript/src/components/ScrollView/index.d.ts +2 -0
- package/dist/typescript/src/components/ScrollView/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Select/Select.d.ts +18 -0
- package/dist/typescript/src/components/Select/Select.d.ts.map +1 -0
- package/dist/typescript/src/components/Select/SelectBase.d.ts +15 -0
- package/dist/typescript/src/components/Select/SelectBase.d.ts.map +1 -0
- package/dist/typescript/src/components/Select/SelectBox.d.ts +16 -0
- package/dist/typescript/src/components/Select/SelectBox.d.ts.map +1 -0
- package/dist/typescript/src/components/Select/index.d.ts +3 -0
- package/dist/typescript/src/components/Select/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Slider/Slider.d.ts +24 -0
- package/dist/typescript/src/components/Slider/Slider.d.ts.map +1 -0
- package/dist/typescript/src/components/Slider/index.d.ts +2 -0
- package/dist/typescript/src/components/Slider/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Snackbar/Snackbar.d.ts +51 -0
- package/dist/typescript/src/components/Snackbar/Snackbar.d.ts.map +1 -0
- package/dist/typescript/src/components/Snackbar/SnackbarContent.d.ts +9 -0
- package/dist/typescript/src/components/Snackbar/SnackbarContent.d.ts.map +1 -0
- package/dist/typescript/src/components/Snackbar/index.d.ts +2 -0
- package/dist/typescript/src/components/Snackbar/index.d.ts.map +1 -0
- package/dist/typescript/src/components/SwitchBase/SwitchBase.d.ts +21 -0
- package/dist/typescript/src/components/SwitchBase/SwitchBase.d.ts.map +1 -0
- package/dist/typescript/src/components/SwitchBase/index.d.ts +2 -0
- package/dist/typescript/src/components/SwitchBase/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Tabs/Tabs.d.ts +38 -0
- package/dist/typescript/src/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/typescript/src/components/Tabs/index.d.ts +2 -0
- package/dist/typescript/src/components/Tabs/index.d.ts.map +1 -0
- package/dist/typescript/src/components/TextInput/TextInput.d.ts +16 -0
- package/dist/typescript/src/components/TextInput/TextInput.d.ts.map +1 -0
- package/dist/typescript/src/components/TextInput/index.d.ts +2 -0
- package/dist/typescript/src/components/TextInput/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Toolbar/Toolbar.d.ts +10 -0
- package/dist/typescript/src/components/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/typescript/src/components/Toolbar/index.d.ts +2 -0
- package/dist/typescript/src/components/Toolbar/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Typography/Anchor.d.ts +12 -0
- package/dist/typescript/src/components/Typography/Anchor.d.ts.map +1 -0
- package/dist/typescript/src/components/Typography/Text.d.ts +16 -0
- package/dist/typescript/src/components/Typography/Text.d.ts.map +1 -0
- package/dist/typescript/src/components/Typography/Text.spec.d.ts +2 -0
- package/dist/typescript/src/components/Typography/Text.spec.d.ts.map +1 -0
- package/dist/typescript/src/components/Typography/Title.d.ts +12 -0
- package/dist/typescript/src/components/Typography/Title.d.ts.map +1 -0
- package/dist/typescript/src/components/Typography/index.d.ts +4 -0
- package/dist/typescript/src/components/Typography/index.d.ts.map +1 -0
- package/dist/typescript/src/components/Window/Window.d.ts +18 -0
- package/dist/typescript/src/components/Window/Window.d.ts.map +1 -0
- package/dist/typescript/src/components/Window/index.d.ts +2 -0
- package/dist/typescript/src/components/Window/index.d.ts.map +1 -0
- package/dist/typescript/src/core/Provider.d.ts +9 -0
- package/dist/typescript/src/core/Provider.d.ts.map +1 -0
- package/dist/typescript/src/core/theming.d.ts +10 -0
- package/dist/typescript/src/core/theming.d.ts.map +1 -0
- package/dist/typescript/src/hooks/useAsyncReference.d.ts +8 -0
- package/dist/typescript/src/hooks/useAsyncReference.d.ts.map +1 -0
- package/dist/typescript/src/hooks/useControlledOrUncontrolled.d.ts +8 -0
- package/dist/typescript/src/hooks/useControlledOrUncontrolled.d.ts.map +1 -0
- package/dist/typescript/src/index.d.ts +36 -0
- package/dist/typescript/src/index.d.ts.map +1 -0
- package/dist/typescript/src/styles/shadow.d.ts +15 -0
- package/dist/typescript/src/styles/shadow.d.ts.map +1 -0
- package/dist/typescript/src/styles/styleElements.d.ts +17 -0
- package/dist/typescript/src/styles/styleElements.d.ts.map +1 -0
- package/dist/typescript/src/styles/styles.d.ts +117 -0
- package/dist/typescript/src/styles/styles.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/aiee.d.ts +34 -0
- package/dist/typescript/src/styles/themes/aiee.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/ash.d.ts +34 -0
- package/dist/typescript/src/styles/themes/ash.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/azureOrange.d.ts +34 -0
- package/dist/typescript/src/styles/themes/azureOrange.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/bee.d.ts +34 -0
- package/dist/typescript/src/styles/themes/bee.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/blackAndWhite.d.ts +34 -0
- package/dist/typescript/src/styles/themes/blackAndWhite.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/blue.d.ts +34 -0
- package/dist/typescript/src/styles/themes/blue.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/brick.d.ts +34 -0
- package/dist/typescript/src/styles/themes/brick.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/candy.d.ts +34 -0
- package/dist/typescript/src/styles/themes/candy.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/cherry.d.ts +34 -0
- package/dist/typescript/src/styles/themes/cherry.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/coldGray.d.ts +35 -0
- package/dist/typescript/src/styles/themes/coldGray.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/counterStrike.d.ts +34 -0
- package/dist/typescript/src/styles/themes/counterStrike.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/darkTeal.d.ts +34 -0
- package/dist/typescript/src/styles/themes/darkTeal.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/eggplant.d.ts +34 -0
- package/dist/typescript/src/styles/themes/eggplant.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/fxDev.d.ts +34 -0
- package/dist/typescript/src/styles/themes/fxDev.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/highContrast.d.ts +34 -0
- package/dist/typescript/src/styles/themes/highContrast.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/hotChocolate.d.ts +34 -0
- package/dist/typescript/src/styles/themes/hotChocolate.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/index.d.ts +1606 -0
- package/dist/typescript/src/styles/themes/index.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/lilac.d.ts +34 -0
- package/dist/typescript/src/styles/themes/lilac.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/lilacRoseDark.d.ts +35 -0
- package/dist/typescript/src/styles/themes/lilacRoseDark.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/maple.d.ts +34 -0
- package/dist/typescript/src/styles/themes/maple.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/marine.d.ts +34 -0
- package/dist/typescript/src/styles/themes/marine.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/matrix.d.ts +34 -0
- package/dist/typescript/src/styles/themes/matrix.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/millenium.d.ts +34 -0
- package/dist/typescript/src/styles/themes/millenium.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/modernDark.d.ts +34 -0
- package/dist/typescript/src/styles/themes/modernDark.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/molecule.d.ts +34 -0
- package/dist/typescript/src/styles/themes/molecule.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/monochrome.d.ts +1 -0
- package/dist/typescript/src/styles/themes/monochrome.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/ninjaTurtles.d.ts +34 -0
- package/dist/typescript/src/styles/themes/ninjaTurtles.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/olive.d.ts +34 -0
- package/dist/typescript/src/styles/themes/olive.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/original.d.ts +34 -0
- package/dist/typescript/src/styles/themes/original.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/pamelaAnderson.d.ts +34 -0
- package/dist/typescript/src/styles/themes/pamelaAnderson.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/plum.d.ts +34 -0
- package/dist/typescript/src/styles/themes/plum.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/polarized.d.ts +34 -0
- package/dist/typescript/src/styles/themes/polarized.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/powerShell.d.ts +34 -0
- package/dist/typescript/src/styles/themes/powerShell.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/rainyDay.d.ts +34 -0
- package/dist/typescript/src/styles/themes/rainyDay.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/raspberry.d.ts +34 -0
- package/dist/typescript/src/styles/themes/raspberry.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/redWine.d.ts +34 -0
- package/dist/typescript/src/styles/themes/redWine.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/rose.d.ts +34 -0
- package/dist/typescript/src/styles/themes/rose.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/seawater.d.ts +34 -0
- package/dist/typescript/src/styles/themes/seawater.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/slate.d.ts +34 -0
- package/dist/typescript/src/styles/themes/slate.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/solarizedDark.d.ts +34 -0
- package/dist/typescript/src/styles/themes/solarizedDark.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/solarizedLight.d.ts +34 -0
- package/dist/typescript/src/styles/themes/solarizedLight.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/spruce.d.ts +34 -0
- package/dist/typescript/src/styles/themes/spruce.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/stormClouds.d.ts +34 -0
- package/dist/typescript/src/styles/themes/stormClouds.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/theSixtiesUSA.d.ts +34 -0
- package/dist/typescript/src/styles/themes/theSixtiesUSA.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/tokyoDark.d.ts +34 -0
- package/dist/typescript/src/styles/themes/tokyoDark.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/tooSexy.d.ts +34 -0
- package/dist/typescript/src/styles/themes/tooSexy.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/travel.d.ts +34 -0
- package/dist/typescript/src/styles/themes/travel.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/vaporTeal.d.ts +34 -0
- package/dist/typescript/src/styles/themes/vaporTeal.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/vermillion.d.ts +34 -0
- package/dist/typescript/src/styles/themes/vermillion.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/violetDark.d.ts +34 -0
- package/dist/typescript/src/styles/themes/violetDark.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/water.d.ts +34 -0
- package/dist/typescript/src/styles/themes/water.d.ts.map +1 -0
- package/dist/typescript/src/styles/themes/wmii.d.ts +34 -0
- package/dist/typescript/src/styles/themes/wmii.d.ts.map +1 -0
- package/dist/typescript/src/types.d.ts +42 -0
- package/dist/typescript/src/types.d.ts.map +1 -0
- package/dist/typescript/src/utils/index.d.ts +7 -0
- package/dist/typescript/src/utils/index.d.ts.map +1 -0
- package/package.json +18 -65
- package/src/components/AppBar/AppBarContent.tsx +1 -1
- package/src/components/Button/Button.tsx +0 -2
- package/src/components/Divider/Divider.tsx +1 -0
- package/src/components/FAB/FAB.tsx +0 -2
- package/src/components/FAB/FABGroup.tsx +0 -6
- package/src/components/Hourglass/Hourglass.tsx +1 -0
- package/src/components/NumberInput/NumberInput.tsx +1 -0
- package/src/components/Select/SelectBase.tsx +1 -1
- package/src/components/SwitchBase/SwitchBase.tsx +2 -4
- package/src/components/Tabs/Tabs.tsx +1 -2
- package/src/hooks/useControlledOrUncontrolled.ts +1 -0
- package/src/styles/styleElements.tsx +1 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
The font file in this archive was created using Fontstruct the free, online
|
|
2
|
+
font-building tool.
|
|
3
|
+
This font was created by “lou”.
|
|
4
|
+
This font has a homepage where this archive and other versions may be found:
|
|
5
|
+
https://fontstruct.com/fontstructions/show/1384746
|
|
6
|
+
|
|
7
|
+
Try Fontstruct at http://fontstruct.com
|
|
8
|
+
It’s easy and it’s fun.
|
|
9
|
+
|
|
10
|
+
NOTE FOR FLASH USERS: Fontstruct fonts (fontstructions) are optimized for Flash.
|
|
11
|
+
If the font in this archive is a pixel font, it is best displayed at a font-size
|
|
12
|
+
of 11.
|
|
13
|
+
|
|
14
|
+
Fontstruct is sponsored by FontShop.
|
|
15
|
+
Visit them at https://fontshop.com
|
|
16
|
+
FontShop is the original independent font retailer. We’ve been around since
|
|
17
|
+
the dawn of digital type. Whether you need the right font or need to create the
|
|
18
|
+
right font from scratch, let our 26 years of experience work for you.
|
|
19
|
+
|
|
20
|
+
Fontstruct is copyright ©2017 Rob Meek
|
|
21
|
+
|
|
22
|
+
LEGAL NOTICE:
|
|
23
|
+
In using this font you must comply with the licensing terms described in the
|
|
24
|
+
file “license.txt” included with this archive.
|
|
25
|
+
If you redistribute the font file in this archive, it must be accompanied by all
|
|
26
|
+
the other files from this archive, including this one.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
The font file in this archive was created using Fontstruct the free, online
|
|
2
|
+
font-building tool.
|
|
3
|
+
This font was created by “lou”.
|
|
4
|
+
This font has a homepage where this archive and other versions may be found:
|
|
5
|
+
https://fontstruct.com/fontstructions/show/1384862
|
|
6
|
+
|
|
7
|
+
Try Fontstruct at http://fontstruct.com
|
|
8
|
+
It’s easy and it’s fun.
|
|
9
|
+
|
|
10
|
+
NOTE FOR FLASH USERS: Fontstruct fonts (fontstructions) are optimized for Flash.
|
|
11
|
+
If the font in this archive is a pixel font, it is best displayed at a font-size
|
|
12
|
+
of 11.
|
|
13
|
+
|
|
14
|
+
Fontstruct is sponsored by FontShop.
|
|
15
|
+
Visit them at https://fontshop.com
|
|
16
|
+
FontShop is the original independent font retailer. We’ve been around since
|
|
17
|
+
the dawn of digital type. Whether you need the right font or need to create the
|
|
18
|
+
right font from scratch, let our 26 years of experience work for you.
|
|
19
|
+
|
|
20
|
+
Fontstruct is copyright ©2017 Rob Meek
|
|
21
|
+
|
|
22
|
+
LEGAL NOTICE:
|
|
23
|
+
In using this font you must comply with the licensing terms described in the
|
|
24
|
+
file “license.txt” included with this archive.
|
|
25
|
+
If you redistribute the font file in this archive, it must be accompanied by all
|
|
26
|
+
the other files from this archive, including this one.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet } from 'react-native';
|
|
5
|
+
import { withTheme } from '../../core/theming';
|
|
6
|
+
import AppBarContent from './AppBarContent';
|
|
7
|
+
import AppBarBackAction from './AppBarBackAction';
|
|
8
|
+
import Panel from '../Panel';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
const AppBar = ({
|
|
11
|
+
children,
|
|
12
|
+
style = {},
|
|
13
|
+
...rest
|
|
14
|
+
}) => {
|
|
15
|
+
return /*#__PURE__*/_jsx(Panel, {
|
|
16
|
+
style: [styles.wrapper, style],
|
|
17
|
+
variant: "raised",
|
|
18
|
+
elevation: 2,
|
|
19
|
+
...rest,
|
|
20
|
+
children: children
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
const styles = StyleSheet.create({
|
|
24
|
+
wrapper: {
|
|
25
|
+
position: 'relative',
|
|
26
|
+
height: 56,
|
|
27
|
+
flexDirection: 'row',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
paddingHorizontal: 8
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
AppBar.Content = AppBarContent;
|
|
33
|
+
AppBar.BackAction = AppBarBackAction;
|
|
34
|
+
export default withTheme(AppBar);
|
|
35
|
+
//# sourceMappingURL=AppBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","withTheme","AppBarContent","AppBarBackAction","Panel","jsx","_jsx","AppBar","children","style","rest","styles","wrapper","variant","elevation","create","position","height","flexDirection","alignItems","paddingHorizontal","Content","BackAction"],"sourceRoot":"../../../../src","sources":["components/AppBar/AppBar.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAoBC,UAAU,QAAyB,cAAc;AAGrE,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,OAAOC,KAAK,MAAM,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQ7B,MAAMC,MAAM,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,KAAK,GAAG,CAAC,CAAC;EAAE,GAAGC;AAAY,CAAC,KAAK;EAC3D,oBACEJ,IAAA,CAACF,KAAK;IACJK,KAAK,EAAE,CAACE,MAAM,CAACC,OAAO,EAAEH,KAAK,CAAE;IAC/BI,OAAO,EAAC,QAAQ;IAChBC,SAAS,EAAE,CAAE;IAAA,GACTJ,IAAI;IAAAF,QAAA,EAEPA;EAAQ,CACJ,CAAC;AAEZ,CAAC;AAED,MAAMG,MAAM,GAAGX,UAAU,CAACe,MAAM,CAAC;EAC/BH,OAAO,EAAE;IACPI,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,EAAE;IACVC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC;AAEFb,MAAM,CAACc,OAAO,GAAGnB,aAAa;AAC9BK,MAAM,CAACe,UAAU,GAAGnB,gBAAgB;AAEpC,eAAeF,SAAS,CAACM,MAAM,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { render, fireEvent } from '@testing-library/react-native';
|
|
5
|
+
import { testId } from '../Panel/Panel';
|
|
6
|
+
import { AppBar, Text } from '../..';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
describe('<AppBar />', () => {
|
|
9
|
+
it('should render children', () => {
|
|
10
|
+
const {
|
|
11
|
+
getByTestId
|
|
12
|
+
} = render(/*#__PURE__*/_jsx(AppBar, {
|
|
13
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
14
|
+
children: "This is an AppBar"
|
|
15
|
+
})
|
|
16
|
+
}));
|
|
17
|
+
expect(getByTestId(testId)).toHaveTextContent('This is an AppBar');
|
|
18
|
+
});
|
|
19
|
+
it('should render custom styles', () => {
|
|
20
|
+
const style = {
|
|
21
|
+
marginTop: 42
|
|
22
|
+
};
|
|
23
|
+
const {
|
|
24
|
+
getByTestId
|
|
25
|
+
} = render(/*#__PURE__*/_jsx(AppBar, {
|
|
26
|
+
style: style,
|
|
27
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
28
|
+
children: "This is an AppBar"
|
|
29
|
+
})
|
|
30
|
+
}));
|
|
31
|
+
expect(getByTestId(testId)).toHaveStyle(style);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
describe('<AppBar.Content />', () => {
|
|
35
|
+
it('should render custom styles', () => {
|
|
36
|
+
const style = {
|
|
37
|
+
marginTop: 42
|
|
38
|
+
};
|
|
39
|
+
const {
|
|
40
|
+
getByTestId
|
|
41
|
+
} = render(/*#__PURE__*/_jsx(AppBar, {
|
|
42
|
+
children: /*#__PURE__*/_jsx(AppBar.Content, {
|
|
43
|
+
title: "Title",
|
|
44
|
+
style: style,
|
|
45
|
+
testID: "content"
|
|
46
|
+
})
|
|
47
|
+
}));
|
|
48
|
+
expect(getByTestId('content')).toHaveStyle(style);
|
|
49
|
+
});
|
|
50
|
+
describe('title', () => {
|
|
51
|
+
it('should render title', () => {
|
|
52
|
+
const {
|
|
53
|
+
getByText
|
|
54
|
+
} = render(/*#__PURE__*/_jsx(AppBar, {
|
|
55
|
+
children: /*#__PURE__*/_jsx(AppBar.Content, {
|
|
56
|
+
title: "Title"
|
|
57
|
+
})
|
|
58
|
+
}));
|
|
59
|
+
expect(getByText('Title')).toBeTruthy();
|
|
60
|
+
});
|
|
61
|
+
it('should pass styles to title', () => {
|
|
62
|
+
const style = {
|
|
63
|
+
color: 'red'
|
|
64
|
+
};
|
|
65
|
+
const {
|
|
66
|
+
getByText
|
|
67
|
+
} = render(/*#__PURE__*/_jsx(AppBar, {
|
|
68
|
+
children: /*#__PURE__*/_jsx(AppBar.Content, {
|
|
69
|
+
title: "Title",
|
|
70
|
+
titleStyle: style
|
|
71
|
+
})
|
|
72
|
+
}));
|
|
73
|
+
expect(getByText('Title')).toHaveStyle(style);
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
describe('subtitle', () => {
|
|
77
|
+
it('should render subtitle', () => {
|
|
78
|
+
const {
|
|
79
|
+
getByText
|
|
80
|
+
} = render(/*#__PURE__*/_jsx(AppBar, {
|
|
81
|
+
children: /*#__PURE__*/_jsx(AppBar.Content, {
|
|
82
|
+
title: "Title",
|
|
83
|
+
subtitle: "Subtitle"
|
|
84
|
+
})
|
|
85
|
+
}));
|
|
86
|
+
expect(getByText('Subtitle')).toBeTruthy();
|
|
87
|
+
});
|
|
88
|
+
it('should pass styles to subtitle', () => {
|
|
89
|
+
const style = {
|
|
90
|
+
color: 'red'
|
|
91
|
+
};
|
|
92
|
+
const {
|
|
93
|
+
getByText
|
|
94
|
+
} = render(/*#__PURE__*/_jsx(AppBar, {
|
|
95
|
+
children: /*#__PURE__*/_jsx(AppBar.Content, {
|
|
96
|
+
title: "Title",
|
|
97
|
+
subtitle: "Subtitle",
|
|
98
|
+
subtitleStyle: style
|
|
99
|
+
})
|
|
100
|
+
}));
|
|
101
|
+
expect(getByText('Subtitle')).toHaveStyle(style);
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
describe('prop: onPress', () => {
|
|
105
|
+
it('should handle onPress', () => {
|
|
106
|
+
const onPress = jest.fn();
|
|
107
|
+
const {
|
|
108
|
+
getByTestId
|
|
109
|
+
} = render(/*#__PURE__*/_jsx(AppBar, {
|
|
110
|
+
children: /*#__PURE__*/_jsx(AppBar.Content, {
|
|
111
|
+
testID: "content",
|
|
112
|
+
onPress: onPress,
|
|
113
|
+
title: "Title",
|
|
114
|
+
subtitle: "Subtitle"
|
|
115
|
+
})
|
|
116
|
+
}));
|
|
117
|
+
fireEvent(getByTestId('content'), 'press');
|
|
118
|
+
expect(onPress).toHaveBeenCalled();
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
describe('<AppBar.BackAction />', () => {
|
|
123
|
+
it('should render custom styles', () => {
|
|
124
|
+
const style = {
|
|
125
|
+
marginTop: 42
|
|
126
|
+
};
|
|
127
|
+
const {
|
|
128
|
+
getByTestId
|
|
129
|
+
} = render(/*#__PURE__*/_jsx(AppBar, {
|
|
130
|
+
children: /*#__PURE__*/_jsx(AppBar.BackAction, {
|
|
131
|
+
testID: "backAction",
|
|
132
|
+
style: style
|
|
133
|
+
})
|
|
134
|
+
}));
|
|
135
|
+
expect(getByTestId('backAction')).toHaveStyle(style);
|
|
136
|
+
});
|
|
137
|
+
describe('prop: onPress', () => {
|
|
138
|
+
it('should handle onPress', () => {
|
|
139
|
+
const onPress = jest.fn();
|
|
140
|
+
const {
|
|
141
|
+
getByTestId
|
|
142
|
+
} = render(/*#__PURE__*/_jsx(AppBar, {
|
|
143
|
+
children: /*#__PURE__*/_jsx(AppBar.BackAction, {
|
|
144
|
+
testID: "backAction",
|
|
145
|
+
onPress: onPress
|
|
146
|
+
})
|
|
147
|
+
}));
|
|
148
|
+
fireEvent(getByTestId('backAction'), 'press');
|
|
149
|
+
expect(onPress).toHaveBeenCalled();
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
//# sourceMappingURL=AppBar.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","render","fireEvent","testId","AppBar","Text","jsx","_jsx","describe","it","getByTestId","children","expect","toHaveTextContent","style","marginTop","toHaveStyle","Content","title","testID","getByText","toBeTruthy","color","titleStyle","subtitle","subtitleStyle","onPress","jest","fn","toHaveBeenCalled","BackAction"],"sourceRoot":"../../../../src","sources":["components/AppBar/AppBar.spec.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,SAAS,QAAQ,+BAA+B;AACjE,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,MAAM,EAAEC,IAAI,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErCC,QAAQ,CAAC,YAAY,EAAE,MAAM;EAC3BC,EAAE,CAAC,wBAAwB,EAAE,MAAM;IACjC,MAAM;MAAEC;IAAY,CAAC,GAAGT,MAAM,cAC5BM,IAAA,CAACH,MAAM;MAAAO,QAAA,eACLJ,IAAA,CAACF,IAAI;QAAAM,QAAA,EAAC;MAAiB,CAAM;IAAC,CACxB,CACV,CAAC;IAEDC,MAAM,CAACF,WAAW,CAACP,MAAM,CAAC,CAAC,CAACU,iBAAiB,CAAC,mBAAmB,CAAC;EACpE,CAAC,CAAC;EAEFJ,EAAE,CAAC,6BAA6B,EAAE,MAAM;IACtC,MAAMK,KAAK,GAAG;MAAEC,SAAS,EAAE;IAAG,CAAC;IAE/B,MAAM;MAAEL;IAAY,CAAC,GAAGT,MAAM,cAC5BM,IAAA,CAACH,MAAM;MAACU,KAAK,EAAEA,KAAM;MAAAH,QAAA,eACnBJ,IAAA,CAACF,IAAI;QAAAM,QAAA,EAAC;MAAiB,CAAM;IAA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AAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Button, ChevronIcon } from '../..';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const AppBarBackAction = ({
|
|
7
|
+
disabled,
|
|
8
|
+
...rest
|
|
9
|
+
}) => {
|
|
10
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
11
|
+
disabled: disabled,
|
|
12
|
+
square: true,
|
|
13
|
+
variant: "menu",
|
|
14
|
+
...rest,
|
|
15
|
+
children: /*#__PURE__*/_jsx(ChevronIcon, {
|
|
16
|
+
disabled: disabled,
|
|
17
|
+
direction: "left",
|
|
18
|
+
style: {
|
|
19
|
+
marginLeft: -2
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export default AppBarBackAction;
|
|
25
|
+
//# sourceMappingURL=AppBarBackAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Button","ChevronIcon","jsx","_jsx","AppBarBackAction","disabled","rest","square","variant","children","direction","style","marginLeft"],"sourceRoot":"../../../../src","sources":["components/AppBar/AppBarBackAction.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAASC,MAAM,EAAEC,WAAW,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAI5C,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,QAAQ;EAAE,GAAGC;AAAY,CAAC,KAAK;EACzD,oBACEH,IAAA,CAACH,MAAM;IAACK,QAAQ,EAAEA,QAAS;IAACE,MAAM;IAACC,OAAO,EAAC,MAAM;IAAA,GAAKF,IAAI;IAAAG,QAAA,eACxDN,IAAA,CAACF,WAAW;MACVI,QAAQ,EAAEA,QAAS;MACnBK,SAAS,EAAC,MAAM;MAChBC,KAAK,EAAE;QAAEC,UAAU,EAAE,CAAC;MAAE;IAAE,CAC3B;EAAC,CACI,CAAC;AAEb,CAAC;AAED,eAAeR,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable react/jsx-props-no-spreading */
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { StyleSheet, TouchableWithoutFeedback, View } from 'react-native';
|
|
6
|
+
import { withTheme } from '../../core/theming';
|
|
7
|
+
import { Text } from '../..';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const AppbarContent = ({
|
|
10
|
+
// titleRef,
|
|
11
|
+
onPress,
|
|
12
|
+
style,
|
|
13
|
+
subtitle,
|
|
14
|
+
subtitleStyle,
|
|
15
|
+
theme,
|
|
16
|
+
title,
|
|
17
|
+
titleStyle,
|
|
18
|
+
...rest
|
|
19
|
+
}) => {
|
|
20
|
+
return /*#__PURE__*/_jsx(View, {
|
|
21
|
+
style: [styles.container, style],
|
|
22
|
+
...rest,
|
|
23
|
+
children: /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
24
|
+
onPress: onPress,
|
|
25
|
+
disabled: !onPress,
|
|
26
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
27
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
28
|
+
theme: theme
|
|
29
|
+
// ref={titleRef}
|
|
30
|
+
,
|
|
31
|
+
style: [styles.title, titleStyle],
|
|
32
|
+
accessibilityRole: "header",
|
|
33
|
+
children: title
|
|
34
|
+
}), subtitle ? /*#__PURE__*/_jsx(Text, {
|
|
35
|
+
theme: theme,
|
|
36
|
+
secondary: true,
|
|
37
|
+
style: [styles.subtitle, subtitleStyle],
|
|
38
|
+
children: subtitle
|
|
39
|
+
}) : null]
|
|
40
|
+
})
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// TODO: attach displayName to every component?
|
|
46
|
+
AppbarContent.displayName = 'Appbar.Content';
|
|
47
|
+
const styles = StyleSheet.create({
|
|
48
|
+
container: {
|
|
49
|
+
flex: 1,
|
|
50
|
+
paddingHorizontal: 12
|
|
51
|
+
},
|
|
52
|
+
title: {
|
|
53
|
+
fontSize: 16
|
|
54
|
+
},
|
|
55
|
+
subtitle: {
|
|
56
|
+
fontSize: 12
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export default withTheme(AppbarContent);
|
|
60
|
+
//# sourceMappingURL=AppBarContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","TouchableWithoutFeedback","View","withTheme","Text","jsx","_jsx","jsxs","_jsxs","AppbarContent","onPress","style","subtitle","subtitleStyle","theme","title","titleStyle","rest","styles","container","children","disabled","accessibilityRole","secondary","displayName","create","flex","paddingHorizontal","fontSize"],"sourceRoot":"../../../../src","sources":["components/AppBar/AppBarContent.tsx"],"mappings":";;AAAA;AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAEEC,UAAU,EAEVC,wBAAwB,EACxBC,IAAI,QAEC,cAAc;AAGrB,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,SAASC,IAAI,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAe7B,MAAMC,aAAa,GAAGA,CAAC;EACrB;EACAC,OAAO;EACPC,KAAK;EACLC,QAAQ;EACRC,aAAa;EACbC,KAAK;EACLC,KAAK;EACLC,UAAU;EACV,GAAGC;AACE,CAAC,KAAK;EACX,oBACEX,IAAA,CAACJ,IAAI;IAACS,KAAK,EAAE,CAACO,MAAM,CAACC,SAAS,EAAER,KAAK,CAAE;IAAA,GAAKM,IAAI;IAAAG,QAAA,eAC9Cd,IAAA,CAACL,wBAAwB;MAACS,OAAO,EAAEA,OAAQ;MAACW,QAAQ,EAAE,CAACX,OAAQ;MAAAU,QAAA,eAC7DZ,KAAA,CAACN,IAAI;QAAAkB,QAAA,gBACHd,IAAA,CAACF,IAAI;UACHU,KAAK,EAAEA;UACP;UAAA;UACAH,KAAK,EAAE,CAACO,MAAM,CAACH,KAAK,EAAEC,UAAU,CAAE;UAClCM,iBAAiB,EAAC,QAAQ;UAAAF,QAAA,EAEzBL;QAAK,CACF,CAAC,EACNH,QAAQ,gBACPN,IAAA,CAACF,IAAI;UACHU,KAAK,EAAEA,KAAM;UACbS,SAAS;UACTZ,KAAK,EAAE,CAACO,MAAM,CAACN,QAAQ,EAAEC,aAAa,CAAE;UAAAO,QAAA,EAEvCR;QAAQ,CACL,CAAC,GACL,IAAI;MAAA,CACJ;IAAC,CACiB;EAAC,CACvB,CAAC;AAEX,CAAC;;AAED;AACAH,aAAa,CAACe,WAAW,GAAG,gBAAgB;AAE5C,MAAMN,MAAM,GAAGlB,UAAU,CAACyB,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,IAAI,EAAE,CAAC;IACPC,iBAAiB,EAAE;EACrB,CAAC;EACDZ,KAAK,EAAE;IACLa,QAAQ,EAAE;EACZ,CAAC;EACDhB,QAAQ,EAAE;IACRgB,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,eAAezB,SAAS,CAACM,aAAa,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default"],"sourceRoot":"../../../../src","sources":["components/AppBar/index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { StyleSheet,
|
|
5
|
+
// TODO: use Pressable instead of TouchableHighlight?
|
|
6
|
+
TouchableHighlight, View, ImageBackground } from 'react-native';
|
|
7
|
+
import { withTheme } from '../../core/theming';
|
|
8
|
+
import { blockSizes, buildBorderStyles } from '../../styles/styles';
|
|
9
|
+
import { Text } from '../..';
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
export const testId = 'button';
|
|
12
|
+
const Button = ({
|
|
13
|
+
accessible,
|
|
14
|
+
accessibilityLabel,
|
|
15
|
+
active = false,
|
|
16
|
+
children,
|
|
17
|
+
disabled = false,
|
|
18
|
+
onPress,
|
|
19
|
+
onLongPress,
|
|
20
|
+
primary = false,
|
|
21
|
+
size = 'md',
|
|
22
|
+
square = false,
|
|
23
|
+
style = {},
|
|
24
|
+
variant = 'default',
|
|
25
|
+
theme,
|
|
26
|
+
...rest
|
|
27
|
+
}) => {
|
|
28
|
+
const [isPressed, setIsPressed] = useState(false);
|
|
29
|
+
const getWidth = () => {
|
|
30
|
+
return square ? blockSizes[size] : 'auto';
|
|
31
|
+
};
|
|
32
|
+
const isFlat = variant === 'flat';
|
|
33
|
+
const getBackgroundColor = () => {
|
|
34
|
+
if (isFlat) {
|
|
35
|
+
return disabled ? theme.flatLight : 'transparent';
|
|
36
|
+
}
|
|
37
|
+
return theme.material;
|
|
38
|
+
};
|
|
39
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
40
|
+
style: [styles.wrapper, {
|
|
41
|
+
height: blockSizes[size],
|
|
42
|
+
width: getWidth()
|
|
43
|
+
}, style],
|
|
44
|
+
testID: testId,
|
|
45
|
+
...rest,
|
|
46
|
+
children: [/*#__PURE__*/_jsx(Borders, {
|
|
47
|
+
theme: theme,
|
|
48
|
+
isPressed: isPressed,
|
|
49
|
+
variant: variant,
|
|
50
|
+
primary: primary,
|
|
51
|
+
active: active,
|
|
52
|
+
style: {
|
|
53
|
+
backgroundColor: getBackgroundColor()
|
|
54
|
+
}
|
|
55
|
+
}), /*#__PURE__*/_jsx(TouchableHighlight, {
|
|
56
|
+
style: [styles.content, {
|
|
57
|
+
paddingHorizontal: square ? 0 : 10
|
|
58
|
+
}, {
|
|
59
|
+
marginTop: active || isPressed ? 2 : 0
|
|
60
|
+
}],
|
|
61
|
+
onPress: onPress,
|
|
62
|
+
onLongPress: onLongPress,
|
|
63
|
+
disabled: disabled
|
|
64
|
+
// TODO: use onHideUnderlay or onPressIn?
|
|
65
|
+
,
|
|
66
|
+
onHideUnderlay: () => setIsPressed(false),
|
|
67
|
+
onShowUnderlay: () => setIsPressed(true),
|
|
68
|
+
underlayColor: "none",
|
|
69
|
+
accessibilityLabel: accessibilityLabel,
|
|
70
|
+
accessibilityRole: "button",
|
|
71
|
+
accessibilityState: {
|
|
72
|
+
disabled
|
|
73
|
+
},
|
|
74
|
+
accessible: accessible,
|
|
75
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
76
|
+
pointerEvents: "none",
|
|
77
|
+
children: typeof children === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
78
|
+
disabled: !isFlat && disabled,
|
|
79
|
+
secondary: isFlat && disabled,
|
|
80
|
+
children: children
|
|
81
|
+
}) : children
|
|
82
|
+
})
|
|
83
|
+
})]
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
const styles = StyleSheet.create({
|
|
87
|
+
wrapper: {
|
|
88
|
+
position: 'relative'
|
|
89
|
+
},
|
|
90
|
+
content: {
|
|
91
|
+
flex: 1,
|
|
92
|
+
justifyContent: 'center',
|
|
93
|
+
alignItems: 'center'
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
export default withTheme(Button);
|
|
97
|
+
|
|
98
|
+
// Borders acts like a pseudo element that
|
|
99
|
+
// will be positioned absolutely in it's parent element
|
|
100
|
+
|
|
101
|
+
// TODO: pass theme as an argument instead of using context ?
|
|
102
|
+
const Borders = ({
|
|
103
|
+
isPressed = false,
|
|
104
|
+
variant = 'default',
|
|
105
|
+
primary = false,
|
|
106
|
+
active = false,
|
|
107
|
+
style = {},
|
|
108
|
+
theme
|
|
109
|
+
}) => {
|
|
110
|
+
let wrapper = [];
|
|
111
|
+
let outer;
|
|
112
|
+
let inner;
|
|
113
|
+
let focus;
|
|
114
|
+
const borders = buildBorderStyles(theme);
|
|
115
|
+
if (variant === 'default') {
|
|
116
|
+
wrapper = primary ? [borders.outline] : [];
|
|
117
|
+
outer = [borders.defaultOuter];
|
|
118
|
+
inner = [borders.defaultInner];
|
|
119
|
+
focus = isPressed ? [borders.focusOutline] : [];
|
|
120
|
+
} else if (variant === 'raised') {
|
|
121
|
+
wrapper = primary ? [borders.outline] : [];
|
|
122
|
+
outer = [borders.outsideOuter];
|
|
123
|
+
inner = [borders.outsideInner];
|
|
124
|
+
focus = isPressed ? [borders.focusOutline] : [];
|
|
125
|
+
} else if (variant === 'menu' && (active || isPressed)) {
|
|
126
|
+
wrapper = [borders.well];
|
|
127
|
+
} else if (variant === 'flat') {
|
|
128
|
+
wrapper = primary ? [borders.outline] : [];
|
|
129
|
+
outer = [borders.flat];
|
|
130
|
+
inner = isPressed ? [borders.focusOutline] : [];
|
|
131
|
+
}
|
|
132
|
+
return /*#__PURE__*/_jsx(View, {
|
|
133
|
+
style: [borderStyles.position, active || isPressed ? borderStyles.invert : {}, ...wrapper, style],
|
|
134
|
+
children: Array.isArray(outer) && /*#__PURE__*/_jsx(View, {
|
|
135
|
+
style: [borderStyles.position, ...outer],
|
|
136
|
+
children: Array.isArray(inner) && inner.length > 0 && /*#__PURE__*/_jsxs(View, {
|
|
137
|
+
style: [borderStyles.position, ...inner],
|
|
138
|
+
children: [Array.isArray(focus) && !active && /*#__PURE__*/_jsx(View, {
|
|
139
|
+
style: [borderStyles.position, {
|
|
140
|
+
margin: primary ? 0 : 2
|
|
141
|
+
}, ...focus]
|
|
142
|
+
}), active && /*#__PURE__*/_jsx(ImageBackground, {
|
|
143
|
+
style: [borderStyles.position],
|
|
144
|
+
imageStyle: {
|
|
145
|
+
resizeMode: 'repeat'
|
|
146
|
+
},
|
|
147
|
+
source: {
|
|
148
|
+
// TODO: create util function for generating checkered background
|
|
149
|
+
uri: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAIUlEQVQoU2P8////fwYkwMjIyIjCp4MCZPtAbAwraa8AAEGrH/nfAIhgAAAAAElFTkSuQmCC'
|
|
150
|
+
}
|
|
151
|
+
})]
|
|
152
|
+
})
|
|
153
|
+
})
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
const borderStyles = StyleSheet.create({
|
|
157
|
+
position: {
|
|
158
|
+
position: 'absolute',
|
|
159
|
+
top: 0,
|
|
160
|
+
bottom: 0,
|
|
161
|
+
left: 0,
|
|
162
|
+
right: 0
|
|
163
|
+
},
|
|
164
|
+
invert: {
|
|
165
|
+
transform: [{
|
|
166
|
+
rotate: '180deg'
|
|
167
|
+
}]
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","StyleSheet","TouchableHighlight","View","ImageBackground","withTheme","blockSizes","buildBorderStyles","Text","jsx","_jsx","jsxs","_jsxs","testId","Button","accessible","accessibilityLabel","active","children","disabled","onPress","onLongPress","primary","size","square","style","variant","theme","rest","isPressed","setIsPressed","getWidth","isFlat","getBackgroundColor","flatLight","material","styles","wrapper","height","width","testID","Borders","backgroundColor","content","paddingHorizontal","marginTop","onHideUnderlay","onShowUnderlay","underlayColor","accessibilityRole","accessibilityState","pointerEvents","secondary","create","position","flex","justifyContent","alignItems","outer","inner","focus","borders","outline","defaultOuter","defaultInner","focusOutline","outsideOuter","outsideInner","well","flat","borderStyles","invert","Array","isArray","length","margin","imageStyle","resizeMode","source","uri","top","bottom","left","right","transform","rotate"],"sourceRoot":"../../../../src","sources":["components/Button/Button.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SACEC,UAAU;AACV;AACAC,kBAAkB,EAClBC,IAAI,EACJC,eAAe,QAGV,cAAc;AAErB,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,UAAU,EAAEC,iBAAiB,QAAQ,qBAAqB;AAEnE,SAASC,IAAI,QAAQ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,GAAGrE,UAAU,CAACoD,MAAM,CAAC;EACrCC,QAAQ,EAAE;IACRA,QAAQ,EAAE,UAAU;IACpB0B,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE;EACT,CAAC;EAEDZ,MAAM,EAAE;IACNa,SAAS,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAS,CAAC;EAClC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { render, fireEvent } from '@testing-library/react-native';
|
|
5
|
+
import { blockSizes } from '../../styles/styles';
|
|
6
|
+
import { testId } from './Button';
|
|
7
|
+
import { Button, Text } from '../..';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
const noop = () => {};
|
|
10
|
+
describe('<Button />', () => {
|
|
11
|
+
it('should render children', () => {
|
|
12
|
+
const {
|
|
13
|
+
getByText
|
|
14
|
+
} = render(/*#__PURE__*/_jsx(Button, {
|
|
15
|
+
onPress: noop,
|
|
16
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
17
|
+
children: "Potato"
|
|
18
|
+
})
|
|
19
|
+
}));
|
|
20
|
+
expect(getByText('Potato')).toBeTruthy();
|
|
21
|
+
});
|
|
22
|
+
it('should fire press', () => {
|
|
23
|
+
const onButtonPress = jest.fn();
|
|
24
|
+
const {
|
|
25
|
+
getByRole
|
|
26
|
+
} = render(/*#__PURE__*/_jsx(Button, {
|
|
27
|
+
onPress: onButtonPress,
|
|
28
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
29
|
+
children: "Ok"
|
|
30
|
+
})
|
|
31
|
+
}));
|
|
32
|
+
fireEvent(getByRole('button'), 'press');
|
|
33
|
+
expect(onButtonPress).toHaveBeenCalled();
|
|
34
|
+
});
|
|
35
|
+
it('should handle square sizes', () => {
|
|
36
|
+
const sizes = ['sm', 'md', 'lg'];
|
|
37
|
+
sizes.forEach(size => {
|
|
38
|
+
const {
|
|
39
|
+
getByTestId
|
|
40
|
+
} = render(/*#__PURE__*/_jsx(Button, {
|
|
41
|
+
onPress: noop,
|
|
42
|
+
size: size,
|
|
43
|
+
square: true,
|
|
44
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
45
|
+
children: "Ok"
|
|
46
|
+
})
|
|
47
|
+
}));
|
|
48
|
+
expect(getByTestId(testId)).toHaveStyle({
|
|
49
|
+
width: blockSizes[size]
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
it('should render custom styles', () => {
|
|
54
|
+
const style = {
|
|
55
|
+
backgroundColor: 'papayawhip'
|
|
56
|
+
};
|
|
57
|
+
const {
|
|
58
|
+
getByTestId
|
|
59
|
+
} = render(/*#__PURE__*/_jsx(Button, {
|
|
60
|
+
onPress: noop,
|
|
61
|
+
style: style,
|
|
62
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
63
|
+
children: "Ok"
|
|
64
|
+
})
|
|
65
|
+
}));
|
|
66
|
+
expect(getByTestId(testId)).toHaveStyle(style);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=Button.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","render","fireEvent","blockSizes","testId","Button","Text","jsx","_jsx","noop","describe","it","getByText","onPress","children","expect","toBeTruthy","onButtonPress","jest","fn","getByRole","toHaveBeenCalled","sizes","forEach","size","getByTestId","square","toHaveStyle","width","style","backgroundColor"],"sourceRoot":"../../../../src","sources":["components/Button/Button.spec.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,SAAS,QAAQ,+BAA+B;AAEjE,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,MAAM,EAAEC,IAAI,QAAQ,OAAO;AAA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CAAM;MAAC,CACT,CACV,CAAC;MAEDC,MAAM,CAACU,WAAW,CAACrB,MAAM,CAAC,CAAC,CAACuB,WAAW,CAAC;QAAEC,KAAK,EAAEzB,UAAU,CAACqB,IAAI;MAAE,CAAC,CAAC;IACtE,CAAC,CAAC;EACJ,CAAC,CAAC;EAEFb,EAAE,CAAC,6BAA6B,EAAE,MAAM;IACtC,MAAMkB,KAAK,GAAG;MAAEC,eAAe,EAAE;IAAa,CAAC;IAE/C,MAAM;MAAEL;IAAY,CAAC,GAAGxB,MAAM,cAC5BO,IAAA,CAACH,MAAM;MAACQ,OAAO,EAAEJ,IAAK;MAACoB,KAAK,EAAEA,KAAM;MAAAf,QAAA,eAClCN,IAAA,CAACF,IAAI;QAAAQ,QAAA,EAAC;MAAE,CAAM;IAAC,CACT,CACV,CAAC;IAEDC,MAAM,CAACU,WAAW,CAACrB,MAAM,CAAC,CAAC,CAACuB,WAAW,CAACE,KAAK,CAAC;EAChD,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default"],"sourceRoot":"../../../../src","sources":["components/Button/index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,UAAU","ignoreList":[]}
|