@dilicorp/ui 0.0.56 → 0.0.57

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 (68) hide show
  1. package/dist/atoms/button.js +2 -2
  2. package/dist/atoms/checkbox.js +2 -2
  3. package/dist/atoms/col.js +2 -2
  4. package/dist/atoms/container.js +2 -2
  5. package/dist/atoms/icon.js +2 -2
  6. package/dist/atoms/image.js +2 -2
  7. package/dist/atoms/input-datepicker.js +3 -2
  8. package/dist/atoms/input.js +2 -2
  9. package/dist/atoms/label.js +2 -2
  10. package/dist/atoms/link.js +3 -3
  11. package/dist/atoms/radio.js +2 -2
  12. package/dist/atoms/row.js +2 -2
  13. package/dist/atoms/separator.js +2 -2
  14. package/dist/atoms/spinner.js +2 -2
  15. package/dist/atoms/typography.js +2 -2
  16. package/dist/components/accordion/accordion-body.js +2 -3
  17. package/dist/components/accordion/accordion-header.js +2 -4
  18. package/dist/components/accordion/accordion-item.js +2 -2
  19. package/dist/components/accordion/accordion.js +5 -7
  20. package/dist/components/alert-template/alert-provider.js +2 -2
  21. package/dist/components/alert-template/alert-template.js +2 -6
  22. package/dist/components/form-builder/_partials/form-group.js +3 -8
  23. package/dist/components/form-builder/components/button.js +4 -5
  24. package/dist/components/form-builder/components/checkbox.js +2 -4
  25. package/dist/components/form-builder/components/datepicker.js +2 -2
  26. package/dist/components/form-builder/components/dropzone.js +4 -19
  27. package/dist/components/form-builder/components/input-currency.js +2 -2
  28. package/dist/components/form-builder/components/input-mask.js +2 -2
  29. package/dist/components/form-builder/components/input-prefix-suffix.js +8 -11
  30. package/dist/components/form-builder/components/input.js +6 -6
  31. package/dist/components/form-builder/components/password.js +2 -3
  32. package/dist/components/form-builder/components/radio.js +2 -4
  33. package/dist/components/form-builder/components/select.js +3 -2
  34. package/dist/components/form-builder/form-builder-element.js +2 -3
  35. package/dist/components/form-builder/form-builder.js +7 -12
  36. package/dist/components/navbar/navbar.js +4 -8
  37. package/dist/components/page-create/page-create.js +2 -12
  38. package/dist/components/page-list/column-management-components/button-config.js +3 -3
  39. package/dist/components/page-list/column-management-components/container-drag-drop.js +3 -2
  40. package/dist/components/page-list/column-management-components/item-drag-drop.js +2 -4
  41. package/dist/components/page-list/column-management-components/modal-config.js +5 -34
  42. package/dist/components/page-list/filter-components/button-filter-clear.js +2 -3
  43. package/dist/components/page-list/filter-components/button-filter.js +2 -4
  44. package/dist/components/page-list/filter-components/button-filters.js +2 -4
  45. package/dist/components/page-list/filter-components/filter-form.js +3 -3
  46. package/dist/components/page-list/filters/filter-datepicker.js +2 -6
  47. package/dist/components/page-list/filters/filter-input.js +3 -11
  48. package/dist/components/page-list/filters/filter-select.js +2 -5
  49. package/dist/components/page-list/page-list-filters.js +2 -2
  50. package/dist/components/page-list/page-list-get-filters.js +3 -22
  51. package/dist/components/page-list/page-list.js +3 -16
  52. package/dist/components/page-show/page-show.js +3 -13
  53. package/dist/components/side-navigation-bar/side-navigation-bar-item.js +3 -8
  54. package/dist/components/side-navigation-bar/side-navigation-bar.js +8 -15
  55. package/dist/components/tabs/tab-list.js +2 -2
  56. package/dist/components/tabs/tab-panel.js +2 -2
  57. package/dist/components/tabs/tab.js +2 -2
  58. package/dist/components/tabs/tabs.js +8 -10
  59. package/dist/molecules/alert.js +4 -8
  60. package/dist/molecules/breadcrumb.js +4 -6
  61. package/dist/molecules/card.js +2 -7
  62. package/dist/molecules/dropdown/dropdown-item.js +4 -4
  63. package/dist/molecules/dropdown/dropdown.js +12 -13
  64. package/dist/molecules/field.js +2 -4
  65. package/dist/molecules/paginate.js +2 -4
  66. package/dist/molecules/table.js +13 -16
  67. package/package.json +3 -3
  68. package/tsconfig.json +1 -1
@@ -1,14 +1,10 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Dropdown } from '../../molecules/dropdown/dropdown';
3
3
  import { Icon } from '../../atoms/icon';
4
4
  import { Image } from '../../atoms/image';
5
5
  export const Navbar = (props) => {
6
6
  const { image, dropdown } = props;
7
- return (React.createElement("div", { className: "navbar mb-3" },
8
- React.createElement("div", { className: "navbar-profile" },
9
- image
10
- ? React.createElement(Image, Object.assign({}, image, { circle: true, width: "38px", height: "38px", objectFit: "cover", className: "me-2" }))
11
- : (React.createElement("div", { className: "image-profile circle me-2" },
12
- React.createElement(Icon, { icon: "faUserAlt" }))),
13
- React.createElement(Dropdown, Object.assign({}, dropdown)))));
7
+ return (_jsx("div", Object.assign({ className: "navbar mb-3" }, { children: _jsxs("div", Object.assign({ className: "navbar-profile" }, { children: [image
8
+ ? _jsx(Image, Object.assign({}, image, { circle: true, width: "38px", height: "38px", objectFit: "cover", className: "me-2" }), void 0)
9
+ : (_jsx("div", Object.assign({ className: "image-profile circle me-2" }, { children: _jsx(Icon, { icon: "faUserAlt" }, void 0) }), void 0)), _jsx(Dropdown, Object.assign({}, dropdown), void 0)] }), void 0) }), void 0));
14
10
  };
@@ -1,16 +1,6 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { Button, Col, Dropdown, FormBuilder, Icon, Link, Row, Separator, Typography } from '../../';
3
3
  export const PageCreate = (props) => {
4
4
  const { title, extraButtons = [], cancelButton, onSubmit, data } = props;
5
- return (React.createElement(React.Fragment, null,
6
- React.createElement(Row, { className: "mb-3" },
7
- React.createElement(Col, null,
8
- React.createElement(Typography, { lineBottom: true, variant: "h4", tag: "h1" }, title)),
9
- React.createElement(Col, { className: "ms-auto" },
10
- Boolean(extraButtons.length) && (React.createElement(Dropdown, { color: "default", className: "me-2", label: React.createElement(Icon, { icon: "faEllipsisH" }), items: extraButtons })),
11
- Boolean(cancelButton) && (React.createElement(Button, { tag: Link, href: cancelButton === null || cancelButton === void 0 ? void 0 : cancelButton.uri, color: "danger" },
12
- React.createElement(Icon, { icon: "faAngleLeft", className: "me-1" }), cancelButton === null || cancelButton === void 0 ? void 0 :
13
- cancelButton.label)))),
14
- React.createElement(Separator, null),
15
- React.createElement(FormBuilder, { data: data, onSubmit: onSubmit })));
5
+ return (_jsxs(_Fragment, { children: [_jsxs(Row, Object.assign({ className: "mb-3" }, { children: [_jsx(Col, { children: _jsx(Typography, Object.assign({ lineBottom: true, variant: "h4", tag: "h1" }, { children: title }), void 0) }, void 0), _jsxs(Col, Object.assign({ className: "ms-auto" }, { children: [Boolean(extraButtons.length) && (_jsx(Dropdown, { color: "default", className: "me-2", label: _jsx(Icon, { icon: "faEllipsisH" }, void 0), items: extraButtons }, void 0)), Boolean(cancelButton) && (_jsxs(Button, Object.assign({ tag: Link, href: cancelButton === null || cancelButton === void 0 ? void 0 : cancelButton.uri, color: "danger" }, { children: [_jsx(Icon, { icon: "faAngleLeft", className: "me-1" }, void 0), cancelButton === null || cancelButton === void 0 ? void 0 : cancelButton.label] }), void 0))] }), void 0)] }), void 0), _jsx(Separator, {}, void 0), _jsx(FormBuilder, { data: data, onSubmit: onSubmit }, void 0)] }, void 0));
16
6
  };
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import classNames from 'classnames';
3
3
  import { Icon } from '../../../atoms/icon';
4
4
  import { Dropdown } from '../../../molecules/dropdown/dropdown';
5
5
  export const ButtonConfig = (props) => {
6
6
  const { className, title, show = true, onClick } = props;
7
7
  const classes = classNames(className, show ? 'd-inline-block' : 'd-none', 'btn btn-default mb-3 ms-3');
8
- return (React.createElement(Dropdown, { tag: 'div', color: "default", className: classes, align: "right", label: React.createElement(Icon, { icon: "faCog" }), items: [
8
+ return (_jsx(Dropdown, { tag: 'div', color: "default", className: classes, align: "right", label: _jsx(Icon, { icon: "faCog" }, void 0), items: [
9
9
  {
10
10
  label: title,
11
11
  onClick: () => {
@@ -13,5 +13,5 @@ export const ButtonConfig = (props) => {
13
13
  onClick();
14
14
  }
15
15
  }
16
- ] }));
16
+ ] }, void 0));
17
17
  };
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import React from "react";
2
3
  import update from 'immutability-helper';
3
4
  import { ItemDragDrop } from "./item-drag-drop";
@@ -15,7 +16,7 @@ export const ContainerDragDrop = ({ items, setItems }) => {
15
16
  });
16
17
  }, []);
17
18
  const renderCard = React.useCallback((card, index) => {
18
- return (React.createElement(ItemDragDrop, { key: card.id, index: index, id: card.id, title: card.title, moveCard: moveCard }));
19
+ return (_jsx(ItemDragDrop, { index: index, id: card.id, title: card.title, moveCard: moveCard }, card.id));
19
20
  }, []);
20
- return (React.createElement("div", { style: { width: 400 } }, items.map((card, i) => renderCard(card, i))));
21
+ return (_jsx("div", Object.assign({ style: { width: 400 } }, { children: items.map((card, i) => renderCard(card, i)) }), void 0));
21
22
  };
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import React from "react";
2
3
  import { useDrag, useDrop } from 'react-dnd';
3
4
  import { Icon } from "../../../atoms/icon";
@@ -58,8 +59,5 @@ export const ItemDragDrop = ({ id, title, index, moveCard }) => {
58
59
  });
59
60
  const opacity = isDragging ? 0 : 1;
60
61
  drag(drop(ref));
61
- return (React.createElement("div", { ref: ref, className: 'item-drag mb-2', style: { opacity }, "data-handler-id": handlerId },
62
- React.createElement(Icon, { icon: "fa-grip-vertical", className: "me-2" }),
63
- " ",
64
- title));
62
+ return (_jsxs("div", Object.assign({ ref: ref, className: 'item-drag mb-2', style: { opacity }, "data-handler-id": handlerId }, { children: [_jsx(Icon, { icon: "fa-grip-vertical", className: "me-2" }, void 0), " ", title] }), void 0));
65
63
  };
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import React from "react";
2
3
  import { DndProvider } from 'react-dnd';
3
4
  import { HTML5Backend } from 'react-dnd-html5-backend';
@@ -17,38 +18,8 @@ export const ModalConfig = ({ title, description, items, defaultConfig, cancelLa
17
18
  const onClickRestoreDefault = () => {
18
19
  setColumns(defaultConfig);
19
20
  };
20
- return (React.createElement("div", { className: "modal modal-lg" },
21
- React.createElement("div", { className: "modal-header" },
22
- React.createElement("div", { className: "title" }, title),
23
- React.createElement(Button, { small: true, onClick: closeFn }, "\u00D7")),
24
- React.createElement("div", { className: "modal-body" },
25
- React.createElement("p", { className: "my-4 p-2" }, description),
26
- React.createElement("div", { className: "row" },
27
- React.createElement("div", { className: "col-6" },
28
- React.createElement("div", { className: "drag-drop-container" },
29
- React.createElement("div", { className: "drag-drop-header" },
30
- React.createElement("p", null, availableItemsTitle),
31
- React.createElement("span", { className: "badge" }, columnsOrdered.length)),
32
- React.createElement("div", { className: "drag-drop-body" },
33
- React.createElement("ul", { className: "list-unstyled" }, columnsOrdered.map(column => (React.createElement("li", { key: `column-${column.id}`, className: 'mb-2' },
34
- React.createElement("label", { className: "position-relative ps-4", htmlFor: `column-${column.id}` },
35
- React.createElement("input", { className: "checkbox-primary", type: "checkbox", id: `column-${column.id}`, defaultChecked: column.show, checked: column.show, onClick: () => handleCheckColumn(column.id) }),
36
- React.createElement("div", { className: "checkbox-container" }),
37
- ' ',
38
- column.title)))))))),
39
- React.createElement("div", { className: "col-6" },
40
- React.createElement("div", { className: "drag-drop-container" },
41
- React.createElement("div", { className: "drag-drop-header" },
42
- React.createElement("p", null, orderItemsTitle),
43
- React.createElement("span", { className: "badge" }, columnsVisible.length),
44
- React.createElement(Button, { color: "primary", type: "button", onClick: onClickRestoreDefault, outline: true }, restoreDefaultLabel)),
45
- React.createElement("div", { className: "drag-drop-body" },
46
- React.createElement(DndProvider, { backend: HTML5Backend },
47
- React.createElement(ContainerDragDrop, { items: columnsVisible, setItems: setColumns })))))),
48
- React.createElement("div", { className: "d-flex justify-content-between mt-4" },
49
- React.createElement(Button, { outline: true, title: cancelLabel, color: "primary", onClick: closeFn }, cancelLabel),
50
- React.createElement(Button, { title: confirmLabel, color: "primary", onClick: () => {
51
- confirmFn(columns);
52
- closeFn();
53
- } }, confirmLabel)))));
21
+ return (_jsxs("div", Object.assign({ className: "modal modal-lg" }, { children: [_jsxs("div", Object.assign({ className: "modal-header" }, { children: [_jsx("div", Object.assign({ className: "title" }, { children: title }), void 0), _jsx(Button, Object.assign({ small: true, onClick: closeFn }, { children: "\u00D7" }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "modal-body" }, { children: [_jsx("p", Object.assign({ className: "my-4 p-2" }, { children: description }), void 0), _jsxs("div", Object.assign({ className: "row" }, { children: [_jsx("div", Object.assign({ className: "col-6" }, { children: _jsxs("div", Object.assign({ className: "drag-drop-container" }, { children: [_jsxs("div", Object.assign({ className: "drag-drop-header" }, { children: [_jsx("p", { children: availableItemsTitle }, void 0), _jsx("span", Object.assign({ className: "badge" }, { children: columnsOrdered.length }), void 0)] }), void 0), _jsx("div", Object.assign({ className: "drag-drop-body" }, { children: _jsx("ul", Object.assign({ className: "list-unstyled" }, { children: columnsOrdered.map(column => (_jsx("li", Object.assign({ className: 'mb-2' }, { children: _jsxs("label", Object.assign({ className: "position-relative ps-4", htmlFor: `column-${column.id}` }, { children: [_jsx("input", { className: "checkbox-primary", type: "checkbox", id: `column-${column.id}`, defaultChecked: column.show, checked: column.show, onClick: () => handleCheckColumn(column.id) }, void 0), _jsx("div", { className: "checkbox-container" }, void 0), ' ', column.title] }), void 0) }), `column-${column.id}`))) }), void 0) }), void 0)] }), void 0) }), void 0), _jsx("div", Object.assign({ className: "col-6" }, { children: _jsxs("div", Object.assign({ className: "drag-drop-container" }, { children: [_jsxs("div", Object.assign({ className: "drag-drop-header" }, { children: [_jsx("p", { children: orderItemsTitle }, void 0), _jsx("span", Object.assign({ className: "badge" }, { children: columnsVisible.length }), void 0), _jsx(Button, Object.assign({ color: "primary", type: "button", onClick: onClickRestoreDefault, outline: true }, { children: restoreDefaultLabel }), void 0)] }), void 0), _jsx("div", Object.assign({ className: "drag-drop-body" }, { children: _jsx(DndProvider, Object.assign({ backend: HTML5Backend }, { children: _jsx(ContainerDragDrop, { items: columnsVisible, setItems: setColumns }, void 0) }), void 0) }), void 0)] }), void 0) }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "d-flex justify-content-between mt-4" }, { children: [_jsx(Button, Object.assign({ outline: true, title: cancelLabel, color: "primary", onClick: closeFn }, { children: cancelLabel }), void 0), _jsx(Button, Object.assign({ title: confirmLabel, color: "primary", onClick: () => {
22
+ confirmFn(columns);
23
+ closeFn();
24
+ } }, { children: confirmLabel }), void 0)] }), void 0)] }), void 0)] }), void 0));
54
25
  };
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import classNames from 'classnames';
3
4
  import { Icon } from '../../../atoms/icon';
@@ -16,7 +17,5 @@ export const ButtonFilterClear = (props) => {
16
17
  search: uriHelper.stringify(Object.assign(Object.assign({}, elements), { page: 1 }))
17
18
  });
18
19
  }, [search, navigate]);
19
- return (React.createElement(Button, { color: "warning", className: classes, onClick: handleClick },
20
- React.createElement(Icon, { icon: "faTimes", className: "me-2" }),
21
- clearLabel));
20
+ return (_jsxs(Button, Object.assign({ color: "warning", className: classes, onClick: handleClick }, { children: [_jsx(Icon, { icon: "faTimes", className: "me-2" }, void 0), clearLabel] }), void 0));
22
21
  };
@@ -1,11 +1,9 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import classNames from 'classnames';
3
3
  import { Icon } from '../../../atoms/icon';
4
4
  import { Button } from '../../../atoms/button';
5
5
  export const ButtonFilter = (props) => {
6
6
  const { className, submitLabel, show = true } = props;
7
7
  const classes = classNames(className, show ? 'd-inline-block' : 'd-none', 'mb-3');
8
- return (React.createElement(Button, { type: "submit", className: classes },
9
- React.createElement(Icon, { icon: "faSearch", className: "me-2" }),
10
- submitLabel));
8
+ return (_jsxs(Button, Object.assign({ type: "submit", className: classes }, { children: [_jsx(Icon, { icon: "faSearch", className: "me-2" }, void 0), submitLabel] }), void 0));
11
9
  };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import classNames from 'classnames';
3
3
  import { Icon } from '../../../atoms/icon';
4
4
  import { Button } from '../../../atoms/button';
@@ -8,7 +8,5 @@ export const ButtonFilters = (props) => {
8
8
  const handleClick = () => {
9
9
  setShow(prev => !prev);
10
10
  };
11
- return (React.createElement(Button, { color: "info", outline: !show, onClick: handleClick, className: classes },
12
- React.createElement(Icon, { icon: "faFilter", className: "me-2" }),
13
- filterLabel));
11
+ return (_jsxs(Button, Object.assign({ color: "info", outline: !show, onClick: handleClick, className: classes }, { children: [_jsx(Icon, { icon: "faFilter", className: "me-2" }, void 0), filterLabel] }), void 0));
14
12
  };
@@ -1,10 +1,10 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useNavigate } from 'react-router-dom';
3
3
  import uriHelper from '../../../utils/uri-helper';
4
4
  export const FilterForm = (props) => {
5
5
  const { children, search } = props;
6
6
  const navigate = useNavigate();
7
- return (React.createElement("form", { className: "filter-form", onSubmit: (e) => {
7
+ return (_jsx("form", Object.assign({ className: "filter-form", onSubmit: (e) => {
8
8
  e.preventDefault();
9
9
  const count = e.target.length;
10
10
  const fields = e.target;
@@ -22,5 +22,5 @@ export const FilterForm = (props) => {
22
22
  navigate({
23
23
  search: uriHelper.stringify(Object.assign(Object.assign({}, elements), { page: 1 }))
24
24
  });
25
- } }, children));
25
+ } }, { children: children }), void 0));
26
26
  };
@@ -1,10 +1,6 @@
1
- import React from 'react';
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
2
  import { InputDatepicker } from '../../../atoms/input-datepicker';
3
3
  export const FilterDatepicker = (props) => {
4
4
  const { name, id = name, value = '', placeholder } = props;
5
- return (React.createElement("div", { className: "form-group" },
6
- Boolean(placeholder) && React.createElement("label", { className: "form-label", htmlFor: name },
7
- placeholder,
8
- ":"),
9
- React.createElement(InputDatepicker, Object.assign({}, props, { value: value, id: id }))));
5
+ return (_jsxs("div", Object.assign({ className: "form-group" }, { children: [Boolean(placeholder) && _jsxs("label", Object.assign({ className: "form-label", htmlFor: name }, { children: [placeholder, ":"] }), void 0), _jsx(InputDatepicker, Object.assign({}, props, { value: value, id: id }), void 0)] }), void 0));
10
6
  };
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import React from 'react';
12
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
13
13
  import classNames from 'classnames';
14
14
  import InputMask from 'react-input-mask';
15
15
  export const FilterInput = (props) => {
@@ -27,15 +27,7 @@ export const FilterInput = (props) => {
27
27
  const classes = classNames(className, 'form-control');
28
28
  const attrs = Object.assign(Object.assign({}, validOptions), { className: classes, name: name, id: id, defaultValue: value, onChange: props.onChange });
29
29
  if (mask) {
30
- return (React.createElement("div", { className: "form-group" },
31
- Boolean(placeholder) && React.createElement("label", { className: "form-label", htmlFor: name },
32
- placeholder,
33
- ":"),
34
- React.createElement(InputMask, Object.assign({ mask: mask }, attrs))));
30
+ return (_jsxs("div", Object.assign({ className: "form-group" }, { children: [Boolean(placeholder) && _jsxs("label", Object.assign({ className: "form-label", htmlFor: name }, { children: [placeholder, ":"] }), void 0), _jsx(InputMask, Object.assign({ mask: mask }, attrs), void 0)] }), void 0));
35
31
  }
36
- return (React.createElement("div", { className: "form-group" },
37
- Boolean(placeholder) && React.createElement("label", { className: "form-label", htmlFor: name },
38
- placeholder,
39
- ":"),
40
- React.createElement("input", Object.assign({}, attrs))));
32
+ return (_jsxs("div", Object.assign({ className: "form-group" }, { children: [Boolean(placeholder) && _jsxs("label", Object.assign({ className: "form-label", htmlFor: name }, { children: [placeholder, ":"] }), void 0), _jsx("input", Object.assign({}, attrs), void 0)] }), void 0));
41
33
  };
@@ -1,3 +1,4 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import ReactSelect from 'react-select';
3
4
  const getValueInOption = (options, value) => {
@@ -41,9 +42,5 @@ export const FilterSelect = (props) => {
41
42
  }, action);
42
43
  }
43
44
  }, []);
44
- return (React.createElement("div", { className: "form-group" },
45
- Boolean(placeholder) && React.createElement("label", { className: "form-label", htmlFor: name },
46
- placeholder,
47
- ":"),
48
- React.createElement(ReactSelect, { placeholder: placeholder, className: "form-builder-select", classNamePrefix: "form-builder", options: options, name: name, id: id, defaultValue: newValue, isDisabled: isDisabled, isLoading: isLoading, isClearable: isClearable, isSearchable: isSearchable, isMulti: isMulti, onChange: handleChange })));
45
+ return (_jsxs("div", Object.assign({ className: "form-group" }, { children: [Boolean(placeholder) && _jsxs("label", Object.assign({ className: "form-label", htmlFor: name }, { children: [placeholder, ":"] }), void 0), _jsx(ReactSelect, { placeholder: placeholder, className: "form-builder-select", classNamePrefix: "form-builder", options: options, name: name, id: id, defaultValue: newValue, isDisabled: isDisabled, isLoading: isLoading, isClearable: isClearable, isSearchable: isSearchable, isMulti: isMulti, onChange: handleChange }, void 0)] }), void 0));
49
46
  };
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  export const PageListFilters = ({ children }) => {
3
- return (React.createElement("div", { className: "page-list-filters" }, children));
3
+ return (_jsx("div", Object.assign({ className: "page-list-filters" }, { children: children }), void 0));
4
4
  };
5
5
  PageListFilters.displayName = 'PageListFilters';
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import { FilterForm } from './filter-components/filter-form';
3
4
  import { Row } from '../../atoms/row';
@@ -30,26 +31,6 @@ export const PageListGetFilters = (props) => {
30
31
  open: () => { var _a; return (_a = modal === null || modal === void 0 ? void 0 : modal.current) === null || _a === void 0 ? void 0 : _a.open(); },
31
32
  close: () => { var _a; return (_a = modal === null || modal === void 0 ? void 0 : modal.current) === null || _a === void 0 ? void 0 : _a.close(); },
32
33
  };
33
- return (React.createElement(React.Fragment, null,
34
- React.createElement(FilterForm, { search: search },
35
- React.createElement(Row, null,
36
- visible.map((element, index) => (React.createElement(Col, { size: [12, 6, 4, 3], key: JSON.stringify({ index, props: element === null || element === void 0 ? void 0 : element.props }), className: "mb-3" }, setValue(element, search[element.props.name])))),
37
- React.createElement(Col, { className: 'p-0' },
38
- React.createElement("div", { className: "form-group", id: "btns-filter" },
39
- React.createElement("label", { className: "form-label", htmlFor: "btns-filter" }, "\u00A0"),
40
- React.createElement("div", null,
41
- React.createElement(ButtonFilter, { submitLabel: filter.submitLabel, className: "me-3" }),
42
- React.createElement(ButtonFilterClear, { clearLabel: filter.clearLabel, className: "me-3", search: search }),
43
- Boolean(hidden.length) && React.createElement(ButtonFilters, { show: showFilter, setShow: setShowFilter, filterLabel: filter.filterLabel }),
44
- columnManagement && React.createElement(ButtonConfig, Object.assign({}, columnManagement, { onClick: () => modalActions.open() })))))),
45
- Boolean(hidden.length) && (React.createElement("div", { className: `aside-filter ${showFilter ? 'in' : ''}` },
46
- React.createElement("div", { className: "mb-3 text-right" },
47
- React.createElement(Button, { color: "primary", outline: showFilter, onClick: () => setShowFilter(prev => !prev), small: true },
48
- React.createElement(Icon, { icon: "faTimes" }))),
49
- React.createElement("div", { className: "content-aside-filter" }, hidden.map((element, index) => (React.createElement("div", { key: `visible-child-${JSON.stringify({ index: index + numFiltersVisible, props: element === null || element === void 0 ? void 0 : element.props })}`, className: hidden.length === (index + 1) ? '' : 'mb-3' }, setValue(element, search[element.props.name]))))),
50
- React.createElement("div", { className: `pt-3 text-center ${showFilter ? 'd-block' : 'd-none'}` },
51
- React.createElement(ButtonFilter, { submitLabel: filter.submitLabel, className: "me-3" }),
52
- React.createElement(ButtonFilterClear, { clearLabel: filter.clearLabel, search: search }))))),
53
- React.createElement(Alert, { ref: modal, className: "alert-lg" }, columnManagement &&
54
- React.createElement(ModalConfig, Object.assign({}, columnManagement, { closeFn: modalActions.close, confirmFn: columnManagement.onConfirm })))));
34
+ return (_jsxs(_Fragment, { children: [_jsxs(FilterForm, Object.assign({ search: search }, { children: [_jsxs(Row, { children: [visible.map((element, index) => (_jsx(Col, Object.assign({ size: [12, 6, 4, 3], className: "mb-3" }, { children: setValue(element, search[element.props.name]) }), JSON.stringify({ index, props: element === null || element === void 0 ? void 0 : element.props })))), _jsx(Col, Object.assign({ className: 'p-0' }, { children: _jsxs("div", Object.assign({ className: "form-group", id: "btns-filter" }, { children: [_jsx("label", Object.assign({ className: "form-label", htmlFor: "btns-filter" }, { children: "\u00A0" }), void 0), _jsxs("div", { children: [_jsx(ButtonFilter, { submitLabel: filter.submitLabel, className: "me-3" }, void 0), _jsx(ButtonFilterClear, { clearLabel: filter.clearLabel, className: "me-3", search: search }, void 0), Boolean(hidden.length) && _jsx(ButtonFilters, { show: showFilter, setShow: setShowFilter, filterLabel: filter.filterLabel }, void 0), columnManagement && _jsx(ButtonConfig, Object.assign({}, columnManagement, { onClick: () => modalActions.open() }), void 0)] }, void 0)] }), void 0) }), void 0)] }, void 0), Boolean(hidden.length) && (_jsxs("div", Object.assign({ className: `aside-filter ${showFilter ? 'in' : ''}` }, { children: [_jsx("div", Object.assign({ className: "mb-3 text-right" }, { children: _jsx(Button, Object.assign({ color: "primary", outline: showFilter, onClick: () => setShowFilter(prev => !prev), small: true }, { children: _jsx(Icon, { icon: "faTimes" }, void 0) }), void 0) }), void 0), _jsx("div", Object.assign({ className: "content-aside-filter" }, { children: hidden.map((element, index) => (_jsx("div", Object.assign({ className: hidden.length === (index + 1) ? '' : 'mb-3' }, { children: setValue(element, search[element.props.name]) }), `visible-child-${JSON.stringify({ index: index + numFiltersVisible, props: element === null || element === void 0 ? void 0 : element.props })}`))) }), void 0), _jsxs("div", Object.assign({ className: `pt-3 text-center ${showFilter ? 'd-block' : 'd-none'}` }, { children: [_jsx(ButtonFilter, { submitLabel: filter.submitLabel, className: "me-3" }, void 0), _jsx(ButtonFilterClear, { clearLabel: filter.clearLabel, search: search }, void 0)] }), void 0)] }), void 0))] }), void 0), _jsx(Alert, Object.assign({ ref: modal, className: "alert-lg" }, { children: columnManagement &&
35
+ _jsx(ModalConfig, Object.assign({}, columnManagement, { closeFn: modalActions.close, confirmFn: columnManagement.onConfirm }), void 0) }), void 0)] }, void 0));
55
36
  };
@@ -1,7 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
2
  import { Typography } from '../../atoms/typography';
2
3
  import { Row } from '../../atoms/row';
3
4
  import { Col } from '../../atoms/col';
4
- import React from 'react';
5
5
  import { Button } from '../../atoms/button';
6
6
  import { Icon } from '../../atoms/icon';
7
7
  import { Link } from '../../atoms/link';
@@ -19,20 +19,7 @@ export const PageList = (props) => {
19
19
  const filterList = Array.isArray(children) ? children.find(child => { var _a; return typeof child.type !== 'string' && ((_a = child.type) === null || _a === void 0 ? void 0 : _a.displayName) === 'PageListFilters'; }) : null;
20
20
  const restList = Array.isArray(children) ? children === null || children === void 0 ? void 0 : children.filter(child => child !== filterList) : children;
21
21
  if (loading) {
22
- return (React.createElement("div", { className: "my-5" },
23
- React.createElement(Spinner, null)));
22
+ return (_jsx("div", Object.assign({ className: "my-5" }, { children: _jsx(Spinner, {}, void 0) }), void 0));
24
23
  }
25
- return (React.createElement(React.Fragment, null,
26
- React.createElement(Row, { className: "mb-3" },
27
- title && (React.createElement(Col, null,
28
- React.createElement(Typography, { lineBottom: true, variant: "h4", tag: "h1" }, title))),
29
- React.createElement(Col, { className: "ms-auto" },
30
- Boolean(extraButtons.length) && (React.createElement(Dropdown, { color: "default", className: extraButtons.length ? 'me-2' : '', align: "right", label: React.createElement(Icon, { icon: "faEllipsisH" }), items: extraButtons })),
31
- Boolean(addButton) && (React.createElement(Button, { tag: Link, href: addButton === null || addButton === void 0 ? void 0 : addButton.uri },
32
- React.createElement(Icon, { icon: "faPlus", className: "me-1" }), addButton === null || addButton === void 0 ? void 0 :
33
- addButton.label)))),
34
- !!customizeFilter && customizeFilter,
35
- !customizeFilter && filterList && (React.createElement(PageListGetFilters, { filterList: filterList, search: search, filter: filter, key: JSON.stringify(history), columnManagement: columnManagement })),
36
- React.createElement("div", null, restList),
37
- meta && React.createElement(Paginate, { activePage: meta.current_page, perPage: meta.per_page, totalItems: meta.total, from: meta.from, to: meta.to, currentCount: totalRecords, translate: metaTranslate })));
24
+ return (_jsxs(_Fragment, { children: [_jsxs(Row, Object.assign({ className: "mb-3" }, { children: [title && (_jsx(Col, { children: _jsx(Typography, Object.assign({ lineBottom: true, variant: "h4", tag: "h1" }, { children: title }), void 0) }, void 0)), _jsxs(Col, Object.assign({ className: "ms-auto" }, { children: [Boolean(extraButtons.length) && (_jsx(Dropdown, { color: "default", className: extraButtons.length ? 'me-2' : '', align: "right", label: _jsx(Icon, { icon: "faEllipsisH" }, void 0), items: extraButtons }, void 0)), Boolean(addButton) && (_jsxs(Button, Object.assign({ tag: Link, href: addButton === null || addButton === void 0 ? void 0 : addButton.uri }, { children: [_jsx(Icon, { icon: "faPlus", className: "me-1" }, void 0), addButton === null || addButton === void 0 ? void 0 : addButton.label] }), void 0))] }), void 0)] }), void 0), !!customizeFilter && customizeFilter, !customizeFilter && filterList && (_jsx(PageListGetFilters, { filterList: filterList, search: search, filter: filter, columnManagement: columnManagement }, JSON.stringify(history))), _jsx("div", { children: restList }, void 0), meta && _jsx(Paginate, { activePage: meta.current_page, perPage: meta.per_page, totalItems: meta.total, from: meta.from, to: meta.to, currentCount: totalRecords, translate: metaTranslate }, void 0)] }, void 0));
38
25
  };
@@ -1,18 +1,8 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button, Col, Dropdown, Icon, Link, Row, Separator, Spinner, Typography } from '../../';
3
3
  export const PageShow = (props) => {
4
4
  const { loading = true, children, extraButtons = [], backButton, title } = props;
5
5
  if (loading)
6
- return React.createElement(Spinner, null);
7
- return (React.createElement("div", null,
8
- React.createElement(Row, { className: "mb-3" },
9
- React.createElement(Col, null,
10
- React.createElement(Typography, { lineBottom: true, variant: "h4", tag: "h1" }, title)),
11
- React.createElement(Col, { className: "ms-auto" },
12
- Boolean(extraButtons.length) && (React.createElement(Dropdown, { color: "default", className: "me-2", align: "right", label: React.createElement(Icon, { icon: "faEllipsisH" }), items: extraButtons })),
13
- Boolean(backButton) && (React.createElement(Button, { tag: Link, href: backButton === null || backButton === void 0 ? void 0 : backButton.uri, color: "danger" },
14
- React.createElement(Icon, { icon: "faAngleLeft", className: "me-1" }), backButton === null || backButton === void 0 ? void 0 :
15
- backButton.label)))),
16
- React.createElement(Separator, null),
17
- children));
6
+ return _jsx(Spinner, {}, void 0);
7
+ return (_jsxs("div", { children: [_jsxs(Row, Object.assign({ className: "mb-3" }, { children: [_jsx(Col, { children: _jsx(Typography, Object.assign({ lineBottom: true, variant: "h4", tag: "h1" }, { children: title }), void 0) }, void 0), _jsxs(Col, Object.assign({ className: "ms-auto" }, { children: [Boolean(extraButtons.length) && (_jsx(Dropdown, { color: "default", className: "me-2", align: "right", label: _jsx(Icon, { icon: "faEllipsisH" }, void 0), items: extraButtons }, void 0)), Boolean(backButton) && (_jsxs(Button, Object.assign({ tag: Link, href: backButton === null || backButton === void 0 ? void 0 : backButton.uri, color: "danger" }, { children: [_jsx(Icon, { icon: "faAngleLeft", className: "me-1" }, void 0), backButton === null || backButton === void 0 ? void 0 : backButton.label] }), void 0))] }), void 0)] }), void 0), _jsx(Separator, {}, void 0), children] }, void 0));
18
8
  };
@@ -9,18 +9,13 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import React from 'react';
12
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { Icon } from '../../atoms/icon';
14
14
  import { Link } from '../../index';
15
15
  const InnerItem = ({ icon, label }) => {
16
- return (React.createElement(React.Fragment, null,
17
- icon && React.createElement(Icon, { icon: icon }),
18
- React.createElement("span", { className: "link-name" }, label)));
16
+ return (_jsxs(_Fragment, { children: [icon && _jsx(Icon, { icon: icon }, void 0), _jsx("span", Object.assign({ className: "link-name" }, { children: label }), void 0)] }, void 0));
19
17
  };
20
18
  export const SideNavigationBarItem = (props) => {
21
19
  const { className = '', label } = props, attrs = __rest(props, ["className", "label"]);
22
- return (React.createElement("li", { className: className },
23
- React.createElement(Link, Object.assign({}, attrs),
24
- React.createElement(InnerItem, Object.assign({}, props))),
25
- React.createElement("span", { className: "tooltip" }, label)));
20
+ return (_jsxs("li", Object.assign({ className: className }, { children: [_jsx(Link, Object.assign({}, attrs, { children: _jsx(InnerItem, Object.assign({}, props), void 0) }), void 0), _jsx("span", Object.assign({ className: "tooltip" }, { children: label }), void 0)] }), void 0));
26
21
  };
@@ -1,4 +1,5 @@
1
- import React, { memo, useEffect } from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { memo, useEffect } from 'react';
2
3
  import { SideNavigationBarItem } from './side-navigation-bar-item';
3
4
  import { Icon } from '../../atoms/icon';
4
5
  import { storageHelper } from '../../index';
@@ -16,19 +17,11 @@ export const SideNavigationBar = memo((props) => {
16
17
  sidebar.classList.toggle('active');
17
18
  };
18
19
  }, []);
19
- return (React.createElement("div", { className: `sidebar${showActive ? ' active' : ''}` },
20
- React.createElement("div", { className: "logo-content" },
21
- React.createElement("div", { className: "logo" },
22
- Boolean(logoThumb) && React.createElement("div", { className: "logo-thumb" }, logoThumb),
23
- logoName && React.createElement("div", { className: "logo-name" }, logoName)),
24
- React.createElement(Icon, { icon: "fa-bars", className: "btn-sidebar" })),
25
- React.createElement("ul", { className: "nav-list" },
26
- items.map((item, index) => (React.createElement(SideNavigationBarItem, Object.assign({ key: `side-navigation-bar-item-${index}` }, item)))),
27
- !!(logout === null || logout === void 0 ? void 0 : logout.href) && (React.createElement(SideNavigationBarItem, Object.assign({}, {
28
- className: 'link-logout',
29
- icon: 'fa-sign-out-alt',
30
- label: logout.label || 'Logout',
31
- href: logout.href
32
- }))))));
20
+ return (_jsxs("div", Object.assign({ className: `sidebar${showActive ? ' active' : ''}` }, { children: [_jsxs("div", Object.assign({ className: "logo-content" }, { children: [_jsxs("div", Object.assign({ className: "logo" }, { children: [Boolean(logoThumb) && _jsx("div", Object.assign({ className: "logo-thumb" }, { children: logoThumb }), void 0), logoName && _jsx("div", Object.assign({ className: "logo-name" }, { children: logoName }), void 0)] }), void 0), _jsx(Icon, { icon: "fa-bars", className: "btn-sidebar" }, void 0)] }), void 0), _jsxs("ul", Object.assign({ className: "nav-list" }, { children: [items.map((item, index) => (_jsx(SideNavigationBarItem, Object.assign({}, item), `side-navigation-bar-item-${index}`))), !!(logout === null || logout === void 0 ? void 0 : logout.href) && (_jsx(SideNavigationBarItem, Object.assign({}, {
21
+ className: 'link-logout',
22
+ icon: 'fa-sign-out-alt',
23
+ label: logout.label || 'Logout',
24
+ href: logout.href
25
+ }), void 0))] }), void 0)] }), void 0));
33
26
  });
34
27
  SideNavigationBar.displayName = 'SideNavigationBar';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  export const TabList = ({ children }) => {
3
- return (React.createElement("div", { className: "tab-list" }, children));
3
+ return (_jsx("div", Object.assign({ className: "tab-list" }, { children: children }), void 0));
4
4
  };
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import classNames from 'classnames';
3
3
  export const TabPanel = ({ children, active }) => {
4
4
  const classes = classNames('tab-panel', active && 'active');
5
- return (React.createElement("div", { className: classes }, children));
5
+ return (_jsx("div", Object.assign({ className: classes }, { children: children }), void 0));
6
6
  };
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Link } from '../../atoms/link';
3
3
  import classNames from 'classnames';
4
4
  export const Tab = ({ children, href, active }) => {
5
5
  const classes = classNames('tab', active && 'active');
6
- return (React.createElement(Link, { className: classes, href: href }, children));
6
+ return (_jsx(Link, Object.assign({ className: classes, href: href }, { children: children }), void 0));
7
7
  };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { TabList } from './tab-list';
3
3
  import { Tab } from './tab';
4
4
  import { useLocation } from 'react-router-dom';
@@ -21,13 +21,11 @@ export const Tabs = ({ children }) => {
21
21
  href: uriHelper.stringify(Object.assign(Object.assign(Object.assign({}, params), (params.page && { page: 1 })), { tab }))
22
22
  });
23
23
  };
24
- return (React.createElement("div", { className: "tabs" },
25
- React.createElement(TabList, null, (_a = tabList.props.children) === null || _a === void 0 ? void 0 : _a.map((child, index) => {
26
- var _a;
27
- return (React.createElement(Tab, Object.assign({ key: `tab-child-${index}` }, getParams(index)), (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.children));
28
- })),
29
- tabPanels.map((child, index) => {
30
- var _a;
31
- return (React.createElement(TabPanel, { key: `tab-panel-child-${index}`, active: getActive(index) }, (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.children));
32
- })));
24
+ return (_jsxs("div", Object.assign({ className: "tabs" }, { children: [_jsx(TabList, { children: (_a = tabList.props.children) === null || _a === void 0 ? void 0 : _a.map((child, index) => {
25
+ var _a;
26
+ return (_jsx(Tab, Object.assign({}, getParams(index), { children: (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.children }), `tab-child-${index}`));
27
+ }) }, void 0), tabPanels.map((child, index) => {
28
+ var _a;
29
+ return (_jsx(TabPanel, Object.assign({ active: getActive(index) }, { children: (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.children }), `tab-panel-child-${index}`));
30
+ })] }), void 0));
33
31
  };
@@ -1,4 +1,5 @@
1
- import React, { forwardRef, useImperativeHandle, useState } from 'react';
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef, useImperativeHandle, useState } from 'react';
2
3
  import ReactDOM from 'react-dom';
3
4
  import classNames from 'classnames';
4
5
  import { Button } from '../atoms/button';
@@ -13,12 +14,7 @@ export const Alert = forwardRef((props, ref) => {
13
14
  }));
14
15
  const classes = classNames(className, 'alert-content', color);
15
16
  if (!display)
16
- return React.createElement(React.Fragment, null);
17
- return ReactDOM.createPortal(React.createElement(React.Fragment, null,
18
- React.createElement("div", { className: "alert-overlay", onClick: close }),
19
- React.createElement("div", { className: classes },
20
- React.createElement("div", { className: "alert-body" }, children),
21
- showButton && (React.createElement("div", { className: "alert-footer" },
22
- React.createElement(Button, { color: "primary", onClick: close }, buttonText))))), document.getElementById('alert-portal'));
17
+ return _jsx(_Fragment, {}, void 0);
18
+ return ReactDOM.createPortal(_jsxs(_Fragment, { children: [_jsx("div", { className: "alert-overlay", onClick: close }, void 0), _jsxs("div", Object.assign({ className: classes }, { children: [_jsx("div", Object.assign({ className: "alert-body" }, { children: children }), void 0), showButton && (_jsx("div", Object.assign({ className: "alert-footer" }, { children: _jsx(Button, Object.assign({ color: "primary", onClick: close }, { children: buttonText }), void 0) }), void 0))] }), void 0)] }, void 0), document.getElementById('alert-portal'));
23
19
  });
24
20
  Alert.displayName = 'Alert';
@@ -1,11 +1,9 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Link } from '../atoms/link';
3
3
  import { Icon } from '../atoms/icon';
4
4
  export const Breadcrumb = (props) => {
5
5
  const { items } = props;
6
- return (React.createElement("div", { className: "breadcrumb" }, items.map((item, index) => (React.createElement("div", { key: index }, item.uri
7
- ? React.createElement(React.Fragment, null,
8
- React.createElement(Link, { href: item.uri }, item.label),
9
- React.createElement(Icon, { icon: "faAngleRight" }))
10
- : React.createElement("span", null, item.label))))));
6
+ return (_jsx("div", Object.assign({ className: "breadcrumb" }, { children: items.map((item, index) => (_jsx("div", { children: item.uri
7
+ ? _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({ href: item.uri }, { children: item.label }), void 0), _jsx(Icon, { icon: "faAngleRight" }, void 0)] }, void 0)
8
+ : _jsx("span", { children: item.label }, void 0) }, index))) }), void 0));
11
9
  };
@@ -1,13 +1,8 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Typography } from '../atoms/typography';
3
3
  import classNames from 'classnames';
4
4
  export const Card = (props) => {
5
5
  const { children, title, header, footer, fullHeight = false } = props;
6
6
  const classes = classNames('card', fullHeight && 'mh-100', footer && 'justify-content-between');
7
- return (React.createElement("div", { className: classes },
8
- !!(title || header) && (React.createElement("div", { className: "card-header" },
9
- !!title && React.createElement(Typography, { variant: "h4", className: "card-title" }, title),
10
- header)),
11
- React.createElement("div", { className: "card-body" }, children),
12
- !!footer && (React.createElement("div", { className: "card-footer" }, footer))));
7
+ return (_jsxs("div", Object.assign({ className: classes }, { children: [!!(title || header) && (_jsxs("div", Object.assign({ className: "card-header" }, { children: [!!title && _jsx(Typography, Object.assign({ variant: "h4", className: "card-title" }, { children: title }), void 0), header] }), void 0)), _jsx("div", Object.assign({ className: "card-body" }, { children: children }), void 0), !!footer && (_jsx("div", Object.assign({ className: "card-footer" }, { children: footer }), void 0))] }), void 0));
13
8
  };
@@ -9,14 +9,14 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import React from 'react';
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { Link } from '../../atoms/link';
14
14
  export const DropdownItem = (props) => {
15
15
  if (props.separator)
16
- return React.createElement("div", { className: "dropdown-divider" });
16
+ return _jsx("div", { className: "dropdown-divider" }, void 0);
17
17
  const _a = props, { uri, label, onClick } = _a, attrs = __rest(_a, ["uri", "label", "onClick"]);
18
18
  if (onClick) {
19
- return React.createElement("div", Object.assign({}, attrs, { className: "dropdown-item", onClick: onClick }), label);
19
+ return _jsx("div", Object.assign({}, attrs, { className: "dropdown-item", onClick: onClick }, { children: label }), void 0);
20
20
  }
21
- return React.createElement(Link, Object.assign({}, attrs, { href: uri, className: "dropdown-item" }), label);
21
+ return _jsx(Link, Object.assign({}, attrs, { href: uri, className: "dropdown-item" }, { children: label }), void 0);
22
22
  };