ar-design 0.1.84 → 0.1.85
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/assets/css/components/data-display/table/styles.css +1 -0
- package/dist/assets/css/components/feedback/modal/media-queries/medium.css +11 -0
- package/dist/assets/css/components/feedback/modal/media-queries/small.css +11 -0
- package/dist/assets/css/components/feedback/modal/media-queries/x-large.css +5 -0
- package/dist/assets/css/components/feedback/modal/{modal.css → styles.css} +5 -0
- package/dist/assets/css/components/feedback/popover/styles.css +1 -0
- package/dist/assets/css/components/feedback/tooltip/styles.css +3 -0
- package/dist/assets/css/components/layout/grid-system/row/styles.css +6 -0
- package/dist/assets/css/components/layout/layout.css +5 -0
- package/dist/assets/css/components/layout/media-queries/medium.css +21 -0
- package/dist/assets/css/components/layout/media-queries/small.css +21 -0
- package/dist/assets/css/components/layout/media-queries/x-large.css +13 -0
- package/dist/components/data-display/table/index.js +1 -1
- package/dist/components/feedback/modal/index.d.ts +1 -1
- package/dist/components/feedback/modal/index.js +3 -3
- package/dist/components/layout/LSider.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@media (width <= 991px) {
|
|
2
|
+
.ar-layout > header > .ar-header-with-wrap {
|
|
3
|
+
width: 767px !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.ar-layout > main {
|
|
7
|
+
width: 767px !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ar-layout > main > aside.ar-aside.left {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
.ar-layout > main > aside.ar-aside.right {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ar-layout > main > section {
|
|
18
|
+
min-width: 100% !important;
|
|
19
|
+
padding-left: 0 !important;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@media (width <= 767px) {
|
|
2
|
+
.ar-layout > header > .ar-header-with-wrap {
|
|
3
|
+
width: 95% !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.ar-layout > main {
|
|
7
|
+
width: 95% !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ar-layout > main > aside.ar-aside.left {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
.ar-layout > main > aside.ar-aside.right {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ar-layout > main > section {
|
|
18
|
+
min-width: 100% !important;
|
|
19
|
+
padding-left: 0 !important;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -191,7 +191,7 @@ const Table = function ({ children, title, description, data, columns, actions,
|
|
|
191
191
|
}) }, c.title));
|
|
192
192
|
})),
|
|
193
193
|
config?.isSearchable && (React.createElement("tr", { key: "isSearchable" },
|
|
194
|
-
selections && React.createElement("th", { key: `column-selections
|
|
194
|
+
selections && (React.createElement("th", { key: `column-selections`, className: "selection-col sticky-left", "data-sticky-position": "left" })),
|
|
195
195
|
columns.map((c, cIndex) => {
|
|
196
196
|
let _className = [];
|
|
197
197
|
if (c.config?.sticky)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React, { useEffect, useRef } from "react";
|
|
3
|
-
import "../../../assets/css/components/feedback/modal/
|
|
3
|
+
import "../../../assets/css/components/feedback/modal/styles.css";
|
|
4
4
|
import Typography from "../../data-display/typography";
|
|
5
5
|
const { Title } = Typography;
|
|
6
6
|
const Modal = ({ children, open, title, size = "normal", footer }) => {
|
|
@@ -28,7 +28,7 @@ const Modal = ({ children, open, title, size = "normal", footer }) => {
|
|
|
28
28
|
const sx = window.scrollX || document.documentElement.scrollLeft;
|
|
29
29
|
const sy = window.scrollY || document.documentElement.scrollTop;
|
|
30
30
|
if (window.innerHeight > 1024) {
|
|
31
|
-
arModal.style.top =
|
|
31
|
+
arModal.style.top = `${sy + 100}px`;
|
|
32
32
|
content.removeAttribute("style");
|
|
33
33
|
}
|
|
34
34
|
else if (window.innerHeight > 575 && window.innerHeight < 1024) {
|
|
@@ -36,7 +36,7 @@ const Modal = ({ children, open, title, size = "normal", footer }) => {
|
|
|
36
36
|
content.removeAttribute("style");
|
|
37
37
|
}
|
|
38
38
|
else if (window.innerHeight < 575) {
|
|
39
|
-
arModal.style.top =
|
|
39
|
+
arModal.style.top = `${sy + 15}px`;
|
|
40
40
|
content.style.maxHeight = `calc(100vh - ${footer ? "2.5px" : "-30.5px"} - 3.5rem - 4rem - ${footer ? "2rem" : "0rem"})`;
|
|
41
41
|
}
|
|
42
42
|
arModal.style.left = `${screenCenterX - rect.width / 2 + sx}px`;
|
|
@@ -3,8 +3,8 @@ import React from "react";
|
|
|
3
3
|
import { useLayout } from "../../libs/core/application/hooks";
|
|
4
4
|
const LSider = () => {
|
|
5
5
|
// hooks
|
|
6
|
-
const { config
|
|
7
|
-
const sider =
|
|
6
|
+
const { config } = useLayout();
|
|
7
|
+
const sider = config.layout.sider.left;
|
|
8
8
|
if (!sider?.active)
|
|
9
9
|
return null;
|
|
10
10
|
return React.createElement("aside", { className: "ar-aside left" }, sider.element);
|