Skip to content

Commit b4510e3

Browse files
committed
Squashed commit of the following:
commit 5cf8c9b Merge: 75bd398 616cfb0 Author: Adam Thompson <[email protected]> Date: Fri Nov 7 15:40:20 2025 -0500 Merge branch 'main' into at/wizard-integration commit 616cfb0 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri Nov 7 18:49:16 2025 +0000 Version Packages (#3288) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit dca8419 Author: Nima Taheri <[email protected]> Date: Fri Nov 7 09:04:10 2025 -0800 LG-5588 more chart customization points (#3274) * feat: more chart customization points * docs: add changelog * feat: apply review feedbacks * feat: move common x/y axis properties into a separate file * fix: lint errors * fix: correct props dependency * fixup! fix: lint errors * feat: process review feedback * feat: apply Stephen's feedback * types: export bar-hover-behavior type * more PR review feedback * fix export issue commit 8976ab2 Author: Stephen Lee <[email protected]> Date: Fri Nov 7 07:39:33 2025 -0800 [LG-5439] feat: ChatLayout integration branch (#3289) * feat(chat-layout): new @lg-chat/chat-layout package with ChatLayout and ChatLayoutContext (#3251) * [LG-5645] feat(chat-layout): implement ChatMain component (#3252) * feat(chat-layout): implement ChatMain component * refactor(chat-layout): remove PropsWithChildren * [LG-5646] feat(chat-layout): implement ChatSideNav component with Header and Content subcomponents (#3271) * chore(chat-layout): add deps for ChatSideNav * feat(chat-layout): implement ChatSideNav and subcomponents * test(chat-layout): update stories * docs(chat-layout): README * fix(chat-layout): apply focus styles on :focus-visible * refactor(chat-layout): PR feedback * refactor(chat-layout): ChatSideNav only renders header and content * [LG-5649] feat(chat-layout): add SideNavItem subcomponent (#3273) * chore(chat-layout): add LG palette dep * feat(chat-layout): implement ChatSideNavItem subcomponent * test(chat-layout): update stories * docs(chat-layout): README * fix(chat-layout): add missing polymorphic dep * fix(chat-layout): ChatSideNavItem default is div * style(chat-layout): use constant for side nav item height * [LG-5650] feat(chat-layout): add hover expand and collapse functionality (#3278) * feat(chat-layout): add header to ChatSideNavContent * fix(input-bar): rm redundant z-index and increase disclaimer text spacing * chore(input-bar): changeset * chore(chat-layout): rm icon-button dependency * feat(chat-layout): enhance ChatLayout with side nav hover state and transition effects * test(chat-layout): update stories * docs(chat-layout): README * refactor(input-bar): revert gap changes * refactor(chat-layout): expose shouldRenderExpanded from context and fix overflow * fix(chat-layout): peer dep and init changeset commit 68b59a0 Author: Stephen Lee <[email protected]> Date: Thu Nov 6 20:18:38 2025 -0800 [LG-5687] fix(message-prompts): update border color (#3282) * style(message-prompts): update border-color * test(message-prompts): fix darkmode propagation * chore(message-prompts): changeset commit eb4ff15 Author: Stephen Lee <[email protected]> Date: Thu Nov 6 16:29:28 2025 -0800 refactor(feature-walls): darkMode propagation (#3287) * refactor(feature-walls): darkMode propagation * fix(feature-walls): drop unused imports commit 5008087 Author: Stephen Lee <[email protected]> Date: Thu Nov 6 15:33:37 2025 -0800 [LG-5684] fix(rich-links): update colors for RichLinkBadge component (#3283) * refactor(rich-links): refactor darkmode propagation and update some colors * test(rich-links): enable darkmode in rich-links stories * chore: changesets commit 1d63f1f Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu Nov 6 19:39:48 2025 +0000 Version Packages (#3276) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit 6494d15 Author: Brooke Scarlett Yalof <[email protected]> Date: Thu Nov 6 12:17:17 2025 -0500 LG-5656: Remove support for refEl property (#3270) * remove support for refEl property * Update clean-news-lay.md commit af60a2d Author: Stephen Lee <[email protected]> Date: Thu Nov 6 07:58:22 2025 -0800 [LG-5664] feat(title-bar): add compact variant support (#3275) * refactor(title-bar): reorg file structure and export Align * refactor(title-bar): styles and install lg chat provider peer dep * feat(title-bar): compact variant * test(title-bar): update stories * docs(title-bar): readme * chore(title-bar): changeset * chore(title-bar): copilot feedback * feat(chat-window): enable compact TitleBar in ChatWindow * fix: chat builds commit 45fb29a Author: Adam Rasheed <[email protected]> Date: Wed Nov 5 09:33:54 2025 -0800 [LG-5681] chore: Update PeerDependencies (#3279) * [LG-5681] chore: Update PeerDependencies * cleanup
1 parent 4776f74 commit b4510e3

File tree

197 files changed

+3775
-929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+3775
-929
lines changed

.changeset/easy-bears-fix.md

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

.changeset/many-plums-scream.md

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

.changeset/proud-clouds-hide.md

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

.changeset/puny-paws-yell.md

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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ import Button from '@leafygreen-ui/button';
149149
| [@lg-charts/legend](./charts/legend) | [![version](https://img.shields.io/npm/v/@lg-charts/legend)](https://www.npmjs.com/package/@lg-charts/legend) | ![downloads](https://img.shields.io/npm/dm/@lg-charts/legend?color=white) | [Live Example](http://mongodb.design/component/legend/live-example) |
150150
| [@lg-charts/series-provider](./charts/series-provider) | [![version](https://img.shields.io/npm/v/@lg-charts/series-provider)](https://www.npmjs.com/package/@lg-charts/series-provider) | ![downloads](https://img.shields.io/npm/dm/@lg-charts/series-provider?color=white) | [Live Example](http://mongodb.design/component/series-provider/live-example) |
151151
| [@lg-chat/avatar](./chat/avatar) | [![version](https://img.shields.io/npm/v/@lg-chat/avatar)](https://www.npmjs.com/package/@lg-chat/avatar) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/avatar?color=white) | [Live Example](http://mongodb.design/component/avatar/live-example) |
152+
| [@lg-chat/chat-layout](./chat/chat-layout) | [![version](https://img.shields.io/npm/v/@lg-chat/chat-layout)](https://www.npmjs.com/package/@lg-chat/chat-layout) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/chat-layout?color=white) | [Live Example](http://mongodb.design/component/chat-layout/live-example) |
152153
| [@lg-chat/chat-window](./chat/chat-window) | [![version](https://img.shields.io/npm/v/@lg-chat/chat-window)](https://www.npmjs.com/package/@lg-chat/chat-window) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/chat-window?color=white) | [Live Example](http://mongodb.design/component/chat-window/live-example) |
153154
| [@lg-chat/fixed-chat-window](./chat/fixed-chat-window) | [![version](https://img.shields.io/npm/v/@lg-chat/fixed-chat-window)](https://www.npmjs.com/package/@lg-chat/fixed-chat-window) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/fixed-chat-window?color=white) | [Live Example](http://mongodb.design/component/fixed-chat-window/live-example) |
154155
| [@lg-chat/input-bar](./chat/input-bar) | [![version](https://img.shields.io/npm/v/@lg-chat/input-bar)](https://www.npmjs.com/package/@lg-chat/input-bar) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/input-bar?color=white) | [Live Example](http://mongodb.design/component/input-bar/live-example) |

charts/chart-card/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@leafygreen-ui/typography": "workspace:^"
2727
},
2828
"peerDependencies": {
29-
"@leafygreen-ui/leafygreen-provider": ">=3.2.0"
29+
"@leafygreen-ui/leafygreen-provider": "workspace:^3.2.0 || workspace:^4.0.0 || workspace:^5.0.0"
3030
},
3131
"repository": {
3232
"type": "git",

charts/colors/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@leafygreen-ui/palette": "workspace:^"
2020
},
2121
"peerDependencies": {
22-
"@leafygreen-ui/leafygreen-provider": ">=3.2.0"
22+
"@leafygreen-ui/leafygreen-provider": "workspace:^3.2.0 || workspace:^4.0.0 || workspace:^5.0.0"
2323
},
2424
"devDependencies": {
2525
"@leafygreen-ui/emotion": "workspace:^",

charts/core/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @lg-charts/core
22

3+
## 2.3.0
4+
5+
### Minor Changes
6+
7+
- dca8419: - ChartTooltip:
8+
- Added `axisPointer` prop supporting 'line', 'shadow', and 'none' options
9+
- Added `className` prop for custom styling
10+
- Bug Fix: renders correctly for values like 0 and empty strings by only checking for null or undefined, not all falsy values
11+
- Bar: `hoverBehavior` prop now accepts 'dim-others' and 'none' options to control hover focus behavior
12+
- XAxis/YAxis: Introduced a new `category` axis type for discrete/categorical datasets (such as for X axes in bar charts).
13+
- It uses a dedicated axis type definition and a `labels` prop for specifying category names.
14+
- Existing continuous axis types (`'log'`, `'time'`, `'value'`) remain unchanged, continuing to support `min`, `max`, and `formatter` for customization.
15+
316
## 2.2.1
417

518
### Patch Changes

charts/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lg-charts/core",
3-
"version": "2.2.1",
3+
"version": "2.3.0",
44
"description": "lg-charts Core Chart Components",
55
"main": "./dist/umd/index.js",
66
"module": "./dist/esm/index.js",
@@ -32,7 +32,7 @@
3232
"lodash": "^4.17.21"
3333
},
3434
"peerDependencies": {
35-
"@leafygreen-ui/leafygreen-provider": ">=3.2.0"
35+
"@leafygreen-ui/leafygreen-provider": "workspace:^3.2.0 || workspace:^4.0.0 || workspace:^5.0.0"
3636
},
3737
"devDependencies": {
3838
"@faker-js/faker": "8.0.2",

charts/core/src/Axis/Axis.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import { CartesianAxisOption } from 'echarts/types/src/coord/cartesian/AxisModel.js';
2+
3+
import { Theme } from '@leafygreen-ui/lib';
4+
import {
5+
color,
6+
fontFamilies,
7+
fontWeights,
8+
InteractionState,
9+
spacing,
10+
Variant,
11+
} from '@leafygreen-ui/tokens';
12+
13+
import { type AxisProps } from './Axis.types';
14+
15+
export const getAxisOptions = (
16+
theme: Theme,
17+
props: AxisProps,
18+
): CartesianAxisOption => {
19+
const { label, type } = props;
20+
21+
return {
22+
type,
23+
...(type === 'category'
24+
? {
25+
data: props.labels,
26+
}
27+
: {
28+
min: props.min,
29+
max: props.max,
30+
}),
31+
axisLine: {
32+
show: true,
33+
lineStyle: {
34+
color: color[theme].border[Variant.Secondary][InteractionState.Default],
35+
width: 1,
36+
},
37+
},
38+
axisLabel: {
39+
show: true,
40+
fontFamily: fontFamilies.default,
41+
fontWeight: fontWeights.medium,
42+
fontSize: 11,
43+
lineHeight: spacing[400],
44+
color: color[theme].text[Variant.Secondary][InteractionState.Default],
45+
...(type === 'category' ? undefined : { formatter: props.formatter }),
46+
},
47+
axisTick: {
48+
show: false,
49+
},
50+
name: label,
51+
nameLocation: 'middle',
52+
nameTextStyle: {
53+
fontFamily: fontFamilies.default,
54+
fontWeight: fontWeights.medium,
55+
fontSize: 11,
56+
color: color[theme].text[Variant.Secondary][InteractionState.Default],
57+
},
58+
};
59+
};
60+
61+
export const unsetAxisOptions = {
62+
axisLine: {
63+
show: false,
64+
},
65+
axisLabel: {
66+
show: false,
67+
},
68+
};

0 commit comments

Comments
 (0)