yootd 0.0.32 → 0.0.33

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.
@@ -38,14 +38,14 @@ export var DateInterval = function DateInterval(_ref) {
38
38
  var datePickerMap = useMemo(function () {
39
39
  return {
40
40
  time: /*#__PURE__*/React.createElement(AntdDatePicker.TimePicker, _extends({}, props, {
41
- defaultValue: value,
41
+ defaultValue: value === null || value === void 0 ? void 0 : value.date,
42
42
  style: {
43
43
  width: 180
44
44
  },
45
45
  onChange: onChangeTime
46
46
  })),
47
47
  date: /*#__PURE__*/React.createElement(AntdDatePicker, _extends({}, props, {
48
- defaultValue: value,
48
+ defaultValue: value === null || value === void 0 ? void 0 : value.date,
49
49
  style: {
50
50
  width: 180
51
51
  },
@@ -54,7 +54,7 @@ export var DateInterval = function DateInterval(_ref) {
54
54
  week: /*#__PURE__*/React.createElement(AntdDatePicker, _extends({
55
55
  picker: "week"
56
56
  }, props, {
57
- defaultValue: value,
57
+ defaultValue: value === null || value === void 0 ? void 0 : value.date,
58
58
  style: {
59
59
  width: 180
60
60
  },
@@ -63,7 +63,7 @@ export var DateInterval = function DateInterval(_ref) {
63
63
  month: /*#__PURE__*/React.createElement(AntdDatePicker, _extends({
64
64
  picker: "month"
65
65
  }, props, {
66
- defaultValue: value,
66
+ defaultValue: value === null || value === void 0 ? void 0 : value.date,
67
67
  style: {
68
68
  width: 180
69
69
  },
@@ -72,7 +72,7 @@ export var DateInterval = function DateInterval(_ref) {
72
72
  quarter: /*#__PURE__*/React.createElement(AntdDatePicker, _extends({
73
73
  picker: "quarter"
74
74
  }, props, {
75
- defaultValue: value,
75
+ defaultValue: value === null || value === void 0 ? void 0 : value.date,
76
76
  style: {
77
77
  width: 180
78
78
  },
@@ -81,7 +81,7 @@ export var DateInterval = function DateInterval(_ref) {
81
81
  year: /*#__PURE__*/React.createElement(AntdDatePicker, _extends({
82
82
  picker: "year"
83
83
  }, props, {
84
- defaultValue: value,
84
+ defaultValue: value === null || value === void 0 ? void 0 : value.date,
85
85
  style: {
86
86
  width: 180
87
87
  },
@@ -29,14 +29,14 @@ export var DateRange = function DateRange(_ref) {
29
29
  var datePickerMap = useMemo(function () {
30
30
  return {
31
31
  time: /*#__PURE__*/React.createElement(TimePicker.RangePicker, _extends({}, props, {
32
- defaultValue: value,
32
+ defaultValue: value === null || value === void 0 ? void 0 : value.dates,
33
33
  style: {
34
34
  width: 244
35
35
  },
36
36
  onChange: onChangeDate
37
37
  })),
38
38
  date: /*#__PURE__*/React.createElement(DatePicker.RangePicker, _extends({}, props, {
39
- defaultValue: value,
39
+ defaultValue: value === null || value === void 0 ? void 0 : value.dates,
40
40
  style: {
41
41
  width: 244
42
42
  },
@@ -45,7 +45,7 @@ export var DateRange = function DateRange(_ref) {
45
45
  week: /*#__PURE__*/React.createElement(DatePicker.RangePicker, _extends({
46
46
  picker: "week"
47
47
  }, props, {
48
- defaultValue: value,
48
+ defaultValue: value === null || value === void 0 ? void 0 : value.dates,
49
49
  style: {
50
50
  width: 244
51
51
  },
@@ -54,7 +54,7 @@ export var DateRange = function DateRange(_ref) {
54
54
  month: /*#__PURE__*/React.createElement(DatePicker.RangePicker, _extends({
55
55
  picker: "month"
56
56
  }, props, {
57
- defaultValue: value,
57
+ defaultValue: value === null || value === void 0 ? void 0 : value.dates,
58
58
  style: {
59
59
  width: 244
60
60
  },
@@ -66,12 +66,13 @@ export var DateRange = function DateRange(_ref) {
66
66
  style: {
67
67
  width: 244
68
68
  },
69
- onChange: onChangeDate
69
+ onChange: onChangeDate,
70
+ defaultValue: value === null || value === void 0 ? void 0 : value.dates
70
71
  })),
71
72
  year: /*#__PURE__*/React.createElement(DatePicker.RangePicker, _extends({
72
73
  picker: "year"
73
74
  }, props, {
74
- defaultValue: value,
75
+ defaultValue: value === null || value === void 0 ? void 0 : value.dates,
75
76
  style: {
76
77
  width: 244
77
78
  },
package/package.json CHANGED
@@ -1,101 +1,101 @@
1
- {
2
- "name": "yootd",
3
- "version": "0.0.32",
4
- "description": "A react library developed with dumi",
5
- "license": "MIT",
6
- "module": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "scripts": {
12
- "build": "father build",
13
- "build:watch": "father dev",
14
- "dev": "dumi dev",
15
- "docs:build": "dumi build",
16
- "docs:preview": "dumi preview",
17
- "doctor": "father doctor",
18
- "lint": "npm run lint:es && npm run lint:css",
19
- "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
20
- "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
21
- "prepare": "husky install && dumi setup",
22
- "prepublishOnly": "father doctor && npm run build",
23
- "start": "npm run dev"
24
- },
25
- "commitlint": {
26
- "extends": [
27
- "@commitlint/config-conventional"
28
- ]
29
- },
30
- "lint-staged": {
31
- "*.{md,json}": [
32
- "prettier --write --no-error-on-unmatched-pattern"
33
- ],
34
- "*.{css,less}": [
35
- "stylelint --fix",
36
- "prettier --write"
37
- ],
38
- "*.{js,jsx}": [
39
- "eslint --fix",
40
- "prettier --write"
41
- ],
42
- "*.{ts,tsx}": [
43
- "eslint --fix",
44
- "prettier --parser=typescript --write"
45
- ]
46
- },
47
- "devDependencies": {
48
- "@commitlint/cli": "^17.1.2",
49
- "@commitlint/config-conventional": "^17.1.0",
50
- "@dnd-kit/core": "^6.1.0",
51
- "@dnd-kit/modifiers": "^7.0.0",
52
- "@dnd-kit/sortable": "^8.0.0",
53
- "@dnd-kit/utilities": "^3.2.2",
54
- "@tanstack/react-query": "^5.59.15",
55
- "@types/lodash": "^4.17.12",
56
- "@types/react": "^18.0.0",
57
- "@types/react-dom": "^18.0.0",
58
- "@umijs/lint": "^4.0.0",
59
- "@vladmandic/face-api": "^1.7.14",
60
- "antd": "^5.21.4",
61
- "axios": "^1.7.7",
62
- "dayjs": "^1.11.13",
63
- "dumi": "^2.3.0",
64
- "dumi-theme-antd": "^0.4.2",
65
- "eslint": "^8.23.0",
66
- "father": "^4.1.0",
67
- "husky": "^8.0.1",
68
- "lint-staged": "^13.0.3",
69
- "lodash": "^4.17.21",
70
- "nanoid": "^5.0.8",
71
- "prettier": "^2.7.1",
72
- "prettier-plugin-organize-imports": "^3.0.0",
73
- "prettier-plugin-packagejson": "^2.2.18",
74
- "react": "^18.0.0",
75
- "react-dom": "^18.0.0",
76
- "sass": "^1.80.0",
77
- "stylelint": "^14.9.1",
78
- "yootd-webrtc-sdk": "^1.0.1"
79
- },
80
- "peerDependencies": {
81
- "@dnd-kit/core": ">=6.1.0",
82
- "@dnd-kit/modifiers": ">=7.0.0",
83
- "@dnd-kit/sortable": ">=8.0.0",
84
- "@dnd-kit/utilities": ">=3.2.2",
85
- "@tanstack/react-query": ">=5.59.15",
86
- "@vladmandic/face-api": "^1.7.14",
87
- "@xyflow/react": ">=12.3.3",
88
- "antd": ">=5.21.4",
89
- "axios": ">=1.7.7",
90
- "dayjs": ">=1.11.13",
91
- "lodash": ">=4.17.21",
92
- "nanoid": ">=5.0.8",
93
- "react": ">=16.9.0",
94
- "react-dom": ">=16.9.0",
95
- "yootd-webrtc-sdk": "^1.0.1"
96
- },
97
- "publishConfig": {
98
- "access": "public"
99
- },
100
- "authors": []
101
- }
1
+ {
2
+ "name": "yootd",
3
+ "version": "0.0.33",
4
+ "description": "A react library developed with dumi",
5
+ "license": "MIT",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "father build",
13
+ "build:watch": "father dev",
14
+ "dev": "dumi dev",
15
+ "docs:build": "dumi build",
16
+ "docs:preview": "dumi preview",
17
+ "doctor": "father doctor",
18
+ "lint": "npm run lint:es && npm run lint:css",
19
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
20
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
21
+ "prepare": "husky install && dumi setup",
22
+ "prepublishOnly": "father doctor && npm run build",
23
+ "start": "npm run dev"
24
+ },
25
+ "commitlint": {
26
+ "extends": [
27
+ "@commitlint/config-conventional"
28
+ ]
29
+ },
30
+ "lint-staged": {
31
+ "*.{md,json}": [
32
+ "prettier --write --no-error-on-unmatched-pattern"
33
+ ],
34
+ "*.{css,less}": [
35
+ "stylelint --fix",
36
+ "prettier --write"
37
+ ],
38
+ "*.{js,jsx}": [
39
+ "eslint --fix",
40
+ "prettier --write"
41
+ ],
42
+ "*.{ts,tsx}": [
43
+ "eslint --fix",
44
+ "prettier --parser=typescript --write"
45
+ ]
46
+ },
47
+ "devDependencies": {
48
+ "@commitlint/cli": "^17.1.2",
49
+ "@commitlint/config-conventional": "^17.1.0",
50
+ "@dnd-kit/core": "^6.1.0",
51
+ "@dnd-kit/modifiers": "^7.0.0",
52
+ "@dnd-kit/sortable": "^8.0.0",
53
+ "@dnd-kit/utilities": "^3.2.2",
54
+ "@tanstack/react-query": "^5.59.15",
55
+ "@types/lodash": "^4.17.12",
56
+ "@types/react": "^18.0.0",
57
+ "@types/react-dom": "^18.0.0",
58
+ "@umijs/lint": "^4.0.0",
59
+ "@vladmandic/face-api": "^1.7.14",
60
+ "antd": "^5.21.4",
61
+ "axios": "^1.7.7",
62
+ "dayjs": "^1.11.13",
63
+ "dumi": "^2.3.0",
64
+ "dumi-theme-antd": "^0.4.2",
65
+ "eslint": "^8.23.0",
66
+ "father": "^4.1.0",
67
+ "husky": "^8.0.1",
68
+ "lint-staged": "^13.0.3",
69
+ "lodash": "^4.17.21",
70
+ "nanoid": "^5.0.8",
71
+ "prettier": "^2.7.1",
72
+ "prettier-plugin-organize-imports": "^3.0.0",
73
+ "prettier-plugin-packagejson": "^2.2.18",
74
+ "react": "^18.0.0",
75
+ "react-dom": "^18.0.0",
76
+ "sass": "^1.80.0",
77
+ "stylelint": "^14.9.1",
78
+ "yootd-webrtc-sdk": "^1.0.1"
79
+ },
80
+ "peerDependencies": {
81
+ "@dnd-kit/core": ">=6.1.0",
82
+ "@dnd-kit/modifiers": ">=7.0.0",
83
+ "@dnd-kit/sortable": ">=8.0.0",
84
+ "@dnd-kit/utilities": ">=3.2.2",
85
+ "@tanstack/react-query": ">=5.59.15",
86
+ "@vladmandic/face-api": "^1.7.14",
87
+ "@xyflow/react": ">=12.3.3",
88
+ "antd": ">=5.21.4",
89
+ "axios": ">=1.7.7",
90
+ "dayjs": ">=1.11.13",
91
+ "lodash": ">=4.17.21",
92
+ "nanoid": ">=5.0.8",
93
+ "react": ">=16.9.0",
94
+ "react-dom": ">=16.9.0",
95
+ "yootd-webrtc-sdk": "^1.0.1"
96
+ },
97
+ "publishConfig": {
98
+ "access": "public"
99
+ },
100
+ "authors": []
101
+ }