@lumx/react 4.3.2-alpha.25 → 4.3.2-alpha.26

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 (2) hide show
  1. package/index.d.ts +32 -2
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as _lumx_core_js_types from '@lumx/core/js/types';
4
4
  import { GenericProps, HasTheme as HasTheme$1, ValueOf as ValueOf$1, PropsToOverride, HasAriaDisabled as HasAriaDisabled$1, HasCloseMode, HasClassName as HasClassName$1, JSXElement as JSXElement$1, CommonRef as CommonRef$1, Falsy, HeadingElement as HeadingElement$1, HasRequiredLinkHref, HasAriaLabelOrLabelledBy } from '@lumx/core/js/types';
5
5
  export * from '@lumx/core/js/types';
6
6
  import * as React$1 from 'react';
7
- import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
7
+ import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, RefObject, CSSProperties, ImgHTMLAttributes, AriaAttributes as AriaAttributes$1, SetStateAction, Key, ElementType, ComponentProps } from 'react';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
9
 
10
10
  /** LumX Component Type. */
@@ -540,6 +540,36 @@ interface HasDisabled {
540
540
  disabled?: boolean;
541
541
  }
542
542
 
543
+ /**
544
+ * ARIA attributes type for components.
545
+ * All attributes are optional.
546
+ *
547
+ * This is a custom interface containing only the ARIA attributes
548
+ * actually used in the @lumx/core components, avoiding dependency on React types.
549
+ */
550
+ interface AriaAttributes {
551
+ /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
552
+ 'aria-expanded'?: boolean | 'true' | 'false';
553
+ /** Indicates the availability and type of interactive popup element that can be triggered by the element. */
554
+ 'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
555
+ /** Indicates the current "pressed" state of toggle buttons. */
556
+ 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true';
557
+ /** Defines a string value that labels the current element. */
558
+ 'aria-label'?: string;
559
+ /** Identifies the element (or elements) that labels the current element. */
560
+ 'aria-labelledby'?: string;
561
+ /** Identifies the element (or elements) that describes the object. */
562
+ 'aria-describedby'?: string;
563
+ /** Indicates whether the element is exposed to an accessibility API. */
564
+ 'aria-hidden'?: boolean | 'true' | 'false';
565
+ /** Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. */
566
+ 'aria-disabled'?: boolean | 'true' | 'false';
567
+ /** Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. */
568
+ 'aria-checked'?: boolean | 'false' | 'mixed' | 'true';
569
+ /** Indicates whether items in a table or grid are sorted in ascending or descending order. */
570
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
571
+ }
572
+
543
573
  type FunctionSelector<TObject, TValue> = (o: TObject) => TValue;
544
574
  type FieldSelector<TObject, TValue> = keyof {
545
575
  [TKey in keyof TObject as TObject[TKey] extends TValue ? TKey : never]: TObject[TKey];
@@ -2119,7 +2149,7 @@ declare const InputLabel: Comp<InputLabelProps, HTMLLabelElement>;
2119
2149
  /**
2120
2150
  * Defines the props of the component.
2121
2151
  */
2122
- interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
2152
+ interface LightboxProps extends GenericProps, HasTheme$1, Pick<AriaAttributes$1, 'aria-label' | 'aria-labelledby'> {
2123
2153
  /** Props to pass to the close button (minus those already set by the Lightbox props). */
2124
2154
  closeButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
2125
2155
  /** Whether the component is open or not. */
package/package.json CHANGED
@@ -6,8 +6,8 @@
6
6
  "url": "https://github.com/lumapps/design-system/issues"
7
7
  },
8
8
  "dependencies": {
9
- "@lumx/core": "^4.3.2-alpha.25",
10
- "@lumx/icons": "^4.3.2-alpha.25",
9
+ "@lumx/core": "^4.3.2-alpha.26",
10
+ "@lumx/icons": "^4.3.2-alpha.26",
11
11
  "@popperjs/core": "^2.5.4",
12
12
  "body-scroll-lock": "^3.1.5",
13
13
  "react-popper": "^2.2.4"
@@ -102,6 +102,6 @@
102
102
  "build:storybook": "storybook build"
103
103
  },
104
104
  "sideEffects": false,
105
- "version": "4.3.2-alpha.25",
105
+ "version": "4.3.2-alpha.26",
106
106
  "stableVersion": "4.3.1"
107
107
  }