@lumx/react 4.3.2-alpha.39 → 4.3.2-alpha.40

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
@@ -733,7 +733,7 @@ interface ButtonProps extends GenericProps$1, ReactToJSX<ButtonProps$1> {
733
733
  * @param ref Component ref.
734
734
  * @return React element.
735
735
  */
736
- declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
736
+ declare const Button: Comp<ButtonProps, HTMLAnchorElement | HTMLButtonElement>;
737
737
 
738
738
  interface IconButtonProps$1 extends BaseButtonProps {
739
739
  /**
@@ -1552,7 +1552,7 @@ declare const GenericBlockGapSize: Pick<{
1552
1552
  readonly medium: "medium";
1553
1553
  readonly big: "big";
1554
1554
  readonly huge: "huge";
1555
- }, "medium" | "tiny" | "regular" | "big" | "huge">;
1555
+ }, "tiny" | "regular" | "medium" | "big" | "huge">;
1556
1556
  type GenericBlockGapSize = ValueOf$1<typeof GenericBlockGapSize>;
1557
1557
 
1558
1558
  interface GenericBlockProps extends FlexBoxProps {
@@ -2242,7 +2242,7 @@ interface LinkProps extends GenericProps$1, ReactToJSX<LinkProps$1, 'label'> {
2242
2242
  * @param ref Component ref.
2243
2243
  * @return React element.
2244
2244
  */
2245
- declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
2245
+ declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
2246
2246
 
2247
2247
  /**
2248
2248
  * Defines the props of the component.
package/index.js CHANGED
@@ -11443,23 +11443,25 @@ const SideNavigationItem = forwardRef((props, ref) => {
11443
11443
  onClick: onActionClick,
11444
11444
  ...ariaProps
11445
11445
  })]
11446
- }) : /*#__PURE__*/jsxs(RawClickable, {
11446
+ }) : RawClickable({
11447
11447
  as: linkAs || (linkProps?.href ? 'a' : 'button'),
11448
11448
  ...linkProps,
11449
11449
  className: element$d('link'),
11450
- onClick: onClick,
11450
+ onClick,
11451
11451
  ...ariaProps,
11452
- children: [icon && /*#__PURE__*/jsx(Icon, {
11453
- className: element$d('icon'),
11454
- icon: icon,
11455
- size: Size$1.xs
11456
- }), /*#__PURE__*/jsx("span", {
11457
- children: label
11458
- }), hasContent && /*#__PURE__*/jsx(Icon, {
11459
- className: element$d('chevron'),
11460
- icon: isOpen ? mdiChevronUp : mdiChevronDown,
11461
- size: Size$1.xs
11462
- })]
11452
+ children: /*#__PURE__*/jsxs(Fragment, {
11453
+ children: [icon && /*#__PURE__*/jsx(Icon, {
11454
+ className: element$d('icon'),
11455
+ icon: icon,
11456
+ size: Size$1.xs
11457
+ }), /*#__PURE__*/jsx("span", {
11458
+ children: label
11459
+ }), hasContent && /*#__PURE__*/jsx(Icon, {
11460
+ className: element$d('chevron'),
11461
+ icon: isOpen ? mdiChevronUp : mdiChevronDown,
11462
+ size: Size$1.xs
11463
+ })]
11464
+ })
11463
11465
  }), (closeMode === 'hide' || showChildren) && /*#__PURE__*/jsx("ul", {
11464
11466
  className: element$d('children'),
11465
11467
  id: contentId,