@ballistix.digital/react-components 4.2.0 → 4.4.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 CHANGED
@@ -1,4 +1,4 @@
1
- import React, { FC, ReactNode, RefObject, MouseEvent as MouseEvent$1, ReactElement, ChangeEventHandler, FocusEventHandler, MouseEventHandler, KeyboardEventHandler, HTMLInputTypeAttribute, Dispatch, SetStateAction, ElementType, ChangeEvent } from 'react';
1
+ import React, { FC, ReactNode, RefObject, MouseEvent as MouseEvent$1, ReactElement, MutableRefObject, 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';
@@ -202,6 +202,7 @@ type TInputGroupFormProps = {
202
202
  isRequired?: boolean;
203
203
  isTouched?: boolean;
204
204
  isSolo?: boolean;
205
+ setRefOnLoad?: (ref: MutableRefObject<HTMLInputElement | null>) => void;
205
206
  styles?: TInputGroupStyles;
206
207
  } & ({
207
208
  htmlType: 'area';
@@ -1141,6 +1142,7 @@ type TSwitchFormProps = {
1141
1142
  isTouched?: boolean;
1142
1143
  error?: string;
1143
1144
  styles?: TSwitchStylesForm;
1145
+ size?: 'sm' | 'md';
1144
1146
  } & ({
1145
1147
  iconAccessorChecked?: undefined;
1146
1148
  iconAccessorUnchecked?: undefined;
@@ -1151,31 +1153,49 @@ type TSwitchFormProps = {
1151
1153
  declare const Switch: (props: TSwitchFormProps) => react_jsx_runtime.JSX.Element;
1152
1154
 
1153
1155
  declare const styles: {
1154
- label: string;
1155
- container: string;
1156
- head: string;
1157
- hint: string;
1158
- foot: string;
1159
- description: string;
1160
- switch: {
1161
- base: string;
1162
- screenreader: string;
1163
- checked: string;
1164
- unchecked: string;
1165
- disabled: string;
1156
+ base: {
1157
+ label: string;
1158
+ container: string;
1159
+ head: string;
1160
+ hint: string;
1161
+ foot: string;
1162
+ description: string;
1163
+ switch: {
1164
+ base: string;
1165
+ screenreader: string;
1166
+ checked: string;
1167
+ unchecked: string;
1168
+ disabled: string;
1169
+ };
1170
+ toggle: {
1171
+ base: string;
1172
+ checked: string;
1173
+ unchecked: string;
1174
+ };
1175
+ icon: {
1176
+ base: string;
1177
+ hidden: string;
1178
+ shown: string;
1179
+ icon: string;
1180
+ };
1181
+ error: string;
1166
1182
  };
1167
- toggle: {
1168
- base: string;
1169
- checked: string;
1170
- unchecked: string;
1183
+ md: {
1184
+ switch: {
1185
+ base: string;
1186
+ };
1187
+ toggle: {
1188
+ base: string;
1189
+ };
1171
1190
  };
1172
- icon: {
1173
- base: string;
1174
- hidden: string;
1175
- shown: string;
1176
- icon: string;
1191
+ sm: {
1192
+ switch: {
1193
+ base: string;
1194
+ };
1195
+ toggle: {
1196
+ base: string;
1197
+ };
1177
1198
  };
1178
- error: string;
1179
1199
  };
1180
1200
  type TSwitchStylesForm = DeepPartialType<typeof styles>;
1181
1201