@almadar/ui 5.129.0 → 5.131.0
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/avl/index.cjs +87 -40
- package/dist/avl/index.js +87 -40
- package/dist/components/index.cjs +89 -42
- package/dist/components/index.d.cts +0 -4
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.js +89 -42
- package/dist/marketing/index.cjs +2 -2
- package/dist/marketing/index.js +2 -2
- package/dist/providers/index.cjs +87 -40
- package/dist/providers/index.js +87 -40
- package/dist/runtime/index.cjs +87 -40
- package/dist/runtime/index.js +87 -40
- package/package.json +2 -2
package/dist/providers/index.cjs
CHANGED
|
@@ -1173,7 +1173,7 @@ var init_Button = __esm({
|
|
|
1173
1173
|
"cursor-pointer",
|
|
1174
1174
|
"chrome-button",
|
|
1175
1175
|
"transition-all duration-normal",
|
|
1176
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-offset-[length:var(--focus-ring-offset)]",
|
|
1176
|
+
"focus:outline-none focus-visible:ring-[length:var(--focus-ring-width)] focus-visible:ring-ring focus-visible:ring-offset-[length:var(--focus-ring-offset)]",
|
|
1177
1177
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1178
1178
|
variantStyles[variant],
|
|
1179
1179
|
sizeStyles[size],
|
|
@@ -1920,7 +1920,7 @@ var init_Badge = __esm({
|
|
|
1920
1920
|
},
|
|
1921
1921
|
className: cn(
|
|
1922
1922
|
"inline-flex items-center justify-center rounded-sm",
|
|
1923
|
-
"hover:bg-foreground/10 focus:outline-none focus:ring-1 focus:ring-ring",
|
|
1923
|
+
"hover:bg-foreground/10 focus:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
1924
1924
|
"transition-colors",
|
|
1925
1925
|
size === "sm" ? "w-4 h-4 ml-0.5" : size === "md" ? "w-5 h-5 ml-1" : "w-6 h-6 ml-1"
|
|
1926
1926
|
),
|
|
@@ -3278,7 +3278,7 @@ function NativeSelect({
|
|
|
3278
3278
|
"block w-full border-[length:var(--border-width)] shadow-sm appearance-none",
|
|
3279
3279
|
"px-3 py-2 pr-10 text-sm text-foreground font-medium",
|
|
3280
3280
|
"bg-card",
|
|
3281
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
|
|
3281
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-ring",
|
|
3282
3282
|
"disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
|
|
3283
3283
|
error ? "border-error focus:border-error" : "border-border focus:border-primary",
|
|
3284
3284
|
className
|
|
@@ -3385,7 +3385,7 @@ function RichSelect({
|
|
|
3385
3385
|
"block w-full border-[length:var(--border-width)] shadow-sm",
|
|
3386
3386
|
"px-3 py-2 pr-10 text-sm text-start font-medium",
|
|
3387
3387
|
"bg-card rounded-sm",
|
|
3388
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
|
|
3388
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-ring",
|
|
3389
3389
|
"disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
|
|
3390
3390
|
error ? "border-error focus:border-error" : "border-border focus:border-primary",
|
|
3391
3391
|
!hasValue && "text-muted-foreground"
|
|
@@ -4308,9 +4308,9 @@ var init_Radio = __esm({
|
|
|
4308
4308
|
"flex items-center justify-center",
|
|
4309
4309
|
"border-[length:var(--border-width)] transition-all cursor-pointer",
|
|
4310
4310
|
sizeClasses4[size],
|
|
4311
|
-
hasError ? "border-error peer-focus:ring-error/20" : "border-border peer-focus:ring-ring/20",
|
|
4311
|
+
hasError ? "border-error peer-focus-visible:ring-error/20" : "border-border peer-focus-visible:ring-ring/20",
|
|
4312
4312
|
isChecked2 ? hasError ? "border-error" : "border-primary bg-primary" : "",
|
|
4313
|
-
"peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-offset-2",
|
|
4313
|
+
"peer-focus:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2",
|
|
4314
4314
|
disabled && "opacity-50 cursor-not-allowed",
|
|
4315
4315
|
!disabled && "hover:border-[var(--color-border-hover)]"
|
|
4316
4316
|
),
|
|
@@ -4781,7 +4781,7 @@ var init_ThemeToggle = __esm({
|
|
|
4781
4781
|
"inline-flex items-center justify-center gap-2",
|
|
4782
4782
|
"text-foreground",
|
|
4783
4783
|
"hover:bg-muted border-[length:var(--border-width)] border-transparent hover:border-border",
|
|
4784
|
-
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
4784
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
4785
4785
|
"transition-colors duration-fast",
|
|
4786
4786
|
sizeClasses5[size],
|
|
4787
4787
|
className
|
|
@@ -11819,10 +11819,12 @@ var init_Container = __esm({
|
|
|
11819
11819
|
};
|
|
11820
11820
|
paddingStyles3 = {
|
|
11821
11821
|
none: "px-0",
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11822
|
+
// Mobile-tighter, desktop-identical: fixed px-6 on a 360px phone eats ~13% of
|
|
11823
|
+
// the viewport, so each token steps down below the sm breakpoint.
|
|
11824
|
+
sm: "px-3 sm:px-4",
|
|
11825
|
+
md: "px-4 sm:px-6",
|
|
11826
|
+
lg: "px-4 sm:px-6 md:px-8",
|
|
11827
|
+
xl: "px-4 sm:px-8 md:px-12"
|
|
11826
11828
|
};
|
|
11827
11829
|
Container = ({
|
|
11828
11830
|
size,
|
|
@@ -12521,7 +12523,7 @@ var init_Accordion = __esm({
|
|
|
12521
12523
|
"bg-card",
|
|
12522
12524
|
"hover:bg-muted",
|
|
12523
12525
|
"transition-colors duration-fast",
|
|
12524
|
-
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-inset",
|
|
12526
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",
|
|
12525
12527
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
12526
12528
|
isOpen && "bg-muted font-bold"
|
|
12527
12529
|
),
|
|
@@ -18726,7 +18728,7 @@ var init_Breadcrumb = __esm({
|
|
|
18726
18728
|
},
|
|
18727
18729
|
className: cn(
|
|
18728
18730
|
"flex items-center gap-1.5 transition-colors",
|
|
18729
|
-
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
18731
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
18730
18732
|
isLast ? "text-foreground font-bold cursor-default" : "text-muted-foreground hover:text-foreground"
|
|
18731
18733
|
),
|
|
18732
18734
|
"aria-current": isLast ? "page" : void 0,
|
|
@@ -23361,7 +23363,7 @@ function DataGrid({
|
|
|
23361
23363
|
] }, field.name);
|
|
23362
23364
|
}) })
|
|
23363
23365
|
] }),
|
|
23364
|
-
dangerActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(HStack, { gap: "xs", className: "flex-shrink-0", children: dangerActions.map((action, idx) => /* @__PURE__ */ jsxRuntime.
|
|
23366
|
+
dangerActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(HStack, { gap: "xs", className: "flex-shrink-0", children: dangerActions.map((action, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
23365
23367
|
Button,
|
|
23366
23368
|
{
|
|
23367
23369
|
variant: "ghost",
|
|
@@ -23369,11 +23371,10 @@ function DataGrid({
|
|
|
23369
23371
|
onClick: handleActionClick(action, itemData),
|
|
23370
23372
|
"data-testid": `action-${action.event}`,
|
|
23371
23373
|
"data-row-id": String(itemData.id),
|
|
23374
|
+
"aria-label": action.label,
|
|
23375
|
+
title: action.label,
|
|
23372
23376
|
className: "text-error hover:text-error hover:bg-error/10 px-2",
|
|
23373
|
-
children:
|
|
23374
|
-
action.icon && renderIconInput(action.icon, { size: "xs" }),
|
|
23375
|
-
action.label
|
|
23376
|
-
]
|
|
23377
|
+
children: action.icon ? renderIconInput(action.icon, { size: "xs" }) : action.label
|
|
23377
23378
|
},
|
|
23378
23379
|
idx
|
|
23379
23380
|
)) })
|
|
@@ -24175,10 +24176,7 @@ var init_FileTree = __esm({
|
|
|
24175
24176
|
className,
|
|
24176
24177
|
indent = 16
|
|
24177
24178
|
}) => {
|
|
24178
|
-
|
|
24179
|
-
if (tree.length === 0) {
|
|
24180
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Box, { className: `p-4 ${className ?? ""}`, children: /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "caption", color: "muted", children: t("fileTree.noFiles") }) });
|
|
24181
|
-
}
|
|
24179
|
+
if (tree.length === 0) return null;
|
|
24182
24180
|
return /* @__PURE__ */ jsxRuntime.jsx(Box, { className: `py-1 overflow-y-auto ${className ?? ""}`, role: "tree", children: tree.map((node) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
24183
24181
|
TreeNodeItem,
|
|
24184
24182
|
{
|
|
@@ -24283,7 +24281,7 @@ var init_useQuerySingleton = __esm({
|
|
|
24283
24281
|
queryStores = /* @__PURE__ */ new Map();
|
|
24284
24282
|
}
|
|
24285
24283
|
});
|
|
24286
|
-
var resolveFilterType, lookStyles6, FilterGroup;
|
|
24284
|
+
var resolveFilterType, lookStyles6, FilterGroupControls, FilterGroupPopover, FilterGroup;
|
|
24287
24285
|
var init_FilterGroup = __esm({
|
|
24288
24286
|
"components/core/molecules/FilterGroup.tsx"() {
|
|
24289
24287
|
"use client";
|
|
@@ -24301,10 +24299,10 @@ var init_FilterGroup = __esm({
|
|
|
24301
24299
|
toolbar: "",
|
|
24302
24300
|
chips: "gap-1 [&_input]:rounded-pill [&_select]:rounded-pill [&_button]:rounded-pill [&_input]:!px-3 [&_select]:!px-3 [&_input]:bg-muted [&_select]:bg-muted [&_label]:hidden",
|
|
24303
24301
|
pills: "gap-2 [&_input]:rounded-pill [&_select]:rounded-pill [&_button]:rounded-pill",
|
|
24304
|
-
"popover-trigger": "
|
|
24302
|
+
"popover-trigger": "",
|
|
24305
24303
|
"inline-column-header": "hidden"
|
|
24306
24304
|
};
|
|
24307
|
-
|
|
24305
|
+
FilterGroupControls = ({
|
|
24308
24306
|
entity,
|
|
24309
24307
|
filters,
|
|
24310
24308
|
onFilterChange,
|
|
@@ -24640,7 +24638,7 @@ var init_FilterGroup = __esm({
|
|
|
24640
24638
|
className: "text-muted-foreground",
|
|
24641
24639
|
children: [
|
|
24642
24640
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "filter", className: "h-4 w-4" }),
|
|
24643
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
24641
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-bold uppercase tracking-wide", children: t("filterGroup.filters") })
|
|
24644
24642
|
]
|
|
24645
24643
|
}
|
|
24646
24644
|
),
|
|
@@ -24731,6 +24729,42 @@ var init_FilterGroup = __esm({
|
|
|
24731
24729
|
}
|
|
24732
24730
|
);
|
|
24733
24731
|
};
|
|
24732
|
+
FilterGroupControls.displayName = "FilterGroupControls";
|
|
24733
|
+
FilterGroupPopover = (props) => {
|
|
24734
|
+
const { t } = hooks.useTranslate();
|
|
24735
|
+
const [open, setOpen] = React84.useState(false);
|
|
24736
|
+
const queryState = useQuerySingleton(props.query);
|
|
24737
|
+
const activeFilterCount = queryState?.filters ? Object.values(queryState.filters).filter((v) => v !== null && v !== void 0).length : 0;
|
|
24738
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("relative inline-block", props.className), children: [
|
|
24739
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24740
|
+
Button,
|
|
24741
|
+
{
|
|
24742
|
+
variant: activeFilterCount > 0 ? "secondary" : "ghost",
|
|
24743
|
+
size: "sm",
|
|
24744
|
+
leftIcon: "filter",
|
|
24745
|
+
onClick: () => setOpen((o) => !o),
|
|
24746
|
+
"aria-expanded": open,
|
|
24747
|
+
"aria-haspopup": "true",
|
|
24748
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
24749
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: t("filterGroup.filters") }),
|
|
24750
|
+
activeFilterCount > 0 && /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "primary", size: "sm", children: activeFilterCount })
|
|
24751
|
+
] })
|
|
24752
|
+
}
|
|
24753
|
+
),
|
|
24754
|
+
open && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute left-0 z-50 mt-2 min-w-[16rem] rounded-lg border border-[var(--color-border)] bg-[var(--color-card)] p-card-md shadow-main", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24755
|
+
FilterGroupControls,
|
|
24756
|
+
{
|
|
24757
|
+
...props,
|
|
24758
|
+
className: void 0,
|
|
24759
|
+
look: "toolbar",
|
|
24760
|
+
variant: "vertical",
|
|
24761
|
+
showIcon: false
|
|
24762
|
+
}
|
|
24763
|
+
) })
|
|
24764
|
+
] });
|
|
24765
|
+
};
|
|
24766
|
+
FilterGroupPopover.displayName = "FilterGroupPopover";
|
|
24767
|
+
FilterGroup = (props) => props.look === "popover-trigger" ? /* @__PURE__ */ jsxRuntime.jsx(FilterGroupPopover, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(FilterGroupControls, { ...props });
|
|
24734
24768
|
FilterGroup.displayName = "FilterGroup";
|
|
24735
24769
|
}
|
|
24736
24770
|
});
|
|
@@ -27645,7 +27679,7 @@ var init_NumberStepper = __esm({
|
|
|
27645
27679
|
"active:bg-muted",
|
|
27646
27680
|
"transition-colors duration-instant",
|
|
27647
27681
|
"disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent",
|
|
27648
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-inset",
|
|
27682
|
+
"focus:outline-none focus-visible:ring-[length:var(--focus-ring-width)] focus-visible:ring-ring focus-visible:ring-inset",
|
|
27649
27683
|
styles.button
|
|
27650
27684
|
),
|
|
27651
27685
|
"aria-label": t("aria.decrease"),
|
|
@@ -27686,7 +27720,7 @@ var init_NumberStepper = __esm({
|
|
|
27686
27720
|
"active:bg-muted",
|
|
27687
27721
|
"transition-colors duration-instant",
|
|
27688
27722
|
"disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent",
|
|
27689
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-inset",
|
|
27723
|
+
"focus:outline-none focus-visible:ring-[length:var(--focus-ring-width)] focus-visible:ring-ring focus-visible:ring-inset",
|
|
27690
27724
|
styles.button
|
|
27691
27725
|
),
|
|
27692
27726
|
"aria-label": t("aria.increase"),
|
|
@@ -28142,7 +28176,7 @@ var init_Lightbox = __esm({
|
|
|
28142
28176
|
"p-2 rounded-full",
|
|
28143
28177
|
"text-[var(--color-foreground)] bg-[var(--color-card)]",
|
|
28144
28178
|
"hover:bg-opacity-70 transition-opacity",
|
|
28145
|
-
"focus:outline-none focus:ring-2 focus:ring-ring"
|
|
28179
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
28146
28180
|
),
|
|
28147
28181
|
"aria-label": t("aria.closeModal"),
|
|
28148
28182
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "x", className: "w-6 h-6" })
|
|
@@ -28161,7 +28195,7 @@ var init_Lightbox = __esm({
|
|
|
28161
28195
|
"p-2 rounded-full",
|
|
28162
28196
|
"text-[var(--color-foreground)] bg-[var(--color-card)]",
|
|
28163
28197
|
"hover:bg-opacity-70 transition-opacity",
|
|
28164
|
-
"focus:outline-none focus:ring-2 focus:ring-ring"
|
|
28198
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
28165
28199
|
),
|
|
28166
28200
|
"aria-label": t("aria.previousImage"),
|
|
28167
28201
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "chevron-left", className: "w-8 h-8" })
|
|
@@ -28198,7 +28232,7 @@ var init_Lightbox = __esm({
|
|
|
28198
28232
|
"p-2 rounded-full",
|
|
28199
28233
|
"text-[var(--color-foreground)] bg-[var(--color-card)]",
|
|
28200
28234
|
"hover:bg-opacity-70 transition-opacity",
|
|
28201
|
-
"focus:outline-none focus:ring-2 focus:ring-ring"
|
|
28235
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
28202
28236
|
),
|
|
28203
28237
|
"aria-label": t("aria.nextImage"),
|
|
28204
28238
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "chevron-right", className: "w-8 h-8" })
|
|
@@ -28372,9 +28406,20 @@ function TableView({
|
|
|
28372
28406
|
const inlineActionCount = hasActions ? maxInlineActions != null ? Math.min(itemActions.length, maxInlineActions) : itemActions.length : 0;
|
|
28373
28407
|
const hasOverflowActions = hasActions && maxInlineActions != null && itemActions.length > maxInlineActions;
|
|
28374
28408
|
const actionsTrack = hasActions ? `${inlineActionCount * 6 + (hasOverflowActions ? 3 : 0)}rem` : null;
|
|
28409
|
+
const colFloors = React84__namespace.default.useMemo(
|
|
28410
|
+
() => colDefs.map((col) => {
|
|
28411
|
+
const longest = data.reduce((widest, row) => {
|
|
28412
|
+
const cell = formatCell(asFieldValue(getNestedValue(row, col.field ?? col.key)), col.format);
|
|
28413
|
+
return Math.max(widest, cell.length);
|
|
28414
|
+
}, columnLabel(col).length);
|
|
28415
|
+
const chrome = col.format === "badge" ? BADGE_CHROME_CH : 0;
|
|
28416
|
+
return Math.min(longest + chrome, MAX_MEASURED_COL_CH);
|
|
28417
|
+
}),
|
|
28418
|
+
[colDefs, data]
|
|
28419
|
+
);
|
|
28375
28420
|
const gridTemplateColumns = [
|
|
28376
28421
|
selectable ? "auto" : null,
|
|
28377
|
-
...colDefs.map((c) => c.width ??
|
|
28422
|
+
...colDefs.map((c, i) => c.width ?? `minmax(${colFloors[i]}ch, 1fr)`),
|
|
28378
28423
|
actionsTrack
|
|
28379
28424
|
].filter(Boolean).join(" ");
|
|
28380
28425
|
const header = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -28458,7 +28503,7 @@ function TableView({
|
|
|
28458
28503
|
col.className
|
|
28459
28504
|
);
|
|
28460
28505
|
if (col.format === "badge" && raw != null && raw !== "") {
|
|
28461
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Box, { role: "cell", className: cellBase, children: /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: statusVariant4(String(raw)), size: "sm", children: String(raw) }) }, col.key);
|
|
28506
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Box, { role: "cell", className: cellBase, children: /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: statusVariant4(String(raw)), size: "sm", className: "whitespace-nowrap", children: String(raw) }) }, col.key);
|
|
28462
28507
|
}
|
|
28463
28508
|
return /* @__PURE__ */ jsxRuntime.jsx(Box, { role: "cell", className: cellBase, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: formatCell(raw, col.format) }) }, col.key);
|
|
28464
28509
|
}),
|
|
@@ -28541,7 +28586,7 @@ function TableView({
|
|
|
28541
28586
|
}
|
|
28542
28587
|
);
|
|
28543
28588
|
}
|
|
28544
|
-
var alignClass, weightClass, LOOKS;
|
|
28589
|
+
var MAX_MEASURED_COL_CH, BADGE_CHROME_CH, alignClass, weightClass, LOOKS;
|
|
28545
28590
|
var init_TableView = __esm({
|
|
28546
28591
|
"components/core/molecules/TableView.tsx"() {
|
|
28547
28592
|
"use client";
|
|
@@ -28559,6 +28604,8 @@ var init_TableView = __esm({
|
|
|
28559
28604
|
init_Menu();
|
|
28560
28605
|
init_useDataDnd();
|
|
28561
28606
|
logger.createLogger("almadar:ui:table-view");
|
|
28607
|
+
MAX_MEASURED_COL_CH = 32;
|
|
28608
|
+
BADGE_CHROME_CH = 4;
|
|
28562
28609
|
alignClass = {
|
|
28563
28610
|
left: "justify-start text-left",
|
|
28564
28611
|
center: "justify-center text-center",
|
|
@@ -30794,7 +30841,7 @@ var init_VoteStack = __esm({
|
|
|
30794
30841
|
"active:bg-muted",
|
|
30795
30842
|
"transition-colors duration-instant",
|
|
30796
30843
|
"disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent",
|
|
30797
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-inset",
|
|
30844
|
+
"focus:outline-none focus-visible:ring-[length:var(--focus-ring-width)] focus-visible:ring-ring focus-visible:ring-inset",
|
|
30798
30845
|
styles.button
|
|
30799
30846
|
),
|
|
30800
30847
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "chevron-up", className: styles.icon })
|
|
@@ -30831,7 +30878,7 @@ var init_VoteStack = __esm({
|
|
|
30831
30878
|
"active:bg-muted",
|
|
30832
30879
|
"transition-colors duration-instant",
|
|
30833
30880
|
"disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent",
|
|
30834
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-inset",
|
|
30881
|
+
"focus:outline-none focus-visible:ring-[length:var(--focus-ring-width)] focus-visible:ring-ring focus-visible:ring-inset",
|
|
30835
30882
|
styles.button
|
|
30836
30883
|
),
|
|
30837
30884
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "chevron-down", className: styles.icon })
|
|
@@ -31352,7 +31399,7 @@ var init_QrScanner = __esm({
|
|
|
31352
31399
|
// eslint-disable-next-line almadar/no-hardcoded-colors -- media overlay: always over a dark scrim
|
|
31353
31400
|
"rounded-full bg-black bg-opacity-60 p-2 text-white",
|
|
31354
31401
|
// eslint-disable-next-line almadar/no-hardcoded-colors -- media overlay: always over a dark scrim
|
|
31355
|
-
"hover:bg-opacity-80 focus:outline-none focus:ring-2 focus:ring-white"
|
|
31402
|
+
"hover:bg-opacity-80 focus:outline-none focus-visible:ring-2 focus-visible:ring-white"
|
|
31356
31403
|
),
|
|
31357
31404
|
"aria-label": isPaused ? t("qrScanner.resumeScanning") : t("qrScanner.pauseScanning"),
|
|
31358
31405
|
children: isPaused ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "play", className: "h-4 w-4" }) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "pause", className: "h-4 w-4" })
|
|
@@ -31367,7 +31414,7 @@ var init_QrScanner = __esm({
|
|
|
31367
31414
|
// eslint-disable-next-line almadar/no-hardcoded-colors -- media overlay: always over a dark scrim
|
|
31368
31415
|
"rounded-full bg-black bg-opacity-60 p-2 text-white",
|
|
31369
31416
|
// eslint-disable-next-line almadar/no-hardcoded-colors -- media overlay: always over a dark scrim
|
|
31370
|
-
"hover:bg-opacity-80 focus:outline-none focus:ring-2 focus:ring-white"
|
|
31417
|
+
"hover:bg-opacity-80 focus:outline-none focus-visible:ring-2 focus-visible:ring-white"
|
|
31371
31418
|
),
|
|
31372
31419
|
"aria-label": currentFacing === "environment" ? t("qrScanner.switchToFrontCamera") : t("qrScanner.switchToRearCamera"),
|
|
31373
31420
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "refresh-cw", className: "h-4 w-4" })
|
|
@@ -31382,7 +31429,7 @@ var init_QrScanner = __esm({
|
|
|
31382
31429
|
// eslint-disable-next-line almadar/no-hardcoded-colors -- media overlay: always over a dark scrim
|
|
31383
31430
|
"rounded-full bg-black bg-opacity-60 px-3 py-2 text-xs text-white",
|
|
31384
31431
|
// eslint-disable-next-line almadar/no-hardcoded-colors -- media overlay: always over a dark scrim
|
|
31385
|
-
"hover:bg-opacity-80 focus:outline-none focus:ring-2 focus:ring-white"
|
|
31432
|
+
"hover:bg-opacity-80 focus:outline-none focus-visible:ring-2 focus-visible:ring-white"
|
|
31386
31433
|
),
|
|
31387
31434
|
"aria-label": t("aria.mockScanDev"),
|
|
31388
31435
|
children: t("qrScanner.mockScan")
|
|
@@ -43200,7 +43247,7 @@ var init_TabbedContainer = __esm({
|
|
|
43200
43247
|
onClick: () => !isDisabled && handleTabChange(tab.id),
|
|
43201
43248
|
className: cn(
|
|
43202
43249
|
"flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors",
|
|
43203
|
-
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
43250
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
43204
43251
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
43205
43252
|
isActive ? "bg-primary text-primary-foreground" : "bg-card text-foreground hover:bg-muted",
|
|
43206
43253
|
isVertical ? "justify-start" : "justify-center"
|