@axzydev/axzy_ui_system 1.7.1 → 1.7.3

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 CHANGED
@@ -1674,6 +1674,14 @@ function ITCard({
1674
1674
  onClick,
1675
1675
  onMouseEnter: () => onClick && setIsHovered(true),
1676
1676
  onMouseLeave: () => onClick && setIsHovered(false),
1677
+ role: onClick ? "button" : void 0,
1678
+ tabIndex: onClick ? 0 : void 0,
1679
+ onKeyDown: onClick ? (e) => {
1680
+ if (e.key === "Enter" || e.key === " ") {
1681
+ e.preventDefault();
1682
+ onClick();
1683
+ }
1684
+ } : void 0,
1677
1685
  className: (0, import_clsx2.default)("overflow-hidden flex flex-col", className),
1678
1686
  style: containerStyle,
1679
1687
  children: [
@@ -8380,6 +8388,7 @@ function ITSegmentedControl({
8380
8388
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
8381
8389
  "div",
8382
8390
  {
8391
+ role: "group",
8383
8392
  className: (0, import_clsx40.default)(
8384
8393
  "inline-flex rounded-xl bg-slate-100 dark:bg-slate-800 border border-slate-200 dark:border-slate-700",
8385
8394
  container,
@@ -8391,6 +8400,8 @@ function ITSegmentedControl({
8391
8400
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
8392
8401
  "button",
8393
8402
  {
8403
+ type: "button",
8404
+ "aria-pressed": isActive,
8394
8405
  onClick: () => !disabled && onChange(opt.value),
8395
8406
  disabled,
8396
8407
  className: (0, import_clsx40.default)(
@@ -9053,6 +9064,9 @@ function ITStatCard({
9053
9064
  value,
9054
9065
  trend,
9055
9066
  trendDirection = trend && trend.startsWith("-") ? "down" : "neutral",
9067
+ hint,
9068
+ progress,
9069
+ progressColor = "primary",
9056
9070
  icon,
9057
9071
  color = "bg-primary-50 dark:bg-primary-950/20",
9058
9072
  className,
@@ -9067,6 +9081,12 @@ function ITStatCard({
9067
9081
  onClick,
9068
9082
  role: onClick ? "button" : void 0,
9069
9083
  tabIndex: onClick ? 0 : void 0,
9084
+ onKeyDown: onClick ? (e) => {
9085
+ if (e.key === "Enter" || e.key === " ") {
9086
+ e.preventDefault();
9087
+ onClick();
9088
+ }
9089
+ } : void 0,
9070
9090
  children: [
9071
9091
  /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-start justify-between mb-1", children: [
9072
9092
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ITText, { as: "span", className: "text-xs font-medium text-slate-400 dark:text-slate-500", children: label }),
@@ -9075,7 +9095,18 @@ function ITStatCard({
9075
9095
  /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-baseline gap-2", children: [
9076
9096
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ITText, { as: "span", className: "text-2xl font-bold text-slate-800 dark:text-white", children: value }),
9077
9097
  trend && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ITText, { as: "span", className: (0, import_clsx44.default)("text-[11px] font-semibold px-1.5 py-0.5 rounded-md", trendColors[trendDirection]), children: trend })
9078
- ] })
9098
+ ] }),
9099
+ hint && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ITText, { as: "p", className: "mt-1 text-[11px] leading-snug text-slate-500 dark:text-slate-400", children: hint }),
9100
+ progress !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
9101
+ ITProgress,
9102
+ {
9103
+ value: progress,
9104
+ max: 100,
9105
+ color: progressColor,
9106
+ size: "sm",
9107
+ className: "mt-2"
9108
+ }
9109
+ )
9079
9110
  ]
9080
9111
  }
9081
9112
  );