@ainias42/react-bootstrap-mobile 0.1.7
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/.eslintrc.json +189 -0
- package/.prettierrc +5 -0
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/babel.config.js +22 -0
- package/bin/build.js +60 -0
- package/bin/release.sh +35 -0
- package/bin/updateCopies.js +86 -0
- package/bootstrapReactMobile.ts +87 -0
- package/dist/bootstrapReactMobile.d.ts +87 -0
- package/dist/bootstrapReactMobile.js +6275 -0
- package/dist/src/Components/ActionSheet/ActionSheet.d.ts +21 -0
- package/dist/src/Components/Card/Card.d.ts +13 -0
- package/dist/src/Components/Clickable/Clickable.d.ts +14 -0
- package/dist/src/Components/Dialog/AlertDialog.d.ts +10 -0
- package/dist/src/Components/Dialog/ButtonDialog.d.ts +13 -0
- package/dist/src/Components/Dialog/ConfirmDialog.d.ts +11 -0
- package/dist/src/Components/Dialog/Dialog.d.ts +14 -0
- package/dist/src/Components/Dialog/DialogBackground.d.ts +7 -0
- package/dist/src/Components/Dialog/DialogContainer.d.ts +6 -0
- package/dist/src/Components/Dialog/DialogContext.d.ts +9 -0
- package/dist/src/Components/Dialog/useAlertDialog.d.ts +1 -0
- package/dist/src/Components/Dialog/useConfirmDialog.d.ts +1 -0
- package/dist/src/Components/DragAndDrop/DragItem.d.ts +7 -0
- package/dist/src/Components/DragAndDrop/DropArea.d.ts +7 -0
- package/dist/src/Components/DragAndDrop/useStrictEnabled.d.ts +1 -0
- package/dist/src/Components/FormElements/Button/Button.d.ts +8 -0
- package/dist/src/Components/FormElements/CheckBox/Checkbox.d.ts +10 -0
- package/dist/src/Components/FormElements/ColorInput/ColorInput.d.ts +17 -0
- package/dist/src/Components/FormElements/ColorInput/sharedSelectedColor.d.ts +4 -0
- package/dist/src/Components/FormElements/ImageInput/ImageInput.d.ts +17 -0
- package/dist/src/Components/FormElements/Input/HiddenInput.d.ts +8 -0
- package/dist/src/Components/FormElements/Input/Input.d.ts +10 -0
- package/dist/src/Components/FormElements/Input/PasswordInput/PasswordInput.d.ts +4 -0
- package/dist/src/Components/FormElements/SearchSelectInput/SearchSelectInput.d.ts +10 -0
- package/dist/src/Components/FormElements/Select/Select.d.ts +16 -0
- package/dist/src/Components/FormElements/Slider/Slider.d.ts +8 -0
- package/dist/src/Components/FormElements/Switch/Switch.d.ts +12 -0
- package/dist/src/Components/FormElements/Textarea/Textarea.d.ts +12 -0
- package/dist/src/Components/FormElements/hooks/useOnChangeDone.d.ts +2 -0
- package/dist/src/Components/FullScreen/FullScreen.d.ts +14 -0
- package/dist/src/Components/Hooks/useBreakpoint.d.ts +11 -0
- package/dist/src/Components/Hooks/useComposedRef.d.ts +2 -0
- package/dist/src/Components/Hooks/useDebounced.d.ts +1 -0
- package/dist/src/Components/Hooks/useDelayed.d.ts +1 -0
- package/dist/src/Components/Hooks/useInViewport.d.ts +2 -0
- package/dist/src/Components/Hooks/useKeyListener.d.ts +3 -0
- package/dist/src/Components/Hooks/useListener.d.ts +18 -0
- package/dist/src/Components/Hooks/useOnMount.d.ts +1 -0
- package/dist/src/Components/Hooks/useOnce.d.ts +1 -0
- package/dist/src/Components/Icon/Icon.d.ts +13 -0
- package/dist/src/Components/Image/Image.d.ts +12 -0
- package/dist/src/Components/InViewport/InViewport.d.ts +11 -0
- package/dist/src/Components/Layout/Block.d.ts +7 -0
- package/dist/src/Components/Layout/Container.d.ts +15 -0
- package/dist/src/Components/Layout/Flex.d.ts +10 -0
- package/dist/src/Components/Layout/Grid/Grid.d.ts +9 -0
- package/dist/src/Components/Layout/Grid/GridItem.d.ts +25 -0
- package/dist/src/Components/Layout/Grow.d.ts +9 -0
- package/dist/src/Components/Layout/Inline.d.ts +7 -0
- package/dist/src/Components/Layout/InlineBlock.d.ts +7 -0
- package/dist/src/Components/Layout/View.d.ts +9 -0
- package/dist/src/Components/Layout/ViewWithoutListeners.d.ts +8 -0
- package/dist/src/Components/List/BulletList/BulletList.d.ts +8 -0
- package/dist/src/Components/List/BulletList/ListItem.d.ts +7 -0
- package/dist/src/Components/List/List.d.ts +10 -0
- package/dist/src/Components/LoadingArea/LoadingArea.d.ts +12 -0
- package/dist/src/Components/LoadingCircle/LoadingCircle.d.ts +8 -0
- package/dist/src/Components/Menu/Menu.d.ts +16 -0
- package/dist/src/Components/Menu/useMenu.d.ts +3 -0
- package/dist/src/Components/RbmComponentProps.d.ts +31 -0
- package/dist/src/Components/SizeCalculator/SizeCalculator.d.ts +9 -0
- package/dist/src/Components/SpoilerList/Spoiler/Spoiler.d.ts +15 -0
- package/dist/src/Components/SpoilerList/SpoilerList.d.ts +15 -0
- package/dist/src/Components/SpoilerList/useSpoilerGroup.d.ts +12 -0
- package/dist/src/Components/TabBar/TabBar.d.ts +30 -0
- package/dist/src/Components/TabBar/TabBarButton.d.ts +9 -0
- package/dist/src/Components/Table/Table.d.ts +36 -0
- package/dist/src/Components/Text/Heading.d.ts +7 -0
- package/dist/src/Components/Text/Text.d.ts +26 -0
- package/dist/src/Components/Toast/Toast.d.ts +13 -0
- package/dist/src/Components/Toast/ToastContainer.d.ts +7 -0
- package/dist/src/Components/TopBar/MoreButton.d.ts +9 -0
- package/dist/src/Components/TopBar/TopBar.d.ts +25 -0
- package/dist/src/Components/TopBar/TopBarButton.d.ts +9 -0
- package/dist/src/StyleProvider.d.ts +2 -0
- package/dist/src/TypeHelpers.d.ts +4 -0
- package/dist/src/WindowContext/WindowContext.d.ts +3 -0
- package/dist/src/WrongChildError.d.ts +4 -0
- package/dist/src/helper/Characters.d.ts +5 -0
- package/dist/src/helper/DistributiveOmit.d.ts +1 -0
- package/dist/src/helper/EmptyProps.d.ts +1 -0
- package/dist/src/helper/memoComparator.d.ts +1 -0
- package/dist/src/helper/nonEmptyString.d.ts +1 -0
- package/dist/src/helper/withForwardRef.d.ts +7 -0
- package/dist/src/helper/withMemo.d.ts +3 -0
- package/dist/src/helper/withRenderBrowserOnly.d.ts +2 -0
- package/dist/src/helper/withRestrictedChildren.d.ts +6 -0
- package/package.json +92 -0
- package/react-bootstrap-mobile.scss +6 -0
- package/scripts/getPackageJson.js +25 -0
- package/src/Components/ActionSheet/ActionSheet.tsx +115 -0
- package/src/Components/ActionSheet/actionSheet.scss +153 -0
- package/src/Components/Card/Card.tsx +46 -0
- package/src/Components/Card/card.scss +76 -0
- package/src/Components/Clickable/Clickable.tsx +174 -0
- package/src/Components/Clickable/clickable.scss +3 -0
- package/src/Components/Dialog/AlertDialog.tsx +44 -0
- package/src/Components/Dialog/ButtonDialog.tsx +57 -0
- package/src/Components/Dialog/ConfirmDialog.tsx +46 -0
- package/src/Components/Dialog/Dialog.tsx +82 -0
- package/src/Components/Dialog/DialogBackground.tsx +38 -0
- package/src/Components/Dialog/DialogContainer.tsx +77 -0
- package/src/Components/Dialog/DialogContext.ts +21 -0
- package/src/Components/Dialog/buttonDialog.scss +114 -0
- package/src/Components/Dialog/dialog.scss +30 -0
- package/src/Components/Dialog/dialogBackground.scss +4 -0
- package/src/Components/Dialog/useAlertDialog.ts +13 -0
- package/src/Components/Dialog/useConfirmDialog.ts +13 -0
- package/src/Components/DragAndDrop/DragItem.tsx +38 -0
- package/src/Components/DragAndDrop/DropArea.tsx +43 -0
- package/src/Components/DragAndDrop/useStrictEnabled.ts +20 -0
- package/src/Components/FormElements/Button/Button.tsx +25 -0
- package/src/Components/FormElements/Button/button.scss +39 -0
- package/src/Components/FormElements/CheckBox/Checkbox.tsx +61 -0
- package/src/Components/FormElements/CheckBox/checkbox.scss +107 -0
- package/src/Components/FormElements/ColorInput/ColorInput.tsx +139 -0
- package/src/Components/FormElements/ColorInput/colorInput.scss +35 -0
- package/src/Components/FormElements/ColorInput/sharedSelectedColor.ts +40 -0
- package/src/Components/FormElements/ImageInput/ImageInput.tsx +97 -0
- package/src/Components/FormElements/ImageInput/imageInput.scss +24 -0
- package/src/Components/FormElements/Input/HiddenInput.tsx +43 -0
- package/src/Components/FormElements/Input/Input.tsx +102 -0
- package/src/Components/FormElements/Input/PasswordInput/PasswordInput.tsx +55 -0
- package/src/Components/FormElements/Input/PasswordInput/passwordInput.scss +7 -0
- package/src/Components/FormElements/Input/input.scss +57 -0
- package/src/Components/FormElements/SearchSelectInput/SearchSelectInput.tsx +162 -0
- package/src/Components/FormElements/SearchSelectInput/seachSelectInput.scss +90 -0
- package/src/Components/FormElements/Select/Select.tsx +77 -0
- package/src/Components/FormElements/Select/select.scss +51 -0
- package/src/Components/FormElements/Slider/Slider.tsx +80 -0
- package/src/Components/FormElements/Slider/slider.scss +92 -0
- package/src/Components/FormElements/Switch/Switch.tsx +82 -0
- package/src/Components/FormElements/Switch/switch.scss +149 -0
- package/src/Components/FormElements/Textarea/Textarea.tsx +77 -0
- package/src/Components/FormElements/Textarea/textarea.scss +22 -0
- package/src/Components/FormElements/hooks/useOnChangeDone.ts +16 -0
- package/src/Components/FullScreen/FullScreen.tsx +89 -0
- package/src/Components/Hooks/useBreakpoint.ts +66 -0
- package/src/Components/Hooks/useComposedRef.ts +17 -0
- package/src/Components/Hooks/useDebounced.ts +22 -0
- package/src/Components/Hooks/useDelayed.ts +46 -0
- package/src/Components/Hooks/useInViewport.ts +23 -0
- package/src/Components/Hooks/useKeyListener.ts +77 -0
- package/src/Components/Hooks/useListener.ts +73 -0
- package/src/Components/Hooks/useOnMount.ts +12 -0
- package/src/Components/Hooks/useOnce.ts +11 -0
- package/src/Components/Icon/Icon.tsx +45 -0
- package/src/Components/Image/Image.tsx +44 -0
- package/src/Components/Image/image.scss +3 -0
- package/src/Components/InViewport/InViewport.tsx +71 -0
- package/src/Components/InViewport/inViewport.scss +3 -0
- package/src/Components/Layout/Block.tsx +48 -0
- package/src/Components/Layout/Container.tsx +57 -0
- package/src/Components/Layout/Flex.tsx +51 -0
- package/src/Components/Layout/Grid/Grid.tsx +53 -0
- package/src/Components/Layout/Grid/GridItem.tsx +138 -0
- package/src/Components/Layout/Grid/grid.scss +43 -0
- package/src/Components/Layout/Grow.tsx +51 -0
- package/src/Components/Layout/Inline.tsx +48 -0
- package/src/Components/Layout/InlineBlock.tsx +48 -0
- package/src/Components/Layout/View.tsx +40 -0
- package/src/Components/Layout/ViewWithoutListeners.tsx +40 -0
- package/src/Components/Layout/container.scss +12 -0
- package/src/Components/Layout/layout.scss +56 -0
- package/src/Components/List/BulletList/BulletList.tsx +33 -0
- package/src/Components/List/BulletList/ListItem.tsx +34 -0
- package/src/Components/List/List.tsx +88 -0
- package/src/Components/List/list.scss +30 -0
- package/src/Components/LoadingArea/LoadingArea.tsx +64 -0
- package/src/Components/LoadingArea/loadingArea.scss +19 -0
- package/src/Components/LoadingCircle/LoadingCircle.tsx +41 -0
- package/src/Components/LoadingCircle/loadingCircle.scss +42 -0
- package/src/Components/Menu/Menu.tsx +113 -0
- package/src/Components/Menu/menu.scss +21 -0
- package/src/Components/Menu/useMenu.ts +20 -0
- package/src/Components/RbmComponentProps.ts +40 -0
- package/src/Components/SizeCalculator/SizeCalculator.tsx +45 -0
- package/src/Components/SpoilerList/Spoiler/Spoiler.tsx +106 -0
- package/src/Components/SpoilerList/Spoiler/spoiler.scss +120 -0
- package/src/Components/SpoilerList/SpoilerList.tsx +63 -0
- package/src/Components/SpoilerList/useSpoilerGroup.ts +39 -0
- package/src/Components/TabBar/TabBar.tsx +117 -0
- package/src/Components/TabBar/TabBarButton.tsx +44 -0
- package/src/Components/TabBar/tabBar.scss +108 -0
- package/src/Components/Table/Table.tsx +182 -0
- package/src/Components/Text/Heading.tsx +44 -0
- package/src/Components/Text/Text.tsx +79 -0
- package/src/Components/Text/heading.scss +3 -0
- package/src/Components/Text/text.scss +60 -0
- package/src/Components/Toast/Toast.tsx +107 -0
- package/src/Components/Toast/ToastContainer.tsx +35 -0
- package/src/Components/Toast/toast.scss +52 -0
- package/src/Components/TopBar/MoreButton.tsx +38 -0
- package/src/Components/TopBar/TopBar.tsx +176 -0
- package/src/Components/TopBar/TopBarButton.tsx +29 -0
- package/src/Components/TopBar/topBar.scss +124 -0
- package/src/StyleProvider.ts +4 -0
- package/src/TypeHelpers.ts +4 -0
- package/src/WindowContext/WindowContext.ts +8 -0
- package/src/WrongChildError.ts +19 -0
- package/src/env.d.ts +1 -0
- package/src/helper/Characters.ts +5 -0
- package/src/helper/DistributiveOmit.ts +1 -0
- package/src/helper/EmptyProps.ts +2 -0
- package/src/helper/memoComparator.ts +18 -0
- package/src/helper/nonEmptyString.ts +8 -0
- package/src/helper/withForwardRef.ts +28 -0
- package/src/helper/withMemo.ts +16 -0
- package/src/helper/withRenderBrowserOnly.tsx +30 -0
- package/src/helper/withRestrictedChildren.tsx +57 -0
- package/src/scss/_animations.scss +46 -0
- package/src/scss/_baseClasses.scss +27 -0
- package/src/scss/_colors.scss +13 -0
- package/src/scss/_default.scss +17 -0
- package/src/scss/_designMixin.scss +13 -0
- package/src/scss/_mobileMixin.scss +35 -0
- package/src/scss/_variables.scss +22 -0
- package/src/types/isomorphic-style-loader.d.ts +3 -0
- package/src/types/react-table-config.d.ts +120 -0
- package/src/types/scss-module.d.ts +7 -0
- package/tsconfig.json +57 -0
- package/webpack.config.js +85 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@use 'sass:selector';
|
|
2
|
+
|
|
3
|
+
@mixin design($designName) {
|
|
4
|
+
@if & {
|
|
5
|
+
@at-root #{selector.nest('.'+$designName, &)} {
|
|
6
|
+
@content
|
|
7
|
+
}
|
|
8
|
+
} @else {
|
|
9
|
+
.#{$designName} {
|
|
10
|
+
@content
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin subPrefix($className) {
|
|
16
|
+
.#{$classPrefix+$className} {
|
|
17
|
+
@content
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin prefix($className, $concatSelectors: false) {
|
|
22
|
+
@if $concatSelectors == true {
|
|
23
|
+
&.#{$classPrefix+$className} {
|
|
24
|
+
@content
|
|
25
|
+
}
|
|
26
|
+
} @else if ($concatSelectors != false) {
|
|
27
|
+
#{$concatSelectors}.#{$classPrefix+$className} {
|
|
28
|
+
@content
|
|
29
|
+
}
|
|
30
|
+
} @else {
|
|
31
|
+
@include subPrefix($className) {
|
|
32
|
+
@content
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import 'bootstrap/scss/functions';
|
|
2
|
+
@import 'bootstrap/scss/variables';
|
|
3
|
+
|
|
4
|
+
$classPrefix: "rbm-";
|
|
5
|
+
|
|
6
|
+
$material: "material-design";
|
|
7
|
+
$flat: "flat-design";
|
|
8
|
+
|
|
9
|
+
$android: $material;
|
|
10
|
+
$ios: $flat;
|
|
11
|
+
|
|
12
|
+
$animationDuration: 0.3s;
|
|
13
|
+
$animationDurationMaterial: $animationDuration;
|
|
14
|
+
$animationDurationFlat: $animationDuration;
|
|
15
|
+
$animationDurationAndroid: $animationDurationMaterial;
|
|
16
|
+
$animationDurationIos: $animationDurationFlat;
|
|
17
|
+
|
|
18
|
+
$fontSizeBase: 16px;
|
|
19
|
+
|
|
20
|
+
$boxShadowMaterial: 0 2px 2px 0 rgb(0 0 0 / 14%),
|
|
21
|
+
0 1px 5px 0 rgb(0 0 0 / 12%),
|
|
22
|
+
0 3px 1px -2px rgb(0 0 0 / 20%);
|
|
@@ -0,0 +1,120 @@
|
|
|
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,
|
|
44
|
+
UseSortByColumnOptions,
|
|
45
|
+
UseSortByColumnProps,
|
|
46
|
+
UseSortByHooks,
|
|
47
|
+
UseSortByInstanceProps,
|
|
48
|
+
UseSortByOptions,
|
|
49
|
+
UseSortByState,
|
|
50
|
+
} from 'react-table';
|
|
51
|
+
|
|
52
|
+
// https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-table
|
|
53
|
+
declare module 'react-table' {
|
|
54
|
+
// take this file as-is, or comment out the sections that don't apply to your plugin configuration
|
|
55
|
+
|
|
56
|
+
export interface TableOptions<D extends object>
|
|
57
|
+
// UseExpandedOptions<D>,
|
|
58
|
+
// UseFiltersOptions<D>,
|
|
59
|
+
// UseGlobalFiltersOptions<D>,
|
|
60
|
+
// UseGroupByOptions<D>,
|
|
61
|
+
// UsePaginationOptions<D>,
|
|
62
|
+
// UseResizeColumnsOptions<D>,
|
|
63
|
+
// UseRowSelectOptions<D>,
|
|
64
|
+
// UseRowStateOptions<D>,
|
|
65
|
+
extends UseSortByOptions<D> {}
|
|
66
|
+
|
|
67
|
+
// note that having Record here allows you to add anything to the options, this matches the spirit of the
|
|
68
|
+
// underlying js library, but might be cleaner if it's replaced by a more specific type that matches your
|
|
69
|
+
// feature set, this is a safe default.
|
|
70
|
+
|
|
71
|
+
export interface Hooks<D extends object>
|
|
72
|
+
// UseExpandedHooks<D>,
|
|
73
|
+
// UseGroupByHooks<D>,
|
|
74
|
+
// UseRowSelectHooks<D>,
|
|
75
|
+
extends UseSortByHooks<D> {}
|
|
76
|
+
|
|
77
|
+
export interface TableInstance<D extends object>
|
|
78
|
+
// UseColumnOrderInstanceProps<D>,
|
|
79
|
+
// UseExpandedInstanceProps<D>,
|
|
80
|
+
// UseFiltersInstanceProps<D>,
|
|
81
|
+
// UseGlobalFiltersInstanceProps<D>,
|
|
82
|
+
// UseGroupByInstanceProps<D>,
|
|
83
|
+
// UsePaginationInstanceProps<D>,
|
|
84
|
+
// UseRowSelectInstanceProps<D>,
|
|
85
|
+
// UseRowStateInstanceProps<D>,
|
|
86
|
+
extends UseSortByInstanceProps<D> {}
|
|
87
|
+
|
|
88
|
+
export interface TableState<D extends object>
|
|
89
|
+
// UseColumnOrderState<D>,
|
|
90
|
+
// UseExpandedState<D>,
|
|
91
|
+
// UseFiltersState<D>,
|
|
92
|
+
// UseGlobalFiltersState<D>,
|
|
93
|
+
// UseGroupByState<D>,
|
|
94
|
+
// UsePaginationState<D>,
|
|
95
|
+
// UseResizeColumnsState<D>,
|
|
96
|
+
// UseRowSelectState<D>,
|
|
97
|
+
// UseRowStateState<D>,
|
|
98
|
+
extends UseSortByState<D> {}
|
|
99
|
+
|
|
100
|
+
export interface ColumnInterface<D extends object>
|
|
101
|
+
// UseFiltersColumnOptions<D>,
|
|
102
|
+
// UseGlobalFiltersColumnOptions<D>,
|
|
103
|
+
// UseGroupByColumnOptions<D>,
|
|
104
|
+
// UseResizeColumnsColumnOptions<D>,
|
|
105
|
+
extends UseSortByColumnOptions<D> {}
|
|
106
|
+
|
|
107
|
+
export interface ColumnInstance<D extends object>
|
|
108
|
+
// UseFiltersColumnProps<D>,
|
|
109
|
+
// UseGroupByColumnProps<D>,
|
|
110
|
+
// UseResizeColumnsColumnProps<D>,
|
|
111
|
+
extends UseSortByColumnProps<D> {}
|
|
112
|
+
|
|
113
|
+
// export interface Cell<D extends object, V = any> extends UseGroupByCellProps<D>, UseRowStateCellProps<D> {}
|
|
114
|
+
//
|
|
115
|
+
// export interface Row<D extends object>
|
|
116
|
+
// extends UseExpandedRowProps<D>,
|
|
117
|
+
// UseGroupByRowProps<D>,
|
|
118
|
+
// UseRowSelectRowProps<D>,
|
|
119
|
+
// UseRowStateRowProps<D> {}
|
|
120
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"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
|
+
"declaration": true,
|
|
30
|
+
"noUnusedParameters": true,
|
|
31
|
+
"suppressImplicitAnyIndexErrors": true,
|
|
32
|
+
"allowSyntheticDefaultImports": true,
|
|
33
|
+
"isolatedModules": false,
|
|
34
|
+
"strict": false
|
|
35
|
+
},
|
|
36
|
+
"include": [
|
|
37
|
+
"src/**/*",
|
|
38
|
+
"dist/bootstrapReactMobile.ts"
|
|
39
|
+
],
|
|
40
|
+
"exclude": [
|
|
41
|
+
"dist",
|
|
42
|
+
"bin",
|
|
43
|
+
"node_modules",
|
|
44
|
+
"build",
|
|
45
|
+
"scripts",
|
|
46
|
+
"acceptance-tests",
|
|
47
|
+
"webpack",
|
|
48
|
+
"jest",
|
|
49
|
+
"www",
|
|
50
|
+
"platforms",
|
|
51
|
+
"plugins",
|
|
52
|
+
"webpack.config.js"
|
|
53
|
+
]
|
|
54
|
+
// "types": [
|
|
55
|
+
// "typePatches"
|
|
56
|
+
// ]
|
|
57
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const webpack = require('webpack');
|
|
3
|
+
// const PrettierPlugin = require('prettier-webpack-plugin');
|
|
4
|
+
const TerserPlugin = require('terser-webpack-plugin');
|
|
5
|
+
const getPackageJson = require('./scripts/getPackageJson');
|
|
6
|
+
|
|
7
|
+
const { version, name, license, repository, author } = getPackageJson(
|
|
8
|
+
'version',
|
|
9
|
+
'name',
|
|
10
|
+
'license',
|
|
11
|
+
'repository',
|
|
12
|
+
'author'
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
const banner = `
|
|
16
|
+
${name} v${version}
|
|
17
|
+
${repository.url}
|
|
18
|
+
Copyright (c) ${author.replace(/ *<[^)]*> */g, ' ')} and project contributors.
|
|
19
|
+
This source code is licensed under the ${license} license found in the
|
|
20
|
+
LICENSE file in the root directory of this source tree.
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
module.exports = (env) => {
|
|
24
|
+
return {
|
|
25
|
+
mode: env.production ? 'production' : 'development',
|
|
26
|
+
// devtool: 'source-map',
|
|
27
|
+
entry: './bootstrapReactMobile.ts',
|
|
28
|
+
output: {
|
|
29
|
+
filename: 'bootstrapReactMobile.js',
|
|
30
|
+
path: path.resolve(__dirname, 'dist'),
|
|
31
|
+
library: { type: 'umd' },
|
|
32
|
+
clean: true,
|
|
33
|
+
globalObject: 'this',
|
|
34
|
+
},
|
|
35
|
+
externals: {
|
|
36
|
+
react: 'commonjs react',
|
|
37
|
+
'react-dom': 'commonjs react-dom',
|
|
38
|
+
'isomorphic-style-loader': 'commonjs2 isomorphic-style-loader',
|
|
39
|
+
'@fortawesome/react-fontawesome': 'commonjs2 @fortawesome/react-fontawesome',
|
|
40
|
+
'@fortawesome/fontawesome-svg-core': 'commonjs2 @fortawesome/fontawesome-svg-core',
|
|
41
|
+
'@fortawesome/free-solid-svg-icons': 'commonjs2 @fortawesome/free-solid-svg-icons',
|
|
42
|
+
'react-beautiful-dnd': 'commonjs2 react-beautiful-dnd',
|
|
43
|
+
},
|
|
44
|
+
optimization: {
|
|
45
|
+
minimize: false,
|
|
46
|
+
minimizer: [new TerserPlugin({ extractComments: false })],
|
|
47
|
+
},
|
|
48
|
+
module: {
|
|
49
|
+
rules: [
|
|
50
|
+
{
|
|
51
|
+
test: /\.(ts|tsx)?$/,
|
|
52
|
+
exclude: /(node_modules)/,
|
|
53
|
+
use: [{ loader: 'babel-loader' }, { loader: 'ts-loader' }],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
//Compiliert SASS zu CSS und speichert es in Datei
|
|
57
|
+
test: /\.scss$/,
|
|
58
|
+
use: [
|
|
59
|
+
{ loader: 'isomorphic-style-loader' },
|
|
60
|
+
{
|
|
61
|
+
loader: 'css-loader',
|
|
62
|
+
options: {
|
|
63
|
+
esModule: false,
|
|
64
|
+
modules: {
|
|
65
|
+
localIdentName: '[local]__[hash:base64:5]',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{ loader: 'sass-loader' },
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
plugins: [
|
|
75
|
+
// new PrettierPlugin(),
|
|
76
|
+
// new MiniCssExtractPlugin({
|
|
77
|
+
// filename: 'css/index.css',
|
|
78
|
+
// }),
|
|
79
|
+
new webpack.BannerPlugin(banner),
|
|
80
|
+
],
|
|
81
|
+
resolve: {
|
|
82
|
+
extensions: ['.ts', '.tsx', '.js', '.json'],
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
};
|