@centreon/ui 26.12.8 → 26.12.9

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": "@centreon/ui",
3
- "version": "26.12.8",
3
+ "version": "26.12.9",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "update:deps": "pnpx npm-check-updates -i --format group",
@@ -32,7 +32,9 @@ const SegmentedButtons = ({
32
32
  return useMemoComponent({
33
33
  Component: (
34
34
  <FormGroup>
35
- <FormLabel className="font-bold">{t(label)}</FormLabel>
35
+ {!segmentedButtons?.hideLabel && (
36
+ <FormLabel className="font-bold">{t(label)}</FormLabel>
37
+ )}
36
38
  {/* In a column narrower than the three minimum widths, the group scrolls
37
39
  inside it rather than overflowing into what is next to it. */}
38
40
  <div className="max-w-full self-start overflow-x-auto">
@@ -175,6 +175,8 @@ export interface InputProps {
175
175
  };
176
176
  required?: boolean;
177
177
  segmentedButtons?: {
178
+ // Leaves the label out of the display; it stays the group's accessible name.
179
+ hideLabel?: boolean;
178
180
  options: Array<{
179
181
  label: string;
180
182
  value: string;