@companycam/slab-web 1.16.2-beta.1 → 1.16.2-beta.2
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/lib/Button/Button.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type BaseButtonProps = {
|
|
|
22
22
|
ccMargin?: StyledButtonBaseProps['$ccMargin'];
|
|
23
23
|
color?: StyledButtonBaseProps['$color'];
|
|
24
24
|
design?: StyledButtonBaseProps['$design'];
|
|
25
|
+
disabled?: boolean;
|
|
25
26
|
icon?: {
|
|
26
27
|
component?: IconComponentProps;
|
|
27
28
|
name?: string;
|
|
@@ -31,7 +32,7 @@ export type BaseButtonProps = {
|
|
|
31
32
|
size?: StyledButtonBaseProps['$size'];
|
|
32
33
|
};
|
|
33
34
|
export type ButtonPolymorphicProps<C extends React.ElementType = 'button'> = PolymorphicComponentPropsWithRef<C, BaseButtonProps>;
|
|
34
|
-
export type ButtonAsAnchorProps = Omit<ButtonPolymorphicProps<'a'>, '
|
|
35
|
+
export type ButtonAsAnchorProps = Omit<ButtonPolymorphicProps<'a'>, 'component' | 'href'> & {
|
|
35
36
|
href: string;
|
|
36
37
|
};
|
|
37
38
|
export type ButtonProps<C extends React.ElementType = 'button'> = ButtonPolymorphicProps<C> | ButtonAsAnchorProps;
|
|
@@ -2,7 +2,7 @@ import { BaseButtonProps } from '../Button/Button';
|
|
|
2
2
|
import { PolymorphicComponentPropsWithRef } from '../shared/types';
|
|
3
3
|
type BaseButtonCondensedProps = Omit<BaseButtonProps, 'design'>;
|
|
4
4
|
export type ButtonCondensedPolymorphicProps<C extends React.ElementType = 'button'> = PolymorphicComponentPropsWithRef<C, BaseButtonCondensedProps>;
|
|
5
|
-
export type ButtonCondensedAsAnchorProps = Omit<ButtonCondensedPolymorphicProps<'a'>, '
|
|
5
|
+
export type ButtonCondensedAsAnchorProps = Omit<ButtonCondensedPolymorphicProps<'a'>, 'component' | 'href'> & {
|
|
6
6
|
href: string;
|
|
7
7
|
};
|
|
8
8
|
export type ButtonCondensedProps<C extends React.ElementType = 'button'> = ButtonCondensedPolymorphicProps<C> | ButtonCondensedPolymorphicProps;
|
|
@@ -13,7 +13,7 @@ export type BaseButtonIconProps<C extends ElementType> = FilteredBaseButtonProps
|
|
|
13
13
|
design?: 'solid' | 'minimal';
|
|
14
14
|
};
|
|
15
15
|
export type ButtonIconPolymorphicProps<C extends ElementType = 'button'> = PolymorphicComponentPropsWithRef<C, BaseButtonIconProps<C>>;
|
|
16
|
-
export type ButtonIconAsAnchorProps = Omit<ButtonIconPolymorphicProps<'a'>, '
|
|
16
|
+
export type ButtonIconAsAnchorProps = Omit<ButtonIconPolymorphicProps<'a'>, 'component' | 'href'> & {
|
|
17
17
|
href: string;
|
|
18
18
|
};
|
|
19
19
|
export type ButtonIconProps<C extends React.ElementType = 'button'> = ButtonIconPolymorphicProps<C> | ButtonIconAsAnchorProps;
|
|
@@ -2,7 +2,7 @@ import { BaseButtonIconProps } from '../ButtonIcon/ButtonIcon';
|
|
|
2
2
|
import { PolymorphicComponentPropsWithRef } from '../shared/types';
|
|
3
3
|
type BaseButtonIconCondensedProps<C extends React.ElementType = 'button'> = Omit<BaseButtonIconProps<C>, 'design'>;
|
|
4
4
|
export type ButtonIconCondensedPolymorphicProps<C extends React.ElementType = 'button'> = PolymorphicComponentPropsWithRef<C, BaseButtonIconCondensedProps<C>>;
|
|
5
|
-
export type ButtonIconCondensedAsAnchorProps = Omit<ButtonIconCondensedPolymorphicProps<'a'>, '
|
|
5
|
+
export type ButtonIconCondensedAsAnchorProps = Omit<ButtonIconCondensedPolymorphicProps<'a'>, 'component' | 'href'> & {
|
|
6
6
|
href: string;
|
|
7
7
|
};
|
|
8
8
|
export type ButtonIconCondensedProps<C extends React.ElementType = 'button'> = ButtonIconCondensedPolymorphicProps<C> | ButtonIconCondensedAsAnchorProps;
|