nave-ui-library 1.0.0-beta.60 → 1.0.0-beta.61

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.
@@ -2889,7 +2889,7 @@ function Button(_a2) {
2889
2889
  "style",
2890
2890
  "children"
2891
2891
  ]);
2892
- var _a3, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L;
2892
+ var _a3, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R;
2893
2893
  const sizeMap2 = {
2894
2894
  small: "sm",
2895
2895
  medium: "md",
@@ -2920,7 +2920,7 @@ function Button(_a2) {
2920
2920
  const variantTokens = Object.keys(_variantBranch).length > 0 ? _variantBranch : responseTokens.tokens;
2921
2921
  const _loadingTokens = tokenAt(variantTokens, "loading");
2922
2922
  const _disabledTokens = tokenAt(variantTokens, "disabled");
2923
- const stateTokens = loading ? Object.keys(_loadingTokens).length > 0 ? _loadingTokens : _disabledTokens : isDisabled ? _disabledTokens : {};
2923
+ const stateTokens = loading ? Object.keys(_loadingTokens).length > 0 ? _loadingTokens : {} : isDisabled ? _disabledTokens : {};
2924
2924
  const isTokenRef = (value) => typeof value === "string" && value.includes("{") && value.includes("}");
2925
2925
  const safeCssValue = (value, fallback) => typeof value === "string" && !isTokenRef(value) ? value : fallback;
2926
2926
  const sizeHeight = safeCssValue(
@@ -2939,25 +2939,25 @@ function Button(_a2) {
2939
2939
  "--button-bg": (_c = (_b2 = stateTokens == null ? void 0 : stateTokens.background) != null ? _b2 : variantTokens == null ? void 0 : variantTokens.background) != null ? _c : "#4B5563",
2940
2940
  "--button-text": (_e = (_d = stateTokens == null ? void 0 : stateTokens.color) != null ? _d : variantTokens == null ? void 0 : variantTokens.color) != null ? _e : "#000000",
2941
2941
  "--button-border-color": (_g = (_f = stateTokens == null ? void 0 : stateTokens.border) != null ? _f : variantTokens == null ? void 0 : variantTokens.border) != null ? _g : "transparent",
2942
- "--button-bg-disabled": (_j = (_i = (_h = stateTokens == null ? void 0 : stateTokens.background) != null ? _h : disabledTokens == null ? void 0 : disabledTokens.background) != null ? _i : variantTokens == null ? void 0 : variantTokens.background) != null ? _j : "#9CA3AF",
2943
- "--button-text-disabled": (_m = (_l = (_k = stateTokens == null ? void 0 : stateTokens.color) != null ? _k : disabledTokens == null ? void 0 : disabledTokens.color) != null ? _l : variantTokens == null ? void 0 : variantTokens.color) != null ? _m : "#6B7280",
2944
- "--button-border-disabled": (_p = (_o = (_n = stateTokens == null ? void 0 : stateTokens.border) != null ? _n : disabledTokens == null ? void 0 : disabledTokens.border) != null ? _o : variantTokens == null ? void 0 : variantTokens.border) != null ? _p : "transparent",
2945
- "--button-bg-hover": (_r = (_q = hoverTokens == null ? void 0 : hoverTokens.background) != null ? _q : variantTokens == null ? void 0 : variantTokens.background) != null ? _r : "#374151",
2946
- "--button-text-hover": (_t = (_s = hoverTokens == null ? void 0 : hoverTokens.color) != null ? _s : variantTokens == null ? void 0 : variantTokens.color) != null ? _t : "#FFFFFF",
2947
- "--button-border-hover-color": (_v = (_u = hoverTokens == null ? void 0 : hoverTokens.border) != null ? _u : variantTokens == null ? void 0 : variantTokens.border) != null ? _v : "transparent",
2948
- "--button-focus-ring": (_w = focusTokens == null ? void 0 : focusTokens.boxShadow) != null ? _w : "0px 0px 0px 4px #652BDF33",
2949
- "--button-radius": (_y = (_x = responseTokens.tokens) == null ? void 0 : _x.radius) != null ? _y : "6px",
2950
- "--button-transition-duration": (_A = (_z = responseTokens.tokens) == null ? void 0 : _z.transition) != null ? _A : "200ms",
2951
- "--button-gap": (_C = (_B = responseTokens.tokens) == null ? void 0 : _B.gap) != null ? _C : "6px",
2952
- "--button-font-size": (_D = sizeTokens == null ? void 0 : sizeTokens.fontSize) != null ? _D : "14px",
2953
- "--button-font-weight": (_E = sizeTokens == null ? void 0 : sizeTokens.fontWeight) != null ? _E : 550,
2954
- "--button-line-height": (_G = (_F = responseTokens.tokens) == null ? void 0 : _F.lineHeight) != null ? _G : "130%",
2955
- "--button-letter-spacing": (_I = (_H = responseTokens.tokens) == null ? void 0 : _H.letterSpacing) != null ? _I : "-0.04em",
2956
- "--button-icon-size": (_J = sizeTokens == null ? void 0 : sizeTokens.iconSize) != null ? _J : "16px",
2942
+ "--button-bg-disabled": loading ? (_i = (_h = stateTokens == null ? void 0 : stateTokens.background) != null ? _h : variantTokens == null ? void 0 : variantTokens.background) != null ? _i : "#4B5563" : (_l = (_k = (_j = stateTokens == null ? void 0 : stateTokens.background) != null ? _j : disabledTokens == null ? void 0 : disabledTokens.background) != null ? _k : variantTokens == null ? void 0 : variantTokens.background) != null ? _l : "#9CA3AF",
2943
+ "--button-text-disabled": loading ? (_n = (_m = stateTokens == null ? void 0 : stateTokens.color) != null ? _m : variantTokens == null ? void 0 : variantTokens.color) != null ? _n : "#000000" : (_q = (_p = (_o = stateTokens == null ? void 0 : stateTokens.color) != null ? _o : disabledTokens == null ? void 0 : disabledTokens.color) != null ? _p : variantTokens == null ? void 0 : variantTokens.color) != null ? _q : "#6B7280",
2944
+ "--button-border-disabled": loading ? (_s = (_r = stateTokens == null ? void 0 : stateTokens.border) != null ? _r : variantTokens == null ? void 0 : variantTokens.border) != null ? _s : "transparent" : (_v = (_u = (_t = stateTokens == null ? void 0 : stateTokens.border) != null ? _t : disabledTokens == null ? void 0 : disabledTokens.border) != null ? _u : variantTokens == null ? void 0 : variantTokens.border) != null ? _v : "transparent",
2945
+ "--button-bg-hover": (_x = (_w = hoverTokens == null ? void 0 : hoverTokens.background) != null ? _w : variantTokens == null ? void 0 : variantTokens.background) != null ? _x : "#374151",
2946
+ "--button-text-hover": (_z = (_y = hoverTokens == null ? void 0 : hoverTokens.color) != null ? _y : variantTokens == null ? void 0 : variantTokens.color) != null ? _z : "#FFFFFF",
2947
+ "--button-border-hover-color": (_B = (_A = hoverTokens == null ? void 0 : hoverTokens.border) != null ? _A : variantTokens == null ? void 0 : variantTokens.border) != null ? _B : "transparent",
2948
+ "--button-focus-ring": (_C = focusTokens == null ? void 0 : focusTokens.boxShadow) != null ? _C : "0px 0px 0px 4px #652BDF33",
2949
+ "--button-radius": (_E = (_D = responseTokens.tokens) == null ? void 0 : _D.radius) != null ? _E : "6px",
2950
+ "--button-transition-duration": (_G = (_F = responseTokens.tokens) == null ? void 0 : _F.transition) != null ? _G : "200ms",
2951
+ "--button-gap": (_I = (_H = responseTokens.tokens) == null ? void 0 : _H.gap) != null ? _I : "6px",
2952
+ "--button-font-size": (_J = sizeTokens == null ? void 0 : sizeTokens.fontSize) != null ? _J : "14px",
2953
+ "--button-font-weight": (_K = sizeTokens == null ? void 0 : sizeTokens.fontWeight) != null ? _K : 550,
2954
+ "--button-line-height": (_M = (_L = responseTokens.tokens) == null ? void 0 : _L.lineHeight) != null ? _M : "130%",
2955
+ "--button-letter-spacing": (_O = (_N = responseTokens.tokens) == null ? void 0 : _N.letterSpacing) != null ? _O : "-0.04em",
2956
+ "--button-icon-size": (_P = sizeTokens == null ? void 0 : sizeTokens.iconSize) != null ? _P : "16px",
2957
2957
  "--button-height": sizeHeight,
2958
2958
  "--button-padding-x": sizePaddingX,
2959
2959
  "--button-text-padding-x": resolvedTextPaddingX != null ? resolvedTextPaddingX : "8px",
2960
- fontFamily: (_L = (_K = responseTokens.tokens) == null ? void 0 : _K.fontFamily) != null ? _L : `'Inter', sans-serif`,
2960
+ fontFamily: (_R = (_Q = responseTokens.tokens) == null ? void 0 : _Q.fontFamily) != null ? _R : `'Inter', sans-serif`,
2961
2961
  fontSize: "var(--button-font-size)",
2962
2962
  fontWeight: "var(--button-font-weight)"
2963
2963
  });
@@ -2965,7 +2965,7 @@ function Button(_a2) {
2965
2965
  const buttonProps = !asChild ? __spreadValues({ type: "button" }, props) : props;
2966
2966
  return /* @__PURE__ */ jsxs(
2967
2967
  Comp,
2968
- __spreadProps(__spreadValues({
2968
+ __spreadProps(__spreadValues(__spreadValues({
2969
2969
  className: cn(
2970
2970
  buttonBaseClasses({ variant, size: cvaSize }),
2971
2971
  size !== "icon" && size !== "icon-small" && size !== "icon-large" && "h-[var(--button-height)] px-[var(--button-padding-x)]",
@@ -2977,10 +2977,15 @@ function Button(_a2) {
2977
2977
  className
2978
2978
  ),
2979
2979
  style: updatedStyles,
2980
- disabled: isDisabled,
2980
+ disabled: isDisabled && !loading,
2981
2981
  "aria-busy": loading || void 0,
2982
2982
  "data-loading": loading ? "true" : void 0
2983
- }, buttonProps), {
2983
+ }, buttonProps), loading && {
2984
+ onClick: (e) => {
2985
+ e.preventDefault();
2986
+ e.stopPropagation();
2987
+ }
2988
+ }), {
2984
2989
  children: [
2985
2990
  loading ? /* @__PURE__ */ jsx3(
2986
2991
  "span",
@@ -8896,7 +8901,7 @@ var Tile = ({
8896
8901
  {
8897
8902
  size: 12,
8898
8903
  style: {
8899
- background: "#652BDF",
8904
+ background: "var(--tile-border-color-select)",
8900
8905
  borderRadius: "100%",
8901
8906
  padding: "2px"
8902
8907
  },