@mateosuarezdev/react-ui 1.0.14 → 1.0.16

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
@@ -496,7 +496,7 @@ function Br(e, { target: t = window, event: n = "keydown", enabled: r } = {}) {
496
496
  };
497
497
  }, [t, n, r]);
498
498
  }
499
- const Vr = "relative shrink-0 select-none transition outline-none duration-200 ease-out focus:ring-border-brand-light flex items-center justify-center cursor-pointer", Kr = {
499
+ const Vr = "relative shrink-0 select-none transition outline-none duration-200 ease-out focus-visible:ring-border-brand-light flex items-center justify-center cursor-pointer", Kr = {
500
500
  xs: "text-xs px-1 gap-x-0.5 py-1",
501
501
  sm: "text-sm px-2.5 gap-x-1 py-1.5",
502
502
  mdsm: "text-sm px-3 gap-x-1.5 py-2.5",
@@ -508,9 +508,9 @@ const Vr = "relative shrink-0 select-none transition outline-none duration-200 e
508
508
  iconMd: "text-base p-3",
509
509
  iconLg: "text-base p-4"
510
510
  }, Xr = {
511
- all: "focus:ring-1",
512
- desktop: "lg:focus:ring-1",
513
- mobile: "focus:ring-1 lg:focus-ring-0",
511
+ all: "focus-visible:ring-1",
512
+ desktop: "lg:focus-visible:ring-1",
513
+ mobile: "focus-visible:ring-1 lg:focus-ring-0",
514
514
  none: ""
515
515
  }, qr = {
516
516
  light: "font-light",
@@ -534,19 +534,19 @@ const Vr = "relative shrink-0 select-none transition outline-none duration-200 e
534
534
  12: "rounded-12",
535
535
  full: "rounded-full"
536
536
  }, Qr = {
537
- transparent: "text-base-12 lg:hover:bg-base-4 focus:ring-base-6",
537
+ transparent: "text-base-12 lg:hover:bg-base-4 focus-visible:ring-base-6",
538
538
  transparentinactive: "text-base-11 lg:hover:bg-base-4",
539
- brand: "bg-brand text-brand-text lg:hover:bg-brand-hover focus:ring-base-6 border border-transparent",
539
+ brand: "bg-brand text-brand-text lg:hover:bg-brand-hover focus-visible:ring-base-6 border border-transparent",
540
540
  accent: "bg-accent text-accent-text lg:hover:bg-accent-hover",
541
- contrast: "bg-base-12 text-base-1 lg:hover:bg-base-11 focus:ring-base-6",
542
- solid: "bg-base-3 dark-theme:bg-base-3 lg:hover:bg-base-4 border border-base-4 focus:ring-base-5",
543
- solidhybrid: "border border-base-5 dark-theme:border-base-4 dark-theme:bg-base-3 lg:hover:bg-base-4 focus:ring-base-6",
544
- outline: "border border-base-6 lg:hover:bg-base-3 focus:ring-base-6",
545
- info: "bg-blue-3 text-blue-9 lg:hover:bg-blue-4 lg:active:bg-blue-5 focus:ring-blue-9 border border-transparent",
546
- success: "bg-green-4 text-green-9 lg:hover:bg-green-5 lg:active:bg-green-6 focus:ring-green-9 border border-transparent",
547
- warning: "bg-yellow-4 text-yellow-9 lg:hover:bg-yellow-5 lg:active:bg-yellow-6 focus:ring-yellow-9 border border-transparent",
548
- danger: "bg-red-4 text-red-9 lg:hover:bg-red-5 focus:ring-red-9 border border-transparent",
549
- dangersolid: "bg-red-9 text-base-1 dark-theme:text-base-12 lg:hover:bg-red-8 focus:ring-base-6 border border-transparent",
541
+ contrast: "bg-base-12 text-base-1 lg:hover:bg-base-11 focus-visible:ring-base-6",
542
+ solid: "bg-base-3 dark-theme:bg-base-3 lg:hover:bg-base-4 border border-base-4 focus-visible:ring-base-5",
543
+ solidhybrid: "border border-base-5 dark-theme:border-base-4 dark-theme:bg-base-3 lg:hover:bg-base-4 focus-visible:ring-base-6",
544
+ outline: "border border-base-6 lg:hover:bg-base-3 focus-visible:ring-base-6",
545
+ info: "bg-blue-3 text-blue-9 lg:hover:bg-blue-4 lg:active:bg-blue-5 focus-visible:ring-blue-9 border border-transparent",
546
+ success: "bg-green-4 text-green-9 lg:hover:bg-green-5 lg:active:bg-green-6 focus-visible:ring-green-9 border border-transparent",
547
+ warning: "bg-yellow-4 text-yellow-9 lg:hover:bg-yellow-5 lg:active:bg-yellow-6 focus-visible:ring-yellow-9 border border-transparent",
548
+ danger: "bg-red-4 text-red-9 lg:hover:bg-red-5 focus-visible:ring-red-9 border border-transparent",
549
+ dangersolid: "bg-red-9 text-base-1 dark-theme:text-base-12 lg:hover:bg-red-8 focus-visible:ring-base-6 border border-transparent",
550
550
  disabled: "bg-base-3 text-base-11 border border-transparent"
551
551
  }, Gr = {
552
552
  enabled: "",
@@ -3165,7 +3165,7 @@ const Yt = ({ children: e, node: t }) => $n(e, t ?? document.body), bs = ({
3165
3165
  onClick: O,
3166
3166
  className: v(
3167
3167
  "outline-none p-2 rounded-md transition-colors",
3168
- "hover:bg-base-3 focus:bg-base-3 focus:ring-2 focus:ring-brand",
3168
+ "hover:bg-base-3 focus-visible:bg-base-3 focus-visible:ring-2 focus-visible:ring-brand",
3169
3169
  i
3170
3170
  ),
3171
3171
  children: n
@@ -3577,7 +3577,7 @@ const Ci = () => /* @__PURE__ */ p("div", { children: [
3577
3577
  className: v(
3578
3578
  // Base styles
3579
3579
  "inline-flex items-center justify-center rounded-2 border border-base-4 transition-all duration-200 ease-in-out",
3580
- "focus:outline-none focus:ring-2 focus:ring-base-5",
3580
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-base-5",
3581
3581
  // Size
3582
3582
  m[l],
3583
3583
  // Disabled state
@@ -3937,7 +3937,7 @@ const Ts = ({
3937
3937
  },
3938
3938
  type: I,
3939
3939
  className: v(
3940
- "w-full bg-transparent focus:outline-none",
3940
+ "w-full bg-transparent focus-visible:outline-none",
3941
3941
  "placeholder:text-sm text-sm placeholder:text-base-11",
3942
3942
  c || u ? "pl-9" : "pl-3",
3943
3943
  {
@@ -4164,7 +4164,7 @@ const Fi = ({
4164
4164
  className: v(
4165
4165
  "w-full text-start first:rounded-t-7 last:rounded-b-7 border-b dark-theme:border-base-4",
4166
4166
  "last:border-none px-3 pr-2.5 py-3 dark-theme:bg-base-3 lg:hover:bg-base-4 max-lg:active:bg-base-4",
4167
- "transition-colors hover:cursor-pointer flex items-center justify-between outline-none lg:focus:ring-2 focus:ring-base-6",
4167
+ "transition-colors hover:cursor-pointer flex items-center justify-between outline-none lg:focus-visible:ring-2 focus-visible:ring-base-6",
4168
4168
  t ? "bg-base-3 border-base-4" : "border-base-6",
4169
4169
  n
4170
4170
  ),
@@ -5185,7 +5185,7 @@ const Ys = ({
5185
5185
  {
5186
5186
  className: v("rounded-6 px-2 transition cursor-text pr-10", {
5187
5187
  "bg-base-3": n === "solid",
5188
- "border border-uielborder focus:border-transparent": n === "outline",
5188
+ "border border-uielborder focus-visible:border-transparent": n === "outline",
5189
5189
  "py-3": t === "default",
5190
5190
  "pt-5 pb-2": t === "floating",
5191
5191
  "ring-2 ring-branduielborder": h,
@@ -5371,7 +5371,7 @@ const Ys = ({
5371
5371
  ref: c,
5372
5372
  className: v(
5373
5373
  !r && u && Hs[o],
5374
- "bg-base-3 border border-base-4 light-theme:drop-shadow-sm rounded-6 w-full focus:outline-none customscrollbarnohide",
5374
+ "bg-base-3 border border-base-4 light-theme:drop-shadow-sm rounded-6 w-full focus-visible:outline-none customscrollbarnohide",
5375
5375
  "placeholder:text-base-11 text-sm",
5376
5376
  "resize-none",
5377
5377
  // Prevent manual resizing since we're auto-resizing