dry-ux 1.61.0 → 1.62.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.
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { IEnhancedProps } from "./interface";
3
- import "./styles.css";
3
+ import "../styles/validation.css";
4
4
  /**
5
5
  * Forwarded ref input component with enhancements.
6
6
  */
@@ -14,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.TextArea = exports.Select = exports.Input = void 0;
15
15
  const React = require("react");
16
16
  const withEnhancements_1 = require("./withEnhancements");
17
- require("./styles.css");
17
+ require("../styles/validation.css");
18
18
  /**
19
19
  * Enhanced input component with enhancements applied.
20
20
  */
@@ -0,0 +1,20 @@
1
+ .dry-ux-overlay {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ background-color: rgba(0, 0, 0, 0.65);
8
+ z-index: 1050;
9
+ border-radius: 10px;
10
+ }
11
+
12
+ .dry-ux-overlay-content {
13
+ position: absolute;
14
+ top: 50%;
15
+ left: 50%;
16
+ transform: translate(-50%, -50%);
17
+ background-color: white;
18
+ padding: 10px;
19
+ border-radius: 5px;
20
+ }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { Content, PopUpOptions } from "./UIUtil.interface";
3
- import "./overlay.css";
3
+ import "../styles/modal-overlay.css";
4
4
  export interface IModalProps {
5
5
  options: PopUpOptions;
6
6
  handleClose: () => void;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const React = require("react");
4
4
  const react_bootstrap_1 = require("react-bootstrap");
5
- require("./overlay.css");
5
+ require("../styles/modal-overlay.css");
6
6
  const Modal = React.memo(({ handleClose, shown, overlay, options: { content, footerContent, cssClass, closeBtn, title, width, onClose, titleCloseBtn = true, centered, trackingId, }, config: { defaultModalStyles = false, styles = {}, setBackdropHeight = true, centered: globalCentered, onOpen, onClose: globalOnClose, }, }) => {
7
7
  const isCentered = centered !== null && centered !== void 0 ? centered : globalCentered;
8
8
  const modalRef = React.useRef(null);
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "dry-ux",
3
- "version": "1.61.0",
3
+ "version": "1.62.0",
4
4
  "description": "",
5
5
  "main": "dist/index",
6
6
  "scripts": {
7
- "copy-css": "copyfiles -u 2 \"./src/enhanced-inputs/styles.css\" \"./dist/enhanced-inputs\"",
7
+ "copy-css": "copyfiles -u 2 \"./src/styles/*.css\" \"./dist/styles\"",
8
8
  "build": "rimraf dist/ && tsc && npm run copy-css",
9
9
  "watch": "rimraf dist/ && tsc --watch",
10
10
  "format": "prettier --write \"src/**/*.ts\" \"src/**/*.tsx\"",