@mieweb/ui 0.3.0-dev.89 → 0.3.0-dev.90

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.d.cts CHANGED
@@ -7063,8 +7063,10 @@ interface ServiceAccordionProps extends VariantProps<typeof accordionVariants> {
7063
7063
  onExpandedChange?: (expanded: string[]) => void;
7064
7064
  /** Additional CSS classes */
7065
7065
  className?: string;
7066
+ /** Accessible label for the region */
7067
+ 'aria-label'?: string;
7066
7068
  }
7067
- declare function ServiceAccordion({ categories, variant, basePath, onServiceClick, allowMultiple, expandedCategories: controlledExpanded, onExpandedChange, className, }: ServiceAccordionProps): react_jsx_runtime.JSX.Element;
7069
+ declare function ServiceAccordion({ categories, variant, basePath, onServiceClick, allowMultiple, expandedCategories: controlledExpanded, onExpandedChange, className, 'aria-label': ariaLabel, }: ServiceAccordionProps): react_jsx_runtime.JSX.Element;
7068
7070
  interface ServiceTagCloudProps$1 {
7069
7071
  /** Flat list of services */
7070
7072
  services: ServiceItem[];
package/dist/index.d.ts CHANGED
@@ -7063,8 +7063,10 @@ interface ServiceAccordionProps extends VariantProps<typeof accordionVariants> {
7063
7063
  onExpandedChange?: (expanded: string[]) => void;
7064
7064
  /** Additional CSS classes */
7065
7065
  className?: string;
7066
+ /** Accessible label for the region */
7067
+ 'aria-label'?: string;
7066
7068
  }
7067
- declare function ServiceAccordion({ categories, variant, basePath, onServiceClick, allowMultiple, expandedCategories: controlledExpanded, onExpandedChange, className, }: ServiceAccordionProps): react_jsx_runtime.JSX.Element;
7069
+ declare function ServiceAccordion({ categories, variant, basePath, onServiceClick, allowMultiple, expandedCategories: controlledExpanded, onExpandedChange, className, 'aria-label': ariaLabel, }: ServiceAccordionProps): react_jsx_runtime.JSX.Element;
7068
7070
  interface ServiceTagCloudProps$1 {
7069
7071
  /** Flat list of services */
7070
7072
  services: ServiceItem[];
package/dist/index.js CHANGED
@@ -32079,7 +32079,7 @@ function SubCategoryAccordion({
32079
32079
  "overflow-hidden transition-all duration-200 ease-in-out",
32080
32080
  isExpanded ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"
32081
32081
  ),
32082
- "aria-hidden": !isExpanded,
32082
+ inert: !isExpanded || void 0,
32083
32083
  children: /* @__PURE__ */ jsx("div", { className: "space-y-1 pb-2 pl-4", children: subCategory.services.map((service, serviceIdx) => /* @__PURE__ */ jsx(
32084
32084
  ServiceLink,
32085
32085
  {
@@ -32164,7 +32164,7 @@ function CategoryAccordionItem({
32164
32164
  isExpanded ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0",
32165
32165
  variant === "cards" && "rounded-b-lg border border-t-0 border-neutral-200 bg-white dark:border-neutral-700 dark:bg-neutral-800"
32166
32166
  ),
32167
- "aria-hidden": !isExpanded,
32167
+ inert: !isExpanded || void 0,
32168
32168
  children: /* @__PURE__ */ jsxs("div", { className: "space-y-2 p-4", children: [
32169
32169
  category.services && category.services.length > 0 && /* @__PURE__ */ jsx("div", { className: "space-y-1", children: category.services.map((service, serviceIdx) => /* @__PURE__ */ jsx(
32170
32170
  ServiceLink,
@@ -32200,7 +32200,8 @@ function ServiceAccordion({
32200
32200
  allowMultiple = true,
32201
32201
  expandedCategories: controlledExpanded,
32202
32202
  onExpandedChange,
32203
- className
32203
+ className,
32204
+ "aria-label": ariaLabel = "Service categories"
32204
32205
  }) {
32205
32206
  const [internalExpanded, setInternalExpanded] = React48.useState([]);
32206
32207
  const isControlled = controlledExpanded !== void 0;
@@ -32228,7 +32229,7 @@ function ServiceAccordion({
32228
32229
  "data-slot": "service-accordion",
32229
32230
  className: cn(accordionVariants({ variant }), className),
32230
32231
  role: "region",
32231
- "aria-label": "Service categories",
32232
+ "aria-label": ariaLabel,
32232
32233
  children: categories.map((category, index) => /* @__PURE__ */ jsx(
32233
32234
  CategoryAccordionItem,
32234
32235
  {
@@ -32275,7 +32276,7 @@ function ServiceTagCloud({
32275
32276
  className: cn(
32276
32277
  "inline-flex items-center gap-1.5 rounded-full px-3 py-1.5",
32277
32278
  "text-sm font-medium",
32278
- "bg-primary-100 text-primary-800 hover:bg-primary-200",
32279
+ "bg-primary-100 text-primary-900 hover:bg-primary-200",
32279
32280
  "dark:bg-primary-900/30 dark:text-primary-300 dark:hover:bg-primary-900/50",
32280
32281
  "transition-colors",
32281
32282
  "focus-visible:ring-primary-500 focus:outline-none focus-visible:ring-2"
@@ -32283,7 +32284,7 @@ function ServiceTagCloud({
32283
32284
  "data-cy": `service-tag-${service.slug}`,
32284
32285
  children: [
32285
32286
  service.name,
32286
- showCounts && service.providerCount !== void 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs opacity-70", children: [
32287
+ showCounts && service.providerCount !== void 0 && /* @__PURE__ */ jsxs("span", { className: "text-primary-900 dark:text-primary-300 text-xs", children: [
32287
32288
  "(",
32288
32289
  service.providerCount,
32289
32290
  ")"