@gamecp/ui 0.1.40 → 0.1.41
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 +13 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3549,7 +3549,7 @@ function FormInput({
|
|
|
3549
3549
|
/* @__PURE__ */ jsxs(
|
|
3550
3550
|
"div",
|
|
3551
3551
|
{
|
|
3552
|
-
className: `relative flex-1 ${footerDescription ? "
|
|
3552
|
+
className: `relative flex-1 ${footerDescription ? "cursor-help" : ""}`,
|
|
3553
3553
|
"data-tooltip-id": footerDescription ? `${uniqueId}-help` : void 0,
|
|
3554
3554
|
children: [
|
|
3555
3555
|
/* @__PURE__ */ jsx(
|
|
@@ -3568,7 +3568,7 @@ function FormInput({
|
|
|
3568
3568
|
} : handleSelectChange,
|
|
3569
3569
|
options: options || [],
|
|
3570
3570
|
placeholder: placeholder || "Select an option...",
|
|
3571
|
-
className: `${error ? "form-input-error" : ""} ${inputClassName}`,
|
|
3571
|
+
className: `${error ? "form-input-error" : ""} ${footerDescription ? "border-r-2 border-r-info/50 hover:border-r-info transition-colors" : ""} ${inputClassName}`,
|
|
3572
3572
|
multiple: multiSelect,
|
|
3573
3573
|
width: selectWidth,
|
|
3574
3574
|
searchable,
|
|
@@ -3600,7 +3600,7 @@ function FormInput({
|
|
|
3600
3600
|
/* @__PURE__ */ jsx(
|
|
3601
3601
|
"div",
|
|
3602
3602
|
{
|
|
3603
|
-
className: `relative flex-1 ${footerDescription ? "
|
|
3603
|
+
className: `relative flex-1 ${footerDescription ? "cursor-help" : ""}`,
|
|
3604
3604
|
"data-tooltip-id": footerDescription ? `${uniqueId}-help` : void 0,
|
|
3605
3605
|
children: /* @__PURE__ */ jsx(
|
|
3606
3606
|
"textarea",
|
|
@@ -3619,7 +3619,7 @@ function FormInput({
|
|
|
3619
3619
|
maxLength,
|
|
3620
3620
|
"aria-invalid": error ? "true" : "false",
|
|
3621
3621
|
"aria-describedby": error ? `${name}-error` : description ? `${name}-description` : void 0,
|
|
3622
|
-
className: `form-input ${error ? "form-input-error" : ""} ${inputClassName}`
|
|
3622
|
+
className: `form-input ${error ? "form-input-error" : ""} ${footerDescription ? "border-r-2 border-r-info/50 hover:border-r-info transition-colors" : ""} ${inputClassName}`
|
|
3623
3623
|
}
|
|
3624
3624
|
)
|
|
3625
3625
|
}
|
|
@@ -3637,7 +3637,7 @@ function FormInput({
|
|
|
3637
3637
|
] }) : type === "color" ? /* @__PURE__ */ jsxs(
|
|
3638
3638
|
"div",
|
|
3639
3639
|
{
|
|
3640
|
-
className: `flex items-center space-x-3 ${footerDescription ? "
|
|
3640
|
+
className: `flex items-center space-x-3 ${footerDescription ? "cursor-help" : ""}`,
|
|
3641
3641
|
"data-tooltip-id": footerDescription ? `${uniqueId}-help` : void 0,
|
|
3642
3642
|
children: [
|
|
3643
3643
|
/* @__PURE__ */ jsxs("div", { className: "relative w-10 h-10 border border-input rounded-md overflow-hidden bg-card", children: [
|
|
@@ -3707,7 +3707,7 @@ function FormInput({
|
|
|
3707
3707
|
/* @__PURE__ */ jsxs(
|
|
3708
3708
|
"div",
|
|
3709
3709
|
{
|
|
3710
|
-
className: `relative flex-1 ${footerDescription ? "
|
|
3710
|
+
className: `relative flex-1 ${footerDescription ? "cursor-help" : ""}`,
|
|
3711
3711
|
"data-tooltip-id": footerDescription ? `${uniqueId}-help` : void 0,
|
|
3712
3712
|
children: [
|
|
3713
3713
|
/* @__PURE__ */ jsx(
|
|
@@ -3729,7 +3729,7 @@ function FormInput({
|
|
|
3729
3729
|
onBlur,
|
|
3730
3730
|
"aria-invalid": error ? "true" : "false",
|
|
3731
3731
|
"aria-describedby": error ? `${name}-error` : description ? `${name}-description` : void 0,
|
|
3732
|
-
className: `form-input ${error ? "form-input-error" : ""} ${readOnly ? "bg-muted cursor-default" : ""} ${copyable ? "pr-20" : "pr-10"} ${getInputPaddingClasses(type, getIconConfig(icon))} ${inputClassName}`
|
|
3732
|
+
className: `form-input ${error ? "form-input-error" : ""} ${readOnly ? "bg-muted cursor-default" : ""} ${copyable ? "pr-20" : "pr-10"} ${footerDescription ? "border-r-2 border-r-info/50 hover:border-r-info transition-colors" : ""} ${getInputPaddingClasses(type, getIconConfig(icon))} ${inputClassName}`
|
|
3733
3733
|
}
|
|
3734
3734
|
),
|
|
3735
3735
|
shouldShowIcons(type) && (() => {
|
|
@@ -3797,7 +3797,7 @@ function FormInput({
|
|
|
3797
3797
|
] }) : /* @__PURE__ */ jsxs(
|
|
3798
3798
|
"div",
|
|
3799
3799
|
{
|
|
3800
|
-
className: `flex items-center ${variablePicker ? "input-group" : ""} ${footerDescription ? "
|
|
3800
|
+
className: `flex items-center ${variablePicker ? "input-group" : ""} ${footerDescription ? "cursor-help" : ""}`,
|
|
3801
3801
|
"data-tooltip-id": footerDescription ? `${uniqueId}-help` : void 0,
|
|
3802
3802
|
children: [
|
|
3803
3803
|
/* @__PURE__ */ jsxs("div", { className: "relative group flex-1", children: [
|
|
@@ -3824,7 +3824,7 @@ function FormInput({
|
|
|
3824
3824
|
onBlur,
|
|
3825
3825
|
"aria-invalid": error ? "true" : "false",
|
|
3826
3826
|
"aria-describedby": error ? `${name}-error` : description ? `${name}-description` : void 0,
|
|
3827
|
-
className: `form-input ${error ? "form-input-error" : ""} ${readOnly ? "bg-muted cursor-default" : ""} ${copyable ? "pr-10" : ""} ${variablePicker ? "rounded-r-none border-r-0" : ""} ${getInputPaddingClasses(type, getIconConfig(icon))} ${inputClassName}`
|
|
3827
|
+
className: `form-input ${error ? "form-input-error" : ""} ${readOnly ? "bg-muted cursor-default" : ""} ${copyable ? "pr-10" : ""} ${variablePicker ? "rounded-r-none border-r-0" : ""} ${footerDescription && !variablePicker ? "border-r-2 border-r-info/50 hover:border-r-info transition-colors" : ""} ${getInputPaddingClasses(type, getIconConfig(icon))} ${inputClassName}`
|
|
3828
3828
|
}
|
|
3829
3829
|
),
|
|
3830
3830
|
shouldShowIcons(type) && (() => {
|
|
@@ -4130,7 +4130,8 @@ function SidebarNavItem({
|
|
|
4130
4130
|
{
|
|
4131
4131
|
type: "button",
|
|
4132
4132
|
onClick,
|
|
4133
|
-
title,
|
|
4133
|
+
"data-tooltip-id": title ? "global-tooltip" : void 0,
|
|
4134
|
+
"data-tooltip-content": title,
|
|
4134
4135
|
"aria-current": isActive ? "page" : void 0,
|
|
4135
4136
|
className: `w-full text-left ${commonClasses}`,
|
|
4136
4137
|
children: [
|
|
@@ -4151,6 +4152,8 @@ function SidebarNavItem({
|
|
|
4151
4152
|
{
|
|
4152
4153
|
href,
|
|
4153
4154
|
onClick,
|
|
4155
|
+
"data-tooltip-id": title ? "global-tooltip" : void 0,
|
|
4156
|
+
"data-tooltip-content": title,
|
|
4154
4157
|
className: commonClasses,
|
|
4155
4158
|
children: [
|
|
4156
4159
|
Icon && /* @__PURE__ */ jsx(
|