@julseb-lib/react 1.1.28 → 1.1.31

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/dist/index.js CHANGED
@@ -63996,6 +63996,7 @@ var InputCounter = ({
63996
63996
  containerClassName,
63997
63997
  onClickPlus,
63998
63998
  onClickMinus,
63999
+ disabled,
63999
64000
  ...rest
64000
64001
  }) => {
64001
64002
  return /* @__PURE__ */ jsx297(
@@ -64031,7 +64032,7 @@ var InputCounter = ({
64031
64032
  setValue((prev) => prev - step);
64032
64033
  if (onClickMinus) onClickMinus();
64033
64034
  },
64034
- disabled: value === min
64035
+ disabled: value === min || disabled
64035
64036
  }
64036
64037
  ),
64037
64038
  noInput ? /* @__PURE__ */ jsx297(
@@ -64049,8 +64050,9 @@ var InputCounter = ({
64049
64050
  id,
64050
64051
  value,
64051
64052
  onChange: (e) => setValue(Number(e.target.value)),
64052
- className: "px-2 border border-gray-200 focus:border-primary-500 rounded-md outline-none min-w-[calc(3ch+16px)] text-center input-counter-input",
64053
+ className: "disabled:bg-gray-100 px-2 border border-gray-200 focus:border-primary-500 rounded-md outline-none min-w-[calc(3ch+16px)] disabled:text-gray-500 text-center disabled:cursor-not-allowed input-counter-input",
64053
64054
  size: value.toString().length + 1,
64055
+ disabled,
64054
64056
  ...rest
64055
64057
  }
64056
64058
  ),
@@ -64068,7 +64070,7 @@ var InputCounter = ({
64068
64070
  setValue((prev) => prev + step);
64069
64071
  if (onClickPlus) onClickPlus();
64070
64072
  },
64071
- disabled: value === max
64073
+ disabled: value === max || disabled
64072
64074
  }
64073
64075
  )
64074
64076
  ]
@@ -67978,6 +67980,8 @@ var Meta = ({
67978
67980
  twitterCard = "summary",
67979
67981
  appleTouchIcon,
67980
67982
  themeColor,
67983
+ themeColorLight = themeColor,
67984
+ themeColorDark = themeColor,
67981
67985
  appName
67982
67986
  }) => {
67983
67987
  return /* @__PURE__ */ jsxs293(Fragment14, { children: [
@@ -68005,7 +68009,8 @@ var Meta = ({
68005
68009
  ] }),
68006
68010
  author && /* @__PURE__ */ jsxs293(Fragment14, { children: [
68007
68011
  /* @__PURE__ */ jsx353("meta", { name: "author", content: author }),
68008
- /* @__PURE__ */ jsx353("meta", { name: "twitter:creator", content: author })
68012
+ /* @__PURE__ */ jsx353("meta", { name: "twitter:creator", content: author }),
68013
+ /* @__PURE__ */ jsx353("meta", { name: "publisher", content: author })
68009
68014
  ] }),
68010
68015
  url && /* @__PURE__ */ jsxs293(Fragment14, { children: [
68011
68016
  /* @__PURE__ */ jsx353("meta", { property: "og:url", content: url }),
@@ -68030,6 +68035,22 @@ var Meta = ({
68030
68035
  favicon && /* @__PURE__ */ jsx353("link", { rel: "icon", href: favicon }),
68031
68036
  appleTouchIcon && /* @__PURE__ */ jsx353("link", { rel: "apple-touch-icon", href: appleTouchIcon }),
68032
68037
  themeColor && /* @__PURE__ */ jsx353("meta", { name: "theme-color", content: themeColor }),
68038
+ themeColorLight && /* @__PURE__ */ jsx353(
68039
+ "meta",
68040
+ {
68041
+ name: "theme-color",
68042
+ media: "(prefers-color-scheme: light)",
68043
+ content: themeColorLight
68044
+ }
68045
+ ),
68046
+ themeColorDark && /* @__PURE__ */ jsx353(
68047
+ "meta",
68048
+ {
68049
+ name: "theme-color",
68050
+ media: "(prefers-color-scheme: dark)",
68051
+ content: themeColorDark
68052
+ }
68053
+ ),
68033
68054
  children
68034
68055
  ] });
68035
68056
  };