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.
@@ -101,6 +101,7 @@
101
101
  }
102
102
  .ar-table > .content > table > thead > tr > th.selection-col {
103
103
  width: 2rem;
104
+ z-index: 3;
104
105
  }
105
106
  .ar-table > .content > table > thead > tr > th.type-of-number {
106
107
  text-align: right;
@@ -0,0 +1,11 @@
1
+ @media (width <= 991px) {
2
+ .ar-modal-wrapper > .ar-modal.large {
3
+ width: 75%;
4
+ }
5
+ .ar-modal-wrapper > .ar-modal.normal {
6
+ width: 520px;
7
+ }
8
+ .ar-modal-wrapper > .ar-modal.small {
9
+ width: 25%;
10
+ }
11
+ }
@@ -0,0 +1,11 @@
1
+ @media (width <= 767px) {
2
+ .ar-modal-wrapper > .ar-modal.large {
3
+ width: 95% !important;
4
+ }
5
+ .ar-modal-wrapper > .ar-modal.normal {
6
+ width: 95% !important;
7
+ }
8
+ .ar-modal-wrapper > .ar-modal.small {
9
+ width: 95% !important;
10
+ }
11
+ }
@@ -0,0 +1,5 @@
1
+ @media (width <= 1280px) {
2
+ .ar-modal-wrapper > .ar-modal.large {
3
+ width: 75%;
4
+ }
5
+ }
@@ -43,3 +43,8 @@
43
43
  @import url("./header.css");
44
44
  @import url("./content.css");
45
45
  @import url("./footer.css");
46
+
47
+ /* Media Queries */
48
+ @import url("./media-queries/x-large.css");
49
+ @import url("./media-queries/medium.css");
50
+ @import url("./media-queries/small.css");
@@ -1,5 +1,6 @@
1
1
  .ar-popover-wrapper {
2
2
  position: relative;
3
+ width: max-content;
3
4
  }
4
5
 
5
6
  .ar-popover {
@@ -1,3 +1,6 @@
1
+ .ar-tooltip-wrapper {
2
+ width: max-content;
3
+ }
1
4
  .ar-tooltip {
2
5
  position: absolute;
3
6
  display: flex;
@@ -22,3 +22,9 @@
22
22
  max-width: 100%;
23
23
  min-height: 1px;
24
24
  }
25
+
26
+ @media (width <= 575px) {
27
+ .row > .col {
28
+ min-width: 100%;
29
+ }
30
+ }
@@ -37,3 +37,8 @@
37
37
  }
38
38
 
39
39
  @import url("./header.css");
40
+
41
+ /* Media Queries */
42
+ /* @import url("./media-queries/x-large.css");
43
+ @import url("./media-queries/medium.css");
44
+ @import url("./media-queries/small.css"); */
@@ -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
+ }
@@ -0,0 +1,13 @@
1
+ @media (width <= 1280px) {
2
+ .ar-layout > header > .ar-header-with-wrap {
3
+ width: 991px !important;
4
+ }
5
+
6
+ .ar-layout > main {
7
+ width: 991px !important;
8
+ }
9
+
10
+ .ar-layout > main > section {
11
+ min-width: 791px !important;
12
+ }
13
+ }
@@ -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,5 +1,5 @@
1
1
  import React from "react";
2
2
  import IProps from "./IProps";
3
- import "../../../assets/css/components/feedback/modal/modal.css";
3
+ import "../../../assets/css/components/feedback/modal/styles.css";
4
4
  declare const Modal: React.FC<IProps>;
5
5
  export default Modal;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import React, { useEffect, useRef } from "react";
3
- import "../../../assets/css/components/feedback/modal/modal.css";
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 = "100px";
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 = "15px";
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: options } = useLayout();
7
- const sider = options.layout.sider.left;
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.1.84",
3
+ "version": "0.1.85",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",