@mezzanine-ui/core
Advanced tools
Comparing version 0.11.3 to 0.12.0
import { Size } from '@mezzanine-ui/system/size'; | ||
export declare type InputCheckSize = Size; | ||
export type InputCheckSize = Size; | ||
export declare const inputCheckPrefix = "mzn-input-check"; | ||
@@ -4,0 +4,0 @@ export declare const inputCheckClasses: { |
import { Orientation } from '@mezzanine-ui/system/orientation'; | ||
export declare type InputCheckGroupOrientation = Orientation; | ||
export type InputCheckGroupOrientation = Orientation; | ||
export declare const inputCheckGroupPrefix: "mzn-input-check-group"; | ||
@@ -4,0 +4,0 @@ export declare const inputCheckGroupClasses: { |
import { Severity } from '@mezzanine-ui/system/severity'; | ||
export declare type AlertSeverity = Severity; | ||
export type AlertSeverity = Severity; | ||
export declare const alertPrefix = "mzn-alert"; | ||
@@ -4,0 +4,0 @@ export declare const alertIcons: { |
import { Orientation } from '@mezzanine-ui/system/orientation'; | ||
export declare const appBarPrefix = "mzn-app-bar"; | ||
export declare type AppBarOrientation = Orientation; | ||
export type AppBarOrientation = Orientation; | ||
export declare const appBarClasses: { | ||
@@ -5,0 +5,0 @@ readonly host: "mzn-app-bar"; |
import { MainColor } from '@mezzanine-ui/system/palette'; | ||
import { Size } from '@mezzanine-ui/system/size'; | ||
export declare type ButtonColor = Extract<MainColor, 'primary' | 'secondary'>; | ||
export declare type ButtonSize = Size; | ||
export declare type ButtonVariant = 'contained' | 'outlined' | 'text'; | ||
export type ButtonColor = Extract<MainColor, 'primary' | 'secondary'>; | ||
export type ButtonSize = Size; | ||
export type ButtonVariant = 'contained' | 'outlined' | 'text'; | ||
export declare const buttonPrefix = "mzn-button"; | ||
@@ -7,0 +7,0 @@ export declare const buttonClasses: { |
@@ -5,4 +5,4 @@ import { CssVarInterpolations } from '@mezzanine-ui/system/css'; | ||
import { ButtonSize } from './button'; | ||
export declare type ButtonGroupOrientation = Orientation; | ||
export declare type ButtonGroupSpacing = SpacingLevel; | ||
export type ButtonGroupOrientation = Orientation; | ||
export type ButtonGroupSpacing = SpacingLevel; | ||
export interface ButtonGroupCssVars { | ||
@@ -9,0 +9,0 @@ size: ButtonSize; |
/** Types */ | ||
export declare type CalendarMode = 'year' | 'month' | 'week' | 'day'; | ||
export type CalendarMode = 'year' | 'month' | 'week' | 'day'; | ||
/** ISO 8601 text */ | ||
export declare type DateType = string; | ||
export type DateType = string; | ||
/** Classes */ | ||
@@ -6,0 +6,0 @@ export declare const calendarPrefix = "mzn-calendar"; |
import { DateType } from './calendar'; | ||
/** Method Types */ | ||
export declare type CalendarMethods<TDateType = DateType> = { | ||
export type CalendarMethods<TDateType = DateType> = { | ||
/** Get date infos */ | ||
@@ -5,0 +5,0 @@ getNow: () => TDateType; |
import { InputCheckGroupOrientation, InputCheckSize } from '../_internal/input-check'; | ||
export declare type CheckboxSize = InputCheckSize; | ||
export declare type CheckboxGroupOrientation = InputCheckGroupOrientation; | ||
export type CheckboxSize = InputCheckSize; | ||
export type CheckboxGroupOrientation = InputCheckGroupOrientation; | ||
export interface CheckboxGroupOption { | ||
@@ -5,0 +5,0 @@ disabled?: boolean; |
export declare const drawerPrefix = "mzn-drawer"; | ||
export declare type DrawerPlacement = 'top' | 'right' | 'bottom' | 'left'; | ||
export type DrawerPlacement = 'top' | 'right' | 'bottom' | 'left'; | ||
export declare const drawerClasses: { | ||
@@ -4,0 +4,0 @@ host: string; |
import { CssVarInterpolations } from '@mezzanine-ui/system/css'; | ||
import { MainColor } from '@mezzanine-ui/system/palette'; | ||
export declare type IconColor = 'inherit' | MainColor | 'disabled'; | ||
export type IconColor = 'inherit' | MainColor | 'disabled'; | ||
export interface IconCssVars { | ||
@@ -5,0 +5,0 @@ color?: IconColor; |
import { Size } from '@mezzanine-ui/system/size'; | ||
export declare type InputSize = Size; | ||
export type InputSize = Size; | ||
export declare const inputPrefix = "mzn-input"; | ||
@@ -4,0 +4,0 @@ export declare const inputClasses: { |
import { CssVarInterpolations } from '@mezzanine-ui/system/css'; | ||
import { Size } from '@mezzanine-ui/system/size'; | ||
export declare type MenuSize = Size; | ||
export type MenuSize = Size; | ||
export interface MenuCssVars { | ||
@@ -5,0 +5,0 @@ itemsInView: number; |
import { SeverityWithInfo } from '@mezzanine-ui/system/severity'; | ||
export declare type MessageSeverity = SeverityWithInfo; | ||
export type MessageSeverity = SeverityWithInfo; | ||
export declare const messagePrefix = "mzn-message"; | ||
@@ -4,0 +4,0 @@ export declare const messageIcons: { |
import { SeverityWithInfo } from '@mezzanine-ui/system/severity'; | ||
import { Size } from '@mezzanine-ui/system/size'; | ||
export declare type ModalSeverity = SeverityWithInfo; | ||
export declare type ModalSize = Size | 'extraLarge'; | ||
export type ModalSeverity = SeverityWithInfo; | ||
export type ModalSize = Size | 'extraLarge'; | ||
export declare const modalPrefix = "mzn-modal"; | ||
@@ -6,0 +6,0 @@ export declare const modalSeverityIcons: { |
import { Orientation } from '@mezzanine-ui/system/orientation'; | ||
export declare const navigationPrefix = "mzn-navigation"; | ||
export declare type NavigationOrientation = Orientation; | ||
export type NavigationOrientation = Orientation; | ||
export declare const navigationClasses: { | ||
@@ -5,0 +5,0 @@ readonly host: "mzn-navigation"; |
import { SeverityWithInfo } from '@mezzanine-ui/system/severity'; | ||
export declare type NotificationSeverity = SeverityWithInfo; | ||
export type NotificationSeverity = SeverityWithInfo; | ||
export declare const notificationPrefix = "mzn-notif"; | ||
@@ -4,0 +4,0 @@ export declare const notificationRootPrefix: string; |
{ | ||
"name": "@mezzanine-ui/core", | ||
"version": "0.11.3", | ||
"version": "0.12.0", | ||
"description": "Core for mezzanine-ui", | ||
@@ -31,6 +31,6 @@ "author": "Mezzanine", | ||
"peerDependenciesMeta": { | ||
"moment": { | ||
"dayjs": { | ||
"optional": true | ||
}, | ||
"dayjs": { | ||
"moment": { | ||
"optional": true | ||
@@ -40,7 +40,7 @@ } | ||
"dependencies": { | ||
"@mezzanine-ui/icons": "^0.11.3", | ||
"@mezzanine-ui/system": "^0.11.3", | ||
"@mezzanine-ui/icons": "^0.12.0", | ||
"@mezzanine-ui/system": "^0.12.0", | ||
"lodash": "^4.17.21", | ||
"tslib": "^2.1.0" | ||
"tslib": "^2.4.1" | ||
} | ||
} |
export * from './pagination'; | ||
export * from './paginationItem'; | ||
export * from './paginationJumper'; | ||
export * from './paginationPageSize'; |
export { paginationClasses, paginationPrefix } from './pagination.js'; | ||
export { paginationItemClasses, paginationItemPrefix } from './paginationItem.js'; | ||
export { paginationJumperClasses, paginationJumperPrefix } from './paginationJumper.js'; | ||
export { paginationPageSizeClasses, paginationPageSizePrefix } from './paginationPageSize.js'; |
@@ -7,2 +7,3 @@ export declare const paginationPrefix = "mzn-pagination"; | ||
readonly jumper: "mzn-pagination__jumper"; | ||
readonly pageSize: "mzn-pagination__page-size"; | ||
}; |
@@ -7,4 +7,5 @@ const paginationPrefix = 'mzn-pagination'; | ||
jumper: `${paginationPrefix}__jumper`, | ||
pageSize: `${paginationPrefix}__page-size`, | ||
}; | ||
export { paginationClasses, paginationPrefix }; |
export declare const paginationItemPrefix = "mzn-pagination-item"; | ||
export declare type PaginationItemType = 'page' | 'ellipsis' | 'previous' | 'next' | string; | ||
export type PaginationItemType = 'page' | 'ellipsis' | 'previous' | 'next' | string; | ||
export declare const paginationItemClasses: { | ||
@@ -4,0 +4,0 @@ readonly host: "mzn-pagination-item"; |
@@ -9,3 +9,3 @@ import { DateType } from '../calendar'; | ||
/** Types */ | ||
export declare type RangePickerValue<T = DateType> = undefined[] | [T, T]; | ||
export declare type RangePickerPickingValue<T = DateType> = RangePickerValue | [T] | [undefined, T] | [T, undefined]; | ||
export type RangePickerValue<T = DateType> = undefined[] | [T, T]; | ||
export type RangePickerPickingValue<T = DateType> = RangePickerValue | [T] | [undefined, T] | [T, undefined]; |
@@ -17,3 +17,3 @@ import { Size } from '@mezzanine-ui/system/size'; | ||
}; | ||
export declare type ProgressType = 'line' | 'circle'; | ||
export type ProgressType = 'line' | 'circle'; | ||
export declare enum ProgressTypes { | ||
@@ -23,3 +23,3 @@ line = "line", | ||
} | ||
export declare type ProgressStatus = 'normal' | 'success' | 'error'; | ||
export type ProgressStatus = 'normal' | 'success' | 'error'; | ||
export declare enum ProgressStatuses { | ||
@@ -26,0 +26,0 @@ normal = "normal", |
import { InputCheckGroupOrientation, InputCheckSize } from '../_internal/input-check'; | ||
export declare type RadioSize = InputCheckSize; | ||
export type RadioSize = InputCheckSize; | ||
export interface RadioGroupOption { | ||
@@ -8,3 +8,3 @@ disabled?: boolean; | ||
} | ||
export declare type RadioGroupOrientation = InputCheckGroupOrientation; | ||
export type RadioGroupOrientation = InputCheckGroupOrientation; | ||
export declare const radioPrefix = "mzn-radio"; | ||
@@ -11,0 +11,0 @@ export declare const radioClasses: { |
import { Size } from '@mezzanine-ui/system/size'; | ||
export declare type SelectInputSize = Size; | ||
export declare type SelectMode = 'single' | 'multiple'; | ||
export type SelectInputSize = Size; | ||
export type SelectMode = 'single' | 'multiple'; | ||
export declare const selectPrefix = "mzn-select"; | ||
@@ -5,0 +5,0 @@ export declare const treeSelectPrefix = "mzn-tree-select"; |
import { CssVarInterpolations } from '@mezzanine-ui/system/css'; | ||
/** Types */ | ||
export declare type SingleSliderValue = number; | ||
export declare type RangeSliderValue = [number, number]; | ||
export declare type SliderValue = SingleSliderValue | RangeSliderValue; | ||
export declare type SliderRect = Pick<DOMRect, 'left' | 'width'>; | ||
export type SingleSliderValue = number; | ||
export type RangeSliderValue = [number, number]; | ||
export type SliderValue = SingleSliderValue | RangeSliderValue; | ||
export type SliderRect = Pick<DOMRect, 'left' | 'width'>; | ||
/** Classes */ | ||
@@ -8,0 +8,0 @@ export declare const sliderPrefix = "mzn-slider"; |
import type { IconDefinition } from '@mezzanine-ui/icons'; | ||
import { Size } from '@mezzanine-ui/system/size'; | ||
export declare type SwitchSize = Extract<Size, 'medium' | 'large'>; | ||
export type SwitchSize = Extract<Size, 'medium' | 'large'>; | ||
export declare const switchPrefix = "mzn-switch"; | ||
@@ -5,0 +5,0 @@ export declare const SwitchSpinnerIcon: IconDefinition; |
@@ -29,3 +29,3 @@ export declare const tablePrefix = "mzn-table"; | ||
}; | ||
export declare type TableRecord<T> = Record<string, T>; | ||
export type TableRecord<T> = Record<string, T>; | ||
export interface TableDataSourceWithKey extends TableRecord<unknown> { | ||
@@ -37,7 +37,7 @@ key: string | number; | ||
} | ||
export declare type TableDataSource = TableDataSourceWithKey | TableDataSourceWithID; | ||
export declare type TableColumn<SourceType> = { | ||
export type TableDataSource = TableDataSourceWithKey | TableDataSourceWithID; | ||
export type TableColumn<SourceType> = { | ||
dataIndex: string; | ||
title?: string; | ||
render?(column: TableColumn<SourceType>, source: SourceType, index: number): any; | ||
render?(source: SourceType, index: number, column: TableColumn<SourceType>): any; | ||
renderTitle?(classes: typeof tableClasses): any; | ||
@@ -58,4 +58,4 @@ renderTooltipTitle?(source: SourceType): string; | ||
}; | ||
export declare type ExpandedTableColumn = Omit<TableColumn<TableRecord<unknown>>, 'title' | 'renderTitle' | 'align' | 'headerClassName' | 'width' | 'sorter' | 'onSorted' | 'editable' | 'setCellProps'>; | ||
export declare type TableFetchMore = { | ||
export type ExpandedTableColumn = Omit<TableColumn<TableRecord<unknown>>, 'title' | 'renderTitle' | 'align' | 'headerClassName' | 'width' | 'sorter' | 'onSorted' | 'editable' | 'setCellProps'>; | ||
export type TableFetchMore = { | ||
callback?(): any; | ||
@@ -78,9 +78,10 @@ isReachEnd?: boolean; | ||
/** === Feature Expandable */ | ||
export type ExpandRowBySources = { | ||
dataSource: TableDataSource[]; | ||
columns?: ExpandedTableColumn[]; | ||
className?: string; | ||
}; | ||
export interface TableExpandable<SourceType> { | ||
className?: string; | ||
expandedRowRender(record: SourceType): string | { | ||
dataSource: TableDataSource[]; | ||
columns?: ExpandedTableColumn[]; | ||
className?: string; | ||
}; | ||
expandedRowRender(record: SourceType): string | ExpandRowBySources; | ||
rowExpandable?(record: SourceType): boolean; | ||
@@ -102,3 +103,14 @@ onExpand?(record: SourceType, status: boolean): void; | ||
hidePreviousButton?: boolean; | ||
jumperButtonText?: string; | ||
jumperHintText?: string; | ||
jumperInputPlaceholder?: string; | ||
onChangePageSize?: (pageSize: number) => void; | ||
pageSize?: number; | ||
pageSizeLabel?: string; | ||
pageSizeOptions?: number[]; | ||
pageSizeUnit?: string; | ||
renderPageSizeOptionName?: (pageSize: number) => string; | ||
renderPaginationSummary?: (start: number, end: number) => string; | ||
showJumper?: boolean; | ||
showPageSizeOptions?: boolean; | ||
siblingCount?: number; | ||
@@ -105,0 +117,0 @@ }; |
import { Size } from '@mezzanine-ui/system/size'; | ||
export declare type TagSize = Size; | ||
export type TagSize = Size; | ||
export declare const tagPrefix = "mzn-tag"; | ||
@@ -4,0 +4,0 @@ export declare const tagClasses: { |
import { Size } from '@mezzanine-ui/system/size'; | ||
export declare type TextFieldSize = Size; | ||
export type TextFieldSize = Size; | ||
export declare const textFieldPrefix = "mzn-text-field"; | ||
@@ -4,0 +4,0 @@ export declare const textFieldClasses: { |
import { Size } from '@mezzanine-ui/system/size'; | ||
export declare type TextareaSize = Size; | ||
export type TextareaSize = Size; | ||
export declare const textareaPrefix = "mzn-textarea"; | ||
@@ -4,0 +4,0 @@ export declare const textareaClasses: { |
/** Types */ | ||
export declare type TimePanelUnitValue = number; | ||
export declare type TimePanelUnit = { | ||
export type TimePanelUnitValue = number; | ||
export type TimePanelUnit = { | ||
value: TimePanelUnitValue; | ||
label: string; | ||
}; | ||
export declare type TimePanelMode = 'hour' | 'minute' | 'second'; | ||
export type TimePanelMode = 'hour' | 'minute' | 'second'; | ||
/** Classes */ | ||
@@ -9,0 +9,0 @@ export declare const timePanelPrefix = "mzn-time-panel"; |
@@ -1,4 +0,4 @@ | ||
export declare type TreeSelectMethod = 'toggle' | 'target'; | ||
export declare type TreeSize = 'small' | 'medium' | 'large'; | ||
export declare type TreeNodeValue = string | number; | ||
export type TreeSelectMethod = 'toggle' | 'target'; | ||
export type TreeSize = 'small' | 'medium' | 'large'; | ||
export type TreeNodeValue = string | number; | ||
export interface TreeState { | ||
@@ -9,3 +9,3 @@ checkable?: boolean; | ||
} | ||
export declare type TreeNodeState = { | ||
export type TreeNodeState = { | ||
disabled?: boolean; | ||
@@ -12,0 +12,0 @@ expanded?: boolean; |
import { CssVarInterpolations } from '@mezzanine-ui/system/css'; | ||
import { GradualMainColor, MainColor, TextColor } from '@mezzanine-ui/system/palette'; | ||
import { TypographyVariant } from '@mezzanine-ui/system/typography'; | ||
export declare type TypographyAlign = 'left' | 'center' | 'right' | 'justify'; | ||
export declare type TypographyColor = 'inherit' | MainColor | GradualMainColor | TextColor; | ||
declare type TypographyDisplayBase = 'block' | 'flex'; | ||
export declare type TypographyDisplay = TypographyDisplayBase | `inline-${TypographyDisplayBase}`; | ||
export type TypographyAlign = 'left' | 'center' | 'right' | 'justify'; | ||
export type TypographyColor = 'inherit' | MainColor | GradualMainColor | TextColor; | ||
type TypographyDisplayBase = 'block' | 'flex'; | ||
export type TypographyDisplay = TypographyDisplayBase | `inline-${TypographyDisplayBase}`; | ||
export interface TypographyCssVars { | ||
@@ -9,0 +9,0 @@ align?: TypographyAlign; |
import { CssVarInterpolations } from '@mezzanine-ui/system/css'; | ||
import { Size } from '@mezzanine-ui/system/size'; | ||
export declare type UploadResultSize = Size; | ||
export declare type UploadResultStatus = 'done' | 'error' | 'loading'; | ||
export type UploadResultSize = Size; | ||
export type UploadResultStatus = 'done' | 'error' | 'loading'; | ||
export interface UploadResultCssVars { | ||
@@ -6,0 +6,0 @@ percentage?: number; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
201624
389
2502
+ Added@mezzanine-ui/icons@0.12.10(transitive)
+ Added@mezzanine-ui/system@0.12.10(transitive)
- Removed@mezzanine-ui/icons@0.11.3(transitive)
- Removed@mezzanine-ui/system@0.11.3(transitive)
Updated@mezzanine-ui/icons@^0.12.0
Updated@mezzanine-ui/system@^0.12.0
Updatedtslib@^2.4.1