@graphty/compact-mantine 0.9.9 → 0.9.11

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/dist/index.d.cts CHANGED
@@ -1962,7 +1962,8 @@ export declare function DataRow({ name, value, stat, icon, selected, onClick, on
1962
1962
  * `aria-sort` is defined only on a column header inside a table or a grid, so
1963
1963
  * that is the one place a screen reader reads it out: wrap the caption and the
1964
1964
  * rows it heads in an element with `role="table"`, each row in a `role="row"`
1965
- * of its own. Above a plain list the arrow stays a drawing, and a reader who
1965
+ * of its own. The caption is a `columnheader` with `aria-sort` only when its
1966
+ * parent is such a row (or a `<tr>`). Above a plain list the arrow stays a drawing, and a reader who
1966
1967
  * cannot see it learns the order changed only if you say so yourself -- with a
1967
1968
  * live region, or by moving focus to the reordered list.
1968
1969
  * @param props - Component props
@@ -5019,6 +5020,7 @@ export declare interface QuickAction {
5019
5020
  * @param props.filter - Which actions match the search
5020
5021
  * @param props.header - Rendered between the search field and the list
5021
5022
  * @param props.searchAction - A trailing action at the right end of the search field
5023
+ * @param props.listId - The id of the result list, for a header control to name in `aria-controls`
5022
5024
  * @param props.truncate - Cut a long name at the end or in the middle
5023
5025
  * @param props.placeholder - Placeholder of the search field
5024
5026
  * @param props.width - Panel width
@@ -5027,7 +5029,7 @@ export declare interface QuickAction {
5027
5029
  * @param props.style - Extra style on the panel
5028
5030
  * @returns The palette
5029
5031
  */
5030
- export declare function QuickActions({ actions, onRun, onClose, query, onQueryChange, filter, header, searchAction, truncate, placeholder, width, height, className, style, ...others }: QuickActionsProps): default_2.JSX.Element;
5032
+ export declare function QuickActions({ actions, onRun, onClose, query, onQueryChange, filter, header, searchAction, listId: listIdProp, truncate, placeholder, width, height, className, style, ...others }: QuickActionsProps): default_2.JSX.Element;
5031
5033
 
5032
5034
  /**
5033
5035
  * Props for the QuickActions component.
@@ -5047,7 +5049,8 @@ export declare interface QuickActionsProps {
5047
5049
  filter?: (action: QuickAction, query: string) => boolean;
5048
5050
  /**
5049
5051
  * Rendered in a 32 tall row between the search field and the list, 8px in from the panel
5050
- * edge: Figma's scope tabs (`<Tabs>` with the theme's pill tabs), for example.
5052
+ * edge: Figma's scope tabs (`<Tabs>` with the theme's pill tabs), for example. Scope tabs
5053
+ * have no panels of their own: give each `aria-controls={listId}`.
5051
5054
  */
5052
5055
  header?: default_2.ReactNode;
5053
5056
  /**
@@ -5057,6 +5060,11 @@ export declare interface QuickActionsProps {
5057
5060
  * own clear button in this place instead, as Figma does.
5058
5061
  */
5059
5062
  searchAction?: default_2.ReactNode;
5063
+ /**
5064
+ * The id of the result list. A control in `header` that changes what the list shows, such as
5065
+ * scope tabs, names it in `aria-controls`. Generated when left out.
5066
+ */
5067
+ listId?: string;
5060
5068
  /** Accessible name of the dialog. Defaults to the "Quick actions" label. */
5061
5069
  "aria-label"?: string;
5062
5070
  /** Placeholder of the search field. Defaults to the "Search actions" label. */
package/dist/index.d.ts CHANGED
@@ -1962,7 +1962,8 @@ export declare function DataRow({ name, value, stat, icon, selected, onClick, on
1962
1962
  * `aria-sort` is defined only on a column header inside a table or a grid, so
1963
1963
  * that is the one place a screen reader reads it out: wrap the caption and the
1964
1964
  * rows it heads in an element with `role="table"`, each row in a `role="row"`
1965
- * of its own. Above a plain list the arrow stays a drawing, and a reader who
1965
+ * of its own. The caption is a `columnheader` with `aria-sort` only when its
1966
+ * parent is such a row (or a `<tr>`). Above a plain list the arrow stays a drawing, and a reader who
1966
1967
  * cannot see it learns the order changed only if you say so yourself -- with a
1967
1968
  * live region, or by moving focus to the reordered list.
1968
1969
  * @param props - Component props
@@ -5019,6 +5020,7 @@ export declare interface QuickAction {
5019
5020
  * @param props.filter - Which actions match the search
5020
5021
  * @param props.header - Rendered between the search field and the list
5021
5022
  * @param props.searchAction - A trailing action at the right end of the search field
5023
+ * @param props.listId - The id of the result list, for a header control to name in `aria-controls`
5022
5024
  * @param props.truncate - Cut a long name at the end or in the middle
5023
5025
  * @param props.placeholder - Placeholder of the search field
5024
5026
  * @param props.width - Panel width
@@ -5027,7 +5029,7 @@ export declare interface QuickAction {
5027
5029
  * @param props.style - Extra style on the panel
5028
5030
  * @returns The palette
5029
5031
  */
5030
- export declare function QuickActions({ actions, onRun, onClose, query, onQueryChange, filter, header, searchAction, truncate, placeholder, width, height, className, style, ...others }: QuickActionsProps): default_2.JSX.Element;
5032
+ export declare function QuickActions({ actions, onRun, onClose, query, onQueryChange, filter, header, searchAction, listId: listIdProp, truncate, placeholder, width, height, className, style, ...others }: QuickActionsProps): default_2.JSX.Element;
5031
5033
 
5032
5034
  /**
5033
5035
  * Props for the QuickActions component.
@@ -5047,7 +5049,8 @@ export declare interface QuickActionsProps {
5047
5049
  filter?: (action: QuickAction, query: string) => boolean;
5048
5050
  /**
5049
5051
  * Rendered in a 32 tall row between the search field and the list, 8px in from the panel
5050
- * edge: Figma's scope tabs (`<Tabs>` with the theme's pill tabs), for example.
5052
+ * edge: Figma's scope tabs (`<Tabs>` with the theme's pill tabs), for example. Scope tabs
5053
+ * have no panels of their own: give each `aria-controls={listId}`.
5051
5054
  */
5052
5055
  header?: default_2.ReactNode;
5053
5056
  /**
@@ -5057,6 +5060,11 @@ export declare interface QuickActionsProps {
5057
5060
  * own clear button in this place instead, as Figma does.
5058
5061
  */
5059
5062
  searchAction?: default_2.ReactNode;
5063
+ /**
5064
+ * The id of the result list. A control in `header` that changes what the list shows, such as
5065
+ * scope tabs, names it in `aria-controls`. Generated when left out.
5066
+ */
5067
+ listId?: string;
5060
5068
  /** Accessible name of the dialog. Defaults to the "Quick actions" label. */
5061
5069
  "aria-label"?: string;
5062
5070
  /** Placeholder of the search field. Defaults to the "Search actions" label. */