export const BASE_SIZES = ['sm', 'md'] as const export type BaseSize = 'sm' | 'md' export const ALERT_TYPES = ['info', 'success', 'warning', 'error'] as const export type AlertType = (typeof ALERT_TYPES)[number] export const BUTTON_SHAPES = ['normal', 'capsule'] as const export type ButtonShape = (typeof BUTTON_SHAPES)[number] export const BUTTON_LOADING_TYPES = ['normal', 'icon-only'] as const export type ButtonLoadingType = (typeof BUTTON_LOADING_TYPES)[number] export const DIALOG_ACTIONS_ALIGN_LIST = ['right', 'center', 'left'] as const export type DialogActionsAlign = (typeof DIALOG_ACTIONS_ALIGN_LIST)[number] export const POPOVER_ACTIONS_ALIGN_LIST = DIALOG_ACTIONS_ALIGN_LIST export type PopoverActionsAlign = (typeof POPOVER_ACTIONS_ALIGN_LIST)[number] /** * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER * IE no support, use polyfill instead */ export const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 2 ** 53 - 1 export const MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -(2 ** 53 - 1) // https://developer.mozilla.org/en-US/docs/Glossary/RAIL export const RAIL_RESPONSE = 100 export const RAIL_ANIMATION = 100