@mezzanine-ui/core 0.11.3 → 0.12.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/_internal/input-check/inputCheck.d.ts +1 -1
- package/_internal/input-check/inputCheckGroup.d.ts +1 -1
- package/_styles.scss +5 -5
- package/alert/alert.d.ts +1 -1
- package/app-bar/_app-bar-styles.scss +2 -2
- package/app-bar/appBar.d.ts +1 -1
- package/button/_button-styles.scss +1 -1
- package/button/button.d.ts +3 -3
- package/button/buttonGroup.d.ts +2 -2
- package/calendar/_calendar-styles.scss +2 -2
- package/calendar/calendar.d.ts +2 -2
- package/calendar/typings.d.ts +1 -1
- package/checkbox/_checkbox-styles.scss +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-styles.scss +6 -6
- package/input/input.d.ts +1 -1
- package/menu/menu.d.ts +1 -1
- package/message/_message-styles.scss +1 -1
- package/message/message.d.ts +1 -1
- package/modal/modal.d.ts +2 -2
- package/navigation/_navigation-styles.scss +1 -1
- package/navigation/navigation.d.ts +1 -1
- package/notification/_notification-styles.scss +2 -2
- package/notification/notification.d.ts +1 -1
- package/package.json +6 -6
- package/pagination/_pagination-styles.scss +20 -1
- package/pagination/_pagination.scss +1 -0
- package/pagination/index.d.ts +1 -0
- package/pagination/index.js +1 -0
- package/pagination/pagination.d.ts +1 -0
- package/pagination/pagination.js +1 -0
- package/pagination/paginationItem.d.ts +1 -1
- package/pagination/paginationPageSize.d.ts +5 -0
- package/pagination/paginationPageSize.js +7 -0
- package/picker/picker.d.ts +2 -2
- package/progress/progress.d.ts +2 -2
- package/radio/_radio-styles.scss +1 -1
- package/radio/radio.d.ts +2 -2
- package/select/_select-styles.scss +6 -6
- package/select/select.d.ts +2 -2
- package/slider/_slider-styles.scss +1 -1
- package/slider/slider.d.ts +4 -4
- package/switch/_switch-styles.scss +1 -1
- package/switch/switch.d.ts +1 -1
- package/table/table.d.ts +23 -11
- package/tag/tag.d.ts +1 -1
- package/text-field/_text-field-styles.scss +5 -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/_upload-result-styles.scss +1 -1
- 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/_styles.scss
CHANGED
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
@include _load-styles($options, calendar);
|
|
29
29
|
@include _load-styles($options, time-panel);
|
|
30
30
|
|
|
31
|
+
// Data Entry Common
|
|
32
|
+
@include _load-styles($options, _internal/input-check, input-check);
|
|
33
|
+
@include _load-styles($options, _internal/input-trigger-popper, input-trigger-popper);
|
|
34
|
+
@include _load-styles($options, text-field);
|
|
35
|
+
|
|
31
36
|
// Navigation
|
|
32
37
|
@include _load-styles($options, menu);
|
|
33
38
|
@include _load-styles($options, tabs);
|
|
@@ -47,11 +52,6 @@
|
|
|
47
52
|
@include _load-styles($options, tree);
|
|
48
53
|
@include _load-styles($options, table);
|
|
49
54
|
|
|
50
|
-
// Data Entry Common
|
|
51
|
-
@include _load-styles($options, _internal/input-check, input-check);
|
|
52
|
-
@include _load-styles($options, _internal/input-trigger-popper, input-trigger-popper);
|
|
53
|
-
@include _load-styles($options, text-field);
|
|
54
|
-
|
|
55
55
|
// Data Entry
|
|
56
56
|
@include _load-styles($options, checkbox);
|
|
57
57
|
@include _load-styles($options, input);
|
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;
|
|
@@ -49,7 +49,7 @@ $vertical-support-max-height: 96px !default;
|
|
|
49
49
|
padding-right: spacing.level(4);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
&:not(:first-child
|
|
52
|
+
&:not(:first-child, :last-child) {
|
|
53
53
|
padding: 0 spacing.level(4);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -93,7 +93,7 @@ $vertical-support-max-height: 96px !default;
|
|
|
93
93
|
padding-bottom: spacing.level(5);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
&:not(:first-child
|
|
96
|
+
&:not(:first-child, :last-child) {
|
|
97
97
|
padding: spacing.level(5) 0;
|
|
98
98
|
}
|
|
99
99
|
}
|
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;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
@include typography.inherit;
|
|
24
24
|
|
|
25
|
-
&[aria-disabled=true] {
|
|
25
|
+
&[aria-disabled='true'] {
|
|
26
26
|
cursor: default;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
justify-content: center;
|
|
126
126
|
position: relative;
|
|
127
127
|
width: 100%;
|
|
128
|
-
margin: 0 0 12px
|
|
128
|
+
margin: 0 0 12px;
|
|
129
129
|
|
|
130
130
|
&__icon-button {
|
|
131
131
|
position: absolute;
|
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-styles.scss
CHANGED
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
padding-right: var(--#{text-field.$prefix}-padding-right);
|
|
35
35
|
|
|
36
36
|
/* clears the 'X' from Internet Explorer */
|
|
37
|
-
&[type=
|
|
38
|
-
&[type=
|
|
37
|
+
&[type='search']::-ms-clear,
|
|
38
|
+
&[type='search']::-ms-reveal {
|
|
39
39
|
display: none;
|
|
40
40
|
width: 0;
|
|
41
41
|
height: 0;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/* clears the 'X' from Chrome */
|
|
45
|
-
&[type=
|
|
46
|
-
&[type=
|
|
47
|
-
&[type=
|
|
48
|
-
&[type=
|
|
45
|
+
&[type='search']::-webkit-search-decoration,
|
|
46
|
+
&[type='search']::-webkit-search-cancel-button,
|
|
47
|
+
&[type='search']::-webkit-search-results-button,
|
|
48
|
+
&[type='search']::-webkit-search-results-decoration {
|
|
49
49
|
display: none;
|
|
50
50
|
}
|
|
51
51
|
}
|
package/input/input.d.ts
CHANGED
package/menu/menu.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ $icon-size: 24px !default;
|
|
|
39
39
|
|
|
40
40
|
@each $severity in $severities {
|
|
41
41
|
&--#{$severity} {
|
|
42
|
-
--#{$prefix}-color: #{palette.color(if($severity ==
|
|
42
|
+
--#{$prefix}-color: #{palette.color(if($severity == 'info', primary, $severity))};
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
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;
|
|
@@ -72,7 +72,7 @@ $icon-size: 24px !default;
|
|
|
72
72
|
overflow: hidden;
|
|
73
73
|
background-color: palette.color(surface);
|
|
74
74
|
border-color: palette.color(border);
|
|
75
|
-
border-width: 0 1px 1px
|
|
75
|
+
border-width: 0 1px 1px;
|
|
76
76
|
border-style: solid;
|
|
77
77
|
.#{$item-prefix} {
|
|
78
78
|
@include typography.variant(input1);
|
|
@@ -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";
|
|
@@ -24,7 +24,7 @@ $icon-gap: 12px !default;
|
|
|
24
24
|
|
|
25
25
|
@each $severity in $severities {
|
|
26
26
|
&--#{$severity} {
|
|
27
|
-
--#{$prefix}-color: #{palette.color(if($severity ==
|
|
27
|
+
--#{$prefix}-color: #{palette.color(if($severity == 'info', primary, $severity))};
|
|
28
28
|
|
|
29
29
|
border: 1px solid var(--#{$prefix}-color);
|
|
30
30
|
}
|
|
@@ -41,7 +41,7 @@ $icon-gap: 12px !default;
|
|
|
41
41
|
|
|
42
42
|
&__title {
|
|
43
43
|
padding-right: 48px;
|
|
44
|
-
margin: 0 0 8px
|
|
44
|
+
margin: 0 0 8px;
|
|
45
45
|
|
|
46
46
|
@include typography.variant(h4);
|
|
47
47
|
}
|
|
@@ -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.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Core for mezzanine-ui",
|
|
5
5
|
"author": "Mezzanine",
|
|
6
6
|
"repository": {
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"moment": "^2.29.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependenciesMeta": {
|
|
31
|
-
"
|
|
31
|
+
"dayjs": {
|
|
32
32
|
"optional": true
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"moment": {
|
|
35
35
|
"optional": true
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@mezzanine-ui/icons": "^0.
|
|
40
|
-
"@mezzanine-ui/system": "^0.
|
|
39
|
+
"@mezzanine-ui/icons": "^0.12.0",
|
|
40
|
+
"@mezzanine-ui/system": "^0.12.0",
|
|
41
41
|
"lodash": "^4.17.21",
|
|
42
|
-
"tslib": "^2.1
|
|
42
|
+
"tslib": "^2.4.1"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -14,6 +14,9 @@ $jumper-margin-left: 24px !default;
|
|
|
14
14
|
$jumper-item-gap: 16px 8px !default;
|
|
15
15
|
$jumper-item-columns: 32px 64px 66px !default;
|
|
16
16
|
|
|
17
|
+
$page-size-margin-right: 24px !default;
|
|
18
|
+
$page-size-gap: 8px !default;
|
|
19
|
+
|
|
17
20
|
.#{$prefix} {
|
|
18
21
|
&__container {
|
|
19
22
|
display: grid;
|
|
@@ -32,6 +35,10 @@ $jumper-item-columns: 32px 64px 66px !default;
|
|
|
32
35
|
justify-content: center;
|
|
33
36
|
}
|
|
34
37
|
|
|
38
|
+
&__page-size {
|
|
39
|
+
margin-right: $page-size-margin-right - $item-gap;
|
|
40
|
+
}
|
|
41
|
+
|
|
35
42
|
&__jumper {
|
|
36
43
|
margin-left: $jumper-margin-left - $item-gap;
|
|
37
44
|
}
|
|
@@ -112,8 +119,20 @@ $jumper-item-columns: 32px 64px 66px !default;
|
|
|
112
119
|
margin: 0;
|
|
113
120
|
}
|
|
114
121
|
|
|
115
|
-
&[type=number] {
|
|
122
|
+
&[type='number'] {
|
|
116
123
|
appearance: textfield;
|
|
117
124
|
}
|
|
118
125
|
}
|
|
119
126
|
}
|
|
127
|
+
|
|
128
|
+
.#{$page-size-prefix} {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-flow: row;
|
|
131
|
+
align-items: center;
|
|
132
|
+
gap: $page-size-gap;
|
|
133
|
+
|
|
134
|
+
&__select {
|
|
135
|
+
max-width: 120px;
|
|
136
|
+
min-width: unset;
|
|
137
|
+
}
|
|
138
|
+
}
|
package/pagination/index.d.ts
CHANGED
package/pagination/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { paginationClasses, paginationPrefix } from './pagination.js';
|
|
2
2
|
export { paginationItemClasses, paginationItemPrefix } from './paginationItem.js';
|
|
3
3
|
export { paginationJumperClasses, paginationJumperPrefix } from './paginationJumper.js';
|
|
4
|
+
export { paginationPageSizeClasses, paginationPageSizePrefix } from './paginationPageSize.js';
|
package/pagination/pagination.js
CHANGED
|
@@ -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-styles.scss
CHANGED
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";
|
|
@@ -33,18 +33,18 @@ $tags-gap: 4px !default;
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/* clears the 'X' from Internet Explorer */
|
|
36
|
-
&[type=
|
|
37
|
-
&[type=
|
|
36
|
+
&[type='search']::-ms-clear,
|
|
37
|
+
&[type='search']::-ms-reveal {
|
|
38
38
|
display: none;
|
|
39
39
|
width: 0;
|
|
40
40
|
height: 0;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/* clears the 'X' from Chrome */
|
|
44
|
-
&[type=
|
|
45
|
-
&[type=
|
|
46
|
-
&[type=
|
|
47
|
-
&[type=
|
|
44
|
+
&[type='search']::-webkit-search-decoration,
|
|
45
|
+
&[type='search']::-webkit-search-cancel-button,
|
|
46
|
+
&[type='search']::-webkit-search-results-button,
|
|
47
|
+
&[type='search']::-webkit-search-results-decoration {
|
|
48
48
|
display: none;
|
|
49
49
|
}
|
|
50
50
|
}
|
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,18 +26,18 @@ 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
|
-
render?(
|
|
40
|
+
render?(source: SourceType, index: number, column: TableColumn<SourceType>): any;
|
|
41
41
|
renderTitle?(classes: typeof tableClasses): any;
|
|
42
42
|
renderTooltipTitle?(source: SourceType): string;
|
|
43
43
|
align?: 'start' | 'center' | 'end';
|
|
@@ -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,13 +72,14 @@ export interface TableRowSelection {
|
|
|
72
72
|
actions?: TableRowAction[];
|
|
73
73
|
}
|
|
74
74
|
/** === Feature Expandable */
|
|
75
|
+
export type ExpandRowBySources = {
|
|
76
|
+
dataSource: TableDataSource[];
|
|
77
|
+
columns?: ExpandedTableColumn[];
|
|
78
|
+
className?: string;
|
|
79
|
+
};
|
|
75
80
|
export interface TableExpandable<SourceType> {
|
|
76
81
|
className?: string;
|
|
77
|
-
expandedRowRender(record: SourceType): string |
|
|
78
|
-
dataSource: TableDataSource[];
|
|
79
|
-
columns?: ExpandedTableColumn[];
|
|
80
|
-
className?: string;
|
|
81
|
-
};
|
|
82
|
+
expandedRowRender(record: SourceType): string | ExpandRowBySources;
|
|
82
83
|
rowExpandable?(record: SourceType): boolean;
|
|
83
84
|
onExpand?(record: SourceType, status: boolean): void;
|
|
84
85
|
}
|
|
@@ -95,7 +96,18 @@ export interface TablePagination {
|
|
|
95
96
|
disabled?: boolean;
|
|
96
97
|
hideNextButton?: boolean;
|
|
97
98
|
hidePreviousButton?: boolean;
|
|
99
|
+
jumperButtonText?: string;
|
|
100
|
+
jumperHintText?: string;
|
|
101
|
+
jumperInputPlaceholder?: string;
|
|
102
|
+
onChangePageSize?: (pageSize: number) => void;
|
|
98
103
|
pageSize?: number;
|
|
104
|
+
pageSizeLabel?: string;
|
|
105
|
+
pageSizeOptions?: number[];
|
|
106
|
+
pageSizeUnit?: string;
|
|
107
|
+
renderPageSizeOptionName?: (pageSize: number) => string;
|
|
108
|
+
renderPaginationSummary?: (start: number, end: number) => string;
|
|
109
|
+
showJumper?: boolean;
|
|
110
|
+
showPageSizeOptions?: boolean;
|
|
99
111
|
siblingCount?: number;
|
|
100
112
|
};
|
|
101
113
|
}
|
package/tag/tag.d.ts
CHANGED
|
@@ -164,7 +164,11 @@ $prefix-suffix-gap: 4px !default;
|
|
|
164
164
|
&:hover,
|
|
165
165
|
&:focus-within {
|
|
166
166
|
&:not(.#{$prefix}--disabled) {
|
|
167
|
-
&:not(
|
|
167
|
+
&:not(
|
|
168
|
+
.#{$prefix}--error,
|
|
169
|
+
.#{form.$field-prefix}--success,
|
|
170
|
+
.#{form.$field-prefix}--error,
|
|
171
|
+
.#{form.$field-prefix}--warning) {
|
|
168
172
|
--#{$prefix}-status-color: #{palette.color(primary)};
|
|
169
173
|
}
|
|
170
174
|
}
|
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
|
}
|