@yomologic/react-ui 0.5.11 → 0.6.2

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.mjs CHANGED
@@ -607,7 +607,7 @@ function FormControl({
607
607
  {
608
608
  className: cn(
609
609
  "text-small",
610
- currentError ? "text-error" : "text-(--color-muted-foreground)"
610
+ currentError ? "text-(--color-error)" : "text-(--color-muted-foreground)"
611
611
  ),
612
612
  id: `${fieldId}-message`,
613
613
  role: currentError ? "alert" : void 0,
@@ -679,7 +679,7 @@ function FormHelperText({
679
679
  {
680
680
  className: cn(
681
681
  "text-small",
682
- isError ? "text-error" : "text-(--color-muted-foreground)",
682
+ isError ? "text-(--color-error)" : "text-(--color-muted-foreground)",
683
683
  className
684
684
  ),
685
685
  role: isError ? "alert" : void 0,
@@ -994,10 +994,10 @@ var Input = React2.forwardRef(
994
994
  "aria-describedby": inputError ? `${fieldId}-error` : helperText ? `${fieldId}-helper` : void 0,
995
995
  className: cn(
996
996
  "w-full px-3 py-2 border rounded-md transition-colors",
997
- "text-(--color-muted-foreground) placeholder-gray-400",
997
+ "text-(--color-foreground) placeholder-gray-400",
998
998
  "focus:outline-none",
999
999
  "disabled:bg-(--color-muted) disabled:cursor-not-allowed disabled:text-(--color-muted-foreground)",
1000
- inputError ? "border-error focus:ring-2 focus:ring-error focus:border-error active:border-error" : "border-(--color-border) focus:ring-2 focus:ring-(--color-primary)/30 focus:border-(--color-primary) active:border-(--color-primary)",
1000
+ inputError ? "border-(--color-error) focus:ring-2 focus:ring-(--color-error) focus:border-(--color-error) active:border-(--color-error)" : "border-(--color-border) focus:ring-2 focus:ring-(--color-primary)/30 focus:border-(--color-primary) active:border-(--color-primary)",
1001
1001
  leftIcon && "pl-10",
1002
1002
  rightIcon && "pr-10",
1003
1003
  className
@@ -1011,7 +1011,7 @@ var Input = React2.forwardRef(
1011
1011
  shouldRenderError && inputError && /* @__PURE__ */ jsx4(
1012
1012
  "p",
1013
1013
  {
1014
- className: "text-small text-error",
1014
+ className: "text-small text-(--color-error)",
1015
1015
  id: `${fieldId}-error`,
1016
1016
  role: "alert",
1017
1017
  children: inputError
@@ -1238,10 +1238,10 @@ var Textarea = React3.forwardRef(
1238
1238
  "aria-describedby": textareaError ? `${textareaId}-error` : helperText ? `${textareaId}-helper` : void 0,
1239
1239
  className: cn(
1240
1240
  "w-full px-3 py-2 border rounded-md transition-colors",
1241
- "text-(--color-muted-foreground) placeholder-gray-400",
1241
+ "text-(--color-foreground) placeholder-gray-400",
1242
1242
  "focus:outline-none",
1243
1243
  "disabled:bg-(--color-muted) disabled:cursor-not-allowed disabled:text-(--color-muted-foreground)",
1244
- textareaError ? "border-error focus:ring-2 focus:ring-error focus:border-error active:border-error" : "border-(--color-border) focus:ring-2 focus:ring-(--color-primary)/30 focus:border-(--color-primary) active:border-(--color-primary)",
1244
+ textareaError ? "border-(--color-error) focus:ring-2 focus:ring-(--color-error) focus:border-(--color-error) active:border-(--color-error)" : "border-(--color-border) focus:ring-2 focus:ring-(--color-primary)/30 focus:border-(--color-primary) active:border-(--color-primary)",
1245
1245
  resizeClasses[resize],
1246
1246
  autoResize && "overflow-hidden",
1247
1247
  !autoResize && "overflow-auto",
@@ -1720,7 +1720,7 @@ function Checkbox({
1720
1720
  }
1721
1721
  )
1722
1722
  ] }),
1723
- /* @__PURE__ */ jsx8("div", { className: "h-5 mt-1.5", children: displayError && /* @__PURE__ */ jsx8("p", { className: "text-small text-error", role: "alert", children: displayError }) })
1723
+ /* @__PURE__ */ jsx8("div", { className: "h-5 mt-1.5", children: displayError && /* @__PURE__ */ jsx8("p", { className: "text-small text-(--color-error)", role: "alert", children: displayError }) })
1724
1724
  ] });
1725
1725
  }
1726
1726
  function CheckboxGroup({
@@ -1870,7 +1870,7 @@ function CheckboxGroup({
1870
1870
  /* @__PURE__ */ jsx8("div", { className: "h-5 mt-1.5", children: (error || helperText) && /* @__PURE__ */ jsx8(
1871
1871
  "p",
1872
1872
  {
1873
- className: `text-small ${error ? "text-error" : "text-(--color-muted-foreground)"}`,
1873
+ className: `text-small ${error ? "text-(--color-error)" : "text-(--color-muted-foreground)"}`,
1874
1874
  role: error ? "alert" : void 0,
1875
1875
  children: error || helperText
1876
1876
  }
@@ -2049,7 +2049,7 @@ function RadioGroup({
2049
2049
  /* @__PURE__ */ jsx9("div", { className: "h-5 mt-1.5", children: (displayError || helperText) && /* @__PURE__ */ jsx9(
2050
2050
  "p",
2051
2051
  {
2052
- className: `text-small ${displayError ? "text-error" : "text-(--color-muted-foreground)"}`,
2052
+ className: `text-small ${displayError ? "text-(--color-error)" : "text-(--color-muted-foreground)"}`,
2053
2053
  role: displayError ? "alert" : void 0,
2054
2054
  children: displayError || helperText
2055
2055
  }
@@ -2278,7 +2278,7 @@ function Select({
2278
2278
  flex items-center justify-between
2279
2279
  transition-all duration-200
2280
2280
  outline-none
2281
- ${displayError ? "border-error focus:ring-2 focus:ring-error focus:border-error focus-visible:ring-2 focus-visible:ring-error focus-visible:border-error" : "border-(--color-border) focus:ring-2 focus:ring-(--color-primary)/30 focus:border-(--color-primary) focus-visible:ring-2 focus-visible:ring-(--color-primary)/30 focus-visible:border-(--color-primary)"}
2281
+ ${displayError ? "border-(--color-error) focus:ring-2 focus:ring-(--color-error) focus:border-(--color-error) focus-visible:ring-2 focus-visible:ring-(--color-error) focus-visible:border-(--color-error)" : "border-(--color-border) focus:ring-2 focus:ring-(--color-primary)/30 focus:border-(--color-primary) focus-visible:ring-2 focus-visible:ring-(--color-primary)/30 focus-visible:border-(--color-primary)"}
2282
2282
  ${disabled ? "bg-(--color-muted) cursor-not-allowed opacity-60" : "hover:border-(--color-primary)"}
2283
2283
  ${!value ? "text-(--color-placeholder)" : "text-(--color-foreground)"}
2284
2284
  `,
@@ -2367,7 +2367,7 @@ function Select({
2367
2367
  /* @__PURE__ */ jsx10("div", { className: "h-5 mt-1.5", children: (helperText || displayError) && /* @__PURE__ */ jsx10(
2368
2368
  "p",
2369
2369
  {
2370
- className: `text-small ${displayError ? "text-error" : "text-(--color-muted-foreground)"}`,
2370
+ className: `text-small ${displayError ? "text-(--color-error)" : "text-(--color-muted-foreground)"}`,
2371
2371
  children: displayError || helperText
2372
2372
  }
2373
2373
  ) })
@@ -2446,7 +2446,7 @@ function NativeSelect({
2446
2446
  style: { color: "var(--color-muted-foreground)" },
2447
2447
  children: [
2448
2448
  label,
2449
- required && /* @__PURE__ */ jsx11("span", { className: "ml-1 text-error", children: "*" })
2449
+ required && /* @__PURE__ */ jsx11("span", { className: "ml-1 text-(--color-error)", children: "*" })
2450
2450
  ]
2451
2451
  }
2452
2452
  ),
@@ -2466,7 +2466,7 @@ function NativeSelect({
2466
2466
  appearance-none
2467
2467
  cursor-pointer
2468
2468
  outline-none
2469
- ${displayError ? "border-error focus:border-error active:border-error" : "border-(--color-border) focus:border-(--color-primary) active:border-(--color-primary)"}
2469
+ ${displayError ? "border-(--color-error) focus:border-(--color-error) active:border-(--color-error)" : "border-(--color-border) focus:border-(--color-primary) active:border-(--color-primary)"}
2470
2470
  ${disabled ? "bg-(--color-muted) cursor-not-allowed opacity-60" : "hover:border-(--color-primary)"}
2471
2471
  ${!value ? "text-(--color-placeholder)" : "text-(--color-foreground)"}
2472
2472
  pr-10
@@ -2482,7 +2482,7 @@ function NativeSelect({
2482
2482
  /* @__PURE__ */ jsx11("div", { className: "h-5 mt-1.5", children: (helperText || displayError) && /* @__PURE__ */ jsx11(
2483
2483
  "p",
2484
2484
  {
2485
- className: `text-small ${displayError ? "text-error" : "text-(--color-muted-foreground)"}`,
2485
+ className: `text-small ${displayError ? "text-(--color-error)" : "text-(--color-muted-foreground)"}`,
2486
2486
  children: displayError || helperText
2487
2487
  }
2488
2488
  ) })