@umami/react-zen 0.132.0 → 0.133.0

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/index.css CHANGED
@@ -3045,6 +3045,14 @@
3045
3045
  font-weight: 600;
3046
3046
  }
3047
3047
 
3048
+ /* virtual-css:css:eaf2e0c53cba41d4256ca460ee0d2b3e */
3049
+ .Label_label__YWE3M {
3050
+ font-size: var(--font-size);
3051
+ color: var(--font-color);
3052
+ font-weight: var(--font-weight-bold);
3053
+ line-height: 2.5;
3054
+ }
3055
+
3048
3056
  /* virtual-css:css:616ae3b49446388ff62e911490fa55d8 */
3049
3057
  .Button_button__YTAxZ {
3050
3058
  display: flex;
@@ -3627,14 +3635,6 @@ body a.Button_button__YTAxZ {
3627
3635
  }
3628
3636
  }
3629
3637
 
3630
- /* virtual-css:css:eaf2e0c53cba41d4256ca460ee0d2b3e */
3631
- .Label_label__YWE3M {
3632
- font-size: var(--font-size);
3633
- color: var(--font-color);
3634
- font-weight: var(--font-weight-bold);
3635
- line-height: 2.5;
3636
- }
3637
-
3638
3638
  /* virtual-css:css:814f767aeadf5e17bfb63509d2206999 */
3639
3639
  .CopyButton_icon__YTM2Y {
3640
3640
  animation: CopyButton_copy-button__MjY1M 200ms;
package/dist/index.d.mts CHANGED
@@ -165,9 +165,10 @@ interface FormFieldArrayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chil
165
165
  name: string;
166
166
  description?: string;
167
167
  label?: string;
168
+ rules?: RegisterOptions<FieldValues, string>;
168
169
  children: (props: any) => ReactNode;
169
170
  }
170
- declare function FormFieldArray({ name, description, label, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
171
+ declare function FormFieldArray({ name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
171
172
 
172
173
  interface ButtonProps extends ButtonProps$1 {
173
174
  variant?: 'primary' | 'secondary' | 'outline' | 'quiet' | 'danger' | 'zero';
@@ -542,9 +543,10 @@ interface SearchFieldProps extends SearchFieldProps$1 {
542
543
  value?: string;
543
544
  defaultValue?: string;
544
545
  delay?: number;
546
+ onChange?: (value: string) => void;
545
547
  onSearch?: (value: string) => void;
546
548
  }
547
- declare function SearchField({ label, placeholder, value, defaultValue, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
549
+ declare function SearchField({ label, placeholder, value, defaultValue, delay, onChange, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
548
550
 
549
551
  interface SelectProps extends SelectProps$1<HTMLSelectElement> {
550
552
  items?: any[];
package/dist/index.d.ts CHANGED
@@ -165,9 +165,10 @@ interface FormFieldArrayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chil
165
165
  name: string;
166
166
  description?: string;
167
167
  label?: string;
168
+ rules?: RegisterOptions<FieldValues, string>;
168
169
  children: (props: any) => ReactNode;
169
170
  }
170
- declare function FormFieldArray({ name, description, label, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
171
+ declare function FormFieldArray({ name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
171
172
 
172
173
  interface ButtonProps extends ButtonProps$1 {
173
174
  variant?: 'primary' | 'secondary' | 'outline' | 'quiet' | 'danger' | 'zero';
@@ -542,9 +543,10 @@ interface SearchFieldProps extends SearchFieldProps$1 {
542
543
  value?: string;
543
544
  defaultValue?: string;
544
545
  delay?: number;
546
+ onChange?: (value: string) => void;
545
547
  onSearch?: (value: string) => void;
546
548
  }
547
- declare function SearchField({ label, placeholder, value, defaultValue, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
549
+ declare function SearchField({ label, placeholder, value, defaultValue, delay, onChange, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
548
550
 
549
551
  interface SelectProps extends SelectProps$1<HTMLSelectElement> {
550
552
  items?: any[];