@platformatic/ui-components 0.1.144 → 0.1.145

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@platformatic/ui-components",
3
3
  "description": "Platformatic UI Components",
4
- "version": "0.1.144",
4
+ "version": "0.1.145",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -84,7 +84,7 @@ function Modal ({
84
84
  case MODAL_POPUP_V2:
85
85
  whichModal = (
86
86
  <>
87
- <div className={`${styles['blur-absolute']}`} onClick={() => setIsOpen(false)} />
87
+ <div className={`${styles['blur-fixed']}`} onClick={() => setIsOpen(false)} />
88
88
  <div className={`${styles.container} ${styles.centered}`}>
89
89
  <div className={modalClassName}>
90
90
  <div className={headerClassName}>
@@ -5,12 +5,15 @@
5
5
  .blur-absolute {
6
6
  @apply absolute top-0 left-0 w-full h-full z-10 bg-rich-black/75;
7
7
  }
8
+ .blur-fixed {
9
+ @apply fixed top-0 left-0 w-screen h-full z-10 bg-rich-black/75;
10
+ }
11
+
8
12
  .container {
9
13
  @apply z-20;
10
14
  }
11
15
  .centered {
12
- @apply fixed top-[50%] left-[50%];
13
- transform: translate(-50%, -50%);
16
+ @apply fixed top-[50%] left-0 lg:left-[50%] translate-y-[-50%] translate-x-[0] lg:translate-x-[-50%];
14
17
  }
15
18
  .modal {
16
19
  @apply p-4 rounded-md mx-auto my-auto max-h-[85vh] overflow-y-auto;
@@ -48,10 +51,10 @@
48
51
  @apply inline-flex items-center;
49
52
  }
50
53
  .modal--small {
51
- @apply w-auto lg:min-w-[480px] lg:max-w-[480px];
54
+ @apply w-[calc(100vW-2rem)] lg:min-w-[480px] lg:max-w-[480px];
52
55
  }
53
56
  .modal--medium {
54
- @apply w-auto lg:min-w-[880px] lg:max-w-[880px];
57
+ @apply w-[calc(100vW-2rem)] lg:min-w-[880px] lg:max-w-[880px];
55
58
  }
56
59
  .modal--full-width {
57
60
  @apply w-screen min-w-full;
@@ -5,10 +5,10 @@ import { DARK_GREEN, MAIN_DARK_BLUE, OPACITY_10, OPACITY_20, OPACITY_30, OPACITY
5
5
  import commonStyles from './Common.module.css'
6
6
  import styles from './VerticalSeparator.module.css'
7
7
 
8
- function VerticalSeparator ({ color, backgroundColorOpacity }) {
8
+ function VerticalSeparator ({ color, backgroundColorOpacity, classes }) {
9
9
  const backgroundColor = commonStyles[`background-color-${color}`]
10
10
  const backgroundOpacity = commonStyles[`background-color-opaque-${backgroundColorOpacity}`]
11
- const className = `${backgroundColor} ${backgroundOpacity} ${styles.fullHeight}`
11
+ const className = `${backgroundColor} ${backgroundOpacity} ${styles.fullHeight} ${classes}`
12
12
  return <div className={className} />
13
13
  }
14
14
 
@@ -24,12 +24,18 @@ VerticalSeparator.propTypes = {
24
24
  OPACITY_20,
25
25
  OPACITY_30,
26
26
  OPACITY_60,
27
- OPACITY_100])
27
+ OPACITY_100]),
28
+ /**
29
+ * backgroundColorOpacity
30
+ */
31
+ classes: PropTypes.string
32
+
28
33
  }
29
34
 
30
35
  VerticalSeparator.defaultProps = {
31
36
  color: DARK_GREEN,
32
- backgroundColorOpacity: 100
37
+ backgroundColorOpacity: 100,
38
+ classes: ''
33
39
  }
34
40
 
35
41
  export default VerticalSeparator