@loomhq/lens 10.43.7 → 10.44.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/README.md CHANGED
@@ -62,7 +62,7 @@ navigate to: http://localhost:3000
62
62
 
63
63
  ### Use conventional commits
64
64
 
65
- Use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) to kick off publishing a new version of Lens when PR is merged. To upgrade Lens to the latest published version in the [main Loom repo](http://github.com/loomhq/loom), `cd src/client` and `pnpm up @loomhq/lens`.
65
+ Use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) to kick off publishing a new version of Lens when PR is merged. To upgrade Lens to the latest published version in the [main Loom repo](http://github.com/loomhq/loom), `cd projects/webapp-client` and `pnpm up @loomhq/lens`.
66
66
 
67
67
  ### Add an icon to the icon set
68
68
 
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { getColorValue, getFocusRing, getFontWeight, getSize, getTextSize, u, } from '../../utilities';
12
+ import { getColorValue, getFocusRing, getFontWeight, getRadius, getSize, getTextSize, u, } from '../../utilities';
13
13
  import Icon from '../icon/icon';
14
14
  import Loader from '../loader/loader';
15
15
  import React from 'react';
@@ -102,7 +102,7 @@ const ButtonWrapper = styled.button `
102
102
  white-space: nowrap;
103
103
  border: 1px solid;
104
104
  ${getFontWeight('medium')};
105
- border-radius: var(--lns-radius-thread-full);
105
+ ${getRadius('thdMediumToFull')};
106
106
  ${props => props.hasFullWidth ? 'display: flex; width: 100%' : 'display: inline-flex'};
107
107
  height: ${props => sizesStyles[props.size].height};
108
108
  min-width: ${props => sizesStyles[props.size].height};
@@ -13,7 +13,7 @@ import React, { useState } from 'react';
13
13
  import { CustomPicker } from 'react-color';
14
14
  import { Saturation, Hue, EditableInput, } from 'react-color/lib/components/common';
15
15
  import styled from '@emotion/styled';
16
- import { u } from '../../utilities';
16
+ import { getRadius, u } from '../../utilities';
17
17
  const ColorPickerContainer = styled.div `
18
18
  position: relative;
19
19
  width: ${u(31)};
@@ -70,7 +70,7 @@ const ColorBox = styled.div `
70
70
  left: var(--lns-space-xsmall);
71
71
  top: var(--lns-space-xsmall);
72
72
  border: 1px solid rgba(0, 0, 0, 0.1);
73
- border-radius: var(--lns-radius-thread-full);
73
+ ${getRadius('thdMediumToFull')};
74
74
  background-color: ${props => props.color};
75
75
  `;
76
76
  const ButtonWrapper = styled.div `
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { getColorValue, getFocusRing, u } from '../../utilities';
12
+ import { getColorValue, getFocusRing, getRadius, u } from '../../utilities';
13
13
  import Icon from '../icon/icon';
14
14
  import React from 'react';
15
15
  import styled from '@emotion/styled';
@@ -38,7 +38,7 @@ export const IconButtonBox = styled.button `
38
38
  justify-content: center;
39
39
  align-items: center;
40
40
  vertical-align: middle;
41
- border-radius: var(--lns-radius-thread-full);
41
+ ${getRadius('thdMediumToFull')};
42
42
  font: inherit;
43
43
 
44
44
  &:hover {
@@ -63,7 +63,7 @@ export const IconButtonBox = styled.button `
63
63
  display: block;
64
64
  position: absolute;
65
65
  top: 0;
66
- border-radius: var(--lns-radius-thread-full);
66
+ ${getRadius('thdMediumToFull')};
67
67
  }
68
68
 
69
69
  &:focus-visible:before {
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { getColorValue, getShadow, getSize, u } from '../../utilities';
12
+ import { getColorValue, getRadius, getShadow, getSize, u, } from '../../utilities';
13
13
  import Icon from '../icon/icon';
14
14
  import React from 'react';
15
15
  import { SvgCheck } from '../icon/available-icons';
@@ -27,7 +27,7 @@ const MenuWrapper = styled.ul `
27
27
  overflow: auto;
28
28
  border: 1px solid ${getColorValue('border')};
29
29
  ${getShadow('medium')};
30
- border-radius: var(--lns-radius-thread-large);
30
+ ${getRadius('thdMediumToLarge')};
31
31
  `;
32
32
  const MenuItemWrapper = styled.li `
33
33
  display: grid;
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { getColorValue, getRadius, getShadow, getSize } from '../../utilities';
12
+ import { getColorValue, getRadius, getShadow, getSize, u, } from '../../utilities';
13
13
  import Backdrop from '../backdrop/backdrop';
14
14
  import Container from '../container/container';
15
15
  import IconButton from '../icon-button/icon-button';
@@ -30,7 +30,7 @@ const ModalCardWrapper = styled.div `
30
30
  top: 15vh;
31
31
  background-color: ${getColorValue('overlay')};
32
32
  ${getShadow('large')};
33
- ${getRadius('medium')};
33
+ ${getRadius('thdMediumToXlarge')};
34
34
  ${props => getSize('max-width', props.maxWidth)};
35
35
  margin: 0 auto;
36
36
  position: relative;
@@ -38,8 +38,8 @@ const ModalCardWrapper = styled.div `
38
38
  `;
39
39
  const CloseIconSection = styled.div `
40
40
  position: absolute;
41
- top: 0;
42
- right: 0;
41
+ top: ${u(1.5)};
42
+ right: ${u(1.5)};
43
43
  z-index: 1;
44
44
  `;
45
45
  const RightButtonsSection = styled.div `
@@ -23,7 +23,7 @@ const PillWrapper = styled.div `
23
23
  min-height: ${u(3.25)};
24
24
  color: ${props => getColorValue(props.color)};
25
25
  background-color: ${props => getColorValue(props.backgroundColor)};
26
- ${getRadius('medium')};
26
+ ${getRadius('thdMediumToFull')};
27
27
  ${getTextSize('small')};
28
28
  ${getFontWeight('medium')};
29
29
  ${getSize('gap', 'xsmall')};
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { getColorValue, getFocusRing, getFontWeight, getTextSize, u, } from '../../utilities';
12
+ import { getColorValue, getFocusRing, getFontWeight, getRadius, getTextSize, u, } from '../../utilities';
13
13
  import Container from '../container/container';
14
14
  import Icon from '../icon/icon';
15
15
  import React from 'react';
@@ -41,7 +41,7 @@ const TextButtonWrapper = styled.button `
41
41
  transition: 0.6s background-color;
42
42
  color: ${getColorValue('body')};
43
43
  ${getFontWeight('medium')};
44
- border-radius: var(--lns-radius-thread-full);
44
+ ${getRadius('thdMediumToFull')};
45
45
  ${props => getTextSize(sizeStyles[props.size].textSize)};
46
46
  padding: 0 ${u(xSpace)};
47
47
  ${props => props.offsetSide && `margin-${props.offsetSide}: ${u(-xSpace)}`};
@@ -30,6 +30,7 @@ const sizesStyles = {
30
30
  },
31
31
  };
32
32
  const InputField = styled.input `
33
+ -webkit-appearance: none;
33
34
  font-family: inherit;
34
35
  width: 100%;
35
36
  height: ${props => sizesStyles[props.inputSize].height};
@@ -51,12 +52,6 @@ const InputField = styled.input `
51
52
 
52
53
  ${props => getTextSize(sizesStyles[props.inputSize].textSize)};
53
54
 
54
- &::-webkit-search-decoration,
55
- &::-webkit-search-results-button,
56
- &::-webkit-search-results-decoration {
57
- -webkit-appearance: none;
58
- }
59
-
60
55
  &:hover {
61
56
  box-shadow: inset 0 0 0 var(--lns-formFieldBorderWidthFocus)
62
57
  var(--lns-color-blurple);
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import React from 'react';
13
- import { getColorValue, getTextSize, u } from '../../utilities';
13
+ import { getColorValue, getRadius, getTextSize, u } from '../../utilities';
14
14
  import styled from '@emotion/styled';
15
15
  const sizesStyles = {
16
16
  small: {
@@ -30,7 +30,7 @@ const TextareaWrapper = styled.textarea `
30
30
  background-color: ${getColorValue('formFieldBackground')};
31
31
  transition: 0.3s box-shadow;
32
32
  padding: ${props => sizesStyles[props.size].padding};
33
- border-radius: var(--lns-radius-thread-large);
33
+ ${getRadius('thdMediumToLarge')};
34
34
  box-shadow: inset 0 0 0 var(--lns-formFieldBorderWidth)
35
35
  var(--lns-color-formFieldBorder);
36
36
  ${props => getTextSize(sizesStyles[props.size].textSize)};
@@ -40,7 +40,7 @@ const ToastWrapper = styled.div `
40
40
  background-color: ${getColorValue('background')};
41
41
  color: ${getColorValue('body')};
42
42
  ${getShadow('large')};
43
- ${getRadius('medium')};
43
+ ${getRadius('thdMediumToLarge')};
44
44
  width: calc(100% - var(--lns-space-medium));
45
45
  min-width: ${u(35)};
46
46
  max-width: ${u(50)};
@@ -35,7 +35,7 @@ const tooltipYPadding = (tooltipMinHeight - textHeight) / 2;
35
35
  const TooltipBoxWrapper = styled.div `
36
36
  background-color: ${getColorValue('grey8')};
37
37
  color: ${getColorValue('grey1')};
38
- ${getRadius('medium')};
38
+ ${getRadius('thdMediumToFull')};
39
39
  ${getFontWeight('medium')};
40
40
  ${getTextSize('small')};
41
41
  ${getShadow('medium')};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomhq/lens",
3
- "version": "10.43.7",
3
+ "version": "10.44.0",
4
4
  "scripts": {
5
5
  "dev": "next",
6
6
  "build:next": "next build",