@apolitical/component-library 6.1.3 → 6.2.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/form/components/form/form.types.d.ts +1 -1
- package/form/types/password-form/password-form.d.ts +3 -11
- package/helpers/intl.d.ts +0 -1
- package/index.js +2 -2
- package/index.mjs +1 -7
- package/navigation/action-bar/action-bar.d.ts +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/text/pill/index.d.ts +1 -0
- package/text/pill/pill.d.ts +2 -2
- package/text/status-banner/index.d.ts +1 -0
- package/text/status-banner/status-banner.d.ts +2 -2
package/text/pill/index.d.ts
CHANGED
package/text/pill/pill.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface
|
|
2
|
+
export interface IPillProps {
|
|
3
3
|
/** The element to render the pill as; defaults to span. */
|
|
4
4
|
element?: 'span' | 'li';
|
|
5
5
|
/** The size of the pill */
|
|
@@ -20,7 +20,7 @@ interface Props {
|
|
|
20
20
|
/** Optional test ID */
|
|
21
21
|
'data-testid'?: string;
|
|
22
22
|
}
|
|
23
|
-
declare const Pill: ({ size, variant, className, icon, tooltip, children, element, ...props }:
|
|
23
|
+
declare const Pill: ({ size, variant, className, icon, tooltip, children, element, ...props }: IPillProps) => React.DetailedReactHTMLElement<{
|
|
24
24
|
className: string;
|
|
25
25
|
}, HTMLElement>;
|
|
26
26
|
export default Pill;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface
|
|
2
|
+
export interface IStatusBannerProps {
|
|
3
3
|
/** The element that will render around the content */
|
|
4
4
|
element?: 'span' | 'small' | 'strong' | 'em' | 'p' | 'li';
|
|
5
5
|
/** The content to be hidden from screen readers */
|
|
@@ -11,7 +11,7 @@ interface Props {
|
|
|
11
11
|
/** Test ID for Jest tests */
|
|
12
12
|
'data-testid'?: string;
|
|
13
13
|
}
|
|
14
|
-
declare const StatusBanner: ({ element, children, className, ...props }:
|
|
14
|
+
declare const StatusBanner: ({ element, children, className, ...props }: IStatusBannerProps) => React.DetailedReactHTMLElement<{
|
|
15
15
|
className: string;
|
|
16
16
|
'aria-live': "assertive";
|
|
17
17
|
/** Optional ID, for errors */
|