@box/blueprint-web 12.129.0 → 12.130.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/dist/lib-esm/button/button.d.ts +6 -2
- package/dist/lib-esm/button/button.js +8 -3
- package/dist/lib-esm/button/types.d.ts +10 -3
- package/dist/lib-esm/empty-state/empty-state.d.ts +6 -2
- package/dist/lib-esm/guided-tooltip/guided-tooltip-footer.d.ts +12 -4
- package/dist/lib-esm/guided-tooltip/guided-tooltip.d.ts +12 -4
- package/dist/lib-esm/index.css +249 -217
- package/dist/lib-esm/modal/alert-modal.d.ts +12 -4
- package/dist/lib-esm/modal/modal-footer.d.ts +12 -4
- package/dist/lib-esm/modal/modal.d.ts +12 -4
- package/dist/lib-esm/primitives/base-button/base-button.js +13 -19
- package/dist/lib-esm/primitives/base-button/base-button.module.js +1 -1
- package/dist/lib-esm/primitives/base-button/types.d.ts +2 -1
- package/dist/lib-esm/primitives/base-button/utils.d.ts +5 -1
- package/dist/lib-esm/primitives/base-button/utils.js +21 -1
- package/dist/lib-esm/side-panel/side-panel-footer.d.ts +12 -4
- package/dist/lib-esm/side-panel/side-panel.d.ts +12 -4
- package/dist/lib-esm/util-components/base-grid-list-item/base-grid-list-item.module.js +1 -1
- package/package.json +3 -3
|
@@ -5,16 +5,24 @@ export declare const AlertModal: {
|
|
|
5
5
|
} & {
|
|
6
6
|
PrimaryButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
7
7
|
children?: string | string[];
|
|
8
|
-
icon?: import("
|
|
8
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
9
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
10
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
9
11
|
}, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
10
12
|
children?: string | string[];
|
|
11
|
-
icon?: import("
|
|
13
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
14
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
15
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
12
16
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
17
|
SecondaryButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
14
18
|
children?: string | string[];
|
|
15
|
-
icon?: import("
|
|
19
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
20
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
21
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
16
22
|
}, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
17
23
|
children?: string | string[];
|
|
18
|
-
icon?: import("
|
|
24
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
25
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
26
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
19
27
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
20
28
|
};
|
|
@@ -6,16 +6,24 @@ import { type ModalFooterProps } from './types';
|
|
|
6
6
|
export declare const ModalFooter: import("react").ForwardRefExoticComponent<ModalFooterProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
7
7
|
PrimaryButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
8
8
|
children?: string | string[];
|
|
9
|
-
icon?: import("
|
|
9
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
10
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
11
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
10
12
|
}, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
11
13
|
children?: string | string[];
|
|
12
|
-
icon?: import("
|
|
14
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
15
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
16
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
13
17
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
18
|
SecondaryButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
15
19
|
children?: string | string[];
|
|
16
|
-
icon?: import("
|
|
20
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
21
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
22
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
17
23
|
}, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
18
24
|
children?: string | string[];
|
|
19
|
-
icon?: import("
|
|
25
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
26
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
27
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
20
28
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
21
29
|
};
|
|
@@ -33,17 +33,25 @@ export declare const Modal: (({ children, modal, ...props }: ModalProps) => impo
|
|
|
33
33
|
Footer: import("react").ForwardRefExoticComponent<import("./types").ModalFooterProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
34
34
|
PrimaryButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
35
35
|
children?: string | string[];
|
|
36
|
-
icon?: import("
|
|
36
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
37
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
38
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
37
39
|
}, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
38
40
|
children?: string | string[];
|
|
39
|
-
icon?: import("
|
|
41
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
42
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
43
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
40
44
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
41
45
|
SecondaryButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
42
46
|
children?: string | string[];
|
|
43
|
-
icon?: import("
|
|
47
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
48
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
49
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
44
50
|
}, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
45
51
|
children?: string | string[];
|
|
46
|
-
icon?: import("
|
|
52
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
53
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
54
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
47
55
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
48
56
|
};
|
|
49
57
|
Header: import("react").ForwardRefExoticComponent<import("./types").ModalHeaderProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { Button } from '@ariakit/react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { forwardRef, useRef, useMemo
|
|
4
|
+
import { forwardRef, useRef, useMemo } from 'react';
|
|
5
5
|
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
6
6
|
import { LoadingIndicator } from '../../loading-indicator/loading-indicator.js';
|
|
7
7
|
import { getButtonOptions } from '../../utils/getButtonOptions.js';
|
|
@@ -10,8 +10,17 @@ import { BaseButtonContext } from './base-button-context.js';
|
|
|
10
10
|
import { BaseButtonIcon } from './base-button-icon.js';
|
|
11
11
|
import { BaseButtonLabel } from './base-button-label.js';
|
|
12
12
|
import styles from './base-button.module.js';
|
|
13
|
-
import { loadingIndicatorVariantMap } from './utils.js';
|
|
13
|
+
import { getButtonTypeFromChildren, loadingIndicatorVariantMap } from './utils.js';
|
|
14
14
|
|
|
15
|
+
const buttonTypeClassMap = {
|
|
16
|
+
'icon-only': styles.isIconButton,
|
|
17
|
+
'text-with-end-icon': styles.isTextWithIconEndButton,
|
|
18
|
+
'text-with-start-icon': styles.isTextWithIconStartButton,
|
|
19
|
+
'text-with-start-and-end-icon': styles.isTextWithStartAndEndIconButton
|
|
20
|
+
};
|
|
21
|
+
function getButtonClassName(variant, size, buttonType, loading, className) {
|
|
22
|
+
return clsx(styles.button, variant && styles[variant], size && styles[size], buttonTypeClassMap[buttonType], loading && styles.hide, className);
|
|
23
|
+
}
|
|
15
24
|
const BaseButton = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
16
25
|
const {
|
|
17
26
|
children,
|
|
@@ -27,18 +36,7 @@ const BaseButton = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
27
36
|
enableModernizedComponents
|
|
28
37
|
} = useBlueprintModernization();
|
|
29
38
|
const ref = useRef(null);
|
|
30
|
-
const buttonType = useMemo(() =>
|
|
31
|
-
const childArray = Children.toArray(children);
|
|
32
|
-
const hasIcon = childArray.some(child => /*#__PURE__*/isValidElement(child) && child.type === BaseButtonIcon);
|
|
33
|
-
const hasText = childArray.some(child => /*#__PURE__*/isValidElement(child) && child.type === BaseButtonLabel);
|
|
34
|
-
if (hasIcon && hasText) {
|
|
35
|
-
return 'text-with-icon';
|
|
36
|
-
}
|
|
37
|
-
if (hasIcon && !hasText) {
|
|
38
|
-
return 'icon-only';
|
|
39
|
-
}
|
|
40
|
-
return 'text-only';
|
|
41
|
-
}, [children]);
|
|
39
|
+
const buttonType = useMemo(() => getButtonTypeFromChildren(children, BaseButtonIcon, BaseButtonLabel), [children]);
|
|
42
40
|
const context = useMemo(() => ({
|
|
43
41
|
ariaLabel,
|
|
44
42
|
loading,
|
|
@@ -50,11 +48,7 @@ const BaseButton = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
50
48
|
...rest,
|
|
51
49
|
ref: useForkRef(ref, forwardedRef),
|
|
52
50
|
"aria-label": loading ? undefined : ariaLabel,
|
|
53
|
-
className:
|
|
54
|
-
[styles.isIconButton]: buttonType === 'icon-only',
|
|
55
|
-
[styles.isTextWithIconButton]: buttonType === 'text-with-icon',
|
|
56
|
-
[styles.hide]: loading
|
|
57
|
-
}, className),
|
|
51
|
+
className: getButtonClassName(variant, size, buttonType, loading, className),
|
|
58
52
|
"data-modern": enableModernizedComponents ? 'true' : 'false',
|
|
59
53
|
children: jsxs(BaseButtonContext.Provider, {
|
|
60
54
|
value: context,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"button":"bp_base_button_module_button--
|
|
2
|
+
var styles = {"button":"bp_base_button_module_button--558f5","primary":"bp_base_button_module_primary--558f5","secondary":"bp_base_button_module_secondary--558f5","tertiary":"bp_base_button_module_tertiary--558f5","outline":"bp_base_button_module_outline--558f5","small":"bp_base_button_module_small--558f5","isIconButton":"bp_base_button_module_isIconButton--558f5","isTextWithIconEndButton":"bp_base_button_module_isTextWithIconEndButton--558f5","isTextWithIconStartButton":"bp_base_button_module_isTextWithIconStartButton--558f5","isTextWithStartAndEndIconButton":"bp_base_button_module_isTextWithStartAndEndIconButton--558f5","large":"bp_base_button_module_large--558f5","icon":"bp_base_button_module_icon--558f5","hide":"bp_base_button_module_hide--558f5"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -22,7 +22,8 @@ export type BaseButtonIconProps = ComponentPropsWithRef<'span'> & {
|
|
|
22
22
|
icon: FunctionComponent<PropsWithChildren<SVGProps<SVGSVGElement>>>;
|
|
23
23
|
iconProps?: SVGProps<SVGSVGElement>;
|
|
24
24
|
};
|
|
25
|
+
export type BaseButtonButtonType = 'text-only' | 'icon-only' | 'text-with-end-icon' | 'text-with-start-icon' | 'text-with-start-and-end-icon';
|
|
25
26
|
export type BaseButtonContextType = Pick<BaseButtonProps, 'loading'> & Required<Pick<BaseButtonProps, 'variant' | 'size'>> & {
|
|
26
27
|
ariaLabel?: BaseButtonProps['aria-label'];
|
|
27
|
-
buttonType:
|
|
28
|
+
buttonType: BaseButtonButtonType;
|
|
28
29
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
import { type LoadingIndicatorProps } from '../../loading-indicator/loading-indicator';
|
|
2
|
-
import { type
|
|
3
|
+
import { type BaseButtonIcon } from './base-button-icon';
|
|
4
|
+
import { type BaseButtonLabel } from './base-button-label';
|
|
5
|
+
import { type BaseButtonButtonType, type BaseButtonProps } from './types';
|
|
6
|
+
export declare function getButtonTypeFromChildren(children: ReactNode, baseButtonIcon: typeof BaseButtonIcon, baseButtonLabel: typeof BaseButtonLabel): BaseButtonButtonType;
|
|
3
7
|
export declare const getIconSize: (buttonSize: NonNullable<BaseButtonProps["size"]>, isIconButton: boolean, enableModernizedComponents?: boolean) => {
|
|
4
8
|
readonly width: string;
|
|
5
9
|
readonly height: string;
|
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
import { IconIconOnLight, TextCtaLink, IconIconOnDark, bpSize050, bpSize040, Size5, Size4, Size3 } from '@box/blueprint-web-assets/tokens/tokens';
|
|
2
|
+
import { Children, isValidElement } from 'react';
|
|
2
3
|
|
|
4
|
+
function getButtonTypeFromChildren(children, baseButtonIcon, baseButtonLabel) {
|
|
5
|
+
const childArray = Children.toArray(children);
|
|
6
|
+
const labelIndex = childArray.findIndex(child => /*#__PURE__*/isValidElement(child) && child.type === baseButtonLabel);
|
|
7
|
+
const hasText = labelIndex >= 0;
|
|
8
|
+
const iconIndices = childArray.map((child, index) => /*#__PURE__*/isValidElement(child) && child.type === baseButtonIcon ? index : -1).filter(i => i >= 0);
|
|
9
|
+
const positions = iconIndices.map(i => i < labelIndex ? 'start' : 'end');
|
|
10
|
+
const hasStartIcon = positions.includes('start');
|
|
11
|
+
const hasEndIcon = positions.includes('end');
|
|
12
|
+
if (!hasText && iconIndices.length >= 1) {
|
|
13
|
+
return 'icon-only';
|
|
14
|
+
}
|
|
15
|
+
if (hasText && iconIndices.length === 1) {
|
|
16
|
+
return positions[0] === 'start' ? 'text-with-start-icon' : 'text-with-end-icon';
|
|
17
|
+
}
|
|
18
|
+
if (hasText && hasStartIcon && hasEndIcon) {
|
|
19
|
+
return 'text-with-start-and-end-icon';
|
|
20
|
+
}
|
|
21
|
+
return 'text-only';
|
|
22
|
+
}
|
|
3
23
|
const getIconSize = (buttonSize, isIconButton, enableModernizedComponents = false) => {
|
|
4
24
|
const isLarge = buttonSize === 'large';
|
|
5
25
|
let size;
|
|
@@ -30,4 +50,4 @@ const buttonVariantToIconColorMap = {
|
|
|
30
50
|
outline: IconIconOnLight
|
|
31
51
|
};
|
|
32
52
|
|
|
33
|
-
export { buttonVariantToIconColorMap, getIconSize, loadingIndicatorVariantMap };
|
|
53
|
+
export { buttonVariantToIconColorMap, getButtonTypeFromChildren, getIconSize, loadingIndicatorVariantMap };
|
|
@@ -6,16 +6,24 @@ import { type SidePanelFooterProps } from './types';
|
|
|
6
6
|
export declare const SidePanelFooter: import("react").ForwardRefExoticComponent<Omit<SidePanelFooterProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
7
7
|
PrimaryButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
8
8
|
children?: string | string[];
|
|
9
|
-
icon?: import("
|
|
9
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
10
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
11
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
10
12
|
}, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
11
13
|
children?: string | string[];
|
|
12
|
-
icon?: import("
|
|
14
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
15
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
16
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
13
17
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
18
|
SecondaryButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
15
19
|
children?: string | string[];
|
|
16
|
-
icon?: import("
|
|
20
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
21
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
22
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
17
23
|
}, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
18
24
|
children?: string | string[];
|
|
19
|
-
icon?: import("
|
|
25
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
26
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
27
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
20
28
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
21
29
|
};
|
|
@@ -7,17 +7,25 @@ export declare const SidePanel: ((props: SidePanelProps) => import("react/jsx-ru
|
|
|
7
7
|
Footer: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelFooterProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
8
8
|
PrimaryButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
9
9
|
children?: string | string[];
|
|
10
|
-
icon?: import("
|
|
10
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
11
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
12
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
11
13
|
}, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
12
14
|
children?: string | string[];
|
|
13
|
-
icon?: import("
|
|
15
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
16
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
17
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
14
18
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
19
|
SecondaryButton: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
16
20
|
children?: string | string[];
|
|
17
|
-
icon?: import("
|
|
21
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
22
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
23
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
18
24
|
}, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
|
|
19
25
|
children?: string | string[];
|
|
20
|
-
icon?: import("
|
|
26
|
+
icon?: import("../button/types").SvgIconComponent;
|
|
27
|
+
endIcon?: import("../button/types").SvgIconComponent;
|
|
28
|
+
startIcon?: import("../button/types").SvgIconComponent;
|
|
21
29
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
22
30
|
};
|
|
23
31
|
Header: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelHeaderProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"smallList":"bp_base_grid_list_item_module_smallList--
|
|
2
|
+
var styles = {"smallList":"bp_base_grid_list_item_module_smallList--537f7","smallListItem":"bp_base_grid_list_item_module_smallListItem--537f7","header":"bp_base_grid_list_item_module_header--537f7","subtitle":"bp_base_grid_list_item_module_subtitle--537f7","loading":"bp_base_grid_list_item_module_loading--537f7","thumbnail":"bp_base_grid_list_item_module_thumbnail--537f7","thumbnailContent":"bp_base_grid_list_item_module_thumbnailContent--537f7","actions":"bp_base_grid_list_item_module_actions--537f7","selection":"bp_base_grid_list_item_module_selection--537f7","inner":"bp_base_grid_list_item_module_inner--537f7","actionsCheckboxWrapper":"bp_base_grid_list_item_module_actionsCheckboxWrapper--537f7","largeList":"bp_base_grid_list_item_module_largeList--537f7","largeListItem":"bp_base_grid_list_item_module_largeListItem--537f7","fade":"bp_base_grid_list_item_module_fade--537f7","description":"bp_base_grid_list_item_module_description--537f7","snippet":"bp_base_grid_list_item_module_snippet--537f7","snippetContent":"bp_base_grid_list_item_module_snippetContent--537f7","gridList":"bp_base_grid_list_item_module_gridList--537f7","gridListItem":"bp_base_grid_list_item_module_gridListItem--537f7","statusPin":"bp_base_grid_list_item_module_statusPin--537f7","isItemInteracted":"bp_base_grid_list_item_module_isItemInteracted--537f7","tooltipContent":"bp_base_grid_list_item_module_tooltipContent--537f7","tooltipArrow":"bp_base_grid_list_item_module_tooltipArrow--537f7","gridListV2":"bp_base_grid_list_item_module_gridListV2--537f7","gridListV2Item":"bp_base_grid_list_item_module_gridListV2Item--537f7","noActions":"bp_base_grid_list_item_module_noActions--537f7","thumbnailBadges":"bp_base_grid_list_item_module_thumbnailBadges--537f7","statusBadge":"bp_base_grid_list_item_module_statusBadge--537f7","fileTypePill":"bp_base_grid_list_item_module_fileTypePill--537f7","textCentered":"bp_base_grid_list_item_module_textCentered--537f7","innerCentered":"bp_base_grid_list_item_module_innerCentered--537f7","gridListV2Small":"bp_base_grid_list_item_module_gridListV2Small--537f7","gridV2ClickShield":"bp_base_grid_list_item_module_gridV2ClickShield--537f7","listV2ClickShield":"bp_base_grid_list_item_module_listV2ClickShield--537f7","listV2":"bp_base_grid_list_item_module_listV2--537f7","listV2Item":"bp_base_grid_list_item_module_listV2Item--537f7","listV2Divider":"bp_base_grid_list_item_module_listV2Divider--537f7","content":"bp_base_grid_list_item_module_content--537f7","staticList":"bp_base_grid_list_item_module_staticList--537f7","staticListItem":"bp_base_grid_list_item_module_staticListItem--537f7"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.130.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@ariakit/react": "0.4.15",
|
|
49
49
|
"@ariakit/react-core": "0.4.15",
|
|
50
|
-
"@box/blueprint-web-assets": "^4.97.
|
|
50
|
+
"@box/blueprint-web-assets": "^4.97.3",
|
|
51
51
|
"@internationalized/date": "^3.7.0",
|
|
52
52
|
"@radix-ui/react-accordion": "1.1.2",
|
|
53
53
|
"@radix-ui/react-checkbox": "1.0.4",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"type-fest": "^3.2.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@box/storybook-utils": "^0.16.
|
|
80
|
+
"@box/storybook-utils": "^0.16.24",
|
|
81
81
|
"@figma/code-connect": "1.3.12",
|
|
82
82
|
"@types/react": "^18.0.0",
|
|
83
83
|
"@types/react-dom": "^18.0.0",
|