agroptima-design-system 0.25.8-beta.4 → 0.25.8
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/package.json
CHANGED
|
@@ -2,18 +2,16 @@ import NextLink from 'next/link'
|
|
|
2
2
|
|
|
3
3
|
interface CommonProps {
|
|
4
4
|
disabled?: boolean
|
|
5
|
+
visible?: boolean
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
type HtmlButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
8
9
|
|
|
9
10
|
type AnchorProps = React.AnchorHTMLAttributes<HTMLAnchorElement>
|
|
10
11
|
|
|
11
|
-
export type BaseButtonProps =
|
|
12
|
+
export type BaseButtonProps =
|
|
12
13
|
| (HtmlButtonProps & CommonProps)
|
|
13
14
|
| (AnchorProps & CommonProps)
|
|
14
|
-
) & {
|
|
15
|
-
visible?: boolean
|
|
16
|
-
}
|
|
17
15
|
|
|
18
16
|
const hasHref = (props: HtmlButtonProps | AnchorProps): props is AnchorProps =>
|
|
19
17
|
'href' in props
|