@loomhq/lens 10.57.4 → 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/colors.js +3 -4
- 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
package/dist/colors.js
CHANGED
|
@@ -76,7 +76,6 @@ export const saturate = (color, percentage) => (Object.assign(Object.assign({},
|
|
|
76
76
|
export const alpha = (color, alpha) => (Object.assign(Object.assign({}, color), { a: alpha }));
|
|
77
77
|
const hoverIncrease = 15.8;
|
|
78
78
|
const activeIncrease = 31.6;
|
|
79
|
-
const bodyDimmedAlpha = 0.6;
|
|
80
79
|
const borderAlpha = 0.2;
|
|
81
80
|
const backdropAlpha = 0.5;
|
|
82
81
|
const backdropDarkAlpha = 0.8;
|
|
@@ -106,7 +105,7 @@ export const hslaBaseColors = {
|
|
|
106
105
|
export const hslaGreys = {
|
|
107
106
|
grey8: { h: 0, s: 0, l: 13, a: 1 },
|
|
108
107
|
grey7: { h: 242, s: 21, l: 28, a: 1 },
|
|
109
|
-
grey6: { h:
|
|
108
|
+
grey6: { h: 252, s: 13, l: 46, a: 1 },
|
|
110
109
|
grey5: { h: 240, s: 7, l: 62, a: 1 },
|
|
111
110
|
grey4: { h: 240, s: 5.8, l: 76.3, a: 1 },
|
|
112
111
|
grey3: { h: 240, s: 6, l: 87, a: 1 },
|
|
@@ -138,8 +137,8 @@ const themeSharedColors = {
|
|
|
138
137
|
};
|
|
139
138
|
// This object has a specific spread order for documentation purposes
|
|
140
139
|
export const themeColors = {
|
|
141
|
-
light: Object.assign(Object.assign({ body: hslaGreys.grey8, bodyDimmed:
|
|
142
|
-
dark: Object.assign(Object.assign({ body: hslaGreys.grey1, bodyDimmed:
|
|
140
|
+
light: Object.assign(Object.assign({ body: hslaGreys.grey8, bodyDimmed: hslaGreys.grey6, background: hslaGreys.white, backgroundHover: alpha(hslaGreys.grey7, 0.1), backgroundActive: alpha(hslaGreys.grey7, 0.3), backgroundSecondary: alpha(hslaGreys.grey7, 0.04), backgroundSecondary2: { h: 45, s: 34, l: 78, a: 0.2 }, overlay: hslaGreys.white, border: alpha(hslaGreys.grey6, borderAlpha) }, themeSharedColors), { disabledBackground: hslaGreys.grey2, formFieldBorder: hslaGreys.grey3, formFieldBackground: hslaGreys.white, buttonBorder: alpha(hslaGreys.grey6, buttonBorderAlpha), upgrade: { h: 206, s: 100, l: 93, a: 1 }, upgradeHover: darken({ h: 206, s: 100, l: 93, a: 1 }, 9), upgradeActive: darken({ h: 206, s: 100, l: 93, a: 1 }, 17), tabBackground: alpha(hslaGreys.grey6, tabBackgroundAlpha), discoveryBackground: { h: 206, s: 100, l: 93, a: 1 }, discoveryLightBackground: { h: 206, s: 100, l: 97, a: 1 }, discoveryTitle: hslaGreys.grey8, discoveryHighlight: { h: 206, s: 100, l: 77, a: 0.3 } }),
|
|
141
|
+
dark: Object.assign(Object.assign({ body: hslaGreys.grey1, bodyDimmed: hslaGreys.grey5, background: hslaGreys.grey8, backgroundHover: alpha(hslaGreys.white, 0.1), backgroundActive: alpha(hslaGreys.white, 0.2), backgroundSecondary: alpha(hslaGreys.white, 0.04), backgroundSecondary2: { h: 45, s: 13, l: 44, a: 0.2 }, overlay: lighten(hslaGreys.grey8, 50), border: alpha(hslaGreys.grey4, borderAlpha) }, themeSharedColors), { disabledBackground: darken(hslaGreys.grey6, 50), formFieldBorder: hslaGreys.grey6, formFieldBackground: hslaGreys.grey8, buttonBorder: alpha(hslaGreys.white, buttonBorderAlpha), upgrade: { h: 206, s: 92, l: 81, a: 1 }, upgradeHover: darken({ h: 206, s: 92, l: 81, a: 1 }, 9), upgradeActive: darken({ h: 206, s: 92, l: 81, a: 1 }, 17), tabBackground: alpha(hslaGreys.white, tabBackgroundAlpha), discoveryBackground: { h: 206, s: 92, l: 81, a: 1 }, discoveryLightBackground: hslaGreys.grey8, discoveryTitle: hslaBaseColors.blue, discoveryHighlight: { h: 206, s: 100, l: 77, a: 0.3 } }),
|
|
143
142
|
};
|
|
144
143
|
export const hslaColors = Object.assign(Object.assign({}, hslaBaseColors), hslaGreys);
|
|
145
144
|
export const colorsNames = [
|
|
@@ -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)
|