@alfadocs/ui-kit 0.98.1 → 1.0.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 (35) hide show
  1. package/README.md +13 -5
  2. package/dist/_chunks/{address-fields-7k59FnJ6.js → address-fields-pHsfkXGk.js} +2 -2
  3. package/dist/_chunks/{booking-Bhbvef95.js → booking-DSOK-bnR.js} +2 -2
  4. package/dist/_chunks/{clinical-note-card-C7F_24IC.js → clinical-note-card-D63x_AkK.js} +5 -2
  5. package/dist/_chunks/{country-select-BN9nedAp.js → country-select-UEF9BEeQ.js} +2 -2
  6. package/dist/_chunks/flag-DVBE6DnB.js +576 -0
  7. package/dist/_chunks/flag-view-udarpAot.js +131 -0
  8. package/dist/_chunks/{header-settings-CLwFqMHI.js → header-settings--pjYOe6g.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/{notes-panel-BKwd-bOV.js → notes-panel-CTcOLLVo.js} +3 -3
  12. package/dist/_chunks/{patient-details-DrhlTrLf.js → patient-details-UmNcxL0c.js} +3 -3
  13. package/dist/_chunks/{phone-input-D00ZBAm-.js → phone-input-BsZIoE36.js} +2 -2
  14. package/dist/_chunks/{rich-text-editor-DHpV2q6d.js → rich-text-editor-CfeXPPWs.js} +10 -2
  15. package/dist/agent-catalog.json +1 -1
  16. package/dist/components/address-fields/index.js +1 -1
  17. package/dist/components/booking/index.js +1 -1
  18. package/dist/components/clinical-note-card/index.js +1 -1
  19. package/dist/components/country-select/index.js +1 -1
  20. package/dist/components/flag/flag-core.d.ts +12 -0
  21. package/dist/components/flag/flag-view.d.ts +38 -0
  22. package/dist/components/flag/flag.d.ts +3 -10
  23. package/dist/components/flag/index.js +1 -1
  24. package/dist/components/header-settings/index.js +1 -1
  25. package/dist/components/locale-picker/index.js +1 -1
  26. package/dist/components/notes-panel/index.js +1 -1
  27. package/dist/components/patient-details/index.js +1 -1
  28. package/dist/components/phone-input/index.js +1 -1
  29. package/dist/components/rich-text-editor/index.js +1 -1
  30. package/dist/components/workflow/workflow-types.d.ts +4 -5
  31. package/dist/index.js +10 -10
  32. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  33. package/dist/tokens.css +1 -1
  34. package/package.json +4 -2
  35. package/dist/_chunks/flag-Cnmivlrl.js +0 -641
package/README.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  The AlfaDocs design system — React components, tokens, and translations.
4
4
 
5
- > **Pre-release.** APIs may change between minor versions before 1.0.
5
+ > Released. Breaking changes land in majors and are called out in
6
+ > [CHANGELOG.md](./CHANGELOG.md).
6
7
 
7
8
  ## Install
8
9
 
@@ -15,21 +16,28 @@ Requires React 18+ and Node ≥ 22.6.
15
16
  ### Source maps (optional)
16
17
 
17
18
  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.
19
+ installs small (4.6 MB tarball / 17.3 MB unpacked, against 9.5 MB / 36.8 MB
20
+ for the debug build). Browsers only request source maps on demand when
21
+ devtools is open, so end-users don't pay this cost regardless.
20
22
 
21
23
  If you need symbolicated stack traces (Sentry / Rollbar uploads, in-browser
22
24
  debugging of kit internals), install the `-debug` sibling instead. Both
23
25
  packages are runtime-identical and version-locked:
24
26
 
25
27
  ```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"
28
+ // package.json — alias-install so imports still resolve as @alfadocs/ui-kit.
29
+ // Pin the exact version you already have installed, not a range: maps from a
30
+ // different release point at lines that have moved.
31
+ "@alfadocs/ui-kit": "npm:@alfadocs/ui-kit-debug@0.98.1"
28
32
  ```
29
33
 
30
34
  Or as a separate dev-only dep if your error reporter accepts maps from a
31
35
  sibling package.
32
36
 
37
+ Never commit the alias — it rewrites the lockfile, so `npm ci` would pull the
38
+ debug build into production images. See Storybook → "30. Debugging — Source
39
+ Maps and the Debug Package" for the full guide.
40
+
33
41
  ## Troubleshooting
34
42
 
35
43
  ### `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,7 +10,7 @@ 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";
@@ -2692,4 +2692,4 @@ export {
2692
2692
  X as O,
2693
2693
  Cs as b
2694
2694
  };
2695
- //# sourceMappingURL=booking-Bhbvef95.js.map
2695
+ //# sourceMappingURL=booking-DSOK-bnR.js.map
@@ -100,7 +100,10 @@ const te = [
100
100
  "[&_a]:ds:underline [&_a]:ds:underline-offset-2",
101
101
  "[&_code]:ds:rounded-[var(--radius-sm)] [&_code]:ds:bg-muted/30 [&_code]:ds:ps-[var(--spacing-xs)] [&_code]:ds:pe-[var(--spacing-xs)] [&_code]:ds:font-[family-name:var(--font-mono)]",
102
102
  "[&_p]:ds:m-0 [&_p+p]:ds:mt-[var(--spacing-sm)]",
103
- "[&_ul]:ds:m-0 [&_ul]:ds:ps-[var(--spacing-md)] [&_ol]:ds:m-0 [&_ol]:ds:ps-[var(--spacing-md)]",
103
+ // `list-disc` / `list-decimal` are load-bearing: the card renders host
104
+ // HTML inside `[data-component]`, where preflight's `list-style: none`
105
+ // still applies. Without them the indent lands but the markers do not.
106
+ "ds:[&_ul]:m-0 ds:[&_ul]:ps-[var(--spacing-md)] ds:[&_ul]:list-disc ds:[&_ol]:m-0 ds:[&_ol]:ps-[var(--spacing-md)] ds:[&_ol]:list-decimal",
104
107
  // Rich-text (Redactor) extras — harmless on markdown notes, which carry
105
108
  // none of these tags. Headings, inline images and tables stay readable.
106
109
  "[&_h2]:type-title-item [&_h3]:type-title-item [&_h2]:ds:m-0 [&_h3]:ds:m-0",
@@ -433,4 +436,4 @@ export {
433
436
  pe as C,
434
437
  ne as c
435
438
  };
436
- //# sourceMappingURL=clinical-note-card-C7F_24IC.js.map
439
+ //# sourceMappingURL=clinical-note-card-D63x_AkK.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