@seamly/web-ui 24.4.0 → 24.4.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.
@@ -13998,7 +13998,7 @@ class API {
13998
13998
  return {
13999
13999
  clientName: "@seamly/web-ui",
14000
14000
  clientVariant: this.#layoutMode,
14001
- clientVersion: "24.4.0",
14001
+ clientVersion: "24.4.1",
14002
14002
  currentUrl: window.location.toString(),
14003
14003
  screenResolution: `${window.screen.width}x${window.screen.height}`,
14004
14004
  timezone: (0,_utils__WEBPACK_IMPORTED_MODULE_10__.getTimeZone)(),
@@ -21250,8 +21250,9 @@ const UploadContent = ({
21250
21250
  }) => {
21251
21251
  if (fileId && !isDeleted) {
21252
21252
  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("button", {
21253
+ type: "button",
21253
21254
  onClick: onClickHandler,
21254
- className: (0,lib_css__WEBPACK_IMPORTED_MODULE_5__.className)(['button', 'download', 'download-link']),
21255
+ className: (0,lib_css__WEBPACK_IMPORTED_MODULE_5__.className)(['download', 'download-link']),
21255
21256
  children: children
21256
21257
  });
21257
21258
  }
@@ -23080,9 +23081,9 @@ function useCharacterLimit(controlName) {
23080
23081
  const [{
23081
23082
  value
23082
23083
  }] = (0,domains_forms_hooks__WEBPACK_IMPORTED_MODULE_2__.useFormControl)(controlName);
23083
- const remainingChars = limit && hasLimit && value ? limit - value.length : limit;
23084
+ const remainingChars = typeof limit === 'number' && hasLimit && value ? limit - value.length : limit;
23084
23085
  const reachedCharacterWarning = hasLimit && typeof remainingChars == 'number' ? remainingChars <= config__WEBPACK_IMPORTED_MODULE_1__.maxCharacterWarningLimit : false;
23085
- const reachedCharacterLimit = hasLimit && remainingChars ? remainingChars < 0 : false;
23086
+ const reachedCharacterLimit = hasLimit && typeof remainingChars === 'number' ? remainingChars < 0 : false;
23086
23087
  (0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
23087
23088
  validateLimit(reachedCharacterWarning, remainingChars);
23088
23089
  }, [reachedCharacterWarning, remainingChars, validateLimit]);