agroptima-design-system 0.26.3 → 0.26.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agroptima-design-system",
3
- "version": "0.26.3",
3
+ "version": "0.26.4",
4
4
  "scripts": {
5
5
  "dev": "npm run storybook",
6
6
  "storybook": "storybook dev -p 6006 --ci",
@@ -32,7 +32,7 @@ export function Collapsible({
32
32
  })
33
33
 
34
34
  return (
35
- <details name={name} className={cssClasses} {...props}>
35
+ <details name={name} className={cssClasses} aria-label={title} {...props}>
36
36
  <summary className="header">
37
37
  <Icon className="arrow" name="AngleRight" />
38
38
  <span className="title">{title}</span>
@@ -10,7 +10,7 @@ export enum Alignment {
10
10
 
11
11
  export interface DetailItemProps extends React.ComponentPropsWithoutRef<'div'> {
12
12
  variant?: Variant
13
- title: string
13
+ title?: string
14
14
  align?: Alignment
15
15
  }
16
16
 
@@ -33,7 +33,7 @@ export function DetailItem({
33
33
  )}
34
34
  {...props}
35
35
  >
36
- <div className="title">{title}</div>
36
+ {title && <div className="title">{title}</div>}
37
37
  <div className="information">{children}</div>
38
38
  </div>
39
39
  )
@@ -4,6 +4,11 @@ import { Meta } from "@storybook/blocks";
4
4
 
5
5
  # Changelog
6
6
 
7
+ # 0.26.4
8
+
9
+ * Make title optional in DetailItem component.
10
+ * Use title as a label in Collapsible component.
11
+
7
12
  # 0.26.3
8
13
 
9
14
  * Specify "Show/Hide password" button type on Input component.