@sunggang/ui-lib 0.4.13 → 0.4.15

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/DropImage.cjs.js CHANGED
@@ -16811,7 +16811,7 @@ var DropImage = function(param) {
16811
16811
  imageUrls: previewFiles,
16812
16812
  handleRemove: handleRemove,
16813
16813
  maxTotalImages: maxTotalImages,
16814
- showLimitWarning: showLimitWarning
16814
+ showLimitWarning: showLimitWarning && !canUploadMore
16815
16815
  })
16816
16816
  ]
16817
16817
  })
package/DropImage.esm.js CHANGED
@@ -16801,7 +16801,7 @@ var DropImage = function(param) {
16801
16801
  imageUrls: previewFiles,
16802
16802
  handleRemove: handleRemove,
16803
16803
  maxTotalImages: maxTotalImages,
16804
- showLimitWarning: showLimitWarning
16804
+ showLimitWarning: showLimitWarning && !canUploadMore
16805
16805
  })
16806
16806
  ]
16807
16807
  })
package/baseSwitch.cjs.js CHANGED
@@ -22370,12 +22370,12 @@ var FlatpickrInput = /*#__PURE__*/ React.forwardRef(function(param, ref) {
22370
22370
  item === null || item === void 0 ? void 0 : item.flatpickrType,
22371
22371
  onChange
22372
22372
  ]);
22373
- var destroyFlatpickr = React.useCallback(function() {
22374
- if (flatpickrInstance.current) {
22375
- flatpickrInstance.current.destroy();
22376
- flatpickrInstance.current = null;
22377
- }
22378
- }, []);
22373
+ // const destroyFlatpickr = useCallback(() => {
22374
+ // if (flatpickrInstance.current) {
22375
+ // flatpickrInstance.current.destroy();
22376
+ // flatpickrInstance.current = null;
22377
+ // }
22378
+ // }, []);
22379
22379
  var updateFlatpickr = React.useCallback(function(newValue) {
22380
22380
  if (flatpickrInstance.current) {
22381
22381
  // 如果值為 null 或 undefined,清除選擇
@@ -22407,11 +22407,7 @@ var FlatpickrInput = /*#__PURE__*/ React.forwardRef(function(param, ref) {
22407
22407
  // 初始化和清理
22408
22408
  React__default["default"].useEffect(function() {
22409
22409
  initializeFlatpickr();
22410
- return destroyFlatpickr;
22411
- }, [
22412
- initializeFlatpickr,
22413
- destroyFlatpickr
22414
- ]);
22410
+ }, []);
22415
22411
  // 當值變化時更新 flatpickr
22416
22412
  React__default["default"].useEffect(function() {
22417
22413
  updateFlatpickr(value);
package/baseSwitch.esm.js CHANGED
@@ -22341,12 +22341,12 @@ var FlatpickrInput = /*#__PURE__*/ forwardRef(function(param, ref) {
22341
22341
  item === null || item === void 0 ? void 0 : item.flatpickrType,
22342
22342
  onChange
22343
22343
  ]);
22344
- var destroyFlatpickr = useCallback(function() {
22345
- if (flatpickrInstance.current) {
22346
- flatpickrInstance.current.destroy();
22347
- flatpickrInstance.current = null;
22348
- }
22349
- }, []);
22344
+ // const destroyFlatpickr = useCallback(() => {
22345
+ // if (flatpickrInstance.current) {
22346
+ // flatpickrInstance.current.destroy();
22347
+ // flatpickrInstance.current = null;
22348
+ // }
22349
+ // }, []);
22350
22350
  var updateFlatpickr = useCallback(function(newValue) {
22351
22351
  if (flatpickrInstance.current) {
22352
22352
  // 如果值為 null 或 undefined,清除選擇
@@ -22378,11 +22378,7 @@ var FlatpickrInput = /*#__PURE__*/ forwardRef(function(param, ref) {
22378
22378
  // 初始化和清理
22379
22379
  React__default.useEffect(function() {
22380
22380
  initializeFlatpickr();
22381
- return destroyFlatpickr;
22382
- }, [
22383
- initializeFlatpickr,
22384
- destroyFlatpickr
22385
- ]);
22381
+ }, []);
22386
22382
  // 當值變化時更新 flatpickr
22387
22383
  React__default.useEffect(function() {
22388
22384
  updateFlatpickr(value);
package/index.cjs.css CHANGED
@@ -2546,9 +2546,6 @@ video {
2546
2546
  .pt-4 {
2547
2547
  padding-top: 1rem;
2548
2548
  }
2549
- .pt-8 {
2550
- padding-top: 2rem;
2551
- }
2552
2549
  .text-left {
2553
2550
  text-align: left;
2554
2551
  }
package/index.esm.css CHANGED
@@ -2546,9 +2546,6 @@ video {
2546
2546
  .pt-4 {
2547
2547
  padding-top: 1rem;
2548
2548
  }
2549
- .pt-8 {
2550
- padding-top: 2rem;
2551
- }
2552
2549
  .text-left {
2553
2550
  text-align: left;
2554
2551
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.4.13",
3
+ "version": "0.4.15",
4
4
  "main": "./index.cjs.js",
5
5
  "module": "./index.esm.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -17,6 +17,7 @@ export declare const config: (getValues: (name: string) => unknown) => (FormItem
17
17
  required: string;
18
18
  };
19
19
  icon: string;
20
+ flatpickrType: string;
20
21
  flatpickrOptions: {
21
22
  mode: string;
22
23
  time_24hr: boolean;
@@ -27,7 +28,6 @@ export declare const config: (getValues: (name: string) => unknown) => (FormItem
27
28
  id?: undefined;
28
29
  errorText?: undefined;
29
30
  placeholder?: undefined;
30
- flatpickrType?: undefined;
31
31
  option?: undefined;
32
32
  noDataText?: undefined;
33
33
  hiddenText?: undefined;
@@ -83,10 +83,10 @@ export declare const config: (getValues: (name: string) => unknown) => (FormItem
83
83
  };
84
84
  className: string;
85
85
  icon?: undefined;
86
+ flatpickrType?: undefined;
86
87
  flatpickrOptions?: undefined;
87
88
  id?: undefined;
88
89
  errorText?: undefined;
89
- flatpickrType?: undefined;
90
90
  })[] | {
91
91
  type: string;
92
92
  name: string;