@loomhq/lens 11.30.3 → 11.31.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.
Files changed (29) hide show
  1. package/dist/cjs/index.js +16 -4
  2. package/dist/esm/index.js +16 -4
  3. package/dist/types/components/align/align.d.ts +2 -2
  4. package/dist/types/components/arrange/arrange.d.ts +3 -3
  5. package/dist/types/components/avatar/avatar.d.ts +2 -2
  6. package/dist/types/components/backdrop/backdrop.d.ts +2 -2
  7. package/dist/types/components/button/button.d.ts +2 -2
  8. package/dist/types/components/color-picker/color-picker.d.ts +2 -2
  9. package/dist/types/components/container/container.d.ts +2 -2
  10. package/dist/types/components/distribute/distribute.d.ts +2 -2
  11. package/dist/types/components/form-field/form-field.d.ts +2 -2
  12. package/dist/types/components/icon/icon.d.ts +2 -2
  13. package/dist/types/components/icon-button/icon-button.d.ts +2 -2
  14. package/dist/types/components/link/link.d.ts +2 -2
  15. package/dist/types/components/list/list.d.ts +2 -2
  16. package/dist/types/components/loader/loader.d.ts +2 -2
  17. package/dist/types/components/logo/logo.d.ts +2 -2
  18. package/dist/types/components/modal/modal.d.ts +22 -3
  19. package/dist/types/components/notification-bar/notification-bar.d.ts +2 -2
  20. package/dist/types/components/pill/pill.d.ts +2 -2
  21. package/dist/types/components/select/select.d.ts +2 -2
  22. package/dist/types/components/spacer/spacer.d.ts +2 -2
  23. package/dist/types/components/switch/switch.d.ts +2 -2
  24. package/dist/types/components/tabs/tabs.d.ts +4 -3
  25. package/dist/types/components/text/text.d.ts +2 -2
  26. package/dist/types/components/text-button/text-button.d.ts +2 -2
  27. package/dist/types/components/toast/toast.d.ts +2 -2
  28. package/dist/types/types.d.ts +0 -2
  29. package/package.json +1 -1
package/dist/cjs/index.js CHANGED
@@ -5565,6 +5565,8 @@ var TabsNav = import_styled34.default.nav`
5565
5565
  -ms-overflow-style: none;
5566
5566
  scrollbar-width: none;
5567
5567
 
5568
+ ${(props) => props.hasBottomBorder && "border-bottom: 1px solid var(--lns-color-border)"}
5569
+
5568
5570
  ${(props) => props.scrollOffset && getSize("padding-left", props.scrollOffset)};
5569
5571
 
5570
5572
  &::-webkit-scrollbar {
@@ -5619,7 +5621,7 @@ var TabWrapper = import_styled34.default.button`
5619
5621
  appearance: none;
5620
5622
  font: inherit;
5621
5623
  background: transparent;
5622
- border: none;
5624
+ border: 0;
5623
5625
  ${getRadius("medium")};
5624
5626
  cursor: pointer;
5625
5627
  display: inline-flex;
@@ -5724,12 +5726,14 @@ var Tabs = (_a) => {
5724
5726
  children,
5725
5727
  scrollOffset,
5726
5728
  hasFullTabs,
5727
- isPilledDesign
5729
+ isPilledDesign,
5730
+ hasBottomBorder = false
5728
5731
  } = _b, props = __objRest(_b, [
5729
5732
  "children",
5730
5733
  "scrollOffset",
5731
5734
  "hasFullTabs",
5732
- "isPilledDesign"
5735
+ "isPilledDesign",
5736
+ "hasBottomBorder"
5733
5737
  ]);
5734
5738
  const tabsContent = isPilledDesign ? /* @__PURE__ */ import_react41.default.createElement(
5735
5739
  TabsNavPilled,
@@ -5738,7 +5742,15 @@ var Tabs = (_a) => {
5738
5742
  scrollOffset
5739
5743
  }, props),
5740
5744
  children
5741
- ) : /* @__PURE__ */ import_react41.default.createElement(TabsNav, __spreadValues({ hasFullTabs, scrollOffset }, props), children);
5745
+ ) : /* @__PURE__ */ import_react41.default.createElement(
5746
+ TabsNav,
5747
+ __spreadValues({
5748
+ hasFullTabs,
5749
+ scrollOffset,
5750
+ hasBottomBorder
5751
+ }, props),
5752
+ children
5753
+ );
5742
5754
  if (scrollOffset) {
5743
5755
  return /* @__PURE__ */ import_react41.default.createElement(Wrapper, { scrollOffset }, tabsContent);
5744
5756
  }
package/dist/esm/index.js CHANGED
@@ -5346,6 +5346,8 @@ var TabsNav = styled34.nav`
5346
5346
  -ms-overflow-style: none;
5347
5347
  scrollbar-width: none;
5348
5348
 
5349
+ ${(props) => props.hasBottomBorder && "border-bottom: 1px solid var(--lns-color-border)"}
5350
+
5349
5351
  ${(props) => props.scrollOffset && getSize("padding-left", props.scrollOffset)};
5350
5352
 
5351
5353
  &::-webkit-scrollbar {
@@ -5400,7 +5402,7 @@ var TabWrapper = styled34.button`
5400
5402
  appearance: none;
5401
5403
  font: inherit;
5402
5404
  background: transparent;
5403
- border: none;
5405
+ border: 0;
5404
5406
  ${getRadius("medium")};
5405
5407
  cursor: pointer;
5406
5408
  display: inline-flex;
@@ -5505,12 +5507,14 @@ var Tabs = (_a) => {
5505
5507
  children,
5506
5508
  scrollOffset,
5507
5509
  hasFullTabs,
5508
- isPilledDesign
5510
+ isPilledDesign,
5511
+ hasBottomBorder = false
5509
5512
  } = _b, props = __objRest(_b, [
5510
5513
  "children",
5511
5514
  "scrollOffset",
5512
5515
  "hasFullTabs",
5513
- "isPilledDesign"
5516
+ "isPilledDesign",
5517
+ "hasBottomBorder"
5514
5518
  ]);
5515
5519
  const tabsContent = isPilledDesign ? /* @__PURE__ */ React43.createElement(
5516
5520
  TabsNavPilled,
@@ -5519,7 +5523,15 @@ var Tabs = (_a) => {
5519
5523
  scrollOffset
5520
5524
  }, props),
5521
5525
  children
5522
- ) : /* @__PURE__ */ React43.createElement(TabsNav, __spreadValues({ hasFullTabs, scrollOffset }, props), children);
5526
+ ) : /* @__PURE__ */ React43.createElement(
5527
+ TabsNav,
5528
+ __spreadValues({
5529
+ hasFullTabs,
5530
+ scrollOffset,
5531
+ hasBottomBorder
5532
+ }, props),
5533
+ children
5534
+ );
5523
5535
  if (scrollOffset) {
5524
5536
  return /* @__PURE__ */ React43.createElement(Wrapper, { scrollOffset }, tabsContent);
5525
5537
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensDivProps, LensHTMLProps, ResponsiveType } from '../../types';
2
+ import { LensDivProps, ResponsiveType } from '../../types';
3
3
  declare const AlignWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, AlignWrapperProps, object>;
4
- declare const Align: ({ children, alignment, htmlTag, ...props }: LensHTMLProps<AlignProps & React.ComponentProps<typeof AlignWrapper>, LensDivProps>) => React.JSX.Element;
4
+ declare const Align: ({ children, alignment, htmlTag, ...props }: AlignProps & React.ComponentProps<typeof AlignWrapper> & Omit<LensDivProps, keyof AlignProps & React.ComponentProps<typeof AlignWrapper>>) => React.JSX.Element;
5
5
  export declare const availableAlignments: string[];
6
6
  export declare const availableHtmlTags: string[];
7
7
  type AlignProps = {
@@ -1,4 +1,4 @@
1
- import { LensDivProps, LensHTMLProps, ResponsiveGridSections, ResponsiveType } from '../../types';
1
+ import { LensDivProps, ResponsiveGridSections, ResponsiveType } from '../../types';
2
2
  import React from 'react';
3
3
  declare const ArrangeWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ArrangeProps, object>;
4
4
  type ArrangeProps = {
@@ -10,7 +10,7 @@ type ArrangeProps = {
10
10
  maxWidth?: ResponsiveType<string | number>;
11
11
  maxHeight?: ResponsiveType<string | number>;
12
12
  gap?: ResponsiveType<string | number> | null;
13
- alignItems?: ResponsiveType<'start' | 'end' | 'center' | 'stretch'>;
13
+ alignItems?: ResponsiveType<'start' | 'end' | 'center' | 'stretch' | 'baseline'>;
14
14
  justifyItems?: ResponsiveType<'start' | 'end' | 'center' | 'stretch'>;
15
15
  alignContent?: ResponsiveType<'start' | 'end' | 'center' | 'stretch' | 'space-around' | 'space-between' | 'space-evenly'>;
16
16
  justifyContent?: ResponsiveType<'start' | 'end' | 'center' | 'stretch' | 'space-around' | 'space-between' | 'space-evenly'>;
@@ -18,5 +18,5 @@ type ArrangeProps = {
18
18
  columns?: ResponsiveGridSections;
19
19
  rows?: ResponsiveGridSections;
20
20
  };
21
- declare const Arrange: ({ children, width, height, minWidth, minHeight, maxWidth, maxHeight, gap, columns, rows, alignItems, justifyContent, justifyItems, alignContent, autoFlow, className, style, ...props }: LensHTMLProps<ArrangeProps & React.ComponentProps<typeof ArrangeWrapper>, LensDivProps>) => React.JSX.Element;
21
+ declare const Arrange: ({ children, width, height, minWidth, minHeight, maxWidth, maxHeight, gap, columns, rows, alignItems, justifyContent, justifyItems, alignContent, autoFlow, className, style, ...props }: ArrangeProps & React.ComponentProps<typeof ArrangeWrapper> & Omit<LensDivProps, keyof ArrangeProps & React.ComponentProps<typeof ArrangeWrapper>>) => React.JSX.Element;
22
22
  export default Arrange;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensHTMLProps, LensSpanProps } from '../../types';
2
+ import { LensSpanProps } from '../../types';
3
3
  declare const AvatarWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, AvatarWrapperProps, object>;
4
- declare const Avatar: ({ altText, size, letter, imageSrc, children, ...props }: LensHTMLProps<AvatarProps & React.ComponentProps<typeof AvatarWrapper>, LensSpanProps>) => React.JSX.Element;
4
+ declare const Avatar: ({ altText, size, letter, imageSrc, children, ...props }: AvatarProps & React.ComponentProps<typeof AvatarWrapper> & Omit<LensSpanProps, keyof AvatarProps & React.ComponentProps<typeof AvatarWrapper>>) => React.JSX.Element;
5
5
  type AvatarProps = {
6
6
  altText?: string;
7
7
  letter?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensDivProps, LensHTMLProps } from '../../types';
2
+ import { LensDivProps } from '../../types';
3
3
  declare const BackdropWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BackdropProps, object>;
4
- declare const Backdrop: ({ children, isOpen, zIndex, backgroundColor, ...props }: LensHTMLProps<BackdropProps & React.ComponentProps<typeof BackdropWrapper>, LensDivProps>) => React.JSX.Element;
4
+ declare const Backdrop: ({ children, isOpen, zIndex, backgroundColor, ...props }: BackdropProps & React.ComponentProps<typeof BackdropWrapper> & Omit<LensDivProps, keyof BackdropProps & React.ComponentProps<typeof BackdropWrapper>>) => React.JSX.Element;
5
5
  type BackdropProps = {
6
6
  isOpen?: boolean;
7
7
  children?: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensButtonProps, LensHTMLProps } from '../../types';
2
+ import { LensButtonProps } from '../../types';
3
3
  declare const ButtonWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonWrapperProps, object>;
4
- declare const Button: ({ size, children, variant, hasFullWidth, icon, iconPosition, logoSrc, hasLoader, isDisabled, htmlTag, refHandler, ...props }: LensHTMLProps<ButtonProps & React.ComponentProps<typeof ButtonWrapper>, LensButtonProps>) => React.JSX.Element;
4
+ declare const Button: ({ size, children, variant, hasFullWidth, icon, iconPosition, logoSrc, hasLoader, isDisabled, htmlTag, refHandler, ...props }: ButtonProps & React.ComponentProps<typeof ButtonWrapper> & Omit<LensButtonProps, keyof ButtonProps & React.ComponentProps<typeof ButtonWrapper>>) => React.JSX.Element;
5
5
  type Variant = 'neutral' | 'primary' | 'secondary' | 'record' | 'upgrade' | 'danger' | 'ai';
6
6
  interface ButtonProps {
7
7
  size?: 'small' | 'medium' | 'large';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensDivProps, LensHTMLProps } from '../../types';
2
+ import { LensDivProps } from '../../types';
3
3
  declare const ColorPickerContainer: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement>>, object>;
4
- declare const ColorPicker: ({ defaultColor, confirmButton, swatches, onChange, ...props }: LensHTMLProps<ColorPickerProps & Omit<React.ComponentProps<typeof ColorPickerContainer>, keyof ColorPickerProps>, LensDivProps>) => React.JSX.Element;
4
+ declare const ColorPicker: ({ defaultColor, confirmButton, swatches, onChange, ...props }: ColorPickerProps & Omit<React.ComponentProps<typeof ColorPickerContainer>, keyof ColorPickerProps> & Omit<LensDivProps, keyof ColorPickerProps & Omit<React.ComponentProps<typeof ColorPickerContainer>, keyof ColorPickerProps>>) => React.JSX.Element;
5
5
  type ColorPickerProps = {
6
6
  defaultColor?: string;
7
7
  confirmButton?: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensDivProps, LensHTMLProps, ResponsiveType } from '../../types';
2
+ import { LensDivProps, ResponsiveType } from '../../types';
3
3
  declare const ContainerWrapper: import("@emotion/styled").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, refHandler, ...props }: LensHTMLProps<ContainerProps & React.ComponentProps<typeof ContainerWrapper>, LensDivProps>) => React.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> & Omit<LensDivProps, keyof ContainerProps & React.ComponentProps<typeof ContainerWrapper>>) => React.JSX.Element;
5
5
  export declare const availableBorderSides: string[];
6
6
  export declare const availableRadii: string[];
7
7
  export declare const availableHtmlTags: string[];
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensDivProps, LensHTMLProps, ResponsiveType } from '../../types';
2
+ import { LensDivProps, ResponsiveType } from '../../types';
3
3
  declare const DistributeWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, DistributeWrapperProps, object>;
4
- declare const Distribute: ({ children, gap, direction, alignment, isSpread, htmlTag, ...props }: LensHTMLProps<DistributeProps & React.ComponentProps<typeof DistributeWrapper>, LensDivProps>) => React.JSX.Element;
4
+ declare const Distribute: ({ children, gap, direction, alignment, isSpread, htmlTag, ...props }: DistributeProps & React.ComponentProps<typeof DistributeWrapper> & Omit<LensDivProps, keyof DistributeProps & React.ComponentProps<typeof DistributeWrapper>>) => React.JSX.Element;
5
5
  export declare const availableDirections: string[];
6
6
  export declare const availableAlignments: string[];
7
7
  export declare const availableHtmlTags: string[];
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { LensDivProps, LensHTMLProps } from '../../types';
2
+ import { LensDivProps } from '../../types';
3
3
  declare const FormFieldWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FormFieldProps, object>;
4
- declare const FormField: ({ label, children, errorMessage, labelFor, direction, ...props }: LensHTMLProps<FormFieldProps & React.ComponentProps<typeof FormFieldWrapper>, LensDivProps>) => React.JSX.Element;
4
+ declare const FormField: ({ label, children, errorMessage, labelFor, direction, ...props }: FormFieldProps & React.ComponentProps<typeof FormFieldWrapper> & Omit<LensDivProps, keyof FormFieldProps & React.ComponentProps<typeof FormFieldWrapper>>) => React.JSX.Element;
5
5
  type FormFieldProps = {
6
6
  label?: ReactNode;
7
7
  errorMessage?: string | null;
@@ -1,6 +1,6 @@
1
1
  import { SizeProp } from '../../utilities';
2
2
  import React from 'react';
3
- import { LensHTMLProps, LensSpanProps } from '../../types';
3
+ import { LensSpanProps } from '../../types';
4
4
  declare const IconWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, IconProps, object>;
5
5
  type IconProps = {
6
6
  size?: SizeProp;
@@ -9,5 +9,5 @@ type IconProps = {
9
9
  color?: string;
10
10
  hasWidthOffset?: boolean;
11
11
  };
12
- declare const Icon: ({ altText, icon, color, size, hasWidthOffset, ...props }: LensHTMLProps<IconProps & React.ComponentProps<typeof IconWrapper>, LensSpanProps>) => React.JSX.Element;
12
+ declare const Icon: ({ altText, icon, color, size, hasWidthOffset, ...props }: IconProps & React.ComponentProps<typeof IconWrapper> & Omit<LensSpanProps, keyof IconProps & React.ComponentProps<typeof IconWrapper>>) => React.JSX.Element;
13
13
  export default Icon;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensButtonProps, LensHTMLProps } from '../../types';
2
+ import { LensButtonProps } from '../../types';
3
3
  export declare const IconButtonBox: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, IconButtonBoxProps, object>;
4
- declare const IconButton: ({ altText, icon, onClick, iconColor, backgroundColor, isActive, isDisabled, size, ...props }: LensHTMLProps<IconButtonProps & React.ComponentProps<typeof IconButtonBox>, LensButtonProps>) => React.JSX.Element;
4
+ declare const IconButton: ({ altText, icon, onClick, iconColor, backgroundColor, isActive, isDisabled, size, ...props }: IconButtonProps & React.ComponentProps<typeof IconButtonBox> & Omit<LensButtonProps, keyof IconButtonProps & React.ComponentProps<typeof IconButtonBox>>) => React.JSX.Element;
5
5
  type IconButtonProps = {
6
6
  altText: string;
7
7
  icon?: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensAnchorProps, LensHTMLProps } from '../../types';
2
+ import { LensAnchorProps } from '../../types';
3
3
  declare const LinkWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, LinkWrapperProps, object>;
4
- declare const Link: ({ children, href, variant, htmlTag, isDisabled, ...props }: LensHTMLProps<LinkProps & React.ComponentProps<typeof LinkWrapper>, LensAnchorProps>) => React.JSX.Element;
4
+ declare const Link: ({ children, href, variant, htmlTag, isDisabled, ...props }: LinkProps & React.ComponentProps<typeof LinkWrapper> & Omit<LensAnchorProps, keyof LinkProps & React.ComponentProps<typeof LinkWrapper>>) => React.JSX.Element;
5
5
  export declare const availableVariants: string[];
6
6
  type LinkProps = {
7
7
  children?: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { LensDivProps, LensHTMLProps, ResponsiveType } from '../../types';
2
+ import { LensDivProps, ResponsiveType } from '../../types';
3
3
  declare const ListWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ListProps, object>;
4
4
  export declare const ListRow: ({ children, htmlTag, className, backgroundColor, onClick, href, ...props }: ListRowProps) => React.JSX.Element;
5
- declare const List: ({ children, columns, gap, variant, ...props }: LensHTMLProps<ListProps & React.ComponentProps<typeof ListWrapper>, LensDivProps>) => React.JSX.Element;
5
+ declare const List: ({ children, columns, gap, variant, ...props }: ListProps & React.ComponentProps<typeof ListWrapper> & Omit<LensDivProps, keyof ListProps & React.ComponentProps<typeof ListWrapper>>) => React.JSX.Element;
6
6
  interface SharedProps {
7
7
  padding?: ResponsiveType<string | number>;
8
8
  paddingTop?: ResponsiveType<string | number>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensHTMLProps, LensSpanProps } from '../../types';
2
+ import { LensSpanProps } from '../../types';
3
3
  declare const LoaderWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, LoaderWrapperProps, object>;
4
- declare const Loader: ({ color, size, ...props }: LensHTMLProps<LoaderProps & React.ComponentProps<typeof LoaderWrapper>, LensSpanProps>) => React.JSX.Element;
4
+ declare const Loader: ({ color, size, ...props }: LoaderProps & React.ComponentProps<typeof LoaderWrapper> & Omit<LensSpanProps, keyof LoaderProps & React.ComponentProps<typeof LoaderWrapper>>) => React.JSX.Element;
5
5
  export declare const availableSizes: string[];
6
6
  type LoaderProps = {
7
7
  color?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensHTMLProps, LensSpanProps } from '../../types';
2
+ import { LensSpanProps } from '../../types';
3
3
  declare const LogoWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, LogoWrapperProps, object>;
4
- declare const Logo: ({ variant, maxWidth, symbolColor, wordmarkColor, brand, customId, title, ...props }: LensHTMLProps<LogoProps & React.ComponentProps<typeof LogoWrapper>, LensSpanProps>) => React.JSX.Element;
4
+ declare const Logo: ({ variant, maxWidth, symbolColor, wordmarkColor, brand, customId, title, ...props }: LogoProps & React.ComponentProps<typeof LogoWrapper> & Omit<LensSpanProps, keyof LogoProps & React.ComponentProps<typeof LogoWrapper>>) => React.JSX.Element;
5
5
  export declare const availableVariants: string[];
6
6
  type LogoProps = {
7
7
  variant?: 'combined' | 'symbol' | 'wordmark';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensDialogProps, LensHTMLProps } from '../../types';
2
+ import { LensDialogProps } from '../../types';
3
3
  declare const ModalCardWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, ModalCardProps, object>;
4
- export declare const ModalCard: ({ children, onCloseClick, isOpen, maxWidth, maxHeight, placement, ariaLabel, ref, removeClose, ...props }: LensHTMLProps<ModalCardProps & React.ComponentProps<typeof ModalCardWrapper>, LensDialogProps>) => React.JSX.Element;
4
+ export declare const ModalCard: ({ children, onCloseClick, isOpen, maxWidth, maxHeight, placement, ariaLabel, ref, removeClose, ...props }: ModalCardProps & React.ComponentProps<typeof ModalCardWrapper> & Omit<LensDialogProps, keyof ModalCardProps & React.ComponentProps<typeof ModalCardWrapper>>) => React.JSX.Element;
5
5
  declare const Modal: React.ForwardRefExoticComponent<Omit<ModalProps & {
6
6
  isOpen?: boolean;
7
7
  children?: React.ReactNode;
@@ -19,7 +19,26 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ModalProps & {
19
19
  backgroundColor?: string;
20
20
  }> & {
21
21
  theme?: object;
22
- } & Omit<import("../../types").LensDivProps, "key" | "className" | "style" | "onClick" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onKeyDown" | "onScroll" | "color" | "title" | "onSubmit" | "id" | "tabIndex" | "role" | "rel" | "onBlur" | "onMouseDown" | "onTouchStart" | "onTouchMove" | "onFocus" | "autoFocus" | "children" | "defaultValue" | "ref" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "backgroundColor" | "zIndex" | "theme" | "isOpen">, "ref"> & React.RefAttributes<HTMLDialogElement>>;
22
+ } & Omit<import("../../types").LensDivProps, keyof {
23
+ isOpen?: boolean;
24
+ children?: React.ReactNode;
25
+ zIndex?: number;
26
+ backgroundColor?: string;
27
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<{
28
+ isOpen?: boolean;
29
+ children?: React.ReactNode;
30
+ zIndex?: number;
31
+ backgroundColor?: string;
32
+ }, keyof {
33
+ isOpen?: boolean;
34
+ children?: React.ReactNode;
35
+ zIndex?: number;
36
+ backgroundColor?: string;
37
+ }> & {
38
+ theme?: object;
39
+ } & {
40
+ children?: React.ReactNode;
41
+ }>, "ref"> & React.RefAttributes<HTMLDialogElement>>;
23
42
  type ModalProps = {
24
43
  children?: React.ReactNode;
25
44
  isOpen?: boolean;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { SeverityLevels } from './types';
3
- import { LensAsideProps, LensHTMLProps } from '../../types';
3
+ import { LensAsideProps } from '../../types';
4
4
  declare const NotificationBarWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, NotificationBarWrapperProps, object>;
5
- declare const NotificationBar: ({ children, onCloseClick, isOpen, severity, id, }: LensHTMLProps<NotificationBarProps & React.ComponentProps<typeof NotificationBarWrapper>, LensAsideProps>) => React.JSX.Element;
5
+ declare const NotificationBar: ({ children, onCloseClick, isOpen, severity, id, }: NotificationBarProps & React.ComponentProps<typeof NotificationBarWrapper> & Omit<LensAsideProps, keyof NotificationBarProps & React.ComponentProps<typeof NotificationBarWrapper>>) => React.JSX.Element;
6
6
  type NotificationBarProps = {
7
7
  children?: React.ReactNode;
8
8
  isOpen?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensDivProps, LensHTMLProps } from '../../types';
2
+ import { LensDivProps } from '../../types';
3
3
  declare const PillWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PillWrapperProps, object>;
4
- declare const Pill: ({ color, backgroundColor, children, icon, iconPosition, ...props }: LensHTMLProps<PillProps & React.ComponentProps<typeof PillWrapper>, LensDivProps>) => React.JSX.Element;
4
+ declare const Pill: ({ color, backgroundColor, children, icon, iconPosition, ...props }: PillProps & React.ComponentProps<typeof PillWrapper> & Omit<LensDivProps, keyof PillProps & React.ComponentProps<typeof PillWrapper>>) => React.JSX.Element;
5
5
  type PillProps = {
6
6
  icon?: React.ReactNode;
7
7
  iconPosition?: 'left' | 'right';
@@ -1,7 +1,7 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import { LensDivProps, LensHTMLProps } from '../../types';
2
+ import { LensDivProps } from '../../types';
3
3
  declare const SelectWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement>>, object>;
4
- declare const Select: ({ container, onChange, menuZIndex, menuMaxWidth, menuMaxHeight, menuMinWidth, selectedOptionValue, onOuterClick, options, placeholder, menuPosition, isDisabled, onOpenChange, trigger, ...props }: LensHTMLProps<SelectProps & React.ComponentProps<typeof SelectWrapper>, LensDivProps>) => React.JSX.Element;
4
+ declare const Select: ({ container, onChange, menuZIndex, menuMaxWidth, menuMaxHeight, menuMinWidth, selectedOptionValue, onOuterClick, options, placeholder, menuPosition, isDisabled, onOpenChange, trigger, ...props }: SelectProps & Omit<React.ComponentProps<typeof SelectWrapper>, keyof SelectProps> & Omit<LensDivProps, keyof SelectProps & React.ComponentProps<typeof SelectWrapper>>) => React.JSX.Element;
5
5
  export type OptionsObject = {
6
6
  value: string;
7
7
  title: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensDivProps, LensHTMLProps, ResponsiveType } from '../../types';
2
+ import { LensDivProps, ResponsiveType } from '../../types';
3
3
  declare const SpacerWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SpacerProps, object>;
4
- declare const Spacer: ({ children, all, y, x, top, right, bottom, left, isInline, ...props }: LensHTMLProps<SpacerProps & React.ComponentProps<typeof SpacerWrapper>, LensDivProps>) => React.JSX.Element;
4
+ declare const Spacer: ({ children, all, y, x, top, right, bottom, left, isInline, ...props }: SpacerProps & React.ComponentProps<typeof SpacerWrapper> & Omit<LensDivProps, keyof SpacerProps & React.ComponentProps<typeof SpacerWrapper>>) => React.JSX.Element;
5
5
  type SpacerProps = {
6
6
  all?: ResponsiveType<string | number>;
7
7
  y?: ResponsiveType<string | number>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensHTMLProps, LensInputProps } from '../../types';
2
+ import { LensInputProps } from '../../types';
3
3
  declare const SwitchInput: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, SwitchInputProps, object>;
4
- declare const Switch: ({ isActive, isDisabled, onChange, size, ariaLabelledby, ariaLabel, ...props }: LensHTMLProps<SwitchProps & Omit<React.ComponentProps<typeof SwitchInput>, 'size'>, LensInputProps>) => React.JSX.Element;
4
+ declare const Switch: ({ isActive, isDisabled, onChange, size, ariaLabelledby, ariaLabel, ...props }: SwitchProps & Omit<React.ComponentProps<typeof SwitchInput>, 'size'> & Omit<LensInputProps, keyof SwitchProps & Omit<React.ComponentProps<typeof SwitchInput>, 'size'>>) => React.JSX.Element;
5
5
  type SwitchProps = {
6
6
  isActive?: boolean;
7
7
  isDisabled?: boolean;
@@ -1,13 +1,14 @@
1
1
  import React from 'react';
2
- import { LensButtonProps, LensHTMLProps } from '../../types';
2
+ import { LensButtonProps } from '../../types';
3
3
  declare const TabWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, TabWrapperProps, object>;
4
- export declare const Tab: ({ children, isActive, htmlTag, icon, ...props }: LensHTMLProps<TabProps & React.ComponentProps<typeof TabWrapper>, LensButtonProps>) => React.JSX.Element;
5
- declare const Tabs: ({ children, scrollOffset, hasFullTabs, isPilledDesign, ...props }: TabsProps) => React.JSX.Element;
4
+ export declare const Tab: ({ children, isActive, htmlTag, icon, ...props }: TabProps & React.ComponentProps<typeof TabWrapper> & Omit<LensButtonProps, keyof TabProps & React.ComponentProps<typeof TabWrapper>>) => React.JSX.Element;
5
+ declare const Tabs: ({ children, scrollOffset, hasFullTabs, isPilledDesign, hasBottomBorder, ...props }: TabsProps) => React.JSX.Element;
6
6
  type TabsProps = {
7
7
  scrollOffset?: number | string;
8
8
  hasFullTabs?: boolean;
9
9
  children?: React.ReactNode;
10
10
  isPilledDesign?: boolean;
11
+ hasBottomBorder?: boolean;
11
12
  };
12
13
  type TabProps = {
13
14
  isActive?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TextSize } from '../../variables';
3
- import { LensHTMLProps, LensSpanProps } from '../../types';
3
+ import { LensSpanProps } from '../../types';
4
4
  export declare const dimAmount = 0.6;
5
5
  type VariantsProps = {
6
6
  [key: string]: {
@@ -11,7 +11,7 @@ type VariantsProps = {
11
11
  export declare const variants: VariantsProps;
12
12
  export declare const lineHeightToPx: (size: any) => number;
13
13
  declare const TextWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextWrapperProps, object>;
14
- declare const Text: ({ children, size, color, isInline, isDimmed, fontWeight, hasEllipsis, ellipsisLines, noWrap, variant, htmlTag, alignment, sizeMinMax, ...props }: LensHTMLProps<TextProps & React.ComponentProps<typeof TextWrapper>, LensSpanProps>) => React.JSX.Element;
14
+ declare const Text: ({ children, size, color, isInline, isDimmed, fontWeight, hasEllipsis, ellipsisLines, noWrap, variant, htmlTag, alignment, sizeMinMax, ...props }: TextProps & React.ComponentProps<typeof TextWrapper> & Omit<LensSpanProps, keyof TextProps & React.ComponentProps<typeof TextWrapper>>) => React.JSX.Element;
15
15
  export declare const availableSizes: string[];
16
16
  export declare const deprecatedSizes: string[];
17
17
  export declare const availableFontWeights: string[];
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensButtonProps, LensHTMLProps } from '../../types';
2
+ import { LensButtonProps } from '../../types';
3
3
  declare const TextButtonWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, TextButtonWrapperProps, object>;
4
- declare const TextButton: ({ onClick, size, children, icon, iconPosition, isDisabled, htmlTag, offsetSide, ...props }: LensHTMLProps<TextButtonProps & React.ComponentProps<typeof TextButtonWrapper>, LensButtonProps>) => React.JSX.Element;
4
+ declare const TextButton: ({ onClick, size, children, icon, iconPosition, isDisabled, htmlTag, offsetSide, ...props }: TextButtonProps & React.ComponentProps<typeof TextButtonWrapper> & Omit<LensButtonProps, keyof TextButtonProps & React.ComponentProps<typeof TextButtonWrapper>>) => React.JSX.Element;
5
5
  type TextButtonProps = {
6
6
  onClick?: React.ReactEventHandler;
7
7
  isDisabled?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LensDivProps, LensHTMLProps } from '../../types';
2
+ import { LensDivProps } from '../../types';
3
3
  declare const ToastWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ToastWrapperProps, object>;
4
- declare const Toast: ({ children, isOpen, onCloseClick, zIndex, duration, platform, }: LensHTMLProps<ToastProps & React.ComponentProps<typeof ToastWrapper>, LensDivProps>) => React.JSX.Element;
4
+ declare const Toast: ({ children, isOpen, onCloseClick, zIndex, duration, platform, }: ToastProps & React.ComponentProps<typeof ToastWrapper> & Omit<LensDivProps, keyof ToastProps & React.ComponentProps<typeof ToastWrapper>>) => React.JSX.Element;
5
5
  type ToastProps = {
6
6
  children?: React.ReactNode;
7
7
  isOpen?: boolean;
@@ -119,6 +119,4 @@ export interface LensDialogProps {
119
119
  export interface LensAsideProps {
120
120
  id?: HTMLElement['id'];
121
121
  }
122
- type LensHTMLElement = LensDivProps | LensAnchorProps | LensSpanProps | LensButtonProps | LensInputProps | LensDialogProps | LensAsideProps;
123
- export type LensHTMLProps<ComponentProps, LensElementProps extends LensHTMLElement> = ComponentProps & Omit<LensElementProps, keyof ComponentProps>;
124
122
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomhq/lens",
3
- "version": "11.30.3",
3
+ "version": "11.31.0",
4
4
  "packageManager": "pnpm@9.8.0",
5
5
  "scripts": {
6
6
  "preinstall": "npx only-allow pnpm",