@axinom/mosaic-ui 0.35.0-rc.6 → 0.35.0-rc.7

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.35.0-rc.6",
3
+ "version": "0.35.0-rc.7",
4
4
  "description": "UI components for building Axinom Mosaic applications",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -32,7 +32,7 @@
32
32
  "build-storybook": "storybook build"
33
33
  },
34
34
  "dependencies": {
35
- "@axinom/mosaic-core": "^0.4.8-rc.6",
35
+ "@axinom/mosaic-core": "^0.4.8-rc.7",
36
36
  "@faker-js/faker": "^7.4.0",
37
37
  "@popperjs/core": "^2.9.2",
38
38
  "clsx": "^1.1.0",
@@ -102,5 +102,5 @@
102
102
  "publishConfig": {
103
103
  "access": "public"
104
104
  },
105
- "gitHead": "fbce2938b9cd214639ad5a242fdf0c00b9f14b82"
105
+ "gitHead": "eb66c99a264800690d2853aa57e541968aa31aad"
106
106
  }
@@ -9,13 +9,13 @@
9
9
  align-items: center;
10
10
 
11
11
  .false {
12
- background-image: url("data:image/svg+xml, %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' %3E%3Cpath vector-effect='non-scaling-stroke' fill='none' stroke='%23707070' stroke-width='2' d='M20.1,2.4c9.9,0,18,8.1,18,18s-8.1,18-18,18s-18-8.1-18-18 S10.2,2.4,20.1,2.4z M28.6,20H11.4'/%3E%3C/svg%3E");
12
+ background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath vector-effect='non-scaling-stroke' fill='none' stroke='%23B7B7B7' stroke-width='2' d='M20,2c9.9,0,18,8.1,18,18s-8.1,18-18,18S2,29.9,2,20S10.1,2,20,2z M11,20h18'/%3E%3C/svg%3E");
13
13
  height: 20px;
14
14
  width: 20px;
15
15
  }
16
16
 
17
17
  .true {
18
- background-image: url("data:image/svg+xml, %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' %3E%3Cpath vector-effect='non-scaling-stroke' fill='none' stroke='%2395C842' stroke-width='2' d='M20,2c9.9,0,18,8.1,18,18s-8.1,18-18,18S2,29.9,2,20S10.1,2,20,2z M29,13.5 L17.8,26.3L11,19.1'/%3E%3C/svg%3E");
18
+ background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath vector-effect='non-scaling-stroke' fill='none' stroke='%23707070' stroke-width='2' d='M20,2c9.9,0,18,8.1,18,18s-8.1,18-18,18S2,29.9,2,20S10.1,2,20,2z M29,13.5 L17.8,26.3L11,19.1'/%3E%3C/svg%3E%0A");
19
19
  height: 20px;
20
20
  width: 20px;
21
21
  }
@@ -1,17 +1,14 @@
1
1
  @import '../../../../../styles/common.scss';
2
2
 
3
3
  .circle {
4
- height: var(--boolean-dot-size, $boolean-dot-size);
5
- width: var(--boolean-dot-size, $boolean-dot-size);
6
- min-width: var(--boolean-dot-size, $boolean-dot-size);
7
- min-height: var(--boolean-dot-size, $boolean-dot-size);
8
- border-radius: 100%;
4
+ height: 20px;
5
+ width: 20px;
9
6
 
10
- &.green {
11
- background-color: var(--boolean-dot-true-color, $boolean-dot-true-color);
7
+ &.true {
8
+ background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath vector-effect='non-scaling-stroke' fill='none' stroke='%23707070' stroke-width='2' d='M20,2c9.9,0,18,8.1,18,18s-8.1,18-18,18S2,29.9,2,20S10.1,2,20,2z M29,13.5 L17.8,26.3L11,19.1'/%3E%3C/svg%3E%0A");
12
9
  }
13
10
 
14
- &.red {
15
- background-color: var(--boolean-dot-false-color, $boolean-dot-false-color);
11
+ &.false {
12
+ background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath vector-effect='non-scaling-stroke' fill='none' stroke='%23B7B7B7' stroke-width='2' d='M20,2c9.9,0,18,8.1,18,18s-8.1,18-18,18S2,29.9,2,20S10.1,2,20,2z M11,20h18'/%3E%3C/svg%3E");
16
13
  }
17
14
  }
@@ -29,13 +29,13 @@ describe('BooleanDotRenderer', () => {
29
29
  const wrapper = shallow(
30
30
  <RendererWrapper {...defaultProps} value={false} />,
31
31
  );
32
- const dot = wrapper.find('.red');
32
+ const dot = wrapper.find('.false');
33
33
  expect(dot).toHaveLength(1);
34
34
  });
35
35
 
36
36
  it('renders the green dot when true is passed', () => {
37
37
  const wrapper = shallow(<RendererWrapper {...defaultProps} value={true} />);
38
- const dot = wrapper.find('.green');
38
+ const dot = wrapper.find('.true');
39
39
  expect(dot).toHaveLength(1);
40
40
  });
41
41
  });
@@ -17,6 +17,6 @@ import classes from './BooleanDotRenderer.scss';
17
17
  */
18
18
  export const BooleanDotRenderer = (val: unknown): JSX.Element => (
19
19
  <div
20
- className={clsx(classes.circle, val ? [classes.green] : [classes.red])}
20
+ className={clsx(classes.circle, val ? [classes.true] : [classes.false])}
21
21
  ></div>
22
22
  );
@@ -248,11 +248,6 @@ $actions-border-color: white;
248
248
  $background: #ccc;
249
249
  $fallback-image-bg-color: #efefef;
250
250
 
251
- /* ListRow Renderers */
252
- $boolean-dot-true-color: $green;
253
- $boolean-dot-false-color: $red;
254
- $boolean-dot-size: 20px;
255
-
256
251
  /* Modal */
257
252
  $modal-back-drop-color: rgba(169, 169, 169, 0.75);
258
253
  $modal-back-drop-color-hidden: rgba(169, 169, 169, 0);