@ballistix.digital/react-components 1.1.0 → 2.1.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 +55 -3
- package/dist/index.esm.js +239 -197
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +236 -193
- package/dist/index.js.map +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -843,7 +843,7 @@ type TProps$2 = {
|
|
|
843
843
|
};
|
|
844
844
|
declare const SlideOverOverlay: FC<TProps$2>;
|
|
845
845
|
|
|
846
|
-
declare const styles: {
|
|
846
|
+
declare const styles$1: {
|
|
847
847
|
controls: {
|
|
848
848
|
container: string;
|
|
849
849
|
content: string;
|
|
@@ -863,7 +863,7 @@ declare const styles: {
|
|
|
863
863
|
icon: string;
|
|
864
864
|
};
|
|
865
865
|
|
|
866
|
-
type TTableColumnOptionsStyles = DeepPartialType$1<typeof styles>;
|
|
866
|
+
type TTableColumnOptionsStyles = DeepPartialType$1<typeof styles$1>;
|
|
867
867
|
|
|
868
868
|
type TProps$1 = {
|
|
869
869
|
table: Table<any>;
|
|
@@ -1068,6 +1068,58 @@ declare const base$3: {
|
|
|
1068
1068
|
};
|
|
1069
1069
|
type TCheckboxInputFormStyles = DeepPartialType$1<typeof base$3>;
|
|
1070
1070
|
|
|
1071
|
+
type TSwitchFormProps = {
|
|
1072
|
+
name: string;
|
|
1073
|
+
label?: string;
|
|
1074
|
+
description?: string;
|
|
1075
|
+
required?: ({ isRequired }: {
|
|
1076
|
+
isRequired: boolean;
|
|
1077
|
+
}) => string | ReactNode;
|
|
1078
|
+
isDisabled?: boolean;
|
|
1079
|
+
value: boolean;
|
|
1080
|
+
onChange: (value: boolean) => void;
|
|
1081
|
+
isRequired?: boolean;
|
|
1082
|
+
isTouched?: boolean;
|
|
1083
|
+
error?: string;
|
|
1084
|
+
styles?: TSwitchStylesForm;
|
|
1085
|
+
} & ({
|
|
1086
|
+
iconAccessorChecked?: undefined;
|
|
1087
|
+
iconAccessorUnchecked?: undefined;
|
|
1088
|
+
} | {
|
|
1089
|
+
iconAccessorChecked: IconName;
|
|
1090
|
+
iconAccessorUnchecked: IconName;
|
|
1091
|
+
});
|
|
1092
|
+
declare const Switch: (props: TSwitchFormProps) => react_jsx_runtime.JSX.Element;
|
|
1093
|
+
|
|
1094
|
+
declare const styles: {
|
|
1095
|
+
label: string;
|
|
1096
|
+
container: string;
|
|
1097
|
+
head: string;
|
|
1098
|
+
hint: string;
|
|
1099
|
+
foot: string;
|
|
1100
|
+
description: string;
|
|
1101
|
+
switch: {
|
|
1102
|
+
base: string;
|
|
1103
|
+
screenreader: string;
|
|
1104
|
+
checked: string;
|
|
1105
|
+
unchecked: string;
|
|
1106
|
+
disabled: string;
|
|
1107
|
+
};
|
|
1108
|
+
toggle: {
|
|
1109
|
+
base: string;
|
|
1110
|
+
checked: string;
|
|
1111
|
+
unchecked: string;
|
|
1112
|
+
};
|
|
1113
|
+
icon: {
|
|
1114
|
+
base: string;
|
|
1115
|
+
hidden: string;
|
|
1116
|
+
shown: string;
|
|
1117
|
+
icon: string;
|
|
1118
|
+
};
|
|
1119
|
+
error: string;
|
|
1120
|
+
};
|
|
1121
|
+
type TSwitchStylesForm = DeepPartialType$1<typeof styles>;
|
|
1122
|
+
|
|
1071
1123
|
type TFileType = {
|
|
1072
1124
|
name: string;
|
|
1073
1125
|
size: number;
|
|
@@ -1228,4 +1280,4 @@ type TReturn<TData> = {
|
|
|
1228
1280
|
};
|
|
1229
1281
|
declare const useExcel: <TData extends object>() => TReturn<TData>;
|
|
1230
1282
|
|
|
1231
|
-
export { AddressInputGroupForm, BadgeElement$1 as AlertElement, AvatarElement, BadgeElement, BreadcrumbsNavigation, ButtonElement, ButtonGroupElement, CheckboxInputForm as CheckboxInput, ContainerLayout, DateMenuForm, DividerLayout, DropdownElement, FileInputGroupForm, IconElement, InputGroupForm, ListContainerLayout, MediaObjectLayout, ModalOverlay, NotificationOverlay, OpeningsHourInputGroupForm, PagePaginationNavigation, LayoutPanel as PanelLayout, PanelPaginationNavigation, SelectMenuForm, SlideOverOverlay, type TAddressInputGroupFormProps, type TAddressInputGroupFormStyles, type TAddressInputGroupFormValue, type TButtonElementProps, type TCheckboxInputFormProps, type TCheckboxInputFormStyles, type TCheckboxInputGroupFormProps, type TCheckboxInputGroupFormStyles, type TDateMenuFormProps, type TDateMenuFormStyles, type TExcelCell, type TExcelRow, type TExcelSheet, type TFileInputGroupFormProps, type TFileInputGroupFormStyles, type TInputGroupFormProps, type TInputGroupStyles, type TModalOverlayProps, type TOpeningsHourInputGroupFormProps, type TOpeningsHourInputGroupFormStyles, type TSelectMenuFormProps, type TSelectMenuFormStyles, type TTableListProps as TTableList2Props, type TTableListProps$1 as TTableListProps, type TTableListStyles$1 as TTableListStyles, TabNavigation, TableColumnOptionsCustom, TableExcelExportCustom as TableExportCustom, TableList, TableList2, VerticalNavigation, CheckboxInputGroupForm as __DEPRECATED__CheckboxInputGroupForm, useExcel };
|
|
1283
|
+
export { AddressInputGroupForm, BadgeElement$1 as AlertElement, AvatarElement, BadgeElement, BreadcrumbsNavigation, ButtonElement, ButtonGroupElement, CheckboxInputForm as CheckboxInput, ContainerLayout, DateMenuForm, DividerLayout, DropdownElement, FileInputGroupForm, IconElement, InputGroupForm, ListContainerLayout, MediaObjectLayout, ModalOverlay, NotificationOverlay, OpeningsHourInputGroupForm, PagePaginationNavigation, LayoutPanel as PanelLayout, PanelPaginationNavigation, SelectMenuForm, SlideOverOverlay, Switch as SwitchForm, type TAddressInputGroupFormProps, type TAddressInputGroupFormStyles, type TAddressInputGroupFormValue, type TButtonElementProps, type TCheckboxInputFormProps, type TCheckboxInputFormStyles, type TCheckboxInputGroupFormProps, type TCheckboxInputGroupFormStyles, type TDateMenuFormProps, type TDateMenuFormStyles, type TExcelCell, type TExcelRow, type TExcelSheet, type TFileInputGroupFormProps, type TFileInputGroupFormStyles, type TInputGroupFormProps, type TInputGroupStyles, type TModalOverlayProps, type TOpeningsHourInputGroupFormProps, type TOpeningsHourInputGroupFormStyles, type TSelectMenuFormProps, type TSelectMenuFormStyles, type TSwitchFormProps, type TSwitchStylesForm, type TTableListProps as TTableList2Props, type TTableListProps$1 as TTableListProps, type TTableListStyles$1 as TTableListStyles, TabNavigation, TableColumnOptionsCustom, TableExcelExportCustom as TableExportCustom, TableList, TableList2, VerticalNavigation, CheckboxInputGroupForm as __DEPRECATED__CheckboxInputGroupForm, useExcel };
|