@rc-component/picker 1.5.0 → 1.6.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.
- package/es/PickerInput/Popup/Footer.js +3 -3
- package/es/PickerInput/Popup/index.d.ts +2 -0
- package/es/PickerInput/Popup/index.js +11 -6
- package/es/PickerInput/RangePicker.js +7 -3
- package/es/PickerInput/Selector/Icon.js +2 -2
- package/es/PickerInput/Selector/Input.js +4 -4
- package/es/PickerInput/Selector/RangeSelector.js +3 -3
- package/es/PickerInput/Selector/SingleSelector/MultipleDates.js +2 -2
- package/es/PickerInput/Selector/SingleSelector/index.js +3 -3
- package/es/PickerInput/SinglePicker.js +7 -3
- package/es/PickerPanel/DatePanel/index.js +3 -3
- package/es/PickerPanel/PanelBody.js +4 -4
- package/es/PickerPanel/PanelHeader.js +6 -6
- package/es/PickerPanel/TimePanel/TimePanelBody/TimeColumn.js +2 -2
- package/es/PickerPanel/TimePanel/TimePanelBody/index.js +2 -2
- package/es/PickerPanel/TimePanel/index.js +2 -2
- package/es/PickerPanel/WeekPanel/index.js +2 -2
- package/es/PickerPanel/index.js +2 -2
- package/es/PickerTrigger/index.js +2 -2
- package/es/interface.d.ts +1 -1
- package/es/locale/mr_IN.d.ts +3 -0
- package/es/locale/mr_IN.js +38 -0
- package/lib/PickerInput/Popup/Footer.js +4 -4
- package/lib/PickerInput/Popup/index.d.ts +2 -0
- package/lib/PickerInput/Popup/index.js +11 -6
- package/lib/PickerInput/RangePicker.js +7 -3
- package/lib/PickerInput/Selector/Icon.js +2 -2
- package/lib/PickerInput/Selector/Input.js +4 -4
- package/lib/PickerInput/Selector/RangeSelector.js +3 -3
- package/lib/PickerInput/Selector/SingleSelector/MultipleDates.js +2 -2
- package/lib/PickerInput/Selector/SingleSelector/index.js +4 -4
- package/lib/PickerInput/SinglePicker.js +7 -3
- package/lib/PickerPanel/DatePanel/index.js +4 -4
- package/lib/PickerPanel/PanelBody.js +4 -5
- package/lib/PickerPanel/PanelHeader.js +6 -7
- package/lib/PickerPanel/TimePanel/TimePanelBody/TimeColumn.js +2 -2
- package/lib/PickerPanel/TimePanel/TimePanelBody/index.js +2 -2
- package/lib/PickerPanel/TimePanel/index.js +3 -3
- package/lib/PickerPanel/WeekPanel/index.js +3 -3
- package/lib/PickerPanel/index.js +3 -3
- package/lib/PickerTrigger/index.js +2 -2
- package/lib/interface.d.ts +1 -1
- package/lib/locale/mr_IN.d.ts +3 -0
- package/lib/locale/mr_IN.js +44 -0
- package/package.json +9 -9
package/lib/interface.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ export type PickerFocusEventHandler = (e: React.FocusEvent<HTMLElement>, info: B
|
|
|
208
208
|
export type LegacyOnKeyDown = (event: React.KeyboardEvent<HTMLElement>, preventDefault: VoidFunction) => void;
|
|
209
209
|
export type SemanticName = 'root' | 'prefix' | 'input' | 'suffix';
|
|
210
210
|
export type PreviewValueType = 'hover';
|
|
211
|
-
export type PanelSemanticName = 'root' | 'header' | 'body' | 'content' | 'item' | 'footer';
|
|
211
|
+
export type PanelSemanticName = 'root' | 'header' | 'body' | 'content' | 'item' | 'footer' | 'container';
|
|
212
212
|
export interface SharedPickerProps<DateType extends object = any> extends SharedHTMLAttrs, Pick<SharedPanelProps<DateType>, 'prevIcon' | 'nextIcon' | 'superPrevIcon' | 'superNextIcon'> {
|
|
213
213
|
direction?: 'ltr' | 'rtl';
|
|
214
214
|
prefixCls?: string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _common = require("./common");
|
|
8
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
9
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
+
var locale = _objectSpread(_objectSpread({}, _common.commonLocale), {}, {
|
|
15
|
+
fieldDateFormat: 'DD-MM-YYYY',
|
|
16
|
+
fieldDateTimeFormat: 'DD-MM-YYYY HH:mm:ss',
|
|
17
|
+
fieldMonthFormat: 'MM-YYYY',
|
|
18
|
+
locale: 'mr_IN',
|
|
19
|
+
today: 'आज',
|
|
20
|
+
now: 'आता',
|
|
21
|
+
backToToday: 'आजवर परत जा',
|
|
22
|
+
ok: 'ठीक आहे',
|
|
23
|
+
clear: 'साफ करा',
|
|
24
|
+
week: 'आठवडा',
|
|
25
|
+
month: 'महिना',
|
|
26
|
+
year: 'वर्ष',
|
|
27
|
+
timeSelect: 'वेळ निवडा',
|
|
28
|
+
dateSelect: 'दिनांक निवडा',
|
|
29
|
+
weekSelect: 'आठवडा निवडा',
|
|
30
|
+
monthSelect: 'महिना निवडा',
|
|
31
|
+
yearSelect: 'वर्ष निवडा',
|
|
32
|
+
decadeSelect: 'दशक निवडा',
|
|
33
|
+
previousMonth: 'मागील महिना (पेजअप)',
|
|
34
|
+
nextMonth: 'पुढचा महिना (पेजडाउन)',
|
|
35
|
+
previousYear: 'गेल्या वर्षी (Ctrl + left)',
|
|
36
|
+
nextYear: 'पुढचे वर्ष (Ctrl + right)',
|
|
37
|
+
previousDecade: 'मागील दशक',
|
|
38
|
+
nextDecade: 'पुढचे दशक',
|
|
39
|
+
previousCentury: 'मागील शतक',
|
|
40
|
+
nextCentury: 'पुढचे शतक',
|
|
41
|
+
shortWeekDays: ['रवि', 'सोम', 'मंगळ', 'बुध', 'गुरु', 'शुक्र', 'शनि'],
|
|
42
|
+
shortMonths: ['जाने', 'फेब्रु', 'मार्च', 'एप्रिल', 'मे', 'जून', 'जुलै', 'ऑगस्ट', 'सप्टें', 'ऑक्टो', 'नोव्हें', 'डिसें']
|
|
43
|
+
});
|
|
44
|
+
var _default = exports.default = locale;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rc-component/picker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "React date & time picker",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,21 +40,18 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@rc-component/resize-observer": "^1.0.0",
|
|
43
|
-
"@rc-component/trigger": "^3.
|
|
43
|
+
"@rc-component/trigger": "^3.6.15",
|
|
44
44
|
"@rc-component/util": "^1.3.0",
|
|
45
|
-
"
|
|
45
|
+
"clsx": "^2.1.1",
|
|
46
46
|
"rc-overflow": "^1.3.2"
|
|
47
47
|
},
|
|
48
|
-
|
|
49
|
-
"node": ">=8.x"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
48
|
+
"devDependencies": {
|
|
52
49
|
"@rc-component/father-plugin": "^1.0.0",
|
|
53
|
-
"@rc-component/np":"^1.0.3",
|
|
50
|
+
"@rc-component/np": "^1.0.3",
|
|
54
51
|
"@testing-library/react": "^16.0.0",
|
|
55
|
-
"@types/classnames": "^2.2.9",
|
|
56
52
|
"@types/jest": "^29.4.0",
|
|
57
53
|
"@types/luxon": "^3.2.0",
|
|
54
|
+
"@types/node": "^24.5.2",
|
|
58
55
|
"@types/react": "^18.0.28",
|
|
59
56
|
"@types/react-dom": "^18.0.8",
|
|
60
57
|
"coveralls": "^3.0.6",
|
|
@@ -103,5 +100,8 @@
|
|
|
103
100
|
"moment": {
|
|
104
101
|
"optional": true
|
|
105
102
|
}
|
|
103
|
+
},
|
|
104
|
+
"engines": {
|
|
105
|
+
"node": ">=8.x"
|
|
106
106
|
}
|
|
107
107
|
}
|