@aic-kits/react 0.31.0 → 0.32.0
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/LICENSE.md +5 -5
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Accordion/AccordionHeader.d.ts +1 -1
- package/dist/components/Accordion/types.d.ts +6 -2
- package/dist/index.cjs +151 -151
- package/dist/index.js +6681 -6459
- package/package.json +2 -2
package/LICENSE.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AccordionProps } from './types';
|
|
2
|
-
export declare function Accordion({ renderHeader, renderContent, initialExpanded, onExpandedChange, disabled, iconPosition, ...rest }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Accordion({ renderHeader, renderContent, initialExpanded, expanded, onExpandedChange, disabled, iconPosition, ...rest }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,7 @@ interface AccordionHeaderProps {
|
|
|
4
4
|
isExpanded: boolean;
|
|
5
5
|
onToggle: () => void;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
iconPosition?: 'left' | 'right';
|
|
7
|
+
iconPosition?: 'left' | 'right' | 'none';
|
|
8
8
|
}
|
|
9
9
|
export declare function AccordionHeader({ renderHeader, isExpanded, onToggle, disabled, iconPosition, }: AccordionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -11,10 +11,14 @@ export interface AccordionProps extends BoxProps {
|
|
|
11
11
|
*/
|
|
12
12
|
renderContent: () => React.ReactNode;
|
|
13
13
|
/**
|
|
14
|
-
* Initial expanded state.
|
|
14
|
+
* Initial expanded state (for uncontrolled mode).
|
|
15
15
|
* @default false
|
|
16
16
|
*/
|
|
17
17
|
initialExpanded?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Controlled expanded state. When provided, the component works in controlled mode.
|
|
20
|
+
*/
|
|
21
|
+
expanded?: boolean;
|
|
18
22
|
/**
|
|
19
23
|
* Callback fired when the expanded state changes.
|
|
20
24
|
*/
|
|
@@ -28,5 +32,5 @@ export interface AccordionProps extends BoxProps {
|
|
|
28
32
|
* Position of the arrow icon relative to the header content.
|
|
29
33
|
* @default 'left'
|
|
30
34
|
*/
|
|
31
|
-
iconPosition?: 'left' | 'right';
|
|
35
|
+
iconPosition?: 'left' | 'right' | 'none';
|
|
32
36
|
}
|