@panneau/core 4.0.41 → 4.0.48
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 +7 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType, ReactNode } from 'react';
|
|
1
|
+
import { ElementType, ReactNode, MouseEvent } from 'react';
|
|
2
2
|
import EventEmitter from 'wolfy87-eventemitter';
|
|
3
3
|
import { Tracking as Tracking$1 } from '@folklore/tracking';
|
|
4
4
|
import { MessageDescriptor } from 'react-intl';
|
|
@@ -203,10 +203,11 @@ interface MenuItem {
|
|
|
203
203
|
/**
|
|
204
204
|
* Button definition
|
|
205
205
|
*/
|
|
206
|
+
type ButtonElement = HTMLButtonElement | HTMLAnchorElement;
|
|
206
207
|
interface Button {
|
|
207
208
|
id?: string;
|
|
208
209
|
label?: Label;
|
|
209
|
-
onClick?: () => void;
|
|
210
|
+
onClick?: (e: MouseEvent<ButtonElement>, button?: Button, index?: number) => void;
|
|
210
211
|
href?: string;
|
|
211
212
|
target?: string;
|
|
212
213
|
theme?: ButtonTheme;
|
|
@@ -214,6 +215,9 @@ interface Button {
|
|
|
214
215
|
type?: ButtonType;
|
|
215
216
|
disabled?: boolean;
|
|
216
217
|
external?: boolean;
|
|
218
|
+
className?: string;
|
|
219
|
+
component?: string | ElementType;
|
|
220
|
+
renderButton?: (button: Button, index: number, fixedProps: Record<string, unknown>) => ReactNode;
|
|
217
221
|
}
|
|
218
222
|
/**
|
|
219
223
|
* Button theme variants (Bootstrap 5)
|
|
@@ -516,4 +520,4 @@ interface Definition {
|
|
|
516
520
|
}
|
|
517
521
|
|
|
518
522
|
export { ComponentsManager, DefinitionsManager, EventsManager, FieldsManager, FontsParser, FormsManager, MediasParser, Tracking };
|
|
519
|
-
export type { Action, ActionDefinition, ActionValue, Breadcrumb, Button, ButtonSize, ButtonTheme, ButtonType, ControlSize, Definition, DropdownAlign, Feedback, Field, FieldOption, Filter, Font, Form, FormError, FormStatus, Item, Label, Media, MenuItem, Message, Modal, Page, Pagination, PanneauComponents, PanneauDefinition, PanneauIntl, PanneauIntlValues, PanneauTheme, Preview, Resource, ResourceIndex, ResourceIntl, ResourceIntlValues, ResourceItem, Routes, SelectOption, StatusCode, TableColumn, Toggle, TrackingVariables, TriggerUpdate, Uppy, User, uppy };
|
|
523
|
+
export type { Action, ActionDefinition, ActionValue, Breadcrumb, Button, ButtonElement, ButtonSize, ButtonTheme, ButtonType, ControlSize, Definition, DropdownAlign, Feedback, Field, FieldOption, Filter, Font, Form, FormError, FormStatus, Item, Label, Media, MenuItem, Message, Modal, Page, Pagination, PanneauComponents, PanneauDefinition, PanneauIntl, PanneauIntlValues, PanneauTheme, Preview, Resource, ResourceIndex, ResourceIntl, ResourceIntlValues, ResourceItem, Routes, SelectOption, StatusCode, TableColumn, Toggle, TrackingVariables, TriggerUpdate, Uppy, User, uppy };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.48",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"publishConfig": {
|
|
97
97
|
"access": "public"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "668d90a05a094fe55fcea760df3f9c294c6cbb31"
|
|
100
100
|
}
|