@dilicorp/ui 0.2.31 → 0.2.33
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/dist/atoms/icon.d.ts +2 -1
- package/dist/atoms/icon.js +15 -3
- package/dist/atoms/input-datepicker.d.ts +1 -0
- package/dist/atoms/input-datepicker.js +2 -2
- package/dist/atoms/pluxee-icon/base-icon.js +1 -7
- package/dist/atoms/pluxee-icon/icon-card-slashed.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-card-slashed.js +12 -0
- package/dist/atoms/pluxee-icon/icon-circle.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-circle.js +6 -0
- package/dist/atoms/pluxee-icon/icon-clock.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-clock.js +7 -0
- package/dist/atoms/pluxee-icon/icon-download.js +2 -2
- package/dist/atoms/pluxee-icon/icon-eye-closed-outline.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-eye-closed-outline.js +10 -0
- package/dist/atoms/pluxee-icon/icon-identification.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-identification.js +10 -0
- package/dist/atoms/pluxee-icon/icon-negotiation.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-negotiation.js +6 -0
- package/dist/atoms/pluxee-icon/icon-play.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-play.js +6 -0
- package/dist/atoms/pluxee-icon/icon-qrcode.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-qrcode.js +17 -0
- package/dist/atoms/pluxee-icon/icon-update-limit.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-update-limit.js +8 -0
- package/dist/atoms/pluxee-icon/icon-user-group.d.ts +6 -0
- package/dist/atoms/pluxee-icon/icon-user-group.js +6 -0
- package/dist/atoms/pluxee-icon/pluxee-icon.d.ts +8 -1
- package/dist/atoms/pluxee-icon/pluxee-icon.js +24 -3
- package/dist/components/alert-template/alert-provider.js +1 -1
- package/dist/components/form-builder/components/button.d.ts +1 -1
- package/dist/components/form-builder/components/button.js +2 -1
- package/dist/components/form-builder/components/checkbox.d.ts +1 -0
- package/dist/components/form-builder/components/checkbox.js +4 -3
- package/dist/components/form-builder/components/input-currency.js +15 -2
- package/dist/components/form-builder/components/input-mask.js +15 -2
- package/dist/components/form-builder/components/input-prefix-suffix.js +15 -2
- package/dist/components/form-builder/components/input.d.ts +1 -0
- package/dist/components/form-builder/components/input.js +6 -4
- package/dist/components/form-builder/components/radio.d.ts +1 -0
- package/dist/components/form-builder/components/radio.js +4 -3
- package/dist/components/layout/authenticated-layout/authenticated-layout.d.ts +4 -0
- package/dist/components/layout/authenticated-layout/authenticated-layout.js +6 -6
- package/dist/components/layout/layout.d.ts +4 -0
- package/dist/components/layout/pluxee-logo/pluxee-logo-card.d.ts +8 -0
- package/dist/components/layout/pluxee-logo/pluxee-logo-card.js +14 -0
- package/dist/components/page-create/page-create.d.ts +1 -1
- package/dist/components/page-create/page-create.js +1 -1
- package/dist/components/page-list/page-list.js +6 -2
- package/dist/components/side-navigation-bar/side-navigation-bar-item.d.ts +1 -0
- package/dist/components/side-navigation-bar/side-navigation-bar-item.js +38 -13
- package/dist/components/side-navigation-bar/side-navigation-bar.js +2 -2
- package/dist/css/style.min.css +2 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +5 -2
- package/dist/molecules/card-summary/card-summary-body.d.ts +12 -0
- package/dist/molecules/card-summary/card-summary-body.js +9 -0
- package/dist/molecules/card-summary/card-summary-container.d.ts +14 -0
- package/dist/molecules/card-summary/card-summary-container.js +19 -0
- package/dist/molecules/card-summary/card-summary-footer.d.ts +15 -0
- package/dist/molecules/card-summary/card-summary-footer.js +11 -0
- package/dist/molecules/card-summary/card-summary-header.d.ts +12 -0
- package/dist/molecules/card-summary/card-summary-header.js +11 -0
- package/dist/molecules/card-summary/card-summary.d.ts +40 -0
- package/dist/molecules/card-summary/card-summary.js +10 -0
- package/dist/molecules/modal/modal.d.ts +11 -0
- package/dist/molecules/modal/modal.js +15 -0
- package/dist/molecules/panel/panel-container.d.ts +12 -0
- package/dist/molecules/panel/panel-container.js +9 -0
- package/dist/molecules/panel/panel-field.d.ts +12 -0
- package/dist/molecules/panel/panel-field.js +12 -0
- package/dist/molecules/panel/panel-group.d.ts +14 -0
- package/dist/molecules/panel/panel-group.js +9 -0
- package/dist/molecules/panel/panel.d.ts +31 -0
- package/dist/molecules/panel/panel.js +8 -0
- package/dist/molecules/player-video/modal-video.d.ts +24 -0
- package/dist/molecules/player-video/modal-video.js +18 -0
- package/dist/molecules/player-video/player-video.d.ts +31 -0
- package/dist/molecules/player-video/player-video.js +8 -0
- package/dist/molecules/player-video/thumb-video.d.ts +12 -0
- package/dist/molecules/player-video/thumb-video.js +11 -0
- package/dist/molecules/table-column-management.js +6 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export * from './atoms/separator';
|
|
|
14
14
|
export * from './atoms/spinner';
|
|
15
15
|
export * from './atoms/typography';
|
|
16
16
|
export * from './atoms/skeleton';
|
|
17
|
-
export * from './atoms/panel/panel';
|
|
18
17
|
export * from './atoms/pluxee-icon/pluxee-icon';
|
|
19
18
|
export * from './molecules/alert';
|
|
20
19
|
export * from './molecules/breadcrumb';
|
|
@@ -23,6 +22,10 @@ export * from './molecules/dropdown/dropdown';
|
|
|
23
22
|
export * from './molecules/field';
|
|
24
23
|
export * from './molecules/paginate';
|
|
25
24
|
export * from './molecules/table';
|
|
25
|
+
export * from './molecules/panel/panel';
|
|
26
|
+
export * from './molecules/card-summary/card-summary';
|
|
27
|
+
export * from './molecules/modal/modal';
|
|
28
|
+
export * from './molecules/player-video/player-video';
|
|
26
29
|
export * from './components/form-builder/form-builder';
|
|
27
30
|
export * from './components/side-navigation-bar/side-navigation-bar';
|
|
28
31
|
export * from './components/navbar/navbar';
|
|
@@ -34,7 +37,6 @@ export { Accordion } from './components/accordion/accordion';
|
|
|
34
37
|
export { AccordionItem } from './components/accordion/accordion-item';
|
|
35
38
|
export { AccordionHeader } from './components/accordion/accordion-header';
|
|
36
39
|
export { AccordionBody } from './components/accordion/accordion-body';
|
|
37
|
-
export * from './components/modal/modal';
|
|
38
40
|
export * from './components/layout/layout';
|
|
39
41
|
export { AlertProvider } from './components/alert-template/alert-provider';
|
|
40
42
|
export { AlertTemplate, AlertTemplateProps } from './components/alert-template/alert-template';
|
|
@@ -55,4 +57,5 @@ export { default as validationsHelper } from './utils/validations-helper';
|
|
|
55
57
|
export { default as windowsHelper } from './utils/window-helper';
|
|
56
58
|
export * from './components/layout/pluxee-logo/pluxee-logo';
|
|
57
59
|
export * from './components/layout/pluxee-logo/pluxee-logo-inverted';
|
|
60
|
+
export * from './components/layout/pluxee-logo/pluxee-logo-card';
|
|
58
61
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,6 @@ export * from './atoms/separator';
|
|
|
15
15
|
export * from './atoms/spinner';
|
|
16
16
|
export * from './atoms/typography';
|
|
17
17
|
export * from './atoms/skeleton';
|
|
18
|
-
export * from './atoms/panel/panel';
|
|
19
18
|
export * from './atoms/pluxee-icon/pluxee-icon';
|
|
20
19
|
// Molecules
|
|
21
20
|
export * from './molecules/alert';
|
|
@@ -25,6 +24,10 @@ export * from './molecules/dropdown/dropdown';
|
|
|
25
24
|
export * from './molecules/field';
|
|
26
25
|
export * from './molecules/paginate';
|
|
27
26
|
export * from './molecules/table';
|
|
27
|
+
export * from './molecules/panel/panel';
|
|
28
|
+
export * from './molecules/card-summary/card-summary';
|
|
29
|
+
export * from './molecules/modal/modal';
|
|
30
|
+
export * from './molecules/player-video/player-video';
|
|
28
31
|
// Components
|
|
29
32
|
export * from './components/form-builder/form-builder';
|
|
30
33
|
export * from './components/side-navigation-bar/side-navigation-bar';
|
|
@@ -37,7 +40,6 @@ export { Accordion } from './components/accordion/accordion';
|
|
|
37
40
|
export { AccordionItem } from './components/accordion/accordion-item';
|
|
38
41
|
export { AccordionHeader } from './components/accordion/accordion-header';
|
|
39
42
|
export { AccordionBody } from './components/accordion/accordion-body';
|
|
40
|
-
export * from './components/modal/modal';
|
|
41
43
|
export * from './components/layout/layout';
|
|
42
44
|
export { AlertProvider } from './components/alert-template/alert-provider';
|
|
43
45
|
export { AlertTemplate } from './components/alert-template/alert-template';
|
|
@@ -61,3 +63,4 @@ export { default as windowsHelper } from './utils/window-helper';
|
|
|
61
63
|
// Images
|
|
62
64
|
export * from './components/layout/pluxee-logo/pluxee-logo';
|
|
63
65
|
export * from './components/layout/pluxee-logo/pluxee-logo-inverted';
|
|
66
|
+
export * from './components/layout/pluxee-logo/pluxee-logo-card';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare type CardSummaryBodyProps = {
|
|
3
|
+
label: string | ReactNode;
|
|
4
|
+
labelClass?: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const CardSummaryBody: {
|
|
8
|
+
({ label, href, labelClass }: CardSummaryBodyProps): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=card-summary-body.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Link } from 'react-router-dom';
|
|
3
|
+
export const CardSummaryBody = ({ label, href, labelClass = 'fs-2' }) => {
|
|
4
|
+
return (React.createElement("div", { className: "dash-body" }, href
|
|
5
|
+
? (React.createElement(Link, { className: "normal-link", to: href },
|
|
6
|
+
React.createElement("div", { className: `value ${labelClass}` }, label)))
|
|
7
|
+
: (React.createElement("div", { className: `value ${labelClass}` }, label))));
|
|
8
|
+
};
|
|
9
|
+
CardSummaryBody.displayName = 'CardSummaryBody';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HtmlHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { SkeletonProps } from 'react-loading-skeleton';
|
|
3
|
+
declare type CardSummaryContainerProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
skeleton?: SkeletonProps;
|
|
7
|
+
color?: 'primary' | 'primary-contrast' | 'success' | 'default';
|
|
8
|
+
} & HtmlHTMLAttributes<HTMLDivElement>;
|
|
9
|
+
export declare const CardSummaryContainer: {
|
|
10
|
+
({ children, className, loading, color, skeleton }: CardSummaryContainerProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=card-summary-container.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Skeleton } from '../../atoms/skeleton';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
export const CardSummaryContainer = ({ children, className, loading, color = 'primary-contrast', skeleton = {
|
|
5
|
+
height: 188,
|
|
6
|
+
count: 1,
|
|
7
|
+
duration: 0.9,
|
|
8
|
+
containerClassName: 'col',
|
|
9
|
+
style: {
|
|
10
|
+
marginTop: 32, marginBottom: '2rem'
|
|
11
|
+
}
|
|
12
|
+
} }) => {
|
|
13
|
+
if (loading) {
|
|
14
|
+
return React.createElement(Skeleton, Object.assign({}, skeleton));
|
|
15
|
+
}
|
|
16
|
+
const classes = classNames(`dashboard-card-item ${color}`, className);
|
|
17
|
+
return (React.createElement("div", { className: classes }, children));
|
|
18
|
+
};
|
|
19
|
+
CardSummaryContainer.displayName = 'CardSummaryContainer';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type CardSummaryFooterProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
button?: {
|
|
6
|
+
label: string;
|
|
7
|
+
href: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const CardSummaryFooter: {
|
|
11
|
+
({ label, href, button }: CardSummaryFooterProps): JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=card-summary-footer.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Link } from 'react-router-dom';
|
|
3
|
+
import { Button } from '../../atoms/button';
|
|
4
|
+
export const CardSummaryFooter = ({ label, href, button }) => {
|
|
5
|
+
return (React.createElement("div", { className: "dash-footer" },
|
|
6
|
+
href
|
|
7
|
+
? (React.createElement(Link, { className: "normal-link", to: href }, label))
|
|
8
|
+
: React.createElement(React.Fragment, null, label),
|
|
9
|
+
button && React.createElement(Button, { small: true, href: button.href }, button.label)));
|
|
10
|
+
};
|
|
11
|
+
CardSummaryFooter.displayName = 'CardSummaryFooter';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type CardSummaryHeaderProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const CardSummaryHeader: {
|
|
8
|
+
({ label, href, className }: CardSummaryHeaderProps): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=card-summary-header.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Link } from 'react-router-dom';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
export const CardSummaryHeader = ({ label, href, className }) => {
|
|
5
|
+
const classes = classNames('dash-title', className);
|
|
6
|
+
return (React.createElement("div", { className: "dash-header" }, href
|
|
7
|
+
? (React.createElement(Link, { className: "normal-link", to: href },
|
|
8
|
+
React.createElement("div", { className: classes }, label)))
|
|
9
|
+
: (React.createElement("div", { className: classes }, label))));
|
|
10
|
+
};
|
|
11
|
+
CardSummaryHeader.displayName = 'CardSummaryHeader';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const CardSummary: {
|
|
3
|
+
Container: {
|
|
4
|
+
({ children, className, loading, color, skeleton }: {
|
|
5
|
+
children: import("react").ReactNode;
|
|
6
|
+
loading?: boolean | undefined;
|
|
7
|
+
skeleton?: import("react-loading-skeleton").SkeletonProps | undefined;
|
|
8
|
+
color?: "primary" | "success" | "default" | "primary-contrast" | undefined;
|
|
9
|
+
} & import("react").HtmlHTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
Header: {
|
|
13
|
+
({ label, href, className }: {
|
|
14
|
+
label: string;
|
|
15
|
+
href?: string | undefined;
|
|
16
|
+
className?: string | undefined;
|
|
17
|
+
}): JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
Body: {
|
|
21
|
+
({ label, href, labelClass }: {
|
|
22
|
+
label: import("react").ReactNode;
|
|
23
|
+
labelClass?: string | undefined;
|
|
24
|
+
href?: string | undefined;
|
|
25
|
+
}): JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
Footer: {
|
|
29
|
+
({ label, href, button }: {
|
|
30
|
+
label: string;
|
|
31
|
+
href?: string | undefined;
|
|
32
|
+
button?: {
|
|
33
|
+
label: string;
|
|
34
|
+
href: string;
|
|
35
|
+
} | undefined;
|
|
36
|
+
}): JSX.Element;
|
|
37
|
+
displayName: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=card-summary.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CardSummaryBody } from './card-summary-body';
|
|
2
|
+
import { CardSummaryContainer } from './card-summary-container';
|
|
3
|
+
import { CardSummaryFooter } from './card-summary-footer';
|
|
4
|
+
import { CardSummaryHeader } from './card-summary-header';
|
|
5
|
+
export const CardSummary = {
|
|
6
|
+
Container: CardSummaryContainer,
|
|
7
|
+
Header: CardSummaryHeader,
|
|
8
|
+
Body: CardSummaryBody,
|
|
9
|
+
Footer: CardSummaryFooter
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AlertRef } from '../../molecules/alert';
|
|
3
|
+
export declare type ModalProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
title?: string;
|
|
6
|
+
closeFn?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
innerRef?: React.ForwardedRef<AlertRef>;
|
|
9
|
+
};
|
|
10
|
+
export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<AlertRef>>;
|
|
11
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Button } from '../../atoms/button';
|
|
3
|
+
import { Alert } from '../../molecules/alert';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
export const Modal = forwardRef((props, ref) => {
|
|
6
|
+
const { children, title, closeFn, className, innerRef } = props;
|
|
7
|
+
const classes = classNames(className !== null && className !== void 0 ? className : 'alert-small');
|
|
8
|
+
return (React.createElement(Alert, { ref: ref !== null && ref !== void 0 ? ref : innerRef, className: classes },
|
|
9
|
+
React.createElement("div", { className: "modal modal-sm" },
|
|
10
|
+
React.createElement("div", { className: "modal-header" },
|
|
11
|
+
React.createElement("div", { className: "title" }, title),
|
|
12
|
+
React.createElement(Button, { small: true, onClick: closeFn }, "\u00D7")),
|
|
13
|
+
React.createElement("div", { className: "modal-body" }, children))));
|
|
14
|
+
});
|
|
15
|
+
Modal.displayName = 'Modal';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type PanelContainerProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
type?: 'row' | 'flex';
|
|
5
|
+
containerClassName?: string;
|
|
6
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
export declare const PanelContainer: {
|
|
8
|
+
({ children, className, type, containerClassName }: PanelContainerProps): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=panel-container.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
export const PanelContainer = ({ children, className, type = 'row', containerClassName }) => {
|
|
4
|
+
const classes = classNames(className, type === 'row' ? 'row' : 'd-flex');
|
|
5
|
+
const classesContainer = classNames(containerClassName, 'panel-container');
|
|
6
|
+
return (React.createElement("div", { className: classesContainer },
|
|
7
|
+
React.createElement("div", { className: classes }, children)));
|
|
8
|
+
};
|
|
9
|
+
PanelContainer.displayName = 'PanelContainer';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type PanelFieldProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
value?: React.ReactNode;
|
|
5
|
+
forceShow?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const PanelField: {
|
|
8
|
+
({ label, value, forceShow }: PanelFieldProps): JSX.Element | null;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=panel-field.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const PanelField = ({ label, value, forceShow = true }) => {
|
|
3
|
+
if (!forceShow && !value)
|
|
4
|
+
return null;
|
|
5
|
+
return (React.createElement("div", { className: "panel-field" },
|
|
6
|
+
label ? React.createElement(React.Fragment, null,
|
|
7
|
+
label,
|
|
8
|
+
":") : '',
|
|
9
|
+
" ",
|
|
10
|
+
React.createElement("strong", null, value)));
|
|
11
|
+
};
|
|
12
|
+
PanelField.displayName = 'PanelField';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColProps } from '../../atoms/col';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
label?: string;
|
|
5
|
+
value?: React.ReactNode | string;
|
|
6
|
+
big?: boolean;
|
|
7
|
+
upper?: boolean;
|
|
8
|
+
} & ColProps;
|
|
9
|
+
export declare const PanelGroup: {
|
|
10
|
+
({ value, label, size, big, upper }: Props): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=panel-group.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Col } from '../../atoms/col';
|
|
3
|
+
export const PanelGroup = ({ value, label, size = [12, 6], big = false, upper = true }) => {
|
|
4
|
+
return (React.createElement(Col, { size: size },
|
|
5
|
+
React.createElement("div", { className: "panel-group" },
|
|
6
|
+
React.createElement("label", null, label),
|
|
7
|
+
React.createElement("div", { className: `${upper ? ' upper' : ''} text${big ? ' big' : ''}` }, value || '-'))));
|
|
8
|
+
};
|
|
9
|
+
PanelGroup.displayName = 'PanelGroup';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Panel: {
|
|
3
|
+
Container: {
|
|
4
|
+
({ children, className, type, containerClassName }: {
|
|
5
|
+
children: import("react").ReactNode;
|
|
6
|
+
type?: "row" | "flex" | undefined;
|
|
7
|
+
containerClassName?: string | undefined;
|
|
8
|
+
} & import("react").HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
Group: {
|
|
12
|
+
({ value, label, size, big, upper }: {
|
|
13
|
+
label?: string | undefined;
|
|
14
|
+
value?: import("react").ReactNode;
|
|
15
|
+
big?: boolean | undefined;
|
|
16
|
+
upper?: boolean | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
size?: boolean | ("none" | 1 | 2 | 3 | 4 | 5 | "auto" | 6 | 7 | 8 | 9 | 10 | 11 | 12) | ("none" | 1 | 2 | 3 | 4 | 5 | "auto" | 6 | 7 | 8 | 9 | 10 | 11 | 12)[] | undefined;
|
|
19
|
+
} & import("react").HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
Field: {
|
|
23
|
+
({ label, value, forceShow }: {
|
|
24
|
+
label: string;
|
|
25
|
+
value?: import("react").ReactNode;
|
|
26
|
+
forceShow?: boolean | undefined;
|
|
27
|
+
}): JSX.Element | null;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=panel.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AlertRef } from '../alert';
|
|
3
|
+
declare type SourceType = {
|
|
4
|
+
src: string;
|
|
5
|
+
type: 'mp4' | 'ogg' | 'webm';
|
|
6
|
+
};
|
|
7
|
+
declare type SubtitleType = {
|
|
8
|
+
src: string;
|
|
9
|
+
lang: string;
|
|
10
|
+
label: string;
|
|
11
|
+
};
|
|
12
|
+
declare type ModalVideoProps = {
|
|
13
|
+
closeFn?: () => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
innerRef?: React.ForwardedRef<AlertRef>;
|
|
16
|
+
sources: SourceType[];
|
|
17
|
+
subtitles?: SubtitleType[];
|
|
18
|
+
autoplay?: boolean;
|
|
19
|
+
muted?: boolean;
|
|
20
|
+
controls?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare const ModalVideo: React.ForwardRefExoticComponent<ModalVideoProps & React.RefAttributes<AlertRef>>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=modal-video.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Alert } from '../alert';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { Icon } from '../../atoms/icon';
|
|
5
|
+
export const ModalVideo = forwardRef((props, ref) => {
|
|
6
|
+
const { closeFn, className, innerRef, sources, subtitles, autoplay = true, muted = true, controls = true } = props;
|
|
7
|
+
const classes = classNames(className);
|
|
8
|
+
return (React.createElement(Alert, { ref: ref !== null && ref !== void 0 ? ref : innerRef, className: classes },
|
|
9
|
+
React.createElement("div", { className: "modal" },
|
|
10
|
+
React.createElement("div", { className: "d-flex justify-content-end container-player-close" },
|
|
11
|
+
React.createElement("button", { className: "button-player-close", onClick: closeFn },
|
|
12
|
+
React.createElement(Icon, { pluxee: true, icon: "fa-delete", size: "lg" }))),
|
|
13
|
+
React.createElement("div", { className: "modal-body" },
|
|
14
|
+
React.createElement("video", { className: "player-video-src", controls: controls, autoPlay: autoplay, muted: muted },
|
|
15
|
+
sources && sources.map(item => React.createElement("source", { key: item.src, src: item.src, type: `video/${item.type}` })),
|
|
16
|
+
subtitles && subtitles.map(item => React.createElement("track", { key: item.src, src: item.src, kind: "subtitles", srcLang: item.lang, label: item.label })))))));
|
|
17
|
+
});
|
|
18
|
+
ModalVideo.displayName = 'ModalVideo';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export * from './thumb-video';
|
|
3
|
+
export * from './modal-video';
|
|
4
|
+
export declare const PlayerVideo: {
|
|
5
|
+
Modal: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
closeFn?: (() => void) | undefined;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
innerRef?: import("react").ForwardedRef<import("../alert").AlertRef> | undefined;
|
|
9
|
+
sources: {
|
|
10
|
+
src: string;
|
|
11
|
+
type: "mp4" | "ogg" | "webm";
|
|
12
|
+
}[];
|
|
13
|
+
subtitles?: {
|
|
14
|
+
src: string;
|
|
15
|
+
lang: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}[] | undefined;
|
|
18
|
+
autoplay?: boolean | undefined;
|
|
19
|
+
muted?: boolean | undefined;
|
|
20
|
+
controls?: boolean | undefined;
|
|
21
|
+
} & import("react").RefAttributes<import("../alert").AlertRef>>;
|
|
22
|
+
Thumb: ({ thumbSrc, width, height, className, onClick, children }: {
|
|
23
|
+
thumbSrc: string;
|
|
24
|
+
onClick?: (() => void) | undefined;
|
|
25
|
+
width?: string | number | undefined;
|
|
26
|
+
height?: string | number | undefined;
|
|
27
|
+
className?: string | undefined;
|
|
28
|
+
children?: import("react").ReactNode;
|
|
29
|
+
}) => JSX.Element;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=player-video.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type ThumbVideoProps = {
|
|
3
|
+
thumbSrc: string;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
height?: string | number;
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const ThumbVideo: ({ thumbSrc, width, height, className, onClick, children }: ThumbVideoProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=thumb-video.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { Icon } from '../../atoms/icon';
|
|
4
|
+
export const ThumbVideo = ({ thumbSrc, width = 250, height = 'auto', className, onClick, children }) => {
|
|
5
|
+
const classes = classNames(className, 'btn-thumb');
|
|
6
|
+
return (React.createElement(React.Fragment, null,
|
|
7
|
+
React.createElement("button", { className: classes, onClick: onClick },
|
|
8
|
+
React.createElement(Icon, { icon: "fa-play", pluxee: true, size: "lg" }),
|
|
9
|
+
React.createElement("img", { className: "img-thumb", src: thumbSrc, width: width, height: height })),
|
|
10
|
+
children));
|
|
11
|
+
};
|
|
@@ -41,12 +41,16 @@ export const TableColumnManagement = (props) => {
|
|
|
41
41
|
};
|
|
42
42
|
const childrenFiltered = React.Children.map(children, (child) => {
|
|
43
43
|
if (React.isValidElement(child)) {
|
|
44
|
+
let invalids = 0;
|
|
44
45
|
const childrenWithIndex = React.Children.map(child.props.children, (subChild, subIndex) => {
|
|
45
46
|
if (subChild === null || subChild === void 0 ? void 0 : subChild.props) {
|
|
46
|
-
return (Object.assign(Object.assign({}, subChild), { props: Object.assign(Object.assign({}, subChild.props), { index: subIndex }) }));
|
|
47
|
+
return (Object.assign(Object.assign({}, subChild), { props: Object.assign(Object.assign({}, subChild.props), { index: (subIndex - invalids) }) }));
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
invalids++;
|
|
47
51
|
}
|
|
48
52
|
});
|
|
49
|
-
childrenWithIndex.sort(
|
|
53
|
+
childrenWithIndex.sort(sortChildren);
|
|
50
54
|
const filteredChildren = React.Children.toArray(childrenWithIndex).filter(filterChildren);
|
|
51
55
|
return (Object.assign(Object.assign({}, child), { props: Object.assign(Object.assign({}, child.props), { children: filteredChildren }) }));
|
|
52
56
|
}
|