@mezzanine-ui/core 0.12.4 → 0.12.5
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/_internal/input-check/inputCheck.d.ts +1 -1
- package/_internal/input-check/inputCheckGroup.d.ts +1 -1
- package/alert/alert.d.ts +1 -1
- package/app-bar/appBar.d.ts +1 -1
- package/button/button.d.ts +3 -3
- package/button/buttonGroup.d.ts +2 -2
- package/calendar/calendar.d.ts +2 -2
- package/calendar/typings.d.ts +1 -1
- package/checkbox/checkbox.d.ts +2 -2
- package/drawer/drawer.d.ts +1 -1
- package/icon/icon.d.ts +1 -1
- package/input/input.d.ts +1 -1
- package/menu/menu.d.ts +1 -1
- package/message/message.d.ts +1 -1
- package/modal/modal.d.ts +2 -2
- package/navigation/navigation.d.ts +1 -1
- package/notification/notification.d.ts +1 -1
- package/package.json +3 -3
- package/pagination/paginationItem.d.ts +1 -1
- package/picker/picker.d.ts +2 -2
- package/progress/progress.d.ts +2 -2
- package/radio/radio.d.ts +2 -2
- package/select/select.d.ts +2 -2
- package/slider/slider.d.ts +4 -4
- package/switch/switch.d.ts +1 -1
- package/table/table.d.ts +6 -6
- package/tag/tag.d.ts +1 -1
- package/text-field/textField.d.ts +1 -1
- package/textarea/textarea.d.ts +1 -1
- package/time-panel/timePanel.d.ts +3 -3
- package/tree/tree.d.ts +4 -4
- package/typography/typography.d.ts +4 -4
- package/upload/uploadResult.d.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Size } from '@mezzanine-ui/system/size';
|
|
2
|
-
export
|
|
2
|
+
export type InputCheckSize = Size;
|
|
3
3
|
export declare const inputCheckPrefix = "mzn-input-check";
|
|
4
4
|
export declare const inputCheckClasses: {
|
|
5
5
|
readonly host: "mzn-input-check";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Orientation } from '@mezzanine-ui/system/orientation';
|
|
2
|
-
export
|
|
2
|
+
export type InputCheckGroupOrientation = Orientation;
|
|
3
3
|
export declare const inputCheckGroupPrefix: "mzn-input-check-group";
|
|
4
4
|
export declare const inputCheckGroupClasses: {
|
|
5
5
|
readonly host: "mzn-input-check-group";
|
package/alert/alert.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Severity } from '@mezzanine-ui/system/severity';
|
|
2
|
-
export
|
|
2
|
+
export type AlertSeverity = Severity;
|
|
3
3
|
export declare const alertPrefix = "mzn-alert";
|
|
4
4
|
export declare const alertIcons: {
|
|
5
5
|
readonly success: import("@mezzanine-ui/icons").IconDefinition;
|
package/app-bar/appBar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Orientation } from '@mezzanine-ui/system/orientation';
|
|
2
2
|
export declare const appBarPrefix = "mzn-app-bar";
|
|
3
|
-
export
|
|
3
|
+
export type AppBarOrientation = Orientation;
|
|
4
4
|
export declare const appBarClasses: {
|
|
5
5
|
readonly host: "mzn-app-bar";
|
|
6
6
|
readonly horizontal: "mzn-app-bar--horizontal";
|
package/button/button.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MainColor } from '@mezzanine-ui/system/palette';
|
|
2
2
|
import { Size } from '@mezzanine-ui/system/size';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type ButtonColor = Extract<MainColor, 'primary' | 'secondary'>;
|
|
4
|
+
export type ButtonSize = Size;
|
|
5
|
+
export type ButtonVariant = 'contained' | 'outlined' | 'text';
|
|
6
6
|
export declare const buttonPrefix = "mzn-button";
|
|
7
7
|
export declare const buttonClasses: {
|
|
8
8
|
host: string;
|
package/button/buttonGroup.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { CssVarInterpolations } from '@mezzanine-ui/system/css';
|
|
|
2
2
|
import { Orientation } from '@mezzanine-ui/system/orientation';
|
|
3
3
|
import { SpacingLevel } from '@mezzanine-ui/system/spacing';
|
|
4
4
|
import { ButtonSize } from './button';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type ButtonGroupOrientation = Orientation;
|
|
6
|
+
export type ButtonGroupSpacing = SpacingLevel;
|
|
7
7
|
export interface ButtonGroupCssVars {
|
|
8
8
|
size: ButtonSize;
|
|
9
9
|
spacing?: ButtonGroupSpacing;
|
package/calendar/calendar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Types */
|
|
2
|
-
export
|
|
2
|
+
export type CalendarMode = 'year' | 'month' | 'week' | 'day';
|
|
3
3
|
/** ISO 8601 text */
|
|
4
|
-
export
|
|
4
|
+
export type DateType = string;
|
|
5
5
|
/** Classes */
|
|
6
6
|
export declare const calendarPrefix = "mzn-calendar";
|
|
7
7
|
export declare const calendarBoardPrefix: string;
|
package/calendar/typings.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateType } from './calendar';
|
|
2
2
|
/** Method Types */
|
|
3
|
-
export
|
|
3
|
+
export type CalendarMethods<TDateType = DateType> = {
|
|
4
4
|
/** Get date infos */
|
|
5
5
|
getNow: () => TDateType;
|
|
6
6
|
getSecond: (value: TDateType) => number;
|
package/checkbox/checkbox.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputCheckGroupOrientation, InputCheckSize } from '../_internal/input-check';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type CheckboxSize = InputCheckSize;
|
|
3
|
+
export type CheckboxGroupOrientation = InputCheckGroupOrientation;
|
|
4
4
|
export interface CheckboxGroupOption {
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
label: string | number;
|
package/drawer/drawer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const drawerPrefix = "mzn-drawer";
|
|
2
|
-
export
|
|
2
|
+
export type DrawerPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
3
3
|
export declare const drawerClasses: {
|
|
4
4
|
host: string;
|
|
5
5
|
overlay: string;
|
package/icon/icon.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CssVarInterpolations } from '@mezzanine-ui/system/css';
|
|
2
2
|
import { MainColor } from '@mezzanine-ui/system/palette';
|
|
3
|
-
export
|
|
3
|
+
export type IconColor = 'inherit' | MainColor | 'disabled';
|
|
4
4
|
export interface IconCssVars {
|
|
5
5
|
color?: IconColor;
|
|
6
6
|
size?: number;
|
package/input/input.d.ts
CHANGED
package/menu/menu.d.ts
CHANGED
package/message/message.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SeverityWithInfo } from '@mezzanine-ui/system/severity';
|
|
2
|
-
export
|
|
2
|
+
export type MessageSeverity = SeverityWithInfo;
|
|
3
3
|
export declare const messagePrefix = "mzn-message";
|
|
4
4
|
export declare const messageIcons: {
|
|
5
5
|
readonly success: import("@mezzanine-ui/icons").IconDefinition;
|
package/modal/modal.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SeverityWithInfo } from '@mezzanine-ui/system/severity';
|
|
2
2
|
import { Size } from '@mezzanine-ui/system/size';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ModalSeverity = SeverityWithInfo;
|
|
4
|
+
export type ModalSize = Size | 'extraLarge';
|
|
5
5
|
export declare const modalPrefix = "mzn-modal";
|
|
6
6
|
export declare const modalSeverityIcons: {
|
|
7
7
|
readonly success: import("@mezzanine-ui/icons").IconDefinition;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Orientation } from '@mezzanine-ui/system/orientation';
|
|
2
2
|
export declare const navigationPrefix = "mzn-navigation";
|
|
3
|
-
export
|
|
3
|
+
export type NavigationOrientation = Orientation;
|
|
4
4
|
export declare const navigationClasses: {
|
|
5
5
|
readonly host: "mzn-navigation";
|
|
6
6
|
readonly horizontal: "mzn-navigation--horizontal";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SeverityWithInfo } from '@mezzanine-ui/system/severity';
|
|
2
|
-
export
|
|
2
|
+
export type NotificationSeverity = SeverityWithInfo;
|
|
3
3
|
export declare const notificationPrefix = "mzn-notif";
|
|
4
4
|
export declare const notificationRootPrefix: string;
|
|
5
5
|
export declare const notificationIcons: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mezzanine-ui/core",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.5",
|
|
4
4
|
"description": "Core for mezzanine-ui",
|
|
5
5
|
"author": "Mezzanine",
|
|
6
6
|
"repository": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@mezzanine-ui/icons": "^0.12.
|
|
40
|
-
"@mezzanine-ui/system": "^0.12.
|
|
39
|
+
"@mezzanine-ui/icons": "^0.12.5",
|
|
40
|
+
"@mezzanine-ui/system": "^0.12.5",
|
|
41
41
|
"lodash": "^4.17.21",
|
|
42
42
|
"tslib": "^2.4.1"
|
|
43
43
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const paginationItemPrefix = "mzn-pagination-item";
|
|
2
|
-
export
|
|
2
|
+
export type PaginationItemType = 'page' | 'ellipsis' | 'previous' | 'next' | string;
|
|
3
3
|
export declare const paginationItemClasses: {
|
|
4
4
|
readonly host: "mzn-pagination-item";
|
|
5
5
|
readonly button: "mzn-pagination-item__button";
|
package/picker/picker.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare const pickerClasses: {
|
|
|
6
6
|
readonly arrowIcon: "mzn-picker__arrow-icon";
|
|
7
7
|
};
|
|
8
8
|
/** Types */
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type RangePickerValue<T = DateType> = undefined[] | [T, T];
|
|
10
|
+
export type RangePickerPickingValue<T = DateType> = RangePickerValue | [T] | [undefined, T] | [T, undefined];
|
package/progress/progress.d.ts
CHANGED
|
@@ -14,12 +14,12 @@ export declare const progressClasses: {
|
|
|
14
14
|
readonly success: "mzn-progress--success";
|
|
15
15
|
readonly size: (size: Size) => string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type ProgressType = 'line' | 'circle';
|
|
18
18
|
export declare enum ProgressTypes {
|
|
19
19
|
line = "line",
|
|
20
20
|
circle = "circle"
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type ProgressStatus = 'normal' | 'success' | 'error';
|
|
23
23
|
export declare enum ProgressStatuses {
|
|
24
24
|
normal = "normal",
|
|
25
25
|
success = "success",
|
package/radio/radio.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { InputCheckGroupOrientation, InputCheckSize } from '../_internal/input-check';
|
|
2
|
-
export
|
|
2
|
+
export type RadioSize = InputCheckSize;
|
|
3
3
|
export interface RadioGroupOption {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
label: string | number;
|
|
6
6
|
value: string;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type RadioGroupOrientation = InputCheckGroupOrientation;
|
|
9
9
|
export declare const radioPrefix = "mzn-radio";
|
|
10
10
|
export declare const radioClasses: {
|
|
11
11
|
readonly host: "mzn-radio";
|
package/select/select.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Size } from '@mezzanine-ui/system/size';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type SelectInputSize = Size;
|
|
3
|
+
export type SelectMode = 'single' | 'multiple';
|
|
4
4
|
export declare const selectPrefix = "mzn-select";
|
|
5
5
|
export declare const treeSelectPrefix = "mzn-tree-select";
|
|
6
6
|
export declare const selectTriggerPrefix: string;
|
package/slider/slider.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CssVarInterpolations } from '@mezzanine-ui/system/css';
|
|
2
2
|
/** Types */
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
3
|
+
export type SingleSliderValue = number;
|
|
4
|
+
export type RangeSliderValue = [number, number];
|
|
5
|
+
export type SliderValue = SingleSliderValue | RangeSliderValue;
|
|
6
|
+
export type SliderRect = Pick<DOMRect, 'left' | 'width'>;
|
|
7
7
|
/** Classes */
|
|
8
8
|
export declare const sliderPrefix = "mzn-slider";
|
|
9
9
|
export declare const sliderHandlerPrefix: string;
|
package/switch/switch.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IconDefinition } from '@mezzanine-ui/icons';
|
|
2
2
|
import { Size } from '@mezzanine-ui/system/size';
|
|
3
|
-
export
|
|
3
|
+
export type SwitchSize = Extract<Size, 'medium' | 'large'>;
|
|
4
4
|
export declare const switchPrefix = "mzn-switch";
|
|
5
5
|
export declare const SwitchSpinnerIcon: IconDefinition;
|
|
6
6
|
export declare const switchClasses: {
|
package/table/table.d.ts
CHANGED
|
@@ -26,15 +26,15 @@ export declare const tableClasses: {
|
|
|
26
26
|
readonly paginationActions: "mzn-table__pagination__actions";
|
|
27
27
|
readonly refresh: "mzn-table__refresh";
|
|
28
28
|
};
|
|
29
|
-
export
|
|
29
|
+
export type TableRecord<T> = Record<string, T>;
|
|
30
30
|
export interface TableDataSourceWithKey extends TableRecord<unknown> {
|
|
31
31
|
key: string | number;
|
|
32
32
|
}
|
|
33
33
|
export interface TableDataSourceWithID extends TableRecord<unknown> {
|
|
34
34
|
id: string | number;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
37
|
-
export
|
|
36
|
+
export type TableDataSource = TableDataSourceWithKey | TableDataSourceWithID;
|
|
37
|
+
export type TableColumn<SourceType> = {
|
|
38
38
|
dataIndex: string;
|
|
39
39
|
title?: string;
|
|
40
40
|
render?(source: SourceType, index: number, column: TableColumn<SourceType>): any;
|
|
@@ -53,8 +53,8 @@ export declare type TableColumn<SourceType> = {
|
|
|
53
53
|
/** force display tooltip whenever content is hovered */
|
|
54
54
|
forceShownTooltipWhenHovered?: boolean;
|
|
55
55
|
};
|
|
56
|
-
export
|
|
57
|
-
export
|
|
56
|
+
export type ExpandedTableColumn = Omit<TableColumn<TableRecord<unknown>>, 'title' | 'renderTitle' | 'align' | 'headerClassName' | 'width' | 'sorter' | 'onSorted' | 'editable' | 'setCellProps'>;
|
|
57
|
+
export type TableFetchMore = {
|
|
58
58
|
callback?(): any;
|
|
59
59
|
isReachEnd?: boolean;
|
|
60
60
|
isFetching?: boolean;
|
|
@@ -72,7 +72,7 @@ export interface TableRowSelection {
|
|
|
72
72
|
actions?: TableRowAction[];
|
|
73
73
|
}
|
|
74
74
|
/** === Feature Expandable */
|
|
75
|
-
export
|
|
75
|
+
export type ExpandRowBySources = {
|
|
76
76
|
dataSource: TableDataSource[];
|
|
77
77
|
columns?: ExpandedTableColumn[];
|
|
78
78
|
className?: string;
|
package/tag/tag.d.ts
CHANGED
package/textarea/textarea.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** Types */
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type TimePanelUnitValue = number;
|
|
3
|
+
export type TimePanelUnit = {
|
|
4
4
|
value: TimePanelUnitValue;
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type TimePanelMode = 'hour' | 'minute' | 'second';
|
|
8
8
|
/** Classes */
|
|
9
9
|
export declare const timePanelPrefix = "mzn-time-panel";
|
|
10
10
|
export declare const timePanelColumnsPrefix: string;
|
package/tree/tree.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type TreeSelectMethod = 'toggle' | 'target';
|
|
2
|
+
export type TreeSize = 'small' | 'medium' | 'large';
|
|
3
|
+
export type TreeNodeValue = string | number;
|
|
4
4
|
export interface TreeState {
|
|
5
5
|
checkable?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
selectable?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type TreeNodeState = {
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
expanded?: boolean;
|
|
12
12
|
indeterminate?: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CssVarInterpolations } from '@mezzanine-ui/system/css';
|
|
2
2
|
import { GradualMainColor, MainColor, TextColor } from '@mezzanine-ui/system/palette';
|
|
3
3
|
import { TypographyVariant } from '@mezzanine-ui/system/typography';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
export
|
|
4
|
+
export type TypographyAlign = 'left' | 'center' | 'right' | 'justify';
|
|
5
|
+
export type TypographyColor = 'inherit' | MainColor | GradualMainColor | TextColor;
|
|
6
|
+
type TypographyDisplayBase = 'block' | 'flex';
|
|
7
|
+
export type TypographyDisplay = TypographyDisplayBase | `inline-${TypographyDisplayBase}`;
|
|
8
8
|
export interface TypographyCssVars {
|
|
9
9
|
align?: TypographyAlign;
|
|
10
10
|
color?: TypographyColor;
|
package/upload/uploadResult.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CssVarInterpolations } from '@mezzanine-ui/system/css';
|
|
2
2
|
import { Size } from '@mezzanine-ui/system/size';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type UploadResultSize = Size;
|
|
4
|
+
export type UploadResultStatus = 'done' | 'error' | 'loading';
|
|
5
5
|
export interface UploadResultCssVars {
|
|
6
6
|
percentage?: number;
|
|
7
7
|
}
|