@zvoove/unity-ui 2.38.0 → 2.39.1

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/dist/llms.txt CHANGED
@@ -1223,12 +1223,25 @@ Inline informational message.
1223
1223
  import { InfoBox } from '@zvoove/unity-ui';
1224
1224
 
1225
1225
  <InfoBox
1226
- message="Your changes have been saved." // string (required)
1227
- variant="positive" // 'default' | 'positive' | 'warning' | 'error' | 'subtle' | 'neutral' | 'outlined'
1228
- icon="CheckCircle" // CommonIconNames
1229
- elevated={true} // boolean (default: true)
1226
+ title="Information title" // ReactNode (optional; forces stacked layout)
1227
+ message="Your changes have been saved." // ReactNode (required)
1228
+ variant="positive" // 'default' | 'positive' | 'warning' | 'error' | 'subtle' | 'neutral' | 'outlined'
1229
+ icon="CheckCircle" // CommonIconNames
1230
+ elevated={true} // boolean (default: true)
1231
+ borderRadius="sm" // 'none' | 'sm' | 'md' | 'lg' | 'xl' (default: 'sm')
1232
+ actions={[ // InfoBoxAction[] (optional)
1233
+ { label: 'Learn more', onClick: handleLearnMore }, // defaults to text
1234
+ { label: 'Continue', onClick: handleContinue }, // last defaults to filled
1235
+ ]}
1236
+ showCloseButton={true} // boolean (default: false)
1237
+ onClose={handleClose} // callback; InfoBox stays mounted
1230
1238
  />
1231
1239
  ```
1240
+ The InfoBox keeps its existing icon-and-message inline layout when no optional
1241
+ features are supplied. With actions or a close button, it uses the component's
1242
+ own width: content stays inline when it fits and moves the actions to a
1243
+ stacked row when the container is below the 480px boundary. A title always
1244
+ uses the stacked layout.
1232
1245
 
1233
1246
  ### ConfirmationCard
1234
1247
  Status card with actions.
@@ -1282,6 +1295,7 @@ import { Accordion } from '@zvoove/unity-ui';
1282
1295
  openItems={['1']} // string | string[]
1283
1296
  onToggle={handleToggle} // (item: AccordionItem) => void
1284
1297
  allowMultipleOpenItems={false} // boolean
1298
+ highlightOpenItems={true} // boolean — show the primary background on open item headers
1285
1299
  />
1286
1300
  ```
1287
1301