@sunggang/ui-lib 0.3.60 → 0.3.61

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.
Files changed (2) hide show
  1. package/index.esm2.js +10 -1
  2. package/package.json +1 -1
package/index.esm2.js CHANGED
@@ -50221,7 +50221,16 @@ var FlatpickrInput = /*#__PURE__*/ forwardRef(function(param, ref) {
50221
50221
  mode: "single",
50222
50222
  allowInput: true,
50223
50223
  clickOpens: true,
50224
- time_24hr: true
50224
+ time_24hr: true,
50225
+ onOpen: function(_, __, instance) {
50226
+ var monthSelect = instance.calendarContainer.querySelector(".flatpickr-monthDropdown-months");
50227
+ var yearInput = instance.calendarContainer.querySelector(".numInputWrapper");
50228
+ if (monthSelect && yearInput && yearInput.parentNode) {
50229
+ var parent = yearInput.parentNode;
50230
+ // 把月和年 select 調整順序
50231
+ parent.insertBefore(yearInput, monthSelect); // 年在月前
50232
+ }
50233
+ }
50225
50234
  }, item === null || item === void 0 ? void 0 : item.flatpickrOptions);
50226
50235
  // 移除錯誤的 closeOnSelect 設定,改用事件控制
50227
50236
  if (options.mode === "range") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.3.60",
3
+ "version": "0.3.61",
4
4
  "dependencies": {
5
5
  "@emotion/react": "^11.14.0",
6
6
  "@emotion/styled": "^11.14.0",