@lumx/react 4.3.2-alpha.45 → 4.3.2-alpha.46

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 (4) hide show
  1. package/index.d.ts +28 -33
  2. package/index.js +146 -197
  3. package/index.js.map +1 -1
  4. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -1556,7 +1556,7 @@ declare const GenericBlockGapSize: Pick<{
1556
1556
  readonly medium: "medium";
1557
1557
  readonly big: "big";
1558
1558
  readonly huge: "huge";
1559
- }, "tiny" | "regular" | "medium" | "big" | "huge">;
1559
+ }, "medium" | "tiny" | "regular" | "big" | "huge">;
1560
1560
  type GenericBlockGapSize = ValueOf$1<typeof GenericBlockGapSize>;
1561
1561
 
1562
1562
  interface GenericBlockProps extends FlexBoxProps {
@@ -2192,52 +2192,47 @@ declare const Lightbox: Comp<LightboxProps, HTMLDivElement>;
2192
2192
  /**
2193
2193
  * Defines the props of the component.
2194
2194
  */
2195
- interface LinkProps$1 extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled {
2196
- /** Link label content. */
2197
- label?: JSXElement;
2195
+ interface LinkProps$1 extends HasClassName, HasAriaDisabled, HasDisabled {
2196
+ /** Children content */
2197
+ children?: JSXElement;
2198
2198
  /** Color variant. */
2199
- color?: ColorWithVariants$1;
2199
+ color?: ColorWithVariants;
2200
2200
  /** Lightened or darkened variant of the selected icon color. */
2201
- colorVariant?: ColorVariant$1;
2201
+ colorVariant?: ColorVariant;
2202
2202
  /** Link href. */
2203
2203
  href?: string;
2204
- /**
2205
- * Left icon (SVG path).
2206
- * @deprecated Instead, simply nest `<Icon />` in the label
2207
- */
2208
- leftIcon?: string;
2209
- /** Element type or custom component for the link. */
2210
- as?: string | any;
2211
- /**
2212
- * Right icon (SVG path).
2213
- * @deprecated Instead, simply nest `<Icon />` in the label
2214
- */
2215
- rightIcon?: string;
2204
+ /** Whether the component is disabled or not. */
2205
+ isDisabled?: boolean;
2206
+ /** Custom element/component for the link. */
2207
+ linkAs?: string | any;
2208
+ /** Click handler (framework wrappers convert onClick to handleClick). */
2209
+ handleClick?: (event: any) => void;
2216
2210
  /** Link target. */
2217
2211
  target?: string;
2218
2212
  /** Typography variant. */
2219
- typography?: string;
2220
- /** Click handler. */
2221
- handleClick?: (event: any) => void;
2222
- /** Reference to the root element. */
2213
+ typography?: Typography;
2214
+ /** Element ref. */
2223
2215
  ref?: CommonRef;
2224
2216
  }
2225
2217
 
2226
- type HTMLAnchorProps = React__default.DetailedHTMLProps<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
2227
2218
  /**
2228
2219
  * Defines the props of the component.
2229
2220
  */
2230
- interface LinkProps extends GenericProps$1, ReactToJSX<LinkProps$1, 'label'> {
2231
- /** Link href. */
2232
- href?: HTMLAnchorProps['href'];
2233
- /** Custom react component for the link (can be used to inject react router Link). */
2234
- linkAs?: 'a' | any;
2235
- /** Link target. */
2236
- target?: HTMLAnchorProps['target'];
2237
- /** Typography variant. */
2238
- typography?: Typography$1;
2221
+ interface LinkProps extends GenericProps$1, ReactToJSX<LinkProps$1> {
2222
+ /**
2223
+ * Left icon (SVG path).
2224
+ * @deprecated Instead, simply nest `<Icon />` in the children
2225
+ */
2226
+ leftIcon?: string;
2239
2227
  /** Click handler. */
2240
- onClick?: (event: React__default.MouseEvent) => void;
2228
+ onClick?: (event?: React.MouseEvent) => void;
2229
+ /**
2230
+ * Right icon (SVG path).
2231
+ * @deprecated Instead, simply nest `<Icon />` in the children
2232
+ */
2233
+ rightIcon?: string;
2234
+ /** Children */
2235
+ children?: React.ReactNode;
2241
2236
  }
2242
2237
  /**
2243
2238
  * Link component.