Skip to content

Commit c9d7d19

Browse files
committed
Merge branch 'isotopes-component'
* isotopes-component: Updated changelog Make column unit selection entirely optional Removed duplicative column module Updated carbon isotopes column Slight improvements to layout contexts Updated carbon isotopes styles Updated carbon isotopes view Created a standalone isotopes component
2 parents b3f0cbc + 25886b1 commit c9d7d19

File tree

21 files changed

+446
-654
lines changed

21 files changed

+446
-654
lines changed

packages/column-components/src/context/layout.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,19 @@ function GrainsizeLayoutProvider({
178178
);
179179
}
180180

181-
const useColumnLayout = () => useContext(ColumnLayoutContext);
181+
export function useColumnLayout() {
182+
const ctx = useContext(ColumnLayoutContext);
183+
if (ctx == null) {
184+
throw new Error(
185+
"useColumnLayout must be used within a ColumnLayoutProvider"
186+
);
187+
}
188+
return ctx;
189+
}
182190

183191
export {
184192
ColumnLayoutContext,
185193
ColumnLayoutProvider,
186194
CrossAxisLayoutProvider,
187195
GrainsizeLayoutProvider,
188-
useColumnLayout,
189196
};

packages/column-views/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

99
- Add mouseover handlers to allow age cursor to be reported
1010
- Add an `AgeCursor` component
11+
- Reactivate carbon isotopes column rendering
12+
- Make unit selection entirely optional
1113

1214
## [2.0.1] - 2025-05-08
1315

packages/column-views/src/carbon-isotopes/column.module.sass

Lines changed: 0 additions & 136 deletions
This file was deleted.

packages/column-views/src/carbon-isotopes/column.ts

Lines changed: 0 additions & 133 deletions
This file was deleted.

packages/column-views/src/carbon-isotopes/core.ts

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)