@visns-studio/visns-components 4.8.2 → 4.8.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.
package/package.json CHANGED
@@ -75,7 +75,7 @@
75
75
  "react-dom": "^17.0.0 || ^18.0.0"
76
76
  },
77
77
  "name": "@visns-studio/visns-components",
78
- "version": "4.8.2",
78
+ "version": "4.8.3",
79
79
  "description": "Various packages to assist in the development of our Custom Applications.",
80
80
  "main": "src/index.js",
81
81
  "files": [
@@ -528,10 +528,7 @@ const DataGrid = forwardRef(
528
528
  modalGalleryOpen();
529
529
  break;
530
530
  case 'link':
531
- const url = s.baseUrl
532
- ? `${s.baseUrl}/${d[s.key]}`
533
- : `${d[s.key]}`;
534
-
531
+ const url = `${s.baseUrl}/${d[s.key]}`;
535
532
  navigator.clipboard.writeText(url).then(
536
533
  () => {
537
534
  toast.success(
@@ -172,7 +172,7 @@ const ReportForm = ({ config, userProfile }) => {
172
172
  );
173
173
  };
174
174
 
175
- function GenericIndex({ layout = 'full', setting, userProfile }) {
175
+ function GenericIndex({ layout = 'full', setting, themeType, userProfile }) {
176
176
  const gridRef = useRef(null);
177
177
  const [rowsSelected, setRowsSelected] = useState({});
178
178
  const [total, setTotal] = useState(0);
@@ -301,7 +301,13 @@ function GenericIndex({ layout = 'full', setting, userProfile }) {
301
301
  </div>
302
302
  ) : (
303
303
  <>
304
- <div className={styles.grid__subnav}>
304
+ <div
305
+ className={
306
+ themeType === 'alternate'
307
+ ? styles.grid__subnav__alternate
308
+ : styles.grid__subnav
309
+ }
310
+ >
305
311
  <TableFilter
306
312
  filters={subnav}
307
313
  setFilters={setSubnav}
@@ -118,6 +118,57 @@
118
118
  color: var(--tertiary-color);
119
119
  }
120
120
 
121
+ .grid__subnav__alternate {
122
+ flex: 1;
123
+ background: rgba(var(--item-color-rgb), 0.05);
124
+ border-radius: var(--br);
125
+ border: 1px solid rgba(var(--item-color-rgb), 1.15);
126
+ box-sizing: border-box;
127
+ padding: 5px;
128
+ margin: 8px 0;
129
+ height: auto;
130
+ box-shadow: 0 4px 0 rgba(var(--primary-color-rgb), 0.05);
131
+ }
132
+
133
+ .grid__subnav__alternate > ul {
134
+ width: 100%;
135
+ list-style: none;
136
+ padding: 0;
137
+ margin: 0;
138
+ display: flex;
139
+ flex-wrap: wrap;
140
+ }
141
+
142
+ .grid__subnav__alternate > ul li {
143
+ width: 100%;
144
+ margin-bottom: 3px;
145
+ }
146
+
147
+ .grid__subnav__alternate > ul li a {
148
+ width: 100%;
149
+ padding: 8px 20px;
150
+ box-sizing: border-box;
151
+ display: block;
152
+ text-decoration: none;
153
+ background: rgba(var(--item-color-rgb), 1.05);
154
+ color: var(--secondary-color);
155
+ border-radius: 5px;
156
+ transition: background 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
157
+ outline: none;
158
+ cursor: pointer;
159
+ }
160
+
161
+ .grid__subnav__alternate > ul li:hover a {
162
+ background: var(--primary-color);
163
+ color: var(--secondary-color);
164
+ }
165
+
166
+ .grid__subnav__alternate > ul li .subactive {
167
+ font-weight: 700;
168
+ background: var(--primary-color);
169
+ color: var(--secondary-color);
170
+ }
171
+
121
172
  .grid__minheight {
122
173
  min-height: 300px;
123
174
  }