@nimbus-ds/components 5.35.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 +19 -2
- package/dist/Accordion/index.js +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Box/index.d.ts +1 -0
- package/dist/Button/index.js +1 -1
- package/dist/CHANGELOG.md +6 -0
- package/dist/Card/index.js +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/IconButton/index.d.ts +1 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Label/index.js +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/List/index.js +1 -1
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/Popover/index.d.ts +1 -0
- package/dist/ProgressBar/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollPane/index.d.ts +1 -0
- package/dist/ScrollPane/index.js +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -0
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Sidebar/index.d.ts +1 -0
- package/dist/Sidebar/index.js +1 -1
- package/dist/SplitButton/index.d.ts +1 -0
- package/dist/SplitButton/index.js +1 -1
- package/dist/Stepper/index.d.ts +1 -0
- package/dist/Stepper/index.js +1 -1
- package/dist/Table/index.d.ts +1 -0
- package/dist/Tag/index.js +1 -1
- package/dist/Text/index.d.ts +1 -0
- package/dist/Text/index.js +1 -1
- package/dist/Textarea/index.js +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Title/index.d.ts +1 -0
- package/dist/Title/index.js +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toggle/index.js +1 -1
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/Tooltip/index.js +1 -1
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +20 -2
- package/dist/index.js +1 -1
- 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
|
|
@@ -119,18 +119,35 @@ export interface AccordionComponents {
|
|
|
119
119
|
Item: typeof AccordionItem;
|
|
120
120
|
Header: typeof AccordionHeader;
|
|
121
121
|
}
|
|
122
|
-
export interface
|
|
122
|
+
export interface AccordionBaseProperties {
|
|
123
123
|
/**
|
|
124
124
|
* The content of the accordion.
|
|
125
125
|
* @TJS-type React.ReactNode
|
|
126
126
|
*/
|
|
127
127
|
children?: ReactNode;
|
|
128
|
+
}
|
|
129
|
+
export interface UncontrolledAccordionProperties extends AccordionBaseProperties {
|
|
128
130
|
/**
|
|
129
131
|
* Informs which accordion item is open by default, this value must be the same as informed in the index of each item
|
|
130
132
|
*/
|
|
131
133
|
selectedDefault?: string;
|
|
132
134
|
}
|
|
133
|
-
export
|
|
135
|
+
export interface ControlledAccordionProperties extends AccordionBaseProperties {
|
|
136
|
+
/**
|
|
137
|
+
* The currently selected accordion item ID.
|
|
138
|
+
*/
|
|
139
|
+
selectedItem: string;
|
|
140
|
+
/**
|
|
141
|
+
* Callback fired when the selected accordion item changes.
|
|
142
|
+
* @param selectedId The ID of the selected accordion item
|
|
143
|
+
*/
|
|
144
|
+
onItemSelect?: (selectedId: string) => void;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Props for the Accordion component, supporting both controlled and uncontrolled modes
|
|
148
|
+
*/
|
|
149
|
+
export type AccordionProps = (UncontrolledAccordionProperties | ControlledAccordionProperties) & Omit<HTMLAttributes<HTMLElement>, "onItemSelect" | "selectedItem">;
|
|
150
|
+
export type AccordionProperties = AccordionBaseProperties & UncontrolledAccordionProperties & ControlledAccordionProperties;
|
|
134
151
|
export declare const Accordion: React.FC<AccordionProps> & AccordionComponents;
|
|
135
152
|
|
|
136
153
|
export {};
|