@dilicorp/ui 0.2.7 → 0.2.9

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.
Files changed (41) hide show
  1. package/dist/atoms/pluxee-icon/icon-card-slashed.d.ts +6 -0
  2. package/dist/atoms/pluxee-icon/icon-card-slashed.js +12 -0
  3. package/dist/atoms/pluxee-icon/icon-clock.d.ts +6 -0
  4. package/dist/atoms/pluxee-icon/icon-clock.js +7 -0
  5. package/dist/atoms/pluxee-icon/icon-download.js +2 -2
  6. package/dist/atoms/pluxee-icon/icon-eye-closed-outline.d.ts +6 -0
  7. package/dist/atoms/pluxee-icon/icon-eye-closed-outline.js +10 -0
  8. package/dist/atoms/pluxee-icon/icon-update-limit.d.ts +6 -0
  9. package/dist/atoms/pluxee-icon/icon-update-limit.js +8 -0
  10. package/dist/atoms/pluxee-icon/icon-user-group.d.ts +6 -0
  11. package/dist/atoms/pluxee-icon/icon-user-group.js +6 -0
  12. package/dist/atoms/pluxee-icon/pluxee-icon.js +11 -1
  13. package/dist/components/layout/authenticated-layout/authenticated-layout.d.ts +4 -0
  14. package/dist/components/layout/authenticated-layout/authenticated-layout.js +5 -5
  15. package/dist/components/layout/layout.d.ts +4 -0
  16. package/dist/components/layout/pluxee-logo/pluxee-logo-card.d.ts +8 -0
  17. package/dist/components/layout/pluxee-logo/pluxee-logo-card.js +14 -0
  18. package/dist/components/page-list/page-list.js +6 -2
  19. package/dist/components/side-navigation-bar/side-navigation-bar-item.js +5 -4
  20. package/dist/css/style.min.css +1 -1
  21. package/dist/index.d.ts +3 -1
  22. package/dist/index.js +3 -1
  23. package/dist/molecules/card-summary/card-summary-body.d.ts +12 -0
  24. package/dist/molecules/card-summary/card-summary-body.js +9 -0
  25. package/dist/molecules/card-summary/card-summary-container.d.ts +14 -0
  26. package/dist/molecules/card-summary/card-summary-container.js +19 -0
  27. package/dist/molecules/card-summary/card-summary-footer.d.ts +15 -0
  28. package/dist/molecules/card-summary/card-summary-footer.js +11 -0
  29. package/dist/molecules/card-summary/card-summary-header.d.ts +11 -0
  30. package/dist/molecules/card-summary/card-summary-header.js +9 -0
  31. package/dist/molecules/card-summary/card-summary.d.ts +39 -0
  32. package/dist/molecules/card-summary/card-summary.js +10 -0
  33. package/dist/molecules/panel/panel-container.d.ts +12 -0
  34. package/dist/molecules/panel/panel-container.js +9 -0
  35. package/dist/molecules/panel/panel-field.d.ts +12 -0
  36. package/dist/molecules/panel/panel-field.js +12 -0
  37. package/dist/molecules/panel/panel-group.d.ts +14 -0
  38. package/dist/molecules/panel/panel-group.js +9 -0
  39. package/dist/molecules/panel/panel.d.ts +31 -0
  40. package/dist/molecules/panel/panel.js +8 -0
  41. package/package.json +1 -1
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,8 @@ 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';
28
29
  // Components
29
30
  export * from './components/form-builder/form-builder';
30
31
  export * from './components/side-navigation-bar/side-navigation-bar';
@@ -61,3 +62,4 @@ export { default as windowsHelper } from './utils/window-helper';
61
62
  // Images
62
63
  export * from './components/layout/pluxee-logo/pluxee-logo';
63
64
  export * from './components/layout/pluxee-logo/pluxee-logo-inverted';
65
+ 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,11 @@
1
+ /// <reference types="react" />
2
+ declare type CardSummaryHeaderProps = {
3
+ label: string;
4
+ href?: string;
5
+ };
6
+ export declare const CardSummaryHeader: {
7
+ ({ label, href }: CardSummaryHeaderProps): JSX.Element;
8
+ displayName: string;
9
+ };
10
+ export {};
11
+ //# sourceMappingURL=card-summary-header.d.ts.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Link } from 'react-router-dom';
3
+ export const CardSummaryHeader = ({ label, href }) => {
4
+ return (React.createElement("div", { className: "dash-header" }, href
5
+ ? (React.createElement(Link, { className: "normal-link", to: href },
6
+ React.createElement("div", { className: "dash-title" }, label)))
7
+ : (React.createElement("div", { className: "dash-title" }, label))));
8
+ };
9
+ CardSummaryHeader.displayName = 'CardSummaryHeader';
@@ -0,0 +1,39 @@
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 }: {
14
+ label: string;
15
+ href?: string | undefined;
16
+ }): JSX.Element;
17
+ displayName: string;
18
+ };
19
+ Body: {
20
+ ({ label, href, labelClass }: {
21
+ label: import("react").ReactNode;
22
+ labelClass?: string | undefined;
23
+ href?: string | undefined;
24
+ }): JSX.Element;
25
+ displayName: string;
26
+ };
27
+ Footer: {
28
+ ({ label, href, button }: {
29
+ label: string;
30
+ href?: string | undefined;
31
+ button?: {
32
+ label: string;
33
+ href: string;
34
+ } | undefined;
35
+ }): JSX.Element;
36
+ displayName: string;
37
+ };
38
+ };
39
+ //# 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,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,8 @@
1
+ import { PanelContainer } from './panel-container';
2
+ import { PanelField } from './panel-field';
3
+ import { PanelGroup } from './panel-group';
4
+ export const Panel = {
5
+ Container: PanelContainer,
6
+ Group: PanelGroup,
7
+ Field: PanelField
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dilicorp/ui",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "A simple UI design for Dilicorp",
5
5
  "repository": {
6
6
  "type": "git",