lucent-ui 0.18.0 → 0.18.1

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/index.d.ts CHANGED
@@ -277,7 +277,7 @@ export declare interface ColorPalette {
277
277
  dark: ThemeAnchors;
278
278
  }
279
279
 
280
- export declare function ColorPicker({ value, onChange, label, size, inline, disabled, presetGroups, id, style, }: ColorPickerProps): JSX_2.Element;
280
+ export declare function ColorPicker({ value, onChange, label, size, inline, disabled, presetGroups, portalContainer, id, style, }: ColorPickerProps): JSX_2.Element;
281
281
 
282
282
  export declare namespace ColorPicker {
283
283
  var displayName: string;
@@ -293,6 +293,8 @@ export declare interface ColorPickerProps {
293
293
  inline?: boolean;
294
294
  disabled?: boolean;
295
295
  presetGroups?: ColorPresetGroup[];
296
+ /** DOM element to portal the popover into. Defaults to document.body. Use this to preserve CSS custom property inheritance for per-section theming. */
297
+ portalContainer?: HTMLElement | null;
296
298
  id?: string;
297
299
  style?: CSSProperties;
298
300
  }
@@ -772,7 +774,7 @@ export declare function makeLibraryCSS(tokens: LucentTokens, selector?: string):
772
774
 
773
775
  export declare const MANIFEST_SPEC_VERSION = "1.0";
774
776
 
775
- export declare function Menu({ trigger, children, placement, size, open: controlledOpen, onOpenChange, style, }: MenuProps): JSX_2.Element;
777
+ export declare function Menu({ trigger, children, placement, size, open: controlledOpen, onOpenChange, portalContainer, style, }: MenuProps): JSX_2.Element;
776
778
 
777
779
  export declare function MenuGroup({ label, children, style }: MenuGroupProps): JSX_2.Element;
778
780
 
@@ -821,6 +823,8 @@ export declare interface MenuProps {
821
823
  open?: boolean;
822
824
  /** Callback when open state changes. */
823
825
  onOpenChange?: (open: boolean) => void;
826
+ /** DOM element to portal the popover into. Defaults to document.body. Use this to preserve CSS custom property inheritance for per-section theming. */
827
+ portalContainer?: HTMLElement | null;
824
828
  /** Style overrides for the popover panel. */
825
829
  style?: CSSProperties;
826
830
  }