@apolitical/component-library 5.4.3 → 5.4.4
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/discussion/shared/interfaces/activity.interface.d.ts +3 -1
- package/hooks/use-tooltips.d.ts +4 -0
- package/index.js +2 -2
- package/index.mjs +215 -210
- package/package.json +1 -1
- package/style.css +1 -1
- package/text/pill/pill.d.ts +6 -3
package/text/pill/pill.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
|
+
/** The element to render the pill as; defaults to span. */
|
|
4
|
+
element?: 'span' | 'li';
|
|
3
5
|
/** The size of the pill */
|
|
4
6
|
size?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
5
7
|
/** The style of the pill */
|
|
@@ -10,11 +12,12 @@ interface Props {
|
|
|
10
12
|
children: React.ReactNode;
|
|
11
13
|
/** The icon to display in the pill */
|
|
12
14
|
icon?: string;
|
|
13
|
-
/** The tooltip to display on hover/focus */
|
|
15
|
+
/** The tooltip to display on hover/focus. */
|
|
14
16
|
tooltip?: string;
|
|
15
17
|
/** Optional test ID */
|
|
16
18
|
'data-testid'?: string;
|
|
17
|
-
element?: 'span' | 'li';
|
|
18
19
|
}
|
|
19
|
-
declare const Pill: ({ size, variant, className, icon, tooltip, children, element, ...props }: Props) =>
|
|
20
|
+
declare const Pill: ({ size, variant, className, icon, tooltip, children, element, ...props }: Props) => React.DetailedReactHTMLElement<{
|
|
21
|
+
className: string;
|
|
22
|
+
}, HTMLElement>;
|
|
20
23
|
export default Pill;
|