@lumx/react 4.22.0 → 4.22.1-next.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.
- package/index.d.ts +6 -5
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +4 -3
package/index.d.ts
CHANGED
|
@@ -802,7 +802,7 @@ interface ButtonProps extends GenericProps$1, ReactToJSX<ButtonProps$1> {
|
|
|
802
802
|
* @param ref Component ref.
|
|
803
803
|
* @return React element.
|
|
804
804
|
*/
|
|
805
|
-
declare const Button: Comp<ButtonProps,
|
|
805
|
+
declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
806
806
|
|
|
807
807
|
interface IconButtonProps$1 extends BaseButtonProps {
|
|
808
808
|
/**
|
|
@@ -2262,7 +2262,7 @@ declare const Combobox: {
|
|
|
2262
2262
|
/** Provides shared combobox context (handle, listbox ID, anchor ref) to all sub-components. */
|
|
2263
2263
|
Provider: typeof ComboboxProvider;
|
|
2264
2264
|
/** Button trigger for select-only combobox mode with keyboard navigation and typeahead. */
|
|
2265
|
-
Button: (<E extends React$1.ElementType = Comp<ButtonProps,
|
|
2265
|
+
Button: (<E extends React$1.ElementType = Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>>(props: Omit<HasPolymorphicAs$1<E>, "children" | "aria-expanded" | "aria-haspopup" | "role" | "aria-controls" | "aria-activedescendant"> & _lumx_core_js_types.HasRequiredLinkHref<E> & ReactToJSX<ComboboxButtonProps$1> & React$1.ComponentProps<E> & {
|
|
2266
2266
|
ref?: ComponentRef<E> | undefined;
|
|
2267
2267
|
}) => React.JSX.Element) & {
|
|
2268
2268
|
displayName: string;
|
|
@@ -2838,7 +2838,7 @@ declare const GenericBlockGapSize: Pick<{
|
|
|
2838
2838
|
readonly medium: "medium";
|
|
2839
2839
|
readonly big: "big";
|
|
2840
2840
|
readonly huge: "huge";
|
|
2841
|
-
}, "big" | "
|
|
2841
|
+
}, "big" | "medium" | "tiny" | "regular" | "huge">;
|
|
2842
2842
|
type GenericBlockGapSize = ValueOf<typeof GenericBlockGapSize>;
|
|
2843
2843
|
|
|
2844
2844
|
interface GenericBlockProps$1 extends FlexBoxProps$1 {
|
|
@@ -3033,7 +3033,7 @@ interface GridColumnProps extends GenericProps$1, ReactToJSX<GridColumnProps$1>
|
|
|
3033
3033
|
*/
|
|
3034
3034
|
declare const GridColumn: Comp<GridColumnProps, HTMLElement>;
|
|
3035
3035
|
|
|
3036
|
-
declare const ICON_SIZES: ("
|
|
3036
|
+
declare const ICON_SIZES: ("m" | "s" | "xxs" | "xs" | "l" | "xl" | "xxl")[];
|
|
3037
3037
|
|
|
3038
3038
|
type IconSizes = (typeof ICON_SIZES)[number];
|
|
3039
3039
|
/**
|
|
@@ -3362,6 +3362,7 @@ declare function useImageLightbox<P extends Partial<ImageLightboxProps>>(props:
|
|
|
3362
3362
|
getTriggerProps: (options?: TriggerOptions) => {
|
|
3363
3363
|
onClick: (ev?: React__default.MouseEvent) => void;
|
|
3364
3364
|
ref: React__default.Ref<any>;
|
|
3365
|
+
'aria-haspopup': 'dialog';
|
|
3365
3366
|
};
|
|
3366
3367
|
/** Props to forward to the ImageLightbox */
|
|
3367
3368
|
imageLightboxProps: ManagedProps & P;
|
|
@@ -3537,7 +3538,7 @@ interface LinkProps extends GenericProps$1, ReactToJSX<LinkProps$1> {
|
|
|
3537
3538
|
* @param ref Component ref.
|
|
3538
3539
|
* @return React element.
|
|
3539
3540
|
*/
|
|
3540
|
-
declare const Link: Comp<LinkProps,
|
|
3541
|
+
declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
3541
3542
|
|
|
3542
3543
|
/**
|
|
3543
3544
|
* Defines the props of the component.
|
package/index.js
CHANGED
|
@@ -14574,7 +14574,8 @@ function useImageLightbox(props) {
|
|
|
14574
14574
|
},
|
|
14575
14575
|
onClick(e) {
|
|
14576
14576
|
open(e?.target, options);
|
|
14577
|
-
}
|
|
14577
|
+
},
|
|
14578
|
+
'aria-haspopup': 'dialog'
|
|
14578
14579
|
}));
|
|
14579
14580
|
}, []);
|
|
14580
14581
|
return {
|