@grapadigital/shared-app-modules 0.0.113 → 0.0.114

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.
@@ -1,7 +1,6 @@
1
1
  import { ControllerFieldState } from 'react-hook-form';
2
2
  import { default as default_2 } from 'react';
3
3
  import { default as default_3 } from 'tailwindcss/colors';
4
- import { FieldSelect } from './ui/fields/field-select.component';
5
4
  import { ForwardRefExoticComponent } from 'react';
6
5
  import { HoverCardProps } from '@radix-ui/react-hover-card';
7
6
  import { JSX } from 'react/jsx-runtime';
@@ -296,7 +295,27 @@ declare type FieldSaleSelectInputProps = React.ComponentProps<"input"> & Control
296
295
  ref?: React.Ref<HTMLInputElement> | undefined;
297
296
  };
298
297
 
299
- export { FieldSelect }
298
+ export declare const FieldSelect: ForwardRefExoticComponent<Omit<FieldSelectProps, "ref"> & RefAttributes<HTMLButtonElement>>;
299
+
300
+ declare type FieldSelectProps = ControllerFieldState & React.ComponentProps<"input"> & {
301
+ label?: string;
302
+ name?: string;
303
+ description?: string;
304
+ asterisk?: boolean;
305
+ value: string;
306
+ /**
307
+ * Esperado um objeto contendo as opções do select.
308
+ * O formato é um objeto com chave e valor.
309
+ * O valor é o que será exibido no select, e a chave é o valor que será retornado.
310
+ *
311
+ * @example
312
+ * options={{ "1": "Opção 1", "2": "Opção 2" }}
313
+ */
314
+ options: Record<string, string>;
315
+ onValueChange: (value: string) => void;
316
+ dir?: "ltr" | "rtl";
317
+ defaultValue?: string | undefined;
318
+ };
300
319
 
301
320
  export declare const FieldSwitch: ForwardRefExoticComponent<Omit<FieldSwitchProps, "ref"> & RefAttributes<HTMLButtonElement>>;
302
321
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-app-modules",
3
3
  "private": false,
4
- "version": "0.0.113",
4
+ "version": "0.0.114",
5
5
  "files": [
6
6
  "dist"
7
7
  ],