@alfadocs/ui-kit 1.91.0 → 1.92.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.
Files changed (72) hide show
  1. package/README.md +24 -0
  2. package/dist/_chunks/{practice-results-CQ_KvEXK.js → practice-results-Bls-mygM.js} +383 -361
  3. package/dist/_chunks/{booking-opt_h7Uc.js → reserved.agent-C1gLyK2R.js} +1031 -1011
  4. package/dist/ag-grid.css +2746 -0
  5. package/dist/agent-catalog.json +15 -1
  6. package/dist/apexcharts.css +40 -0
  7. package/dist/components/booking/index.d.ts +3 -0
  8. package/dist/components/booking/index.js +6 -4
  9. package/dist/components/booking/reserved.agent.d.ts +4 -0
  10. package/dist/components/booking/reserved.d.ts +9 -6
  11. package/dist/components/practice-results/index.js +1 -1
  12. package/dist/components/practice-results/practice-results.d.ts +1 -1
  13. package/dist/core.css +2 -0
  14. package/dist/fullcalendar.css +56 -0
  15. package/dist/i18n/config.js +81 -81
  16. package/dist/i18n/locales/ar.d.ts +1 -0
  17. package/dist/i18n/locales/ar.js +2 -1
  18. package/dist/i18n/locales/de.d.ts +1 -0
  19. package/dist/i18n/locales/de.js +2 -1
  20. package/dist/i18n/locales/el.d.ts +1 -0
  21. package/dist/i18n/locales/el.js +2 -1
  22. package/dist/i18n/locales/en.d.ts +3 -2
  23. package/dist/i18n/locales/en.js +2 -1
  24. package/dist/i18n/locales/es.d.ts +1 -0
  25. package/dist/i18n/locales/es.js +2 -1
  26. package/dist/i18n/locales/fr.d.ts +1 -0
  27. package/dist/i18n/locales/fr.js +2 -1
  28. package/dist/i18n/locales/hi.d.ts +1 -0
  29. package/dist/i18n/locales/hi.js +2 -1
  30. package/dist/i18n/locales/it.d.ts +1 -0
  31. package/dist/i18n/locales/it.js +2 -1
  32. package/dist/i18n/locales/ja.d.ts +1 -0
  33. package/dist/i18n/locales/ja.js +2 -1
  34. package/dist/i18n/locales/nl.d.ts +1 -0
  35. package/dist/i18n/locales/nl.js +2 -1
  36. package/dist/i18n/locales/pl.d.ts +1 -0
  37. package/dist/i18n/locales/pl.js +2 -1
  38. package/dist/i18n/locales/pt.d.ts +1 -0
  39. package/dist/i18n/locales/pt.js +2 -1
  40. package/dist/i18n/locales/ro.d.ts +1 -0
  41. package/dist/i18n/locales/ro.js +2 -1
  42. package/dist/i18n/locales/ru.d.ts +1 -0
  43. package/dist/i18n/locales/ru.js +2 -1
  44. package/dist/i18n/locales/sq.d.ts +1 -0
  45. package/dist/i18n/locales/sq.js +2 -1
  46. package/dist/i18n/locales/sv.d.ts +1 -0
  47. package/dist/i18n/locales/sv.js +2 -1
  48. package/dist/i18n/locales/tr.d.ts +1 -0
  49. package/dist/i18n/locales/tr.js +2 -1
  50. package/dist/i18n/locales/zh.d.ts +1 -0
  51. package/dist/i18n/locales/zh.js +2 -1
  52. package/dist/index.js +451 -449
  53. package/dist/locales/ar.json +2 -1
  54. package/dist/locales/de.json +2 -1
  55. package/dist/locales/el.json +2 -1
  56. package/dist/locales/en.json +2 -1
  57. package/dist/locales/es.json +2 -1
  58. package/dist/locales/fr.json +2 -1
  59. package/dist/locales/hi.json +2 -1
  60. package/dist/locales/it.json +2 -1
  61. package/dist/locales/ja.json +2 -1
  62. package/dist/locales/nl.json +2 -1
  63. package/dist/locales/pl.json +2 -1
  64. package/dist/locales/pt.json +2 -1
  65. package/dist/locales/ro.json +2 -1
  66. package/dist/locales/ru.json +2 -1
  67. package/dist/locales/sq.json +2 -1
  68. package/dist/locales/sv.json +2 -1
  69. package/dist/locales/tr.json +2 -1
  70. package/dist/locales/zh.json +2 -1
  71. package/dist/redactor.css +54 -0
  72. package/package.json +10 -3
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.91.0",
3
+ "packageVersion": "1.92.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -1521,6 +1521,20 @@
1521
1521
  }
1522
1522
  }
1523
1523
  },
1524
+ {
1525
+ "kind": "component",
1526
+ "id": "booking-reserved",
1527
+ "capabilities": [],
1528
+ "state": [],
1529
+ "actions": [],
1530
+ "domHooks": {
1531
+ "root": {
1532
+ "attr": "data-component",
1533
+ "value": "booking-reserved",
1534
+ "description": "Marks the standalone or embedded reserved-time handover. The host verifies the booking and supplies the destination. No URL, appointment details or patient data are exposed through the adapter."
1535
+ }
1536
+ }
1537
+ },
1524
1538
  {
1525
1539
  "kind": "component",
1526
1540
  "id": "breadcrumb",
@@ -0,0 +1,40 @@
1
+
2
+ @media(forced-colors:active){
3
+ .apex-theme-alfadocs .apexcharts-radialbar :is(.apexcharts-datalabel-label,.apexcharts-datalabel-value){fill:CanvasText!important}
4
+ .apex-theme-alfadocs :is(.apexcharts-legend-series[role=button],.apexcharts-toolbar>[role=button],.apexcharts-menu-item):focus-visible{outline-color:CanvasText}}
5
+ .apex-theme-alfadocs .apexcharts-legend-series[role=button]{justify-content:center;min-block-size:var(--min-target-size);min-inline-size:var(--min-target-size);max-inline-size:calc(50% - 10px)}
6
+ .apex-theme-alfadocs .apexcharts-legend-series[role=button]>*{flex-shrink:0}
7
+ .apex-theme-alfadocs .apexcharts-legend-series[role=button]>.apexcharts-legend-text{display:-webkit-box;flex-shrink:1;min-inline-size:0;overflow:hidden;overflow-wrap:anywhere;line-height:1.2;unicode-bidi:plaintext;-webkit-box-orient:vertical;-webkit-line-clamp:3}
8
+ .apex-theme-alfadocs .apexcharts-legend{--chart-legend-ring-room: max( 0px, calc(var(--focus-ring-offset) + var(--focus-ring-width) - 4px) );padding-block:var(--chart-legend-ring-room);scroll-padding-block:calc(var(--focus-ring-offset) + var(--focus-ring-width))}
9
+ .apex-theme-alfadocs .apexcharts-legend.apx-legend-position-bottom{max-block-size:min(50%,calc(2 * (var(--min-target-size) + 8px) + 2 * var(--chart-legend-ring-room)))!important}
10
+ .apex-theme-alfadocs[data-legend-layout=row] .apexcharts-legend.apx-legend-position-bottom{--chart-legend-fade: calc( var(--min-target-size) * (1 - var(--accessible-on, 0)) );--chart-legend-mask-left: black;--chart-legend-mask-right: black;flex-wrap:nowrap;overflow:auto hidden;scrollbar-width:thin;scroll-padding-inline:calc(var(--chart-legend-fade) + var(--focus-ring-offset) + var(--focus-ring-width));-webkit-mask-image:var( --accessible-off, linear-gradient( to right, var(--chart-legend-mask-left) 0, black var(--chart-legend-fade), black calc(100% - var(--chart-legend-fade)), var(--chart-legend-mask-right) 100% ) );mask-image:var( --accessible-off, linear-gradient( to right, var(--chart-legend-mask-left) 0, black var(--chart-legend-fade), black calc(100% - var(--chart-legend-fade)), var(--chart-legend-mask-right) 100% ) )}
11
+ .apex-theme-alfadocs[data-legend-layout=row] .apexcharts-legend-series[role=button]{flex:1 1 0;min-inline-size:var( --chart-legend-item-size, calc(var(--min-target-size) + var(--spacing-md)) );max-inline-size:var(--chart-legend-item-size, max-content)}
12
+ .apex-theme-alfadocs[data-legend-layout=row] .apexcharts-legend-series[role=button]>.apexcharts-legend-text{display:block;white-space:nowrap;text-overflow:ellipsis}
13
+ .apex-theme-alfadocs .apexcharts-legend-series[role=button]>.apexcharts-legend-text:has(>.chart-legend-ring){display:block;min-inline-size:min-content;-webkit-line-clamp:none}
14
+ .apex-theme-alfadocs .apexcharts-legend-series[role=button]:has(.chart-legend-ring){min-inline-size:min-content}
15
+ .apex-theme-alfadocs .chart-legend-ring{display:flex;flex-direction:column;align-items:flex-start;min-inline-size:var(--min-target-size)}
16
+ .apex-theme-alfadocs .chart-legend-name{display:-webkit-box;max-inline-size:100%;overflow:hidden;overflow-wrap:anywhere;unicode-bidi:plaintext;-webkit-box-orient:vertical;-webkit-line-clamp:2}
17
+ .apex-theme-alfadocs .chart-legend-value{white-space:nowrap;unicode-bidi:plaintext}
18
+ .apex-theme-alfadocs[data-legend-layout=row] .chart-legend-name{display:block;white-space:nowrap;text-overflow:ellipsis}
19
+ .apex-theme-alfadocs[data-legend-layout=row] .apexcharts-legend-series[role=button]>.apexcharts-legend-text:has(>.chart-legend-ring),.apex-theme-alfadocs[data-legend-layout=row] .chart-legend-ring{min-inline-size:0}
20
+ .apex-theme-alfadocs[data-legend-layout=row] .apexcharts-legend-series[role=button]:has(.chart-legend-ring){min-inline-size:var( --chart-legend-item-size, max(var(--min-target-size), var(--chart-legend-value-size, 0px)) )}
21
+ .apex-theme-alfadocs .apexcharts-legend-series.apexcharts-inactive-legend{opacity:1}
22
+ .apex-theme-alfadocs .apexcharts-legend-series.apexcharts-inactive-legend>.apexcharts-legend-text{text-decoration:line-through}
23
+ .apex-theme-alfadocs .apexcharts-legend-series.apexcharts-inactive-legend>.apexcharts-legend-marker{opacity:var(--opacity-50)}
24
+ .apex-theme-alfadocs[data-legend-layout=row] .apexcharts-legend-series[role=button]:focus-visible{flex:none;max-inline-size:calc(100% - 2 * (var(--chart-legend-fade) + var(--focus-ring-offset) + var(--focus-ring-width)))}
25
+ .apex-theme-alfadocs[data-legend-layout=row] .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right{justify-content:safe flex-end}
26
+ .apex-theme-alfadocs[data-legend-layout=row] .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center{justify-content:safe center}
27
+ .apex-theme-alfadocs[data-legend-layout=row] .apexcharts-legend.apx-legend-position-bottom[data-fade-start=true]{--chart-legend-mask-left: transparent}
28
+ .apex-theme-alfadocs[data-legend-layout=row] .apexcharts-legend.apx-legend-position-bottom[data-fade-end=true]{--chart-legend-mask-right: transparent}
29
+ @media(prefers-reduced-motion:reduce),(forced-colors:active){.apex-theme-alfadocs[data-legend-layout=row] .apexcharts-legend.apx-legend-position-bottom{--chart-legend-fade: 0px;-webkit-mask-image:none;mask-image:none}}
30
+ .apex-theme-alfadocs .apexcharts-yaxistooltip{display:none}
31
+ .apex-theme-alfadocs .apexcharts-radialbar .apexcharts-datalabel-label{font-size:var(--chart-centre-size, var(--type-body-size));unicode-bidi:plaintext}
32
+ .apex-theme-alfadocs .apexcharts-radialbar .apexcharts-datalabel-value{font-size:var(--chart-centre-size, var(--type-body-sm-size))}
33
+ .apex-theme-alfadocs .apexcharts-toolbar{flex-wrap:wrap;justify-content:flex-end;max-inline-size:100%;padding-block:calc(var(--focus-ring-offset) + var(--focus-ring-width)) 0}
34
+ .apex-theme-alfadocs .apexcharts-toolbar>[role=button]{display:flex;flex-shrink:0;align-items:center;justify-content:center;inline-size:var(--min-target-size);block-size:var(--min-target-size);transform:none}
35
+ .apex-theme-alfadocs .apexcharts-toolbar>:is(.apexcharts-zoomin-icon,.apexcharts-zoomout-icon)>svg{scale:.7}
36
+ .apex-theme-alfadocs .apexcharts-toolbar>:is(.apexcharts-zoom-icon,.apexcharts-reset-icon,.apexcharts-menu-icon)>svg{scale:.85}
37
+ .apex-theme-alfadocs .apexcharts-toolbar>.apexcharts-pan-icon>svg{scale:.62}
38
+ .apex-theme-alfadocs .apexcharts-menu-item{display:flex;align-items:center;min-block-size:var(--min-target-size)}
39
+ .apex-theme-alfadocs .apexcharts-legend-series[role=button]:focus-visible,.apex-theme-alfadocs .apexcharts-toolbar>[role=button]:focus-visible{outline:var(--focus-ring-width) solid var(--ring);outline-offset:var(--focus-ring-offset);border-radius:var(--radius-sm)}
40
+ .apex-theme-alfadocs .apexcharts-menu-item:focus-visible{outline:var(--focus-ring-width) solid var(--ring);outline-offset:calc(var(--focus-ring-width) * -1);background:transparent}
@@ -1,4 +1,7 @@
1
1
  export { Booking } from './booking';
2
+ export { BookingReserved } from './reserved';
3
+ export type { BookingReservedProps } from './reserved';
4
+ export { bookingReservedAgent } from './reserved.agent';
2
5
  export type { BookingCodeStep, BookingPaymentSession, BookingPaymentState, BookingPaymentRenderContext, BookingSubmitResult, BookingServicePayment, BookingResolvedPayment, BookingProps, BookingHandle, BookingVariant, BookingValue, BookingService, BookingSpecialty, BookingSlot, BookingOperator, BookingPracticeConsent, BookingBillingDetails, BookingDetails, BookingSubmitPayload, BookingValidator, BookingValidationResult, ConfirmationChannel, InsuranceType, } from './booking';
3
6
  export { CONFIRMATION_CHANNEL_ORDER, OPERATORS_ALL } from './booking';
4
7
  export { bookingAgent } from './booking.agent';
@@ -1,8 +1,10 @@
1
- import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-opt_h7Uc.js";
1
+ import { B as s, a, C as R, O as g, b as n, c as A } from "../../_chunks/reserved.agent-C1gLyK2R.js";
2
2
  export {
3
- A as Booking,
3
+ s as Booking,
4
+ a as BookingReserved,
4
5
  R as CONFIRMATION_CHANNEL_ORDER,
5
- a as OPERATORS_ALL,
6
- s as bookingAgent
6
+ g as OPERATORS_ALL,
7
+ n as bookingAgent,
8
+ A as bookingReservedAgent
7
9
  };
8
10
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
1
+ import type { AgentAdapter } from '../../agent/types';
2
+ /** DOM discovery only: navigation and focus remain host-owned callbacks. */
3
+ export declare const bookingReservedAgent: AgentAdapter;
4
+ //# sourceMappingURL=reserved.agent.d.ts.map
@@ -1,17 +1,21 @@
1
1
  import { type ReactNode } from 'react';
2
- interface BookingReservedProps {
3
- /** An address already checked with `safeHandoverUrl`. */
2
+ export interface BookingReservedProps {
3
+ /**
4
+ * An absolute HTTP(S) address. The kit refuses anything else (relative,
5
+ * `javascript:`, `mailto:`): no timer starts and no hand-over button shows.
6
+ */
4
7
  url: string;
8
+ /** Delay in milliseconds. Not finite or negative becomes 3000; above 2,147,483,647 is capped. */
5
9
  delayMs: number;
6
10
  /** Replaces `window.location.assign`. */
7
11
  onNavigate?: (url: string) => void;
8
12
  /** Short date, already formatted for the locale. */
9
13
  date?: string;
10
14
  /** Clock time, already formatted for the locale. */
11
- time: string;
15
+ time?: string;
12
16
  /** Service and professional, already joined. */
13
17
  details?: ReactNode;
14
- /** True when focus is inside Booking, or a removed control dropped it. */
18
+ /** Whether to focus the result heading on mount. The host owns this decision. */
15
19
  shouldTakeFocus: (root: HTMLElement) => boolean;
16
20
  }
17
21
  /**
@@ -19,6 +23,5 @@ interface BookingReservedProps {
19
23
  * the host gave an address. Opens it after `delayMs`, or at once from the
20
24
  * button.
21
25
  */
22
- export declare function BookingReserved({ url, delayMs, onNavigate, date, time, details, shouldTakeFocus, }: BookingReservedProps): import("react/jsx-runtime").JSX.Element;
23
- export {};
26
+ export declare function BookingReserved({ url: rawUrl, delayMs: rawDelayMs, onNavigate, date, time, details, shouldTakeFocus, }: BookingReservedProps): import("react/jsx-runtime").JSX.Element;
24
27
  //# sourceMappingURL=reserved.d.ts.map
@@ -1,4 +1,4 @@
1
- import { P as t, p as a } from "../../_chunks/practice-results-CQ_KvEXK.js";
1
+ import { P as t, p as a } from "../../_chunks/practice-results-Bls-mygM.js";
2
2
  export {
3
3
  t as PracticeResults,
4
4
  a as practiceResultsAgent
@@ -3,7 +3,7 @@ import { type VariantProps } from 'class-variance-authority';
3
3
  export type PracticeResultsVariant = 'split-list-map' | 'map-first' | 'rich-cards';
4
4
  /** Heading levels the results title accepts. */
5
5
  export type PracticeResultsHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
6
- export type PracticeResultsSort = 'distance' | 'rating' | 'next-available' | 'relevance';
6
+ export type PracticeResultsSort = 'distance' | 'rating' | 'next-available' | 'price' | 'relevance';
7
7
  /**
8
8
  * Where the result-selection event originated.
9
9
  *