UNPKG

2.05 kBJavaScriptView Raw
1/*
2 * Copyright 2015 Palantir Technologies, Inc. All rights reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16const ns = "[Blueprint]";
17export const DATEPICKER_DEFAULT_VALUE_INVALID = ns + ` <DatePicker> defaultValue must be within minDate and maxDate bounds.`;
18export const DATEPICKER_INITIAL_MONTH_INVALID = ns + ` <DatePicker> initialMonth must be within minDate and maxDate bounds.`;
19export const DATEPICKER_MAX_DATE_INVALID = ns + ` <DatePicker> maxDate must be later than minDate.`;
20export const DATEPICKER_VALUE_INVALID = ns + ` <DatePicker> value prop must be within minDate and maxDate bounds.`;
21export const DATERANGEPICKER_DEFAULT_VALUE_INVALID = DATEPICKER_DEFAULT_VALUE_INVALID.replace("DatePicker", "DateRangePicker");
22export const DATERANGEPICKER_INITIAL_MONTH_INVALID = DATEPICKER_INITIAL_MONTH_INVALID.replace("DatePicker", "DateRangePicker");
23export const DATERANGEPICKER_MAX_DATE_INVALID = DATEPICKER_MAX_DATE_INVALID.replace("DatePicker", "DateRangePicker");
24export const DATERANGEPICKER_VALUE_INVALID = DATEPICKER_VALUE_INVALID.replace("DatePicker", "DateRangePicker");
25export const DATERANGEPICKER_PREFERRED_BOUNDARY_TO_MODIFY_INVALID = "<DateRangePicker> preferredBoundaryToModify must be a valid Boundary if defined.";
26export const DATERANGEINPUT_NULL_VALUE = ns +
27 ` <DateRangeInput> value cannot be null. Pass undefined to clear the value and operate in` +
28 " uncontrolled mode, or pass [null, null] to clear the value and continue operating in controlled mode.";
29//# sourceMappingURL=errors.js.map
\No newline at end of file