@ballistix.digital/react-components 4.2.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 +41 -22
- package/dist/index.esm.js +98 -84
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +98 -84
- 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
|
@@ -1141,6 +1141,7 @@ type TSwitchFormProps = {
|
|
|
1141
1141
|
isTouched?: boolean;
|
|
1142
1142
|
error?: string;
|
|
1143
1143
|
styles?: TSwitchStylesForm;
|
|
1144
|
+
size?: 'sm' | 'md';
|
|
1144
1145
|
} & ({
|
|
1145
1146
|
iconAccessorChecked?: undefined;
|
|
1146
1147
|
iconAccessorUnchecked?: undefined;
|
|
@@ -1151,31 +1152,49 @@ type TSwitchFormProps = {
|
|
|
1151
1152
|
declare const Switch: (props: TSwitchFormProps) => react_jsx_runtime.JSX.Element;
|
|
1152
1153
|
|
|
1153
1154
|
declare const styles: {
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
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;
|
|
1166
1181
|
};
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1182
|
+
md: {
|
|
1183
|
+
switch: {
|
|
1184
|
+
base: string;
|
|
1185
|
+
};
|
|
1186
|
+
toggle: {
|
|
1187
|
+
base: string;
|
|
1188
|
+
};
|
|
1171
1189
|
};
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1190
|
+
sm: {
|
|
1191
|
+
switch: {
|
|
1192
|
+
base: string;
|
|
1193
|
+
};
|
|
1194
|
+
toggle: {
|
|
1195
|
+
base: string;
|
|
1196
|
+
};
|
|
1177
1197
|
};
|
|
1178
|
-
error: string;
|
|
1179
1198
|
};
|
|
1180
1199
|
type TSwitchStylesForm = DeepPartialType<typeof styles>;
|
|
1181
1200
|
|