@ainias42/react-bootstrap-mobile 1.0.1 → 1.0.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/.ctirc +114 -0
- package/.prettierrc +1 -5
- package/.storybook/main.ts +31 -0
- package/.storybook/preview.ts +36 -0
- package/bin/release.sh +1 -37
- package/bin/updatePackages.sh +3 -0
- package/dist/{src/Components → Components}/ActionSheet/ActionSheet.d.ts +5 -5
- package/dist/Components/ActionSheet/ActionSheet.stories.d.ts +9 -0
- package/dist/Components/Card/Card.d.ts +12 -0
- package/dist/Components/Card/Card.stories.d.ts +16 -0
- package/dist/{src/Components → Components}/Clickable/Clickable.d.ts +3 -3
- package/dist/Components/Colors.stories.d.ts +5 -0
- package/dist/Components/Dialog/AlertDialog.d.ts +8 -0
- package/dist/Components/Dialog/AlertDialog.stories.d.ts +14 -0
- package/dist/{src/Components → Components}/Dialog/ButtonDialog.d.ts +3 -3
- package/dist/Components/Dialog/ConfirmDialog.d.ts +9 -0
- package/dist/Components/Dialog/ConfirmDialog.stories.d.ts +15 -0
- package/dist/{src/Components → Components}/Dialog/Dialog.d.ts +2 -2
- package/dist/{src/Components → Components}/Dialog/DialogBackground.d.ts +2 -2
- package/dist/{src/Components → Components}/Dialog/DialogContainer.d.ts +3 -3
- package/dist/{src/Components → Components}/Dialog/DialogContext.d.ts +3 -2
- package/dist/{src/Components → Components}/DragAndDrop/DragItem.d.ts +2 -2
- package/dist/{src/Components → Components}/DragAndDrop/DropArea.d.ts +2 -2
- package/dist/{src/Components → Components}/FormElements/Button/Button.d.ts +8 -8
- package/dist/Components/FormElements/Button/Button.stories.d.ts +43 -0
- package/dist/Components/FormElements/CheckBox/Checkbox.d.ts +12 -0
- package/dist/Components/FormElements/CheckBox/Checkbox.stories.d.ts +17 -0
- package/dist/{src/Components → Components}/FormElements/ColorInput/ColorInput.d.ts +3 -5
- package/dist/Components/FormElements/ColorInput/ColorInput.stories.d.ts +8 -0
- package/dist/{src/Components → Components}/FormElements/Controller/ColorInputController.d.ts +1 -1
- package/dist/{src/Components → Components}/FormElements/Controller/FileInputController.d.ts +4 -4
- package/dist/Components/FormElements/Controller/HookForm.d.ts +15 -0
- package/dist/{src/Components → Components}/FormElements/Controller/InputController.d.ts +1 -1
- package/dist/{src/Components → Components}/FormElements/Controller/MultipleFileInputController.d.ts +1 -1
- package/dist/{src/Components → Components}/FormElements/Controller/PasswordInputController.d.ts +1 -1
- package/dist/{src/Components → Components}/FormElements/Controller/SelectController.d.ts +1 -1
- package/dist/Components/FormElements/Controller/SliderController.d.ts +5 -0
- package/dist/{src/Components → Components}/FormElements/Controller/SwitchController.d.ts +1 -1
- package/dist/{src/Components → Components}/FormElements/Controller/TextareaController.d.ts +1 -1
- package/dist/{src/Components → Components}/FormElements/Controller/useYupResolver.d.ts +1 -1
- package/dist/{src/Components → Components}/FormElements/Controller/withHookController.d.ts +3 -2
- package/dist/Components/FormElements/Error/FormError.d.ts +6 -0
- package/dist/Components/FormElements/Error/FormError.stories.d.ts +7 -0
- package/dist/Components/FormElements/Form.stories.d.ts +7 -0
- package/dist/Components/FormElements/Input/FileInput/FileInput.d.ts +13 -0
- package/dist/{src/Components → Components}/FormElements/Input/FileInput/MultipleFileInput.d.ts +6 -6
- package/dist/Components/FormElements/Input/HiddenInput.d.ts +6 -0
- package/dist/Components/FormElements/Input/HiddenInput.stories.d.ts +9 -0
- package/dist/{src/Components → Components}/FormElements/Input/Input.d.ts +4 -4
- package/dist/Components/FormElements/Input/Input.stories.d.ts +18 -0
- package/dist/{src/Components → Components}/FormElements/Input/PasswordInput/PasswordInput.d.ts +5 -4
- package/dist/Components/FormElements/Input/PasswordInput/PasswordInput.stories.d.ts +8 -0
- package/dist/{src/Components → Components}/FormElements/SearchSelectInput/SearchSelectInput.d.ts +4 -4
- package/dist/Components/FormElements/SearchSelectInput/SearchSelectInput.stories.d.ts +9 -0
- package/dist/{src/Components → Components}/FormElements/Select/Select.d.ts +4 -4
- package/dist/Components/FormElements/Select/Select.stories.d.ts +8 -0
- package/dist/{src/Components → Components}/FormElements/Slider/Slider.d.ts +4 -4
- package/dist/Components/FormElements/Slider/Slider.stories.d.ts +7 -0
- package/dist/{src/Components → Components}/FormElements/Switch/Switch.d.ts +5 -5
- package/dist/Components/FormElements/Switch/Switch.stories.d.ts +11 -0
- package/dist/{src/Components → Components}/FormElements/Textarea/Textarea.d.ts +4 -4
- package/dist/Components/FormElements/Textarea/Textarea.stories.d.ts +9 -0
- package/dist/{src/Components → Components}/FormElements/hooks/useOnChangeDone.d.ts +1 -1
- package/dist/{src/Components → Components}/FullScreen/FullScreen.d.ts +4 -4
- package/dist/{src/Components → Components}/Hooks/useClientLayoutEffect.d.ts +1 -1
- package/dist/{src/Components → Components}/Hooks/useComposedRef.d.ts +1 -1
- package/dist/{src/Components → Components}/Hooks/useDelayedState.d.ts +1 -1
- package/dist/{src/Components → Components}/Hooks/useInViewport.d.ts +1 -1
- package/dist/{src/Components → Components}/Icon/DoubleIcon.d.ts +1 -1
- package/dist/Components/Icon/DoubleIcon.stories.d.ts +23 -0
- package/dist/{src/Components → Components}/Icon/Icon.d.ts +5 -5
- package/dist/Components/Icon/Icon.stories.d.ts +17 -0
- package/dist/Components/Image/Image.d.ts +10 -0
- package/dist/Components/Image/Image.stories.d.ts +7 -0
- package/dist/{src/Components → Components}/InViewport/InViewport.d.ts +1 -1
- package/dist/{src/Components → Components}/Layout/Block.d.ts +4 -4
- package/dist/{src/Components → Components}/Layout/Container.d.ts +1 -1
- package/dist/{src/Components → Components}/Layout/Flex.d.ts +3 -3
- package/dist/{src/Components → Components}/Layout/Grid/Grid.d.ts +3 -3
- package/dist/{src/Components → Components}/Layout/Grid/GridItem.d.ts +1 -1
- package/dist/Components/Layout/Grow.d.ts +10 -0
- package/dist/{src/Components → Components}/Layout/Inline.d.ts +3 -3
- package/dist/{src/Components → Components}/Layout/InlineBlock.d.ts +3 -3
- package/dist/{src/Components → Components}/Layout/View.d.ts +4 -4
- package/dist/{src/Components → Components}/Layout/ViewWithoutListeners.d.ts +3 -3
- package/dist/Components/LoadingArea/LoadingArea.d.ts +9 -0
- package/dist/Components/LoadingArea/LoadingArea.stories.d.ts +9 -0
- package/dist/Components/LoadingCircle/LoadingCircle.d.ts +7 -0
- package/dist/Components/LoadingCircle/LoadingCircle.stories.d.ts +26 -0
- package/dist/{src/Components → Components}/Menu/HoverMenu.d.ts +3 -3
- package/dist/Components/Menu/HoverMenu.stories.d.ts +16 -0
- package/dist/{src/Components → Components}/Menu/Menu.d.ts +2 -2
- package/dist/Components/Menu/Menu.stories.d.ts +14 -0
- package/dist/{src/Components → Components}/Menu/MenuCloseContext.d.ts +1 -1
- package/dist/{src/Components → Components}/Menu/MenuDivider.d.ts +1 -1
- package/dist/{src/Components → Components}/Menu/MenuItem.d.ts +4 -3
- package/dist/Components/Menu/MenuItem.stories.d.ts +21 -0
- package/dist/{src/Components → Components}/Menu/Submenu.d.ts +3 -3
- package/dist/Components/Menu/Submenu.stories.d.ts +10 -0
- package/dist/{src/Components → Components}/Menu/useMenu.d.ts +2 -2
- package/dist/{src/Components → Components}/RbmComponentProps.d.ts +4 -4
- package/dist/{src/Components → Components}/SizeCalculator/SizeCalculator.d.ts +1 -1
- package/dist/Components/SpoilerList/Spoiler/Spoiler.d.ts +16 -0
- package/dist/Components/SpoilerList/Spoiler/Spoiler.stories.d.ts +7 -0
- package/dist/{src/Components → Components}/SpoilerList/SpoilerList.d.ts +3 -5
- package/dist/{src/Components → Components}/TabBar/TabBar.d.ts +4 -6
- package/dist/Components/TabBar/TabBar.stories.d.ts +10 -0
- package/dist/Components/TabBar/TabBarButton.d.ts +7 -0
- package/dist/{src/Components → Components}/Table/Table.d.ts +3 -3
- package/dist/{src/Components → Components}/Text/Heading.d.ts +2 -2
- package/dist/{src/Components → Components}/Text/Text.d.ts +3 -3
- package/dist/Components/Text/Text.stories.d.ts +35 -0
- package/dist/Components/Toast/Toast.d.ts +12 -0
- package/dist/Components/Toast/Toast.stories.d.ts +8 -0
- package/dist/{src/Components → Components}/Toast/ToastContainer.d.ts +2 -2
- package/dist/Components/TopBar/MoreButton.d.ts +7 -0
- package/dist/{src/Components → Components}/TopBar/TopBar.d.ts +4 -6
- package/dist/Components/TopBar/TopBar.stories.d.ts +7 -0
- package/dist/Components/TopBar/TopBarButton.d.ts +7 -0
- package/dist/helper/useDeepShallow.d.ts +1 -0
- package/dist/helper/withMemo.d.ts +3 -0
- package/dist/{src/helper → helper}/withRenderBrowserOnly.d.ts +1 -1
- package/dist/helper/withRestrictedChildren.d.ts +7 -0
- package/dist/index.css +36 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +116 -0
- package/dist/index.js +5357 -0
- package/dist/index.js.map +1 -0
- package/dist/treeshakeTest.d.ts +1 -0
- package/eslint.config.js +17 -0
- package/package.json +41 -90
- package/react-bootstrap-mobile.scss +6 -6
- package/src/Components/ActionSheet/ActionSheet.stories.tsx +55 -0
- package/src/Components/ActionSheet/ActionSheet.tsx +37 -24
- package/src/Components/ActionSheet/actionSheet.module.scss +198 -0
- package/src/Components/Card/Card.stories.tsx +41 -0
- package/src/Components/Card/Card.tsx +6 -9
- package/src/Components/Card/card.module.scss +74 -0
- package/src/Components/Clickable/Clickable.tsx +73 -63
- package/src/Components/Clickable/clickable.module.scss +14 -0
- package/src/Components/Colors.stories.tsx +77 -0
- package/src/Components/Dialog/AlertDialog.stories.tsx +28 -0
- package/src/Components/Dialog/AlertDialog.tsx +10 -9
- package/src/Components/Dialog/ButtonDialog.tsx +15 -13
- package/src/Components/Dialog/ConfirmDialog.stories.tsx +29 -0
- package/src/Components/Dialog/ConfirmDialog.tsx +11 -9
- package/src/Components/Dialog/Dialog.tsx +10 -10
- package/src/Components/Dialog/DialogBackground.tsx +32 -21
- package/src/Components/Dialog/DialogContainer.tsx +23 -18
- package/src/Components/Dialog/DialogContext.ts +7 -6
- package/src/Components/Dialog/{buttonDialog.scss → buttonDialog.module.scss} +29 -21
- package/src/Components/Dialog/dialog.module.scss +30 -0
- package/src/Components/Dialog/dialogBackground.module.scss +17 -0
- package/src/Components/Dialog/useAlertDialog.ts +3 -3
- package/src/Components/Dialog/useConfirmDialog.ts +3 -3
- package/src/Components/DragAndDrop/DragItem.tsx +7 -6
- package/src/Components/DragAndDrop/DropArea.tsx +5 -4
- package/src/Components/Flavor.ts +4 -4
- package/src/Components/FormElements/Button/Button.stories.tsx +79 -0
- package/src/Components/FormElements/Button/Button.tsx +49 -36
- package/src/Components/FormElements/Button/ButtonType.ts +2 -2
- package/src/Components/FormElements/Button/button.module.scss +87 -0
- package/src/Components/FormElements/CheckBox/Checkbox.stories.tsx +50 -0
- package/src/Components/FormElements/CheckBox/Checkbox.tsx +13 -14
- package/src/Components/FormElements/CheckBox/{checkbox.scss → checkbox.module.scss} +30 -11
- package/src/Components/FormElements/ColorInput/ColorInput.stories.tsx +24 -0
- package/src/Components/FormElements/ColorInput/ColorInput.tsx +55 -59
- package/src/Components/FormElements/ColorInput/{colorInput.scss → colorInput.module.scss} +17 -19
- package/src/Components/FormElements/ColorInput/sharedSelectedColor.ts +19 -10
- package/src/Components/FormElements/Controller/ColorInputController.ts +3 -3
- package/src/Components/FormElements/Controller/FileInputController.tsx +29 -20
- package/src/Components/FormElements/Controller/HookForm.tsx +128 -24
- package/src/Components/FormElements/Controller/InputController.ts +3 -3
- package/src/Components/FormElements/Controller/MultipleFileInputController.ts +2 -3
- package/src/Components/FormElements/Controller/PasswordInputController.ts +3 -3
- package/src/Components/FormElements/Controller/SelectController.ts +3 -3
- package/src/Components/FormElements/Controller/SendFormContext.ts +3 -3
- package/src/Components/FormElements/Controller/SliderController.ts +4 -0
- package/src/Components/FormElements/Controller/SwitchController.ts +3 -3
- package/src/Components/FormElements/Controller/TextareaController.ts +2 -2
- package/src/Components/FormElements/Controller/useYupResolver.ts +10 -8
- package/src/Components/FormElements/Controller/withHookController.tsx +21 -18
- package/src/Components/FormElements/Error/FormError.stories.tsx +16 -0
- package/src/Components/FormElements/Error/FormError.tsx +42 -0
- package/src/Components/FormElements/Error/formError.module.scss +9 -0
- package/src/Components/FormElements/Form.stories.tsx +16 -0
- package/src/Components/FormElements/Input/FileInput/FileInput.tsx +52 -32
- package/src/Components/FormElements/Input/FileInput/MultipleFileInput.tsx +234 -231
- package/src/Components/FormElements/Input/FileInput/{fileInput.scss → fileInput.module.scss} +10 -12
- package/src/Components/FormElements/Input/HiddenInput.stories.tsx +44 -0
- package/src/Components/FormElements/Input/HiddenInput.tsx +6 -8
- package/src/Components/FormElements/Input/Input.stories.tsx +59 -0
- package/src/Components/FormElements/Input/Input.tsx +173 -172
- package/src/Components/FormElements/Input/PasswordInput/PasswordInput.stories.tsx +31 -0
- package/src/Components/FormElements/Input/PasswordInput/PasswordInput.tsx +20 -16
- package/src/Components/FormElements/Input/input.module.scss +95 -0
- package/src/Components/FormElements/SearchSelectInput/SearchSelectInput.stories.tsx +49 -0
- package/src/Components/FormElements/SearchSelectInput/SearchSelectInput.tsx +178 -166
- package/src/Components/FormElements/SearchSelectInput/seachSelectInput.module.scss +112 -0
- package/src/Components/FormElements/Select/Select.stories.tsx +49 -0
- package/src/Components/FormElements/Select/Select.tsx +34 -24
- package/src/Components/FormElements/Select/select.module.scss +63 -0
- package/src/Components/FormElements/Slider/Slider.stories.tsx +15 -0
- package/src/Components/FormElements/Slider/Slider.tsx +29 -20
- package/src/Components/FormElements/Slider/slider.module.scss +93 -0
- package/src/Components/FormElements/Switch/Switch.stories.tsx +65 -0
- package/src/Components/FormElements/Switch/Switch.tsx +72 -63
- package/src/Components/FormElements/Switch/switch.module.scss +157 -0
- package/src/Components/FormElements/Textarea/Textarea.stories.tsx +37 -0
- package/src/Components/FormElements/Textarea/Textarea.tsx +46 -45
- package/src/Components/FormElements/Textarea/textarea.module.scss +34 -0
- package/src/Components/FormElements/hooks/useOnChangeDone.ts +6 -2
- package/src/Components/FullScreen/FullScreen.tsx +16 -16
- package/src/Components/Hooks/useBreakpoint.ts +13 -7
- package/src/Components/Hooks/useClientLayoutEffect.ts +1 -1
- package/src/Components/Hooks/useComposedRef.ts +2 -1
- package/src/Components/Hooks/useDebounced.ts +2 -2
- package/src/Components/Hooks/useDelayed.ts +2 -3
- package/src/Components/Hooks/useDelayedEffect.ts +3 -3
- package/src/Components/Hooks/useDelayedState.ts +18 -10
- package/src/Components/Hooks/useInViewport.ts +3 -2
- package/src/Components/Hooks/useKeyListener.ts +9 -6
- package/src/Components/Hooks/useListener.ts +4 -4
- package/src/Components/Hooks/useMousePosition.ts +2 -2
- package/src/Components/Hooks/useRerender.ts +17 -14
- package/src/Components/Hooks/useWindowDimensions.ts +11 -12
- package/src/Components/Icon/DoubleIcon.stories.tsx +38 -0
- package/src/Components/Icon/DoubleIcon.tsx +22 -17
- package/src/Components/Icon/Icon.stories.tsx +37 -0
- package/src/Components/Icon/Icon.tsx +39 -17
- package/src/Components/Icon/{icon.scss → icon.module.scss} +2 -0
- package/src/Components/Image/Image.stories.tsx +17 -0
- package/src/Components/Image/Image.tsx +7 -12
- package/src/Components/InViewport/InViewport.tsx +5 -6
- package/src/Components/Layout/Block.tsx +18 -12
- package/src/Components/Layout/Container.tsx +5 -6
- package/src/Components/Layout/Flex.tsx +17 -9
- package/src/Components/Layout/Grid/Grid.tsx +20 -10
- package/src/Components/Layout/Grid/GridItem.tsx +5 -6
- package/src/Components/Layout/Grid/{grid.scss → grid.module.scss} +19 -26
- package/src/Components/Layout/Grow.tsx +18 -8
- package/src/Components/Layout/Inline.tsx +15 -12
- package/src/Components/Layout/InlineBlock.tsx +17 -12
- package/src/Components/Layout/View.tsx +20 -9
- package/src/Components/Layout/ViewWithoutListeners.tsx +24 -15
- package/src/Components/Layout/container.module.scss +54 -0
- package/src/Components/LoadingArea/LoadingArea.stories.tsx +35 -0
- package/src/Components/LoadingArea/LoadingArea.tsx +10 -15
- package/src/Components/LoadingArea/{loadingArea.scss → loadingArea.module.scss} +8 -5
- package/src/Components/LoadingCircle/LoadingCircle.stories.tsx +58 -0
- package/src/Components/LoadingCircle/LoadingCircle.tsx +26 -13
- package/src/Components/LoadingCircle/{loadingCircle.scss → loadingCircle.module.scss} +14 -5
- package/src/Components/Menu/HoverMenu.stories.tsx +32 -0
- package/src/Components/Menu/HoverMenu.tsx +61 -45
- package/src/Components/Menu/Menu.stories.tsx +69 -0
- package/src/Components/Menu/Menu.tsx +67 -58
- package/src/Components/Menu/MenuCloseContext.ts +1 -1
- package/src/Components/Menu/MenuDivider.tsx +6 -6
- package/src/Components/Menu/MenuItem.stories.tsx +35 -0
- package/src/Components/Menu/MenuItem.tsx +66 -55
- package/src/Components/Menu/Submenu.stories.tsx +37 -0
- package/src/Components/Menu/Submenu.tsx +72 -58
- package/src/Components/Menu/{menu.scss → menu.module.scss} +23 -11
- package/src/Components/Menu/useMenu.ts +4 -3
- package/src/Components/RbmComponentProps.ts +6 -7
- package/src/Components/SizeCalculator/SizeCalculator.tsx +3 -3
- package/src/Components/SpoilerList/Spoiler/Spoiler.stories.tsx +21 -0
- package/src/Components/SpoilerList/Spoiler/Spoiler.tsx +49 -48
- package/src/Components/SpoilerList/Spoiler/{spoiler.scss → spoiler.module.scss} +46 -30
- package/src/Components/SpoilerList/SpoilerList.tsx +8 -12
- package/src/Components/SpoilerList/useSpoilerGroup.ts +2 -2
- package/src/Components/TabBar/TabBar.stories.tsx +32 -0
- package/src/Components/TabBar/TabBar.tsx +16 -18
- package/src/Components/TabBar/TabBarButton.tsx +13 -10
- package/src/Components/TabBar/tabBar.module.scss +128 -0
- package/src/Components/Table/Table.tsx +16 -15
- package/src/Components/Text/Heading.tsx +6 -7
- package/src/Components/Text/Text.stories.tsx +121 -0
- package/src/Components/Text/Text.tsx +19 -10
- package/src/Components/Text/{text.scss → text.module.scss} +3 -8
- package/src/Components/Toast/Toast.stories.tsx +25 -0
- package/src/Components/Toast/Toast.tsx +15 -17
- package/src/Components/Toast/ToastContainer.tsx +72 -54
- package/src/Components/Toast/ToastContext.ts +9 -3
- package/src/Components/Toast/toast.module.scss +65 -0
- package/src/Components/TopBar/MoreButton.tsx +9 -11
- package/src/Components/TopBar/TopBar.stories.tsx +63 -0
- package/src/Components/TopBar/TopBar.tsx +49 -40
- package/src/Components/TopBar/TopBarButton.tsx +20 -10
- package/src/Components/TopBar/{topBar.scss → topBar.module.scss} +40 -23
- package/src/Size.ts +1 -2
- package/src/WrongChildError.ts +1 -1
- package/src/helper/EmptyProps.ts +1 -1
- package/src/helper/nonEmptyString.ts +1 -1
- package/src/helper/useDeepShallow.ts +10 -0
- package/src/helper/withMemo.ts +7 -8
- package/src/helper/withRenderBrowserOnly.tsx +2 -1
- package/src/helper/withRestrictedChildren.tsx +11 -14
- package/src/index.ts +116 -0
- package/src/scss/_colors.scss +32 -19
- package/src/scss/_default.scss +5 -5
- package/src/scss/_flavorMixin.scss +3 -0
- package/src/scss/_variables.scss +19 -19
- package/src/scss/_vars.scss +12 -0
- package/src/scss/baseClasses.module.scss +23 -0
- package/src/scss/breakpoints.scss +79 -0
- package/src/treeshakeTest.ts +3 -0
- package/src/types/{react-table-config.d.ts → reactTableConfig.d.ts} +2 -43
- package/stylelint.config.mjs +4 -0
- package/tsconfig.build.json +7 -0
- package/tsconfig.json +16 -48
- package/webpack.config.ts +6 -0
- package/.eslintrc.json +0 -191
- package/.npnignore +0 -5
- package/LICENSE +0 -21
- package/README.md +0 -1
- package/babel.config.js +0 -22
- package/bin/build.js +0 -60
- package/bin/updateCopies.js +0 -94
- package/bootstrapReactMobile.ts +0 -119
- package/dist/bootstrapReactMobile.d.ts +0 -119
- package/dist/bootstrapReactMobile.js +0 -14043
- package/dist/bootstrapReactMobile.js.map +0 -1
- package/dist/src/Components/Card/Card.d.ts +0 -14
- package/dist/src/Components/Dialog/AlertDialog.d.ts +0 -10
- package/dist/src/Components/Dialog/ConfirmDialog.d.ts +0 -11
- package/dist/src/Components/FormElements/CheckBox/Checkbox.d.ts +0 -14
- package/dist/src/Components/FormElements/Controller/HookForm.d.ts +0 -8
- package/dist/src/Components/FormElements/FormError.d.ts +0 -5
- package/dist/src/Components/FormElements/Input/FileInput/FileInput.d.ts +0 -13
- package/dist/src/Components/FormElements/Input/HiddenInput.d.ts +0 -8
- package/dist/src/Components/Image/Image.d.ts +0 -12
- package/dist/src/Components/Layout/Grow.d.ts +0 -9
- package/dist/src/Components/List/BulletList/BulletList.d.ts +0 -8
- package/dist/src/Components/List/BulletList/ListItem.d.ts +0 -7
- package/dist/src/Components/List/InfiniteList.d.ts +0 -7
- package/dist/src/Components/List/List.d.ts +0 -15
- package/dist/src/Components/LoadingArea/LoadingArea.d.ts +0 -12
- package/dist/src/Components/LoadingCircle/LoadingCircle.d.ts +0 -8
- package/dist/src/Components/SpoilerList/Spoiler/Spoiler.d.ts +0 -18
- package/dist/src/Components/TabBar/TabBarButton.d.ts +0 -9
- package/dist/src/Components/Toast/Toast.d.ts +0 -13
- package/dist/src/Components/TopBar/MoreButton.d.ts +0 -9
- package/dist/src/Components/TopBar/TopBarButton.d.ts +0 -9
- package/dist/src/ListRow/ListRow.d.ts +0 -1
- package/dist/src/StyleProvider.d.ts +0 -2
- package/dist/src/helper/withMemo.d.ts +0 -3
- package/dist/src/helper/withRestrictedChildren.d.ts +0 -6
- package/scripts/getPackageJson.js +0 -25
- package/src/Components/ActionSheet/actionSheet.scss +0 -153
- package/src/Components/Card/card.scss +0 -76
- package/src/Components/Clickable/clickable.scss +0 -8
- package/src/Components/Dialog/dialog.scss +0 -30
- package/src/Components/Dialog/dialogBackground.scss +0 -11
- package/src/Components/FormElements/Button/button.scss +0 -73
- package/src/Components/FormElements/FormError.tsx +0 -29
- package/src/Components/FormElements/Input/input.scss +0 -83
- package/src/Components/FormElements/SearchSelectInput/seachSelectInput.scss +0 -97
- package/src/Components/FormElements/Select/select.scss +0 -61
- package/src/Components/FormElements/Slider/slider.scss +0 -92
- package/src/Components/FormElements/Switch/switch.scss +0 -152
- package/src/Components/FormElements/Textarea/textarea.scss +0 -31
- package/src/Components/FormElements/formError.scss +0 -4
- package/src/Components/Layout/container.scss +0 -12
- package/src/Components/List/BulletList/BulletList.tsx +0 -33
- package/src/Components/List/BulletList/ListItem.tsx +0 -34
- package/src/Components/List/InfiniteList.tsx +0 -56
- package/src/Components/List/List.tsx +0 -95
- package/src/Components/List/list.scss +0 -30
- package/src/Components/TabBar/tabBar.scss +0 -108
- package/src/Components/Toast/toast.scss +0 -55
- package/src/ListRow/ListRow.tsx +0 -20
- package/src/StyleProvider.ts +0 -4
- package/src/scss/_baseClasses.scss +0 -23
- package/src/types/isomorphic-style-loader.d.ts +0 -3
- package/webpack.config.js +0 -95
- /package/dist/{src/Components → Components}/Dialog/useAlertDialog.d.ts +0 -0
- /package/dist/{src/Components → Components}/Dialog/useConfirmDialog.d.ts +0 -0
- /package/dist/{src/Components → Components}/DragAndDrop/useStrictEnabled.d.ts +0 -0
- /package/dist/{src/Components → Components}/Flavor.d.ts +0 -0
- /package/dist/{src/Components → Components}/FormElements/Button/ButtonType.d.ts +0 -0
- /package/dist/{src/Components → Components}/FormElements/ColorInput/sharedSelectedColor.d.ts +0 -0
- /package/dist/{src/Components → Components}/FormElements/Controller/SendFormContext.d.ts +0 -0
- /package/dist/{src/Components → Components}/FormElements/Input/FileInput/FileType.d.ts +0 -0
- /package/dist/{src/Components → Components}/Hooks/useBreakpoint.d.ts +0 -0
- /package/dist/{src/Components → Components}/Hooks/useDebounced.d.ts +0 -0
- /package/dist/{src/Components → Components}/Hooks/useDelayed.d.ts +0 -0
- /package/dist/{src/Components → Components}/Hooks/useDelayedEffect.d.ts +0 -0
- /package/dist/{src/Components → Components}/Hooks/useKeyListener.d.ts +0 -0
- /package/dist/{src/Components → Components}/Hooks/useListener.d.ts +0 -0
- /package/dist/{src/Components → Components}/Hooks/useMousePosition.d.ts +0 -0
- /package/dist/{src/Components → Components}/Hooks/useOnMount.d.ts +0 -0
- /package/dist/{src/Components → Components}/Hooks/useOnce.d.ts +0 -0
- /package/dist/{src/Components → Components}/Hooks/useRerender.d.ts +0 -0
- /package/dist/{src/Components → Components}/Hooks/useWindowDimensions.d.ts +0 -0
- /package/dist/{src/Components → Components}/SpoilerList/useSpoilerGroup.d.ts +0 -0
- /package/dist/{src/Components → Components}/Toast/ToastContext.d.ts +0 -0
- /package/dist/{src/Size.d.ts → Size.d.ts} +0 -0
- /package/dist/{src/TypeHelpers.d.ts → TypeHelpers.d.ts} +0 -0
- /package/dist/{src/WindowContext → WindowContext}/WindowContext.d.ts +0 -0
- /package/dist/{src/WrongChildError.d.ts → WrongChildError.d.ts} +0 -0
- /package/dist/{src/helper → helper}/Characters.d.ts +0 -0
- /package/dist/{src/helper → helper}/DistributiveOmit.d.ts +0 -0
- /package/dist/{src/helper → helper}/EmptyProps.d.ts +0 -0
- /package/dist/{src/helper → helper}/memoComparator.d.ts +0 -0
- /package/dist/{src/helper → helper}/nonEmptyString.d.ts +0 -0
- /package/src/Components/FormElements/Input/PasswordInput/{passwordInput.scss → passwordInput.module.scss} +0 -0
- /package/src/Components/Image/{image.scss → image.module.scss} +0 -0
- /package/src/Components/InViewport/{inViewport.scss → inViewport.module.scss} +0 -0
- /package/src/Components/Layout/{layout.scss → layout.module.scss} +0 -0
- /package/src/Components/Text/{heading.scss → heading.module.scss} +0 -0
- /package/src/types/{scss-module.d.ts → scss.d.ts} +0 -0
|
@@ -1,46 +1,5 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import {
|
|
3
|
-
UseColumnOrderInstanceProps,
|
|
4
|
-
UseColumnOrderState,
|
|
5
|
-
UseExpandedHooks,
|
|
6
|
-
UseExpandedInstanceProps,
|
|
7
|
-
UseExpandedOptions,
|
|
8
|
-
UseExpandedRowProps,
|
|
9
|
-
UseExpandedState,
|
|
10
|
-
UseFiltersColumnOptions,
|
|
11
|
-
UseFiltersColumnProps,
|
|
12
|
-
UseFiltersInstanceProps,
|
|
13
|
-
UseFiltersOptions,
|
|
14
|
-
UseFiltersState,
|
|
15
|
-
UseGlobalFiltersColumnOptions,
|
|
16
|
-
UseGlobalFiltersInstanceProps,
|
|
17
|
-
UseGlobalFiltersOptions,
|
|
18
|
-
UseGlobalFiltersState,
|
|
19
|
-
UseGroupByCellProps,
|
|
20
|
-
UseGroupByColumnOptions,
|
|
21
|
-
UseGroupByColumnProps,
|
|
22
|
-
UseGroupByHooks,
|
|
23
|
-
UseGroupByInstanceProps,
|
|
24
|
-
UseGroupByOptions,
|
|
25
|
-
UseGroupByRowProps,
|
|
26
|
-
UseGroupByState,
|
|
27
|
-
UsePaginationInstanceProps,
|
|
28
|
-
UsePaginationOptions,
|
|
29
|
-
UsePaginationState,
|
|
30
|
-
UseResizeColumnsColumnOptions,
|
|
31
|
-
UseResizeColumnsColumnProps,
|
|
32
|
-
UseResizeColumnsOptions,
|
|
33
|
-
UseResizeColumnsState,
|
|
34
|
-
UseRowSelectHooks,
|
|
35
|
-
UseRowSelectInstanceProps,
|
|
36
|
-
UseRowSelectOptions,
|
|
37
|
-
UseRowSelectRowProps,
|
|
38
|
-
UseRowSelectState,
|
|
39
|
-
UseRowStateCellProps,
|
|
40
|
-
UseRowStateInstanceProps,
|
|
41
|
-
UseRowStateOptions,
|
|
42
|
-
UseRowStateRowProps,
|
|
43
|
-
UseRowStateState,
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
2
|
+
import type {
|
|
44
3
|
UseSortByColumnOptions,
|
|
45
4
|
UseSortByColumnProps,
|
|
46
5
|
UseSortByHooks,
|
package/tsconfig.json
CHANGED
|
@@ -1,56 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "@ainias42/config/tsconfig.json",
|
|
2
3
|
"compilerOptions": {
|
|
4
|
+
"jsx": "react",
|
|
3
5
|
"outDir": "./dist",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"target": "es2015",
|
|
6
|
-
"lib": [
|
|
7
|
-
"es6",
|
|
8
|
-
"es2016",
|
|
9
|
-
"es2017",
|
|
10
|
-
"es2021",
|
|
11
|
-
"dom"
|
|
12
|
-
],
|
|
13
|
-
"sourceMap": true,
|
|
14
|
-
"allowJs": true,
|
|
15
|
-
"jsx": "preserve",
|
|
16
|
-
"baseUrl": "./src",
|
|
17
|
-
"moduleResolution": "node",
|
|
18
|
-
"noImplicitReturns": true,
|
|
19
|
-
"noImplicitThis": true,
|
|
20
|
-
"noImplicitAny": true,
|
|
21
|
-
"resolveJsonModule": true,
|
|
22
|
-
"strictNullChecks": true,
|
|
23
|
-
"esModuleInterop": true,
|
|
24
|
-
"skipLibCheck": true,
|
|
25
|
-
"typeRoots": [
|
|
26
|
-
"node_modules/@types",
|
|
27
|
-
"types"
|
|
28
|
-
],
|
|
29
6
|
"declaration": true,
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
7
|
+
"baseUrl": "./",
|
|
8
|
+
"paths": {
|
|
9
|
+
"@/*": [
|
|
10
|
+
"src/*"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
34
13
|
},
|
|
35
|
-
"include": [
|
|
36
|
-
"src/**/*",
|
|
37
|
-
"dist/bootstrapReactMobile.ts"
|
|
38
|
-
],
|
|
39
14
|
"exclude": [
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
"www",
|
|
49
|
-
"platforms",
|
|
50
|
-
"plugins",
|
|
51
|
-
"webpack.config.js"
|
|
15
|
+
"../../node_modules",
|
|
16
|
+
"dist/**/*",
|
|
17
|
+
"dist/src/**/*"
|
|
18
|
+
],
|
|
19
|
+
"include": [
|
|
20
|
+
"src/**/*.tsx",
|
|
21
|
+
"src/**/*.ts",
|
|
22
|
+
".storybook/**/*.ts"
|
|
52
23
|
]
|
|
53
|
-
// "types": [
|
|
54
|
-
// "typePatches"
|
|
55
|
-
// ]
|
|
56
24
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es6": true
|
|
5
|
-
},
|
|
6
|
-
"extends": [
|
|
7
|
-
"eslint:recommended",
|
|
8
|
-
"plugin:react/recommended",
|
|
9
|
-
"airbnb",
|
|
10
|
-
"plugin:@typescript-eslint/recommended",
|
|
11
|
-
"prettier",
|
|
12
|
-
"prettier/prettier",
|
|
13
|
-
"plugin:import/typescript"
|
|
14
|
-
],
|
|
15
|
-
"parser": "@typescript-eslint/parser",
|
|
16
|
-
"parserOptions": {
|
|
17
|
-
"ecmaFeatures": {
|
|
18
|
-
"experimentalObjectRestSpread": true,
|
|
19
|
-
"jsx": true
|
|
20
|
-
},
|
|
21
|
-
"ecmaVersion": 9,
|
|
22
|
-
"sourceType": "module",
|
|
23
|
-
"project": "./tsconfig.json"
|
|
24
|
-
},
|
|
25
|
-
"plugins": [
|
|
26
|
-
"react",
|
|
27
|
-
"@typescript-eslint",
|
|
28
|
-
"react-hooks"
|
|
29
|
-
],
|
|
30
|
-
"rules": {
|
|
31
|
-
"linebreak-style": [
|
|
32
|
-
"error",
|
|
33
|
-
"unix"
|
|
34
|
-
],
|
|
35
|
-
"semi": [
|
|
36
|
-
"error",
|
|
37
|
-
"always"
|
|
38
|
-
],
|
|
39
|
-
"react/jsx-uses-react": [
|
|
40
|
-
"error"
|
|
41
|
-
],
|
|
42
|
-
"react/jsx-uses-vars": [
|
|
43
|
-
"error"
|
|
44
|
-
],
|
|
45
|
-
"react-hooks/rules-of-hooks": "error",
|
|
46
|
-
// Checks rules of Hooks
|
|
47
|
-
"react-hooks/exhaustive-deps": [
|
|
48
|
-
"warn",
|
|
49
|
-
{
|
|
50
|
-
"additionalHooks": "(useDelayed|useDebounced|useClientLayoutEffect)"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
// Checks effect dependencies
|
|
54
|
-
"react/jsx-filename-extension": [
|
|
55
|
-
"warn",
|
|
56
|
-
{
|
|
57
|
-
"extensions": [
|
|
58
|
-
".tsx"
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"import/extensions": [
|
|
63
|
-
"error",
|
|
64
|
-
"ignorePackages",
|
|
65
|
-
{
|
|
66
|
-
"js": "never",
|
|
67
|
-
"jsx": "never",
|
|
68
|
-
"ts": "never",
|
|
69
|
-
"tsx": "never"
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"no-shadow": "off",
|
|
73
|
-
"@typescript-eslint/no-shadow": [
|
|
74
|
-
"error"
|
|
75
|
-
],
|
|
76
|
-
"lines-between-class-members": [
|
|
77
|
-
"warn",
|
|
78
|
-
"always",
|
|
79
|
-
{
|
|
80
|
-
"exceptAfterSingleLine": true
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"react/sort-comp": [
|
|
84
|
-
"warn",
|
|
85
|
-
{
|
|
86
|
-
"order": [
|
|
87
|
-
"static-variables",
|
|
88
|
-
"instance-variables",
|
|
89
|
-
"static-methods",
|
|
90
|
-
"lifecycle",
|
|
91
|
-
"render",
|
|
92
|
-
"/^render.+$/",
|
|
93
|
-
"instance-methods",
|
|
94
|
-
"everything-else"
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
"no-return-assign": [
|
|
99
|
-
"error",
|
|
100
|
-
"except-parens"
|
|
101
|
-
],
|
|
102
|
-
"import/no-extraneous-dependencies": [
|
|
103
|
-
"error",
|
|
104
|
-
{
|
|
105
|
-
"devDependencies": [
|
|
106
|
-
"**/*",
|
|
107
|
-
"src/pages/!(api)/**/*.tsx",
|
|
108
|
-
"src/pages/**/*.tsx",
|
|
109
|
-
"src/!(pages|models|app)/**/*.(tsx|ts)"
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
"react/destructuring-assignment": [
|
|
114
|
-
"error",
|
|
115
|
-
"always",
|
|
116
|
-
{
|
|
117
|
-
"ignoreClassFields": true
|
|
118
|
-
}
|
|
119
|
-
],
|
|
120
|
-
"react/state-in-constructor": [
|
|
121
|
-
"error",
|
|
122
|
-
"never"
|
|
123
|
-
],
|
|
124
|
-
"@typescript-eslint/no-unused-vars": [
|
|
125
|
-
"error",
|
|
126
|
-
{
|
|
127
|
-
"vars": "all",
|
|
128
|
-
"ignoreRestSiblings": false,
|
|
129
|
-
"argsIgnorePattern": "^_",
|
|
130
|
-
"varsIgnorePattern": "^_"
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"import/no-cycle": [
|
|
134
|
-
"error",
|
|
135
|
-
{
|
|
136
|
-
"maxDepth": 1
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
"no-promise-executor-return": "off",
|
|
140
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
|
141
|
-
"no-console": "off",
|
|
142
|
-
"no-use-before-define": "off",
|
|
143
|
-
"@typescript-eslint/no-use-before-define": "off",
|
|
144
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
145
|
-
"import/order": "off",
|
|
146
|
-
"import/prefer-default-export": "off",
|
|
147
|
-
"react/prop-types": "off",
|
|
148
|
-
"@typescript-eslint/explicit-function-return-type": "off",
|
|
149
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
150
|
-
"react/jsx-props-no-spreading": "off",
|
|
151
|
-
"react/jsx-boolean-value": "off",
|
|
152
|
-
"no-plusplus": "off",
|
|
153
|
-
"no-param-reassign": "off",
|
|
154
|
-
"default-case": "off",
|
|
155
|
-
"jsx-a11y/interactive-supports-focus": "off",
|
|
156
|
-
"jsx-a11y/no-noninteractive-element-interactions": "off",
|
|
157
|
-
"jsx-a11y/click-events-have-key-events": "off",
|
|
158
|
-
"jsx-a11y/no-static-element-interactions": "off",
|
|
159
|
-
"jsx-a11y/label-has-associated-control": "off",
|
|
160
|
-
"react/require-default-props": "off"
|
|
161
|
-
},
|
|
162
|
-
"settings": {
|
|
163
|
-
"react": {
|
|
164
|
-
"version": "detect"
|
|
165
|
-
},
|
|
166
|
-
"import/resolver": {
|
|
167
|
-
"typescript": {
|
|
168
|
-
"extensions": [
|
|
169
|
-
".js",
|
|
170
|
-
".jsx",
|
|
171
|
-
".ts",
|
|
172
|
-
".tsx"
|
|
173
|
-
]
|
|
174
|
-
},
|
|
175
|
-
"node": {
|
|
176
|
-
"extensions": [
|
|
177
|
-
".js",
|
|
178
|
-
".jsx",
|
|
179
|
-
".ts",
|
|
180
|
-
".tsx"
|
|
181
|
-
],
|
|
182
|
-
"moduleDirectory": [
|
|
183
|
-
"node_modules",
|
|
184
|
-
"src/"
|
|
185
|
-
]
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
"globals": {
|
|
190
|
-
}
|
|
191
|
-
}
|
package/.npnignore
DELETED
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Ainias
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# React-Bootstrap-Mobile
|
package/babel.config.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// presets: [
|
|
3
|
-
// '@babel/preset-typescript',
|
|
4
|
-
// '@babel/preset-react',
|
|
5
|
-
// [
|
|
6
|
-
// '@babel/env',
|
|
7
|
-
// {
|
|
8
|
-
// corejs: '3',
|
|
9
|
-
// useBuiltIns: 'entry',
|
|
10
|
-
// targets: {
|
|
11
|
-
// browsers: ['edge >= 16', 'safari >= 9', 'firefox >= 57', 'ie >= 11', 'ios >= 9', 'chrome >= 49'],
|
|
12
|
-
// },
|
|
13
|
-
// },
|
|
14
|
-
// ],
|
|
15
|
-
// ],
|
|
16
|
-
// plugins: [
|
|
17
|
-
// ['styled-jsx/babel'],
|
|
18
|
-
// ['@babel/plugin-proposal-class-properties'],
|
|
19
|
-
// ['@babel/plugin-transform-typescript'],
|
|
20
|
-
// ],
|
|
21
|
-
presets: ['@babel/preset-typescript', '@babel/preset-react'],
|
|
22
|
-
};
|
package/bin/build.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
|
|
4
|
-
const tmpFile = './tmp/script.js';
|
|
5
|
-
|
|
6
|
-
function findNames(dir, excluded) {
|
|
7
|
-
let names = {};
|
|
8
|
-
if (excluded.includes(dir)) {
|
|
9
|
-
return names;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
let files = fs.readdirSync(dir);
|
|
13
|
-
files.forEach((file) => {
|
|
14
|
-
let stats = fs.statSync(dir + file);
|
|
15
|
-
if (stats.isDirectory()) {
|
|
16
|
-
let nameObject = findNames(dir + file + '/', excluded);
|
|
17
|
-
names = Object.assign(names, nameObject);
|
|
18
|
-
} else if (file.endsWith('.d.ts') && !excluded.includes(dir + file)) {
|
|
19
|
-
return;
|
|
20
|
-
} else if (file.endsWith('.ts') && !excluded.includes(dir + file)) {
|
|
21
|
-
names[file.substring(0, file.length - 3)] = dir + file.substring(0, file.length - 3);
|
|
22
|
-
} else if ((file.endsWith('.mjs') || file.endsWith('.tsx')) && !excluded.includes(dir + file)) {
|
|
23
|
-
names[file.substring(0, file.length - 4)] = dir + file.substring(0, file.length - 4);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
return names;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
async function buildEntryPoints(fileOption, target) {
|
|
30
|
-
const cutLengthFront = 0;
|
|
31
|
-
|
|
32
|
-
target = target || tmpFile;
|
|
33
|
-
|
|
34
|
-
const resultDir = path.resolve(process.cwd(), path.dirname(target));
|
|
35
|
-
|
|
36
|
-
let names = {};
|
|
37
|
-
fileOption.input.forEach((dir) => {
|
|
38
|
-
Object.assign(names, findNames(dir + '/', []));
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
let imports = '';
|
|
42
|
-
for (let k in names) {
|
|
43
|
-
imports +=
|
|
44
|
-
"export * from './" +
|
|
45
|
-
path.relative(resultDir, path.resolve(process.cwd(), names[k].substring(cutLengthFront))) +
|
|
46
|
-
"';\n";
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (!fs.existsSync(resultDir)) {
|
|
50
|
-
fs.mkdirSync(resultDir);
|
|
51
|
-
}
|
|
52
|
-
fs.writeFileSync(target, imports);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
buildEntryPoints(
|
|
56
|
-
{
|
|
57
|
-
input: [path.resolve(process.cwd(), 'src/')],
|
|
58
|
-
},
|
|
59
|
-
'./bootstrapReactMobile.ts'
|
|
60
|
-
);
|
package/bin/updateCopies.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const exec = require('child_process').exec;
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
|
|
5
|
-
const packageName = require('../package.json').name;
|
|
6
|
-
|
|
7
|
-
let pathsToProjects = [
|
|
8
|
-
// '/home/silas/Projekte/web/dnd',
|
|
9
|
-
// '/home/silas/Projekte/web/smd-mail',
|
|
10
|
-
// '/home/silas/Projekte/web/games',
|
|
11
|
-
// '/home/silas/Projekte/web/react-windows',
|
|
12
|
-
// '/home/silas/Projekte/web/cordova-sites',
|
|
13
|
-
"/Users/sguenter/Projekte/Privat/games",
|
|
14
|
-
"/Users/sguenter/Projekte/Privat/geo",
|
|
15
|
-
"/Users/sguenter/Projekte/Privat/dnd",
|
|
16
|
-
"/Users/sguenter/Projekte/Privat/TestCapacitorElectron",
|
|
17
|
-
"/Users/sguenter/Projekte/Privat/users-next",
|
|
18
|
-
"/Users/sguenter/Projekte/Privat/dmscreen",
|
|
19
|
-
"/Users/sguenter/Projekte/Privat/bat",
|
|
20
|
-
"/Users/sguenter/Projekte/Privat/react-windows",
|
|
21
|
-
"/Users/sguenter/Projekte/Privat/cordova-sites",
|
|
22
|
-
"/Users/sguenter/Projekte/Privat/libraries",
|
|
23
|
-
"/Users/sguenter/Projekte/Privat/wordRotator"
|
|
24
|
-
|
|
25
|
-
];
|
|
26
|
-
|
|
27
|
-
const deleteFolderRecursive = function (path) {
|
|
28
|
-
if (fs.existsSync(path)) {
|
|
29
|
-
fs.readdirSync(path).forEach(function (file) {
|
|
30
|
-
let curPath = path + '/' + file;
|
|
31
|
-
if (fs.lstatSync(curPath).isDirectory()) {
|
|
32
|
-
// recurse
|
|
33
|
-
deleteFolderRecursive(curPath);
|
|
34
|
-
} else {
|
|
35
|
-
// delete file
|
|
36
|
-
fs.unlinkSync(curPath);
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
fs.rmdirSync(path);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
async function execPromise(command) {
|
|
44
|
-
return new Promise((resolve, reject) => {
|
|
45
|
-
console.log('executing ' + command + '...');
|
|
46
|
-
exec(command, (err, stdout, stderr) => {
|
|
47
|
-
console.log(stdout);
|
|
48
|
-
console.log(stderr);
|
|
49
|
-
if (err) {
|
|
50
|
-
reject([err, stdout, stderr]);
|
|
51
|
-
} else {
|
|
52
|
-
resolve([stdout, stderr]);
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
execPromise('npm pack')
|
|
59
|
-
.then(async (std) => {
|
|
60
|
-
let thisPath = process.cwd();
|
|
61
|
-
let name = std[0].trim();
|
|
62
|
-
let pathToTar = path.resolve(thisPath, name);
|
|
63
|
-
|
|
64
|
-
if (!fs.existsSync('tmp')) {
|
|
65
|
-
fs.mkdirSync('tmp');
|
|
66
|
-
}
|
|
67
|
-
process.chdir('tmp');
|
|
68
|
-
await execPromise('tar -xvzf ' + pathToTar + ' -C ./');
|
|
69
|
-
process.chdir('package');
|
|
70
|
-
// fs.unlinkSync('package.json');
|
|
71
|
-
|
|
72
|
-
let promise = Promise.resolve();
|
|
73
|
-
pathsToProjects.forEach((project) => {
|
|
74
|
-
promise = promise.then(async () => {
|
|
75
|
-
let resultDir = path.resolve(project, 'node_modules', packageName);
|
|
76
|
-
console.log(resultDir, fs.existsSync(resultDir));
|
|
77
|
-
if (!fs.existsSync(resultDir)) {
|
|
78
|
-
fs.mkdirSync(resultDir);
|
|
79
|
-
}
|
|
80
|
-
return execPromise('cp -r ./* ' + resultDir);
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
await promise;
|
|
84
|
-
|
|
85
|
-
process.chdir(thisPath);
|
|
86
|
-
fs.unlinkSync(name);
|
|
87
|
-
deleteFolderRecursive('tmp');
|
|
88
|
-
// fs.unlinkSync("tmp");
|
|
89
|
-
|
|
90
|
-
console.log('done!');
|
|
91
|
-
})
|
|
92
|
-
.catch((e) => {
|
|
93
|
-
console.error(e);
|
|
94
|
-
});
|
package/bootstrapReactMobile.ts
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
export * from './src/Components/ActionSheet/ActionSheet';
|
|
2
|
-
export * from './src/Components/Card/Card';
|
|
3
|
-
export * from './src/Components/Clickable/Clickable';
|
|
4
|
-
export * from './src/Components/Dialog/AlertDialog';
|
|
5
|
-
export * from './src/Components/Dialog/ButtonDialog';
|
|
6
|
-
export * from './src/Components/Dialog/ConfirmDialog';
|
|
7
|
-
export * from './src/Components/Dialog/Dialog';
|
|
8
|
-
export * from './src/Components/Dialog/DialogBackground';
|
|
9
|
-
export * from './src/Components/Dialog/DialogContainer';
|
|
10
|
-
export * from './src/Components/Dialog/DialogContext';
|
|
11
|
-
export * from './src/Components/Dialog/useAlertDialog';
|
|
12
|
-
export * from './src/Components/Dialog/useConfirmDialog';
|
|
13
|
-
export * from './src/Components/DragAndDrop/DragItem';
|
|
14
|
-
export * from './src/Components/DragAndDrop/DropArea';
|
|
15
|
-
export * from './src/Components/DragAndDrop/useStrictEnabled';
|
|
16
|
-
export * from './src/Components/Flavor';
|
|
17
|
-
export * from './src/Components/FormElements/Button/Button';
|
|
18
|
-
export * from './src/Components/FormElements/Button/ButtonType';
|
|
19
|
-
export * from './src/Components/FormElements/CheckBox/Checkbox';
|
|
20
|
-
export * from './src/Components/FormElements/ColorInput/ColorInput';
|
|
21
|
-
export * from './src/Components/FormElements/ColorInput/sharedSelectedColor';
|
|
22
|
-
export * from './src/Components/FormElements/Controller/ColorInputController';
|
|
23
|
-
export * from './src/Components/FormElements/Controller/FileInputController';
|
|
24
|
-
export * from './src/Components/FormElements/Controller/HookForm';
|
|
25
|
-
export * from './src/Components/FormElements/Controller/InputController';
|
|
26
|
-
export * from './src/Components/FormElements/Controller/MultipleFileInputController';
|
|
27
|
-
export * from './src/Components/FormElements/Controller/PasswordInputController';
|
|
28
|
-
export * from './src/Components/FormElements/Controller/SelectController';
|
|
29
|
-
export * from './src/Components/FormElements/Controller/SendFormContext';
|
|
30
|
-
export * from './src/Components/FormElements/Controller/SwitchController';
|
|
31
|
-
export * from './src/Components/FormElements/Controller/TextareaController';
|
|
32
|
-
export * from './src/Components/FormElements/Controller/useYupResolver';
|
|
33
|
-
export * from './src/Components/FormElements/Controller/withHookController';
|
|
34
|
-
export * from './src/Components/FormElements/FormError';
|
|
35
|
-
export * from './src/Components/FormElements/Input/FileInput/FileInput';
|
|
36
|
-
export * from './src/Components/FormElements/Input/FileInput/FileType';
|
|
37
|
-
export * from './src/Components/FormElements/Input/FileInput/MultipleFileInput';
|
|
38
|
-
export * from './src/Components/FormElements/Input/HiddenInput';
|
|
39
|
-
export * from './src/Components/FormElements/Input/Input';
|
|
40
|
-
export * from './src/Components/FormElements/Input/PasswordInput/PasswordInput';
|
|
41
|
-
export * from './src/Components/FormElements/SearchSelectInput/SearchSelectInput';
|
|
42
|
-
export * from './src/Components/FormElements/Select/Select';
|
|
43
|
-
export * from './src/Components/FormElements/Slider/Slider';
|
|
44
|
-
export * from './src/Components/FormElements/Switch/Switch';
|
|
45
|
-
export * from './src/Components/FormElements/Textarea/Textarea';
|
|
46
|
-
export * from './src/Components/FormElements/hooks/useOnChangeDone';
|
|
47
|
-
export * from './src/Components/FullScreen/FullScreen';
|
|
48
|
-
export * from './src/Components/Hooks/useBreakpoint';
|
|
49
|
-
export * from './src/Components/Hooks/useClientLayoutEffect';
|
|
50
|
-
export * from './src/Components/Hooks/useComposedRef';
|
|
51
|
-
export * from './src/Components/Hooks/useDebounced';
|
|
52
|
-
export * from './src/Components/Hooks/useDelayed';
|
|
53
|
-
export * from './src/Components/Hooks/useDelayedEffect';
|
|
54
|
-
export * from './src/Components/Hooks/useDelayedState';
|
|
55
|
-
export * from './src/Components/Hooks/useInViewport';
|
|
56
|
-
export * from './src/Components/Hooks/useKeyListener';
|
|
57
|
-
export * from './src/Components/Hooks/useListener';
|
|
58
|
-
export * from './src/Components/Hooks/useMousePosition';
|
|
59
|
-
export * from './src/Components/Hooks/useOnMount';
|
|
60
|
-
export * from './src/Components/Hooks/useOnce';
|
|
61
|
-
export * from './src/Components/Hooks/useRerender';
|
|
62
|
-
export * from './src/Components/Hooks/useWindowDimensions';
|
|
63
|
-
export * from './src/Components/Icon/DoubleIcon';
|
|
64
|
-
export * from './src/Components/Icon/Icon';
|
|
65
|
-
export * from './src/Components/Image/Image';
|
|
66
|
-
export * from './src/Components/InViewport/InViewport';
|
|
67
|
-
export * from './src/Components/Layout/Block';
|
|
68
|
-
export * from './src/Components/Layout/Container';
|
|
69
|
-
export * from './src/Components/Layout/Flex';
|
|
70
|
-
export * from './src/Components/Layout/Grid/Grid';
|
|
71
|
-
export * from './src/Components/Layout/Grid/GridItem';
|
|
72
|
-
export * from './src/Components/Layout/Grow';
|
|
73
|
-
export * from './src/Components/Layout/Inline';
|
|
74
|
-
export * from './src/Components/Layout/InlineBlock';
|
|
75
|
-
export * from './src/Components/Layout/View';
|
|
76
|
-
export * from './src/Components/Layout/ViewWithoutListeners';
|
|
77
|
-
export * from './src/Components/List/BulletList/BulletList';
|
|
78
|
-
export * from './src/Components/List/BulletList/ListItem';
|
|
79
|
-
export * from './src/Components/List/InfiniteList';
|
|
80
|
-
export * from './src/Components/List/List';
|
|
81
|
-
export * from './src/Components/LoadingArea/LoadingArea';
|
|
82
|
-
export * from './src/Components/LoadingCircle/LoadingCircle';
|
|
83
|
-
export * from './src/Components/Menu/HoverMenu';
|
|
84
|
-
export * from './src/Components/Menu/Menu';
|
|
85
|
-
export * from './src/Components/Menu/MenuCloseContext';
|
|
86
|
-
export * from './src/Components/Menu/MenuDivider';
|
|
87
|
-
export * from './src/Components/Menu/MenuItem';
|
|
88
|
-
export * from './src/Components/Menu/Submenu';
|
|
89
|
-
export * from './src/Components/Menu/useMenu';
|
|
90
|
-
export * from './src/Components/RbmComponentProps';
|
|
91
|
-
export * from './src/Components/SizeCalculator/SizeCalculator';
|
|
92
|
-
export * from './src/Components/SpoilerList/Spoiler/Spoiler';
|
|
93
|
-
export * from './src/Components/SpoilerList/SpoilerList';
|
|
94
|
-
export * from './src/Components/SpoilerList/useSpoilerGroup';
|
|
95
|
-
export * from './src/Components/TabBar/TabBar';
|
|
96
|
-
export * from './src/Components/TabBar/TabBarButton';
|
|
97
|
-
export * from './src/Components/Table/Table';
|
|
98
|
-
export * from './src/Components/Text/Heading';
|
|
99
|
-
export * from './src/Components/Text/Text';
|
|
100
|
-
export * from './src/Components/Toast/Toast';
|
|
101
|
-
export * from './src/Components/Toast/ToastContainer';
|
|
102
|
-
export * from './src/Components/Toast/ToastContext';
|
|
103
|
-
export * from './src/Components/TopBar/MoreButton';
|
|
104
|
-
export * from './src/Components/TopBar/TopBar';
|
|
105
|
-
export * from './src/Components/TopBar/TopBarButton';
|
|
106
|
-
export * from './src/ListRow/ListRow';
|
|
107
|
-
export * from './src/Size';
|
|
108
|
-
export * from './src/StyleProvider';
|
|
109
|
-
export * from './src/TypeHelpers';
|
|
110
|
-
export * from './src/WindowContext/WindowContext';
|
|
111
|
-
export * from './src/WrongChildError';
|
|
112
|
-
export * from './src/helper/Characters';
|
|
113
|
-
export * from './src/helper/DistributiveOmit';
|
|
114
|
-
export * from './src/helper/EmptyProps';
|
|
115
|
-
export * from './src/helper/memoComparator';
|
|
116
|
-
export * from './src/helper/nonEmptyString';
|
|
117
|
-
export * from './src/helper/withMemo';
|
|
118
|
-
export * from './src/helper/withRenderBrowserOnly';
|
|
119
|
-
export * from './src/helper/withRestrictedChildren';
|