@mieweb/ui 0.3.0-dev.88 → 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
@@ -29259,7 +29259,7 @@ function ProviderSettings({
29259
29259
  ] }),
29260
29260
  /* @__PURE__ */ jsx(TabsContent, { value: "general", children: /* @__PURE__ */ jsxs("div", { className: "grid gap-6 md:grid-cols-2", children: [
29261
29261
  /* @__PURE__ */ jsxs(Card, { children: [
29262
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-lg", children: "Basic Information" }) }),
29262
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { as: "h2", className: "text-lg", children: "Basic Information" }) }),
29263
29263
  /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
29264
29264
  /* @__PURE__ */ jsxs("div", { children: [
29265
29265
  /* @__PURE__ */ jsx(
@@ -29339,7 +29339,7 @@ function ProviderSettings({
29339
29339
  ] })
29340
29340
  ] }),
29341
29341
  /* @__PURE__ */ jsxs(Card, { children: [
29342
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-lg", children: "Contact Information" }) }),
29342
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { as: "h2", className: "text-lg", children: "Contact Information" }) }),
29343
29343
  /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
29344
29344
  /* @__PURE__ */ jsxs("div", { children: [
29345
29345
  /* @__PURE__ */ jsx(
@@ -29401,7 +29401,7 @@ function ProviderSettings({
29401
29401
  ] })
29402
29402
  ] }),
29403
29403
  /* @__PURE__ */ jsxs(Card, { className: "md:col-span-2", children: [
29404
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-lg", children: "Address" }) }),
29404
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { as: "h2", className: "text-lg", children: "Address" }) }),
29405
29405
  /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
29406
29406
  /* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
29407
29407
  /* @__PURE__ */ jsxs("div", { children: [
@@ -29519,7 +29519,7 @@ function ProviderSettings({
29519
29519
  ] })
29520
29520
  ] }) }),
29521
29521
  /* @__PURE__ */ jsx(TabsContent, { value: "notifications", children: /* @__PURE__ */ jsx("div", { "data-slot": "provider-settings-notifications", children: /* @__PURE__ */ jsxs(Card, { children: [
29522
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-lg", children: "Notification Preferences" }) }),
29522
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { as: "h2", className: "text-lg", children: "Notification Preferences" }) }),
29523
29523
  /* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
29524
29524
  /* @__PURE__ */ jsxs("div", { children: [
29525
29525
  /* @__PURE__ */ jsx("h3", { className: "mb-4 font-medium text-gray-900 dark:text-white", children: "Email Notifications" }),
@@ -29533,7 +29533,8 @@ function ProviderSettings({
29533
29533
  Switch,
29534
29534
  {
29535
29535
  checked: settings.notifications.emailNewOrders,
29536
- onCheckedChange: (checked) => updateNotifications("emailNewOrders", checked)
29536
+ onCheckedChange: (checked) => updateNotifications("emailNewOrders", checked),
29537
+ "aria-label": "Email new orders"
29537
29538
  }
29538
29539
  )
29539
29540
  ] }),
@@ -29546,7 +29547,8 @@ function ProviderSettings({
29546
29547
  Switch,
29547
29548
  {
29548
29549
  checked: settings.notifications.emailOrderUpdates,
29549
- onCheckedChange: (checked) => updateNotifications("emailOrderUpdates", checked)
29550
+ onCheckedChange: (checked) => updateNotifications("emailOrderUpdates", checked),
29551
+ "aria-label": "Email order updates"
29550
29552
  }
29551
29553
  )
29552
29554
  ] }),
@@ -29559,7 +29561,8 @@ function ProviderSettings({
29559
29561
  Switch,
29560
29562
  {
29561
29563
  checked: settings.notifications.emailInvoices,
29562
- onCheckedChange: (checked) => updateNotifications("emailInvoices", checked)
29564
+ onCheckedChange: (checked) => updateNotifications("emailInvoices", checked),
29565
+ "aria-label": "Email invoice notifications"
29563
29566
  }
29564
29567
  )
29565
29568
  ] })
@@ -29577,7 +29580,8 @@ function ProviderSettings({
29577
29580
  Switch,
29578
29581
  {
29579
29582
  checked: settings.notifications.smsNewOrders,
29580
- onCheckedChange: (checked) => updateNotifications("smsNewOrders", checked)
29583
+ onCheckedChange: (checked) => updateNotifications("smsNewOrders", checked),
29584
+ "aria-label": "SMS new orders"
29581
29585
  }
29582
29586
  )
29583
29587
  ] }),
@@ -29590,7 +29594,8 @@ function ProviderSettings({
29590
29594
  Switch,
29591
29595
  {
29592
29596
  checked: settings.notifications.smsOrderUpdates,
29593
- onCheckedChange: (checked) => updateNotifications("smsOrderUpdates", checked)
29597
+ onCheckedChange: (checked) => updateNotifications("smsOrderUpdates", checked),
29598
+ "aria-label": "SMS order updates"
29594
29599
  }
29595
29600
  )
29596
29601
  ] })
@@ -29599,7 +29604,7 @@ function ProviderSettings({
29599
29604
  ] })
29600
29605
  ] }) }) }),
29601
29606
  /* @__PURE__ */ jsx(TabsContent, { value: "scheduling", children: /* @__PURE__ */ jsx("div", { "data-slot": "provider-settings-scheduling", children: /* @__PURE__ */ jsxs(Card, { children: [
29602
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-lg", children: "Scheduling Settings" }) }),
29607
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { as: "h2", className: "text-lg", children: "Scheduling Settings" }) }),
29603
29608
  /* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
29604
29609
  /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
29605
29610
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
@@ -29611,7 +29616,8 @@ function ProviderSettings({
29611
29616
  Switch,
29612
29617
  {
29613
29618
  checked: settings.scheduling.acceptingNewPatients,
29614
- onCheckedChange: (checked) => updateScheduling("acceptingNewPatients", checked)
29619
+ onCheckedChange: (checked) => updateScheduling("acceptingNewPatients", checked),
29620
+ "aria-label": "Accepting new patients"
29615
29621
  }
29616
29622
  )
29617
29623
  ] }),
@@ -29624,7 +29630,8 @@ function ProviderSettings({
29624
29630
  Switch,
29625
29631
  {
29626
29632
  checked: settings.scheduling.requireAppointment,
29627
- onCheckedChange: (checked) => updateScheduling("requireAppointment", checked)
29633
+ onCheckedChange: (checked) => updateScheduling("requireAppointment", checked),
29634
+ "aria-label": "Require appointment"
29628
29635
  }
29629
29636
  )
29630
29637
  ] })
@@ -29682,7 +29689,7 @@ function ProviderSettings({
29682
29689
  ] })
29683
29690
  ] }) }) }),
29684
29691
  /* @__PURE__ */ jsx(TabsContent, { value: "payments", children: /* @__PURE__ */ jsx("div", { "data-slot": "provider-settings-payments", children: /* @__PURE__ */ jsxs(Card, { children: [
29685
- /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-lg", children: "Payment Settings" }) }),
29692
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { as: "h2", className: "text-lg", children: "Payment Settings" }) }),
29686
29693
  /* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
29687
29694
  /* @__PURE__ */ jsxs("div", { children: [
29688
29695
  /* @__PURE__ */ jsx("h3", { className: "mb-4 font-medium text-gray-900 dark:text-white", children: "Accepted Payment Methods" }),
@@ -29713,7 +29720,8 @@ function ProviderSettings({
29713
29720
  Switch,
29714
29721
  {
29715
29722
  checked: settings.payments.acceptsCreditCard,
29716
- onCheckedChange: (checked) => updatePayments("acceptsCreditCard", checked)
29723
+ onCheckedChange: (checked) => updatePayments("acceptsCreditCard", checked),
29724
+ "aria-label": "Accept credit card"
29717
29725
  }
29718
29726
  )
29719
29727
  ] }),
@@ -29743,7 +29751,8 @@ function ProviderSettings({
29743
29751
  Switch,
29744
29752
  {
29745
29753
  checked: settings.payments.acceptsACH,
29746
- onCheckedChange: (checked) => updatePayments("acceptsACH", checked)
29754
+ onCheckedChange: (checked) => updatePayments("acceptsACH", checked),
29755
+ "aria-label": "Accept ACH / bank transfer"
29747
29756
  }
29748
29757
  )
29749
29758
  ] }),
@@ -29773,7 +29782,8 @@ function ProviderSettings({
29773
29782
  Switch,
29774
29783
  {
29775
29784
  checked: settings.payments.acceptsCash,
29776
- onCheckedChange: (checked) => updatePayments("acceptsCash", checked)
29785
+ onCheckedChange: (checked) => updatePayments("acceptsCash", checked),
29786
+ "aria-label": "Accept cash"
29777
29787
  }
29778
29788
  )
29779
29789
  ] }),
@@ -29803,7 +29813,8 @@ function ProviderSettings({
29803
29813
  Switch,
29804
29814
  {
29805
29815
  checked: settings.payments.acceptsCheck,
29806
- onCheckedChange: (checked) => updatePayments("acceptsCheck", checked)
29816
+ onCheckedChange: (checked) => updatePayments("acceptsCheck", checked),
29817
+ "aria-label": "Accept check"
29807
29818
  }
29808
29819
  )
29809
29820
  ] })
@@ -32068,7 +32079,7 @@ function SubCategoryAccordion({
32068
32079
  "overflow-hidden transition-all duration-200 ease-in-out",
32069
32080
  isExpanded ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"
32070
32081
  ),
32071
- "aria-hidden": !isExpanded,
32082
+ inert: !isExpanded || void 0,
32072
32083
  children: /* @__PURE__ */ jsx("div", { className: "space-y-1 pb-2 pl-4", children: subCategory.services.map((service, serviceIdx) => /* @__PURE__ */ jsx(
32073
32084
  ServiceLink,
32074
32085
  {
@@ -32153,7 +32164,7 @@ function CategoryAccordionItem({
32153
32164
  isExpanded ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0",
32154
32165
  variant === "cards" && "rounded-b-lg border border-t-0 border-neutral-200 bg-white dark:border-neutral-700 dark:bg-neutral-800"
32155
32166
  ),
32156
- "aria-hidden": !isExpanded,
32167
+ inert: !isExpanded || void 0,
32157
32168
  children: /* @__PURE__ */ jsxs("div", { className: "space-y-2 p-4", children: [
32158
32169
  category.services && category.services.length > 0 && /* @__PURE__ */ jsx("div", { className: "space-y-1", children: category.services.map((service, serviceIdx) => /* @__PURE__ */ jsx(
32159
32170
  ServiceLink,
@@ -32189,7 +32200,8 @@ function ServiceAccordion({
32189
32200
  allowMultiple = true,
32190
32201
  expandedCategories: controlledExpanded,
32191
32202
  onExpandedChange,
32192
- className
32203
+ className,
32204
+ "aria-label": ariaLabel = "Service categories"
32193
32205
  }) {
32194
32206
  const [internalExpanded, setInternalExpanded] = React48.useState([]);
32195
32207
  const isControlled = controlledExpanded !== void 0;
@@ -32217,7 +32229,7 @@ function ServiceAccordion({
32217
32229
  "data-slot": "service-accordion",
32218
32230
  className: cn(accordionVariants({ variant }), className),
32219
32231
  role: "region",
32220
- "aria-label": "Service categories",
32232
+ "aria-label": ariaLabel,
32221
32233
  children: categories.map((category, index) => /* @__PURE__ */ jsx(
32222
32234
  CategoryAccordionItem,
32223
32235
  {
@@ -32264,7 +32276,7 @@ function ServiceTagCloud({
32264
32276
  className: cn(
32265
32277
  "inline-flex items-center gap-1.5 rounded-full px-3 py-1.5",
32266
32278
  "text-sm font-medium",
32267
- "bg-primary-100 text-primary-800 hover:bg-primary-200",
32279
+ "bg-primary-100 text-primary-900 hover:bg-primary-200",
32268
32280
  "dark:bg-primary-900/30 dark:text-primary-300 dark:hover:bg-primary-900/50",
32269
32281
  "transition-colors",
32270
32282
  "focus-visible:ring-primary-500 focus:outline-none focus-visible:ring-2"
@@ -32272,7 +32284,7 @@ function ServiceTagCloud({
32272
32284
  "data-cy": `service-tag-${service.slug}`,
32273
32285
  children: [
32274
32286
  service.name,
32275
- 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: [
32276
32288
  "(",
32277
32289
  service.providerCount,
32278
32290
  ")"