@cerebruminc/cerebellum 19.1.0 → 19.1.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# react-component-lib-boilerplate
|
|
2
2
|
|
|
3
|
+
## [19.1.1](https://github.com/cerebruminc/cerebellum/compare/v19.1.0...v19.1.1) (2026-07-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **confirm-modal:** increase openConfirmModal title line height ([b6e325b](https://github.com/cerebruminc/cerebellum/commit/b6e325b799917fbc207207f5b9052a3c9741ff59))
|
|
9
|
+
|
|
3
10
|
## [19.1.0](https://github.com/cerebruminc/cerebellum/compare/v19.0.1...v19.1.0) (2026-07-28)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
|
@@ -158,6 +158,7 @@ export const openConfirmModal = (props: ConfirmModalWithTitle) => {
|
|
|
158
158
|
classNames: {
|
|
159
159
|
content: clsx(styles.confirmModalContent, classNames?.content),
|
|
160
160
|
body: clsx(styles.confirmModalBody, classNames?.body),
|
|
161
|
+
title: clsx(styles.confirmModalTitle, classNames?.title),
|
|
161
162
|
...classNames,
|
|
162
163
|
},
|
|
163
164
|
children: (
|
|
@@ -68,6 +68,30 @@ export const ConfirmModalStory: StoryObj = {
|
|
|
68
68
|
name: "Confirm Modal",
|
|
69
69
|
render: () => <ConfirmModalDemo />,
|
|
70
70
|
};
|
|
71
|
+
// ---------- Confirm Modal with too much text----------
|
|
72
|
+
|
|
73
|
+
const ConfirmModalWithTooMuchTextDemo = () => (
|
|
74
|
+
<ModalsProvider>
|
|
75
|
+
<Button
|
|
76
|
+
onClick={() =>
|
|
77
|
+
openConfirmModal({
|
|
78
|
+
title: "Sometimes It's Tempting to Put a Lot of Text in a Modal Title, But You Should Resist or It'll Look Like This",
|
|
79
|
+
children: <Text variant="body-md">Are you sure you want to see this much text? It's pretty janky at times, and you're not going to like it.</Text>,
|
|
80
|
+
labels: { confirm: "Confirm", cancel: "Cancel" },
|
|
81
|
+
onConfirm: () => console.log("Confirmed"),
|
|
82
|
+
onCancel: () => console.log("Cancelled"),
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
>
|
|
86
|
+
Open Confirm Modal
|
|
87
|
+
</Button>
|
|
88
|
+
</ModalsProvider>
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
export const ConfirmModalWithTooMuchTextStory: StoryObj = {
|
|
92
|
+
name: "Confirm Modal (With Too Much Text)",
|
|
93
|
+
render: () => <ConfirmModalWithTooMuchTextDemo />,
|
|
94
|
+
};
|
|
71
95
|
|
|
72
96
|
// ---------- Confirm Modal (Custom Button Widths) ----------
|
|
73
97
|
|