@alfadocs/ui-kit 0.98.0 → 0.99.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 (39) hide show
  1. package/README.md +11 -4
  2. package/dist/_chunks/{address-fields-7k59FnJ6.js → address-fields-pHsfkXGk.js} +2 -2
  3. package/dist/_chunks/{booking-BSpSMmJ2.js → booking-DSOK-bnR.js} +3 -3
  4. package/dist/_chunks/{country-select-BN9nedAp.js → country-select-UEF9BEeQ.js} +2 -2
  5. package/dist/_chunks/flag-DVBE6DnB.js +576 -0
  6. package/dist/_chunks/flag-view-udarpAot.js +131 -0
  7. package/dist/_chunks/{header-settings-CLwFqMHI.js → header-settings--pjYOe6g.js} +2 -2
  8. package/dist/_chunks/{link-cell-renderer-flfZh2qY.js → link-cell-renderer-Bt-mXeQY.js} +2 -2
  9. package/dist/_chunks/{locale-picker-EyvPrwDc.js → locale-picker-BfBUdT1m.js} +310 -239
  10. package/dist/_chunks/{marketplace-app-shell-Bv1ZO4XO.js → marketplace-app-shell-pCHBp8bo.js} +2 -2
  11. package/dist/_chunks/{multi-select-D5QLBJM1.js → multi-select-CC52Qws6.js} +275 -263
  12. package/dist/_chunks/{patient-details-DrhlTrLf.js → patient-details-UmNcxL0c.js} +3 -3
  13. package/dist/_chunks/{patient-table-CvZTIM2R.js → patient-table-QEVsFvwq.js} +2 -2
  14. package/dist/_chunks/{phone-input-D00ZBAm-.js → phone-input-BsZIoE36.js} +2 -2
  15. package/dist/_chunks/{public-header.agent-rX_VA6hd.js → public-header.agent-_8W9biCO.js} +4 -2
  16. package/dist/agent-catalog.json +291 -1
  17. package/dist/agent-i18n/en.json +23 -0
  18. package/dist/components/address-fields/index.js +1 -1
  19. package/dist/components/booking/index.js +1 -1
  20. package/dist/components/country-select/index.js +1 -1
  21. package/dist/components/data-table/index.js +1 -1
  22. package/dist/components/flag/flag-core.d.ts +12 -0
  23. package/dist/components/flag/flag-view.d.ts +38 -0
  24. package/dist/components/flag/flag.d.ts +3 -10
  25. package/dist/components/flag/index.js +1 -1
  26. package/dist/components/header-settings/index.js +1 -1
  27. package/dist/components/locale-picker/index.js +1 -1
  28. package/dist/components/multi-select/index.js +1 -1
  29. package/dist/components/patient-details/index.js +1 -1
  30. package/dist/components/patient-table/index.js +1 -1
  31. package/dist/components/phone-input/index.js +1 -1
  32. package/dist/components/public-header/index.js +1 -1
  33. package/dist/components/workflow/workflow-types.d.ts +4 -5
  34. package/dist/host-compat.css +7 -1
  35. package/dist/index.js +11 -11
  36. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  37. package/dist/tokens.css +1 -1
  38. package/package.json +1 -1
  39. package/dist/_chunks/flag-Cnmivlrl.js +0 -641
package/README.md CHANGED
@@ -15,21 +15,28 @@ Requires React 18+ and Node ≥ 22.6.
15
15
  ### Source maps (optional)
16
16
 
17
17
  The default `@alfadocs/ui-kit` tarball ships without `.map` files to keep
18
- installs small (~680 KB tarball). Browsers only request source maps on
19
- demand when devtools is open, so end-users don't pay this cost regardless.
18
+ installs small (4.6 MB tarball / 17.3 MB unpacked, against 9.5 MB / 36.8 MB
19
+ for the debug build). Browsers only request source maps on demand when
20
+ devtools is open, so end-users don't pay this cost regardless.
20
21
 
21
22
  If you need symbolicated stack traces (Sentry / Rollbar uploads, in-browser
22
23
  debugging of kit internals), install the `-debug` sibling instead. Both
23
24
  packages are runtime-identical and version-locked:
24
25
 
25
26
  ```jsonc
26
- // package.json — alias-install so imports still resolve as @alfadocs/ui-kit
27
- "@alfadocs/ui-kit": "npm:@alfadocs/ui-kit-debug@^0.1.8"
27
+ // package.json — alias-install so imports still resolve as @alfadocs/ui-kit.
28
+ // Pin the exact version you already have installed, not a range: maps from a
29
+ // different release point at lines that have moved.
30
+ "@alfadocs/ui-kit": "npm:@alfadocs/ui-kit-debug@0.98.1"
28
31
  ```
29
32
 
30
33
  Or as a separate dev-only dep if your error reporter accepts maps from a
31
34
  sibling package.
32
35
 
36
+ Never commit the alias — it rewrites the lockfile, so `npm ci` would pull the
37
+ debug build into production images. See Storybook → "30. Debugging — Source
38
+ Maps and the Debug Package" for the full guide.
39
+
33
40
  ## Troubleshooting
34
41
 
35
42
  ### `npm install` fails with `ETARGET No matching version found for @alfadocs/ui-kit@<x.y.z>` — even though the version exists on npmjs.org
@@ -2,7 +2,7 @@ import { jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as _, useRef as j, useEffect as k, useCallback as E, useMemo as x } from "react";
3
3
  import { c as L } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as N } from "react-i18next";
5
- import { C as O } from "./country-select-BN9nedAp.js";
5
+ import { C as O } from "./country-select-UEF9BEeQ.js";
6
6
  import { P as B } from "./province-select-BDywtmL-.js";
7
7
  import { P as q } from "./postal-code-input-BznBxVxf.js";
8
8
  import { C as H } from "./city-input-towzBenY.js";
@@ -243,4 +243,4 @@ export {
243
243
  Z as A,
244
244
  Y as a
245
245
  };
246
- //# sourceMappingURL=address-fields-7k59FnJ6.js.map
246
+ //# sourceMappingURL=address-fields-pHsfkXGk.js.map
@@ -10,14 +10,14 @@ import { C as Bt } from "./checkbox-group-CfqMv57d.js";
10
10
  import { D as Et } from "./date-picker-BP_W6VtE.js";
11
11
  import { E as Rt } from "./email-input-Dpe63k0K.js";
12
12
  import { F as Z } from "./form-field-M5UpX65Z.js";
13
- import { P as Vt } from "./phone-input-D00ZBAm-.js";
13
+ import { P as Vt } from "./phone-input-BsZIoE36.js";
14
14
  import { T as Lt } from "./text-area-Bt3p7Pt0.js";
15
15
  import { T as Ce } from "./text-input-CUvCb6ST.js";
16
16
  import { S as Ft } from "./spinner-hbwuKwMf.js";
17
17
  import { I as tt } from "./icon-button-C_kbcd7I.js";
18
18
  import { S as Oe } from "./select-BW5ecXlX.js";
19
19
  import { C as Ge } from "./combobox-DiMLItyu.js";
20
- import { M as Ue } from "./multi-select-D5QLBJM1.js";
20
+ import { M as Ue } from "./multi-select-CC52Qws6.js";
21
21
  import { S as _e } from "./skeleton-CZbwyJAA.js";
22
22
  import { E as dt } from "./empty-state-CrLsi0XI.js";
23
23
  import { S as $t } from "./stepper-accordion-BeVMZPuG.js";
@@ -2692,4 +2692,4 @@ export {
2692
2692
  X as O,
2693
2693
  Cs as b
2694
2694
  };
2695
- //# sourceMappingURL=booking-BSpSMmJ2.js.map
2695
+ //# sourceMappingURL=booking-DSOK-bnR.js.map
@@ -2,7 +2,7 @@ import { jsx as O } from "react/jsx-runtime";
2
2
  import { forwardRef as P, useMemo as n, useCallback as x, useRef as aa, useEffect as ea } from "react";
3
3
  import { useTranslation as ra } from "react-i18next";
4
4
  import { C as ia } from "./combobox-DiMLItyu.js";
5
- import { h as ca, a as sa } from "./flag-Cnmivlrl.js";
5
+ import { h as ca, a as sa } from "./flag-DVBE6DnB.js";
6
6
  import { u as ta } from "./use-controllable-state-BiY4xTzM.js";
7
7
  import { u as oa } from "./registry-DvAUVLHh.js";
8
8
  const N = {
@@ -706,4 +706,4 @@ export {
706
706
  ua as c,
707
707
  Aa as r
708
708
  };
709
- //# sourceMappingURL=country-select-BN9nedAp.js.map
709
+ //# sourceMappingURL=country-select-UEF9BEeQ.js.map