@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.cjs CHANGED
@@ -29252,7 +29252,7 @@ function ProviderSettings({
29252
29252
  ] }),
29253
29253
  /* @__PURE__ */ jsxRuntime.jsx(chunkQASIWBXU_cjs.TabsContent, { value: "general", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-6 md:grid-cols-2", children: [
29254
29254
  /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.Card, { children: [
29255
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { className: "text-lg", children: "Basic Information" }) }),
29255
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { as: "h2", className: "text-lg", children: "Basic Information" }) }),
29256
29256
  /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.CardContent, { className: "space-y-4", children: [
29257
29257
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
29258
29258
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -29332,7 +29332,7 @@ function ProviderSettings({
29332
29332
  ] })
29333
29333
  ] }),
29334
29334
  /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.Card, { children: [
29335
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { className: "text-lg", children: "Contact Information" }) }),
29335
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { as: "h2", className: "text-lg", children: "Contact Information" }) }),
29336
29336
  /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.CardContent, { className: "space-y-4", children: [
29337
29337
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
29338
29338
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -29394,7 +29394,7 @@ function ProviderSettings({
29394
29394
  ] })
29395
29395
  ] }),
29396
29396
  /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.Card, { className: "md:col-span-2", children: [
29397
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { className: "text-lg", children: "Address" }) }),
29397
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { as: "h2", className: "text-lg", children: "Address" }) }),
29398
29398
  /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.CardContent, { className: "space-y-4", children: [
29399
29399
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
29400
29400
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -29512,7 +29512,7 @@ function ProviderSettings({
29512
29512
  ] })
29513
29513
  ] }) }),
29514
29514
  /* @__PURE__ */ jsxRuntime.jsx(chunkQASIWBXU_cjs.TabsContent, { value: "notifications", children: /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "provider-settings-notifications", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.Card, { children: [
29515
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { className: "text-lg", children: "Notification Preferences" }) }),
29515
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { as: "h2", className: "text-lg", children: "Notification Preferences" }) }),
29516
29516
  /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.CardContent, { className: "space-y-6", children: [
29517
29517
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
29518
29518
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4 font-medium text-gray-900 dark:text-white", children: "Email Notifications" }),
@@ -29526,7 +29526,8 @@ function ProviderSettings({
29526
29526
  chunkNVHAQOHH_cjs.Switch,
29527
29527
  {
29528
29528
  checked: settings.notifications.emailNewOrders,
29529
- onCheckedChange: (checked) => updateNotifications("emailNewOrders", checked)
29529
+ onCheckedChange: (checked) => updateNotifications("emailNewOrders", checked),
29530
+ "aria-label": "Email new orders"
29530
29531
  }
29531
29532
  )
29532
29533
  ] }),
@@ -29539,7 +29540,8 @@ function ProviderSettings({
29539
29540
  chunkNVHAQOHH_cjs.Switch,
29540
29541
  {
29541
29542
  checked: settings.notifications.emailOrderUpdates,
29542
- onCheckedChange: (checked) => updateNotifications("emailOrderUpdates", checked)
29543
+ onCheckedChange: (checked) => updateNotifications("emailOrderUpdates", checked),
29544
+ "aria-label": "Email order updates"
29543
29545
  }
29544
29546
  )
29545
29547
  ] }),
@@ -29552,7 +29554,8 @@ function ProviderSettings({
29552
29554
  chunkNVHAQOHH_cjs.Switch,
29553
29555
  {
29554
29556
  checked: settings.notifications.emailInvoices,
29555
- onCheckedChange: (checked) => updateNotifications("emailInvoices", checked)
29557
+ onCheckedChange: (checked) => updateNotifications("emailInvoices", checked),
29558
+ "aria-label": "Email invoice notifications"
29556
29559
  }
29557
29560
  )
29558
29561
  ] })
@@ -29570,7 +29573,8 @@ function ProviderSettings({
29570
29573
  chunkNVHAQOHH_cjs.Switch,
29571
29574
  {
29572
29575
  checked: settings.notifications.smsNewOrders,
29573
- onCheckedChange: (checked) => updateNotifications("smsNewOrders", checked)
29576
+ onCheckedChange: (checked) => updateNotifications("smsNewOrders", checked),
29577
+ "aria-label": "SMS new orders"
29574
29578
  }
29575
29579
  )
29576
29580
  ] }),
@@ -29583,7 +29587,8 @@ function ProviderSettings({
29583
29587
  chunkNVHAQOHH_cjs.Switch,
29584
29588
  {
29585
29589
  checked: settings.notifications.smsOrderUpdates,
29586
- onCheckedChange: (checked) => updateNotifications("smsOrderUpdates", checked)
29590
+ onCheckedChange: (checked) => updateNotifications("smsOrderUpdates", checked),
29591
+ "aria-label": "SMS order updates"
29587
29592
  }
29588
29593
  )
29589
29594
  ] })
@@ -29592,7 +29597,7 @@ function ProviderSettings({
29592
29597
  ] })
29593
29598
  ] }) }) }),
29594
29599
  /* @__PURE__ */ jsxRuntime.jsx(chunkQASIWBXU_cjs.TabsContent, { value: "scheduling", children: /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "provider-settings-scheduling", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.Card, { children: [
29595
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { className: "text-lg", children: "Scheduling Settings" }) }),
29600
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { as: "h2", className: "text-lg", children: "Scheduling Settings" }) }),
29596
29601
  /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.CardContent, { className: "space-y-6", children: [
29597
29602
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
29598
29603
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
@@ -29604,7 +29609,8 @@ function ProviderSettings({
29604
29609
  chunkNVHAQOHH_cjs.Switch,
29605
29610
  {
29606
29611
  checked: settings.scheduling.acceptingNewPatients,
29607
- onCheckedChange: (checked) => updateScheduling("acceptingNewPatients", checked)
29612
+ onCheckedChange: (checked) => updateScheduling("acceptingNewPatients", checked),
29613
+ "aria-label": "Accepting new patients"
29608
29614
  }
29609
29615
  )
29610
29616
  ] }),
@@ -29617,7 +29623,8 @@ function ProviderSettings({
29617
29623
  chunkNVHAQOHH_cjs.Switch,
29618
29624
  {
29619
29625
  checked: settings.scheduling.requireAppointment,
29620
- onCheckedChange: (checked) => updateScheduling("requireAppointment", checked)
29626
+ onCheckedChange: (checked) => updateScheduling("requireAppointment", checked),
29627
+ "aria-label": "Require appointment"
29621
29628
  }
29622
29629
  )
29623
29630
  ] })
@@ -29675,7 +29682,7 @@ function ProviderSettings({
29675
29682
  ] })
29676
29683
  ] }) }) }),
29677
29684
  /* @__PURE__ */ jsxRuntime.jsx(chunkQASIWBXU_cjs.TabsContent, { value: "payments", children: /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "provider-settings-payments", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.Card, { children: [
29678
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { className: "text-lg", children: "Payment Settings" }) }),
29685
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIWU7H3YS_cjs.CardTitle, { as: "h2", className: "text-lg", children: "Payment Settings" }) }),
29679
29686
  /* @__PURE__ */ jsxRuntime.jsxs(chunkIWU7H3YS_cjs.CardContent, { className: "space-y-6", children: [
29680
29687
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
29681
29688
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4 font-medium text-gray-900 dark:text-white", children: "Accepted Payment Methods" }),
@@ -29706,7 +29713,8 @@ function ProviderSettings({
29706
29713
  chunkNVHAQOHH_cjs.Switch,
29707
29714
  {
29708
29715
  checked: settings.payments.acceptsCreditCard,
29709
- onCheckedChange: (checked) => updatePayments("acceptsCreditCard", checked)
29716
+ onCheckedChange: (checked) => updatePayments("acceptsCreditCard", checked),
29717
+ "aria-label": "Accept credit card"
29710
29718
  }
29711
29719
  )
29712
29720
  ] }),
@@ -29736,7 +29744,8 @@ function ProviderSettings({
29736
29744
  chunkNVHAQOHH_cjs.Switch,
29737
29745
  {
29738
29746
  checked: settings.payments.acceptsACH,
29739
- onCheckedChange: (checked) => updatePayments("acceptsACH", checked)
29747
+ onCheckedChange: (checked) => updatePayments("acceptsACH", checked),
29748
+ "aria-label": "Accept ACH / bank transfer"
29740
29749
  }
29741
29750
  )
29742
29751
  ] }),
@@ -29766,7 +29775,8 @@ function ProviderSettings({
29766
29775
  chunkNVHAQOHH_cjs.Switch,
29767
29776
  {
29768
29777
  checked: settings.payments.acceptsCash,
29769
- onCheckedChange: (checked) => updatePayments("acceptsCash", checked)
29778
+ onCheckedChange: (checked) => updatePayments("acceptsCash", checked),
29779
+ "aria-label": "Accept cash"
29770
29780
  }
29771
29781
  )
29772
29782
  ] }),
@@ -29796,7 +29806,8 @@ function ProviderSettings({
29796
29806
  chunkNVHAQOHH_cjs.Switch,
29797
29807
  {
29798
29808
  checked: settings.payments.acceptsCheck,
29799
- onCheckedChange: (checked) => updatePayments("acceptsCheck", checked)
29809
+ onCheckedChange: (checked) => updatePayments("acceptsCheck", checked),
29810
+ "aria-label": "Accept check"
29800
29811
  }
29801
29812
  )
29802
29813
  ] })
@@ -32061,7 +32072,7 @@ function SubCategoryAccordion({
32061
32072
  "overflow-hidden transition-all duration-200 ease-in-out",
32062
32073
  isExpanded ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"
32063
32074
  ),
32064
- "aria-hidden": !isExpanded,
32075
+ inert: !isExpanded || void 0,
32065
32076
  children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1 pb-2 pl-4", children: subCategory.services.map((service, serviceIdx) => /* @__PURE__ */ jsxRuntime.jsx(
32066
32077
  ServiceLink,
32067
32078
  {
@@ -32146,7 +32157,7 @@ function CategoryAccordionItem({
32146
32157
  isExpanded ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0",
32147
32158
  variant === "cards" && "rounded-b-lg border border-t-0 border-neutral-200 bg-white dark:border-neutral-700 dark:bg-neutral-800"
32148
32159
  ),
32149
- "aria-hidden": !isExpanded,
32160
+ inert: !isExpanded || void 0,
32150
32161
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2 p-4", children: [
32151
32162
  category.services && category.services.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1", children: category.services.map((service, serviceIdx) => /* @__PURE__ */ jsxRuntime.jsx(
32152
32163
  ServiceLink,
@@ -32182,7 +32193,8 @@ function ServiceAccordion({
32182
32193
  allowMultiple = true,
32183
32194
  expandedCategories: controlledExpanded,
32184
32195
  onExpandedChange,
32185
- className
32196
+ className,
32197
+ "aria-label": ariaLabel = "Service categories"
32186
32198
  }) {
32187
32199
  const [internalExpanded, setInternalExpanded] = React48__namespace.useState([]);
32188
32200
  const isControlled = controlledExpanded !== void 0;
@@ -32210,7 +32222,7 @@ function ServiceAccordion({
32210
32222
  "data-slot": "service-accordion",
32211
32223
  className: chunkOR5DRJCW_cjs.cn(accordionVariants({ variant }), className),
32212
32224
  role: "region",
32213
- "aria-label": "Service categories",
32225
+ "aria-label": ariaLabel,
32214
32226
  children: categories.map((category, index) => /* @__PURE__ */ jsxRuntime.jsx(
32215
32227
  CategoryAccordionItem,
32216
32228
  {
@@ -32257,7 +32269,7 @@ function ServiceTagCloud({
32257
32269
  className: chunkOR5DRJCW_cjs.cn(
32258
32270
  "inline-flex items-center gap-1.5 rounded-full px-3 py-1.5",
32259
32271
  "text-sm font-medium",
32260
- "bg-primary-100 text-primary-800 hover:bg-primary-200",
32272
+ "bg-primary-100 text-primary-900 hover:bg-primary-200",
32261
32273
  "dark:bg-primary-900/30 dark:text-primary-300 dark:hover:bg-primary-900/50",
32262
32274
  "transition-colors",
32263
32275
  "focus-visible:ring-primary-500 focus:outline-none focus-visible:ring-2"
@@ -32265,7 +32277,7 @@ function ServiceTagCloud({
32265
32277
  "data-cy": `service-tag-${service.slug}`,
32266
32278
  children: [
32267
32279
  service.name,
32268
- showCounts && service.providerCount !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs opacity-70", children: [
32280
+ showCounts && service.providerCount !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-primary-900 dark:text-primary-300 text-xs", children: [
32269
32281
  "(",
32270
32282
  service.providerCount,
32271
32283
  ")"