@ballistix.digital/react-components 4.1.0 → 4.3.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.d.ts +50 -24
- package/dist/index.esm.js +102 -88
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +102 -88
- package/dist/index.js.map +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC, ReactNode, RefObject, MouseEvent as MouseEvent$1, ReactElement, ChangeEventHandler, FocusEventHandler, HTMLInputTypeAttribute, Dispatch, SetStateAction, ElementType, ChangeEvent } from 'react';
|
|
1
|
+
import React, { FC, ReactNode, RefObject, MouseEvent as MouseEvent$1, ReactElement, ChangeEventHandler, FocusEventHandler, MouseEventHandler, KeyboardEventHandler, HTMLInputTypeAttribute, Dispatch, SetStateAction, ElementType, ChangeEvent } from 'react';
|
|
2
2
|
import { DeepPartialType } from 'types/DeepPartialType';
|
|
3
3
|
import { IconName } from '@fortawesome/fontawesome-svg-core';
|
|
4
4
|
import { Placement } from '@floating-ui/react';
|
|
@@ -207,18 +207,24 @@ type TInputGroupFormProps = {
|
|
|
207
207
|
htmlType: 'area';
|
|
208
208
|
onChange: ChangeEventHandler<HTMLTextAreaElement>;
|
|
209
209
|
onBlur: FocusEventHandler<HTMLTextAreaElement>;
|
|
210
|
+
onClick?: MouseEventHandler<HTMLTextAreaElement>;
|
|
211
|
+
onKeyDown?: KeyboardEventHandler<HTMLTextAreaElement>;
|
|
210
212
|
onClear?: never;
|
|
211
213
|
trailing?: string | ReactNode;
|
|
212
214
|
} | {
|
|
213
215
|
htmlType: 'text' | 'date';
|
|
214
216
|
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
215
217
|
onBlur: FocusEventHandler<HTMLInputElement>;
|
|
218
|
+
onClick?: MouseEventHandler<HTMLInputElement>;
|
|
219
|
+
onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
|
|
216
220
|
onClear?: () => void;
|
|
217
221
|
trailing?: never;
|
|
218
222
|
} | {
|
|
219
223
|
htmlType: Exclude<HTMLInputTypeAttribute, 'text' | 'date'>;
|
|
220
224
|
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
221
225
|
onBlur: FocusEventHandler<HTMLInputElement>;
|
|
226
|
+
onClick?: MouseEventHandler<HTMLInputElement>;
|
|
227
|
+
onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
|
|
222
228
|
onClear?: never;
|
|
223
229
|
trailing?: string | ReactNode;
|
|
224
230
|
});
|
|
@@ -1050,7 +1056,8 @@ type TDateRangeMenuFormProps = {
|
|
|
1050
1056
|
endDate: string;
|
|
1051
1057
|
}) => void;
|
|
1052
1058
|
onClear?: (name: string) => void;
|
|
1053
|
-
onBlur?:
|
|
1059
|
+
onBlur?: () => void;
|
|
1060
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
1054
1061
|
styles?: TDateRangeMenuFormStyles;
|
|
1055
1062
|
};
|
|
1056
1063
|
declare const DateRangeMenu: FC<TDateRangeMenuFormProps>;
|
|
@@ -1134,6 +1141,7 @@ type TSwitchFormProps = {
|
|
|
1134
1141
|
isTouched?: boolean;
|
|
1135
1142
|
error?: string;
|
|
1136
1143
|
styles?: TSwitchStylesForm;
|
|
1144
|
+
size?: 'sm' | 'md';
|
|
1137
1145
|
} & ({
|
|
1138
1146
|
iconAccessorChecked?: undefined;
|
|
1139
1147
|
iconAccessorUnchecked?: undefined;
|
|
@@ -1144,31 +1152,49 @@ type TSwitchFormProps = {
|
|
|
1144
1152
|
declare const Switch: (props: TSwitchFormProps) => react_jsx_runtime.JSX.Element;
|
|
1145
1153
|
|
|
1146
1154
|
declare const styles: {
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1155
|
+
base: {
|
|
1156
|
+
label: string;
|
|
1157
|
+
container: string;
|
|
1158
|
+
head: string;
|
|
1159
|
+
hint: string;
|
|
1160
|
+
foot: string;
|
|
1161
|
+
description: string;
|
|
1162
|
+
switch: {
|
|
1163
|
+
base: string;
|
|
1164
|
+
screenreader: string;
|
|
1165
|
+
checked: string;
|
|
1166
|
+
unchecked: string;
|
|
1167
|
+
disabled: string;
|
|
1168
|
+
};
|
|
1169
|
+
toggle: {
|
|
1170
|
+
base: string;
|
|
1171
|
+
checked: string;
|
|
1172
|
+
unchecked: string;
|
|
1173
|
+
};
|
|
1174
|
+
icon: {
|
|
1175
|
+
base: string;
|
|
1176
|
+
hidden: string;
|
|
1177
|
+
shown: string;
|
|
1178
|
+
icon: string;
|
|
1179
|
+
};
|
|
1180
|
+
error: string;
|
|
1159
1181
|
};
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1182
|
+
md: {
|
|
1183
|
+
switch: {
|
|
1184
|
+
base: string;
|
|
1185
|
+
};
|
|
1186
|
+
toggle: {
|
|
1187
|
+
base: string;
|
|
1188
|
+
};
|
|
1164
1189
|
};
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1190
|
+
sm: {
|
|
1191
|
+
switch: {
|
|
1192
|
+
base: string;
|
|
1193
|
+
};
|
|
1194
|
+
toggle: {
|
|
1195
|
+
base: string;
|
|
1196
|
+
};
|
|
1170
1197
|
};
|
|
1171
|
-
error: string;
|
|
1172
1198
|
};
|
|
1173
1199
|
type TSwitchStylesForm = DeepPartialType<typeof styles>;
|
|
1174
1200
|
|