@nextelco/common-ui 2.1.17 → 2.1.18

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.
@@ -49,13 +49,15 @@ export declare function Btn({ children, onClick, variant, active, disabled, titl
49
49
  type?: 'button' | 'submit';
50
50
  }): React.JSX.Element;
51
51
  /** Mutually exclusive button group (granularity, dimension…). */
52
- export declare function BtnGroup<T extends string>({ value, options, onChange, }: {
52
+ export declare function BtnGroup<T extends string>({ value, options, onChange, label, }: {
53
53
  value: T;
54
54
  options: {
55
55
  value: T;
56
56
  label: string;
57
57
  }[];
58
58
  onChange: (v: T) => void;
59
+ /** Rótulo opcional à esquerda (ex: "Situação"), com espaçamento próprio. */
60
+ label?: string;
59
61
  }): React.JSX.Element;
60
62
  export declare function Estado({ carregando, erro, vazio, labels, }: {
61
63
  carregando?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextelco/common-ui",
3
- "version": "2.1.17",
3
+ "version": "2.1.18",
4
4
  "description": "",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/types/index.d.ts",