@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 +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/segmented-control/segmented-control.tsx +3 -0
- package/src/components/molecules/card/card.tsx +12 -0
- package/src/components/molecules/stat-card/stat-card.tsx +10 -0
package/dist/index.js
CHANGED
|
@@ -1527,6 +1527,14 @@ function ITCard({
|
|
|
1527
1527
|
onClick,
|
|
1528
1528
|
onMouseEnter: () => onClick && setIsHovered(true),
|
|
1529
1529
|
onMouseLeave: () => onClick && setIsHovered(false),
|
|
1530
|
+
role: onClick ? "button" : void 0,
|
|
1531
|
+
tabIndex: onClick ? 0 : void 0,
|
|
1532
|
+
onKeyDown: onClick ? (e) => {
|
|
1533
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
1534
|
+
e.preventDefault();
|
|
1535
|
+
onClick();
|
|
1536
|
+
}
|
|
1537
|
+
} : void 0,
|
|
1530
1538
|
className: clsx2("overflow-hidden flex flex-col", className),
|
|
1531
1539
|
style: containerStyle,
|
|
1532
1540
|
children: [
|
|
@@ -8251,6 +8259,7 @@ function ITSegmentedControl({
|
|
|
8251
8259
|
return /* @__PURE__ */ jsx59(
|
|
8252
8260
|
"div",
|
|
8253
8261
|
{
|
|
8262
|
+
role: "group",
|
|
8254
8263
|
className: clsx40(
|
|
8255
8264
|
"inline-flex rounded-xl bg-slate-100 dark:bg-slate-800 border border-slate-200 dark:border-slate-700",
|
|
8256
8265
|
container,
|
|
@@ -8262,6 +8271,8 @@ function ITSegmentedControl({
|
|
|
8262
8271
|
return /* @__PURE__ */ jsxs41(
|
|
8263
8272
|
"button",
|
|
8264
8273
|
{
|
|
8274
|
+
type: "button",
|
|
8275
|
+
"aria-pressed": isActive,
|
|
8265
8276
|
onClick: () => !disabled && onChange(opt.value),
|
|
8266
8277
|
disabled,
|
|
8267
8278
|
className: clsx40(
|
|
@@ -8938,6 +8949,12 @@ function ITStatCard({
|
|
|
8938
8949
|
onClick,
|
|
8939
8950
|
role: onClick ? "button" : void 0,
|
|
8940
8951
|
tabIndex: onClick ? 0 : void 0,
|
|
8952
|
+
onKeyDown: onClick ? (e) => {
|
|
8953
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
8954
|
+
e.preventDefault();
|
|
8955
|
+
onClick();
|
|
8956
|
+
}
|
|
8957
|
+
} : void 0,
|
|
8941
8958
|
children: [
|
|
8942
8959
|
/* @__PURE__ */ jsxs44("div", { className: "flex items-start justify-between mb-1", children: [
|
|
8943
8960
|
/* @__PURE__ */ jsx63(ITText, { as: "span", className: "text-xs font-medium text-slate-400 dark:text-slate-500", children: label }),
|