@axinom/mosaic-ui 0.66.0 → 0.67.0-rc.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-ui",
3
- "version": "0.66.0",
3
+ "version": "0.67.0-rc.0",
4
4
  "description": "UI components for building Axinom Mosaic applications",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -112,5 +112,5 @@
112
112
  "publishConfig": {
113
113
  "access": "public"
114
114
  },
115
- "gitHead": "c484ceff643b3ac656a5a5aebb30394be58ee2e0"
115
+ "gitHead": "70d5670035f6c7b78dcea00a0b5e082bef45afe3"
116
116
  }
@@ -1,5 +1,11 @@
1
1
  @import '../../styles/common.scss';
2
2
 
3
+ .container {
4
+ div:has(> .selectionHeader) {
5
+ z-index: 12 !important;
6
+ }
7
+ }
8
+
3
9
  .header {
4
10
  display: grid;
5
11
  grid-template-columns: 1fr 50px;
@@ -7,10 +13,6 @@
7
13
  align-items: center;
8
14
  }
9
15
 
10
- .item {
11
- z-index: 0;
12
- }
13
-
14
16
  .selectionHeader {
15
17
  display: grid;
16
18
  grid-template-columns: 1fr;
@@ -1,3 +1,4 @@
1
+ import clsx from 'clsx';
1
2
  import React, { useEffect } from 'react';
2
3
  import { noop } from '../../helpers/utils';
3
4
  import { Accordion, AccordionItem } from '../Accordion';
@@ -57,7 +58,7 @@ export const FieldSelection: React.FC<FieldSelectionProps> = ({
57
58
 
58
59
  return (
59
60
  <Accordion
60
- className={className}
61
+ className={clsx(classes.container, className)}
61
62
  expandedByDefault={true}
62
63
  header={
63
64
  <FieldSelectionHeader
@@ -84,7 +85,6 @@ export const FieldSelection: React.FC<FieldSelectionProps> = ({
84
85
  {selectedFields.map((field) => (
85
86
  <AccordionItem
86
87
  key={field.value}
87
- className={classes.item}
88
88
  header={
89
89
  <FieldSelectionItemHeader
90
90
  label={field.label as string}
@@ -112,7 +112,6 @@ describe('SvgElement', () => {
112
112
  it('passes through additional SVG attributes', () => {
113
113
  const customProps: SvgElementProps = {
114
114
  id: 'custom-id',
115
- 'data-testid': 'custom-svg',
116
115
  fill: 'currentColor',
117
116
  stroke: 'red',
118
117
  strokeWidth: '2',
@@ -122,7 +121,6 @@ describe('SvgElement', () => {
122
121
  const svg = wrapper.find('svg');
123
122
 
124
123
  expect(svg.prop('id')).toBe('custom-id');
125
- expect(svg.prop('data-testid')).toBe('custom-svg');
126
124
  expect(svg.prop('fill')).toBe('currentColor');
127
125
  expect(svg.prop('stroke')).toBe('red');
128
126
  expect(svg.prop('strokeWidth')).toBe('2');