@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,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../RbmComponentProps';
|
|
3
|
-
import { ReactElement } from 'react';
|
|
4
|
-
export type CardProps = RbmComponentProps<{
|
|
5
|
-
title?: string | ReactElement;
|
|
6
|
-
fullHeight?: boolean;
|
|
7
|
-
noPaddingHeight?: boolean;
|
|
8
|
-
noPaddingWidth?: boolean;
|
|
9
|
-
noPadding?: boolean;
|
|
10
|
-
noMargin?: boolean;
|
|
11
|
-
}>;
|
|
12
|
-
declare function Card({ title, children, fullHeight, noPaddingHeight, noPadding, noPaddingWidth, noMargin, className, ...rbmProps }: CardProps): React.JSX.Element;
|
|
13
|
-
declare const CardMemo: typeof Card;
|
|
14
|
-
export { CardMemo as Card };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type AlertDialogProps = {
|
|
3
|
-
title?: string;
|
|
4
|
-
message: string;
|
|
5
|
-
close: () => void;
|
|
6
|
-
confirmText?: string;
|
|
7
|
-
};
|
|
8
|
-
declare function AlertDialog({ title, message, close, confirmText }: AlertDialogProps): React.JSX.Element;
|
|
9
|
-
declare const AlertDialogMemo: typeof AlertDialog;
|
|
10
|
-
export { AlertDialogMemo as AlertDialog };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type ConfirmDialogProps = {
|
|
3
|
-
title?: string;
|
|
4
|
-
message: string;
|
|
5
|
-
close: (confirmed: boolean) => void;
|
|
6
|
-
cancelText?: string;
|
|
7
|
-
confirmText?: string;
|
|
8
|
-
};
|
|
9
|
-
declare function ConfirmDialog({ title, message, close, cancelText, confirmText }: ConfirmDialogProps): React.JSX.Element;
|
|
10
|
-
declare const ConfirmDialogMemo: typeof ConfirmDialog;
|
|
11
|
-
export { ConfirmDialogMemo as ConfirmDialog };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../../RbmComponentProps';
|
|
3
|
-
import { InputHTMLAttributes } from 'react';
|
|
4
|
-
import { Override } from '@ainias42/js-helper';
|
|
5
|
-
import { OptionalListener } from '../../Hooks/useListener';
|
|
6
|
-
export type CheckboxProps<OnChangeData, OnChangeCheckedData> = RbmComponentProps<Override<InputHTMLAttributes<HTMLInputElement>, {
|
|
7
|
-
label?: string;
|
|
8
|
-
children?: string;
|
|
9
|
-
isLabelBeforeCheckbox?: boolean;
|
|
10
|
-
error?: string;
|
|
11
|
-
} & OptionalListener<'onChange', OnChangeData> & OptionalListener<'onChangeChecked', OnChangeCheckedData, boolean>>>;
|
|
12
|
-
declare function Checkbox<OnChangeData, OnChangeCheckedData>({ children, label, isLabelBeforeCheckbox, id, className, error, style, ...props }: CheckboxProps<OnChangeData, OnChangeCheckedData>): React.JSX.Element;
|
|
13
|
-
declare const tmp: typeof Checkbox;
|
|
14
|
-
export { tmp as Checkbox };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormProviderProps } from "react-hook-form";
|
|
3
|
-
type FieldValues = Record<string, any>;
|
|
4
|
-
export type HookFormProps<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined> = FormProviderProps<TFieldValues, TContext, TTransformedValues> & {
|
|
5
|
-
onSend?: () => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const HookForm: <TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>({ children, onSend, ...methods }: HookFormProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../../../RbmComponentProps';
|
|
3
|
-
import { Override } from '../../../../TypeHelpers';
|
|
4
|
-
import { Listener } from '../../../Hooks/useListener';
|
|
5
|
-
import { FileType } from "./FileType";
|
|
6
|
-
import { MultipleFileInputProps } from "./MultipleFileInput";
|
|
7
|
-
export type FileInputProps<OnChangeFileData> = RbmComponentProps<Override<Omit<MultipleFileInputProps<unknown>, "onChangeFiles" | "maxFiles" | "onChangeFilesData" | "mimeTypes" | "showDeleteButton">, {
|
|
8
|
-
value?: FileType;
|
|
9
|
-
mimeType?: string | string[];
|
|
10
|
-
required?: boolean;
|
|
11
|
-
"data-test-id"?: string;
|
|
12
|
-
} & Listener<'onChangeFile', OnChangeFileData, FileType | undefined>>>;
|
|
13
|
-
export declare const FileInput: <OnChangeData>({ value, mimeType, required, ...otherProps }: FileInputProps<OnChangeData>) => React.JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { InputProps } from './Input';
|
|
3
|
-
export type HiddenInputProps<OnChangeType, OnBlurData, OnChangeEndData> = InputProps<OnChangeType, OnBlurData, OnChangeEndData> & {
|
|
4
|
-
noFocusHint?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare function HiddenInput<OnChangeData, OnBlurData, OnChangeEndData>({ noFocusHint, className, ...props }: HiddenInputProps<OnChangeData, OnBlurData, OnChangeEndData>): React.JSX.Element;
|
|
7
|
-
declare const tmp: typeof HiddenInput;
|
|
8
|
-
export { tmp as HiddenInput };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps, WithNoChildren } from '../RbmComponentProps';
|
|
3
|
-
import { CSSProperties } from 'react';
|
|
4
|
-
import { Override } from '../../TypeHelpers';
|
|
5
|
-
export type ImageProps = RbmComponentProps<Override<React.ComponentPropsWithoutRef<'img'>, {
|
|
6
|
-
src: string;
|
|
7
|
-
style?: CSSProperties;
|
|
8
|
-
alt?: string;
|
|
9
|
-
}>, WithNoChildren>;
|
|
10
|
-
declare function Image({ src, alt, className, style, ...otherProps }: ImageProps): React.JSX.Element;
|
|
11
|
-
declare const ImageMemo: typeof Image;
|
|
12
|
-
export { ImageMemo as Image };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../RbmComponentProps';
|
|
3
|
-
import { ForwardedRef } from "react";
|
|
4
|
-
export type GrowProps = RbmComponentProps<{
|
|
5
|
-
center?: boolean;
|
|
6
|
-
weight?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
7
|
-
ref?: ForwardedRef<HTMLDivElement>;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const Grow: ({ className, children, center, style, weight, ref }: GrowProps) => React.JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../../RbmComponentProps';
|
|
3
|
-
export type BulletListProps = RbmComponentProps<{
|
|
4
|
-
numbered?: boolean;
|
|
5
|
-
}>;
|
|
6
|
-
declare function BulletList({ numbered, className, children, style }: BulletListProps): React.JSX.Element;
|
|
7
|
-
declare const BulletListMemo: typeof BulletList;
|
|
8
|
-
export { BulletListMemo as BulletList };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../../RbmComponentProps';
|
|
3
|
-
import { EmptyProps } from '../../../helper/EmptyProps';
|
|
4
|
-
export type ListItemProps = RbmComponentProps<EmptyProps>;
|
|
5
|
-
declare function ListItem({ className, children, style }: ListItemProps): React.JSX.Element;
|
|
6
|
-
declare const ListItemMemo: typeof ListItem;
|
|
7
|
-
export { ListItemMemo as ListItem };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ListProps } from "./List";
|
|
3
|
-
export type InfiniteListProps<ItemType> = ListProps<ItemType> & {
|
|
4
|
-
hasNextPage: boolean;
|
|
5
|
-
loadNextPage: () => unknown | Promise<unknown>;
|
|
6
|
-
};
|
|
7
|
-
export declare const InfiniteList: <ItemType>({ renderItem, itemHeight, items, renderBefore, keyExtractor, hasNextPage, loadNextPage, style, className }: InfiniteListProps<ItemType>) => React.JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { CSSProperties, ForwardedRef, ReactElement, ReactNode } from 'react';
|
|
3
|
-
import { RbmComponentProps } from '../RbmComponentProps';
|
|
4
|
-
import { FixedSizeList, FixedSizeListProps } from 'react-window';
|
|
5
|
-
export type ListProps<ItemType> = RbmComponentProps<{
|
|
6
|
-
renderItem: (item: ItemType, style: CSSProperties, index: number) => ReactElement;
|
|
7
|
-
itemHeight?: number;
|
|
8
|
-
items: ItemType[];
|
|
9
|
-
renderBefore?: (item: ItemType, index: number) => ReactNode;
|
|
10
|
-
keyExtractor?: (item: ItemType, index: number) => string;
|
|
11
|
-
onItemsRendered?: FixedSizeListProps<ItemType>['onItemsRendered'];
|
|
12
|
-
autoSizeClassName?: string;
|
|
13
|
-
ref?: ForwardedRef<FixedSizeList<ItemType>>;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const List: <ItemType>({ items, renderItem, itemHeight: initialItemHeight, className, style, onItemsRendered, autoSizeClassName, ref, }: ListProps<ItemType>) => React.JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../RbmComponentProps';
|
|
3
|
-
export type LoadingAreaProps = RbmComponentProps<{
|
|
4
|
-
opacity?: number;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
fullWidth?: boolean;
|
|
7
|
-
fullHeight?: boolean;
|
|
8
|
-
fullSize?: boolean;
|
|
9
|
-
}>;
|
|
10
|
-
declare function LoadingArea({ loading, fullWidth, fullSize, fullHeight, opacity, className, style, children, }: LoadingAreaProps): React.JSX.Element;
|
|
11
|
-
declare const LoadingAreaMemo: typeof LoadingArea;
|
|
12
|
-
export { LoadingAreaMemo as LoadingArea };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../RbmComponentProps';
|
|
3
|
-
export type LoadingCircleProps = RbmComponentProps<{
|
|
4
|
-
size?: number;
|
|
5
|
-
}>;
|
|
6
|
-
declare function LoadingCircle({ size, className, style }: LoadingCircleProps): React.JSX.Element;
|
|
7
|
-
declare const LoadingCircleMemo: typeof LoadingCircle;
|
|
8
|
-
export { LoadingCircleMemo as LoadingCircle };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../../RbmComponentProps';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { OptionalListener } from '../../Hooks/useListener';
|
|
5
|
-
import { IconSource } from '../../Icon/Icon';
|
|
6
|
-
export type SpoilerProps<OnClickData> = RbmComponentProps<{
|
|
7
|
-
title: ReactNode;
|
|
8
|
-
initialOpen?: boolean;
|
|
9
|
-
open?: boolean;
|
|
10
|
-
onlyTitleToggles?: boolean;
|
|
11
|
-
noClosingAnimation?: boolean;
|
|
12
|
-
noAnimation?: boolean;
|
|
13
|
-
openIcon?: IconSource | null;
|
|
14
|
-
closeIcon?: IconSource | null;
|
|
15
|
-
} & OptionalListener<'onClick', OnClickData>>;
|
|
16
|
-
declare function Spoiler<OnClickData>({ title, children, initialOpen, noClosingAnimation, noAnimation, openIcon, closeIcon, className, onlyTitleToggles, style, open, ...listenerProps }: SpoilerProps<OnClickData>): React.JSX.Element;
|
|
17
|
-
declare const SpoilerMemo: typeof Spoiler;
|
|
18
|
-
export { SpoilerMemo as Spoiler };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../RbmComponentProps';
|
|
3
|
-
import { Listener } from '../Hooks/useListener';
|
|
4
|
-
export type TabBarButtonProps = RbmComponentProps<{
|
|
5
|
-
active: boolean;
|
|
6
|
-
} & Listener<'onClick', number>>;
|
|
7
|
-
declare function TabBarButton({ active, className, children, ...rbmProps }: TabBarButtonProps): React.JSX.Element;
|
|
8
|
-
declare const TabBarButtonMemo: typeof TabBarButton;
|
|
9
|
-
export { TabBarButtonMemo as TabBarButton };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps, WithNoStringAndChildrenProps } from '../RbmComponentProps';
|
|
3
|
-
import { Listener, OptionalListener } from '../Hooks/useListener';
|
|
4
|
-
type WithoutActionProps<DismissedData> = {
|
|
5
|
-
timeToShow?: number;
|
|
6
|
-
} & OptionalListener<'onDismissed', DismissedData>;
|
|
7
|
-
type WithActionProps<ActionData, DismissedData> = WithoutActionProps<DismissedData> & {
|
|
8
|
-
actionName: string;
|
|
9
|
-
} & Listener<'onClick', ActionData>;
|
|
10
|
-
export type ToastProps<ActionData, DismissedData> = RbmComponentProps<WithActionProps<ActionData, DismissedData> | WithoutActionProps<DismissedData>, WithNoStringAndChildrenProps>;
|
|
11
|
-
declare function Toast<ActionData, DismissedData>({ className, timeToShow, children, style, ...otherProps }: ToastProps<ActionData, DismissedData>): React.JSX.Element | null;
|
|
12
|
-
declare const ToastMemo: typeof Toast;
|
|
13
|
-
export { ToastMemo as Toast };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../RbmComponentProps';
|
|
3
|
-
export type MoreButtonProps = RbmComponentProps<{
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
}>;
|
|
7
|
-
declare function MoreButton({ onClick, disabled, className, style }: MoreButtonProps): React.JSX.Element;
|
|
8
|
-
declare const MoreButtonMemo: typeof MoreButton;
|
|
9
|
-
export { MoreButtonMemo as MoreButton };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../RbmComponentProps';
|
|
3
|
-
export type TopBarButtonProps = RbmComponentProps<{
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
}>;
|
|
7
|
-
declare function TopBarButton({ disabled, onClick, className, children, ...rbmProps }: TopBarButtonProps): React.JSX.Element;
|
|
8
|
-
declare const TopBarButtonMemo: typeof TopBarButton;
|
|
9
|
-
export { TopBarButtonMemo as TopBarButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ListRow: () => null;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React, { ComponentType, ForwardedRef, ReactElement } from 'react';
|
|
2
|
-
import { RbmComponentProps } from '../Components/RbmComponentProps';
|
|
3
|
-
export declare const RESTRICT_CHILDREN: {
|
|
4
|
-
allowChildren: undefined | "all" | "html" | "text";
|
|
5
|
-
};
|
|
6
|
-
export declare function withRestrictedChildren<C extends ComponentType<RbmComponentProps<Record<string, any>>>>(Component: C, defaultAllowChildren?: typeof RESTRICT_CHILDREN['allowChildren']): (props: React.ComponentProps<C>, ref: ForwardedRef<React.ComponentRef<C>>) => ReactElement;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A module to get package informations from package.json
|
|
6
|
-
* @module getPackageJson
|
|
7
|
-
* @param {...string} keys from package.json if no arguments passed it returns package.json content as object
|
|
8
|
-
* @returns {object} with given keys or content of package.json as object
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Returns package info
|
|
13
|
-
*/
|
|
14
|
-
const getPackageJson = function (...args) {
|
|
15
|
-
const packageJSON = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json')));
|
|
16
|
-
if (!args.length) {
|
|
17
|
-
return packageJSON;
|
|
18
|
-
}
|
|
19
|
-
return args.reduce((out, key) => {
|
|
20
|
-
out[key] = packageJSON[key];
|
|
21
|
-
return out;
|
|
22
|
-
}, {});
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
module.exports = getPackageJson;
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
@import "../../scss/variables";
|
|
2
|
-
@import "../../scss/designMixin";
|
|
3
|
-
|
|
4
|
-
$zIndexActionSheet: 10000;
|
|
5
|
-
|
|
6
|
-
.actionSheet {
|
|
7
|
-
position: fixed;
|
|
8
|
-
top: 100%;
|
|
9
|
-
left: 0;
|
|
10
|
-
right: 0;
|
|
11
|
-
bottom: 0;
|
|
12
|
-
background-color: rgba(0, 0, 0, 0.1);
|
|
13
|
-
z-index: $zIndexActionSheet;
|
|
14
|
-
|
|
15
|
-
transition-duration: 0s;
|
|
16
|
-
transition-delay: 0.25s;
|
|
17
|
-
|
|
18
|
-
&.open {
|
|
19
|
-
transition-delay: 0s;
|
|
20
|
-
top: 0;
|
|
21
|
-
|
|
22
|
-
> :global(.full-height) {;
|
|
23
|
-
top: 0
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
> :global(.full-height) {
|
|
28
|
-
position: absolute;
|
|
29
|
-
left: 0;
|
|
30
|
-
right: 0;
|
|
31
|
-
bottom: 0;
|
|
32
|
-
top: 100%;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.content {
|
|
36
|
-
bottom: 0;
|
|
37
|
-
height: 100%;
|
|
38
|
-
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
justify-content: end;
|
|
42
|
-
|
|
43
|
-
.action {
|
|
44
|
-
height: 56px;
|
|
45
|
-
width: 100%;
|
|
46
|
-
font-size: 20px;
|
|
47
|
-
background-color: #ffffff;
|
|
48
|
-
border-radius: 0;
|
|
49
|
-
line-height: 56px;
|
|
50
|
-
display: block;
|
|
51
|
-
text-overflow: ellipsis;
|
|
52
|
-
overflow: hidden;
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.cancel {
|
|
57
|
-
height: 56px;
|
|
58
|
-
width: 100%;
|
|
59
|
-
font-size: 20px;
|
|
60
|
-
background-color: #ffffff;
|
|
61
|
-
line-height: 56px;
|
|
62
|
-
display: block;
|
|
63
|
-
text-overflow: ellipsis;
|
|
64
|
-
overflow: hidden;
|
|
65
|
-
white-space: nowrap;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@include design($material) {
|
|
70
|
-
> .full-height {
|
|
71
|
-
padding: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.content {
|
|
75
|
-
text-align: left;
|
|
76
|
-
|
|
77
|
-
.action {
|
|
78
|
-
padding: 0 0 0 16px;
|
|
79
|
-
color: #686868;
|
|
80
|
-
|
|
81
|
-
.actionIcon {
|
|
82
|
-
display: inline-block;
|
|
83
|
-
float: left;
|
|
84
|
-
margin-right: 32px;
|
|
85
|
-
font-size: 26px;
|
|
86
|
-
text-align: center;
|
|
87
|
-
width: 0.8em;
|
|
88
|
-
height: 56px;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.cancel {
|
|
93
|
-
padding: 0 0 0 16px;
|
|
94
|
-
color: #686868;
|
|
95
|
-
|
|
96
|
-
.actionIcon {
|
|
97
|
-
display: inline-block;
|
|
98
|
-
float: left;
|
|
99
|
-
margin-right: 32px;
|
|
100
|
-
font-size: 1rem;
|
|
101
|
-
text-align: center;
|
|
102
|
-
width: 0.8em;
|
|
103
|
-
height: 56px;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@include design($flat) {
|
|
110
|
-
.content {
|
|
111
|
-
|
|
112
|
-
text-align: center;
|
|
113
|
-
|
|
114
|
-
padding-right: 10px;
|
|
115
|
-
padding-left: 10px;
|
|
116
|
-
padding-bottom: 10px;
|
|
117
|
-
|
|
118
|
-
.action {
|
|
119
|
-
color: var(--flavor-accent);
|
|
120
|
-
|
|
121
|
-
background-size: 100% 1px;
|
|
122
|
-
background-repeat: no-repeat;
|
|
123
|
-
background-position: bottom;
|
|
124
|
-
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) 100%);
|
|
125
|
-
|
|
126
|
-
&:first-child {
|
|
127
|
-
border-top-right-radius: 12px;
|
|
128
|
-
border-top-left-radius: 12px;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&:nth-last-child(2) {
|
|
132
|
-
border-bottom-right-radius: 12px;
|
|
133
|
-
border-bottom-left-radius: 12px;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.actionIcon {
|
|
137
|
-
display: none;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.cancel {
|
|
142
|
-
color: var(--flavor-accent);
|
|
143
|
-
|
|
144
|
-
border-radius: 12px;
|
|
145
|
-
margin: 8px 0 0 0;
|
|
146
|
-
|
|
147
|
-
.actionIcon {
|
|
148
|
-
display: none;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
@import "../../scss/variables";
|
|
2
|
-
@import "../../scss/designMixin";
|
|
3
|
-
|
|
4
|
-
$marginCard: 8px;
|
|
5
|
-
|
|
6
|
-
.card {
|
|
7
|
-
margin: $marginCard;
|
|
8
|
-
padding: 16px;
|
|
9
|
-
word-wrap: break-word;
|
|
10
|
-
background-color: #ffffff;
|
|
11
|
-
|
|
12
|
-
&.fullHeight {
|
|
13
|
-
height: calc(100% - #{2*$marginCard})
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.noPaddingHeight {
|
|
17
|
-
padding-top: 0;
|
|
18
|
-
padding-bottom: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&.noPaddingWidth {
|
|
22
|
-
padding-left: 0;
|
|
23
|
-
padding-right: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.noPadding {
|
|
27
|
-
padding: 0
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.noMargin {
|
|
31
|
-
margin: 0;
|
|
32
|
-
|
|
33
|
-
&.fullHeight {
|
|
34
|
-
height: 100%
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.content {
|
|
39
|
-
font-size: $fontSizeBase;
|
|
40
|
-
margin: 0;
|
|
41
|
-
line-height: 1.4;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.title {
|
|
45
|
-
padding: 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@include design($material) {
|
|
49
|
-
border-radius: 2px;
|
|
50
|
-
box-shadow: $boxShadowMaterial;
|
|
51
|
-
|
|
52
|
-
.content {
|
|
53
|
-
color: #000000;
|
|
54
|
-
color: var(--card-text-color, rgba(0, 0, 0, 0.54));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.title {
|
|
58
|
-
margin: 8px 0 12px 0;
|
|
59
|
-
font-size: 24px;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@include design($flat) {
|
|
64
|
-
border-radius: 8px;
|
|
65
|
-
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 12%);
|
|
66
|
-
|
|
67
|
-
.content {
|
|
68
|
-
color: var(--card-text-color, #030303);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.title {
|
|
72
|
-
margin: 4px 0 8px 0;
|
|
73
|
-
font-size: 20px;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
@import "../../scss/variables";
|
|
2
|
-
@import "../../scss/designMixin";
|
|
3
|
-
|
|
4
|
-
.dialogContainer {
|
|
5
|
-
position: fixed;
|
|
6
|
-
left: 0;
|
|
7
|
-
right: 0;
|
|
8
|
-
bottom: 0;
|
|
9
|
-
top: 0;
|
|
10
|
-
margin: auto;
|
|
11
|
-
z-index: 1001;
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
17
|
-
|
|
18
|
-
.closeCurtain {
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: 0;
|
|
21
|
-
left: 0;
|
|
22
|
-
right: 0;
|
|
23
|
-
bottom: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.dialog {
|
|
27
|
-
max-width: map-get($grid-breakpoints, "xxl");
|
|
28
|
-
z-index: 1;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
@import "../../../scss/variables";
|
|
2
|
-
@import "../../../scss/designMixin";
|
|
3
|
-
@import "../../../scss/flavorMixin";
|
|
4
|
-
|
|
5
|
-
.button {
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
margin: 0;
|
|
8
|
-
user-select: none;
|
|
9
|
-
text-overflow: ellipsis;
|
|
10
|
-
white-space: nowrap;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
text-decoration: none;
|
|
13
|
-
letter-spacing: 0;
|
|
14
|
-
vertical-align: middle;
|
|
15
|
-
border-radius: 3px;
|
|
16
|
-
transition: none;
|
|
17
|
-
|
|
18
|
-
@include flavorSelection(--button-color);
|
|
19
|
-
|
|
20
|
-
@include design($material) {
|
|
21
|
-
box-shadow: $boxShadowMaterial;
|
|
22
|
-
min-height: 40px;
|
|
23
|
-
line-height: 40px;
|
|
24
|
-
padding: 0 16px;
|
|
25
|
-
text-align: center;
|
|
26
|
-
font-size: 14px;
|
|
27
|
-
text-transform: uppercase;
|
|
28
|
-
font-weight: 500;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@include design($flat) {
|
|
32
|
-
line-height: 32px;
|
|
33
|
-
padding: 4px 18px;
|
|
34
|
-
font-size: 17px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&.primary {
|
|
38
|
-
background-color: var(--button-color);
|
|
39
|
-
border: 0 solid currentColor;
|
|
40
|
-
color: white;
|
|
41
|
-
--text-primary-default-color: white;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.secondary {
|
|
45
|
-
background-color: transparent;
|
|
46
|
-
border: 1px solid var(--button-color);
|
|
47
|
-
color: var(--button-color);
|
|
48
|
-
--text-primary-default-color: var(--button-color);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.disabled {
|
|
52
|
-
opacity: 0.3;
|
|
53
|
-
cursor: default;
|
|
54
|
-
pointer-events: none;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&.small {
|
|
58
|
-
@include design($material) {
|
|
59
|
-
min-height: 17px;
|
|
60
|
-
line-height: 17px;
|
|
61
|
-
padding: 0 8px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@include design($flat) {
|
|
65
|
-
line-height: 17px;
|
|
66
|
-
padding: 4px 9px;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&.fullWidth {
|
|
71
|
-
width: 100%;
|
|
72
|
-
}
|
|
73
|
-
}
|