@gobolt/genesis 0.4.22 → 0.4.24

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.
@@ -0,0 +1,17 @@
1
+ import { InputEvent } from '../../types/events';
2
+ export interface Rule {
3
+ validator: (_rule: any, value: string) => Promise<void>;
4
+ }
5
+ export interface InputAddonProps {
6
+ name: string;
7
+ addonBefore?: string | undefined;
8
+ addonAfter?: string | undefined;
9
+ placeholder?: string;
10
+ maxLength?: number;
11
+ value: string | undefined;
12
+ onChange: (actionEvent: InputEvent) => void;
13
+ rules?: Rule[];
14
+ validateTrigger?: string[];
15
+ }
16
+ declare const InputAddon: ({ name, addonBefore, addonAfter, placeholder, maxLength, value, onChange, rules, validateTrigger, }: InputAddonProps) => import("react/jsx-runtime").JSX.Element;
17
+ export default InputAddon;
@@ -0,0 +1,2 @@
1
+ export { default } from './InputAddon';
2
+ export type { InputAddonProps } from './InputAddon';
@@ -31,6 +31,8 @@ export { default as UnitNumber } from './Glyph/custom/UnitNumber';
31
31
  export type { UnitNumberProps } from './Glyph/custom/UnitNumber';
32
32
  export { default as Input } from './Input';
33
33
  export type { InputProps } from './Input';
34
+ export { default as InputAddon } from './InputAddon';
35
+ export type { InputAddonProps } from './InputAddon';
34
36
  export { BarChart, LineChart, DonutChart } from './Insights';
35
37
  export type { BarChartProps, BarChartDataPoint, BarChartIcon, LineChartProps, LineChartDataPoint, DonutChartProps, DonutChartDataPoint, } from './Insights';
36
38
  export { default as Layout } from './Layout';