@lumx/react 3.11.1-alpha.3 → 3.11.1-alpha.5

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/index.d.ts CHANGED
@@ -603,8 +603,6 @@ interface BaseButtonProps extends GenericProps, Pick<AriaAttributes, 'aria-expan
603
603
  type?: HTMLButtonProps['type'];
604
604
  /** Custom react component for the link (can be used to inject react router Link). */
605
605
  linkAs?: 'a' | any;
606
- /** Children */
607
- children?: React.ReactNode;
608
606
  }
609
607
 
610
608
  /**
@@ -620,14 +618,14 @@ declare const ButtonEmphasis: {
620
618
  * Defines the props of the component.
621
619
  */
622
620
  interface ButtonProps extends BaseButtonProps {
623
- /** Button content. */
624
- children?: ReactNode;
625
621
  /** Left icon (SVG path). */
626
622
  leftIcon?: string;
627
623
  /** Right icon (SVG path). */
628
624
  rightIcon?: string;
629
625
  /** When `true`, the button gets as large as possible. */
630
626
  fullWidth?: boolean;
627
+ /** Children */
628
+ children?: React.ReactNode;
631
629
  }
632
630
  /**
633
631
  * Button component.
package/index.js CHANGED
@@ -4584,19 +4584,10 @@ function usePopoverStyle(_ref5) {
4584
4584
  if (!update || !popperElement || !anchorElement || !(WINDOW !== null && WINDOW !== void 0 && WINDOW.ResizeObserver)) {
4585
4585
  return undefined;
4586
4586
  }
4587
-
4588
- // Only update once per frame
4589
- let frame;
4590
- function limitedUpdate() {
4591
- if (frame) return;
4592
- frame = requestAnimationFrame(() => {
4593
- update === null || update === void 0 ? void 0 : update();
4594
- frame = undefined;
4595
- });
4596
- }
4587
+ update();
4597
4588
 
4598
4589
  // On anchor or popover resize
4599
- const resizeObserver = new ResizeObserver(limitedUpdate);
4590
+ const resizeObserver = new ResizeObserver(update);
4600
4591
  resizeObserver.observe(anchorElement);
4601
4592
  resizeObserver.observe(popperElement);
4602
4593
  return () => {
@@ -14194,7 +14185,6 @@ const Tooltip = forwardRef((props, ref) => {
14194
14185
  }, forwardedProps, {
14195
14186
  id: id,
14196
14187
  role: "tooltip",
14197
- "aria-label": label || '',
14198
14188
  className: classNames(className, handleBasicClasses({
14199
14189
  prefix: CLASSNAME$2,
14200
14190
  position