beesoft-components 0.2.24 → 0.2.25
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/build/index.cjs.js +28253 -23425
- package/build/index.js +28237 -23382
- package/build/index.min.js +20 -23
- package/build/index.min.js.gz +0 -0
- package/{types → build/types}/src/components/common/beesoft-transition/beesoft-transition.component.d.ts +2 -2
- package/{types → build/types}/src/components/common/template-outlet/template-outlet.component.d.ts +1 -1
- package/{types → build/types}/src/components/common-interfaces.d.ts +4 -0
- package/build/types/src/components/dom-handler.d.ts +30 -0
- package/{types → build/types}/src/components/form/date-time/date-time-calendar.component.d.ts +1 -1
- package/{types → build/types}/src/components/form/date-time/date-time-functions.d.ts +1 -1
- package/{types → build/types}/src/components/form/date-time/date-time-scroller.component.d.ts +2 -1
- package/{types → build/types}/src/components/form/date-time/date-time.component.d.ts +1 -1
- package/build/types/src/components/overlay/overlay-panel/overlay-panel.component.d.ts +22 -0
- package/package.json +67 -55
- package/types/src/components/dom-handler.d.ts +0 -12
- package/types/src/components/overlay/overlay-panel/overlay-panel.component.d.ts +0 -18
- package/types/src/reportWebVitals.d.ts +0 -2
- /package/{types → build/types}/src/components/common-event-handlers.d.ts +0 -0
- /package/{types → build/types}/src/components/common-functions.d.ts +0 -0
- /package/{types → build/types}/src/components/common-hooks.d.ts +0 -0
- /package/{types → build/types}/src/components/font-awesome.d.ts +0 -0
- /package/{types → build/types}/src/components/form/content-editable-input/content-editable-input.component.d.ts +0 -0
- /package/{types → build/types}/src/components/form/date-time/date-time-context.d.ts +0 -0
- /package/{types → build/types}/src/components/form/date-time/date-time-day-selector.component.d.ts +0 -0
- /package/{types → build/types}/src/components/form/date-time/date-time-month-selector.component.d.ts +0 -0
- /package/{types → build/types}/src/components/form/date-time/date-time-range-selector.component.d.ts +0 -0
- /package/{types → build/types}/src/components/form/date-time/date-time-time-selector.component.d.ts +0 -0
- /package/{types → build/types}/src/components/form/date-time/date-time-types.d.ts +0 -0
- /package/{types → build/types}/src/components/form/date-time/date-time-year-selector.component.d.ts +0 -0
- /package/{types → build/types}/src/components/form/date-time/date-time.reducer.d.ts +0 -0
- /package/{types → build/types}/src/index.d.ts +0 -0
- /package/{types → build/types}/src/setupTests.d.ts +0 -0
package/build/index.min.js.gz
CHANGED
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { TransitionStatus } from 'react-transition-group/Transition';
|
|
3
3
|
export interface BeeSoftChildrenTransitionProps {
|
|
4
4
|
state: TransitionStatus;
|
|
@@ -17,6 +17,6 @@ export interface BeeSoftTransitionProps {
|
|
|
17
17
|
onEntered?: (node: HTMLElement, isAppearing: boolean) => void;
|
|
18
18
|
onExit?: (node: HTMLElement) => void;
|
|
19
19
|
onExited?: (node: HTMLElement) => void;
|
|
20
|
-
children: (childProps: BeeSoftChildrenTransitionProps) => ReactNode |
|
|
20
|
+
children: (childProps: BeeSoftChildrenTransitionProps) => ReactNode | Array<ReactNode>;
|
|
21
21
|
}
|
|
22
22
|
export default function BeeSoftTransition({ start, timeout, defaultStyle, transitionStyles, showTransitionOptions, hideTransitionOptions, unmountOnExit, onEntering, onEntered, onExit, onExited, children, }: BeeSoftTransitionProps): JSX.Element;
|
package/{types → build/types}/src/components/common/template-outlet/template-outlet.component.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type TemplateFunction<TF> = (props: TF, children?: React.ReactNode | React.ReactNodeArray) => JSX.Element;
|
|
3
3
|
export interface TemplateOutletProps<TP> {
|
|
4
4
|
props: TP;
|
|
5
5
|
template: TemplateFunction<TP>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { WindowSize } from './common-interfaces';
|
|
2
|
+
export declare enum DomTargetPosition {
|
|
3
|
+
TopLeft = 0,
|
|
4
|
+
TopRight = 1,
|
|
5
|
+
BottomLeft = 2,
|
|
6
|
+
BottomRight = 3
|
|
7
|
+
}
|
|
8
|
+
export declare enum DomElementAlignment {
|
|
9
|
+
TopLeft = 0,
|
|
10
|
+
TopRight = 1,
|
|
11
|
+
BottomLeft = 2,
|
|
12
|
+
BottomRight = 3
|
|
13
|
+
}
|
|
14
|
+
export interface DomOffScreenLocation {
|
|
15
|
+
left: boolean;
|
|
16
|
+
top: boolean;
|
|
17
|
+
right: boolean;
|
|
18
|
+
bottom: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface DomElementPosition {
|
|
21
|
+
top: number;
|
|
22
|
+
left: number;
|
|
23
|
+
}
|
|
24
|
+
export declare class DomHandler {
|
|
25
|
+
static positionToTarget(target: HTMLElement, position?: DomTargetPosition): DomElementPosition;
|
|
26
|
+
static positionElementToTarget(element: HTMLElement, target: HTMLElement, elementAlignment?: DomElementAlignment, targetPosition?: DomTargetPosition): DomElementPosition;
|
|
27
|
+
static positionElementToTargetOnScreen(element: HTMLElement, target: HTMLElement, elementAlignment?: DomElementAlignment, targetPosition?: DomTargetPosition): DomElementPosition;
|
|
28
|
+
static determineOffScreenLocation(rectangle: DOMRect): DomOffScreenLocation | undefined;
|
|
29
|
+
static getScreenDimensions(): WindowSize;
|
|
30
|
+
}
|
package/{types → build/types}/src/components/form/date-time/date-time-calendar.component.d.ts
RENAMED
|
@@ -30,5 +30,5 @@ export interface DateTimeCalendarTemplateProps {
|
|
|
30
30
|
isSelectedDate: (currentDate: Date) => boolean;
|
|
31
31
|
isInSelectedDateRange: (currentDate: Date) => boolean;
|
|
32
32
|
}
|
|
33
|
-
export
|
|
33
|
+
export type DateTimeCalendarTemplate = TemplateFunction<DateTimeCalendarTemplateProps>;
|
|
34
34
|
export default function DateTimeCalendar({ viewDate, selectedDate, selectedStartDate, selectedEndDate, selectionMode, locale, onDateSelected, selectableDate, isValidDate, dispatcher, }: DateTimeCalendarProps): JSX.Element;
|
package/{types → build/types}/src/components/form/date-time/date-time-scroller.component.d.ts
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TemplateFunction } from '../../common/template-outlet/template-outlet.component';
|
|
2
3
|
import { DateScrollerType } from './date-time-types';
|
|
3
4
|
export interface DateTimeScrollerProps {
|
|
@@ -14,5 +15,5 @@ export interface DateTimeScrollerTemplateProps {
|
|
|
14
15
|
onMovePrevious: () => void;
|
|
15
16
|
onMoveNext: () => void;
|
|
16
17
|
}
|
|
17
|
-
export
|
|
18
|
+
export type DateTimeScrollerTemplate = TemplateFunction<DateTimeScrollerTemplateProps>;
|
|
18
19
|
export default function DateTimeScroller({ title, scrollerType, onTitleClicked, onMovePrevious, onMoveNext, }: DateTimeScrollerProps): JSX.Element;
|
|
@@ -35,5 +35,5 @@ export interface DateTimeInputTemplateProps {
|
|
|
35
35
|
iconPosition: CalendarIconPosition;
|
|
36
36
|
iconElement?: JSX.Element;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type DateTimeInputTemplate = TemplateFunction<DateTimeInputTemplateProps>;
|
|
39
39
|
export default function DateTime({ value, readOnly, label, useDefaultDateValue, allowClear, locale, className, dateSelection, dateFormat, timeConstraints, icon, iconPosition, inputElement, colors, selectableDate, isValidDate, onChange, calendarTemplate, dateScrollerTemplate, inputTemplate, }: DateTimeProps): JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { MarkupEvents } from '../../common-interfaces';
|
|
3
|
+
import { DomElementAlignment, DomTargetPosition } from '../../dom-handler';
|
|
4
|
+
export interface OverlayPanelProps {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
target?: React.MouseEvent<Element, MouseEvent> | HTMLElement | Element | null;
|
|
7
|
+
targetPosition?: DomTargetPosition;
|
|
8
|
+
elementAlignment?: DomElementAlignment;
|
|
9
|
+
shouldTargetCloseOverlay?: boolean;
|
|
10
|
+
shouldMatchTargetWidth?: boolean;
|
|
11
|
+
shouldScrollCloseOverlay?: boolean;
|
|
12
|
+
shouldCheckZIndex?: boolean;
|
|
13
|
+
shouldRemainOnScreen?: boolean;
|
|
14
|
+
unmountWhenHidden?: boolean;
|
|
15
|
+
transitionDuration?: number;
|
|
16
|
+
showTransitionOptions?: string;
|
|
17
|
+
hideTransitionOptions?: string;
|
|
18
|
+
shown?: () => void;
|
|
19
|
+
hidden?: () => void;
|
|
20
|
+
children: ReactNode | Array<ReactNode>;
|
|
21
|
+
}
|
|
22
|
+
export default function OverlayPanel({ visible, target, targetPosition, elementAlignment, shouldTargetCloseOverlay, shouldMatchTargetWidth, shouldScrollCloseOverlay, shouldCheckZIndex, shouldRemainOnScreen, unmountWhenHidden, transitionDuration, showTransitionOptions, hideTransitionOptions, shown, hidden, markupCreated, children, }: OverlayPanelProps & MarkupEvents): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beesoft-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Brandon Trabon",
|
|
6
6
|
"keywords": [
|
|
@@ -21,23 +21,23 @@
|
|
|
21
21
|
"module": "build/index.min.js",
|
|
22
22
|
"types": "types/src/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@fortawesome/fontawesome-svg-core": "^
|
|
25
|
-
"@fortawesome/free-regular-svg-icons": "^
|
|
26
|
-
"@fortawesome/free-solid-svg-icons": "^
|
|
27
|
-
"@fortawesome/react-fontawesome": "^0.
|
|
24
|
+
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
25
|
+
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
|
26
|
+
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
27
|
+
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
28
28
|
"classnames": "^2.3.1",
|
|
29
|
-
"date-fns": "^2.
|
|
29
|
+
"date-fns": "^2.29.3",
|
|
30
30
|
"lodash": "^4.17.21",
|
|
31
|
-
"react-transition-group": "^4.4.
|
|
31
|
+
"react-transition-group": "^4.4.5"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"start": "
|
|
34
|
+
"start": "start-storybook -p 6006 -s public",
|
|
35
35
|
"build": "rimraf build && rimraf types && rollup -c --environment NODE_ENV:production",
|
|
36
36
|
"build:app": "craco build",
|
|
37
37
|
"test": "echo \"craco test\"",
|
|
38
38
|
"eject": "react-scripts eject",
|
|
39
|
-
"storybook": "start-storybook -p 6006 -s public",
|
|
40
|
-
"build-storybook": "build-storybook -s public"
|
|
39
|
+
"storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006 -s public",
|
|
40
|
+
"build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook -s public"
|
|
41
41
|
},
|
|
42
42
|
"eslintConfig": {
|
|
43
43
|
"extends": [
|
|
@@ -58,59 +58,71 @@
|
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@babel/cli": "^7.
|
|
62
|
-
"@babel/preset-env": "^7.
|
|
63
|
-
"@babel/preset-react": "^7.
|
|
64
|
-
"@babel/preset-typescript": "^7.
|
|
65
|
-
"@craco/craco": "^
|
|
66
|
-
"@
|
|
67
|
-
"@rollup/plugin-
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@storybook/
|
|
72
|
-
"@storybook/
|
|
73
|
-
"@storybook/
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
61
|
+
"@babel/cli": "^7.21.0",
|
|
62
|
+
"@babel/preset-env": "^7.21.4",
|
|
63
|
+
"@babel/preset-react": "^7.18.6",
|
|
64
|
+
"@babel/preset-typescript": "^7.21.4",
|
|
65
|
+
"@craco/craco": "^7.1.0",
|
|
66
|
+
"@release-it/bumper": "^4.0.2",
|
|
67
|
+
"@rollup/plugin-commonjs": "^24.0.1",
|
|
68
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
69
|
+
"@rollup/plugin-terser": "^0.4.1",
|
|
70
|
+
"@rollup/plugin-typescript": "^11.1.0",
|
|
71
|
+
"@storybook/addon-actions": "^6.5.16",
|
|
72
|
+
"@storybook/addon-essentials": "^6.5.16",
|
|
73
|
+
"@storybook/addon-links": "^6.5.16",
|
|
74
|
+
"@storybook/builder-webpack5": "^6.5.16",
|
|
75
|
+
"@storybook/manager-webpack5": "^6.5.16",
|
|
76
|
+
"@storybook/node-logger": "^6.5.16",
|
|
77
|
+
"@storybook/preset-create-react-app": "^4.1.2",
|
|
78
|
+
"@storybook/react": "^6.5.16",
|
|
79
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
80
|
+
"@testing-library/react": "^14.0.0",
|
|
81
|
+
"@testing-library/user-event": "^14.4.3",
|
|
78
82
|
"@types/dot-object": "^2.1.2",
|
|
79
83
|
"@types/jest": "^26.0.15",
|
|
80
84
|
"@types/lodash": "^4.14.168",
|
|
81
|
-
"@types/node": "
|
|
82
|
-
"@types/react": "^
|
|
83
|
-
"@types/react-dom": "^
|
|
84
|
-
"@types/react-transition-group": "^4.4.
|
|
85
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
86
|
-
"@typescript-eslint/parser": "^
|
|
87
|
-
"autoprefixer": "^
|
|
85
|
+
"@types/node": "18.0.0",
|
|
86
|
+
"@types/react": "^18.0.31",
|
|
87
|
+
"@types/react-dom": "^18.0.11",
|
|
88
|
+
"@types/react-transition-group": "^4.4.5",
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
90
|
+
"@typescript-eslint/parser": "^5.57.0",
|
|
91
|
+
"autoprefixer": "^10.4.14",
|
|
88
92
|
"babel-plugin-macros": "^3.1.0",
|
|
89
93
|
"cross-env": "^7.0.3",
|
|
90
|
-
"eslint": "^
|
|
91
|
-
"eslint-config-prettier": "^8.
|
|
92
|
-
"eslint-plugin-prettier": "^
|
|
93
|
-
"eslint-plugin-react": "^7.
|
|
94
|
-
"eslint-plugin-react-hooks": "^4.
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"react
|
|
99
|
-
"react-
|
|
100
|
-
"
|
|
94
|
+
"eslint": "^8.37.0",
|
|
95
|
+
"eslint-config-prettier": "^8.8.0",
|
|
96
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
97
|
+
"eslint-plugin-react": "^7.32.2",
|
|
98
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
99
|
+
"eslint-plugin-storybook": "^0.6.11",
|
|
100
|
+
"postcss": "^8.4.21",
|
|
101
|
+
"prettier": "^2.8.7",
|
|
102
|
+
"react": "^18.2.0",
|
|
103
|
+
"react-docgen-typescript-loader": "^3.7.2",
|
|
104
|
+
"react-dom": "^18.2.0",
|
|
105
|
+
"react-scripts": "5.0.1",
|
|
106
|
+
"release-it": "^15.10.1",
|
|
107
|
+
"rollup": "^3.20.2",
|
|
101
108
|
"rollup-plugin-copy": "^3.4.0",
|
|
102
|
-
"rollup-plugin-gzip": "^
|
|
109
|
+
"rollup-plugin-gzip": "^3.1.0",
|
|
103
110
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
104
|
-
"rollup-plugin-postcss": "^4.0.
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
112
|
+
"tailwindcss": "^3.3.1",
|
|
113
|
+
"ts-loader": "^9.4.2",
|
|
114
|
+
"ts-node": "^10.9.1",
|
|
115
|
+
"tslib": "^2.5.0",
|
|
116
|
+
"typescript": "^5.0.3",
|
|
117
|
+
"webpack": "^5"
|
|
111
118
|
},
|
|
112
119
|
"peerDependencies": {
|
|
113
|
-
"react": "^
|
|
114
|
-
"react-dom": "^
|
|
120
|
+
"react": "^18.2.0",
|
|
121
|
+
"react-dom": "^18.2.0"
|
|
122
|
+
},
|
|
123
|
+
"resolutions": {
|
|
124
|
+
"**/@types/react": "^18.0.31",
|
|
125
|
+
"@storybook/react/webpack": "^5",
|
|
126
|
+
"@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.cd77847.0"
|
|
115
127
|
}
|
|
116
128
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum AlignmentPosition {
|
|
2
|
-
TopLeft = 0,
|
|
3
|
-
TopRight = 1,
|
|
4
|
-
BottomLeft = 2,
|
|
5
|
-
BottomRight = 3
|
|
6
|
-
}
|
|
7
|
-
export declare class DomHandler {
|
|
8
|
-
static positionToTarget(target: HTMLElement, position?: AlignmentPosition): {
|
|
9
|
-
top: number;
|
|
10
|
-
left: number;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MarkupEvents } from '../../common-interfaces';
|
|
3
|
-
export interface OverlayPanelProps {
|
|
4
|
-
visible: boolean;
|
|
5
|
-
target?: React.MouseEvent<Element, MouseEvent> | HTMLElement | Element | null;
|
|
6
|
-
shouldTargetCloseOverlay?: boolean;
|
|
7
|
-
shouldMatchTargetWidth?: boolean;
|
|
8
|
-
shouldScrollCloseOverlay?: boolean;
|
|
9
|
-
shouldCheckZIndex?: boolean;
|
|
10
|
-
unmountWhenHidden?: boolean;
|
|
11
|
-
transitionDuration?: number;
|
|
12
|
-
showTransitionOptions?: string;
|
|
13
|
-
hideTransitionOptions?: string;
|
|
14
|
-
shown?: () => void;
|
|
15
|
-
hidden?: () => void;
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
}
|
|
18
|
-
export default function OverlayPanel({ visible, target, shouldTargetCloseOverlay, shouldMatchTargetWidth, shouldScrollCloseOverlay, shouldCheckZIndex, unmountWhenHidden, transitionDuration, showTransitionOptions, hideTransitionOptions, shown, hidden, markupCreated, children, }: OverlayPanelProps & MarkupEvents): JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{types → build/types}/src/components/form/date-time/date-time-day-selector.component.d.ts
RENAMED
|
File without changes
|
/package/{types → build/types}/src/components/form/date-time/date-time-month-selector.component.d.ts
RENAMED
|
File without changes
|
/package/{types → build/types}/src/components/form/date-time/date-time-range-selector.component.d.ts
RENAMED
|
File without changes
|
/package/{types → build/types}/src/components/form/date-time/date-time-time-selector.component.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/{types → build/types}/src/components/form/date-time/date-time-year-selector.component.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|