@companycam/slab-web 1.16.2-beta.5 → 1.16.2-beta.6
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/index.js +213 -213
- package/index.mjs +1838 -1830
- package/lib/Billboard/Billboard.d.ts +1 -1
- package/lib/Button/Button.d.ts +1 -6
- package/lib/ButtonCondensed/ButtonCondensed.d.ts +5 -9
- package/lib/ButtonIcon/ButtonIcon.d.ts +6 -6
- package/lib/ButtonIconCondensed/ButtonIconCondensed.d.ts +6 -6
- package/lib/PageHeader/PageHeader.d.ts +1 -1
- package/package.json +1 -1
- package/lib/shared/Buttons/OverloadGenericTest.d.ts +0 -1
- package/lib/shared/Buttons/SimpleGenericTest.d.ts +0 -1
|
@@ -6,7 +6,7 @@ export type BillboardImage = {
|
|
|
6
6
|
alt: string;
|
|
7
7
|
imageContainerStyle?: CSSProperties;
|
|
8
8
|
};
|
|
9
|
-
type Action<C extends React.ElementType
|
|
9
|
+
type Action<C extends React.ElementType> = ButtonProps<C> & {
|
|
10
10
|
label: string;
|
|
11
11
|
'data-testid'?: string;
|
|
12
12
|
children?: 'never';
|
package/lib/Button/Button.d.ts
CHANGED
|
@@ -32,12 +32,7 @@ export type BaseButtonProps = {
|
|
|
32
32
|
size?: StyledButtonBaseProps['$size'];
|
|
33
33
|
};
|
|
34
34
|
export type ButtonProps<C extends React.ElementType = 'button'> = PolymorphicComponentPropsWithRef<C, BaseButtonProps>;
|
|
35
|
-
|
|
36
|
-
component?: never;
|
|
37
|
-
href: string;
|
|
38
|
-
};
|
|
39
|
-
declare function BaseButton<C extends React.ElementType = 'button'>(props: ButtonProps<C>, ref?: PolymorphicRef<C>): React.ReactNode;
|
|
40
|
-
declare function BaseButton(props: ButtonAsAnchorProps, ref?: PolymorphicRef<'a'>): React.ReactNode;
|
|
35
|
+
declare function BaseButton<C extends React.ElementType = 'button'>({ ccMargin, children, color, component, design, icon, loading, size, ...props }: ButtonProps<C>, ref?: PolymorphicRef<C>): import("react/jsx-runtime").JSX.Element;
|
|
41
36
|
declare namespace BaseButton {
|
|
42
37
|
var displayName: string;
|
|
43
38
|
}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { BaseButtonProps } from '../Button/Button';
|
|
2
2
|
import { PolymorphicComponentPropsWithRef, PolymorphicRef } from '../shared/types';
|
|
3
|
-
export type BaseButtonCondensedProps = Omit<BaseButtonProps, 'design'
|
|
4
|
-
design?: never;
|
|
5
|
-
};
|
|
3
|
+
export type BaseButtonCondensedProps = Omit<BaseButtonProps, 'design'>;
|
|
6
4
|
export type ButtonCondensedProps<C extends React.ElementType = 'button'> = PolymorphicComponentPropsWithRef<C, BaseButtonCondensedProps>;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
declare function BaseButtonCondensed<C extends React.ElementType = 'button'>(props: ButtonCondensedProps<C>, ref?: PolymorphicRef<C>): React.ReactNode;
|
|
12
|
-
declare function BaseButtonCondensed(props: ButtonCondensedAsAnchorProps, ref?: PolymorphicRef<'a'>): React.ReactNode;
|
|
5
|
+
declare function BaseButtonCondensed<C extends React.ElementType = 'button'>(props: ButtonCondensedProps<C>, ref: PolymorphicRef<C>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace BaseButtonCondensed {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
13
9
|
/**
|
|
14
10
|
A minimal [Button](/docs/button--docs) with styles for situations where you don't need padding, such as inside a table cell.
|
|
15
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
2
|
import { BaseButtonProps, IconComponentProps } from '../Button/Button';
|
|
3
|
-
import { PolymorphicComponentPropsWithRef } from '../shared/types';
|
|
3
|
+
import { PolymorphicComponentPropsWithRef, PolymorphicRef } from '../shared/types';
|
|
4
4
|
type Shape = 'circle' | 'square';
|
|
5
5
|
export type BaseButtonIconProps = Omit<BaseButtonProps, 'design' | 'icon'> & {
|
|
6
6
|
accessibilityLabel: string;
|
|
@@ -10,10 +10,10 @@ export type BaseButtonIconProps = Omit<BaseButtonProps, 'design' | 'icon'> & {
|
|
|
10
10
|
design?: 'solid' | 'minimal';
|
|
11
11
|
};
|
|
12
12
|
export type ButtonIconProps<C extends ElementType = 'button'> = PolymorphicComponentPropsWithRef<C, BaseButtonIconProps>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
13
|
+
declare function BaseButtonIcon<C extends React.ElementType = 'button'>({ accessibilityLabel, component, iconComponent, iconName, shape, size, design, ...rest }: ButtonIconProps<C>, ref?: PolymorphicRef<C>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare namespace BaseButtonIcon {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
17
|
/**
|
|
18
18
|
A [Button](/docs/button--docs) styled to have the same width and height, and to only display an icon. ButtonIcon accepts all of the same props as [Button](/docs/button--docs), but does not accept `children`.
|
|
19
19
|
|
|
@@ -21,5 +21,5 @@ A [Button](/docs/button--docs) styled to have the same width and height, and to
|
|
|
21
21
|
- In general, use solid icons — not outline icons — inside ButtonIcon.
|
|
22
22
|
- ButtonIcon doesn't support the `outline` design variant. (We only want to use `solid` or `minimal` icon buttons.)
|
|
23
23
|
*/
|
|
24
|
-
export declare const ButtonIcon:
|
|
24
|
+
export declare const ButtonIcon: typeof BaseButtonIcon;
|
|
25
25
|
export default ButtonIcon;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseButtonIconProps } from '../ButtonIcon/ButtonIcon';
|
|
2
|
-
import { PolymorphicComponentPropsWithRef } from '../shared/types';
|
|
2
|
+
import { PolymorphicComponentPropsWithRef, PolymorphicRef } from '../shared/types';
|
|
3
3
|
type BaseButtonIconCondensedProps = Omit<BaseButtonIconProps, 'design'>;
|
|
4
4
|
export type ButtonIconCondensedProps<C extends React.ElementType = 'button'> = PolymorphicComponentPropsWithRef<C, BaseButtonIconCondensedProps>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
export declare const ButtonIconCondensed:
|
|
5
|
+
declare function BaseButtonIconCondensed<C extends React.ElementType = 'button'>(props: ButtonIconCondensedProps<C>, ref: PolymorphicRef<C>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace BaseButtonIconCondensed {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ButtonIconCondensed: typeof BaseButtonIconCondensed;
|
|
10
10
|
export default ButtonIconCondensed;
|
|
@@ -4,7 +4,7 @@ type BaseAction = Omit<BaseButtonCondensedProps, 'color' | 'icon'> & {
|
|
|
4
4
|
label: string;
|
|
5
5
|
'data-testid'?: string;
|
|
6
6
|
};
|
|
7
|
-
type Action<C extends React.ElementType
|
|
7
|
+
type Action<C extends React.ElementType> = ButtonCondensedProps<C> & BaseAction;
|
|
8
8
|
type HTMLHeaderProps = ComponentPropsWithRef<'header'>;
|
|
9
9
|
export type PageHeaderProps<C extends React.ElementType = 'button'> = HTMLHeaderProps & {
|
|
10
10
|
heading: string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|