Skip to content

Commit e834719

Browse files
committed
fix(blueprint): Bump blueprint
1 parent 435c75a commit e834719

File tree

6 files changed

+1180
-1075
lines changed

6 files changed

+1180
-1075
lines changed

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,18 @@
124124
"@babel/preset-typescript": "^7.24.7",
125125
"@babel/template": "^7.24.7",
126126
"@babel/types": "^7.24.7",
127-
"@box/blueprint-web": "^12.7.1",
128-
"@box/blueprint-web-assets": "^4.60.0",
127+
"@box/blueprint-web": "12.43.0",
128+
"@box/blueprint-web-assets": "4.61.5",
129129
"@box/box-ai-agent-selector": "^0.48.5",
130130
"@box/box-ai-content-answers": "^0.124.1",
131131
"@box/cldr-data": "^34.2.0",
132132
"@box/combobox-with-api": "^0.34.9",
133133
"@box/frontend": "^11.0.1",
134-
"@box/item-icon": "^0.9.83",
134+
"@box/item-icon": "^0.17.0",
135135
"@box/languages": "^1.0.0",
136136
"@box/metadata-editor": "^0.122.0",
137137
"@box/react-virtualized": "^9.22.3-rc-box.10",
138+
"@box/types": "^0.2.1",
138139
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
139140
"@chromatic-com/storybook": "^4.0.1",
140141
"@commitlint/cli": "^19.8.0",
@@ -287,15 +288,16 @@
287288
"webpack-dev-server": "^5.2.1"
288289
},
289290
"peerDependencies": {
290-
"@box/blueprint-web": "^12.7.1",
291-
"@box/blueprint-web-assets": "^4.60.0",
291+
"@box/blueprint-web": "12.43.0",
292+
"@box/blueprint-web-assets": "4.61.5",
292293
"@box/box-ai-agent-selector": "^0.48.5",
293294
"@box/box-ai-content-answers": "^0.124.1",
294295
"@box/cldr-data": ">=34.2.0",
295296
"@box/combobox-with-api": "^0.34.9",
296-
"@box/item-icon": "^0.9.83",
297+
"@box/item-icon": "^0.17.0",
297298
"@box/metadata-editor": "^0.122.0",
298299
"@box/react-virtualized": "^9.22.3-rc-box.10",
300+
"@box/types": "^0.2.1",
299301
"@hapi/address": "^2.1.4",
300302
"axios": "^0.30.0",
301303
"classnames": "^2.2.5",

scripts/jest/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ module.exports = {
2626
testMatch: ['**/__tests__/**/*.test.+(js|jsx|ts|tsx)'],
2727
testPathIgnorePatterns: ['stories.test.js$', 'stories.test.tsx$', 'stories.test.d.ts'],
2828
transformIgnorePatterns: [
29-
'node_modules/(?!(@box/react-virtualized/dist/es|@box/cldr-data|@box/blueprint-web|@box/blueprint-web-assets|@box/metadata-editor|@box/box-ai-content-answers|@box/box-ai-agent-selector|@box/item-icon|@box/combobox-with-api|@box/tree)/)',
29+
'node_modules/(?!(@box/react-virtualized/dist/es|@box/cldr-data|@box/blueprint-web|@box/blueprint-web-assets|@box/metadata-editor|@box/box-ai-content-answers|@box/box-ai-agent-selector|@box/item-icon|@box/combobox-with-api|@box/tree|@box/types)/)',
3030
],
3131
};

src/components/notification/Notification.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ import { defineMessages, injectIntl } from 'react-intl';
44
import classNames from 'classnames';
55

66
// $FlowFixMe
7-
import { Information, Check, AlertTriangle, AlertBadge, XMark } from '@box/blueprint-web-assets/icons/Medium';
7+
import {
8+
InformationCircle,
9+
CheckmarkCircle,
10+
AlertTriangle,
11+
XMark,
12+
XMarkCircle,
13+
} from '@box/blueprint-web-assets/icons/Medium';
814

915
import InfoBadge16 from '../../icon/line/InfoBadge16';
1016
import CircleCheck16 from '../../icon/line/CircleCheck16';
@@ -34,9 +40,9 @@ const DURATION_TIMES = {
3440
};
3541

3642
const ICON_RENDERER: { [string]: Function } = {
37-
[TYPE_DEFAULT]: useV2Icons => (useV2Icons ? <Information /> : <InfoBadge16 />),
38-
[TYPE_ERROR]: useV2Icons => (useV2Icons ? <AlertBadge /> : <XBadge16 />),
39-
[TYPE_INFO]: useV2Icons => (useV2Icons ? <Check /> : <CircleCheck16 />),
43+
[TYPE_DEFAULT]: useV2Icons => (useV2Icons ? <InformationCircle /> : <InfoBadge16 />),
44+
[TYPE_ERROR]: useV2Icons => (useV2Icons ? <XMarkCircle /> : <XBadge16 />),
45+
[TYPE_INFO]: useV2Icons => (useV2Icons ? <CheckmarkCircle /> : <CircleCheck16 />),
4046
[TYPE_WARN]: useV2Icons => (useV2Icons ? <AlertTriangle /> : <TriangleAlert16 />),
4147
};
4248

src/components/notification/stories/Notification.stories.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,39 @@ export const error = () => (
4040
</IntlProvider>
4141
);
4242

43+
export const basicV2 = () => (
44+
<IntlProvider locale="en">
45+
<Notification useV2Icons>This is a default notification.</Notification>
46+
</IntlProvider>
47+
);
48+
49+
export const infoV2 = () => (
50+
<IntlProvider locale="en">
51+
<Notification type="info" useV2Icons>
52+
<span>This is an info notification with a button.</span>
53+
<Button>Click me</Button>
54+
</Notification>
55+
</IntlProvider>
56+
);
57+
58+
export const warnV2 = () => (
59+
<IntlProvider locale="en">
60+
<Notification type="warn" useV2Icons>
61+
<span>This is a warning notification with two buttons.</span>
62+
<Button>Click me</Button>
63+
<Button>Click me again</Button>
64+
</Notification>
65+
</IntlProvider>
66+
);
67+
68+
export const errorV2 = () => (
69+
<IntlProvider locale="en">
70+
<Notification type="error" useV2Icons>
71+
<span>This is an error notification.</span>
72+
</Notification>
73+
</IntlProvider>
74+
);
75+
4376
export default {
4477
title: 'Components/Notifications/Notification',
4578
component: Notification,

src/elements/common/modal.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
.be-modal-rename .be-modal-dialog-content,
4141
.be-modal-share .be-modal-dialog-content,
4242
.be-modal-delete .be-modal-dialog-content {
43-
padding: 0;
4443
border-radius: var(--radius-4);
4544
}
4645

@@ -53,11 +52,8 @@
5352
.be-modal-dialog-content {
5453
@extend .be-modal-wrapper-content;
5554

56-
position: absolute;
5755
inset: 50% auto auto 50%;
5856
width: 400px;
59-
margin-right: -50%;
60-
padding: 25px;
6157
border-radius: $bdl-border-radius-size;
6258
transform: translate(-50%, -50%);
6359

@@ -68,6 +64,4 @@
6864

6965
.be-modal-dialog-overlay {
7066
@extend .be-modal-wrapper-overlay;
71-
72-
position: absolute;
7367
}

0 commit comments

Comments
 (0)