@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.cjs +25 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +25 -4
- package/dist/index.js.map +1 -1
- package/dist/types/components-props.d.cts +12 -2
- package/dist/types/components-props.d.ts +12 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -66955,6 +66955,7 @@ var InputCounter = ({
|
|
|
66955
66955
|
containerClassName,
|
|
66956
66956
|
onClickPlus,
|
|
66957
66957
|
onClickMinus,
|
|
66958
|
+
disabled,
|
|
66958
66959
|
...rest
|
|
66959
66960
|
}) => {
|
|
66960
66961
|
return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
|
|
@@ -66990,7 +66991,7 @@ var InputCounter = ({
|
|
|
66990
66991
|
setValue((prev) => prev - step);
|
|
66991
66992
|
if (onClickMinus) onClickMinus();
|
|
66992
66993
|
},
|
|
66993
|
-
disabled: value === min
|
|
66994
|
+
disabled: value === min || disabled
|
|
66994
66995
|
}
|
|
66995
66996
|
),
|
|
66996
66997
|
noInput ? /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
|
|
@@ -67008,8 +67009,9 @@ var InputCounter = ({
|
|
|
67008
67009
|
id,
|
|
67009
67010
|
value,
|
|
67010
67011
|
onChange: (e) => setValue(Number(e.target.value)),
|
|
67011
|
-
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",
|
|
67012
|
+
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",
|
|
67012
67013
|
size: value.toString().length + 1,
|
|
67014
|
+
disabled,
|
|
67013
67015
|
...rest
|
|
67014
67016
|
}
|
|
67015
67017
|
),
|
|
@@ -67027,7 +67029,7 @@ var InputCounter = ({
|
|
|
67027
67029
|
setValue((prev) => prev + step);
|
|
67028
67030
|
if (onClickPlus) onClickPlus();
|
|
67029
67031
|
},
|
|
67030
|
-
disabled: value === max
|
|
67032
|
+
disabled: value === max || disabled
|
|
67031
67033
|
}
|
|
67032
67034
|
)
|
|
67033
67035
|
]
|
|
@@ -70987,6 +70989,8 @@ var Meta = ({
|
|
|
70987
70989
|
twitterCard = "summary",
|
|
70988
70990
|
appleTouchIcon,
|
|
70989
70991
|
themeColor,
|
|
70992
|
+
themeColorLight = themeColor,
|
|
70993
|
+
themeColorDark = themeColor,
|
|
70990
70994
|
appName
|
|
70991
70995
|
}) => {
|
|
70992
70996
|
return /* @__PURE__ */ (0, import_jsx_runtime375.jsxs)(import_jsx_runtime375.Fragment, { children: [
|
|
@@ -71014,7 +71018,8 @@ var Meta = ({
|
|
|
71014
71018
|
] }),
|
|
71015
71019
|
author && /* @__PURE__ */ (0, import_jsx_runtime375.jsxs)(import_jsx_runtime375.Fragment, { children: [
|
|
71016
71020
|
/* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { name: "author", content: author }),
|
|
71017
|
-
/* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { name: "twitter:creator", content: author })
|
|
71021
|
+
/* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { name: "twitter:creator", content: author }),
|
|
71022
|
+
/* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { name: "publisher", content: author })
|
|
71018
71023
|
] }),
|
|
71019
71024
|
url && /* @__PURE__ */ (0, import_jsx_runtime375.jsxs)(import_jsx_runtime375.Fragment, { children: [
|
|
71020
71025
|
/* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { property: "og:url", content: url }),
|
|
@@ -71039,6 +71044,22 @@ var Meta = ({
|
|
|
71039
71044
|
favicon && /* @__PURE__ */ (0, import_jsx_runtime375.jsx)("link", { rel: "icon", href: favicon }),
|
|
71040
71045
|
appleTouchIcon && /* @__PURE__ */ (0, import_jsx_runtime375.jsx)("link", { rel: "apple-touch-icon", href: appleTouchIcon }),
|
|
71041
71046
|
themeColor && /* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { name: "theme-color", content: themeColor }),
|
|
71047
|
+
themeColorLight && /* @__PURE__ */ (0, import_jsx_runtime375.jsx)(
|
|
71048
|
+
"meta",
|
|
71049
|
+
{
|
|
71050
|
+
name: "theme-color",
|
|
71051
|
+
media: "(prefers-color-scheme: light)",
|
|
71052
|
+
content: themeColorLight
|
|
71053
|
+
}
|
|
71054
|
+
),
|
|
71055
|
+
themeColorDark && /* @__PURE__ */ (0, import_jsx_runtime375.jsx)(
|
|
71056
|
+
"meta",
|
|
71057
|
+
{
|
|
71058
|
+
name: "theme-color",
|
|
71059
|
+
media: "(prefers-color-scheme: dark)",
|
|
71060
|
+
content: themeColorDark
|
|
71061
|
+
}
|
|
71062
|
+
),
|
|
71042
71063
|
children
|
|
71043
71064
|
] });
|
|
71044
71065
|
};
|