@visns-studio/visns-components 4.0.1 → 4.0.3

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,5 +1,5 @@
1
1
  import React, { useState, useEffect } from 'react';
2
- import styles from './TableFilter.module.css';
2
+ import styles from './styles/TableFilter.module.css';
3
3
 
4
4
  function TableFilter({
5
5
  collapsible = false,
@@ -111,7 +111,7 @@ function TableFilter({
111
111
 
112
112
  // Handle collapsible functionality
113
113
  if (collapsible && filtertype === 'parent') {
114
- setVisibleChildren((prevState) => (prevState === id ? null : id));
114
+ setVisibleChildren(id);
115
115
  }
116
116
  };
117
117
 
@@ -2,11 +2,8 @@
2
2
  .collapsibleMenu {
3
3
  max-height: 0;
4
4
  overflow: hidden;
5
- transition: max-height 0.3s ease-out;
6
- }
7
-
8
- .collapsibleMenu li {
9
- transition: opacity 0.3s ease-out;
5
+ transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
6
+ opacity: 0;
10
7
  }
11
8
 
12
9
  .visibleMenu {
package/package.json CHANGED
@@ -56,7 +56,7 @@
56
56
  "react-dom": "^17.0.1"
57
57
  },
58
58
  "name": "@visns-studio/visns-components",
59
- "version": "4.0.1",
59
+ "version": "4.0.3",
60
60
  "description": "Various packages to assist in the development of our Custom Applications.",
61
61
  "main": "index.js",
62
62
  "scripts": {