@loomhq/lens 10.72.0 → 10.74.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 CHANGED
@@ -80,7 +80,7 @@ const hoverIncrease = 15.8;
80
80
  const activeIncrease = 31.6;
81
81
  const borderAlpha = 0.2;
82
82
  const backdropAlpha = 0.5;
83
- const backdropDarkAlpha = 0.8;
83
+ const backdropDarkAlpha = 0.9;
84
84
  const focusRingAlpha = 0.5;
85
85
  const buttonBorderAlpha = 0.25;
86
86
  const tabBackgroundAlpha = 0.15;
@@ -27,7 +27,7 @@ const ChildrenWrapper = styled.div `
27
27
  height: 100%;
28
28
  `;
29
29
  const Backdrop = (_a) => {
30
- var { children, isOpen, zIndex = 1000, backgroundColor = 'backdrop' } = _a, props = __rest(_a, ["children", "isOpen", "zIndex", "backgroundColor"]);
30
+ var { children, isOpen, zIndex = 1000, backgroundColor = 'backdropDark' } = _a, props = __rest(_a, ["children", "isOpen", "zIndex", "backgroundColor"]);
31
31
  const { stage, shouldMount } = useTransition(isOpen, duration);
32
32
  return (React.createElement(React.Fragment, null, shouldMount && (React.createElement(BackdropWrapper, Object.assign({ backgroundColor: backgroundColor, zIndex: zIndex, style: {
33
33
  transition: `opacity ${duration}ms`,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ResponsiveType } from '../../types';
3
3
  declare const ContainerWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerWrapperProps, object>;
4
- declare const Container: ({ children, backgroundColor, backgroundImage, contentColor, borderColor, radius, borderSide, borderWidth, shadow, padding, paddingX, paddingY, paddingLeft, paddingRight, paddingTop, paddingBottom, margin, marginX, marginY, marginLeft, marginRight, marginTop, marginBottom, width, height, minWidth, minHeight, maxWidth, maxHeight, htmlTag, position, overflow, zIndex, top, bottom, left, right, ...props }: ContainerProps & React.ComponentProps<typeof ContainerWrapper>) => JSX.Element;
4
+ declare const Container: ({ children, backgroundColor, backgroundImage, contentColor, borderColor, radius, borderSide, borderWidth, shadow, padding, paddingX, paddingY, paddingLeft, paddingRight, paddingTop, paddingBottom, margin, marginX, marginY, marginLeft, marginRight, marginTop, marginBottom, width, height, minWidth, minHeight, maxWidth, maxHeight, htmlTag, position, overflow, zIndex, top, bottom, left, right, refHandler, ...props }: ContainerProps & React.ComponentProps<typeof ContainerWrapper>) => JSX.Element;
5
5
  export declare const availableBorderSides: string[];
6
6
  export declare const availableRadii: string[];
7
7
  export declare const availableHtmlTags: string[];
@@ -42,6 +42,7 @@ interface SharedProps {
42
42
  right?: ResponsiveType<string | number>;
43
43
  zIndex?: number;
44
44
  borderWidth?: string | number;
45
+ refHandler?: (ref: HTMLElement | HTMLDivElement | HTMLSpanElement) => void;
45
46
  }
46
47
  interface ContainerProps extends SharedProps {
47
48
  htmlTag?: 'div' | 'header' | 'article' | 'section' | 'nav' | 'aside' | 'footer' | 'main' | 'span';
@@ -56,8 +56,8 @@ const ContainerWrapper = styled.div `
56
56
  ${props => props.zIndex && `z-index: ${props.zIndex}`};
57
57
  `;
58
58
  const Container = (_a) => {
59
- var { children, backgroundColor, backgroundImage, contentColor, borderColor, radius, borderSide, borderWidth = '1px', shadow, padding, paddingX, paddingY, paddingLeft, paddingRight, paddingTop, paddingBottom, margin, marginX, marginY, marginLeft, marginRight, marginTop, marginBottom, width, height, minWidth, minHeight, maxWidth, maxHeight, htmlTag = 'div', position, overflow, zIndex, top, bottom, left, right } = _a, props = __rest(_a, ["children", "backgroundColor", "backgroundImage", "contentColor", "borderColor", "radius", "borderSide", "borderWidth", "shadow", "padding", "paddingX", "paddingY", "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "margin", "marginX", "marginY", "marginLeft", "marginRight", "marginTop", "marginBottom", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "htmlTag", "position", "overflow", "zIndex", "top", "bottom", "left", "right"]);
60
- return (React.createElement(ContainerWrapper, Object.assign({ backgroundColor: backgroundColor, backgroundImage: backgroundImage, 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));
59
+ var { children, backgroundColor, backgroundImage, contentColor, borderColor, radius, borderSide, borderWidth = '1px', shadow, padding, paddingX, paddingY, paddingLeft, paddingRight, paddingTop, paddingBottom, margin, marginX, marginY, marginLeft, marginRight, marginTop, marginBottom, width, height, minWidth, minHeight, maxWidth, maxHeight, htmlTag = 'div', position, overflow, zIndex, top, bottom, left, right, refHandler } = _a, props = __rest(_a, ["children", "backgroundColor", "backgroundImage", "contentColor", "borderColor", "radius", "borderSide", "borderWidth", "shadow", "padding", "paddingX", "paddingY", "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "margin", "marginX", "marginY", "marginLeft", "marginRight", "marginTop", "marginBottom", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "htmlTag", "position", "overflow", "zIndex", "top", "bottom", "left", "right", "refHandler"]);
60
+ return (React.createElement(ContainerWrapper, Object.assign({ backgroundColor: backgroundColor, backgroundImage: backgroundImage, 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, ref: ref => refHandler && refHandler(ref) }, props), children));
61
61
  };
62
62
  export const availableBorderSides = ['all', 'left', 'right', 'top', 'bottom'];
63
63
  export const availableRadii = ['medium', 'large', 'xlarge', 'full'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomhq/lens",
3
- "version": "10.72.0",
3
+ "version": "10.74.0",
4
4
  "scripts": {
5
5
  "dev": "next",
6
6
  "build:next": "next build",