@loomhq/lens 10.57.5 → 10.58.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/dist/components/base-styles/base-styles.js +3 -3
- package/dist/components/button/button.js +1 -1
- package/dist/components/color-picker/color-picker.js +1 -1
- package/dist/components/icon-button/icon-button.js +2 -2
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/pill/pill.js +1 -1
- package/dist/components/text-button/text-button.js +1 -1
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/css-variables/index.js +1 -1
- package/package.json +1 -1
|
@@ -7,9 +7,9 @@ const buildGlobalStylesheet = (rootElement = ':root', bodyElement = 'body') => {
|
|
|
7
7
|
return `
|
|
8
8
|
${rootElement} {
|
|
9
9
|
font-size: 100%;
|
|
10
|
-
--lns-radius-thread-large: var(--lns-radius-
|
|
11
|
-
--lns-radius-thread-xlarge: var(--lns-radius-
|
|
12
|
-
--lns-radius-thread-full: var(--lns-radius-
|
|
10
|
+
--lns-radius-thread-large: var(--lns-radius-large);
|
|
11
|
+
--lns-radius-thread-xlarge: var(--lns-radius-xlarge);
|
|
12
|
+
--lns-radius-thread-full: var(--lns-radius-full);
|
|
13
13
|
}
|
|
14
14
|
${bodyElement} {
|
|
15
15
|
font-family: circular, -apple-system, BlinkMacSystemFont, Segoe UI,
|
|
@@ -102,7 +102,7 @@ const ButtonWrapper = styled.button `
|
|
|
102
102
|
white-space: nowrap;
|
|
103
103
|
border: 1px solid;
|
|
104
104
|
${getFontWeight('medium')};
|
|
105
|
-
${getRadius('
|
|
105
|
+
${getRadius('full')};
|
|
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};
|
|
@@ -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
|
-
${getRadius('
|
|
73
|
+
${getRadius('full')};
|
|
74
74
|
background-color: ${props => props.color};
|
|
75
75
|
`;
|
|
76
76
|
const ButtonWrapper = styled.div `
|
|
@@ -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
|
-
${getRadius('
|
|
41
|
+
${getRadius('full')};
|
|
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
|
-
${getRadius('
|
|
66
|
+
${getRadius('full')};
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&:focus-visible:before {
|
|
@@ -27,14 +27,14 @@ const MenuWrapper = styled.ul `
|
|
|
27
27
|
overflow: auto;
|
|
28
28
|
border: 1px solid ${getColorValue('border')};
|
|
29
29
|
${getShadow('medium')};
|
|
30
|
-
${getRadius('
|
|
30
|
+
${getRadius('large')};
|
|
31
31
|
`;
|
|
32
32
|
const MenuItemWrapper = styled.li `
|
|
33
33
|
display: grid;
|
|
34
34
|
grid-auto-flow: column;
|
|
35
35
|
grid-template-columns: ${props => props.columns};
|
|
36
36
|
${getSize('grid-gap', 'small')};
|
|
37
|
-
${getRadius('
|
|
37
|
+
${getRadius('xlarge')};
|
|
38
38
|
align-items: center;
|
|
39
39
|
min-height: ${u(5)};
|
|
40
40
|
padding: 0 ${u(2)};
|
|
@@ -32,7 +32,7 @@ const ModalCardWrapper = styled.dialog `
|
|
|
32
32
|
color: ${getColorValue('body')};
|
|
33
33
|
bottom: ${props => getPlacement(props.maxHeight, props.placement).bottom};
|
|
34
34
|
${getShadow('large')};
|
|
35
|
-
${getRadius('
|
|
35
|
+
${getRadius('xlarge')};
|
|
36
36
|
// Unsets bottom-radius for bottom-aligned modals
|
|
37
37
|
border-bottom-left-radius: ${props => props.placement === 'bottom' ? 'initial' : undefined};
|
|
38
38
|
border-bottom-right-radius: ${props => props.placement === 'bottom' ? 'initial' : undefined};
|
|
@@ -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('
|
|
26
|
+
${getRadius('full')};
|
|
27
27
|
${getTextSize('small')};
|
|
28
28
|
${getFontWeight('medium')};
|
|
29
29
|
${getSize('gap', 'xsmall')};
|
|
@@ -42,7 +42,7 @@ const TextButtonWrapper = styled.button `
|
|
|
42
42
|
transition: 0.6s background-color;
|
|
43
43
|
color: ${getColorValue('body')};
|
|
44
44
|
${getFontWeight('medium')};
|
|
45
|
-
${getRadius('
|
|
45
|
+
${getRadius('full')};
|
|
46
46
|
${props => getTextSize(sizeStyles[props.size].textSize)};
|
|
47
47
|
padding: 0 ${props => sizeStyles[props.size].xSpace};
|
|
48
48
|
${props => props.offsetSide &&
|
|
@@ -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
|
-
${getRadius('
|
|
33
|
+
${getRadius('large')};
|
|
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('
|
|
43
|
+
${getRadius('large')};
|
|
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('
|
|
38
|
+
${getRadius('large')};
|
|
39
39
|
${getFontWeight('medium')};
|
|
40
40
|
${getTextSize('small')};
|
|
41
41
|
${getShadow('medium')};
|
|
@@ -60,7 +60,7 @@ export const formFieldVariables = getCssVarsFromObject(undefined, {
|
|
|
60
60
|
formFieldBorderWidth: '1px',
|
|
61
61
|
formFieldBorderWidthFocus: '2px',
|
|
62
62
|
formFieldHeight: u(4.5),
|
|
63
|
-
formFieldRadius:
|
|
63
|
+
formFieldRadius: u(2.25),
|
|
64
64
|
formFieldHorizontalPadding: u(2),
|
|
65
65
|
formFieldBorderShadow: `
|
|
66
66
|
inset 0 0 0 var(--lns-formFieldBorderWidth) var(--lns-color-formFieldBorder)
|