@dvrd/dvr-controls 1.1.25 → 1.1.27
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/index.ts +23 -24
- package/package.json +4 -1
- package/src/js/popup/withBackground.tsx +3 -3
package/index.ts
CHANGED
|
@@ -11,32 +11,31 @@ import {fas} from '@fortawesome/free-solid-svg-icons';
|
|
|
11
11
|
|
|
12
12
|
library.add(fab, far, fas);
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import PasswordInput from "./src/js/input/password/passwordInput";
|
|
14
|
+
import ButtonController from './src/js/button/buttonController';
|
|
15
|
+
import CheckboxController from './src/js/checkbox/checkboxController';
|
|
16
|
+
import DialogController, {type DialogActionShape} from './src/js/dialog/dialogController';
|
|
17
|
+
import InlineDialog from './src/js/dialog/inlineDialog';
|
|
18
|
+
import PasswordInput from './src/js/input/password/passwordInput';
|
|
20
19
|
import PasswordRules from './src/js/input/password/passwordRules';
|
|
21
|
-
import LoaderController from
|
|
22
|
-
import SelectController from
|
|
23
|
-
import SnackbarController from
|
|
24
|
-
import SwitchController from
|
|
25
|
-
import ThemeContextProvider, {ThemeShape} from
|
|
26
|
-
import NumberInput from
|
|
27
|
-
import Label, {BreakType, LabelType} from './src/js/label/label';
|
|
28
|
-
import WithBackground from
|
|
29
|
-
import OptionsMenu from
|
|
30
|
-
import AwesomeIcon from
|
|
20
|
+
import LoaderController from './src/js/loader/loaderController';
|
|
21
|
+
import SelectController from './src/js/select/selectController';
|
|
22
|
+
import SnackbarController from './src/js/snackbar/snackbarController';
|
|
23
|
+
import SwitchController from './src/js/switch/switchController';
|
|
24
|
+
import ThemeContextProvider, {type ThemeShape} from './src/js/util/controlContext';
|
|
25
|
+
import NumberInput from './src/js/input/number/numberInput';
|
|
26
|
+
import Label, {type BreakType, type LabelType} from './src/js/label/label';
|
|
27
|
+
import WithBackground from './src/js/popup/withBackground';
|
|
28
|
+
import OptionsMenu from './src/js/optionsMenu/optionsMenu';
|
|
29
|
+
import AwesomeIcon from './src/js/icon/awesomeIcon';
|
|
31
30
|
import ColorPicker from './src/js/colorPicker/colorPicker';
|
|
32
31
|
import CloseButton from './src/js/button/closeButton';
|
|
33
32
|
import AnimatedTextField from './src/js/input/animated/animatedTextField';
|
|
34
|
-
import DVRHeader, {HeaderItem} from './src/js/header/DVRHeader';
|
|
35
|
-
import DateFieldController, {DateReturnType, DateType} from './src/js/input/date/dateFieldController';
|
|
33
|
+
import DVRHeader, {type HeaderItem} from './src/js/header/DVRHeader';
|
|
34
|
+
import DateFieldController, {type DateReturnType, type DateType} from './src/js/input/date/dateFieldController';
|
|
36
35
|
import AsyncSelect from './src/js/select/async/asyncSelect';
|
|
37
36
|
import InputControllerV2 from './src/js/input/v2/inputController_v2';
|
|
38
37
|
import WithEvents from './src/js/events/withEvents';
|
|
39
|
-
import AppNavigator from
|
|
38
|
+
import AppNavigator from './src/js/navigator/navigator';
|
|
40
39
|
import DVRHead from './src/js/head/DVRHead';
|
|
41
40
|
import TopButton from './src/js/topButton/topButton';
|
|
42
41
|
import DVRCarouselController from './src/js/carousel/DVRCarouselController';
|
|
@@ -45,20 +44,20 @@ import PDFTemplateCreator from './src/js/pdf/pdfTemplateCreator';
|
|
|
45
44
|
import SidebarMenu from './src/js/sidebarMenu/sidebarMenu';
|
|
46
45
|
import Info from './src/js/info/info';
|
|
47
46
|
import Media from './src/js/media/media';
|
|
48
|
-
import DvrdButton, {DvrdButtonProps} from './src/js/button/dvrdButton';
|
|
49
|
-
import DvrdDatePicker, {DVRDDatePickerRef} from './src/js/date/dvrdDatePicker';
|
|
47
|
+
import DvrdButton, {type DvrdButtonProps} from './src/js/button/dvrdButton';
|
|
48
|
+
import DvrdDatePicker, {type DVRDDatePickerRef} from './src/js/date/dvrdDatePicker';
|
|
50
49
|
import DvrdInputController from './src/js/textField/dvrdInputController';
|
|
51
50
|
import DVRDNumberInput from './src/js/textField/dvrdNumberInput';
|
|
52
51
|
import DVRDPasswordInput from './src/js/textField/dvrdPasswordInput';
|
|
53
52
|
import Link from './src/js/link/link';
|
|
54
53
|
import DvrdOptionsList from './src/js/optionsList/dvrdOptionsList';
|
|
55
54
|
import DvrdSelectController from './src/js/select/dvrdSelectController';
|
|
56
|
-
import DVRDGroupedSelect, { GroupedSelectRef
|
|
55
|
+
import DVRDGroupedSelect, {type GroupedSelectRef} from './src/js/select/dvrdGroupedSelect';
|
|
57
56
|
import DVRDSwitch from './src/js/switch/dvrdSwitch';
|
|
58
57
|
import DvrdHeaderController from './src/js/header/v2/dvrdHeaderController';
|
|
59
58
|
import FileUpload from './src/js/fileUpload/fileUpload';
|
|
60
59
|
import DvrdRadioController from './src/js/radio/dvrdRadioController';
|
|
61
|
-
import MobileNavigation from
|
|
60
|
+
import MobileNavigation from './src/js/navigation/mobileNavigation';
|
|
62
61
|
import NumberString from './src/js/util/numberString';
|
|
63
62
|
|
|
64
63
|
export {
|
|
@@ -122,7 +121,7 @@ export {
|
|
|
122
121
|
ThemeShape,
|
|
123
122
|
DvrdButtonProps,
|
|
124
123
|
GroupedSelectRef,
|
|
125
|
-
NumberString
|
|
124
|
+
NumberString
|
|
126
125
|
};
|
|
127
126
|
|
|
128
127
|
export * from './src/js/util/controlUtil';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvrd/dvr-controls",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.27",
|
|
4
4
|
"description": "Custom web controls",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"files": [
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://bitbucket.org/Naampie/dvr-controls/"
|
|
12
12
|
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "npm publish"
|
|
15
|
+
},
|
|
13
16
|
"author": "Dave van Rijn",
|
|
14
17
|
"license": "ISC",
|
|
15
18
|
"browserslist": {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import './style/withBackground.scss';
|
|
6
|
+
import classNames from 'classnames';
|
|
6
7
|
|
|
7
8
|
import React, {CSSProperties, PropsWithChildren, useEffect, useMemo, useRef} from 'react';
|
|
8
|
-
import
|
|
9
|
-
import {escapePressed, hasHover} from "../util/controlUtil";
|
|
9
|
+
import {escapePressed} from '../util/controlUtil';
|
|
10
10
|
|
|
11
11
|
interface Props {
|
|
12
12
|
onClickBackground?: Function,
|
|
@@ -39,7 +39,7 @@ export default function WithBackground(props: PropsWithChildren<Props>) {
|
|
|
39
39
|
function _onClickBackground(evt: React.MouseEvent) {
|
|
40
40
|
if (preventBackgroundClick) return;
|
|
41
41
|
if (onClickBackground) onClickBackground(evt);
|
|
42
|
-
else if (
|
|
42
|
+
else if (evt.target === evt.currentTarget) onClose(evt);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
function onKeyDown(evt: KeyboardEvent) {
|