@uxf/cms 11.19.3 → 11.21.0
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/forms/components/wysiwyg-input/wysiwyg-input.js +2 -2
- package/lib/layout/layout.js +20 -18
- package/lib/layout/types.d.ts +1 -0
- package/package.json +7 -6
- package/pages/content-builder/content-header.js +2 -2
- package/pages/grid-page/grid-page.js +0 -1
- package/ui/styles/layout.css +7 -15
- package/ui/styles/login-layout.css +2 -8
| @@ -24,8 +24,8 @@ var __importStar = (this && this.__importStar) || function (mod) { | |
| 24 24 | 
             
            };
         | 
| 25 25 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 26 26 | 
             
            exports.WysiwygInput = void 0;
         | 
| 27 | 
            +
            const use_input_focus_1 = require("@uxf/core-react/hooks/use-input-focus");
         | 
| 27 28 | 
             
            const classes_1 = require("@uxf/core/constants/classes");
         | 
| 28 | 
            -
            const useInputFocus_1 = require("@uxf/core/hooks/useInputFocus");
         | 
| 29 29 | 
             
            const cx_1 = require("@uxf/core/utils/cx");
         | 
| 30 30 | 
             
            const file_1 = require("@uxf/core/utils/file");
         | 
| 31 31 | 
             
            const form_component_1 = require("@uxf/ui/form-component");
         | 
| @@ -55,7 +55,7 @@ function WysiwygInput(props) { | |
| 55 55 | 
             
                const generatedId = (0, react_1.useId)();
         | 
| 56 56 | 
             
                const id = (_b = props.id) !== null && _b !== void 0 ? _b : generatedId;
         | 
| 57 57 | 
             
                const innerRef = (0, react_1.useRef)(null);
         | 
| 58 | 
            -
                const input = (0,  | 
| 58 | 
            +
                const input = (0, use_input_focus_1.useInputFocus)(innerRef, props.onBlur, props.onFocus);
         | 
| 59 59 | 
             
                const isInvalid = !!fieldState.error;
         | 
| 60 60 | 
             
                const errorId = isInvalid ? `${props.id}--error-message` : undefined;
         | 
| 61 61 | 
             
                const rootClassName = (0, cx_1.cx)("uxf-text-input", ((_c = props.isFocused) !== null && _c !== void 0 ? _c : input.focused) && classes_1.CLASSES.IS_FOCUSED, props.isDisabled && classes_1.CLASSES.IS_DISABLED, isInvalid && classes_1.CLASSES.IS_INVALID, props.isReadOnly && classes_1.CLASSES.IS_READONLY, props.isRequired && classes_1.CLASSES.IS_REQUIRED, props.className);
         | 
    
        package/lib/layout/layout.js
    CHANGED
    
    | @@ -24,23 +24,25 @@ const Layout = (props) => { | |
| 24 24 | 
             
                    react_1.default.createElement("div", { className: "uxf-cms-layout" },
         | 
| 25 25 | 
             
                        react_1.default.createElement("div", { className: "uxf-cms-layout__wrapper" },
         | 
| 26 26 | 
             
                            react_1.default.createElement(sidebar_1.Sidebar, { menuConfiguration: props.menuConfiguration, Logo: props.Logo }),
         | 
| 27 | 
            -
                            react_1.default.createElement("main", { className: `uxf-cms-layout__main ${(_a = props.mainClassName) !== null && _a !== void 0 ? _a : ""}`, style: { "--drawer-width": (0, rem_1.rem)(styles_1.drawerWidth) } }, | 
| 28 | 
            -
                                react_1.default.createElement("div", { className: "uxf-cms-layout__loading | 
| 29 | 
            -
                                    react_1.default.createElement( | 
| 30 | 
            -
             | 
| 31 | 
            -
             | 
| 32 | 
            -
                                    props. | 
| 33 | 
            -
             | 
| 34 | 
            -
             | 
| 35 | 
            -
                                        react_1.default.createElement( | 
| 36 | 
            -
                                             | 
| 37 | 
            -
             | 
| 38 | 
            -
                                                 | 
| 39 | 
            -
             | 
| 40 | 
            -
                                                    react_1.default.createElement(" | 
| 41 | 
            -
             | 
| 42 | 
            -
             | 
| 43 | 
            -
             | 
| 44 | 
            -
             | 
| 27 | 
            +
                            react_1.default.createElement("main", { className: `uxf-cms-layout__main ${(_a = props.mainClassName) !== null && _a !== void 0 ? _a : ""}`, style: { "--drawer-width": (0, rem_1.rem)(styles_1.drawerWidth) } },
         | 
| 28 | 
            +
                                props.loading ? (react_1.default.createElement("div", { className: "uxf-cms-layout__loading" },
         | 
| 29 | 
            +
                                    react_1.default.createElement("div", { className: "uxf-cms-layout__loading-inner" },
         | 
| 30 | 
            +
                                        react_1.default.createElement(loader_1.Loader, null),
         | 
| 31 | 
            +
                                        react_1.default.createElement("p", { className: "uxf-cms-layout__loading-text" }, "Na\u010D\u00EDt\u00E1m\u2026")))) : (react_1.default.createElement(react_1.default.Fragment, null,
         | 
| 32 | 
            +
                                    props.CustomHeader ? (props.CustomHeader) : (react_1.default.createElement("div", { className: `${props.Header ? "uxf-cms-layout__header" : ""} ${props.stickyHeader ? "uxf-cms-layout__header--sticky" : ""}` },
         | 
| 33 | 
            +
                                        props.ToolbarRight && (react_1.default.createElement("div", { className: "uxf-cms-layout__toolbar" }, props.ToolbarRight)),
         | 
| 34 | 
            +
                                        props.MessageBar,
         | 
| 35 | 
            +
                                        react_1.default.createElement(layout_container_1.LayoutContainer, { type: (_b = props.headerContainerType) !== null && _b !== void 0 ? _b : props.containerType, className: "uxf-cms-layout__container--basic" },
         | 
| 36 | 
            +
                                            react_1.default.createElement("div", { className: "uxf-cms-layout__avatar-title-wrapper" },
         | 
| 37 | 
            +
                                                props.Avatar,
         | 
| 38 | 
            +
                                                react_1.default.createElement("div", { className: "uxf-cms-layout__breadcrumbs-title-wrapper" },
         | 
| 39 | 
            +
                                                    props.breadcrumbs && react_1.default.createElement(breadcrumbs_1.Breadcrumbs, { items: props.breadcrumbs }),
         | 
| 40 | 
            +
                                                    react_1.default.createElement("div", { className: "uxf-cms-layout__title-wrapper" },
         | 
| 41 | 
            +
                                                        react_1.default.createElement("h1", { className: "uxf-cms-layout__title" }, props.title),
         | 
| 42 | 
            +
                                                        props.TitleRightContainer),
         | 
| 43 | 
            +
                                                    props.subtitle,
         | 
| 44 | 
            +
                                                    props.Header))))),
         | 
| 45 | 
            +
                                    react_1.default.createElement(layout_container_1.LayoutContainer, { type: props.containerType }, props.children))),
         | 
| 46 | 
            +
                                props.FooterBar)))));
         | 
| 45 47 | 
             
            };
         | 
| 46 48 | 
             
            exports.Layout = Layout;
         | 
    
        package/lib/layout/types.d.ts
    CHANGED
    
    
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "@uxf/cms",
         | 
| 3 | 
            -
              "version": "11. | 
| 3 | 
            +
              "version": "11.21.0",
         | 
| 4 4 | 
             
              "description": "UXF Cms",
         | 
| 5 5 | 
             
              "author": "UXFans <dev@uxf.cz>",
         | 
| 6 6 | 
             
              "homepage": "https://gitlab.com/uxf-npm/cms#readme",
         | 
| @@ -30,12 +30,13 @@ | |
| 30 30 | 
             
                "@dnd-kit/utilities": "3.2.2",
         | 
| 31 31 | 
             
                "@floating-ui/react": "0.26.9",
         | 
| 32 32 | 
             
                "@redux-devtools/extension": "3.3.0",
         | 
| 33 | 
            -
                "@uxf/core": "11. | 
| 34 | 
            -
                "@uxf/ | 
| 35 | 
            -
                "@uxf/ | 
| 33 | 
            +
                "@uxf/core": "11.21.0",
         | 
| 34 | 
            +
                "@uxf/core-react": "11.21.0",
         | 
| 35 | 
            +
                "@uxf/data-grid": "11.21.0",
         | 
| 36 | 
            +
                "@uxf/form": "11.21.0",
         | 
| 36 37 | 
             
                "@uxf/router": "11.11.3",
         | 
| 37 | 
            -
                "@uxf/ui": "11. | 
| 38 | 
            -
                "@uxf/wysiwyg": "11. | 
| 38 | 
            +
                "@uxf/ui": "11.21.0",
         | 
| 39 | 
            +
                "@uxf/wysiwyg": "11.21.0",
         | 
| 39 40 | 
             
                "axios": "1.6.7",
         | 
| 40 41 | 
             
                "axios-hooks": "5.0.2",
         | 
| 41 42 | 
             
                "es6-error": "4.1.1",
         | 
| @@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) { | |
| 24 24 | 
             
            };
         | 
| 25 25 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 26 26 | 
             
            exports.ContentHeader = void 0;
         | 
| 27 | 
            -
            const  | 
| 27 | 
            +
            const use_clickable_props_1 = require("@uxf/core-react/hooks/use-clickable-props");
         | 
| 28 28 | 
             
            const button_1 = require("@uxf/ui/button");
         | 
| 29 29 | 
             
            const datetime_picker_input_1 = require("@uxf/ui/datetime-picker-input");
         | 
| 30 30 | 
             
            const icon_1 = require("@uxf/ui/icon");
         | 
| @@ -45,7 +45,7 @@ const ContentHeader = (props) => { | |
| 45 45 | 
             
                }, 
         | 
| 46 46 | 
             
                // eslint-disable-next-line react-hooks/exhaustive-deps
         | 
| 47 47 | 
             
                [props.onRemove]);
         | 
| 48 | 
            -
                const clickableProps = (0,  | 
| 48 | 
            +
                const clickableProps = (0, use_clickable_props_1.useClickableProps)({
         | 
| 49 49 | 
             
                    className: "flex w-full cursor-pointer flex-row items-center justify-between p-4",
         | 
| 50 50 | 
             
                    onClick: toggleVisibility,
         | 
| 51 51 | 
             
                });
         | 
| @@ -72,7 +72,6 @@ const GridPageComponent = (props) => { | |
| 72 72 | 
             
                const { data, isLoading, error, onReload } = (0, use_data_grid_fetching_1.useDataGridFetching)({
         | 
| 73 73 | 
             
                    loader: (_c = props.loader) !== null && _c !== void 0 ? _c : universalLoader,
         | 
| 74 74 | 
             
                    schema: props.gridSchema,
         | 
| 75 | 
            -
                    gridName: props.entityAlias,
         | 
| 76 75 | 
             
                    state,
         | 
| 77 76 | 
             
                });
         | 
| 78 77 | 
             
                const actionsBag = (0, react_1.useMemo)(() => ({
         | 
    
        package/ui/styles/layout.css
    CHANGED
    
    | @@ -2,13 +2,10 @@ | |
| 2 2 | 
             
                display: flex;
         | 
| 3 3 |  | 
| 4 4 | 
             
                &__wrapper {
         | 
| 5 | 
            +
                    background-color: theme("colors.gray.100");
         | 
| 5 6 | 
             
                    display: flex;
         | 
| 6 7 | 
             
                    width: 100%;
         | 
| 7 8 |  | 
| 8 | 
            -
                    :root .light & {
         | 
| 9 | 
            -
                        background-color: theme("colors.gray.100");
         | 
| 10 | 
            -
                    }
         | 
| 11 | 
            -
             | 
| 12 9 | 
             
                    :root .dark & {
         | 
| 13 10 | 
             
                        background-color: theme("colors.gray.900");
         | 
| 14 11 | 
             
                        color: theme("colors.darkHigh");
         | 
| @@ -18,6 +15,8 @@ | |
| 18 15 | 
             
                &__main {
         | 
| 19 16 | 
             
                    --drawer-width: 264px;
         | 
| 20 17 |  | 
| 18 | 
            +
                    display: flex;
         | 
| 19 | 
            +
                    flex-direction: column;
         | 
| 21 20 | 
             
                    min-height: 100vh;
         | 
| 22 21 | 
             
                    padding-bottom: theme("spacing.16");
         | 
| 23 22 | 
             
                    width: 100%;
         | 
| @@ -46,24 +45,19 @@ | |
| 46 45 | 
             
                }
         | 
| 47 46 |  | 
| 48 47 | 
             
                &__header {
         | 
| 49 | 
            -
                    : | 
| 50 | 
            -
                        background-color: theme("colors.white");
         | 
| 51 | 
            -
                    }
         | 
| 48 | 
            +
                    background-color: theme("colors.white");
         | 
| 52 49 |  | 
| 53 50 | 
             
                    :root .dark & {
         | 
| 54 51 | 
             
                        background-color: theme("colors.gray.950");
         | 
| 55 52 | 
             
                    }
         | 
| 56 53 |  | 
| 57 54 | 
             
                    &--sticky {
         | 
| 55 | 
            +
                        background-color: theme("colors.white");
         | 
| 58 56 | 
             
                        box-shadow: theme("boxShadow.md");
         | 
| 59 57 | 
             
                        position: sticky;
         | 
| 60 58 | 
             
                        top: 0;
         | 
| 61 59 | 
             
                        z-index: 10;
         | 
| 62 60 |  | 
| 63 | 
            -
                        :root .light & {
         | 
| 64 | 
            -
                            background-color: theme("colors.white");
         | 
| 65 | 
            -
                        }
         | 
| 66 | 
            -
             | 
| 67 61 | 
             
                        :root .dark & {
         | 
| 68 62 | 
             
                            background-color: theme("colors.gray.950");
         | 
| 69 63 | 
             
                        }
         | 
| @@ -73,21 +67,19 @@ | |
| 73 67 | 
             
                &__toolbar {
         | 
| 74 68 | 
             
                    align-items: center;
         | 
| 75 69 | 
             
                    background-color: theme("colors.sidebar.background");
         | 
| 70 | 
            +
                    color: theme("colors.darkMedium");
         | 
| 76 71 | 
             
                    display: flex;
         | 
| 77 72 | 
             
                    height: theme("spacing.12");
         | 
| 78 73 | 
             
                    justify-content: flex-end;
         | 
| 79 74 | 
             
                    padding: 0 theme("spacing.6");
         | 
| 80 75 |  | 
| 81 | 
            -
                    :root .light & {
         | 
| 82 | 
            -
                        color: theme("colors.darkMedium");
         | 
| 83 | 
            -
                    }
         | 
| 84 | 
            -
             | 
| 85 76 | 
             
                    :root .dark & {
         | 
| 86 77 | 
             
                        color: theme("colors.lightMedium");
         | 
| 87 78 | 
             
                    }
         | 
| 88 79 | 
             
                }
         | 
| 89 80 |  | 
| 90 81 | 
             
                &__container {
         | 
| 82 | 
            +
                    flex-grow: 1;
         | 
| 91 83 | 
             
                    margin: 0 auto;
         | 
| 92 84 | 
             
                    padding: 0 theme("spacing.4");
         | 
| 93 85 |  | 
| @@ -1,15 +1,12 @@ | |
| 1 1 | 
             
            .uxf-cms-login-layout {
         | 
| 2 2 | 
             
                align-items: center;
         | 
| 3 | 
            +
                background-color: theme("colors.gray.100");
         | 
| 3 4 | 
             
                display: flex;
         | 
| 4 5 | 
             
                flex-direction: column;
         | 
| 5 6 | 
             
                justify-content: center;
         | 
| 6 7 | 
             
                min-height: 100vh;
         | 
| 7 8 | 
             
                padding: theme("spacing.4");
         | 
| 8 9 |  | 
| 9 | 
            -
                :root .light & {
         | 
| 10 | 
            -
                    background-color: theme("colors.gray.100");
         | 
| 11 | 
            -
                }
         | 
| 12 | 
            -
             | 
| 13 10 | 
             
                :root .dark & {
         | 
| 14 11 | 
             
                    background-color: theme("colors.gray.900");
         | 
| 15 12 | 
             
                    color: theme("colors.darkHigh");
         | 
| @@ -28,12 +25,9 @@ | |
| 28 25 | 
             
                }
         | 
| 29 26 |  | 
| 30 27 | 
             
                &__subtitle {
         | 
| 28 | 
            +
                    color: theme("colors.lightMedium");
         | 
| 31 29 | 
             
                    margin-top: theme("spacing.2");
         | 
| 32 30 |  | 
| 33 | 
            -
                    :root .light & {
         | 
| 34 | 
            -
                        color: theme("colors.lightMedium");
         | 
| 35 | 
            -
                    }
         | 
| 36 | 
            -
             | 
| 37 31 | 
             
                    :root .dark & {
         | 
| 38 32 | 
             
                        color: theme("colors.darkMedium");
         | 
| 39 33 | 
             
                    }
         |