react95-native-rabbl 0.1.1 → 0.1.2
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/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 +80 -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 +75 -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
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { StyleSheet, TouchableHighlight, View } from 'react-native';
|
|
5
|
+
import { withTheme } from '../../core/theming';
|
|
6
|
+
import { padding, margin, blockSizes, buildBorderStyles } from '../../styles/styles';
|
|
7
|
+
import { Border } from '../../styles/styleElements';
|
|
8
|
+
import { Text, Panel } from '../..';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
const Tabs = ({
|
|
11
|
+
children,
|
|
12
|
+
onChange,
|
|
13
|
+
stretch = false,
|
|
14
|
+
style,
|
|
15
|
+
theme,
|
|
16
|
+
value,
|
|
17
|
+
...rest
|
|
18
|
+
}) => {
|
|
19
|
+
const childrenWithProps = React.Children.map(children, child => {
|
|
20
|
+
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
const tabProps = {
|
|
24
|
+
//@ts-ignore
|
|
25
|
+
selected: child.props.value === value,
|
|
26
|
+
onPress: onChange,
|
|
27
|
+
stretch
|
|
28
|
+
};
|
|
29
|
+
return /*#__PURE__*/React.cloneElement(child, tabProps);
|
|
30
|
+
});
|
|
31
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
32
|
+
accessibilityRole: "tablist",
|
|
33
|
+
style: [styles.tabs, style],
|
|
34
|
+
...rest,
|
|
35
|
+
children: [childrenWithProps, /*#__PURE__*/_jsx(View, {
|
|
36
|
+
style: [styles.tabBodyBorder, {
|
|
37
|
+
backgroundColor: theme.borderLight,
|
|
38
|
+
borderTopColor: theme.borderLightest
|
|
39
|
+
}]
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
const Body = ({
|
|
44
|
+
children,
|
|
45
|
+
style,
|
|
46
|
+
...rest
|
|
47
|
+
}) => {
|
|
48
|
+
return /*#__PURE__*/_jsx(Panel, {
|
|
49
|
+
style: [styles.body, style],
|
|
50
|
+
...rest,
|
|
51
|
+
children: children
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
const Tab = ({
|
|
55
|
+
children,
|
|
56
|
+
onPress = () => {},
|
|
57
|
+
selected,
|
|
58
|
+
stretch,
|
|
59
|
+
style,
|
|
60
|
+
theme,
|
|
61
|
+
value,
|
|
62
|
+
...rest
|
|
63
|
+
}) => {
|
|
64
|
+
const [isPressed, setIsPressed] = useState(false);
|
|
65
|
+
const borderStyles = buildBorderStyles(theme);
|
|
66
|
+
return /*#__PURE__*/_jsx(TouchableHighlight, {
|
|
67
|
+
onPress: () => onPress(value),
|
|
68
|
+
onHideUnderlay: () => setIsPressed(false),
|
|
69
|
+
onShowUnderlay: () => setIsPressed(true),
|
|
70
|
+
underlayColor: "none",
|
|
71
|
+
style: [styles.tab, {
|
|
72
|
+
zIndex: selected ? 1 : 0
|
|
73
|
+
}, stretch ? {
|
|
74
|
+
flexGrow: 1
|
|
75
|
+
} : {
|
|
76
|
+
width: 'auto'
|
|
77
|
+
}, selected ? margin(0, -8) : margin(0, 0), style],
|
|
78
|
+
accessibilityRole: "tab",
|
|
79
|
+
accessibilityState: {
|
|
80
|
+
selected
|
|
81
|
+
},
|
|
82
|
+
...rest,
|
|
83
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
84
|
+
style: [styles.tabContent, {
|
|
85
|
+
height: selected ? blockSizes.md + 4 : blockSizes.md
|
|
86
|
+
}, selected ? padding(0, 16) : padding(0, 10)],
|
|
87
|
+
children: [/*#__PURE__*/_jsx(Border, {
|
|
88
|
+
radius: 6,
|
|
89
|
+
style: [{
|
|
90
|
+
backgroundColor: theme.material
|
|
91
|
+
}],
|
|
92
|
+
sharedStyle: {
|
|
93
|
+
borderBottomWidth: 0,
|
|
94
|
+
borderBottomLeftRadius: 0,
|
|
95
|
+
borderBottomRightRadius: 0
|
|
96
|
+
}
|
|
97
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
98
|
+
children: children
|
|
99
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
100
|
+
style: [styles.mask, {
|
|
101
|
+
backgroundColor: theme.material
|
|
102
|
+
}]
|
|
103
|
+
}), isPressed && /*#__PURE__*/_jsx(View, {
|
|
104
|
+
style: [styles.focusOutline, borderStyles.focusOutline]
|
|
105
|
+
})]
|
|
106
|
+
})
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
const styles = StyleSheet.create({
|
|
110
|
+
tabs: {
|
|
111
|
+
display: 'flex',
|
|
112
|
+
flexDirection: 'row',
|
|
113
|
+
alignItems: 'flex-end',
|
|
114
|
+
paddingHorizontal: 8,
|
|
115
|
+
zIndex: 1,
|
|
116
|
+
bottom: -2
|
|
117
|
+
},
|
|
118
|
+
body: {
|
|
119
|
+
display: 'flex',
|
|
120
|
+
padding: 16
|
|
121
|
+
},
|
|
122
|
+
tab: {
|
|
123
|
+
alignSelf: 'flex-end'
|
|
124
|
+
},
|
|
125
|
+
tabContent: {
|
|
126
|
+
justifyContent: 'center',
|
|
127
|
+
width: 'auto'
|
|
128
|
+
},
|
|
129
|
+
tabBodyBorder: {
|
|
130
|
+
height: 4,
|
|
131
|
+
position: 'absolute',
|
|
132
|
+
left: 4,
|
|
133
|
+
right: 4,
|
|
134
|
+
bottom: -2,
|
|
135
|
+
borderTopWidth: 2
|
|
136
|
+
},
|
|
137
|
+
mask: {
|
|
138
|
+
height: 4,
|
|
139
|
+
position: 'absolute',
|
|
140
|
+
left: 4,
|
|
141
|
+
right: 4,
|
|
142
|
+
bottom: -2
|
|
143
|
+
},
|
|
144
|
+
focusOutline: {
|
|
145
|
+
position: 'absolute',
|
|
146
|
+
left: 6,
|
|
147
|
+
top: 6,
|
|
148
|
+
bottom: 4,
|
|
149
|
+
right: 6
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
const TabWithTheme = withTheme(Tab);
|
|
153
|
+
const BodyWithTheme = withTheme(Body);
|
|
154
|
+
Tabs.Tab = TabWithTheme;
|
|
155
|
+
Tabs.Body = BodyWithTheme;
|
|
156
|
+
export default withTheme(Tabs);
|
|
157
|
+
//# sourceMappingURL=Tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","StyleSheet","TouchableHighlight","View","withTheme","padding","margin","blockSizes","buildBorderStyles","Border","Text","Panel","jsx","_jsx","jsxs","_jsxs","Tabs","children","onChange","stretch","style","theme","value","rest","childrenWithProps","Children","map","child","isValidElement","tabProps","selected","props","onPress","cloneElement","accessibilityRole","styles","tabs","tabBodyBorder","backgroundColor","borderLight","borderTopColor","borderLightest","Body","body","Tab","isPressed","setIsPressed","borderStyles","onHideUnderlay","onShowUnderlay","underlayColor","tab","zIndex","flexGrow","width","accessibilityState","tabContent","height","md","radius","material","sharedStyle","borderBottomWidth","borderBottomLeftRadius","borderBottomRightRadius","mask","focusOutline","create","display","flexDirection","alignItems","paddingHorizontal","bottom","alignSelf","justifyContent","position","left","right","borderTopWidth","top","TabWithTheme","BodyWithTheme"],"sourceRoot":"../../../../src","sources":["components/Tabs/Tabs.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAEEC,UAAU,EAEVC,kBAAkB,EAClBC,IAAI,QACC,cAAc;AAGrB,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,SACEC,OAAO,EACPC,MAAM,EACNC,UAAU,EACVC,iBAAiB,QACZ,qBAAqB;AAC5B,SAASC,MAAM,QAAQ,4BAA4B;AACnD,SAASC,IAAI,EAAEC,KAAK,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAWpC,MAAMC,IAAI,GAAGA,CAAC;EACZC,QAAQ;EACRC,QAAQ;EACRC,OAAO,GAAG,KAAK;EAC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,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRL,MAAM,EAAE,CAAC;EACX,CAAC;EACDN,YAAY,EAAE;IACZS,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPG,GAAG,EAAE,CAAC;IACNP,MAAM,EAAE,CAAC;IACTK,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AACF,MAAMG,YAAY,GAAG5E,SAAS,CAACwC,GAAG,CAAC;AACnC,MAAMqC,aAAa,GAAG7E,SAAS,CAACsC,IAAI,CAAC;AAErC1B,IAAI,CAAC4B,GAAG,GAAGoC,YAAY;AACvBhE,IAAI,CAAC0B,IAAI,GAAGuC,aAAa;AAEzB,eAAe7E,SAAS,CAACY,IAAI,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default"],"sourceRoot":"../../../../src","sources":["components/Tabs/index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View, StyleSheet, TextInput as NativeTextInput } from 'react-native';
|
|
5
|
+
import { withTheme } from '../../core/theming';
|
|
6
|
+
import { blockSizes, builtTextStyles } from '../../styles/styles';
|
|
7
|
+
import { Border } from '../../styles/styleElements';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
// TODO: implement scrollbars in TextInput
|
|
10
|
+
|
|
11
|
+
const TextInput = ({
|
|
12
|
+
defaultValue,
|
|
13
|
+
disabled,
|
|
14
|
+
style = {},
|
|
15
|
+
theme,
|
|
16
|
+
value,
|
|
17
|
+
variant = 'default',
|
|
18
|
+
...rest
|
|
19
|
+
}) => {
|
|
20
|
+
const hasValue = !!(value || defaultValue);
|
|
21
|
+
const isFlat = variant === 'flat';
|
|
22
|
+
const getBackgroundColor = () => {
|
|
23
|
+
if (isFlat) {
|
|
24
|
+
return disabled ? theme.flatLight : 'transparent';
|
|
25
|
+
}
|
|
26
|
+
return disabled ? theme.material : theme.canvas;
|
|
27
|
+
};
|
|
28
|
+
const textStyles = builtTextStyles(theme);
|
|
29
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
30
|
+
style: [styles.wrapper, {
|
|
31
|
+
padding: isFlat ? 2 : 4
|
|
32
|
+
}, style],
|
|
33
|
+
children: [/*#__PURE__*/_jsx(Border, {
|
|
34
|
+
theme: theme,
|
|
35
|
+
variant: isFlat ? 'flat' : 'cutout'
|
|
36
|
+
}), /*#__PURE__*/_jsx(NativeTextInput, {
|
|
37
|
+
style: [styles.input, {
|
|
38
|
+
backgroundColor: getBackgroundColor()
|
|
39
|
+
}, textStyles.regular, disabled && hasValue ? textStyles.disabled : textStyles.default],
|
|
40
|
+
placeholderTextColor: theme.materialTextDisabled,
|
|
41
|
+
defaultValue: defaultValue,
|
|
42
|
+
value: value,
|
|
43
|
+
editable: !disabled
|
|
44
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
45
|
+
,
|
|
46
|
+
...rest
|
|
47
|
+
})]
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
const styles = StyleSheet.create({
|
|
51
|
+
wrapper: {
|
|
52
|
+
minHeight: blockSizes.md,
|
|
53
|
+
justifyContent: 'center'
|
|
54
|
+
},
|
|
55
|
+
input: {
|
|
56
|
+
flex: 1,
|
|
57
|
+
paddingHorizontal: 4
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export default withTheme(TextInput);
|
|
61
|
+
//# sourceMappingURL=TextInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","TextInput","NativeTextInput","withTheme","blockSizes","builtTextStyles","Border","jsx","_jsx","jsxs","_jsxs","defaultValue","disabled","style","theme","value","variant","rest","hasValue","isFlat","getBackgroundColor","flatLight","material","canvas","textStyles","styles","wrapper","padding","children","input","backgroundColor","regular","default","placeholderTextColor","materialTextDisabled","editable","create","minHeight","md","justifyContent","flex","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/TextInput/TextInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,EAEJC,UAAU,EACVC,SAAS,IAAIC,eAAe,QAEvB,cAAc;AAGrB,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,SAASC,UAAU,EAAEC,eAAe,QAAQ,qBAAqB;AACjE,SAASC,MAAM,QAAQ,4BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAWpD;;AAEA,MAAMT,SAAS,GAAGA,CAAC;EACjBU,YAAY;EACZC,QAAQ;EACRC,KAAK,GAAG,CAAC,CAAC;EACVC,KAAK;EACLC,KAAK;EACLC,OAAO,GAAG,SAAS;EACnB,GAAGC;AACE,CAAC,KAAK;EACX,MAAMC,QAAQ,GAAG,CAAC,EAAEH,KAAK,IAAIJ,YAAY,CAAC;EAE1C,MAAMQ,MAAM,GAAGH,OAAO,KAAK,MAAM;EAEjC,MAAMI,kBAAkB,GAAGA,CAAA,KAAM;IAC/B,IAAID,MAAM,EAAE;MACV,OAAOP,QAAQ,GAAGE,KAAK,CAACO,SAAS,GAAG,aAAa;IACnD;IACA,OAAOT,QAAQ,GAAGE,KAAK,CAACQ,QAAQ,GAAGR,KAAK,CAACS,MAAM;EACjD,CAAC;EAED,MAAMC,UAAU,GAAGnB,eAAe,CAACS,KAAK,CAAC;EACzC,oBACEJ,KAAA,CAACX,IAAI;IAACc,KAAK,EAAE,CAACY,MAAM,CAACC,OAAO,EAAE;MAAEC,OAAO,EAAER,MAAM,GAAG,CAAC,GAAG;IAAE,CAAC,EAAEN,KAAK,CAAE;IAAAe,QAAA,gBAChEpB,IAAA,CAACF,MAAM;MAACQ,KAAK,EAAEA,KAAM;MAACE,OAAO,EAAEG,MAAM,GAAG,MAAM,GAAG;IAAS,CAAE,CAAC,eAC7DX,IAAA,CAACN,eAAe;MACdW,KAAK,EAAE,CACLY,MAAM,CAACI,KAAK,EACZ;QACEC,eAAe,EAAEV,kBAAkB,CAAC;MACtC,CAAC,EACDI,UAAU,CAACO,OAAO,EAClBnB,QAAQ,IAAIM,QAAQ,GAAGM,UAAU,CAACZ,QAAQ,GAAGY,UAAU,CAACQ,OAAO,CAC/D;MACFC,oBAAoB,EAAEnB,KAAK,CAACoB,oBAAqB;MACjDvB,YAAY,EAAEA,YAAa;MAC3BI,KAAK,EAAEA,KAAM;MACboB,QAAQ,EAAE,CAACvB;MACX;MAAA;MAAA,GACIK;IAAI,CACT,CAAC;EAAA,CACE,CAAC;AAEX,CAAC;AAED,MAAMQ,MAAM,GAAGzB,UAAU,CAACoC,MAAM,CAAC;EAC/BV,OAAO,EAAE;IACPW,SAAS,EAAEjC,UAAU,CAACkC,EAAE;IACxBC,cAAc,EAAE;EAClB,CAAC;EACDV,KAAK,EAAE;IACLW,IAAI,EAAE,CAAC;IACPC,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC;AAEF,eAAetC,SAAS,CAACF,SAAS,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default"],"sourceRoot":"../../../../src","sources":["components/TextInput/index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, View, ScrollView as RNScrollView } from 'react-native';
|
|
5
|
+
import { ChevronIcon } from '../..';
|
|
6
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
const chevronIconSize = 20;
|
|
8
|
+
// TODO: performance improvements (callbacks, refs ...etc)
|
|
9
|
+
const ScrollView = ({
|
|
10
|
+
children,
|
|
11
|
+
scrollViewProps = {},
|
|
12
|
+
style,
|
|
13
|
+
...rest
|
|
14
|
+
}) => {
|
|
15
|
+
const [contentOffset, setContentOffset] = React.useState(0);
|
|
16
|
+
const [contentSize, setContentSize] = React.useState(0);
|
|
17
|
+
const [scrollViewSize, setScrollViewSize] = React.useState(0);
|
|
18
|
+
|
|
19
|
+
// TODO: that's a naive approach. if it causes problems
|
|
20
|
+
// trigger a callback when last child becomes fully visible
|
|
21
|
+
const lastElementVisible = contentOffset + scrollViewSize < contentSize - chevronIconSize;
|
|
22
|
+
const handleScroll = e => {
|
|
23
|
+
scrollViewProps.onScroll?.(e);
|
|
24
|
+
setContentOffset(e.nativeEvent.contentOffset.x);
|
|
25
|
+
};
|
|
26
|
+
const handleContentSizeChange = (width, height) => {
|
|
27
|
+
scrollViewProps.onContentSizeChange?.(width, height);
|
|
28
|
+
setContentSize(width);
|
|
29
|
+
};
|
|
30
|
+
const handleLayout = e => {
|
|
31
|
+
scrollViewProps.onLayout?.(e);
|
|
32
|
+
setScrollViewSize(e.nativeEvent.layout.width);
|
|
33
|
+
};
|
|
34
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
35
|
+
style: [styles.wrapper, {
|
|
36
|
+
flexDirection: 'row'
|
|
37
|
+
}, style],
|
|
38
|
+
...rest,
|
|
39
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
40
|
+
style: [styles.content],
|
|
41
|
+
children: /*#__PURE__*/_jsx(RNScrollView, {
|
|
42
|
+
...scrollViewProps,
|
|
43
|
+
showsHorizontalScrollIndicator: false,
|
|
44
|
+
scrollEventThrottle: 100,
|
|
45
|
+
onScroll: handleScroll,
|
|
46
|
+
onContentSizeChange: handleContentSizeChange,
|
|
47
|
+
onLayout: handleLayout,
|
|
48
|
+
horizontal: true,
|
|
49
|
+
children: children
|
|
50
|
+
})
|
|
51
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
52
|
+
style: styles.chevronIcon,
|
|
53
|
+
children: lastElementVisible && /*#__PURE__*/_jsxs(_Fragment, {
|
|
54
|
+
children: [/*#__PURE__*/_jsx(ChevronIcon, {
|
|
55
|
+
segments: 3,
|
|
56
|
+
direction: "right",
|
|
57
|
+
style: {
|
|
58
|
+
marginRight: 1
|
|
59
|
+
}
|
|
60
|
+
}), /*#__PURE__*/_jsx(ChevronIcon, {
|
|
61
|
+
segments: 3,
|
|
62
|
+
direction: "right"
|
|
63
|
+
})]
|
|
64
|
+
})
|
|
65
|
+
})]
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
const styles = StyleSheet.create({
|
|
69
|
+
wrapper: {
|
|
70
|
+
display: 'flex',
|
|
71
|
+
position: 'relative'
|
|
72
|
+
},
|
|
73
|
+
content: {
|
|
74
|
+
flexGrow: 1,
|
|
75
|
+
flexShrink: 1
|
|
76
|
+
},
|
|
77
|
+
chevronIcon: {
|
|
78
|
+
justifyContent: 'center',
|
|
79
|
+
flexDirection: 'row',
|
|
80
|
+
alignSelf: 'flex-start',
|
|
81
|
+
width: chevronIconSize
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export default ScrollView;
|
|
85
|
+
//# sourceMappingURL=Toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","ScrollView","RNScrollView","ChevronIcon","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","chevronIconSize","children","scrollViewProps","style","rest","contentOffset","setContentOffset","useState","contentSize","setContentSize","scrollViewSize","setScrollViewSize","lastElementVisible","handleScroll","e","onScroll","nativeEvent","x","handleContentSizeChange","width","height","onContentSizeChange","handleLayout","onLayout","layout","styles","wrapper","flexDirection","content","showsHorizontalScrollIndicator","scrollEventThrottle","horizontal","chevronIcon","segments","direction","marginRight","create","display","position","flexGrow","flexShrink","justifyContent","alignSelf"],"sourceRoot":"../../../../src","sources":["components/Toolbar/Toolbar.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,UAAU,EACVC,IAAI,EACJC,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oreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default"],"sourceRoot":"../../../../src","sources":["components/Toolbar/index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { withTheme } from '../../core/theming';
|
|
5
|
+
import { Text } from '../..';
|
|
6
|
+
|
|
7
|
+
// TODO: separate Anchor props from React95 Text component
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
const Anchor = ({
|
|
10
|
+
children,
|
|
11
|
+
style,
|
|
12
|
+
theme,
|
|
13
|
+
underline = false,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
17
|
+
style: [{
|
|
18
|
+
color: theme.anchor,
|
|
19
|
+
textDecorationLine: underline ? 'underline' : 'none'
|
|
20
|
+
}, style],
|
|
21
|
+
...rest,
|
|
22
|
+
children: children
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
export default withTheme(Anchor);
|
|
26
|
+
//# sourceMappingURL=Anchor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","withTheme","Text","jsx","_jsx","Anchor","children","style","theme","underline","rest","color","anchor","textDecorationLine"],"sourceRoot":"../../../../src","sources":["components/Typography/Anchor.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,SAASC,IAAI,QAAQ,OAAO;;AAE5B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOA,MAAMC,MAAM,GAAGA,CAAC;EACdC,QAAQ;EACRC,KAAK;EACLC,KAAK;EACLC,SAAS,GAAG,KAAK;EACjB,GAAGC;AACE,CAAC,KAAK;EACX,oBACEN,IAAA,CAACF,IAAI;IACHK,KAAK,EAAE,CACL;MACEI,KAAK,EAAEH,KAAK,CAACI,MAAM;MACnBC,kBAAkB,EAAEJ,SAAS,GAAG,WAAW,GAAG;IAChD,CAAC,EACDF,KAAK,CACL;IAAA,GACEG,IAAI;IAAAJ,QAAA,EAEPA;EAAQ,CACL,CAAC;AAEX,CAAC;AAED,eAAeL,SAAS,CAACI,MAAM,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Text as NativeText } from 'react-native';
|
|
5
|
+
import { withTheme } from '../../core/theming';
|
|
6
|
+
import { builtTextStyles } from '../../styles/styles';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
// TODO: set proper lineHeight and make it so that it automatically adjusts for every fontSize
|
|
9
|
+
const Text = ({
|
|
10
|
+
bold = false,
|
|
11
|
+
children,
|
|
12
|
+
disabled = false,
|
|
13
|
+
secondary = false,
|
|
14
|
+
theme,
|
|
15
|
+
style,
|
|
16
|
+
...rest
|
|
17
|
+
}) => {
|
|
18
|
+
const textStyles = builtTextStyles(theme);
|
|
19
|
+
const getTextStyle = () => {
|
|
20
|
+
if (disabled) {
|
|
21
|
+
return textStyles.disabled;
|
|
22
|
+
}
|
|
23
|
+
if (secondary) {
|
|
24
|
+
return textStyles.secondary;
|
|
25
|
+
}
|
|
26
|
+
return textStyles.default;
|
|
27
|
+
};
|
|
28
|
+
return /*#__PURE__*/_jsx(NativeText, {
|
|
29
|
+
style: [bold ? textStyles.bold : textStyles.regular, getTextStyle(), style],
|
|
30
|
+
...rest,
|
|
31
|
+
children: children
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
export default withTheme(Text);
|
|
35
|
+
//# sourceMappingURL=Text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","NativeText","withTheme","builtTextStyles","jsx","_jsx","bold","children","disabled","secondary","theme","style","rest","textStyles","getTextStyle","default","regular"],"sourceRoot":"../../../../src","sources":["components/Typography/Text.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,UAAU,QAA8B,cAAc;AAEvE,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,eAAe,QAAQ,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAYtD;AACA,MAAML,IAAI,GAAGA,CAAC;EACZM,IAAI,GAAG,KAAK;EACZC,QAAQ;EACRC,QAAQ,GAAG,KAAK;EAChBC,SAAS,GAAG,KAAK;EACjBC,KAAK;EACLC,KAAK;EACL,GAAGC;AACM,CAAC,KAAK;EACf,MAAMC,UAAU,GAAGV,eAAe,CAACO,KAAK,CAAC;EAEzC,MAAMI,YAAY,GAAGA,CAAA,KAAM;IACzB,IAAIN,QAAQ,EAAE;MACZ,OAAOK,UAAU,CAACL,QAAQ;IAC5B;IAEA,IAAIC,SAAS,EAAE;MACb,OAAOI,UAAU,CAACJ,SAAS;IAC7B;IAEA,OAAOI,UAAU,CAACE,OAAO;EAC3B,CAAC;EAED,oBACEV,IAAA,CAACJ,UAAU;IACTU,KAAK,EAAE,CACLL,IAAI,GAAGO,UAAU,CAACP,IAAI,GAAGO,UAAU,CAACG,OAAO,EAC3CF,YAAY,CAAC,CAAC,EACdH,KAAK,CACL;IAAA,GACEC,IAAI;IAAAL,QAAA,EAEPA;EAAQ,CACC,CAAC;AAEjB,CAAC;AAED,eAAeL,SAAS,CAACF,IAAI,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { render } from '@testing-library/react-native';
|
|
5
|
+
import { Text } from '../..';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const mockOpenUrl = jest.fn(url => Promise.resolve(url));
|
|
8
|
+
describe('<Text />', () => {
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
mockOpenUrl.mockClear();
|
|
11
|
+
jest.doMock('react-native/Libraries/Linking/Linking', () => ({
|
|
12
|
+
openURL: mockOpenUrl
|
|
13
|
+
}));
|
|
14
|
+
});
|
|
15
|
+
it('should render children', () => {
|
|
16
|
+
const {
|
|
17
|
+
getByText
|
|
18
|
+
} = render(/*#__PURE__*/_jsx(Text, {
|
|
19
|
+
children: "Potato"
|
|
20
|
+
}));
|
|
21
|
+
expect(getByText('Potato')).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
it('should render custom styles', () => {
|
|
24
|
+
const style = {
|
|
25
|
+
color: 'papayawhip'
|
|
26
|
+
};
|
|
27
|
+
const {
|
|
28
|
+
getByText
|
|
29
|
+
} = render(/*#__PURE__*/_jsx(Text, {
|
|
30
|
+
style: style,
|
|
31
|
+
children: "Potato"
|
|
32
|
+
}));
|
|
33
|
+
expect(getByText('Potato')).toHaveStyle(style);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=Text.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","render","Text","jsx","_jsx","mockOpenUrl","jest","fn","url","Promise","resolve","describe","beforeEach","mockClear","doMock","openURL","it","getByText","children","expect","toBeTruthy","style","color","toHaveStyle"],"sourceRoot":"../../../../src","sources":["components/Typography/Text.spec.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,+BAA+B;AAEtD,SAASC,IAAI,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE7B,MAAMC,WAAW,GAAGC,IAAI,CAACC,EAAE,CAACC,GAAG,IAAIC,OAAO,CAACC,OAAO,CAACF,GAAG,CAAC,CAAC;AAExDG,QAAQ,CAAC,UAAU,EAAE,MAAM;EACzBC,UAAU,CAAC,MAAM;IACfP,WAAW,CAACQ,SAAS,CAAC,CAAC;IAEvBP,IAAI,CAACQ,MAAM,CAAC,wCAAwC,EAAE,OAAO;MAC3DC,OAAO,EAAEV;IACX,CAAC,CAAC,CAAC;EACL,CAAC,CAAC;EAEFW,EAAE,CAAC,wBAAwB,EAAE,MAAM;IACjC,MAAM;MAAEC;IAAU,CAAC,GAAGhB,MAAM,cAACG,IAAA,CAACF,IAAI;MAAAgB,QAAA,EAAC;IAAM,CAAM,CAAC,CAAC;IAEjDC,MAAM,CAACF,SAAS,CAAC,QAAQ,CAAC,CAAC,CAACG,UAAU,CAAC,CAAC;EAC1C,CAAC,CAAC;EAEFJ,EAAE,CAAC,6BAA6B,EAAE,MAAM;IACtC,MAAMK,KAAK,GAAG;MAAEC,KAAK,EAAE;IAAa,CAAC;IAErC,MAAM;MAAEL;IAAU,CAAC,GAAGhB,MAAM,cAACG,IAAA,CAACF,IAAI;MAACmB,KAAK,EAAEA,KAAM;MAAAH,QAAA,EAAC;IAAM,CAAM,CAAC,CAAC;IAE/DC,MAAM,CAACF,SAAS,CAAC,QAAQ,CAAC,CAAC,CAACM,WAAW,CAACF,KAAK,CAAC;EAChD,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import { withTheme } from '../../core/theming';
|
|
6
|
+
import { Divider } from '../..';
|
|
7
|
+
import Text from './Text';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const Title = ({
|
|
10
|
+
align = 'center',
|
|
11
|
+
children,
|
|
12
|
+
theme,
|
|
13
|
+
...rest
|
|
14
|
+
}) => {
|
|
15
|
+
const getAlignment = () => {
|
|
16
|
+
switch (align) {
|
|
17
|
+
case 'left':
|
|
18
|
+
return 'flex-start';
|
|
19
|
+
case 'right':
|
|
20
|
+
return 'flex-end';
|
|
21
|
+
default:
|
|
22
|
+
return 'center';
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
26
|
+
style: [styles.wrapper],
|
|
27
|
+
children: [/*#__PURE__*/_jsx(Divider, {
|
|
28
|
+
style: [styles.divider]
|
|
29
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
30
|
+
style: {
|
|
31
|
+
paddingLeft: align !== 'left' ? 8 : 0,
|
|
32
|
+
paddingRight: align !== 'right' ? 8 : 0,
|
|
33
|
+
backgroundColor: theme.material,
|
|
34
|
+
alignSelf: getAlignment()
|
|
35
|
+
},
|
|
36
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
37
|
+
...rest,
|
|
38
|
+
children: children
|
|
39
|
+
})
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
const styles = StyleSheet.create({
|
|
44
|
+
wrapper: {
|
|
45
|
+
position: 'relative',
|
|
46
|
+
width: '100%'
|
|
47
|
+
},
|
|
48
|
+
divider: {
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
left: 0,
|
|
51
|
+
right: 0,
|
|
52
|
+
top: '50%',
|
|
53
|
+
transform: [{
|
|
54
|
+
translateY: -1
|
|
55
|
+
}]
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export default withTheme(Title);
|
|
59
|
+
//# sourceMappingURL=Title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","withTheme","Divider","Text","jsx","_jsx","jsxs","_jsxs","Title","align","children","theme","rest","getAlignment","style","styles","wrapper","divider","paddingLeft","paddingRight","backgroundColor","material","alignSelf","create","position","width","left","right","top","transform","translateY"],"sourceRoot":"../../../../src","sources":["components/Typography/Title.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAG/C,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,SAASC,OAAO,QAAQ,OAAO;AAC/B,O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CAAC;IAAE,CAAC;EAChC;AACF,CAAC,CAAC;AAEF,eAAe7B,SAAS,CAACO,KAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","Text","Title","Anchor"],"sourceRoot":"../../../../src","sources":["components/Typography/index.ts"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,IAAI,QAAQ,QAAQ;AACxC,SAASD,OAAO,IAAIE,KAAK,QAAQ,SAAS;AAC1C,SAASF,OAAO,IAAIG,MAAM,QAAQ,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import { withTheme } from '../../core/theming';
|
|
6
|
+
import { Panel, Button, Text, CloseIcon } from '../..';
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
const Window = ({
|
|
9
|
+
active = true,
|
|
10
|
+
children,
|
|
11
|
+
onClose,
|
|
12
|
+
onMaximize,
|
|
13
|
+
onMinimize,
|
|
14
|
+
style = {},
|
|
15
|
+
theme,
|
|
16
|
+
title = '',
|
|
17
|
+
...rest
|
|
18
|
+
}) => {
|
|
19
|
+
return /*#__PURE__*/_jsxs(Panel, {
|
|
20
|
+
theme: theme,
|
|
21
|
+
variant: "raised",
|
|
22
|
+
elevation: 4,
|
|
23
|
+
style: [styles.window, {
|
|
24
|
+
backgroundColor: theme.material
|
|
25
|
+
}, style],
|
|
26
|
+
...rest,
|
|
27
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
28
|
+
style: [styles.titleBar, styles.flex, {
|
|
29
|
+
backgroundColor: active ? theme.headerBackground : theme.headerNotActiveBackground
|
|
30
|
+
}],
|
|
31
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
32
|
+
style: [styles.flex],
|
|
33
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
34
|
+
theme: theme,
|
|
35
|
+
bold: true
|
|
36
|
+
// TODO: truncate window title when window is really small
|
|
37
|
+
,
|
|
38
|
+
ellipsizeMode: "tail",
|
|
39
|
+
numberOfLines: 1,
|
|
40
|
+
style: [styles.titleBarText, {
|
|
41
|
+
color: active ? theme.headerText : theme.headerNotActiveText
|
|
42
|
+
}],
|
|
43
|
+
children: title
|
|
44
|
+
})
|
|
45
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
46
|
+
style: [styles.flex],
|
|
47
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
48
|
+
style: [styles.flex, styles.buttonGroup],
|
|
49
|
+
children: [onMinimize && /*#__PURE__*/_jsx(Button, {
|
|
50
|
+
theme: theme,
|
|
51
|
+
onPress: onMinimize,
|
|
52
|
+
style: [styles.button],
|
|
53
|
+
children: "_"
|
|
54
|
+
}), onMaximize && /*#__PURE__*/_jsx(Button, {
|
|
55
|
+
theme: theme,
|
|
56
|
+
onPress: onMaximize,
|
|
57
|
+
style: [styles.button],
|
|
58
|
+
children: "[]"
|
|
59
|
+
})]
|
|
60
|
+
}), onClose && /*#__PURE__*/_jsx(Button, {
|
|
61
|
+
theme: theme,
|
|
62
|
+
onPress: onClose,
|
|
63
|
+
style: [styles.button],
|
|
64
|
+
children: /*#__PURE__*/_jsx(CloseIcon, {})
|
|
65
|
+
})]
|
|
66
|
+
})]
|
|
67
|
+
}), children]
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
const styles = StyleSheet.create({
|
|
71
|
+
flex: {
|
|
72
|
+
display: 'flex',
|
|
73
|
+
flexDirection: 'row',
|
|
74
|
+
justifyContent: 'space-between',
|
|
75
|
+
alignContent: 'center',
|
|
76
|
+
alignItems: 'center'
|
|
77
|
+
},
|
|
78
|
+
window: {
|
|
79
|
+
position: 'relative',
|
|
80
|
+
paddingVertical: 6,
|
|
81
|
+
paddingHorizontal: 6
|
|
82
|
+
},
|
|
83
|
+
titleBar: {
|
|
84
|
+
height: 36,
|
|
85
|
+
margin: 2,
|
|
86
|
+
paddingRight: 4,
|
|
87
|
+
paddingLeft: 8
|
|
88
|
+
},
|
|
89
|
+
titleBarText: {
|
|
90
|
+
flexShrink: 1
|
|
91
|
+
},
|
|
92
|
+
buttonGroup: {
|
|
93
|
+
marginRight: 6
|
|
94
|
+
},
|
|
95
|
+
button: {
|
|
96
|
+
height: 28,
|
|
97
|
+
width: 32,
|
|
98
|
+
padding: 0
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
export default withTheme(Window);
|
|
102
|
+
//# sourceMappingURL=Window.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","withTheme","Panel","Button","Text","CloseIcon","jsx","_jsx","jsxs","_jsxs","Window","active","children","onClose","onMaximize","onMinimize","style","theme","title","rest","variant","elevation","styles","window","backgroundColor","material","titleBar","flex","headerBackground","headerNotActiveBackground","bold","ellipsizeMode","numberOfLines","titleBarText","color","headerText","headerNotActiveText","buttonGroup","onPress","button","create","display","flexDirection","justifyContent","alignContent","alignItems","position","paddingVertical","paddingHorizontal","height","margin","paddingRight","paddingLeft","flexShrink","marginRight","width","padding"],"sourceRoot":"../../../../src","sources":["components/Window/Window.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAA8B,cAAc;AAGrE,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,SAASC,KAAK,EAAEC,MAAM,EAAEC,IAAI,EAAEC,SAAS,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAcvD,MAAMC,MAAM,GAAGA,CAAC;EACdC,MAAM,GAAG,IAAI;EACbC,QAAQ;EACRC,OAAO;EACPC,UAAU;EACVC,UAAU;EACVC,KAAK,GAAG,CAAC,CAAC;EACVC,KAAK;EACLC,KAAK,GAAG,EAAE;EACV,GAAGC;AACE,CAAC,KAAK;EACX,oBACE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