@loomhq/lens 10.66.1 → 10.66.3

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.
@@ -7,9 +7,6 @@ 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-large);
11
- --lns-radius-thread-xlarge: var(--lns-radius-xlarge);
12
- --lns-radius-thread-full: var(--lns-radius-full);
13
10
  }
14
11
  ${bodyElement} {
15
12
  font-family: circular, -apple-system, BlinkMacSystemFont, Segoe UI,
@@ -21,8 +21,11 @@ const CheckboxWrapper = styled.div `
21
21
  position: relative;
22
22
  `;
23
23
  const CheckboxInput = styled.input `
24
- position: absolute;
24
+ height: 100%;
25
+ margin: 0;
25
26
  opacity: 0;
27
+ position: absolute;
28
+ width: 100%;
26
29
 
27
30
  &:not(:disabled) {
28
31
  cursor: pointer;
@@ -59,15 +59,7 @@ const Container = (_a) => {
59
59
  return (React.createElement(ContainerWrapper, Object.assign({ backgroundColor: backgroundColor, contentColor: contentColor, borderColor: borderColor, radius: radius, borderSide: borderSide, shadow: shadow, padding: padding, paddingLeft: paddingX || paddingLeft, paddingRight: paddingX || paddingRight, paddingTop: paddingY || paddingTop, paddingBottom: paddingY || paddingBottom, margin: margin, marginLeft: marginX || marginLeft, marginRight: marginX || marginRight, marginTop: marginY || marginTop, marginBottom: marginY || marginBottom, width: width, height: height, minWidth: minWidth, minHeight: minHeight, maxWidth: maxWidth, maxHeight: maxHeight, as: htmlTag, position: position, top: top, bottom: bottom, left: left, right: right, overflow: overflow, zIndex: zIndex, borderWidth: borderWidth }, props), children));
60
60
  };
61
61
  export const availableBorderSides = ['all', 'left', 'right', 'top', 'bottom'];
62
- export const availableRadii = [
63
- 'medium',
64
- 'large',
65
- 'xlarge',
66
- 'full',
67
- 'thdMediumToLarge',
68
- 'thdMediumToXlarge',
69
- 'thdMediumToFull',
70
- ];
62
+ export const availableRadii = ['medium', 'large', 'xlarge', 'full'];
71
63
  export const availableHtmlTags = [
72
64
  'div',
73
65
  'header',
@@ -16,7 +16,7 @@ export declare const availableHtmlTags: string[];
16
16
  export declare const alignments: string[];
17
17
  interface TextProps {
18
18
  size?: 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
19
- fontWeight?: 'book' | 'medium' | 'bold' | 'black';
19
+ fontWeight?: 'regular' | 'medium' | 'bold' | 'black';
20
20
  variant?: 'body' | 'title' | 'mainTitle';
21
21
  alignment?: 'left' | 'right' | 'center';
22
22
  color?: string;
@@ -18,7 +18,7 @@ export const dimAmount = 0.6;
18
18
  export const variants = {
19
19
  body: {
20
20
  size: 'medium',
21
- fontWeight: 'book',
21
+ fontWeight: 'regular',
22
22
  },
23
23
  title: {
24
24
  size: 'large',
@@ -77,7 +77,7 @@ const TextWrapper = styled.span `
77
77
  `}
78
78
  `;
79
79
  const Text = (_a) => {
80
- var { children, size = 'medium', color, isInline, isDimmed, fontWeight = 'book', hasEllipsis, ellipsisLines, variant, htmlTag = 'span', alignment, sizeMinMax } = _a, props = __rest(_a, ["children", "size", "color", "isInline", "isDimmed", "fontWeight", "hasEllipsis", "ellipsisLines", "variant", "htmlTag", "alignment", "sizeMinMax"]);
80
+ var { children, size = 'medium', color, isInline, isDimmed, fontWeight = 'regular', hasEllipsis, ellipsisLines, variant, htmlTag = 'span', alignment, sizeMinMax } = _a, props = __rest(_a, ["children", "size", "color", "isInline", "isDimmed", "fontWeight", "hasEllipsis", "ellipsisLines", "variant", "htmlTag", "alignment", "sizeMinMax"]);
81
81
  if (isDimmed) {
82
82
  console.warn(textIsDimmedDeprecated);
83
83
  }
@@ -91,7 +91,7 @@ export const availableSizes = [
91
91
  'xxlarge',
92
92
  'xxxlarge',
93
93
  ];
94
- export const availableFontWeights = ['book', 'medium', 'bold', 'black'];
94
+ export const availableFontWeights = ['regular', 'medium'];
95
95
  export const availableHtmlTags = ['h1', 'h2', 'h3', 'h4', 'p', 'span', 'div'];
96
96
  export const alignments = ['left', 'right', 'center'];
97
97
  export default Text;
@@ -36,7 +36,7 @@ export namespace textSizes {
36
36
  }
37
37
  }
38
38
  export namespace fontWeights {
39
- export const book: number;
39
+ export const regular: number;
40
40
  const medium_1: number;
41
41
  export { medium_1 as medium };
42
42
  export const bold: number;
@@ -50,9 +50,6 @@ export namespace radii {
50
50
  const xlarge_1: string;
51
51
  export { xlarge_1 as xlarge };
52
52
  export const full: string;
53
- export const thdMediumToLarge: string;
54
- export const thdMediumToXlarge: string;
55
- export const thdMediumToFull: string;
56
53
  }
57
54
  export namespace shadows {
58
55
  const small_1: string;
package/dist/variables.js CHANGED
@@ -27,7 +27,7 @@ export const textSizes = {
27
27
  },
28
28
  };
29
29
  export const fontWeights = {
30
- book: 400,
30
+ regular: 400,
31
31
  medium: 500,
32
32
  bold: 700,
33
33
  black: 900,
@@ -37,9 +37,6 @@ export const radii = {
37
37
  large: u(2),
38
38
  xlarge: u(3),
39
39
  full: u(999),
40
- thdMediumToLarge: 'var(--lns-radius-thread-large)',
41
- thdMediumToXlarge: 'var(--lns-radius-thread-xlarge)',
42
- thdMediumToFull: 'var(--lns-radius-thread-full)',
43
40
  };
44
41
  export const shadows = {
45
42
  small: `0 ${u(0.5)} ${u(1.25)} hsla(0, 0%, 0%, 0.05)`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomhq/lens",
3
- "version": "10.66.1",
3
+ "version": "10.66.3",
4
4
  "scripts": {
5
5
  "dev": "next",
6
6
  "build:next": "next build",