@danxbot/ui 15.18.0 → 15.19.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/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/types/components/Menu.d.ts +13 -1
- package/package.json +1 -1
|
@@ -100,6 +100,18 @@ export interface MenuCheckboxItemProps extends Omit<BaseMenu.CheckboxItem.Props,
|
|
|
100
100
|
* page; one line here is the whole help page.
|
|
101
101
|
*/
|
|
102
102
|
description?: ReactNode;
|
|
103
|
+
/**
|
|
104
|
+
* Draws the state in place of the trailing switch.
|
|
105
|
+
*
|
|
106
|
+
* For a setting whose on/off is better said by a meaningful glyph than by a
|
|
107
|
+
* generic track and thumb - a plan's sign-off, say: a filled check when signed,
|
|
108
|
+
* an empty "not approved" mark when not. The caller hands in the glyph for the
|
|
109
|
+
* CURRENT state (it already holds `checked`); the switch is then not drawn at
|
|
110
|
+
* all, so the row never states its state twice. The row stays a
|
|
111
|
+
* `menuitemcheckbox` carrying `aria-checked`, which is what assistive tech
|
|
112
|
+
* reads - the indicator is decoration and is hidden from it.
|
|
113
|
+
*/
|
|
114
|
+
indicator?: ReactNode;
|
|
103
115
|
ref?: Ref<HTMLDivElement>;
|
|
104
116
|
}
|
|
105
117
|
/**
|
|
@@ -118,7 +130,7 @@ export interface MenuCheckboxItemProps extends Omit<BaseMenu.CheckboxItem.Props,
|
|
|
118
130
|
* not "this is on". The track is fill AND thumb position, so on/off survives
|
|
119
131
|
* the loss of colour.
|
|
120
132
|
*/
|
|
121
|
-
export declare function MenuCheckboxItem({ className, icon, description, children, ref, ...props }: MenuCheckboxItemProps): import("react").JSX.Element;
|
|
133
|
+
export declare function MenuCheckboxItem({ className, icon, description, indicator, children, ref, ...props }: MenuCheckboxItemProps): import("react").JSX.Element;
|
|
122
134
|
export interface MenuGroupProps {
|
|
123
135
|
/**
|
|
124
136
|
* The group's heading. A prop rather than a child component, so a label
|