@pisell/date-picker 1.0.132 → 1.0.134

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from 'antd';
3
2
  import { Dayjs } from 'dayjs';
4
3
  import './index.less';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const CustomCalendarHeader: (props: any) => JSX.Element;
3
2
  export default CustomCalendarHeader;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Dialog: (props: any) => JSX.Element;
3
2
  export default Dialog;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from "antd";
3
2
  import { Dayjs } from "dayjs";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  import { Dayjs } from "dayjs";
4
3
  export declare type PresetType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Toolbar: (props: any) => JSX.Element | null;
4
3
  export default Toolbar;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
3
2
  import { DateRangeCalendarProps } from '../DateRangeCalendar';
4
3
  export interface DateRangeViewRendererProps<TDate, TView extends DateOrTimeViewWithMeridiem> extends DateRangeCalendarProps<TDate> {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const ChevronLeft: (props: {
3
2
  className?: string | undefined;
4
3
  onClick?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const ChevronLeftDouble: (props: {
3
2
  className?: string | undefined;
4
3
  onClick?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const ChevronRight: (props: {
3
2
  className?: string | undefined;
4
3
  onClick?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const ChevronRightDouble: (props: {
3
2
  className?: string | undefined;
4
3
  onClick?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const CloseCircle: (props: {
3
2
  className: string;
4
3
  onClick: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DateOrTimeViewWithMeridiem } from '@mui/x-date-pickers/internals/models';
3
2
  import { UseStaticRangePickerParams, UseStaticRangePickerProps } from './useStaticRangePicker.types';
4
3
  /**
@@ -1,12 +1,16 @@
1
1
  import zhCN from "./zh-CN";
2
2
  import enUS from "./en-US";
3
3
  import zhTW from "./zh-TW";
4
+ import ja from "./ja";
5
+ import pt from "./pt";
4
6
  import { getCurrentLocale } from "../utils";
5
7
  var langMap = {
6
8
  "zh-CN": zhCN,
7
9
  "en-US": enUS,
8
10
  "zh-TW": zhTW,
9
- "zh-HK": zhTW
11
+ "zh-HK": zhTW,
12
+ "ja": ja,
13
+ "pt": pt
10
14
  };
11
15
  export var pLocaleMap = {
12
16
  "en": "en-US",
@@ -15,7 +19,9 @@ export var pLocaleMap = {
15
19
  "en-US": "en-US",
16
20
  "zh-CN": "zh-CN",
17
21
  "zh-TW": "zh-TW",
18
- "zh-HK": "zh-TW"
22
+ "zh-HK": "zh-TW",
23
+ "ja": "ja",
24
+ "pt": "pt"
19
25
  };
20
26
  export var getText = function getText(id, pLocale) {
21
27
  if (!id) {
@@ -27,5 +33,5 @@ export var getText = function getText(id, pLocale) {
27
33
  }
28
34
  var locale = getCurrentLocale() || "en-US";
29
35
  //@ts-ignore
30
- return langMap[locale][id] || id;
36
+ return langMap[locale][id] || langMap['en-US'][id] || id;
31
37
  };
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ 'action-bar-cancel': string;
3
+ 'action-bar-apply': string;
4
+ 'action-bar-start.time': string;
5
+ 'action-bar-end.time': string;
6
+ 'toolbar-date-range-shortcut-custom': string;
7
+ "toolbar-date-range-shortcut-date-range": string;
8
+ "toolbar-date-range-shortcut-starting": string;
9
+ "toolbar-date-range-shortcut-ending": string;
10
+ "toolbar-date-range-shortcut-today": string;
11
+ "toolbar-date-range-shortcut-yesterday": string;
12
+ "toolbar-date-range-shortcut-tomorrow": string;
13
+ "toolbar-date-range-shortcut-last-3-days": string;
14
+ "toolbar-date-range-shortcut-last-7-days": string;
15
+ "toolbar-date-range-shortcut-last-30-days": string;
16
+ "toolbar-date-range-shortcut-last-90-days": string;
17
+ "toolbar-date-range-shortcut-last-180-days": string;
18
+ "toolbar-date-range-shortcut-next-3-days": string;
19
+ "toolbar-date-range-shortcut-next-7-days": string;
20
+ "toolbar-date-range-shortcut-next-30-days": string;
21
+ "toolbar-date-range-shortcut-next-90-days": string;
22
+ "toolbar-date-range-shortcut-next-180-days": string;
23
+ "toolbar-date-range-invalid-start-date": string;
24
+ "toolbar-date-range-invalid-end-date": string;
25
+ };
26
+ export default _default;
@@ -0,0 +1,25 @@
1
+ export default {
2
+ 'action-bar-cancel': 'キャンセル',
3
+ 'action-bar-apply': '適用',
4
+ 'action-bar-start.time': '開始時間',
5
+ 'action-bar-end.time': '終了時間',
6
+ 'toolbar-date-range-shortcut-custom': 'カスタム',
7
+ "toolbar-date-range-shortcut-date-range": "日付範囲",
8
+ "toolbar-date-range-shortcut-starting": "開始",
9
+ "toolbar-date-range-shortcut-ending": "終了",
10
+ "toolbar-date-range-shortcut-today": "今日",
11
+ "toolbar-date-range-shortcut-yesterday": "昨日",
12
+ "toolbar-date-range-shortcut-tomorrow": "明日",
13
+ "toolbar-date-range-shortcut-last-3-days": "過去3日",
14
+ "toolbar-date-range-shortcut-last-7-days": "過去7日",
15
+ "toolbar-date-range-shortcut-last-30-days": "過去30日",
16
+ "toolbar-date-range-shortcut-last-90-days": "過去90日",
17
+ "toolbar-date-range-shortcut-last-180-days": "過去180日",
18
+ "toolbar-date-range-shortcut-next-3-days": "今後3日",
19
+ "toolbar-date-range-shortcut-next-7-days": "今後7日",
20
+ "toolbar-date-range-shortcut-next-30-days": "今後30日",
21
+ "toolbar-date-range-shortcut-next-90-days": "今後90日",
22
+ "toolbar-date-range-shortcut-next-180-days": "今後180日",
23
+ "toolbar-date-range-invalid-start-date": "開始日が無効です",
24
+ "toolbar-date-range-invalid-end-date": "終了日が無効です"
25
+ };
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ 'action-bar-cancel': string;
3
+ 'action-bar-apply': string;
4
+ 'action-bar-start.time': string;
5
+ 'action-bar-end.time': string;
6
+ 'toolbar-date-range-shortcut-custom': string;
7
+ "toolbar-date-range-shortcut-date-range": string;
8
+ "toolbar-date-range-shortcut-starting": string;
9
+ "toolbar-date-range-shortcut-ending": string;
10
+ "toolbar-date-range-shortcut-today": string;
11
+ "toolbar-date-range-shortcut-yesterday": string;
12
+ "toolbar-date-range-shortcut-tomorrow": string;
13
+ "toolbar-date-range-shortcut-last-3-days": string;
14
+ "toolbar-date-range-shortcut-last-7-days": string;
15
+ "toolbar-date-range-shortcut-last-30-days": string;
16
+ "toolbar-date-range-shortcut-last-90-days": string;
17
+ "toolbar-date-range-shortcut-last-180-days": string;
18
+ "toolbar-date-range-shortcut-next-3-days": string;
19
+ "toolbar-date-range-shortcut-next-7-days": string;
20
+ "toolbar-date-range-shortcut-next-30-days": string;
21
+ "toolbar-date-range-shortcut-next-90-days": string;
22
+ "toolbar-date-range-shortcut-next-180-days": string;
23
+ "toolbar-date-range-invalid-start-date": string;
24
+ "toolbar-date-range-invalid-end-date": string;
25
+ };
26
+ export default _default;
@@ -0,0 +1,25 @@
1
+ export default {
2
+ 'action-bar-cancel': 'Cancelar',
3
+ 'action-bar-apply': 'Aplicar',
4
+ 'action-bar-start.time': 'Hora de início',
5
+ 'action-bar-end.time': 'Hora de término',
6
+ 'toolbar-date-range-shortcut-custom': 'Personalizado',
7
+ "toolbar-date-range-shortcut-date-range": "Intervalo de datas",
8
+ "toolbar-date-range-shortcut-starting": "Início",
9
+ "toolbar-date-range-shortcut-ending": "Fim",
10
+ "toolbar-date-range-shortcut-today": "Hoje",
11
+ "toolbar-date-range-shortcut-yesterday": "Ontem",
12
+ "toolbar-date-range-shortcut-tomorrow": "Amanhã",
13
+ "toolbar-date-range-shortcut-last-3-days": "Últimos 3 dias",
14
+ "toolbar-date-range-shortcut-last-7-days": "Últimos 7 dias",
15
+ "toolbar-date-range-shortcut-last-30-days": "Últimos 30 dias",
16
+ "toolbar-date-range-shortcut-last-90-days": "Últimos 90 dias",
17
+ "toolbar-date-range-shortcut-last-180-days": "Últimos 180 dias",
18
+ "toolbar-date-range-shortcut-next-3-days": "Próximos 3 dias",
19
+ "toolbar-date-range-shortcut-next-7-days": "Próximos 7 dias",
20
+ "toolbar-date-range-shortcut-next-30-days": "Próximos 30 dias",
21
+ "toolbar-date-range-shortcut-next-90-days": "Próximos 90 dias",
22
+ "toolbar-date-range-shortcut-next-180-days": "Próximos 180 dias",
23
+ "toolbar-date-range-invalid-start-date": "Data de início inválida",
24
+ "toolbar-date-range-invalid-end-date": "Data de término inválida"
25
+ };
@@ -36,12 +36,16 @@ module.exports = __toCommonJS(locales_exports);
36
36
  var import_zh_CN = __toESM(require("./zh-CN"));
37
37
  var import_en_US = __toESM(require("./en-US"));
38
38
  var import_zh_TW = __toESM(require("./zh-TW"));
39
+ var import_ja = __toESM(require("./ja"));
40
+ var import_pt = __toESM(require("./pt"));
39
41
  var import_utils = require("../utils");
40
42
  var langMap = {
41
43
  "zh-CN": import_zh_CN.default,
42
44
  "en-US": import_en_US.default,
43
45
  "zh-TW": import_zh_TW.default,
44
- "zh-HK": import_zh_TW.default
46
+ "zh-HK": import_zh_TW.default,
47
+ "ja": import_ja.default,
48
+ "pt": import_pt.default
45
49
  };
46
50
  var pLocaleMap = {
47
51
  "en": "en-US",
@@ -50,7 +54,9 @@ var pLocaleMap = {
50
54
  "en-US": "en-US",
51
55
  "zh-CN": "zh-CN",
52
56
  "zh-TW": "zh-TW",
53
- "zh-HK": "zh-TW"
57
+ "zh-HK": "zh-TW",
58
+ "ja": "ja",
59
+ "pt": "pt"
54
60
  };
55
61
  var getText = (id, pLocale) => {
56
62
  if (!id) {
@@ -60,7 +66,7 @@ var getText = (id, pLocale) => {
60
66
  return langMap[pLocale][id] || id;
61
67
  }
62
68
  let locale = (0, import_utils.getCurrentLocale)() || "en-US";
63
- return langMap[locale][id] || id;
69
+ return langMap[locale][id] || langMap["en-US"][id] || id;
64
70
  };
65
71
  // Annotate the CommonJS export names for ESM import in node:
66
72
  0 && (module.exports = {
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ 'action-bar-cancel': string;
3
+ 'action-bar-apply': string;
4
+ 'action-bar-start.time': string;
5
+ 'action-bar-end.time': string;
6
+ 'toolbar-date-range-shortcut-custom': string;
7
+ "toolbar-date-range-shortcut-date-range": string;
8
+ "toolbar-date-range-shortcut-starting": string;
9
+ "toolbar-date-range-shortcut-ending": string;
10
+ "toolbar-date-range-shortcut-today": string;
11
+ "toolbar-date-range-shortcut-yesterday": string;
12
+ "toolbar-date-range-shortcut-tomorrow": string;
13
+ "toolbar-date-range-shortcut-last-3-days": string;
14
+ "toolbar-date-range-shortcut-last-7-days": string;
15
+ "toolbar-date-range-shortcut-last-30-days": string;
16
+ "toolbar-date-range-shortcut-last-90-days": string;
17
+ "toolbar-date-range-shortcut-last-180-days": string;
18
+ "toolbar-date-range-shortcut-next-3-days": string;
19
+ "toolbar-date-range-shortcut-next-7-days": string;
20
+ "toolbar-date-range-shortcut-next-30-days": string;
21
+ "toolbar-date-range-shortcut-next-90-days": string;
22
+ "toolbar-date-range-shortcut-next-180-days": string;
23
+ "toolbar-date-range-invalid-start-date": string;
24
+ "toolbar-date-range-invalid-end-date": string;
25
+ };
26
+ export default _default;
@@ -0,0 +1,49 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/locales/ja.ts
20
+ var ja_exports = {};
21
+ __export(ja_exports, {
22
+ default: () => ja_default
23
+ });
24
+ module.exports = __toCommonJS(ja_exports);
25
+ var ja_default = {
26
+ "action-bar-cancel": "キャンセル",
27
+ "action-bar-apply": "適用",
28
+ "action-bar-start.time": "開始時間",
29
+ "action-bar-end.time": "終了時間",
30
+ "toolbar-date-range-shortcut-custom": "カスタム",
31
+ "toolbar-date-range-shortcut-date-range": "日付範囲",
32
+ "toolbar-date-range-shortcut-starting": "開始",
33
+ "toolbar-date-range-shortcut-ending": "終了",
34
+ "toolbar-date-range-shortcut-today": "今日",
35
+ "toolbar-date-range-shortcut-yesterday": "昨日",
36
+ "toolbar-date-range-shortcut-tomorrow": "明日",
37
+ "toolbar-date-range-shortcut-last-3-days": "過去3日",
38
+ "toolbar-date-range-shortcut-last-7-days": "過去7日",
39
+ "toolbar-date-range-shortcut-last-30-days": "過去30日",
40
+ "toolbar-date-range-shortcut-last-90-days": "過去90日",
41
+ "toolbar-date-range-shortcut-last-180-days": "過去180日",
42
+ "toolbar-date-range-shortcut-next-3-days": "今後3日",
43
+ "toolbar-date-range-shortcut-next-7-days": "今後7日",
44
+ "toolbar-date-range-shortcut-next-30-days": "今後30日",
45
+ "toolbar-date-range-shortcut-next-90-days": "今後90日",
46
+ "toolbar-date-range-shortcut-next-180-days": "今後180日",
47
+ "toolbar-date-range-invalid-start-date": "開始日が無効です",
48
+ "toolbar-date-range-invalid-end-date": "終了日が無効です"
49
+ };
@@ -0,0 +1,26 @@
1
+ declare const _default: {
2
+ 'action-bar-cancel': string;
3
+ 'action-bar-apply': string;
4
+ 'action-bar-start.time': string;
5
+ 'action-bar-end.time': string;
6
+ 'toolbar-date-range-shortcut-custom': string;
7
+ "toolbar-date-range-shortcut-date-range": string;
8
+ "toolbar-date-range-shortcut-starting": string;
9
+ "toolbar-date-range-shortcut-ending": string;
10
+ "toolbar-date-range-shortcut-today": string;
11
+ "toolbar-date-range-shortcut-yesterday": string;
12
+ "toolbar-date-range-shortcut-tomorrow": string;
13
+ "toolbar-date-range-shortcut-last-3-days": string;
14
+ "toolbar-date-range-shortcut-last-7-days": string;
15
+ "toolbar-date-range-shortcut-last-30-days": string;
16
+ "toolbar-date-range-shortcut-last-90-days": string;
17
+ "toolbar-date-range-shortcut-last-180-days": string;
18
+ "toolbar-date-range-shortcut-next-3-days": string;
19
+ "toolbar-date-range-shortcut-next-7-days": string;
20
+ "toolbar-date-range-shortcut-next-30-days": string;
21
+ "toolbar-date-range-shortcut-next-90-days": string;
22
+ "toolbar-date-range-shortcut-next-180-days": string;
23
+ "toolbar-date-range-invalid-start-date": string;
24
+ "toolbar-date-range-invalid-end-date": string;
25
+ };
26
+ export default _default;
@@ -0,0 +1,49 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/locales/pt.ts
20
+ var pt_exports = {};
21
+ __export(pt_exports, {
22
+ default: () => pt_default
23
+ });
24
+ module.exports = __toCommonJS(pt_exports);
25
+ var pt_default = {
26
+ "action-bar-cancel": "Cancelar",
27
+ "action-bar-apply": "Aplicar",
28
+ "action-bar-start.time": "Hora de início",
29
+ "action-bar-end.time": "Hora de término",
30
+ "toolbar-date-range-shortcut-custom": "Personalizado",
31
+ "toolbar-date-range-shortcut-date-range": "Intervalo de datas",
32
+ "toolbar-date-range-shortcut-starting": "Início",
33
+ "toolbar-date-range-shortcut-ending": "Fim",
34
+ "toolbar-date-range-shortcut-today": "Hoje",
35
+ "toolbar-date-range-shortcut-yesterday": "Ontem",
36
+ "toolbar-date-range-shortcut-tomorrow": "Amanhã",
37
+ "toolbar-date-range-shortcut-last-3-days": "Últimos 3 dias",
38
+ "toolbar-date-range-shortcut-last-7-days": "Últimos 7 dias",
39
+ "toolbar-date-range-shortcut-last-30-days": "Últimos 30 dias",
40
+ "toolbar-date-range-shortcut-last-90-days": "Últimos 90 dias",
41
+ "toolbar-date-range-shortcut-last-180-days": "Últimos 180 dias",
42
+ "toolbar-date-range-shortcut-next-3-days": "Próximos 3 dias",
43
+ "toolbar-date-range-shortcut-next-7-days": "Próximos 7 dias",
44
+ "toolbar-date-range-shortcut-next-30-days": "Próximos 30 dias",
45
+ "toolbar-date-range-shortcut-next-90-days": "Próximos 90 dias",
46
+ "toolbar-date-range-shortcut-next-180-days": "Próximos 180 dias",
47
+ "toolbar-date-range-invalid-start-date": "Data de início inválida",
48
+ "toolbar-date-range-invalid-end-date": "Data de término inválida"
49
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/date-picker",
3
- "version": "1.0.132",
3
+ "version": "1.0.134",
4
4
  "sideEffects": [
5
5
  "*.less"
6
6
  ],
@@ -30,7 +30,7 @@
30
30
  "prop-types": "^15.8.1",
31
31
  "react": "^18.0.0",
32
32
  "react-dom": "^18.0.0",
33
- "@pisell/utils": "1.0.59"
33
+ "@pisell/utils": "1.0.61"
34
34
  },
35
35
  "files": [
36
36
  "es",