@platformatic/ui-components 0.7.5 → 0.7.6

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/index.html CHANGED
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Platformatic UI Components</title>
7
- <script type="module" crossorigin src="/assets/index-B3XhZH_I.js"></script>
8
- <link rel="stylesheet" crossorigin href="/assets/index-BUMVjZ-U.css">
7
+ <script type="module" crossorigin src="/assets/index-BoYIO6ze.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-BGuh7roL.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
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.7.5",
4
+ "version": "0.7.6",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -8,7 +8,8 @@ function TabbedWindow ({
8
8
  keySelected = '',
9
9
  callbackSelected = () => {},
10
10
  tabContainerClassName = '',
11
- tabContentClassName = ''
11
+ tabContentClassName = '',
12
+ textClassName = ''
12
13
  }) {
13
14
  const headers = []
14
15
  const keys = []
@@ -38,7 +39,7 @@ function TabbedWindow ({
38
39
  {headers.map((header, index) => {
39
40
  return (
40
41
  <React.Fragment key={index}>
41
- <span onClick={() => setCurrentTab(index)} className={`${styles.tab} ${selected === keys[index] ? styles['selected-tab'] : ''}`} title={header}>
42
+ <span onClick={() => setCurrentTab(index)} className={`${styles.tab} ${textClassName} ${selected === keys[index] ? styles['selected-tab'] : ''}`} title={header}>
42
43
  {header}
43
44
  </span>
44
45
  </React.Fragment>
@@ -62,8 +63,19 @@ TabbedWindow.propTypes = {
62
63
  /**
63
64
  * callbackSelected
64
65
  */
65
- callbackSelected: PropTypes.func
66
-
66
+ callbackSelected: PropTypes.func,
67
+ /**
68
+ * tabContainerClassName
69
+ */
70
+ tabContainerClassName: PropTypes.string,
71
+ /**
72
+ * tabContentClassName
73
+ */
74
+ tabContentClassName: PropTypes.string,
75
+ /**
76
+ * textClassName
77
+ */
78
+ textClassName: PropTypes.string
67
79
  }
68
80
 
69
81
  export default TabbedWindow
@@ -5,13 +5,13 @@
5
5
  @apply flex justify-start text-white uppercase hover:cursor-pointer mb-4 tracking-super-widest h-[2rem];
6
6
  }
7
7
  .tab {
8
- @apply mx-8 min-w-[105px] text-center text-sm first:ml-0 last:mr-0 hover:font-semibold;
8
+ @apply mx-8 min-w-[105px] text-center text-sm first:ml-0 last:mr-0 font-light hover:font-medium opacity-70;
9
9
  }
10
10
  .selected-tab {
11
- @apply underline underline-offset-8 font-semibold;
11
+ @apply underline underline-offset-8 font-medium opacity-100;
12
12
  }
13
13
  .tabContentClassName {
14
- @apply max-h-[calc(100vH-10rem)] overflow-y-auto
14
+ @apply max-h-[calc(100vH-10rem)] overflow-y-auto;
15
15
  }
16
16
  .tab::before {
17
17
  display: block;