@hero-design/rn 8.92.1-alpha.0 → 8.92.1
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/.turbo/turbo-build.log +13 -0
- package/CHANGELOG.md +6 -0
- package/es/index.js +10 -13
- package/lib/index.js +10 -13
- package/package.json +2 -3
- package/src/components/Calendar/helpers.ts +18 -16
- package/stats/8.92.1/rn-stats.html +4844 -0
- package/types/theme/global/shadows/shadows.d.ts +0 -9
- package/types/theme/global/shadows/swagLight.d.ts +0 -3
- package/types/theme/global/shadows/swagLightJobs.d.ts +0 -3
- package/types/theme/global/shadows.d.ts +0 -16
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
(node:3004) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
|
|
2
|
+
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
3
|
+
[36m
|
|
4
|
+
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
5
|
+
[1m[33m(!) [plugin replace] @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
6
|
+
[1m[33m(!) [plugin typescript] src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx (61:35): @rollup/plugin-typescript TS2307: Cannot find module '../../../../types' or its corresponding type declarations.[39m[22m
|
|
7
|
+
[1m/home/runner/work/hero-design/hero-design/packages/rn/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx:61:35[22m
|
|
8
|
+
[90m
|
|
9
|
+
[7m61[0m import { RichTextEditorRef } from "../../../../types";
|
|
10
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~[0m
|
|
11
|
+
[39m
|
|
12
|
+
[1m[33m(!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.[39m[22m
|
|
13
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m53.1s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.92.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3731](https://github.com/Thinkei/hero-design/pull/3731) [`65b0238dcab7d2397c913fd36aec5690171f950b`](https://github.com/Thinkei/hero-design/commit/65b0238dcab7d2397c913fd36aec5690171f950b) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [SingleSelect] Support rendering display value with object
|
|
8
|
+
|
|
3
9
|
## 8.92.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/es/index.js
CHANGED
|
@@ -13204,17 +13204,11 @@ var setStartOrEndDate = function setStartOrEndDate(_ref2) {
|
|
|
13204
13204
|
var date = _ref2.date,
|
|
13205
13205
|
startDate = _ref2.startDate,
|
|
13206
13206
|
endDate = _ref2.endDate;
|
|
13207
|
-
//
|
|
13208
|
-
if (startDate && endDate && isEqDate(date, startDate)) {
|
|
13207
|
+
// Prevent selecting same date when both dates are set
|
|
13208
|
+
if (startDate && endDate && (isEqDate(date, startDate) || isEqDate(date, endDate))) {
|
|
13209
13209
|
return {
|
|
13210
|
-
startDate:
|
|
13211
|
-
endDate:
|
|
13212
|
-
};
|
|
13213
|
-
}
|
|
13214
|
-
if (startDate && endDate && isEqDate(date, endDate)) {
|
|
13215
|
-
return {
|
|
13216
|
-
startDate: date,
|
|
13217
|
-
endDate: date
|
|
13210
|
+
startDate: startDate,
|
|
13211
|
+
endDate: endDate
|
|
13218
13212
|
};
|
|
13219
13213
|
}
|
|
13220
13214
|
// No start date yet - set as start
|
|
@@ -13241,10 +13235,13 @@ var setStartOrEndDate = function setStartOrEndDate(_ref2) {
|
|
|
13241
13235
|
endDate: undefined
|
|
13242
13236
|
};
|
|
13243
13237
|
}
|
|
13244
|
-
// Clicking outside range -
|
|
13245
|
-
return {
|
|
13238
|
+
// Clicking outside range - extend range
|
|
13239
|
+
return date < startDate ? {
|
|
13246
13240
|
startDate: date,
|
|
13247
|
-
endDate:
|
|
13241
|
+
endDate: endDate
|
|
13242
|
+
} : {
|
|
13243
|
+
startDate: startDate,
|
|
13244
|
+
endDate: date
|
|
13248
13245
|
};
|
|
13249
13246
|
};
|
|
13250
13247
|
|
package/lib/index.js
CHANGED
|
@@ -13232,17 +13232,11 @@ var setStartOrEndDate = function setStartOrEndDate(_ref2) {
|
|
|
13232
13232
|
var date = _ref2.date,
|
|
13233
13233
|
startDate = _ref2.startDate,
|
|
13234
13234
|
endDate = _ref2.endDate;
|
|
13235
|
-
//
|
|
13236
|
-
if (startDate && endDate && isEqDate(date, startDate)) {
|
|
13235
|
+
// Prevent selecting same date when both dates are set
|
|
13236
|
+
if (startDate && endDate && (isEqDate(date, startDate) || isEqDate(date, endDate))) {
|
|
13237
13237
|
return {
|
|
13238
|
-
startDate:
|
|
13239
|
-
endDate:
|
|
13240
|
-
};
|
|
13241
|
-
}
|
|
13242
|
-
if (startDate && endDate && isEqDate(date, endDate)) {
|
|
13243
|
-
return {
|
|
13244
|
-
startDate: date,
|
|
13245
|
-
endDate: date
|
|
13238
|
+
startDate: startDate,
|
|
13239
|
+
endDate: endDate
|
|
13246
13240
|
};
|
|
13247
13241
|
}
|
|
13248
13242
|
// No start date yet - set as start
|
|
@@ -13269,10 +13263,13 @@ var setStartOrEndDate = function setStartOrEndDate(_ref2) {
|
|
|
13269
13263
|
endDate: undefined
|
|
13270
13264
|
};
|
|
13271
13265
|
}
|
|
13272
|
-
// Clicking outside range -
|
|
13273
|
-
return {
|
|
13266
|
+
// Clicking outside range - extend range
|
|
13267
|
+
return date < startDate ? {
|
|
13274
13268
|
startDate: date,
|
|
13275
|
-
endDate:
|
|
13269
|
+
endDate: endDate
|
|
13270
|
+
} : {
|
|
13271
|
+
startDate: startDate,
|
|
13272
|
+
endDate: date
|
|
13276
13273
|
};
|
|
13277
13274
|
};
|
|
13278
13275
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.92.1
|
|
3
|
+
"version": "8.92.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -95,6 +95,5 @@
|
|
|
95
95
|
"ts-jest": "^29.1.1",
|
|
96
96
|
"typescript": "^5.7.3"
|
|
97
97
|
},
|
|
98
|
-
"prettier": "prettier-config-hd"
|
|
99
|
-
"react-native": "src/index.ts"
|
|
98
|
+
"prettier": "prettier-config-hd"
|
|
100
99
|
}
|
|
@@ -54,18 +54,15 @@ export const setStartOrEndDate = ({
|
|
|
54
54
|
startDate?: Date;
|
|
55
55
|
endDate?: Date;
|
|
56
56
|
}) => {
|
|
57
|
-
//
|
|
58
|
-
if (
|
|
57
|
+
// Prevent selecting same date when both dates are set
|
|
58
|
+
if (
|
|
59
|
+
startDate &&
|
|
60
|
+
endDate &&
|
|
61
|
+
(isEqDate(date, startDate) || isEqDate(date, endDate))
|
|
62
|
+
) {
|
|
59
63
|
return {
|
|
60
|
-
startDate
|
|
61
|
-
endDate
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (startDate && endDate && isEqDate(date, endDate)) {
|
|
66
|
-
return {
|
|
67
|
-
startDate: date,
|
|
68
|
-
endDate: date,
|
|
64
|
+
startDate,
|
|
65
|
+
endDate,
|
|
69
66
|
};
|
|
70
67
|
}
|
|
71
68
|
|
|
@@ -98,9 +95,14 @@ export const setStartOrEndDate = ({
|
|
|
98
95
|
};
|
|
99
96
|
}
|
|
100
97
|
|
|
101
|
-
// Clicking outside range -
|
|
102
|
-
return
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
// Clicking outside range - extend range
|
|
99
|
+
return date < startDate
|
|
100
|
+
? {
|
|
101
|
+
startDate: date,
|
|
102
|
+
endDate,
|
|
103
|
+
}
|
|
104
|
+
: {
|
|
105
|
+
startDate,
|
|
106
|
+
endDate: date,
|
|
107
|
+
};
|
|
106
108
|
};
|