@semcore/date-picker
Advanced tools
Comparing version 1.0.3 to 1.1.2
@@ -5,2 +5,20 @@ # Changelog | ||
## [1.1.2] - 2019-10-07 | ||
### Change | ||
- Добавлен импорт `ButtonTrigger` | ||
## [1.1.1] - 2019-10-07 | ||
### Change | ||
- Добавлена зависимость от `@semcore/base-trigger` | ||
## [1.1.0] - 2019-10-04 | ||
### Added | ||
- Добавлен свойство `unclearable` | ||
## [1.0.3] - 2019-09-30 | ||
@@ -28,3 +46,3 @@ | ||
- Добавлен `MonthPicker`/`MonthRangePicker` | ||
- Добавлен `MonthPicker`/`MonthRangePicker` | ||
@@ -31,0 +49,0 @@ ### Fixed |
@@ -1,51 +0,9 @@ | ||
import React, { PureComponent } from 'react'; | ||
import { IBoxProps } from '@semcore/flex-box'; | ||
export interface IDatePickerButtonTriggerProps extends IBoxProps { | ||
/** | ||
* Размер триггера | ||
*/ | ||
size?: 'm' | 'l' | 'xl' | false; | ||
/** | ||
* Тема триггера | ||
*/ | ||
theme?: 'normal' | 'valid' | 'invalid' | false; | ||
/** | ||
* Активность триггера | ||
*/ | ||
active?: boolean; | ||
/** Отключенный триггер */ | ||
disabled?: boolean; | ||
/** @ignore */ | ||
keyboardFocused?: boolean; | ||
/** @ignore */ | ||
neighborLocation?: 'right' | 'both' | 'left' | false; | ||
import React from 'react'; | ||
import { IBaseTriggerAddonProps, IBaseTriggerProps, IBaseTriggerTextProps } from '@semcore/base-trigger'; | ||
export interface IDatePickerButtonTriggerProps extends IBaseTriggerProps, React.HTMLAttributes<HTMLButtonElement> { | ||
} | ||
export declare class ButtonTriggerAddon extends PureComponent<IBoxProps & React.HTMLAttributes<HTMLSpanElement>> { | ||
static displayName: string; | ||
static defaultProps: { | ||
tag: string; | ||
}; | ||
render(): JSX.Element; | ||
} | ||
export declare class ButtonTriggerText extends PureComponent<IBoxProps & React.HTMLAttributes<HTMLSpanElement>> { | ||
static displayName: string; | ||
static defaultProps: { | ||
tag: string; | ||
}; | ||
render(): JSX.Element; | ||
} | ||
declare class ButtonTrigger extends PureComponent<IDatePickerButtonTriggerProps & React.HTMLAttributes<HTMLButtonElement>> { | ||
static displayName: string; | ||
static defaultProps: { | ||
size: string; | ||
theme: string; | ||
type: string; | ||
tag: string; | ||
tabIndex: number; | ||
}; | ||
static Text: typeof ButtonTriggerText; | ||
static Addon: typeof ButtonTriggerAddon; | ||
render(): JSX.Element; | ||
} | ||
declare const _default: typeof ButtonTrigger; | ||
export default _default; | ||
declare const ButtonTrigger: React.FC<IDatePickerButtonTriggerProps> & { | ||
Addon: React.FC<IBaseTriggerAddonProps>; | ||
Text: React.FC<IBaseTriggerTextProps>; | ||
}; | ||
export default ButtonTrigger; |
@@ -20,4 +20,5 @@ import React from 'react'; | ||
periods?: IDateRangePickerPeriodProps['periods'] | false; | ||
unclearable?: boolean; | ||
} | ||
declare const ContextDatePicker: React.Context<IDatepickerCtx>; | ||
export default ContextDatePicker; |
@@ -60,6 +60,2 @@ import React, { PureComponent } from 'react'; | ||
/** | ||
* Заглушка при не выбранном значении | ||
*/ | ||
placeholder?: React.ReactNode; | ||
/** | ||
* Дата для отображение, автоматически береться из `DatePicker` | ||
@@ -66,0 +62,0 @@ * */ |
@@ -51,6 +51,2 @@ import React, { PureComponent } from 'react'; | ||
/** | ||
* Заглушка при не выбранном значении | ||
*/ | ||
placeholder?: React.ReactNode; | ||
/** | ||
* Дата для отображение, автоматически береться из `DatePicker` | ||
@@ -106,2 +102,6 @@ * */ | ||
/** | ||
* Убрать кнопку 'Reset' | ||
* */ | ||
unclearable?: boolean; | ||
/** | ||
* Массив заблокированных дат для выбора | ||
@@ -124,3 +124,3 @@ * */ | ||
/** | ||
* Вызывается, когда происходит изменении текушего видемого месяца | ||
* Вызывается, когда происходит изменении текушего видимого месяца | ||
* */ | ||
@@ -130,2 +130,3 @@ onDateChange?: (date: Date) => void; | ||
* Массив периодов | ||
* @example `[{value: [new Date(), new Date()], children: "Today"}]` | ||
* @default Past week / Past 2 week / Past month / Past 2 month | ||
@@ -132,0 +133,0 @@ * */ |
@@ -5,2 +5,3 @@ export { default as DatePicker } from './DatePicker'; | ||
export { default as MonthRangePicker } from './MonthRangePicker'; | ||
export { default as ButtonTrigger } from './ButtonTrigger'; | ||
export * from './DatePicker'; | ||
@@ -11,1 +12,2 @@ export * from './DateRangePicker'; | ||
export * from './MonthRangePicker'; | ||
export * from './ButtonTrigger'; |
{ | ||
"name": "@semcore/date-picker", | ||
"description": "SEMRush DatePicker Component", | ||
"version": "1.0.3", | ||
"version": "1.1.2", | ||
"main": "lib/index.js", | ||
@@ -16,2 +16,3 @@ "module": "lib/index.es.js", | ||
"@semcore/utils": "^3.1", | ||
"@semcore/base-trigger": "^1.1", | ||
"@semcore/flex-box": "^3.1", | ||
@@ -23,3 +24,2 @@ "@semcore/divider": "^1.0", | ||
"@semcore/typography": "^2.4", | ||
"@semcore/neighbor-location": "^1.0", | ||
"dayjs": "^1.8" | ||
@@ -26,0 +26,0 @@ }, |
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
3
504727
32
7227
+ Added@semcore/base-trigger@^1.1
+ Added@semcore/base-trigger@1.4.3(transitive)
+ Added@semcore/dot@1.2.0(transitive)
- Removed@semcore/neighbor-location@^1.0