@box/blueprint-web 6.6.1 → 6.6.3
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-esm/branding-styles/utils/theme.js +0 -1
- package/lib-esm/content-card/content-card-image.js +0 -1
- package/lib-esm/index.css +41 -10
- package/lib-esm/input-chip/input-chip.js +1 -1
- package/lib-esm/modal/modal-footer.js +15 -6
- package/lib-esm/modal/modal-header.js +35 -25
- package/lib-esm/modal/modal-scrollable-container.d.ts +3 -1
- package/lib-esm/modal/modal-scrollable-container.js +21 -7
- package/lib-esm/modal/modal.d.ts +3 -1
- package/lib-esm/modal/modal.js +4 -1
- package/lib-esm/modal/modal.module.js +1 -1
- package/lib-esm/primitives/chips/filter-chip/filter-chip.d.ts +6 -6
- package/lib-esm/primitives/chips/filter-chip/filter-chip.js +15 -12
- package/lib-esm/primitives/chips/filter-chip/index.d.ts +5 -3
- package/lib-esm/primitives/chips/types.d.ts +4 -2
- package/lib-esm/side-panel/side-panel-footer.js +1 -1
- package/lib-esm/side-panel/side-panel-header.js +1 -1
- package/lib-esm/side-panel/side-panel-scrollable-container.js +1 -1
- package/lib-esm/side-panel/side-panel.js +1 -1
- package/package.json +2 -2
- /package/lib-esm/{side-panel → utils}/scroll-context.d.ts +0 -0
- /package/lib-esm/{side-panel → utils}/scroll-context.js +0 -0
package/lib-esm/index.css
CHANGED
|
@@ -1268,7 +1268,6 @@
|
|
|
1268
1268
|
column-gap:var(--space-3);
|
|
1269
1269
|
cursor:default;
|
|
1270
1270
|
display:grid;
|
|
1271
|
-
gap:var(--space-3);
|
|
1272
1271
|
grid-template-areas:"thumbnail head" "thumbnail subtitle";
|
|
1273
1272
|
grid-template-columns:var(--thumbnail-size) auto;
|
|
1274
1273
|
outline:none;
|
|
@@ -3526,6 +3525,42 @@ table.inline-table-module_inlineTable__Se38I tr:not(:last-child) td{
|
|
|
3526
3525
|
overflow-y:auto;
|
|
3527
3526
|
}
|
|
3528
3527
|
|
|
3528
|
+
.modal-module_headerDividerLine__Lw49q{
|
|
3529
|
+
position:relative;
|
|
3530
|
+
}
|
|
3531
|
+
.modal-module_headerDividerLine__Lw49q::after{
|
|
3532
|
+
border-bottom:var(--border-1) solid var(--border-divider-border);
|
|
3533
|
+
bottom:0;
|
|
3534
|
+
content:"";
|
|
3535
|
+
left:var(--space-4);
|
|
3536
|
+
position:absolute;
|
|
3537
|
+
right:var(--space-4);
|
|
3538
|
+
}
|
|
3539
|
+
@media (min-width: 460px){
|
|
3540
|
+
.modal-module_headerDividerLine__Lw49q::after{
|
|
3541
|
+
left:var(--space-6);
|
|
3542
|
+
right:var(--space-6);
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
.modal-module_footerDividerLine__HIXCN{
|
|
3547
|
+
position:relative;
|
|
3548
|
+
}
|
|
3549
|
+
.modal-module_footerDividerLine__HIXCN::before{
|
|
3550
|
+
border-bottom:var(--border-1) solid var(--border-divider-border);
|
|
3551
|
+
content:"";
|
|
3552
|
+
left:var(--space-4);
|
|
3553
|
+
position:absolute;
|
|
3554
|
+
right:var(--space-4);
|
|
3555
|
+
top:0;
|
|
3556
|
+
}
|
|
3557
|
+
@media (min-width: 460px){
|
|
3558
|
+
.modal-module_footerDividerLine__HIXCN::before{
|
|
3559
|
+
left:var(--space-6);
|
|
3560
|
+
right:var(--space-6);
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3529
3564
|
.modal-module_footer__bCIwP{
|
|
3530
3565
|
display:flex;
|
|
3531
3566
|
justify-content:flex-end;
|
|
@@ -3913,8 +3948,7 @@ table.inline-table-module_inlineTable__Se38I tr:not(:last-child) td{
|
|
|
3913
3948
|
}
|
|
3914
3949
|
|
|
3915
3950
|
.popover-module_popoverMainContent__eyU1C{
|
|
3916
|
-
|
|
3917
|
-
mask-image:linear-gradient(to top, #0000, var(--gray-black)), linear-gradient(to left, #0000 var(--space-4), var(--gray-black) var(--space-4));
|
|
3951
|
+
mask-image:linear-gradient(to top, #0000, var(--gray-black)), linear-gradient(to left, #0000 var(--space-4), var(--gray-black) var(--space-4));
|
|
3918
3952
|
overflow-y:auto;
|
|
3919
3953
|
}
|
|
3920
3954
|
|
|
@@ -3928,16 +3962,13 @@ table.inline-table-module_inlineTable__Se38I tr:not(:last-child) td{
|
|
|
3928
3962
|
}
|
|
3929
3963
|
.popover-module_popoverContentContainer__cbRzP .popover-module_popoverCard__CuHZM .popover-module_popoverMainContent__eyU1C{
|
|
3930
3964
|
margin-inline-end:calc(var(--space-4)*-1);
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
-webkit-mask-size:100% 20000px;
|
|
3934
|
-
mask-size:100% 20000px;
|
|
3965
|
+
mask-position:left bottom;
|
|
3966
|
+
mask-size:100% 20000px;
|
|
3935
3967
|
padding-right:var(--space-4);
|
|
3936
|
-
transition:mask-position var(--animation-duration-3)
|
|
3968
|
+
transition:mask-position var(--animation-duration-3);
|
|
3937
3969
|
}
|
|
3938
3970
|
.popover-module_popoverContentContainer__cbRzP .popover-module_popoverCard__CuHZM .popover-module_popoverMainContent__eyU1C:hover{
|
|
3939
|
-
|
|
3940
|
-
mask-position:left top;
|
|
3971
|
+
mask-position:left top;
|
|
3941
3972
|
}
|
|
3942
3973
|
.popover-module_popoverContentContainer__cbRzP .popover-module_popoverCard__CuHZM .popover-module_popoverMainContent__eyU1C .popover-module_popoverMainContentOuterContainer__tktDv{
|
|
3943
3974
|
max-height:inherit;
|
|
@@ -29,7 +29,7 @@ const InputChip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
29
29
|
buttonProps.onKeyDown?.(event);
|
|
30
30
|
};
|
|
31
31
|
const hasError = variant === 'error';
|
|
32
|
-
return
|
|
32
|
+
return /* eslint-disable-next-line jsx-a11y/role-supports-aria-props */(
|
|
33
33
|
jsxs("button", {
|
|
34
34
|
...buttonProps,
|
|
35
35
|
ref: ref,
|
|
@@ -2,18 +2,27 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { clsx } from 'clsx';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Button } from '../basics/button/button.js';
|
|
5
|
+
import { useScrollContext } from '../utils/scroll-context.js';
|
|
5
6
|
import styles from './modal.module.js';
|
|
6
7
|
|
|
7
8
|
const ModalFooterComponent = /*#__PURE__*/forwardRef(({
|
|
8
9
|
children,
|
|
9
10
|
className,
|
|
10
11
|
...rest
|
|
11
|
-
}, forwardedRef) =>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
}, forwardedRef) => {
|
|
13
|
+
const {
|
|
14
|
+
isScrolledUnderFooter
|
|
15
|
+
} = useScrollContext();
|
|
16
|
+
const footerClasses = clsx(styles.footer, className, {
|
|
17
|
+
[styles.footerDividerLine]: isScrolledUnderFooter
|
|
18
|
+
});
|
|
19
|
+
return jsx("div", {
|
|
20
|
+
...rest,
|
|
21
|
+
ref: forwardedRef,
|
|
22
|
+
className: footerClasses,
|
|
23
|
+
children: children
|
|
24
|
+
});
|
|
25
|
+
});
|
|
17
26
|
const PrimaryButton = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
18
27
|
const {
|
|
19
28
|
children,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef, cloneElement } from 'react';
|
|
3
|
+
import { clsx } from 'clsx';
|
|
4
|
+
import { useScrollContext } from '../utils/scroll-context.js';
|
|
3
5
|
import { Text } from '../text/text.js';
|
|
4
6
|
import { ModalTitle } from './modal-title.js';
|
|
5
7
|
import styles from './modal.module.js';
|
|
@@ -13,30 +15,38 @@ const ModalHeader = /*#__PURE__*/forwardRef(({
|
|
|
13
15
|
subtitle,
|
|
14
16
|
backButton,
|
|
15
17
|
...rest
|
|
16
|
-
}, forwardedRef) =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
18
|
+
}, forwardedRef) => {
|
|
19
|
+
const {
|
|
20
|
+
isScrolledUnderHeader
|
|
21
|
+
} = useScrollContext();
|
|
22
|
+
const headerClasses = clsx({
|
|
23
|
+
[styles.headerDividerLine]: isScrolledUnderHeader
|
|
24
|
+
}, styles.modalHeader);
|
|
25
|
+
return jsxs("div", {
|
|
26
|
+
className: headerClasses,
|
|
27
|
+
children: [backButton ? /*#__PURE__*/cloneElement(backButton, {
|
|
28
|
+
className: styles.backButton
|
|
29
|
+
}) : null, jsx(ModalTitle, {
|
|
30
|
+
...rest,
|
|
31
|
+
ref: forwardedRef,
|
|
32
|
+
asChild: true,
|
|
33
|
+
children: jsxs("div", {
|
|
34
|
+
className: styles.modalTitle,
|
|
35
|
+
children: [jsx(Text, {
|
|
36
|
+
as: "h2",
|
|
37
|
+
className: className,
|
|
38
|
+
color: "textOnLightDefault",
|
|
39
|
+
variant: "titleLarge",
|
|
40
|
+
children: children
|
|
41
|
+
}), subtitle && jsx(Text, {
|
|
42
|
+
as: "h3",
|
|
43
|
+
color: "textOnLightSecondary",
|
|
44
|
+
variant: "subtitle",
|
|
45
|
+
children: subtitle
|
|
46
|
+
})]
|
|
47
|
+
})
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
50
|
+
});
|
|
41
51
|
|
|
42
52
|
export { ModalHeader };
|
|
@@ -4,4 +4,6 @@ import { type ModalScrollableContainerProps } from './types';
|
|
|
4
4
|
* Wrapper for the contents of the modal.
|
|
5
5
|
* This element is scrollable when the size of the content would make the modal not fit on the screen.
|
|
6
6
|
*/
|
|
7
|
-
export declare const ModalScrollableContainer: import("react").ForwardRefExoticComponent<ModalScrollableContainerProps &
|
|
7
|
+
export declare const ModalScrollableContainer: import("react").ForwardRefExoticComponent<ModalScrollableContainerProps & {
|
|
8
|
+
'data-testid'?: string | undefined;
|
|
9
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { clsx } from 'clsx';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
3
|
+
import { forwardRef, useRef } from 'react';
|
|
4
|
+
import { useScrollContext } from '../utils/scroll-context.js';
|
|
5
|
+
import { useForkRef } from '../utils/useForkRef.js';
|
|
4
6
|
import styles from './modal.module.js';
|
|
5
7
|
|
|
6
8
|
/**
|
|
@@ -10,12 +12,24 @@ import styles from './modal.module.js';
|
|
|
10
12
|
const ModalScrollableContainer = /*#__PURE__*/forwardRef(({
|
|
11
13
|
children,
|
|
12
14
|
className,
|
|
15
|
+
'data-testid': dataTestId = 'modal-container',
|
|
13
16
|
...rest
|
|
14
|
-
}, forwardedRef) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
}, forwardedRef) => {
|
|
18
|
+
const {
|
|
19
|
+
onScroll
|
|
20
|
+
} = useScrollContext();
|
|
21
|
+
const scrollableContainerRef = useRef(null);
|
|
22
|
+
return jsx("div", {
|
|
23
|
+
...rest,
|
|
24
|
+
ref: useForkRef(scrollableContainerRef, forwardedRef),
|
|
25
|
+
className: clsx(styles.scrollableContainer, className),
|
|
26
|
+
"data-testid": dataTestId,
|
|
27
|
+
onScroll: event => {
|
|
28
|
+
onScroll?.(event);
|
|
29
|
+
rest.onScroll?.(event);
|
|
30
|
+
},
|
|
31
|
+
children: children
|
|
32
|
+
});
|
|
33
|
+
});
|
|
20
34
|
|
|
21
35
|
export { ModalScrollableContainer };
|
package/lib-esm/modal/modal.d.ts
CHANGED
|
@@ -86,7 +86,9 @@ export declare const Modal: (({ children, modal, ...props }: ModalProps) => JSX.
|
|
|
86
86
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
87
87
|
};
|
|
88
88
|
Header: import("react").ForwardRefExoticComponent<import("./types").ModalHeaderProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
89
|
-
ScrollableContainer: import("react").ForwardRefExoticComponent<import("./types").ModalScrollableContainerProps &
|
|
89
|
+
ScrollableContainer: import("react").ForwardRefExoticComponent<import("./types").ModalScrollableContainerProps & {
|
|
90
|
+
'data-testid'?: string | undefined;
|
|
91
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
90
92
|
Trigger: import("react").ForwardRefExoticComponent<import("./types").ModalTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
91
93
|
Title: import("react").ForwardRefExoticComponent<import("./types").ModalTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
92
94
|
};
|
package/lib-esm/modal/modal.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Root as Root$1 } from '@radix-ui/react-dialog';
|
|
3
|
+
import { ScrollProvider } from '../utils/scroll-context.js';
|
|
3
4
|
import { ModalBody } from './modal-body.js';
|
|
4
5
|
import { ModalClose } from './modal-close.js';
|
|
5
6
|
import { ModalContent } from './modal-content.js';
|
|
@@ -16,7 +17,9 @@ const Root = ({
|
|
|
16
17
|
}) => jsx(Root$1, {
|
|
17
18
|
...props,
|
|
18
19
|
modal: modal,
|
|
19
|
-
children:
|
|
20
|
+
children: jsx(ScrollProvider, {
|
|
21
|
+
children: children
|
|
22
|
+
})
|
|
20
23
|
});
|
|
21
24
|
/**
|
|
22
25
|
* Modal can be used for a number of ways to support focused experiences
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"overlay":"modal-module_overlay__OIKwn","content":"modal-module_content__Z8W3U","popup_bounce_in":"modal-module_popup_bounce_in__Q7Slx","close":"modal-module_close__4qYVH","onColor":"modal-module_onColor__qNumt","backButton":"modal-module_backButton__ImG1B","modalHeader":"modal-module_modalHeader__bGhDg","modalTitle":"modal-module_modalTitle__Q-aFr","body":"modal-module_body__HKxP9","scrollableContainer":"modal-module_scrollableContainer__N3upQ","footer":"modal-module_footer__bCIwP","footerButton":"modal-module_footerButton__QlYl3"};
|
|
2
|
+
var styles = {"overlay":"modal-module_overlay__OIKwn","content":"modal-module_content__Z8W3U","popup_bounce_in":"modal-module_popup_bounce_in__Q7Slx","close":"modal-module_close__4qYVH","onColor":"modal-module_onColor__qNumt","backButton":"modal-module_backButton__ImG1B","modalHeader":"modal-module_modalHeader__bGhDg","modalTitle":"modal-module_modalTitle__Q-aFr","body":"modal-module_body__HKxP9","scrollableContainer":"modal-module_scrollableContainer__N3upQ","headerDividerLine":"modal-module_headerDividerLine__Lw49q","footerDividerLine":"modal-module_footerDividerLine__HIXCN","footer":"modal-module_footer__bCIwP","footerButton":"modal-module_footerButton__QlYl3"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -6,13 +6,13 @@ export type FilterChipProps = ChipProps;
|
|
|
6
6
|
* Based on [Radix ToggleGroup.Item](https://www.radix-ui.com/docs/primitives/components/toggle-group#item)
|
|
7
7
|
*/
|
|
8
8
|
export declare const FilterChipChip: import("react").ForwardRefExoticComponent<import("@radix-ui/react-toggle-group").ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
|
-
export type FilterChipGroupProps =
|
|
10
|
-
type: 'single' | 'multiple';
|
|
11
|
-
};
|
|
9
|
+
export type FilterChipGroupProps = ChipsGroupProps;
|
|
12
10
|
/**
|
|
13
11
|
* Container for FilterChips, this component handles keyboard navigation and chips selection state.
|
|
14
12
|
* Based on [Radix ToggleGroup](https://www.radix-ui.com/docs/primitives/components/toggle-group)
|
|
15
13
|
*/
|
|
16
|
-
export declare const FilterChipGroup: import("react").ForwardRefExoticComponent<Omit<
|
|
17
|
-
|
|
18
|
-
}, "ref"> & import("react").RefAttributes<HTMLDivElement
|
|
14
|
+
export declare const FilterChipGroup: import("react").ForwardRefExoticComponent<(Omit<import("../types").ChipsGroupSingleProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
15
|
+
name: string;
|
|
16
|
+
}, "ref"> | Omit<import("../types").ChipsGroupMultipleProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
17
|
+
name: string;
|
|
18
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -36,12 +36,10 @@ const FilterChipGroup = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
36
36
|
name,
|
|
37
37
|
children,
|
|
38
38
|
className,
|
|
39
|
+
onValueChange,
|
|
40
|
+
type,
|
|
39
41
|
...rest
|
|
40
42
|
} = props;
|
|
41
|
-
const groupPropsRest = props.type === 'single' ? rest : rest;
|
|
42
|
-
const {
|
|
43
|
-
onValueChange
|
|
44
|
-
} = groupPropsRest;
|
|
45
43
|
const [chipGroupValue, setChipGroupValue] = useState([]);
|
|
46
44
|
const comboChipsValueReducer = useCallback((groupValueState, groupChangeAction) => {
|
|
47
45
|
const newGroupValue = new Set(groupValueState);
|
|
@@ -49,33 +47,38 @@ const FilterChipGroup = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
49
47
|
add: () => newGroupValue.add(groupChangeAction.value),
|
|
50
48
|
delete: () => newGroupValue.delete(groupChangeAction.value)
|
|
51
49
|
})(groupChangeAction.action)?.();
|
|
52
|
-
|
|
50
|
+
if (type === 'multiple') {
|
|
51
|
+
onValueChange?.([...chipGroupValue, ...Array.from(newGroupValue)]);
|
|
52
|
+
}
|
|
53
53
|
return newGroupValue;
|
|
54
|
-
}, [chipGroupValue, onValueChange]);
|
|
54
|
+
}, [chipGroupValue, type, onValueChange]);
|
|
55
55
|
const [comboChipsValue, dispatchComboChipsValueChange] = useReducer(comboChipsValueReducer, new Set());
|
|
56
56
|
const handleGroupValueChange = useCallback(newValue => {
|
|
57
|
-
if (
|
|
57
|
+
if (type === 'single' && typeof newValue === 'string') {
|
|
58
58
|
setChipGroupValue(newValue);
|
|
59
59
|
onValueChange?.(newValue);
|
|
60
|
-
} else {
|
|
60
|
+
} else if (type === 'multiple' && typeof newValue !== 'string') {
|
|
61
61
|
const groupValueWithoutOptionValues = newValue.filter(value => !comboChipsValue.has(value));
|
|
62
62
|
setChipGroupValue(groupValueWithoutOptionValues);
|
|
63
63
|
onValueChange?.([...groupValueWithoutOptionValues, ...comboChipsValue]);
|
|
64
64
|
}
|
|
65
|
-
}, [comboChipsValue,
|
|
65
|
+
}, [comboChipsValue, type, onValueChange]);
|
|
66
66
|
const providerValue = useMemo(() => ({
|
|
67
67
|
comboChipsValue,
|
|
68
68
|
dispatchComboChipsValueChange,
|
|
69
|
-
type
|
|
70
|
-
}), [comboChipsValue, dispatchComboChipsValueChange,
|
|
69
|
+
type
|
|
70
|
+
}), [comboChipsValue, dispatchComboChipsValueChange, type]);
|
|
71
71
|
return jsx(FilterChipGroupContext.Provider, {
|
|
72
72
|
value: providerValue,
|
|
73
73
|
children: jsx(ChipsGroup, {
|
|
74
|
-
...
|
|
74
|
+
...rest,
|
|
75
75
|
ref: forwardedRef,
|
|
76
76
|
className: className,
|
|
77
77
|
name: name,
|
|
78
78
|
onValueChange: handleGroupValueChange,
|
|
79
|
+
// FIXME: Get rid of `any` type. It is correctly inferred as 'single' | 'multiple', and should work, but does not.
|
|
80
|
+
// eslint-disable-next-line
|
|
81
|
+
type: type,
|
|
79
82
|
children: children
|
|
80
83
|
})
|
|
81
84
|
});
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
export declare const FilterChip: {
|
|
3
3
|
Chip: import("react").ForwardRefExoticComponent<import("@radix-ui/react-toggle-group").ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
ChipButton: import("react").ForwardRefExoticComponent<import("@radix-ui/react-toggle-group").ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
Group: import("react").ForwardRefExoticComponent<Omit<
|
|
6
|
-
|
|
7
|
-
}, "ref"> & import("react").RefAttributes<HTMLDivElement
|
|
5
|
+
Group: import("react").ForwardRefExoticComponent<(Omit<import("../types").ChipsGroupSingleProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
6
|
+
name: string;
|
|
7
|
+
}, "ref"> | Omit<import("../types").ChipsGroupMultipleProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
8
|
+
name: string;
|
|
9
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
10
|
Label: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children"> & {
|
|
9
11
|
children: string;
|
|
10
12
|
}, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -6,10 +6,11 @@ export interface ChipsGroupSingleProps extends ToggleGroup.ToggleGroupImplSingle
|
|
|
6
6
|
export interface ChipsGroupMultipleProps extends ToggleGroup.ToggleGroupImplMultipleProps {
|
|
7
7
|
type: 'multiple';
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
type SharedChipsGroupProps = React.RefAttributes<HTMLDivElement> & {
|
|
10
10
|
/** The name of the group. Submitted with its owning form as part of a name/value pair. */
|
|
11
11
|
name: string;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
|
+
export type ChipsGroupProps = (ChipsGroupSingleProps & SharedChipsGroupProps) | (ChipsGroupMultipleProps & SharedChipsGroupProps);
|
|
13
14
|
export type ChipProps = ToggleGroup.ToggleGroupItemProps;
|
|
14
15
|
export interface ChipIconProps {
|
|
15
16
|
className?: string;
|
|
@@ -21,3 +22,4 @@ export type ChipStatusProps = Omit<React.ComponentProps<'div'>, 'children'> & {
|
|
|
21
22
|
export type ChipLabelProps = Omit<React.ComponentProps<'span'>, 'children'> & {
|
|
22
23
|
children: string;
|
|
23
24
|
};
|
|
25
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { clsx } from 'clsx';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Button } from '../basics/button/button.js';
|
|
5
|
-
import { useScrollContext } from '
|
|
5
|
+
import { useScrollContext } from '../utils/scroll-context.js';
|
|
6
6
|
import styles from './side-panel.module.js';
|
|
7
7
|
|
|
8
8
|
const SidePanelFooterComponent = /*#__PURE__*/forwardRef(({
|
|
@@ -3,8 +3,8 @@ import * as RadixDialog from '@radix-ui/react-dialog';
|
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { Text } from '../text/text.js';
|
|
6
|
+
import { useScrollContext } from '../utils/scroll-context.js';
|
|
6
7
|
import { useMobile } from '../utils/useMobile.js';
|
|
7
|
-
import { useScrollContext } from './scroll-context.js';
|
|
8
8
|
import styles from './side-panel.module.js';
|
|
9
9
|
import { useVariant } from './variant-context.js';
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { clsx } from 'clsx';
|
|
3
3
|
import { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';
|
|
4
|
-
import { useScrollContext } from '
|
|
4
|
+
import { useScrollContext } from '../utils/scroll-context.js';
|
|
5
5
|
import styles from './side-panel.module.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Root as Root$1 } from '@radix-ui/react-dialog';
|
|
3
|
-
import { ScrollProvider } from '
|
|
3
|
+
import { ScrollProvider } from '../utils/scroll-context.js';
|
|
4
4
|
import { SidePanelClose } from './side-panel-close.js';
|
|
5
5
|
import { SidePanelContent, SidePanelPersistentContent } from './side-panel-content.js';
|
|
6
6
|
import { SidePanelFooter } from './side-panel-footer.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.3",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@box/storybook-utils": "^0.0.3"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "fbe22f91b8ab3b2d24eac63921d216ad6e6b9d22",
|
|
60
60
|
"module": "lib-esm/index.js",
|
|
61
61
|
"main": "lib-esm/index.js",
|
|
62
62
|
"exports": {
|
|
File without changes
|
|
File without changes
|