@alfadocs/ui-kit-debug 0.94.0 → 0.95.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 (34) hide show
  1. package/dist/_chunks/{apexcharts-theme-fAQXLIMW.js → apexcharts-theme-B_AxGC_h.js} +25 -20
  2. package/dist/_chunks/apexcharts-theme-B_AxGC_h.js.map +1 -0
  3. package/dist/_chunks/chart-DR68TJD5.js +705 -0
  4. package/dist/_chunks/chart-DR68TJD5.js.map +1 -0
  5. package/dist/_chunks/{date-range-picker-Cfv4Sr63.js → date-range-picker-pEG3Ln3i.js} +314 -297
  6. package/dist/_chunks/date-range-picker-pEG3Ln3i.js.map +1 -0
  7. package/dist/_chunks/{link-cell-renderer-_LDZhY4r.js → link-cell-renderer-flfZh2qY.js} +2 -2
  8. package/dist/_chunks/{link-cell-renderer-_LDZhY4r.js.map → link-cell-renderer-flfZh2qY.js.map} +1 -1
  9. package/dist/_chunks/{patient-table-CFM92QqU.js → patient-table-CvZTIM2R.js} +2 -2
  10. package/dist/_chunks/{patient-table-CFM92QqU.js.map → patient-table-CvZTIM2R.js.map} +1 -1
  11. package/dist/_chunks/{radiograph-panel.agent-DDnDGVpN.js → radiograph-panel.agent-AsXJBr1p.js} +2 -2
  12. package/dist/_chunks/{radiograph-panel.agent-DDnDGVpN.js.map → radiograph-panel.agent-AsXJBr1p.js.map} +1 -1
  13. package/dist/_chunks/{sparkline-o6JH4O66.js → sparkline-DcXqRZoq.js} +2 -2
  14. package/dist/_chunks/{sparkline-o6JH4O66.js.map → sparkline-DcXqRZoq.js.map} +1 -1
  15. package/dist/agent-catalog.json +1 -1
  16. package/dist/components/chart/chart.d.ts +12 -5
  17. package/dist/components/chart/chart.d.ts.map +1 -1
  18. package/dist/components/chart/index.js +1 -1
  19. package/dist/components/data-table/index.js +1 -1
  20. package/dist/components/date-range-picker/date-range-picker.d.ts +10 -1
  21. package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
  22. package/dist/components/date-range-picker/index.js +1 -1
  23. package/dist/components/patient-table/index.js +1 -1
  24. package/dist/components/radiograph-panel/index.js +1 -1
  25. package/dist/components/sparkline/index.js +1 -1
  26. package/dist/index.js +6 -6
  27. package/dist/tokens/apexcharts-theme.d.ts +19 -33
  28. package/dist/tokens/apexcharts-theme.d.ts.map +1 -1
  29. package/dist/tokens.css +1 -1
  30. package/package.json +1 -1
  31. package/dist/_chunks/apexcharts-theme-fAQXLIMW.js.map +0 -1
  32. package/dist/_chunks/chart-DqxVCm1I.js +0 -664
  33. package/dist/_chunks/chart-DqxVCm1I.js.map +0 -1
  34. package/dist/_chunks/date-range-picker-Cfv4Sr63.js.map +0 -1
@@ -1,38 +1,24 @@
1
1
  import type ApexCharts from 'apexcharts';
2
+ /** The theme-bridge output. */
3
+ export type ApexChartsTheme = ApexCharts.ApexOptions;
2
4
  /**
3
- * Resolved colours for a `ChartSeries` `role: 'compare'` overlay (see
4
- * `src/components/chart/chart.tsx`). ApexCharts cannot read `var(--…)` or a
5
- * `color-mix()` string, so both are resolved to a usable colour value here
6
- * the same native way the ramp resolves `--primary` and re-read on the
7
- * chart's existing theme MutationObserver, so they retint per theme with no
8
- * new observer and no hex literal in component code.
5
+ * Compare fill opacity from the `--chart-compare-fill-opacity` token. Drives
6
+ * the per-series `fill.opacity` of a compare bar / area overlay (see
7
+ * `ChartSeries.role` in `src/components/chart/chart.tsx`). Theme-invariant
8
+ * the token value itself does not shift between themes; the resulting COLOUR
9
+ * retints because it is mixed from the theme-shifting primary and background
10
+ * (see `resolveCompareTint`). Falls back to 0.18 outside a browser.
9
11
  */
10
- export interface ApexCompareColors {
11
- /**
12
- * Load-bearing solid neutral grey the compare line stroke, the compare bar
13
- * fill base, the area gradient source, and the greyed legend swatch. Sourced
14
- * from `--muted-foreground` (a plain `var(--color-blue-*)` chain), which
15
- * `getPropertyValue` already returns as a usable colour. Solid so it clears
16
- * WCAG 1.4.11 3:1 as a graphical object which the 55% `--calendar-compare-edge`
17
- * mix does not.
18
- */
19
- mark: string;
20
- /**
21
- * Decorative faint grey wash for the compare area gradient tint only.
22
- * Sourced from `--calendar-compare-fill`, which is a `color-mix()` string
23
- * that `getPropertyValue` returns UNRESOLVED, so it is resolved via a
24
- * detached probe (see `resolveColour`).
25
- */
26
- wash: string;
27
- }
28
- /** The theme-bridge output, plus resolved compare-overlay colours. */
29
- export interface ApexChartsTheme extends ApexCharts.ApexOptions {
30
- /**
31
- * Resolved compare-overlay colours. Read ONLY inside the chart's
32
- * `hasCompare` branches and never spread into the ApexCharts options object,
33
- * so a chart with no compare series emits byte-identical options.
34
- */
35
- compare?: ApexCompareColors;
36
- }
12
+ export declare function getCompareFillOpacity(): number;
13
+ /**
14
+ * Resolve a compare TINT: the paired primary mixed OVER the surface at the
15
+ * compare opacity, so it is an opaque lighter shade of the same hue used for
16
+ * the legend swatch (and anywhere the tint is needed as a solid colour).
17
+ * `primary` is an already-resolved colour (the k-th primary's colour). Uses the
18
+ * same detached probe the bridge uses for `color-mix`, so it retints per theme
19
+ * with no new observer and no hex literal in component code. Returns `primary`
20
+ * untouched outside a browser.
21
+ */
22
+ export declare function resolveCompareTint(primary: string): string;
37
23
  export declare function getApexChartsTheme(): ApexChartsTheme;
38
24
  //# sourceMappingURL=apexcharts-theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apexcharts-theme.d.ts","sourceRoot":"","sources":["../../src/tokens/apexcharts-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,sEAAsE;AACtE,MAAM,WAAW,eAAgB,SAAQ,UAAU,CAAC,WAAW;IAC7D;;;;OAIG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAuBD,wBAAgB,kBAAkB,IAAI,eAAe,CA0BpD"}
1
+ {"version":3,"file":"apexcharts-theme.d.ts","sourceRoot":"","sources":["../../src/tokens/apexcharts-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AAEzC,+BAA+B;AAC/B,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,WAAW,CAAC;AAuBrD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAO9C;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAQ1D;AAED,wBAAgB,kBAAkB,IAAI,eAAe,CAmBpD"}