@woosmap/ui 3.115.0 → 3.118.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": "@woosmap/ui",
3
- "version": "3.115.0",
3
+ "version": "3.118.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -33,7 +33,7 @@
33
33
  "test:generate-output": "react-scripts test --json --outputFile=./.storybook/jest-test-results.json --silent",
34
34
  "prestorybook:dev": "clear && echo \"DOING FIRST TEST RUN\" && CI=true npm run test:generate-output",
35
35
  "storybook:dev": "clear && concurrently -k \"npm run storybook\" \"npm run test:generate-output\"",
36
- "storybook": "start-storybook -p 9009 -s public",
36
+ "storybook": "start-storybook -p 9009 -s public -h localhost",
37
37
  "build-storybook": "build-storybook -s public",
38
38
  "icons": "svgo -f ./src/icons --config ./svgo-config.js",
39
39
  "deploy-storybook": "storybook-to-ghpages",
@@ -36,10 +36,11 @@
36
36
  width 100%
37
37
  min-width 0
38
38
  .inline &
39
- order 1
39
+ order 2
40
40
  margin-right 1.2rem
41
41
  margin-bottom 0
42
42
  padding-right 0
43
+ max-width 18rem
43
44
  &__subtitle
44
45
  ellipsis()
45
46
  font-size $fontSizeSmall
@@ -48,6 +49,7 @@
48
49
  min-width 0
49
50
  .inline &
50
51
  order 3
52
+ width auto
51
53
  margin-left auto
52
54
  &__content
53
55
  flexMiddle()
@@ -65,7 +67,7 @@
65
67
  position unset
66
68
  top unset
67
69
  right unset
68
- order 2
70
+ order 1
69
71
  flex-shrink 0
70
72
  margin-right 1.2rem
71
73
  .tooltip
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable jsx-a11y/label-has-associated-control */
2
2
  import React, { Component } from 'react';
3
3
  import PropTypes from 'prop-types';
4
+ import cl from 'classnames';
4
5
 
5
6
  export default class Switch extends Component {
6
7
  handleKeyPress = (e) => {
@@ -49,7 +50,7 @@ export default class Switch extends Component {
49
50
  <span className="switch__controller" tabIndex={-1} />
50
51
  </label>
51
52
  </div>
52
- <span>{text}</span>
53
+ <span className={cl('switch__text', { 'switch__text--disabled': disabled })}>{text}</span>
53
54
  </div>
54
55
  );
55
56
  }
@@ -25,6 +25,9 @@
25
25
  > span
26
26
  &:focus
27
27
  outline none
28
+ &__text
29
+ &--disabled
30
+ opacity .4
28
31
  &__inner
29
32
  display block
30
33
  width 200%
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 37.486c3.248 0 6.546-1.2 8.401-3.057a1.501 1.501 0 0 0-2.122-2.121c-1.301 1.302-3.824 2.177-6.278 2.177s-4.978-.875-6.278-2.177a1.5 1.5 0 1 0-2.122 2.121c1.855 1.857 5.153 3.057 8.401 3.057Z"/><path d="M64.111 37.855c2.279-2.987 3.649-6.702 3.649-10.741a17.64 17.64 0 0 0-1.154-6.252c.238-.244.45-.516.594-.839a2.894 2.894 0 0 0-.245-2.809l-.724-1.073 1.565-4.669a2.93 2.93 0 0 0-.343-2.577 2.929 2.929 0 0 0-2.248-1.306L50.104 6.523a1.486 1.486 0 0 0-.211 0L34.792 7.589a2.932 2.932 0 0 0-2.248 1.306 2.928 2.928 0 0 0-.343 2.576l1.565 4.67-.724 1.073a2.894 2.894 0 0 0-.245 2.809c.144.323.356.595.594.839a17.64 17.64 0 0 0-1.154 6.252c0 4.038 1.37 7.754 3.649 10.741-9.402 1.748-16.514 10.121-16.514 19.855v32.243a3.533 3.533 0 0 0 3.529 3.529h8.783a5.193 5.193 0 0 0 4.963-3.684H64.13a5.195 5.195 0 0 0 4.963 3.684h7.999a3.533 3.533 0 0 0 3.529-3.529V57.71c0-9.734-7.112-18.107-16.514-19.855ZM35.615 18.771l.609-.904h27.574l.634.898L50 20.804l-14.386-2.032Zm14.389-9.249 14.95.996-1.458 4.349H36.502l-1.453-4.289 14.955-1.056ZM36.212 21.885l13.579 1.918a1.473 1.473 0 0 0 .42 0l13.579-1.918c.636 1.672.971 3.428.971 5.23 0 8.139-6.621 14.76-14.76 14.76s-14.76-6.621-14.76-14.76c0-1.802.335-3.557.971-5.23Zm12.541 28.734c.12-.806.825-1.414 1.641-1.414s1.521.608 1.632 1.345l1.718 16.84a1.967 1.967 0 0 1-.39 1.489l-2.129 2.748a1.033 1.033 0 0 1-.832.408c-.192 0-.557-.053-.831-.408l-2.129-2.748c-.325-.42-.468-.963-.381-1.558l1.701-16.702Zm3.068-5.745-1.264 1.263a.234.234 0 0 1-.138.07l-.026-.002c-.009 0-.018.003-.028.003a.24.24 0 0 1-.138-.071l-1.263-1.263h2.856Zm25.805 45.079a.53.53 0 0 1-.529.529h-7.999a2.187 2.187 0 0 1-2.184-2.184V60.882a1.5 1.5 0 1 0-3 0v25.916H36.873V60.882a1.5 1.5 0 1 0-3 0v27.416c0 1.204-.98 2.184-2.185 2.184h-8.783a.53.53 0 0 1-.529-.529V57.71c0-8.843 6.892-16.366 15.688-17.126.112-.01.218-.033.321-.066a17.707 17.707 0 0 0 6.789 3.672 2.41 2.41 0 0 0 .695 1.831l1.409 1.409a4.744 4.744 0 0 0-1.502 2.815l-1.701 16.703a4.987 4.987 0 0 0 .985 3.769l2.129 2.748c.772.998 1.94 1.57 3.202 1.57s2.431-.572 3.203-1.57l2.129-2.748c.825-1.065 1.185-2.439.994-3.7l-1.718-16.84a4.64 4.64 0 0 0-1.489-2.751l1.404-1.404a2.405 2.405 0 0 0 .673-2.062 17.737 17.737 0 0 0 6.027-3.442c.103.032.209.056.321.066 8.797.761 15.688 8.284 15.688 17.126v32.243Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="m77.924 62.799-16.547-7.421a1.498 1.498 0 0 0-1.824.481L50 68.885l-9.553-13.026a1.501 1.501 0 0 0-1.824-.481l-16.547 7.421a10.716 10.716 0 0 0-6.322 9.765v13.534a1.5 1.5 0 1 0 3 0V72.564a7.71 7.71 0 0 1 4.551-7.027l6.63-2.974-1.541 4.789a1.5 1.5 0 0 0 1.786 1.916l7.459-1.834 11.142 15.575c.012.017.029.029.042.045a1.57 1.57 0 0 0 .251.255c.019.015.034.033.054.047.022.016.049.021.072.036.089.057.181.103.279.139.039.015.077.031.118.043.13.036.263.06.398.061h.014c.135 0 .268-.024.398-.061.04-.011.078-.028.118-.043.097-.036.19-.083.279-.139.023-.015.049-.02.072-.036.02-.014.035-.032.054-.047.031-.025.06-.052.09-.079a1.48 1.48 0 0 0 .161-.176c.013-.016.029-.028.041-.045l11.142-15.575 7.459 1.834a1.5 1.5 0 0 0 1.786-1.916l-1.541-4.789 6.63 2.974a7.712 7.712 0 0 1 4.551 7.027v13.534a1.5 1.5 0 1 0 3 0V72.564c0-4.209-2.481-8.042-6.322-9.765Zm-9.996 2.914-5.837-1.435a1.5 1.5 0 0 0-1.578.584L50 79.559 39.487 64.862a1.5 1.5 0 0 0-1.578-.584l-5.837 1.435 1.545-4.802 5.128-2.3L48.79 72.309c.566.771 1.854.771 2.42 0l10.045-13.698 5.128 2.3 1.545 4.802Z"/><path d="M29.821 78.93a1.5 1.5 0 0 0-1.5 1.5v5.592a1.5 1.5 0 1 0 3 0V80.43a1.5 1.5 0 0 0-1.5-1.5ZM70.125 78.93a1.5 1.5 0 0 0-1.5 1.5v5.592a1.5 1.5 0 1 0 3 0V80.43a1.5 1.5 0 0 0-1.5-1.5ZM49.294 55.738c9.802 0 17.776-8.546 17.776-19.051 0-1.029-.103-2.053-.255-3.065.112-.167.191-.355.229-.557l1.324-6.97a6.578 6.578 0 0 0-3.018-6.806 48.374 48.374 0 0 0-19.654-6.811l-.25-.03a6.548 6.548 0 0 0-7.006 4.498l-1.601 4.983c-.119.371-.077.753.078 1.086-3.449 3.578-5.401 8.462-5.401 13.671 0 10.505 7.975 19.051 17.777 19.051Zm0-3c-8.148 0-14.777-7.201-14.777-16.051 0-4.616 1.805-8.907 4.953-11.955a101.76 101.76 0 0 0 24.358 9.18c.147.915.243 1.842.243 2.775 0 8.851-6.629 16.051-14.776 16.051Zm-7.998-34.875a3.566 3.566 0 0 1 3.795-2.437l.251.03a45.4 45.4 0 0 1 18.444 6.392 3.56 3.56 0 0 1 1.656 3.493c-2.464-.985-7.567-2.984-12.34-4.586a1.5 1.5 0 1 0-.955 2.844c5.108 1.714 10.611 3.894 12.739 4.752l-.498 2.623a98.773 98.773 0 0 1-24.312-9.308l1.221-3.803Z"/></svg>