@multivendorx/zyra 1.0.64 → 1.0.65

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.
Files changed (125) hide show
  1. package/build/index.d.ts +1 -0
  2. package/build/index.js +6770 -6158
  3. package/build/index.js.map +1 -1
  4. package/build/index.mjs +6770 -6158
  5. package/build/index.mjs.map +1 -1
  6. package/build/types/builderform/src/EmailBuilder.d.ts +29 -0
  7. package/build/types/builderform/src/EmailTemplateEditorPopup.d.ts +16 -0
  8. package/build/types/builderform/src/FormBuilder/Builder.d.ts +11 -0
  9. package/build/types/builderform/src/FormBuilder/Canvas.d.ts +23 -0
  10. package/build/types/builderform/src/FormBuilder/FormBuilder.d.ts +13 -0
  11. package/build/types/builderform/src/FormBuilder/FormSettings.d.ts +19 -0
  12. package/build/types/builderform/src/FormBuilder/Inspector.d.ts +14 -0
  13. package/build/types/builderform/src/FormBuilder/Share.d.ts +10 -0
  14. package/build/types/builderform/src/FormBuilder/When.d.ts +20 -0
  15. package/build/types/builderform/src/FormBuilder/extensions.d.ts +97 -0
  16. package/build/types/builderform/src/FormBuilder/fields.d.ts +36 -0
  17. package/build/types/builderform/src/FormBuilder/index.d.ts +5 -0
  18. package/build/types/builderform/src/FormBuilder/route.d.ts +10 -0
  19. package/build/types/builderform/src/FormBuilder/runtime.d.ts +87 -0
  20. package/build/types/builderform/src/FormBuilder/types.d.ts +151 -0
  21. package/build/types/builderform/src/Switch.d.ts +9 -0
  22. package/build/types/builderform/src/emailBlockTypes.d.ts +89 -0
  23. package/build/types/builderform/src/index.d.ts +9 -0
  24. package/build/types/builderform/src/legacyEmailAdapter.d.ts +40 -0
  25. package/build/types/bundle/src/fieldRegistry.d.ts +1 -0
  26. package/build/types/bundle/src/index.d.ts +6 -0
  27. package/build/types/components/src/ActivityListComponent.d.ts +39 -0
  28. package/build/types/components/src/AnalyticsComponent.d.ts +56 -0
  29. package/build/types/components/src/AppShellComponent.d.ts +64 -0
  30. package/build/types/components/src/AuthLayoutComponent.d.ts +26 -0
  31. package/build/types/components/src/AvatarComponent.d.ts +13 -0
  32. package/build/types/components/src/BadgeComponent.d.ts +30 -0
  33. package/build/types/components/src/BrandComponent.d.ts +18 -0
  34. package/build/types/components/src/CardComponent.d.ts +25 -0
  35. package/build/types/components/src/ChartComponent.d.ts +58 -0
  36. package/build/types/components/src/ChoiceCardComponent.d.ts +41 -0
  37. package/build/types/components/src/ClipboardComponent.d.ts +13 -0
  38. package/build/types/components/src/ColumnComponent.d.ts +11 -0
  39. package/build/types/components/src/ContainerComponent.d.ts +11 -0
  40. package/build/types/components/src/CustomRecaptchaComponent.d.ts +2 -0
  41. package/build/types/components/src/EntityCellComponent.d.ts +30 -0
  42. package/build/types/components/src/FilterComponent.d.ts +20 -0
  43. package/build/types/components/src/FormGroupComponent.d.ts +19 -0
  44. package/build/types/components/src/FormGroupWrapperComponent.d.ts +10 -0
  45. package/build/types/components/src/FullPageLoadingComponent.d.ts +14 -0
  46. package/build/types/components/src/HeaderComponent.d.ts +93 -0
  47. package/build/types/components/src/HeaderSearchComponent.d.ts +32 -0
  48. package/build/types/components/src/IconComponent.d.ts +12 -0
  49. package/build/types/components/src/InformationItemComponent.d.ts +38 -0
  50. package/build/types/components/src/LegendComponent.d.ts +52 -0
  51. package/build/types/components/src/ListComponent.d.ts +47 -0
  52. package/build/types/components/src/ListToolbarComponent.d.ts +53 -0
  53. package/build/types/components/src/MapComponent.d.ts +33 -0
  54. package/build/types/components/src/MetricTileComponent.d.ts +174 -0
  55. package/build/types/components/src/ModuleGridComponent.d.ts +74 -0
  56. package/build/types/components/src/ModuleGuardComponent.d.ts +17 -0
  57. package/build/types/components/src/NavigatorComponent.d.ts +111 -0
  58. package/build/types/components/src/NoticeComponent.d.ts +48 -0
  59. package/build/types/components/src/PopupComponent.d.ts +28 -0
  60. package/build/types/components/src/RecaptchaComponent.d.ts +11 -0
  61. package/build/types/components/src/SaveStatusComponent.d.ts +18 -0
  62. package/build/types/components/src/ScoreRingComponent.d.ts +16 -0
  63. package/build/types/components/src/SectionComponent.d.ts +18 -0
  64. package/build/types/components/src/SettingRowComponent.d.ts +134 -0
  65. package/build/types/components/src/SettingsSectionComponent.d.ts +24 -0
  66. package/build/types/components/src/SetupWizardComponent.d.ts +75 -0
  67. package/build/types/components/src/SkeletonComponent.d.ts +11 -0
  68. package/build/types/components/src/SystemInfoComponent.d.ts +11 -0
  69. package/build/types/components/src/TabsComponent.d.ts +34 -0
  70. package/build/types/components/src/ThemeChoiceComponent.d.ts +19 -0
  71. package/build/types/components/src/TooltipComponent.d.ts +12 -0
  72. package/build/types/components/src/TourComponent.d.ts +26 -0
  73. package/build/types/components/src/TrendIndicatorComponent.d.ts +21 -0
  74. package/build/types/components/src/TrendStatComponent.d.ts +34 -0
  75. package/build/types/components/src/TypographyComponent.d.ts +58 -0
  76. package/build/types/components/src/index.d.ts +84 -0
  77. package/build/types/components/src/paletteClass.d.ts +3 -0
  78. package/build/types/core/src/ModuleContext.d.ts +8 -0
  79. package/build/types/core/src/SettingContext.d.ts +17 -0
  80. package/build/types/core/src/ThemeContext.d.ts +20 -0
  81. package/build/types/core/src/apiService.d.ts +38 -0
  82. package/build/types/core/src/blockStyle.d.ts +63 -0
  83. package/build/types/core/src/colorPalette.d.ts +41 -0
  84. package/build/types/core/src/index.d.ts +14 -0
  85. package/build/types/core/src/utils.d.ts +1165 -0
  86. package/build/types/inputs/src/AddressInput.d.ts +24 -0
  87. package/build/types/inputs/src/ButtonInput.d.ts +53 -0
  88. package/build/types/inputs/src/CalendarInput.d.ts +46 -0
  89. package/build/types/inputs/src/DecoratedInput.d.ts +11 -0
  90. package/build/types/inputs/src/DynamicRowInput.d.ts +42 -0
  91. package/build/types/inputs/src/EmailInput.d.ts +15 -0
  92. package/build/types/inputs/src/EndpointInput.d.ts +4 -0
  93. package/build/types/inputs/src/EventCalendarInput.d.ts +25 -0
  94. package/build/types/inputs/src/ExpandablePanelInput.d.ts +116 -0
  95. package/build/types/inputs/src/FileInput.d.ts +39 -0
  96. package/build/types/inputs/src/InputRenderer.d.ts +94 -0
  97. package/build/types/inputs/src/LogViewerInput.d.ts +13 -0
  98. package/build/types/inputs/src/MultiCheckboxInput.d.ts +48 -0
  99. package/build/types/inputs/src/NestedInput.d.ts +54 -0
  100. package/build/types/inputs/src/PhoneInput.d.ts +29 -0
  101. package/build/types/inputs/src/PickerInput.d.ts +77 -0
  102. package/build/types/inputs/src/RandomkeyInput.d.ts +14 -0
  103. package/build/types/inputs/src/RichTextInput.d.ts +30 -0
  104. package/build/types/inputs/src/SelectInput.d.ts +40 -0
  105. package/build/types/inputs/src/SetupWizardInput.d.ts +50 -0
  106. package/build/types/inputs/src/ShortcodeTableInput.d.ts +23 -0
  107. package/build/types/inputs/src/TableInput.d.ts +72 -0
  108. package/build/types/inputs/src/TaskExecutorInput.d.ts +30 -0
  109. package/build/types/inputs/src/TextAreaInput.d.ts +27 -0
  110. package/build/types/inputs/src/TextInput.d.ts +33 -0
  111. package/build/types/inputs/src/ToggleInput.d.ts +37 -0
  112. package/build/types/inputs/src/index.d.ts +53 -0
  113. package/build/types/table/src/Table.d.ts +4 -0
  114. package/build/types/table/src/TableActionButtons.d.ts +16 -0
  115. package/build/types/table/src/TableBulkActions.d.ts +19 -0
  116. package/build/types/table/src/TableCard.d.ts +10 -0
  117. package/build/types/table/src/TableEditable.d.ts +18 -0
  118. package/build/types/table/src/TableFilter.d.ts +19 -0
  119. package/build/types/table/src/TablePagination.d.ts +17 -0
  120. package/build/types/table/src/TableRowActions.d.ts +17 -0
  121. package/build/types/table/src/TableUtils.d.ts +3 -0
  122. package/build/types/table/src/index.d.ts +5 -0
  123. package/build/types/table/src/tableLabels.d.ts +14 -0
  124. package/build/types/table/src/types.d.ts +166 -0
  125. package/package.json +2 -3
@@ -0,0 +1,24 @@
1
+ import type { FieldComponent } from '../../core/src/index';
2
+ interface SubField {
3
+ id: number;
4
+ key: string;
5
+ label: string;
6
+ type: 'text' | 'select';
7
+ placeholder?: string;
8
+ options?: string[];
9
+ required?: boolean;
10
+ readonly?: boolean;
11
+ parentId?: number;
12
+ value?: string | string[];
13
+ }
14
+ export interface AddressFormField {
15
+ id: number;
16
+ type: string;
17
+ label: string;
18
+ fields?: SubField[];
19
+ value?: Record<string, string>;
20
+ readonly?: boolean;
21
+ context?: string;
22
+ }
23
+ declare const AddressInput: FieldComponent;
24
+ export default AddressInput;
@@ -0,0 +1,53 @@
1
+ import './ButtonInput.scss';
2
+ import React from 'react';
3
+ import type { FieldComponent } from '../../core/src/index';
4
+ import type { BlockStyle } from '../../core/src/index';
5
+ import { type TooltipPosition } from '../../components/src/index';
6
+ type CustomStyle = {
7
+ button_border_size: number;
8
+ button_border_color: string;
9
+ button_background_color: string;
10
+ button_text_color: string;
11
+ button_border_radious: number;
12
+ button_font_size: number;
13
+ button_font_width: number;
14
+ button_margin_top: number;
15
+ button_margin_right: number;
16
+ button_margin_bottom: number;
17
+ button_margin_left: number;
18
+ button_padding_top: number;
19
+ button_padding_right: number;
20
+ button_padding_bottom: number;
21
+ button_padding_left: number;
22
+ button_border_color_onhover: string;
23
+ button_text_color_onhover: string;
24
+ button_background_color_onhover: string;
25
+ button_text: string;
26
+ };
27
+ export type ButtonConfig = {
28
+ icon?: string;
29
+ leftIcon?: string;
30
+ rightIcon?: string;
31
+ text: string;
32
+ onClick: React.MouseEventHandler<HTMLButtonElement>;
33
+ color?: string;
34
+ /** Extra class(es) appended to `admin-btn btn-{color}` on the rendered <button> — e.g. `'icon'` for the icon-only tighter square padding (`ButtonInput.scss`'s `.admin-btn.icon`). `color` still applies; this only adds modifiers, it doesn't replace anything. */
35
+ className?: string;
36
+ children?: React.ReactNode;
37
+ customStyle?: CustomStyle;
38
+ disabled?: boolean;
39
+ style?: BlockStyle;
40
+ iconPosition?: 'left' | 'right';
41
+ /** Wraps the button in a `TooltipComponent` showing this text on hover — e.g. for an icon-only button (`className: 'icon'`) whose action isn't otherwise labelled. Omit for no tooltip. */
42
+ tooltip?: string;
43
+ /** `tooltip` only — passed straight through to `TooltipComponent`'s own `position`. Defaults to `'top'`. */
44
+ tooltipPosition?: TooltipPosition;
45
+ };
46
+ type ButtonInputProps = {
47
+ buttons: ButtonConfig | ButtonConfig[];
48
+ wrapperClass?: string;
49
+ position?: 'left' | 'right' | 'center' | 'full-width';
50
+ };
51
+ export declare const ButtonInput: React.FC<ButtonInputProps>;
52
+ declare const ButtonInputFieldComponent: FieldComponent;
53
+ export default ButtonInputFieldComponent;
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ import type { FieldComponent } from '../../core/src/index';
3
+ import './CalendarInput.scss';
4
+ export interface CalendarRange {
5
+ startDate?: Date;
6
+ endDate?: Date;
7
+ selectedDates?: Date[];
8
+ }
9
+ interface DisabledDate {
10
+ date: Date | string;
11
+ description: string;
12
+ }
13
+ export interface CalendarLabels {
14
+ presetsTab?: string;
15
+ customTab?: string;
16
+ today?: string;
17
+ yesterday?: string;
18
+ thisWeek?: string;
19
+ lastWeek?: string;
20
+ thisMonth?: string;
21
+ lastMonth?: string;
22
+ weekToDate?: string;
23
+ monthToDate?: string;
24
+ quarterToDate?: string;
25
+ yearToDate?: string;
26
+ }
27
+ interface CalendarInputProps {
28
+ /** Texts of the preset ranges and the two tabs; pass translated strings to override the English defaults. */
29
+ labels?: CalendarLabels;
30
+ inputClass?: string;
31
+ format?: string;
32
+ value?: CalendarRange;
33
+ onChange?: (range?: CalendarRange) => void;
34
+ multiple?: boolean;
35
+ showInput?: boolean;
36
+ numberOfMonths?: number;
37
+ fullYear?: boolean;
38
+ maxFutureMonths?: number;
39
+ showCompare?: boolean;
40
+ calendar?: boolean;
41
+ minDate?: Date;
42
+ disabledDates?: DisabledDate[];
43
+ }
44
+ export declare const CalendarInput: React.FC<CalendarInputProps>;
45
+ declare const CalendarInputFieldComponent: FieldComponent;
46
+ export default CalendarInputFieldComponent;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { FieldComponent } from '../../core/src/index';
3
+ interface PrePostTextProps {
4
+ type: string;
5
+ textType: string;
6
+ preText?: string;
7
+ postText?: string;
8
+ }
9
+ export declare const DecoratedInput: React.FC<PrePostTextProps>;
10
+ declare const AffixTextInputFieldComponent: FieldComponent;
11
+ export default AffixTextInputFieldComponent;
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import './DynamicRowInput.scss';
3
+ import type { FieldComponent } from '../../core/src/index';
4
+ type FieldType = 'text' | 'number' | 'file' | 'select' | 'button';
5
+ type RowValue = Record<string, string | number | File | RowValue[] | null>;
6
+ interface FieldConfig {
7
+ key: string;
8
+ label?: string;
9
+ type: FieldType;
10
+ placeholder?: string;
11
+ options?: {
12
+ label: string;
13
+ value: string;
14
+ children?: RowValue[];
15
+ }[];
16
+ width?: string;
17
+ onClick?: (params: {
18
+ row: RowValue;
19
+ rowIndex: number;
20
+ updateRow: (patch: Partial<RowValue>) => void;
21
+ }) => void;
22
+ }
23
+ interface RowConfig {
24
+ fields: FieldConfig[];
25
+ }
26
+ export interface DynamicRowSettingProps {
27
+ wrapperClass?: string;
28
+ keyName: string;
29
+ template: RowConfig;
30
+ value: RowValue[];
31
+ onChange: (rows: RowValue[]) => void;
32
+ addLabel?: string;
33
+ emptyText?: string;
34
+ /** Text of each row's delete button. */
35
+ deleteText?: string;
36
+ childrenRenderer?: (row: RowValue, rowIndex: number) => React.ReactNode | false;
37
+ canAccess?: boolean;
38
+ }
39
+ declare const DynamicRowInput: React.FC<DynamicRowSettingProps>;
40
+ declare const DynamicRowInputFieldComponent: FieldComponent;
41
+ export default DynamicRowInput;
42
+ export { DynamicRowInputFieldComponent };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './EmailInput.scss';
3
+ import type { FieldComponent } from '../../core/src/index';
4
+ export interface EmailsInputProps {
5
+ mode?: 'single' | 'multiple';
6
+ max?: number;
7
+ value?: string[];
8
+ primary?: string;
9
+ enablePrimary?: boolean;
10
+ placeholder?: string;
11
+ onChange?: (list: string[], primary: string) => void;
12
+ }
13
+ export declare const EmailInput: React.ForwardRefExoticComponent<EmailsInputProps & React.RefAttributes<HTMLInputElement>>;
14
+ declare const EmailListInputFieldComponent: FieldComponent;
15
+ export default EmailListInputFieldComponent;
@@ -0,0 +1,4 @@
1
+ import './EndpointInput.scss';
2
+ import { type FieldComponent } from '../../core/src/index';
3
+ declare const EndpointInput: FieldComponent;
4
+ export default EndpointInput;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { DateObject } from 'react-multi-date-picker';
3
+ import type { FieldComponent } from '../../core/src/index';
4
+ import './EventCalendarInput.scss';
5
+ export interface CalendarEvent {
6
+ id: string;
7
+ title: string;
8
+ description?: string;
9
+ }
10
+ export type EventsData = Record<string, CalendarEvent[]>;
11
+ interface EventCalendarProps {
12
+ wrapperClass?: string;
13
+ format?: string;
14
+ value?: EventsData;
15
+ onChange?: (value: EventsData) => void;
16
+ onMonthChange?: (date: DateObject) => void;
17
+ onEventClick?: (event: CalendarEvent, date: DateObject) => void;
18
+ NumberOfMonth?: number;
19
+ fullYear?: boolean;
20
+ newEventLabel?: string;
21
+ newEventDesc?: string;
22
+ }
23
+ export declare const EventCalendarInput: React.FC<EventCalendarProps>;
24
+ declare const EventCalendarInputFieldComponent: FieldComponent;
25
+ export default EventCalendarInputFieldComponent;
@@ -0,0 +1,116 @@
1
+ import React from 'react';
2
+ import './ExpandablePanelInput.scss';
3
+ import { FieldComponent } from '../../core/src/index';
4
+ interface FieldOption {
5
+ value: string | number;
6
+ label: string;
7
+ desc?: string;
8
+ action?: string;
9
+ redirect?: string;
10
+ }
11
+ interface PanelFormField {
12
+ key: string;
13
+ type: string;
14
+ label: string;
15
+ name?: string;
16
+ desc?: string;
17
+ options?: FieldOption[];
18
+ beforeElement?: React.ReactNode;
19
+ [key: string]: unknown;
20
+ }
21
+ interface ExpandablePanelMethod {
22
+ id: string;
23
+ icon: string;
24
+ label: string;
25
+ desc: string;
26
+ settingDescription: string;
27
+ connected?: boolean;
28
+ formFields?: PanelFormField[];
29
+ wrapperClass?: string;
30
+ openForm?: boolean;
31
+ isCustom?: boolean;
32
+ mandatory?: boolean;
33
+ disableBtn?: boolean;
34
+ hideDeleteBtn?: boolean;
35
+ countBtn?: boolean;
36
+ iconEnable?: boolean;
37
+ iconOptions?: string[];
38
+ primary?: boolean;
39
+ statusLabels?: {
40
+ active: string;
41
+ inactive: string;
42
+ };
43
+ /**
44
+ * A real status badge in the header's own `.panel-badges` slot —
45
+ * unlike the built-in Active/Inactive badge (`disableBtn && !isCustom`
46
+ * only, driven by `isOn`/`statusLabels`), this renders for ANY method
47
+ * (including `isCustom: true` ones, which have no badge of their own
48
+ * otherwise) whenever both are set. The caller owns the color/text —
49
+ * not tied to on/off state, so it can reflect any real status (e.g.
50
+ * AiProvidersPanel.tsx's own "Not connected"/"Needs reconnecting"/
51
+ * "Connected").
52
+ */
53
+ badgeColor?: string;
54
+ badgeText?: string;
55
+ }
56
+ interface AddNewTemplate {
57
+ icon?: string;
58
+ label?: string;
59
+ desc?: string;
60
+ formFields?: PanelFormField[];
61
+ disableBtn?: boolean;
62
+ badgeColor?: string;
63
+ badgeText?: string;
64
+ iconEnable?: boolean;
65
+ iconOptions?: string[];
66
+ editableFields?: {
67
+ title?: boolean;
68
+ description?: boolean;
69
+ mandatory?: boolean;
70
+ };
71
+ showMandatoryCheckbox?: boolean;
72
+ showPrimaryCheckbox?: boolean;
73
+ }
74
+ interface AddNewOption {
75
+ value: string;
76
+ label: string;
77
+ template?: AddNewTemplate;
78
+ }
79
+ /** Visible strings of the expandable panel. English defaults; pass translated text to override any of them. */
80
+ export interface ExpandablePanelLabels {
81
+ clickToEdit?: string;
82
+ active?: string;
83
+ inactive?: string;
84
+ mandatory?: string;
85
+ primary?: string;
86
+ complete?: string;
87
+ /** `(done, total) => "2 of 5 done"`. */
88
+ progress?: (done: number, total: number) => string;
89
+ delete?: string;
90
+ settings?: string;
91
+ hide?: string;
92
+ disable?: string;
93
+ mandatoryDesc?: string;
94
+ primaryDesc?: string;
95
+ selectOption?: string;
96
+ addNew?: string;
97
+ }
98
+ interface ExpandablePanelProps {
99
+ /** Texts of the panel; pass translated strings to override the English defaults. */
100
+ labels?: ExpandablePanelLabels;
101
+ name: string;
102
+ apilink?: string;
103
+ methods: ExpandablePanelMethod[];
104
+ value: Record<string, Record<string, unknown>>;
105
+ onChange: (data: Record<string, Record<string, unknown>>) => void;
106
+ canAccess: boolean;
107
+ addNewBtn?: boolean;
108
+ addNewTemplate?: AddNewTemplate;
109
+ addNewOptions?: AddNewOption[];
110
+ min?: number;
111
+ editTitleShow?: boolean;
112
+ onBlocked?: (type: 'pro' | 'plugin', payload?: unknown) => void;
113
+ }
114
+ export declare const ExpandablePanelInput: React.FC<ExpandablePanelProps>;
115
+ declare const ExpandablePanelInputFieldComponent: FieldComponent;
116
+ export default ExpandablePanelInputFieldComponent;
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import { type FieldComponent } from '../../core/src/index';
3
+ import './FileInput.scss';
4
+ interface FileInputProps {
5
+ wrapperClass?: string;
6
+ inputClass?: string;
7
+ id?: string;
8
+ name?: string;
9
+ placeholder?: string;
10
+ accept?: string;
11
+ onChange?: (value: FileItem | FileItem[]) => void;
12
+ onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
13
+ onMouseOver?: (event: React.MouseEvent<HTMLInputElement>) => void;
14
+ onMouseOut?: (event: React.MouseEvent<HTMLInputElement>) => void;
15
+ onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
16
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
17
+ imageSrc?: string | string[];
18
+ imageWidth?: number;
19
+ imageHeight?: number;
20
+ openUploader?: string;
21
+ labels?: {
22
+ file?: string;
23
+ or?: string;
24
+ upload?: string;
25
+ remove?: string;
26
+ replace?: string;
27
+ selectOrUpload?: string;
28
+ useThisFile?: string;
29
+ };
30
+ size?: string;
31
+ multiple?: boolean;
32
+ }
33
+ interface FileItem {
34
+ id?: number;
35
+ url: string;
36
+ }
37
+ export declare const FileInput: React.FC<FileInputProps>;
38
+ declare const FileInputFieldComponent: FieldComponent;
39
+ export default FileInputFieldComponent;
@@ -0,0 +1,94 @@
1
+ import React, { ReactNode } from 'react';
2
+ import type { SaveStatus } from '../../components/src/index';
3
+ interface DependentPlugin {
4
+ plugin: string;
5
+ name: string;
6
+ link?: string;
7
+ }
8
+ interface InputField {
9
+ key: string;
10
+ id?: string;
11
+ class?: string;
12
+ name?: string;
13
+ type?: string;
14
+ label?: string;
15
+ classes?: string;
16
+ settingDescription?: string;
17
+ desc?: string;
18
+ placeholder?: string;
19
+ moduleEnabled?: string;
20
+ cols?: number;
21
+ apilink?: string;
22
+ action?: string;
23
+ method?: string;
24
+ responseKey?: string;
25
+ link?: string;
26
+ dependent?: DependentCondition | DependentCondition[];
27
+ proSetting?: boolean;
28
+ dependentSetting?: string;
29
+ preText?: string | ReactNode;
30
+ postText?: string | ReactNode;
31
+ beforeElement?: string | ReactNode;
32
+ afterElement?: string | ReactNode;
33
+ row?: boolean;
34
+ icon?: string;
35
+ dependentPlugin?: DependentPlugin[];
36
+ }
37
+ interface SettingsType {
38
+ modal: InputField[];
39
+ submitUrl: string;
40
+ id: string;
41
+ }
42
+ export type MultiSelectOption = {
43
+ label: string;
44
+ value: string | number;
45
+ proSetting?: boolean;
46
+ };
47
+ export type SettingObject = Record<string, unknown>;
48
+ export type SettingValue = string | number | boolean | null | string[] | number[] | MultiSelectOption[] | SettingObject | SettingObject[];
49
+ type Settings = Record<string, SettingValue>;
50
+ interface DependentCondition {
51
+ key: string;
52
+ set?: boolean;
53
+ value?: string | number | boolean | (string | number | boolean)[];
54
+ }
55
+ interface PopupProps {
56
+ moduleName?: string;
57
+ settings?: string;
58
+ plugin?: DependentPlugin | '';
59
+ }
60
+ interface RenderProps {
61
+ settings: SettingsType;
62
+ proSetting: SettingsType;
63
+ setting: Settings;
64
+ updateSetting: (key: string, value: SettingValue) => void;
65
+ modules: string[];
66
+ Popup: React.ComponentType<PopupProps>;
67
+ storeTabSetting?: Record<string, string[]>;
68
+ /**
69
+ * Nests every field after a `type: 'section'` field inside that
70
+ * section's own group (see `renderForm`'s own docblock) instead of
71
+ * rendering `modal` as one flat list — the section then reads as a
72
+ * heading over the fields it introduces. Off by default, matching this
73
+ * component's original flat-list behavior; existing callers are
74
+ * unaffected until they opt in.
75
+ */
76
+ groupBySections?: boolean;
77
+ /**
78
+ * `groupBySections` only — when `true`, every group (including real
79
+ * `type: 'section'` groups) renders as a plain flat field list — no
80
+ * `.settings-section-group` card, no section header — instead of the
81
+ * grouped-card layout `groupBySections` normally produces. Meant to be
82
+ * driven by the same config value as `NavigatorComponent`'s own
83
+ * per-file `hideSettingHeader` (that one hides only its own outer
84
+ * `SectionComponent` header): when a tab hides its outer header, its
85
+ * fields read as one plain list here rather than a headerless card.
86
+ * Defaults to `true`.
87
+ */
88
+ hideSettingHeader?: boolean;
89
+ onSaveStatusChange?: (status: SaveStatus) => void;
90
+ /** Title of the notice shown after a successful save; defaults to "Great!". */
91
+ successTitle?: string;
92
+ }
93
+ declare const InputRenderer: React.FC<RenderProps>;
94
+ export default InputRenderer;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { type FieldComponent } from '../../core/src/index';
3
+ import './LogViewerInput.scss';
4
+ interface LogProps {
5
+ apiLink: string;
6
+ downloadFileName: string;
7
+ downloadBtnText?: string;
8
+ copyBtnText?: string;
9
+ deleteBtnText?: string;
10
+ }
11
+ export declare const LogViewerInput: React.FC<LogProps>;
12
+ declare const LogViewerInputFieldComponent: FieldComponent;
13
+ export default LogViewerInputFieldComponent;
@@ -0,0 +1,48 @@
1
+ import React from 'react';
2
+ import type { FieldComponent } from '../../core/src/index';
3
+ import './MultiCheckboxInput.scss';
4
+ interface Option {
5
+ key?: string;
6
+ value: string;
7
+ label?: string;
8
+ name?: string;
9
+ proSetting?: boolean;
10
+ moduleEnabled?: string;
11
+ desc?: string;
12
+ edit?: boolean;
13
+ dependent?: string;
14
+ /** The option can't be changed. */
15
+ disabled?: boolean;
16
+ }
17
+ interface FieldContext {
18
+ rowKey?: string;
19
+ }
20
+ interface MultiCheckBoxProps {
21
+ wrapperClass?: string;
22
+ selectDeselect?: boolean;
23
+ addNewBtn?: string;
24
+ /** Placeholder of the "add option" input; defaults to English. */
25
+ newOptionPlaceholder?: string;
26
+ onMultiSelectDeselectChange?: (values: string[]) => void;
27
+ options: Option[];
28
+ value?: string[];
29
+ rightContent?: boolean;
30
+ inputInnerWrapperClass?: string;
31
+ tour?: string;
32
+ inputClass?: string;
33
+ type?: 'checkbox' | 'radio';
34
+ onChange: (val: string[]) => void;
35
+ onOptionsChange?: (options: Option[]) => void;
36
+ onBlocked?: (type: 'pro' | 'module', payload?: string) => void;
37
+ modules: string[];
38
+ field?: FieldContext;
39
+ look?: 'toggle' | 'default';
40
+ /** `look="toggle"` only — text shown next to each row's switch reflecting its own checked state, e.g. `{ on: 'Enabled', off: 'Disabled' }`. Omit to render no status text at all. */
41
+ toggleStatusLabel?: {
42
+ on: React.ReactNode;
43
+ off: React.ReactNode;
44
+ };
45
+ }
46
+ export declare const MultiCheckboxInput: React.FC<MultiCheckBoxProps>;
47
+ declare const MultiCheckboxInputFieldComponent: FieldComponent;
48
+ export default MultiCheckboxInputFieldComponent;
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ import './NestedInput.scss';
3
+ import { FieldComponent } from '../../core/src/index';
4
+ type RowType = Record<string, string | number | boolean | string[]>;
5
+ interface NestedFieldOption {
6
+ key?: string;
7
+ value: string;
8
+ label: string;
9
+ proSetting?: boolean;
10
+ check?: boolean;
11
+ }
12
+ interface NestedField {
13
+ key: string;
14
+ type: 'number' | 'choice-toggle' | 'text' | 'select' | 'time' | 'checkbox' | 'textarea' | 'checklist' | 'divider';
15
+ label?: string;
16
+ placeholder?: string;
17
+ options?: NestedFieldOption[];
18
+ dependent?: {
19
+ key: string;
20
+ set: boolean;
21
+ value: string;
22
+ };
23
+ skipFirstRow?: boolean;
24
+ preText?: string;
25
+ postText?: string;
26
+ desc?: string;
27
+ size?: string;
28
+ min?: number;
29
+ defaultValue?: string;
30
+ className?: string;
31
+ proSetting?: boolean;
32
+ selectDeselect?: boolean;
33
+ tour?: string;
34
+ rightContent?: boolean;
35
+ moduleEnabled?: string;
36
+ hideCheckbox?: boolean;
37
+ link?: string;
38
+ }
39
+ interface NestedComponentProps {
40
+ id: string;
41
+ label?: string;
42
+ fields: NestedField[];
43
+ value?: RowType[];
44
+ addButtonLabel?: string;
45
+ deleteButtonLabel?: string;
46
+ onChange: (value: RowType[]) => void;
47
+ single?: boolean;
48
+ wrapperClass?: string;
49
+ canAccess?: boolean;
50
+ mapping?: boolean;
51
+ }
52
+ export declare const NestedInput: React.FC<NestedComponentProps>;
53
+ declare const NestedInputFieldComponent: FieldComponent;
54
+ export default NestedInputFieldComponent;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import './PhoneInput.scss';
3
+ import type { FieldComponent } from '../../core/src/index';
4
+ export interface PhoneValue {
5
+ country_code?: string;
6
+ phone?: string;
7
+ }
8
+ export interface CountryCodeOption {
9
+ label: string;
10
+ value: string;
11
+ }
12
+ interface PhoneInputProps {
13
+ id?: string;
14
+ name?: string;
15
+ value?: PhoneValue;
16
+ onChange: (value: PhoneValue) => void;
17
+ placeholder?: string;
18
+ /** Placeholder of the country-code select. */
19
+ codePlaceholder?: string;
20
+ wrapperClass?: string;
21
+ required?: boolean;
22
+ disabled?: boolean;
23
+ readOnly?: boolean;
24
+ /** Defaults to @zyra/core's own `CountryCodes` (flag + name + dial code, one per ISO country). */
25
+ countryCodeOptions?: CountryCodeOption[];
26
+ }
27
+ export declare const PhoneInput: React.FC<PhoneInputProps>;
28
+ declare const PhoneInputFieldComponent: FieldComponent;
29
+ export default PhoneInputFieldComponent;