@axzydev/axzy_ui_system 1.7.1 → 1.7.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.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)(
@@ -9067,6 +9078,12 @@ function ITStatCard({
9067
9078
  onClick,
9068
9079
  role: onClick ? "button" : void 0,
9069
9080
  tabIndex: onClick ? 0 : void 0,
9081
+ onKeyDown: onClick ? (e) => {
9082
+ if (e.key === "Enter" || e.key === " ") {
9083
+ e.preventDefault();
9084
+ onClick();
9085
+ }
9086
+ } : void 0,
9070
9087
  children: [
9071
9088
  /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-start justify-between mb-1", children: [
9072
9089
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ITText, { as: "span", className: "text-xs font-medium text-slate-400 dark:text-slate-500", children: label }),