@nimbus-ds/components 5.36.0-rc.1 → 5.36.0-rc.2
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 +6 -0
- package/dist/Accordion/index.d.ts +3 -3
- package/dist/Accordion/index.js +1 -1
- package/dist/CHANGELOG.md +6 -0
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Nimbus is an open-source Design System created by Tiendanube / Nuvemshop's team to empower and enhance more stories every day, with simplicity, accessibility, consistency and performance.
|
|
4
4
|
|
|
5
|
+
## 2025-11-11 `5.36.0`
|
|
6
|
+
|
|
7
|
+
#### 🎉 New features
|
|
8
|
+
|
|
9
|
+
- `Accordion`: Added controlled mode support allowing external state management of accordion selection. ([#381](https://github.com/TiendaNube/nimbus-design-system/pull/381) by [@joacotornello](https://github.com/joacotornello))
|
|
10
|
+
|
|
5
11
|
## 2025-11-11 `5.35.1`
|
|
6
12
|
|
|
7
13
|
#### 🐛 Bug fixes
|
|
@@ -136,17 +136,17 @@ export interface ControlledAccordionProperties extends AccordionBaseProperties {
|
|
|
136
136
|
/**
|
|
137
137
|
* The currently selected accordion item ID.
|
|
138
138
|
*/
|
|
139
|
-
|
|
139
|
+
selectedItem: string;
|
|
140
140
|
/**
|
|
141
141
|
* Callback fired when the selected accordion item changes.
|
|
142
142
|
* @param selectedId The ID of the selected accordion item
|
|
143
143
|
*/
|
|
144
|
-
|
|
144
|
+
onItemSelect?: (selectedId: string) => void;
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
147
|
* Props for the Accordion component, supporting both controlled and uncontrolled modes
|
|
148
148
|
*/
|
|
149
|
-
export type AccordionProps = (UncontrolledAccordionProperties | ControlledAccordionProperties) & Omit<HTMLAttributes<HTMLElement>, "
|
|
149
|
+
export type AccordionProps = (UncontrolledAccordionProperties | ControlledAccordionProperties) & Omit<HTMLAttributes<HTMLElement>, "onItemSelect" | "selectedItem">;
|
|
150
150
|
export type AccordionProperties = AccordionBaseProperties & UncontrolledAccordionProperties & ControlledAccordionProperties;
|
|
151
151
|
export declare const Accordion: React.FC<AccordionProps> & AccordionComponents;
|
|
152
152
|
|