@sunggang/ui-lib 0.3.65 → 0.3.66

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/index.esm2.js CHANGED
@@ -50321,7 +50321,7 @@ var FlatpickrInput = /*#__PURE__*/ forwardRef(function(param, ref) {
50321
50321
  instance.close();
50322
50322
  }, 50);
50323
50323
  }
50324
- } else if (mode === "multiple" || (item === null || item === void 0 ? void 0 : item.name) === "time_only") ; else {
50324
+ } else if (mode === "multiple" || (item === null || item === void 0 ? void 0 : item.flatpickrType) === "time") ; else {
50325
50325
  // Single mode: 返回單一日期,預設行為會自動關閉
50326
50326
  onChange(selectedDates.length > 0 ? selectedDates[0] : null);
50327
50327
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.3.65",
3
+ "version": "0.3.66",
4
4
  "dependencies": {
5
5
  "@emotion/react": "^11.14.0",
6
6
  "@emotion/styled": "^11.14.0",
@@ -128,6 +128,7 @@ export interface FormItem {
128
128
  borderColor?: string;
129
129
  };
130
130
  flatpickrOptions?: FlatpickrOptions;
131
+ flatpickrType?: 'time';
131
132
  }
132
133
  export interface FormType {
133
134
  item: FormItem;