@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.
Files changed (56) hide show
  1. package/_internal/input-check/inputCheck.d.ts +1 -1
  2. package/_internal/input-check/inputCheckGroup.d.ts +1 -1
  3. package/_styles.scss +5 -5
  4. package/alert/alert.d.ts +1 -1
  5. package/app-bar/_app-bar-styles.scss +2 -2
  6. package/app-bar/appBar.d.ts +1 -1
  7. package/button/_button-styles.scss +1 -1
  8. package/button/button.d.ts +3 -3
  9. package/button/buttonGroup.d.ts +2 -2
  10. package/calendar/_calendar-styles.scss +2 -2
  11. package/calendar/calendar.d.ts +2 -2
  12. package/calendar/typings.d.ts +1 -1
  13. package/checkbox/_checkbox-styles.scss +1 -1
  14. package/checkbox/checkbox.d.ts +2 -2
  15. package/drawer/drawer.d.ts +1 -1
  16. package/icon/icon.d.ts +1 -1
  17. package/input/_input-styles.scss +6 -6
  18. package/input/input.d.ts +1 -1
  19. package/menu/menu.d.ts +1 -1
  20. package/message/_message-styles.scss +1 -1
  21. package/message/message.d.ts +1 -1
  22. package/modal/modal.d.ts +2 -2
  23. package/navigation/_navigation-styles.scss +1 -1
  24. package/navigation/navigation.d.ts +1 -1
  25. package/notification/_notification-styles.scss +2 -2
  26. package/notification/notification.d.ts +1 -1
  27. package/package.json +6 -6
  28. package/pagination/_pagination-styles.scss +20 -1
  29. package/pagination/_pagination.scss +1 -0
  30. package/pagination/index.d.ts +1 -0
  31. package/pagination/index.js +1 -0
  32. package/pagination/pagination.d.ts +1 -0
  33. package/pagination/pagination.js +1 -0
  34. package/pagination/paginationItem.d.ts +1 -1
  35. package/pagination/paginationPageSize.d.ts +5 -0
  36. package/pagination/paginationPageSize.js +7 -0
  37. package/picker/picker.d.ts +2 -2
  38. package/progress/progress.d.ts +2 -2
  39. package/radio/_radio-styles.scss +1 -1
  40. package/radio/radio.d.ts +2 -2
  41. package/select/_select-styles.scss +6 -6
  42. package/select/select.d.ts +2 -2
  43. package/slider/_slider-styles.scss +1 -1
  44. package/slider/slider.d.ts +4 -4
  45. package/switch/_switch-styles.scss +1 -1
  46. package/switch/switch.d.ts +1 -1
  47. package/table/table.d.ts +23 -11
  48. package/tag/tag.d.ts +1 -1
  49. package/text-field/_text-field-styles.scss +5 -1
  50. package/text-field/textField.d.ts +1 -1
  51. package/textarea/textarea.d.ts +1 -1
  52. package/time-panel/timePanel.d.ts +3 -3
  53. package/tree/tree.d.ts +4 -4
  54. package/typography/typography.d.ts +4 -4
  55. package/upload/_upload-result-styles.scss +1 -1
  56. package/upload/uploadResult.d.ts +2 -2
@@ -1,5 +1,5 @@
1
1
  import { Size } from '@mezzanine-ui/system/size';
2
- export declare type InputCheckSize = Size;
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 declare type InputCheckGroupOrientation = Orientation;
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 declare type AlertSeverity = Severity;
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):not(:last-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):not(:last-child) {
96
+ &:not(:first-child, :last-child) {
97
97
  padding: spacing.level(5) 0;
98
98
  }
99
99
  }
@@ -1,6 +1,6 @@
1
1
  import { Orientation } from '@mezzanine-ui/system/orientation';
2
2
  export declare const appBarPrefix = "mzn-app-bar";
3
- export declare type AppBarOrientation = Orientation;
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";
@@ -11,7 +11,7 @@
11
11
  $colors-and-danger: list.push($colors, danger);
12
12
 
13
13
  @function _get-colors($name) {
14
- @return if($name == "danger", "error", $name);
14
+ @return if($name == 'danger', 'error', $name);
15
15
  }
16
16
 
17
17
  $label-min-width: 32px !default;
@@ -1,8 +1,8 @@
1
1
  import { MainColor } from '@mezzanine-ui/system/palette';
2
2
  import { Size } from '@mezzanine-ui/system/size';
3
- export declare type ButtonColor = Extract<MainColor, 'primary' | 'secondary'>;
4
- export declare type ButtonSize = Size;
5
- export declare type ButtonVariant = 'contained' | 'outlined' | 'text';
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;
@@ -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 declare type ButtonGroupOrientation = Orientation;
6
- export declare type ButtonGroupSpacing = SpacingLevel;
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 0;
128
+ margin: 0 0 12px;
129
129
 
130
130
  &__icon-button {
131
131
  position: absolute;
@@ -1,7 +1,7 @@
1
1
  /** Types */
2
- export declare type CalendarMode = 'year' | 'month' | 'week' | 'day';
2
+ export type CalendarMode = 'year' | 'month' | 'week' | 'day';
3
3
  /** ISO 8601 text */
4
- export declare type DateType = string;
4
+ export type DateType = string;
5
5
  /** Classes */
6
6
  export declare const calendarPrefix = "mzn-calendar";
7
7
  export declare const calendarBoardPrefix: string;
@@ -1,6 +1,6 @@
1
1
  import { DateType } from './calendar';
2
2
  /** Method Types */
3
- export declare type CalendarMethods<TDateType = DateType> = {
3
+ export type CalendarMethods<TDateType = DateType> = {
4
4
  /** Get date infos */
5
5
  getNow: () => TDateType;
6
6
  getSecond: (value: TDateType) => number;
@@ -40,7 +40,7 @@ $indeterminate-line-width-small: 5px !default;
40
40
  &::after {
41
41
  display: block;
42
42
  position: absolute;
43
- content: "";
43
+ content: '';
44
44
  opacity: 0;
45
45
  transition: transition.standard(opacity);
46
46
  will-change: opacity;
@@ -1,6 +1,6 @@
1
1
  import { InputCheckGroupOrientation, InputCheckSize } from '../_internal/input-check';
2
- export declare type CheckboxSize = InputCheckSize;
3
- export declare type CheckboxGroupOrientation = InputCheckGroupOrientation;
2
+ export type CheckboxSize = InputCheckSize;
3
+ export type CheckboxGroupOrientation = InputCheckGroupOrientation;
4
4
  export interface CheckboxGroupOption {
5
5
  disabled?: boolean;
6
6
  label: string | number;
@@ -1,5 +1,5 @@
1
1
  export declare const drawerPrefix = "mzn-drawer";
2
- export declare type DrawerPlacement = 'top' | 'right' | 'bottom' | 'left';
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 declare type IconColor = 'inherit' | MainColor | 'disabled';
3
+ export type IconColor = 'inherit' | MainColor | 'disabled';
4
4
  export interface IconCssVars {
5
5
  color?: IconColor;
6
6
  size?: number;
@@ -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="search"]::-ms-clear,
38
- &[type="search"]::-ms-reveal {
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="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 {
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
@@ -1,5 +1,5 @@
1
1
  import { Size } from '@mezzanine-ui/system/size';
2
- export declare type InputSize = Size;
2
+ export type InputSize = Size;
3
3
  export declare const inputPrefix = "mzn-input";
4
4
  export declare const inputClasses: {
5
5
  readonly host: "mzn-input";
package/menu/menu.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CssVarInterpolations } from '@mezzanine-ui/system/css';
2
2
  import { Size } from '@mezzanine-ui/system/size';
3
- export declare type MenuSize = Size;
3
+ export type MenuSize = Size;
4
4
  export interface MenuCssVars {
5
5
  itemsInView: number;
6
6
  maxHeight?: number;
@@ -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 == "info", primary, $severity))};
42
+ --#{$prefix}-color: #{palette.color(if($severity == 'info', primary, $severity))};
43
43
  }
44
44
  }
45
45
 
@@ -1,5 +1,5 @@
1
1
  import { SeverityWithInfo } from '@mezzanine-ui/system/severity';
2
- export declare type MessageSeverity = SeverityWithInfo;
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 declare type ModalSeverity = SeverityWithInfo;
4
- export declare type ModalSize = Size | 'extraLarge';
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 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 declare type NavigationOrientation = Orientation;
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 == "info", primary, $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 0;
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 declare type NotificationSeverity = SeverityWithInfo;
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.11.3",
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
- "moment": {
31
+ "dayjs": {
32
32
  "optional": true
33
33
  },
34
- "dayjs": {
34
+ "moment": {
35
35
  "optional": true
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@mezzanine-ui/icons": "^0.11.3",
40
- "@mezzanine-ui/system": "^0.11.3",
39
+ "@mezzanine-ui/icons": "^0.12.0",
40
+ "@mezzanine-ui/system": "^0.12.0",
41
41
  "lodash": "^4.17.21",
42
- "tslib": "^2.1.0"
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
+ }
@@ -1,3 +1,4 @@
1
1
  $prefix: mzn-pagination;
2
2
  $item-prefix: #{$prefix}-item;
3
3
  $jumper-prefix: #{$prefix}-jumper;
4
+ $page-size-prefix: #{$prefix}-page-size;
@@ -1,3 +1,4 @@
1
1
  export * from './pagination';
2
2
  export * from './paginationItem';
3
3
  export * from './paginationJumper';
4
+ export * from './paginationPageSize';
@@ -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';
@@ -4,4 +4,5 @@ export declare const paginationClasses: {
4
4
  readonly container: "mzn-pagination__container";
5
5
  readonly item: "mzn-pagination__item";
6
6
  readonly jumper: "mzn-pagination__jumper";
7
+ readonly pageSize: "mzn-pagination__page-size";
7
8
  };
@@ -4,6 +4,7 @@ const paginationClasses = {
4
4
  container: `${paginationPrefix}__container`,
5
5
  item: `${paginationPrefix}__item`,
6
6
  jumper: `${paginationPrefix}__jumper`,
7
+ pageSize: `${paginationPrefix}__page-size`,
7
8
  };
8
9
 
9
10
  export { paginationClasses, paginationPrefix };
@@ -1,5 +1,5 @@
1
1
  export declare const paginationItemPrefix = "mzn-pagination-item";
2
- export declare type PaginationItemType = 'page' | 'ellipsis' | 'previous' | 'next' | string;
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";
@@ -0,0 +1,5 @@
1
+ export declare const paginationPageSizePrefix = "mzn-pagination-page-size";
2
+ export declare const paginationPageSizeClasses: {
3
+ readonly host: "mzn-pagination-page-size";
4
+ readonly select: "mzn-pagination-page-size__select";
5
+ };
@@ -0,0 +1,7 @@
1
+ const paginationPageSizePrefix = 'mzn-pagination-page-size';
2
+ const paginationPageSizeClasses = {
3
+ host: paginationPageSizePrefix,
4
+ select: `${paginationPageSizePrefix}__select`,
5
+ };
6
+
7
+ export { paginationPageSizeClasses, paginationPageSizePrefix };
@@ -6,5 +6,5 @@ export declare const pickerClasses: {
6
6
  readonly arrowIcon: "mzn-picker__arrow-icon";
7
7
  };
8
8
  /** Types */
9
- export declare type RangePickerValue<T = DateType> = undefined[] | [T, T];
10
- export declare type RangePickerPickingValue<T = DateType> = RangePickerValue | [T] | [undefined, T] | [T, undefined];
9
+ export type RangePickerValue<T = DateType> = undefined[] | [T, T];
10
+ export type RangePickerPickingValue<T = DateType> = RangePickerValue | [T] | [undefined, T] | [T, undefined];
@@ -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 declare type ProgressType = 'line' | 'circle';
17
+ export type ProgressType = 'line' | 'circle';
18
18
  export declare enum ProgressTypes {
19
19
  line = "line",
20
20
  circle = "circle"
21
21
  }
22
- export declare type ProgressStatus = 'normal' | 'success' | 'error';
22
+ export type ProgressStatus = 'normal' | 'success' | 'error';
23
23
  export declare enum ProgressStatuses {
24
24
  normal = "normal",
25
25
  success = "success",
@@ -22,7 +22,7 @@ $dot-size-small: 6px !default;
22
22
  &::before {
23
23
  display: block;
24
24
  position: absolute;
25
- content: "";
25
+ content: '';
26
26
  top: var(--#{$prefix}-dot-top);
27
27
  left: var(--#{$prefix}-dot-top);
28
28
  width: var(--#{$prefix}-dot-size);
package/radio/radio.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { InputCheckGroupOrientation, InputCheckSize } from '../_internal/input-check';
2
- export declare type RadioSize = InputCheckSize;
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 declare type RadioGroupOrientation = InputCheckGroupOrientation;
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="search"]::-ms-clear,
37
- &[type="search"]::-ms-reveal {
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="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 {
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
  }
@@ -1,6 +1,6 @@
1
1
  import { Size } from '@mezzanine-ui/system/size';
2
- export declare type SelectInputSize = Size;
3
- export declare type SelectMode = 'single' | 'multiple';
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;
@@ -50,7 +50,7 @@ $handler-scale-size: 24px !default;
50
50
  margin: 0;
51
51
  }
52
52
 
53
- &[type=number] {
53
+ &[type='number'] {
54
54
  appearance: textfield;
55
55
  }
56
56
  }
@@ -1,9 +1,9 @@
1
1
  import { CssVarInterpolations } from '@mezzanine-ui/system/css';
2
2
  /** Types */
3
- export declare type SingleSliderValue = number;
4
- export declare type RangeSliderValue = [number, number];
5
- export declare type SliderValue = SingleSliderValue | RangeSliderValue;
6
- export declare type SliderRect = Pick<DOMRect, 'left' | 'width'>;
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;
@@ -36,7 +36,7 @@ $icon-size-large: $height-large - ($control-gap * 2);
36
36
 
37
37
  &__control {
38
38
  position: absolute;
39
- content: "";
39
+ content: '';
40
40
  top: $control-gap;
41
41
  left: $control-gap;
42
42
  font-size: var(--#{$prefix}-icon-size);
@@ -1,6 +1,6 @@
1
1
  import type { IconDefinition } from '@mezzanine-ui/icons';
2
2
  import { Size } from '@mezzanine-ui/system/size';
3
- export declare type SwitchSize = Extract<Size, 'medium' | 'large'>;
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 declare type TableRecord<T> = Record<string, T>;
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 declare type TableDataSource = TableDataSourceWithKey | TableDataSourceWithID;
37
- export declare type TableColumn<SourceType> = {
36
+ export type TableDataSource = TableDataSourceWithKey | TableDataSourceWithID;
37
+ export type TableColumn<SourceType> = {
38
38
  dataIndex: string;
39
39
  title?: string;
40
- render?(column: TableColumn<SourceType>, source: SourceType, index: number): any;
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 declare type ExpandedTableColumn = Omit<TableColumn<TableRecord<unknown>>, 'title' | 'renderTitle' | 'align' | 'headerClassName' | 'width' | 'sorter' | 'onSorted' | 'editable' | 'setCellProps'>;
57
- export declare type TableFetchMore = {
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
@@ -1,5 +1,5 @@
1
1
  import { Size } from '@mezzanine-ui/system/size';
2
- export declare type TagSize = Size;
2
+ export type TagSize = Size;
3
3
  export declare const tagPrefix = "mzn-tag";
4
4
  export declare const tagClasses: {
5
5
  readonly host: "mzn-tag";
@@ -164,7 +164,11 @@ $prefix-suffix-gap: 4px !default;
164
164
  &:hover,
165
165
  &:focus-within {
166
166
  &:not(.#{$prefix}--disabled) {
167
- &:not(.#{$prefix}--error, .#{form.$field-prefix}--success, .#{form.$field-prefix}--error, .#{form.$field-prefix}--warning) {
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
  }
@@ -1,5 +1,5 @@
1
1
  import { Size } from '@mezzanine-ui/system/size';
2
- export declare type TextFieldSize = Size;
2
+ export type TextFieldSize = Size;
3
3
  export declare const textFieldPrefix = "mzn-text-field";
4
4
  export declare const textFieldClasses: {
5
5
  readonly host: "mzn-text-field";
@@ -1,5 +1,5 @@
1
1
  import { Size } from '@mezzanine-ui/system/size';
2
- export declare type TextareaSize = Size;
2
+ export type TextareaSize = Size;
3
3
  export declare const textareaPrefix = "mzn-textarea";
4
4
  export declare const textareaClasses: {
5
5
  readonly host: "mzn-textarea";
@@ -1,10 +1,10 @@
1
1
  /** Types */
2
- export declare type TimePanelUnitValue = number;
3
- export declare type TimePanelUnit = {
2
+ export type TimePanelUnitValue = number;
3
+ export type TimePanelUnit = {
4
4
  value: TimePanelUnitValue;
5
5
  label: string;
6
6
  };
7
- export declare type TimePanelMode = 'hour' | 'minute' | 'second';
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 declare type TreeSelectMethod = 'toggle' | 'target';
2
- export declare type TreeSize = 'small' | 'medium' | 'large';
3
- export declare type TreeNodeValue = string | number;
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 declare type TreeNodeState = {
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 declare type TypographyAlign = 'left' | 'center' | 'right' | 'justify';
5
- export declare type TypographyColor = 'inherit' | MainColor | GradualMainColor | TextColor;
6
- declare type TypographyDisplayBase = 'block' | 'flex';
7
- export declare type TypographyDisplay = TypographyDisplayBase | `inline-${TypographyDisplayBase}`;
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;
@@ -56,7 +56,7 @@ $name-icon-gap: 4px !default;
56
56
 
57
57
  &::before {
58
58
  position: absolute;
59
- content: "";
59
+ content: '';
60
60
  top: 0;
61
61
  left: 0;
62
62
  width: 100%;
@@ -1,7 +1,7 @@
1
1
  import { CssVarInterpolations } from '@mezzanine-ui/system/css';
2
2
  import { Size } from '@mezzanine-ui/system/size';
3
- export declare type UploadResultSize = Size;
4
- export declare type UploadResultStatus = 'done' | 'error' | 'loading';
3
+ export type UploadResultSize = Size;
4
+ export type UploadResultStatus = 'done' | 'error' | 'loading';
5
5
  export interface UploadResultCssVars {
6
6
  percentage?: number;
7
7
  }