@portnet/ui 6.0.1 → 6.0.2

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 (158) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/esm/index.js +18 -0
  3. package/dist/esm/index.js.map +1 -1
  4. package/dist/esm/v2/__tests__/FieldError.test.js +0 -1
  5. package/dist/esm/v2/__tests__/FieldError.test.js.map +1 -1
  6. package/dist/esm/v2/__tests__/FieldWidth.test.js +146 -0
  7. package/dist/esm/v2/__tests__/FieldWidth.test.js.map +1 -0
  8. package/dist/esm/v2/__tests__/FileCard.test.js +0 -1
  9. package/dist/esm/v2/__tests__/FileCard.test.js.map +1 -1
  10. package/dist/esm/v2/__tests__/FormikCheckbox.test.js +265 -0
  11. package/dist/esm/v2/__tests__/FormikCheckbox.test.js.map +1 -0
  12. package/dist/esm/v2/__tests__/FormikDateTimePicker.test.js +248 -0
  13. package/dist/esm/v2/__tests__/FormikDateTimePicker.test.js.map +1 -0
  14. package/dist/esm/v2/__tests__/FormikRadioGroup.test.js +380 -0
  15. package/dist/esm/v2/__tests__/FormikRadioGroup.test.js.map +1 -0
  16. package/dist/esm/v2/__tests__/MobileRowCard.test.js +0 -1
  17. package/dist/esm/v2/__tests__/MobileRowCard.test.js.map +1 -1
  18. package/dist/esm/v2/__tests__/SectionErrorBoundary.test.js.map +1 -1
  19. package/dist/esm/v2/__tests__/labels-merge.test.js +0 -1
  20. package/dist/esm/v2/__tests__/labels-merge.test.js.map +1 -1
  21. package/dist/esm/v2/components/DateTimePicker.js +37 -4
  22. package/dist/esm/v2/components/DateTimePicker.js.map +1 -1
  23. package/dist/esm/v2/components/Field.js +63 -1
  24. package/dist/esm/v2/components/Field.js.map +1 -1
  25. package/dist/esm/v2/components/index.js +27 -0
  26. package/dist/esm/v2/components/index.js.map +1 -1
  27. package/dist/esm/v2/index.js +12 -1
  28. package/dist/esm/v2/index.js.map +1 -1
  29. package/dist/esm/v2/patterns/FavoriteColumn.js +14 -61
  30. package/dist/esm/v2/patterns/FavoriteColumn.js.map +1 -1
  31. package/dist/esm/v2/patterns/FormikCheckbox.js +140 -0
  32. package/dist/esm/v2/patterns/FormikCheckbox.js.map +1 -0
  33. package/dist/esm/v2/patterns/FormikCombobox.js +5 -2
  34. package/dist/esm/v2/patterns/FormikCombobox.js.map +1 -1
  35. package/dist/esm/v2/patterns/FormikDatePicker.js +13 -47
  36. package/dist/esm/v2/patterns/FormikDatePicker.js.map +1 -1
  37. package/dist/esm/v2/patterns/FormikDateTimePicker.js +150 -0
  38. package/dist/esm/v2/patterns/FormikDateTimePicker.js.map +1 -0
  39. package/dist/esm/v2/patterns/FormikInput.js +5 -2
  40. package/dist/esm/v2/patterns/FormikInput.js.map +1 -1
  41. package/dist/esm/v2/patterns/FormikRadioGroup.js +141 -0
  42. package/dist/esm/v2/patterns/FormikRadioGroup.js.map +1 -0
  43. package/dist/esm/v2/patterns/FormikSelect.js +5 -2
  44. package/dist/esm/v2/patterns/FormikSelect.js.map +1 -1
  45. package/dist/esm/v2/patterns/FormikTextarea.js +5 -2
  46. package/dist/esm/v2/patterns/FormikTextarea.js.map +1 -1
  47. package/dist/esm/v2/patterns/KeyboardShortcutsHelp.js +25 -8
  48. package/dist/esm/v2/patterns/KeyboardShortcutsHelp.js.map +1 -1
  49. package/dist/esm/v2/patterns/RowFavoriteToggle.js +122 -0
  50. package/dist/esm/v2/patterns/RowFavoriteToggle.js.map +1 -0
  51. package/dist/esm/v2/patterns/_pickerSerialisation.js +74 -0
  52. package/dist/esm/v2/patterns/_pickerSerialisation.js.map +1 -0
  53. package/dist/esm/v2/patterns/index.js +83 -0
  54. package/dist/esm/v2/patterns/index.js.map +1 -1
  55. package/dist/esm/v2/personalization/capabilities/gridPreferences.js +209 -0
  56. package/dist/esm/v2/personalization/capabilities/gridPreferences.js.map +1 -0
  57. package/dist/esm/v2/personalization/capabilities/index.js +5 -0
  58. package/dist/esm/v2/personalization/capabilities/index.js.map +1 -1
  59. package/dist/esm/v2/personalization/index.js +18 -0
  60. package/dist/esm/v2/personalization/index.js.map +1 -1
  61. package/dist/index.d.ts +2 -0
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +14 -0
  64. package/dist/index.js.map +1 -1
  65. package/dist/v2/__tests__/FieldError.test.js +26 -30
  66. package/dist/v2/__tests__/FieldError.test.js.map +1 -1
  67. package/dist/v2/__tests__/FieldWidth.test.js +150 -0
  68. package/dist/v2/__tests__/FieldWidth.test.js.map +1 -0
  69. package/dist/v2/__tests__/FileCard.test.js +25 -29
  70. package/dist/v2/__tests__/FileCard.test.js.map +1 -1
  71. package/dist/v2/__tests__/FormikCheckbox.test.js +268 -0
  72. package/dist/v2/__tests__/FormikCheckbox.test.js.map +1 -0
  73. package/dist/v2/__tests__/FormikDateTimePicker.test.js +247 -0
  74. package/dist/v2/__tests__/FormikDateTimePicker.test.js.map +1 -0
  75. package/dist/v2/__tests__/FormikRadioGroup.test.js +381 -0
  76. package/dist/v2/__tests__/FormikRadioGroup.test.js.map +1 -0
  77. package/dist/v2/__tests__/MobileRowCard.test.js +52 -56
  78. package/dist/v2/__tests__/MobileRowCard.test.js.map +1 -1
  79. package/dist/v2/__tests__/SectionErrorBoundary.test.js.map +1 -1
  80. package/dist/v2/__tests__/labels-merge.test.js +20 -24
  81. package/dist/v2/__tests__/labels-merge.test.js.map +1 -1
  82. package/dist/v2/components/DateTimePicker.d.ts.map +1 -1
  83. package/dist/v2/components/DateTimePicker.js +37 -4
  84. package/dist/v2/components/DateTimePicker.js.map +1 -1
  85. package/dist/v2/components/Field.d.ts +59 -1
  86. package/dist/v2/components/Field.d.ts.map +1 -1
  87. package/dist/v2/components/Field.js +62 -2
  88. package/dist/v2/components/Field.js.map +1 -1
  89. package/dist/v2/components/index.d.ts +27 -0
  90. package/dist/v2/components/index.d.ts.map +1 -1
  91. package/dist/v2/components/index.js.map +1 -1
  92. package/dist/v2/index.d.ts.map +1 -1
  93. package/dist/v2/index.js.map +1 -1
  94. package/dist/v2/patterns/FavoriteColumn.d.ts +9 -9
  95. package/dist/v2/patterns/FavoriteColumn.d.ts.map +1 -1
  96. package/dist/v2/patterns/FavoriteColumn.js +14 -61
  97. package/dist/v2/patterns/FavoriteColumn.js.map +1 -1
  98. package/dist/v2/patterns/FormikCheckbox.d.ts +77 -0
  99. package/dist/v2/patterns/FormikCheckbox.d.ts.map +1 -0
  100. package/dist/v2/patterns/FormikCheckbox.js +147 -0
  101. package/dist/v2/patterns/FormikCheckbox.js.map +1 -0
  102. package/dist/v2/patterns/FormikCombobox.d.ts +7 -1
  103. package/dist/v2/patterns/FormikCombobox.d.ts.map +1 -1
  104. package/dist/v2/patterns/FormikCombobox.js +5 -2
  105. package/dist/v2/patterns/FormikCombobox.js.map +1 -1
  106. package/dist/v2/patterns/FormikDatePicker.d.ts +13 -1
  107. package/dist/v2/patterns/FormikDatePicker.d.ts.map +1 -1
  108. package/dist/v2/patterns/FormikDatePicker.js +33 -66
  109. package/dist/v2/patterns/FormikDatePicker.js.map +1 -1
  110. package/dist/v2/patterns/FormikDateTimePicker.d.ts +111 -0
  111. package/dist/v2/patterns/FormikDateTimePicker.d.ts.map +1 -0
  112. package/dist/v2/patterns/FormikDateTimePicker.js +158 -0
  113. package/dist/v2/patterns/FormikDateTimePicker.js.map +1 -0
  114. package/dist/v2/patterns/FormikInput.d.ts +11 -1
  115. package/dist/v2/patterns/FormikInput.d.ts.map +1 -1
  116. package/dist/v2/patterns/FormikInput.js +5 -2
  117. package/dist/v2/patterns/FormikInput.js.map +1 -1
  118. package/dist/v2/patterns/FormikRadioGroup.d.ts +80 -0
  119. package/dist/v2/patterns/FormikRadioGroup.d.ts.map +1 -0
  120. package/dist/v2/patterns/FormikRadioGroup.js +148 -0
  121. package/dist/v2/patterns/FormikRadioGroup.js.map +1 -0
  122. package/dist/v2/patterns/FormikSelect.d.ts +9 -1
  123. package/dist/v2/patterns/FormikSelect.d.ts.map +1 -1
  124. package/dist/v2/patterns/FormikSelect.js +5 -2
  125. package/dist/v2/patterns/FormikSelect.js.map +1 -1
  126. package/dist/v2/patterns/FormikTextarea.d.ts +9 -1
  127. package/dist/v2/patterns/FormikTextarea.d.ts.map +1 -1
  128. package/dist/v2/patterns/FormikTextarea.js +5 -2
  129. package/dist/v2/patterns/FormikTextarea.js.map +1 -1
  130. package/dist/v2/patterns/KeyboardShortcutsHelp.d.ts +14 -1
  131. package/dist/v2/patterns/KeyboardShortcutsHelp.d.ts.map +1 -1
  132. package/dist/v2/patterns/KeyboardShortcutsHelp.js +25 -8
  133. package/dist/v2/patterns/KeyboardShortcutsHelp.js.map +1 -1
  134. package/dist/v2/patterns/RowFavoriteToggle.d.ts +92 -0
  135. package/dist/v2/patterns/RowFavoriteToggle.d.ts.map +1 -0
  136. package/dist/v2/patterns/RowFavoriteToggle.js +127 -0
  137. package/dist/v2/patterns/RowFavoriteToggle.js.map +1 -0
  138. package/dist/v2/patterns/_pickerSerialisation.d.ts +44 -0
  139. package/dist/v2/patterns/_pickerSerialisation.d.ts.map +1 -0
  140. package/dist/v2/patterns/_pickerSerialisation.js +81 -0
  141. package/dist/v2/patterns/_pickerSerialisation.js.map +1 -0
  142. package/dist/v2/patterns/index.d.ts +87 -0
  143. package/dist/v2/patterns/index.d.ts.map +1 -1
  144. package/dist/v2/patterns/index.js +34 -0
  145. package/dist/v2/patterns/index.js.map +1 -1
  146. package/dist/v2/personalization/capabilities/gridPreferences.d.ts +100 -0
  147. package/dist/v2/personalization/capabilities/gridPreferences.d.ts.map +1 -0
  148. package/dist/v2/personalization/capabilities/gridPreferences.js +215 -0
  149. package/dist/v2/personalization/capabilities/gridPreferences.js.map +1 -0
  150. package/dist/v2/personalization/capabilities/index.d.ts +6 -0
  151. package/dist/v2/personalization/capabilities/index.d.ts.map +1 -1
  152. package/dist/v2/personalization/capabilities/index.js +13 -0
  153. package/dist/v2/personalization/capabilities/index.js.map +1 -1
  154. package/dist/v2/personalization/index.d.ts +18 -0
  155. package/dist/v2/personalization/index.d.ts.map +1 -1
  156. package/dist/v2/personalization/index.js +13 -0
  157. package/dist/v2/personalization/index.js.map +1 -1
  158. package/package.json +1 -1
@@ -1,6 +1,33 @@
1
1
  export { default as Spinner } from "./Spinner";
2
2
  export { default as Button } from "./Button";
3
3
  export { default as Field } from "./Field";
4
+ /**
5
+ * Field contracts — public typed surface (gap G-H).
6
+ *
7
+ * Meme defaut que les blocs `StepStatus`, `FieldHelp` et `Status` plus bas :
8
+ * `Field` etait exporte comme VALEUR, sans aucun de ses types. `FieldWidth` est
9
+ * le plus necessaire des deux : la section « Form Field Width & Layout
10
+ * Standards » des Platform Mandatory UX Patterns impose de rattacher CHAQUE
11
+ * champ d'un formulaire a l'un des cinq gabarits, et un module qui fait ce
12
+ * mappage a l'echelle d'un ecran ecrit naturellement un dictionnaire :
13
+ *
14
+ * const LARGEURS: Record<string, FieldWidth> = { ifu: "s", adresse: "l", ... }
15
+ *
16
+ * Sans le type, il doit reecrire l'union au point d'appel — ce que les Platform
17
+ * TypeScript Guidelines interdisent (« Reusable types belong inside Shared UI
18
+ * Library … Never duplicate »). C'est le cas signale depuis `refonte-frontend`
19
+ * (lot 8), ou ~60 champs sont a mapper.
20
+ *
21
+ * `FIELD_MAX_WIDTH` n'est PAS surfacee, deliberement : les cinq largeurs sont
22
+ * une decision de design, et les exposer inviterait les hotes a poser les
23
+ * plafonds eux-memes plutot que par `width` — donc a recreer les « arbitrary
24
+ * input field widths » que le standard interdit. Elle reste atteignable par
25
+ * chemin interne pour le test qui les epingle.
26
+ *
27
+ * FLAT-ONLY, per the policy note in src/lib/index.ts.
28
+ * Additive and type-only: no runtime change, no existing export altered.
29
+ */
30
+ export type { FieldProps, FieldWidth } from "./Field";
4
31
  /**
5
32
  * FieldError — the message renderer `Field` uses, exported standalone
6
33
  * (capability gap G-18).
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/v2/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,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AO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,YAAY,EAAE,kBAAkB,EAAE,MAAS,iBAAiB,CAAC;AAC7D,YAAY,EAAE,iBAAiB,EAAE,MAAU,gBAAgB,CAAC;AAC5D,YAAY,EAAE,oBAAoB,EAAE,MAAO,mBAAmB,CAAC;AAC/D,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_Spinner","_interopRequireDefault","require","_Button","_Field","_FieldError","_Input","_Select","_Textarea","_Checkbox","_interopRequireWildcard","_Radio","_Switch","_Combobox","_TelInput","_NumberInput","_DatePicker","_DateTimePicker","_TimePicker","_DateRangePicker","_Status","_Chip","_Skeleton","_Modal","_Drawer","_ConfirmDialog","_Tabs","_Stepper","_FilterTab","_EmptyState","_Banner","_SectionErrorBoundary","_Toast","_KV","_KPICard","_KPIStrip","_MobileRowCard","_OverflowMenu","_FieldHelp","_SkipLink","_ProgressBar","_Segmented","_Dropzone","_CommandPalette","_Busy","_FormGrid","_KVGrid","_Surface","_FileCard","_Layout","_SectionHeader","_Accordion","_Tooltip","_ActionStrip","_CategoryTag","_FavoriteToggle","_PdfViewer","_ForbiddenPage","_NotFoundPage","_ServerErrorPage","_NetworkErrorPage","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sources":["../../../src/lib/v2/components/index.ts"],"sourcesContent":["export { default as Spinner } from \"./Spinner\";\r\nexport { default as Button } from \"./Button\";\r\nexport { default as Field } from \"./Field\";\r\n/**\r\n * FieldError — the message renderer `Field` uses, exported standalone\r\n * (capability gap G-18).\r\n *\r\n * Charter R-4.1 MUST requires a field error to carry an ICON; `Field` rendered a\r\n * bare red helper text without one, so the canonical field wrapper missed a MUST\r\n * on every form of every module. And a LIST-level error (a Formik array, an\r\n * upload slot) has no single control to wrap in a `Field` at all — addpe-fe's\r\n * local `InlineFieldAlert` reimplemented the recipe and was, ironically, more\r\n * charter-compliant than the shared component it could not reuse.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as FieldError } from \"./FieldError\";\r\nexport type { FieldErrorProps } from \"./FieldError\";\r\nexport { default as Input } from \"./Input\";\r\nexport { default as Select } from \"./Select\";\r\nexport type { SelectOption, SelectOptionObject, SelectOptionValue, SelectValue, SelectChangeLike, SelectLabels } from \"./Select\";\r\nexport { default as Textarea } from \"./Textarea\";\r\nexport { default as Checkbox, CheckboxGroup } from \"./Checkbox\";\r\nexport { default as Radio, RadioGroup } from \"./Radio\";\r\nexport { default as Switch } from \"./Switch\";\r\nexport { default as Combobox } from \"./Combobox\";\r\nexport type { ComboboxOption, ComboboxOptionValue, ComboboxValue, ComboboxLabels, ComboboxProps } from \"./Combobox\";\r\nexport { default as TelInput } from \"./TelInput\";\r\nexport {\r\n default as NumberInput,\r\n FR_DECIMAL_SEPARATOR,\r\n FR_THOUSAND_SEPARATOR,\r\n} from \"./NumberInput\";\r\nexport {\r\n default as DatePicker,\r\n DATE_FORMAT_CHARTER,\r\n} from \"./DatePicker\";\r\nexport {\r\n default as DateTimePicker,\r\n DATETIME_FORMAT_CHARTER,\r\n} from \"./DateTimePicker\";\r\nexport {\r\n default as TimePicker,\r\n TIME_FORMAT_CHARTER,\r\n} from \"./TimePicker\";\r\nexport { default as DateRangePicker } from \"./DateRangePicker\";\r\nexport { default as Status } from \"./Status\";\r\n/**\r\n * Status contracts — public typed surface (capability gap G-31).\r\n *\r\n * Same defect as the `StepStatus` and `FieldHelp` blocks below: `Status` was\r\n * exported as a VALUE while the types describing it were not re-exported here,\r\n * so a host mapping its own business codes onto the six canonical workflow\r\n * tones had to hand-write the union at the call site — which the Platform\r\n * TypeScript Guidelines forbid (\"Reusable types belong inside Shared UI\r\n * Library … Never duplicate\"). caution-ui carried exactly that local twin\r\n * (`CautionStatusKind`, six members, structurally identical) plus five\r\n * `as ComponentProps<typeof Status>` assertions at the render sites — casts\r\n * that were never needed for anything except reaching an unreachable type.\r\n *\r\n * `StatusProps` travels with it: a consumer building the chip props as an\r\n * object (mobile card, KV value slot, DataGrid cell renderer) needs the prop\r\n * contract, and re-declaring it is the same duplication one level down.\r\n *\r\n * KNOWN DEBT: `StatusKind` is currently derived as\r\n * `keyof typeof STATUS_LABELS_FR`, and STATUS_LABELS_FR is itself marked\r\n * `@deprecated … Will be removed in v0.3` (we are at 0.8.0). Deleting that\r\n * const would delete the public type with it. Re-anchoring `StatusKind` to a\r\n * literal tuple form of STATUS_KEYS — which is typed `readonly string[]` and\r\n * so cannot currently derive a union — is tracked separately; surfacing the\r\n * type now does not deepen that debt, it only makes it visible to consumers.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts: not added to\r\n * ./v2/index.ts, which is a retiring surface. Reachable as\r\n * `import type { StatusKind } from \"@portnet/ui\"` via the root star-export.\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { StatusKind, StatusProps } from \"./Status\";\r\nexport { default as Chip } from \"./Chip\";\r\nexport {\r\n default as Skeleton,\r\n SkeletonKPI,\r\n SkeletonRow,\r\n SkeletonDetailHero,\r\n SkeletonTabContent,\r\n SkeletonText,\r\n} from \"./Skeleton\";\r\nexport { default as Modal } from \"./Modal\";\r\nexport { default as Drawer } from \"./Drawer\";\r\nexport type { DrawerProps, DrawerLabels, DrawerAnchor } from \"./Drawer\";\r\nexport { default as ConfirmDialog } from \"./ConfirmDialog\";\r\nexport { default as Tabs } from \"./Tabs\";\r\nexport { default as HStepper, VStepper } from \"./Stepper\";\r\n/**\r\n * Stepper data contracts — public typed surface.\r\n *\r\n * `StepStatus` is the literal union `HStepper`/`VStepper` accept on each\r\n * step. It was exported from ./Stepper but never re-exported here, so a host\r\n * building a step array had to hand-write the union at the call site — which\r\n * the Platform TypeScript Guidelines forbid (\"Reusable types belong inside\r\n * Shared UI Library … Never duplicate\"). ms_licenceexportation's\r\n * ExportationDetailProgress carried exactly that duplicate, with a comment\r\n * recording why. `VStepperItem` is surfaced alongside it because the same\r\n * consumer constructs the item objects the union lives in.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts: not added to\r\n * ./v2/index.ts, which is a retiring surface. Reachable as\r\n * `import type { StepStatus } from \"@portnet/ui\"` via the root star-export.\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { StepStatus, StepState, VStepperItem } from \"./Stepper\";\r\nexport { default as FilterTab } from \"./FilterTab\";\r\nexport type { FilterTabVariant, FilterTabLabels } from \"./FilterTab\";\r\nexport { default as EmptyState } from \"./EmptyState\";\r\nexport { default as Banner } from \"./Banner\";\r\nexport type { BannerVariant, BannerAction } from \"./Banner\";\r\n/**\r\n * SectionErrorBoundary — fault tolerance by import, not by copy (gap G-30).\r\n *\r\n * ISO/IEC 25010 § Reliability requires a system to keep operating despite a\r\n * fault; React unmounts the WHOLE tree on a render exception, so one failing\r\n * section replaces the page with a blank screen. `ms-ti-fe` wrapped 13 sections\r\n * in a boundary of its own while `addpe-fe` and this library had none — a\r\n * platform guarantee living as one module's private safeguard.\r\n *\r\n * Declared after Banner because it renders one as its fallback.\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as SectionErrorBoundary } from \"./SectionErrorBoundary\";\r\nexport type { SectionErrorBoundaryProps } from \"./SectionErrorBoundary\";\r\nexport { default as ToastProvider, useToast } from \"./Toast\";\r\nexport type { ToastVariant, ToastProviderLabels, ToastUndoOptions, ToastProgressHandle, ToastApi } from \"./Toast\";\r\nexport { default as KV } from \"./KV\";\r\nexport { default as KPICard } from \"./KPICard\";\r\nexport type { KPICardProps, KPICardLabels } from \"./KPICard\";\r\n/**\r\n * KPIStrip — the metric-tile row (capability gap G-11).\r\n *\r\n * Charter §07 names this zone in the canonical page template (« ③ FILTERS / KPI\r\n * STRIP ») but the library shipped only the TILE. So every screen wrote the\r\n * grid, and the two in addpe-fe disagree on the desktop ladder — a KPI row that\r\n * reflows differently per screen for no reason a user could name.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as KPIStrip } from \"./KPIStrip\";\r\nexport type { KPIStripProps } from \"./KPIStrip\";\r\nexport { default as MobileRowCard } from \"./MobileRowCard\";\r\nexport type { MobileRowCardProps } from \"./MobileRowCard\";\r\nexport { default as OverflowMenu } from \"./OverflowMenu\";\r\nexport type { OverflowMenuAction, OverflowMenuProps, OverflowMenuLabels } from \"./OverflowMenu\";\r\nexport { default as FieldHelp } from \"./FieldHelp\";\r\n/**\r\n * FieldHelp contracts — public typed surface (capability gap G-16).\r\n *\r\n * Same defect as the `StepStatus` block above: `FieldHelp` was exported as a\r\n * VALUE while the types describing what it accepts were not re-exported here,\r\n * so a host maintaining a help-copy dictionary had to hand-declare the entry\r\n * shape — which the Platform TypeScript Guidelines forbid (\"Reusable types\r\n * belong inside Shared UI Library … Never duplicate\"). addpe-fe's `HELP_TEXTS`\r\n * carries exactly that local twin (`HelpTextEntry`), with a comment recording\r\n * that `FieldHelpProps` was unreachable.\r\n *\r\n * `FieldHelpVariant` / `FieldHelpIcon` travel with it: a dictionary that sets\r\n * `variant` per entry needs the union, and re-declaring `\"tooltip\" | \"popover\"`\r\n * at the call site is the same duplication one level down.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { FieldHelpProps, FieldHelpVariant, FieldHelpIcon } from \"./FieldHelp\";\r\nexport { default as SkipLink } from \"./SkipLink\";\r\nexport { default as ProgressBar } from \"./ProgressBar\";\r\nexport { default as Segmented } from \"./Segmented\";\r\nexport { default as Dropzone } from \"./Dropzone\";\r\nexport type {\r\n DropzoneProps,\r\n DropzoneFile,\r\n DropzoneFileStatus,\r\n DropzoneRejection,\r\n DropzoneRejectReason,\r\n DropzoneReasons,\r\n DropzoneLabels,\r\n} from \"./Dropzone\";\r\nexport { default as CommandPalette } from \"./CommandPalette\";\r\n\r\n// Loading-overlay primitives (Charter §04.4). See ./Busy.js.\r\n// Replaces the PAGE_OVERLAY_SX inline block that host modules\r\n// previously froze in 15+ feature pages.\r\nexport { default as SectionBusy, PageBusy } from \"./Busy\";\r\n\r\n// Layout primitives (Charter §03). Replace local FormGrid / KVGrid\r\n// wrappers that host modules previously inlined.\r\nexport { default as FormGrid } from \"./FormGrid\";\r\nexport { default as KVGrid } from \"./KVGrid\";\r\n\r\n/**\r\n * Surface — the bare card container (capability gap G-10).\r\n *\r\n * The card recipe (--surface + --border + -r-lg + --shadow-*) existed only\r\n * WELDED INSIDE FormSection, which also imposes a numbered heading and an inner\r\n * FormGrid. A consumer needing just the container — a DataGrid shell, a hero\r\n * card, a sticky side rail, a nested file row — could not reach it and rewrote\r\n * the recipe: three copies in addpe-fe plus a document card repeated across\r\n * three files, each having picked its own elevation and radius from memory.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as Surface } from \"./Surface\";\r\nexport type {\r\n SurfaceProps,\r\n SurfaceTone,\r\n SurfaceElevation,\r\n SurfaceRadius,\r\n SurfacePadding,\r\n} from \"./Surface\";\r\n\r\n/**\r\n * FileCard — an attached document, displayed (capability gap G-12).\r\n *\r\n * The library shipped `Dropzone`, the UPLOAD affordance, and nothing for the\r\n * state immediately after it. So every screen showing an attachment rebuilt the\r\n * same row: three copies in addpe-fe, with THREE different paddings for one\r\n * concept — accidental drift, exactly what R-2.1 forbids. Composes `Surface`.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as FileCard } from \"./FileCard\";\r\nexport type { FileCardProps } from \"./FileCard\";\r\n\r\n// Generic flex container + stack shorthand (B17). Drop-in\r\n// replacement for the common MUI Box/Stack usage pattern when no\r\n// breakpoint variation is required. See ./Layout.js.\r\nexport { Box, Stack } from \"./Layout\";\r\n\r\n// Section-header primitive (Charter §03). Standalone heading row;\r\n// see SectionHeader.js for how it differs from FormSection.\r\nexport { default as SectionHeader } from \"./SectionHeader\";\r\n\r\n// Disclosure primitives (Charter §03). Accordion uses native\r\n// <details>/<summary>; Tooltip wraps MuiTooltip with token theming\r\n// and aria-label mirroring for icon-only triggers.\r\nexport { default as Accordion } from \"./Accordion\";\r\nexport { default as Tooltip } from \"./Tooltip\";\r\n\r\n// Footer action strip (Charter §03). Distinct from ActionBar\r\n// (page header) and BulkActionBar (selection toolbar).\r\nexport { default as ActionStrip } from \"./ActionStrip\";\r\n\r\n// Taxonomy chip — reuses the 6-tone status palette but distinct\r\n// from v2.Status (category != workflow state).\r\nexport { default as CategoryTag } from \"./CategoryTag\";\r\n\r\n// Favorite toggle (☆/★) — presentational, controlled leaf primitive\r\n// used by the User Personalization Foundation's favorites capability\r\n// (v2/personalization). Provider-free: wire with useIsFavorite /\r\n// useFavorites, or drive manually via pressed/onChange.\r\nexport { default as FavoriteToggle } from \"./FavoriteToggle\";\r\n\r\n// Document viewer (Charter §07). Presentational pdf.js wrapper; the host\r\n// owns fetching (fileUrl|base64 + loading/error + workerUrl). Pulls the\r\n// @react-pdf-viewer / pdfjs-dist OPTIONAL peer deps — installed only by\r\n// PDF-consuming modules.\r\nexport { default as PdfViewer } from \"./PdfViewer\";\r\nexport type { PdfViewerProps } from \"./PdfViewer\";\r\n\r\n// Error pages — Charter §07. Router-agnostic; the lib accepts\r\n// onBack / onHome / onRetry callback props rather than importing\r\n// any router hook. NB: the internal _ErrorPageBody helper is NOT\r\n// re-exported (underscore-prefix convention).\r\nexport { default as ForbiddenPage } from \"./ForbiddenPage\";\r\nexport { default as NotFoundPage } from \"./NotFoundPage\";\r\nexport { default as ServerErrorPage } from \"./ServerErrorPage\";\r\nexport { default as NetworkErrorPage } from \"./NetworkErrorPage\";\r\n/**\r\n * Error-page prop contracts — public typed surface (capability gap G-32).\r\n *\r\n * The four pages are deliberately router-agnostic: they take `onBack` /\r\n * `onHome` / `onRetry` callbacks instead of importing a router hook. That\r\n * design REQUIRES every consumer to write a thin adapter binding its own\r\n * router to those callbacks — and each adapter needs the prop type to declare\r\n * what it is producing. The types existed on each module but were not\r\n * re-exported here, so the adapters could not reach them: caution-ui's\r\n * ErrorPages.tsx carried four\r\n * `as React.ComponentProps<typeof V2ForbiddenPage>` assertions for no reason\r\n * other than that `ForbiddenPageProps` was unreachable.\r\n *\r\n * A router adapter is the single most-repeated consumer of these components\r\n * across the fleet — one per module — so leaving the contract unreachable\r\n * guaranteed the same four casts in every repository.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { ForbiddenPageProps } from \"./ForbiddenPage\";\r\nexport type { NotFoundPageProps } from \"./NotFoundPage\";\r\nexport type { ServerErrorPageProps } from \"./ServerErrorPage\";\r\nexport type { NetworkErrorPageProps } from \"./NetworkErrorPage\";\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CA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A,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,cAAAN,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA;AAAA,SAAAvE,uBAAAiE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_Spinner","_interopRequireDefault","require","_Button","_Field","_FieldError","_Input","_Select","_Textarea","_Checkbox","_interopRequireWildcard","_Radio","_Switch","_Combobox","_TelInput","_NumberInput","_DatePicker","_DateTimePicker","_TimePicker","_DateRangePicker","_Status","_Chip","_Skeleton","_Modal","_Drawer","_ConfirmDialog","_Tabs","_Stepper","_FilterTab","_EmptyState","_Banner","_SectionErrorBoundary","_Toast","_KV","_KPICard","_KPIStrip","_MobileRowCard","_OverflowMenu","_FieldHelp","_SkipLink","_ProgressBar","_Segmented","_Dropzone","_CommandPalette","_Busy","_FormGrid","_KVGrid","_Surface","_FileCard","_Layout","_SectionHeader","_Accordion","_Tooltip","_ActionStrip","_CategoryTag","_FavoriteToggle","_PdfViewer","_ForbiddenPage","_NotFoundPage","_ServerErrorPage","_NetworkErrorPage","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sources":["../../../src/lib/v2/components/index.ts"],"sourcesContent":["export { default as Spinner } from \"./Spinner\";\r\nexport { default as Button } from \"./Button\";\r\nexport { default as Field } from \"./Field\";\r\n/**\r\n * Field contracts — public typed surface (gap G-H).\r\n *\r\n * Meme defaut que les blocs `StepStatus`, `FieldHelp` et `Status` plus bas :\r\n * `Field` etait exporte comme VALEUR, sans aucun de ses types. `FieldWidth` est\r\n * le plus necessaire des deux : la section « Form Field Width & Layout\r\n * Standards » des Platform Mandatory UX Patterns impose de rattacher CHAQUE\r\n * champ d'un formulaire a l'un des cinq gabarits, et un module qui fait ce\r\n * mappage a l'echelle d'un ecran ecrit naturellement un dictionnaire :\r\n *\r\n * const LARGEURS: Record<string, FieldWidth> = { ifu: \"s\", adresse: \"l\", ... }\r\n *\r\n * Sans le type, il doit reecrire l'union au point d'appel — ce que les Platform\r\n * TypeScript Guidelines interdisent (« Reusable types belong inside Shared UI\r\n * Library … Never duplicate »). C'est le cas signale depuis `refonte-frontend`\r\n * (lot 8), ou ~60 champs sont a mapper.\r\n *\r\n * `FIELD_MAX_WIDTH` n'est PAS surfacee, deliberement : les cinq largeurs sont\r\n * une decision de design, et les exposer inviterait les hotes a poser les\r\n * plafonds eux-memes plutot que par `width` — donc a recreer les « arbitrary\r\n * input field widths » que le standard interdit. Elle reste atteignable par\r\n * chemin interne pour le test qui les epingle.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { FieldProps, FieldWidth } from \"./Field\";\r\n/**\r\n * FieldError — the message renderer `Field` uses, exported standalone\r\n * (capability gap G-18).\r\n *\r\n * Charter R-4.1 MUST requires a field error to carry an ICON; `Field` rendered a\r\n * bare red helper text without one, so the canonical field wrapper missed a MUST\r\n * on every form of every module. And a LIST-level error (a Formik array, an\r\n * upload slot) has no single control to wrap in a `Field` at all — addpe-fe's\r\n * local `InlineFieldAlert` reimplemented the recipe and was, ironically, more\r\n * charter-compliant than the shared component it could not reuse.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as FieldError } from \"./FieldError\";\r\nexport type { FieldErrorProps } from \"./FieldError\";\r\nexport { default as Input } from \"./Input\";\r\nexport { default as Select } from \"./Select\";\r\nexport type { SelectOption, SelectOptionObject, SelectOptionValue, SelectValue, SelectChangeLike, SelectLabels } from \"./Select\";\r\nexport { default as Textarea } from \"./Textarea\";\r\nexport { default as Checkbox, CheckboxGroup } from \"./Checkbox\";\r\nexport { default as Radio, RadioGroup } from \"./Radio\";\r\nexport { default as Switch } from \"./Switch\";\r\nexport { default as Combobox } from \"./Combobox\";\r\nexport type { ComboboxOption, ComboboxOptionValue, ComboboxValue, ComboboxLabels, ComboboxProps } from \"./Combobox\";\r\nexport { default as TelInput } from \"./TelInput\";\r\nexport {\r\n default as NumberInput,\r\n FR_DECIMAL_SEPARATOR,\r\n FR_THOUSAND_SEPARATOR,\r\n} from \"./NumberInput\";\r\nexport {\r\n default as DatePicker,\r\n DATE_FORMAT_CHARTER,\r\n} from \"./DatePicker\";\r\nexport {\r\n default as DateTimePicker,\r\n DATETIME_FORMAT_CHARTER,\r\n} from \"./DateTimePicker\";\r\nexport {\r\n default as TimePicker,\r\n TIME_FORMAT_CHARTER,\r\n} from \"./TimePicker\";\r\nexport { default as DateRangePicker } from \"./DateRangePicker\";\r\nexport { default as Status } from \"./Status\";\r\n/**\r\n * Status contracts — public typed surface (capability gap G-31).\r\n *\r\n * Same defect as the `StepStatus` and `FieldHelp` blocks below: `Status` was\r\n * exported as a VALUE while the types describing it were not re-exported here,\r\n * so a host mapping its own business codes onto the six canonical workflow\r\n * tones had to hand-write the union at the call site — which the Platform\r\n * TypeScript Guidelines forbid (\"Reusable types belong inside Shared UI\r\n * Library … Never duplicate\"). caution-ui carried exactly that local twin\r\n * (`CautionStatusKind`, six members, structurally identical) plus five\r\n * `as ComponentProps<typeof Status>` assertions at the render sites — casts\r\n * that were never needed for anything except reaching an unreachable type.\r\n *\r\n * `StatusProps` travels with it: a consumer building the chip props as an\r\n * object (mobile card, KV value slot, DataGrid cell renderer) needs the prop\r\n * contract, and re-declaring it is the same duplication one level down.\r\n *\r\n * KNOWN DEBT: `StatusKind` is currently derived as\r\n * `keyof typeof STATUS_LABELS_FR`, and STATUS_LABELS_FR is itself marked\r\n * `@deprecated … Will be removed in v0.3` (we are at 0.8.0). Deleting that\r\n * const would delete the public type with it. Re-anchoring `StatusKind` to a\r\n * literal tuple form of STATUS_KEYS — which is typed `readonly string[]` and\r\n * so cannot currently derive a union — is tracked separately; surfacing the\r\n * type now does not deepen that debt, it only makes it visible to consumers.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts: not added to\r\n * ./v2/index.ts, which is a retiring surface. Reachable as\r\n * `import type { StatusKind } from \"@portnet/ui\"` via the root star-export.\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { StatusKind, StatusProps } from \"./Status\";\r\nexport { default as Chip } from \"./Chip\";\r\nexport {\r\n default as Skeleton,\r\n SkeletonKPI,\r\n SkeletonRow,\r\n SkeletonDetailHero,\r\n SkeletonTabContent,\r\n SkeletonText,\r\n} from \"./Skeleton\";\r\nexport { default as Modal } from \"./Modal\";\r\nexport { default as Drawer } from \"./Drawer\";\r\nexport type { DrawerProps, DrawerLabels, DrawerAnchor } from \"./Drawer\";\r\nexport { default as ConfirmDialog } from \"./ConfirmDialog\";\r\nexport { default as Tabs } from \"./Tabs\";\r\nexport { default as HStepper, VStepper } from \"./Stepper\";\r\n/**\r\n * Stepper data contracts — public typed surface.\r\n *\r\n * `StepStatus` is the literal union `HStepper`/`VStepper` accept on each\r\n * step. It was exported from ./Stepper but never re-exported here, so a host\r\n * building a step array had to hand-write the union at the call site — which\r\n * the Platform TypeScript Guidelines forbid (\"Reusable types belong inside\r\n * Shared UI Library … Never duplicate\"). ms_licenceexportation's\r\n * ExportationDetailProgress carried exactly that duplicate, with a comment\r\n * recording why. `VStepperItem` is surfaced alongside it because the same\r\n * consumer constructs the item objects the union lives in.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts: not added to\r\n * ./v2/index.ts, which is a retiring surface. Reachable as\r\n * `import type { StepStatus } from \"@portnet/ui\"` via the root star-export.\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { StepStatus, StepState, VStepperItem } from \"./Stepper\";\r\nexport { default as FilterTab } from \"./FilterTab\";\r\nexport type { FilterTabVariant, FilterTabLabels } from \"./FilterTab\";\r\nexport { default as EmptyState } from \"./EmptyState\";\r\nexport { default as Banner } from \"./Banner\";\r\nexport type { BannerVariant, BannerAction } from \"./Banner\";\r\n/**\r\n * SectionErrorBoundary — fault tolerance by import, not by copy (gap G-30).\r\n *\r\n * ISO/IEC 25010 § Reliability requires a system to keep operating despite a\r\n * fault; React unmounts the WHOLE tree on a render exception, so one failing\r\n * section replaces the page with a blank screen. `ms-ti-fe` wrapped 13 sections\r\n * in a boundary of its own while `addpe-fe` and this library had none — a\r\n * platform guarantee living as one module's private safeguard.\r\n *\r\n * Declared after Banner because it renders one as its fallback.\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as SectionErrorBoundary } from \"./SectionErrorBoundary\";\r\nexport type { SectionErrorBoundaryProps } from \"./SectionErrorBoundary\";\r\nexport { default as ToastProvider, useToast } from \"./Toast\";\r\nexport type { ToastVariant, ToastProviderLabels, ToastUndoOptions, ToastProgressHandle, ToastApi } from \"./Toast\";\r\nexport { default as KV } from \"./KV\";\r\nexport { default as KPICard } from \"./KPICard\";\r\nexport type { KPICardProps, KPICardLabels } from \"./KPICard\";\r\n/**\r\n * KPIStrip — the metric-tile row (capability gap G-11).\r\n *\r\n * Charter §07 names this zone in the canonical page template (« ③ FILTERS / KPI\r\n * STRIP ») but the library shipped only the TILE. So every screen wrote the\r\n * grid, and the two in addpe-fe disagree on the desktop ladder — a KPI row that\r\n * reflows differently per screen for no reason a user could name.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as KPIStrip } from \"./KPIStrip\";\r\nexport type { KPIStripProps } from \"./KPIStrip\";\r\nexport { default as MobileRowCard } from \"./MobileRowCard\";\r\nexport type { MobileRowCardProps } from \"./MobileRowCard\";\r\nexport { default as OverflowMenu } from \"./OverflowMenu\";\r\nexport type { OverflowMenuAction, OverflowMenuProps, OverflowMenuLabels } from \"./OverflowMenu\";\r\nexport { default as FieldHelp } from \"./FieldHelp\";\r\n/**\r\n * FieldHelp contracts — public typed surface (capability gap G-16).\r\n *\r\n * Same defect as the `StepStatus` block above: `FieldHelp` was exported as a\r\n * VALUE while the types describing what it accepts were not re-exported here,\r\n * so a host maintaining a help-copy dictionary had to hand-declare the entry\r\n * shape — which the Platform TypeScript Guidelines forbid (\"Reusable types\r\n * belong inside Shared UI Library … Never duplicate\"). addpe-fe's `HELP_TEXTS`\r\n * carries exactly that local twin (`HelpTextEntry`), with a comment recording\r\n * that `FieldHelpProps` was unreachable.\r\n *\r\n * `FieldHelpVariant` / `FieldHelpIcon` travel with it: a dictionary that sets\r\n * `variant` per entry needs the union, and re-declaring `\"tooltip\" | \"popover\"`\r\n * at the call site is the same duplication one level down.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { FieldHelpProps, FieldHelpVariant, FieldHelpIcon } from \"./FieldHelp\";\r\nexport { default as SkipLink } from \"./SkipLink\";\r\nexport { default as ProgressBar } from \"./ProgressBar\";\r\nexport { default as Segmented } from \"./Segmented\";\r\nexport { default as Dropzone } from \"./Dropzone\";\r\nexport type {\r\n DropzoneProps,\r\n DropzoneFile,\r\n DropzoneFileStatus,\r\n DropzoneRejection,\r\n DropzoneRejectReason,\r\n DropzoneReasons,\r\n DropzoneLabels,\r\n} from \"./Dropzone\";\r\nexport { default as CommandPalette } from \"./CommandPalette\";\r\n\r\n// Loading-overlay primitives (Charter §04.4). See ./Busy.js.\r\n// Replaces the PAGE_OVERLAY_SX inline block that host modules\r\n// previously froze in 15+ feature pages.\r\nexport { default as SectionBusy, PageBusy } from \"./Busy\";\r\n\r\n// Layout primitives (Charter §03). Replace local FormGrid / KVGrid\r\n// wrappers that host modules previously inlined.\r\nexport { default as FormGrid } from \"./FormGrid\";\r\nexport { default as KVGrid } from \"./KVGrid\";\r\n\r\n/**\r\n * Surface — the bare card container (capability gap G-10).\r\n *\r\n * The card recipe (--surface + --border + -r-lg + --shadow-*) existed only\r\n * WELDED INSIDE FormSection, which also imposes a numbered heading and an inner\r\n * FormGrid. A consumer needing just the container — a DataGrid shell, a hero\r\n * card, a sticky side rail, a nested file row — could not reach it and rewrote\r\n * the recipe: three copies in addpe-fe plus a document card repeated across\r\n * three files, each having picked its own elevation and radius from memory.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as Surface } from \"./Surface\";\r\nexport type {\r\n SurfaceProps,\r\n SurfaceTone,\r\n SurfaceElevation,\r\n SurfaceRadius,\r\n SurfacePadding,\r\n} from \"./Surface\";\r\n\r\n/**\r\n * FileCard — an attached document, displayed (capability gap G-12).\r\n *\r\n * The library shipped `Dropzone`, the UPLOAD affordance, and nothing for the\r\n * state immediately after it. So every screen showing an attachment rebuilt the\r\n * same row: three copies in addpe-fe, with THREE different paddings for one\r\n * concept — accidental drift, exactly what R-2.1 forbids. Composes `Surface`.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n */\r\nexport { default as FileCard } from \"./FileCard\";\r\nexport type { FileCardProps } from \"./FileCard\";\r\n\r\n// Generic flex container + stack shorthand (B17). Drop-in\r\n// replacement for the common MUI Box/Stack usage pattern when no\r\n// breakpoint variation is required. See ./Layout.js.\r\nexport { Box, Stack } from \"./Layout\";\r\n\r\n// Section-header primitive (Charter §03). Standalone heading row;\r\n// see SectionHeader.js for how it differs from FormSection.\r\nexport { default as SectionHeader } from \"./SectionHeader\";\r\n\r\n// Disclosure primitives (Charter §03). Accordion uses native\r\n// <details>/<summary>; Tooltip wraps MuiTooltip with token theming\r\n// and aria-label mirroring for icon-only triggers.\r\nexport { default as Accordion } from \"./Accordion\";\r\nexport { default as Tooltip } from \"./Tooltip\";\r\n\r\n// Footer action strip (Charter §03). Distinct from ActionBar\r\n// (page header) and BulkActionBar (selection toolbar).\r\nexport { default as ActionStrip } from \"./ActionStrip\";\r\n\r\n// Taxonomy chip — reuses the 6-tone status palette but distinct\r\n// from v2.Status (category != workflow state).\r\nexport { default as CategoryTag } from \"./CategoryTag\";\r\n\r\n// Favorite toggle (☆/★) — presentational, controlled leaf primitive\r\n// used by the User Personalization Foundation's favorites capability\r\n// (v2/personalization). Provider-free: wire with useIsFavorite /\r\n// useFavorites, or drive manually via pressed/onChange.\r\nexport { default as FavoriteToggle } from \"./FavoriteToggle\";\r\n\r\n// Document viewer (Charter §07). Presentational pdf.js wrapper; the host\r\n// owns fetching (fileUrl|base64 + loading/error + workerUrl). Pulls the\r\n// @react-pdf-viewer / pdfjs-dist OPTIONAL peer deps — installed only by\r\n// PDF-consuming modules.\r\nexport { default as PdfViewer } from \"./PdfViewer\";\r\nexport type { PdfViewerProps } from \"./PdfViewer\";\r\n\r\n// Error pages — Charter §07. Router-agnostic; the lib accepts\r\n// onBack / onHome / onRetry callback props rather than importing\r\n// any router hook. NB: the internal _ErrorPageBody helper is NOT\r\n// re-exported (underscore-prefix convention).\r\nexport { default as ForbiddenPage } from \"./ForbiddenPage\";\r\nexport { default as NotFoundPage } from \"./NotFoundPage\";\r\nexport { default as ServerErrorPage } from \"./ServerErrorPage\";\r\nexport { default as NetworkErrorPage } from \"./NetworkErrorPage\";\r\n/**\r\n * Error-page prop contracts — public typed surface (capability gap G-32).\r\n *\r\n * The four pages are deliberately router-agnostic: they take `onBack` /\r\n * `onHome` / `onRetry` callbacks instead of importing a router hook. That\r\n * design REQUIRES every consumer to write a thin adapter binding its own\r\n * router to those callbacks — and each adapter needs the prop type to declare\r\n * what it is producing. The types existed on each module but were not\r\n * re-exported here, so the adapters could not reach them: caution-ui's\r\n * ErrorPages.tsx carried four\r\n * `as React.ComponentProps<typeof V2ForbiddenPage>` assertions for no reason\r\n * other than that `ForbiddenPageProps` was unreachable.\r\n *\r\n * A router adapter is the single most-repeated consumer of these components\r\n * across the fleet — one per module — so leaving the contract unreachable\r\n * guaranteed the same four casts in every repository.\r\n *\r\n * FLAT-ONLY, per the policy note in src/lib/index.ts.\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type { ForbiddenPageProps } from \"./ForbiddenPage\";\r\nexport type { NotFoundPageProps } from \"./NotFoundPage\";\r\nexport type { ServerErrorPageProps } from \"./ServerErrorPage\";\r\nexport type { NetworkErrorPageProps } from \"./NetworkErrorPage\";\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AAyCA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,MAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,OAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,IAAAM,SAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,SAAA,GAAAC,uBAAA,CAAAR,OAAA;AACA,IAAAS,MAAA,GAAAD,uBAAA,CAAAR,OAAA;AACA,IAAAU,OAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,SAAA,GAAAZ,sBA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2BAA2B,EAC3B,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;;;GAaG;AACH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;GAUG;AACH,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/v2/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,oBAAoB,CAAC;AAEzC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAEjB;;;;GAIG;AACH,YAAY,EACV,yBAAyB,EACzB,WAAW,EACX,oBAAoB,GACrB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,YAAY,EACZ,aAAa,EACb,cAAc,EACd,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,EAAE,EACF,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,EACL,OAAO,EACP,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,KAAK,EACL,UAAU,EACV,MAAM,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EACb,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,IAAI,EACJ,qBAAqB,EACrB,2BAA2B,EAC3B,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,SAAS,EACT,WAAW,EACX,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EAWnB,sBAAsB;AACtB,oEAAoE;AACpE,aAAa,GACd,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;GASG;AACH,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;;;GAaG;AACH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;GAUG;AACH,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_theme","require","_hooks","_utils","_modalContext","_components","_patterns","_personalization","_referentiel","_models","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_types","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interopRequireWildcard","obj","__esModule","_typeof","cache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","desc","set","VERSION"],"sources":["../../src/lib/v2/index.ts"],"sourcesContent":["/**\r\n * @portnet/ui v2 — Public surface\r\n */\r\n\r\n/**\r\n * Public version constant. MUST stay in sync with package.json `version`.\r\n *\r\n * Audit Batch 6 external (B6-EXT-1): this constant was previously\r\n * stuck at \"0.1.4\" through the v0.2.x and MUI v9 migration cycles —\r\n * a silent metadata drift that broke host introspection (analytics,\r\n * version dashboards, debug reports).\r\n *\r\n * Future: ideally generated at build time from package.json (e.g.\r\n * via babel-plugin-transform-define) to remove the manual-sync\r\n * footgun. Tracked as Batch 7 P3 follow-up (R19 migration backlog).\r\n */\r\nexport const VERSION = \"0.8.0-react19.1\";\r\n\r\nexport * as tokens from \"./tokens\";\r\n\r\nexport {\r\n createPortnetTheme,\r\n getCssVariables,\r\n injectCssVariables,\r\n removeCssVariables,\r\n} from \"./theme\";\r\n\r\n/**\r\n * Theme factory typed contract (see ./theme for the rationale). Surfaced at\r\n * the package root so hosts can `import type { CreatePortnetThemeOptions,\r\n * BrandTokens } from \"@portnet/ui/v2\"` alongside the runtime API.\r\n */\r\nexport type {\r\n CreatePortnetThemeOptions,\r\n BrandTokens,\r\n BrandSecondaryTokens,\r\n} from \"./theme\";\r\n\r\nexport {\r\n useFocusTrap,\r\n useTabLoading,\r\n useDelayedFlag,\r\n useDensity,\r\n useResolvedDensity,\r\n useSortedRows,\r\n useFormAutoSave,\r\n useFormCompletionProgress,\r\n PERCEPTION_THRESHOLD_MS,\r\n} from \"./hooks\";\r\n\r\nexport {\r\n cx,\r\n fmtMoney,\r\n contrast,\r\n downloadBase64File,\r\n getMimeType,\r\n openBase64FileInTab,\r\n downloadBlobFile,\r\n} from \"./utils\";\r\n\r\nexport { MODAL_POPPER_PROPS, MODAL_ZINDEX } from \"./modalContext\";\r\n\r\nexport {\r\n Spinner,\r\n Button,\r\n Field,\r\n Input,\r\n Select,\r\n Textarea,\r\n Checkbox,\r\n CheckboxGroup,\r\n Radio,\r\n RadioGroup,\r\n Switch,\r\n Combobox,\r\n TelInput,\r\n NumberInput,\r\n FR_DECIMAL_SEPARATOR,\r\n FR_THOUSAND_SEPARATOR,\r\n DatePicker,\r\n DATE_FORMAT_CHARTER,\r\n DateTimePicker,\r\n DATETIME_FORMAT_CHARTER,\r\n TimePicker,\r\n TIME_FORMAT_CHARTER,\r\n DateRangePicker,\r\n Status,\r\n Chip,\r\n Skeleton,\r\n SkeletonKPI,\r\n SkeletonRow,\r\n SkeletonDetailHero,\r\n SkeletonTabContent,\r\n SkeletonText,\r\n Modal,\r\n Drawer,\r\n ConfirmDialog,\r\n Tabs,\r\n HStepper,\r\n VStepper,\r\n FilterTab,\r\n EmptyState,\r\n Banner,\r\n ToastProvider,\r\n useToast,\r\n KV,\r\n KPICard,\r\n MobileRowCard,\r\n OverflowMenu,\r\n FieldHelp,\r\n SkipLink,\r\n ProgressBar,\r\n Segmented,\r\n Dropzone,\r\n CommandPalette,\r\n SectionBusy,\r\n PageBusy,\r\n FormGrid,\r\n KVGrid,\r\n SectionHeader,\r\n Accordion,\r\n Tooltip,\r\n ActionStrip,\r\n CategoryTag,\r\n FavoriteToggle,\r\n PdfViewer,\r\n ForbiddenPage,\r\n NotFoundPage,\r\n ServerErrorPage,\r\n NetworkErrorPage,\r\n} from \"./components\";\r\n\r\n/**\r\n * Component prop / option types — public typed surface (Gap-TS-003).\r\n *\r\n * The value exports above were reachable from `@portnet/ui/v2`, but the\r\n * component TYPES were not: `./components` re-exported them from each module,\r\n * yet this barrel only forwarded the values, and no `exports` subpath reaches\r\n * `dist/v2/components` directly. Consumers were therefore forced to either\r\n * deep-import `@portnet/ui/dist/v2/components/…` (fragile, bypasses the\r\n * `exports` map) or redeclare a local twin of a shared contract — which the\r\n * Platform TypeScript Guidelines forbid (\"Reusable types belong inside Shared\r\n * UI Library. Modules must consume shared types. Never duplicate.\").\r\n *\r\n * Surfaced here so a host can write, for example:\r\n *\r\n * import type { DrawerProps, OverflowMenuAction } from \"@portnet/ui/v2\";\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type {\r\n SelectOption,\r\n SelectOptionObject,\r\n SelectOptionValue,\r\n SelectValue,\r\n SelectChangeLike,\r\n SelectLabels,\r\n ComboboxOption,\r\n ComboboxOptionValue,\r\n ComboboxValue,\r\n ComboboxLabels,\r\n ComboboxProps,\r\n DrawerProps,\r\n DrawerLabels,\r\n DrawerAnchor,\r\n FilterTabVariant,\r\n FilterTabLabels,\r\n BannerVariant,\r\n BannerAction,\r\n ToastVariant,\r\n ToastProviderLabels,\r\n ToastUndoOptions,\r\n ToastProgressHandle,\r\n ToastApi,\r\n MobileRowCardProps,\r\n OverflowMenuAction,\r\n OverflowMenuProps,\r\n OverflowMenuLabels,\r\n DropzoneProps,\r\n DropzoneFile,\r\n DropzoneFileStatus,\r\n DropzoneRejection,\r\n DropzoneRejectReason,\r\n DropzoneReasons,\r\n DropzoneLabels,\r\n PdfViewerProps,\r\n} from \"./components\";\r\n\r\nexport {\r\n ActionBar,\r\n BulkActionBar,\r\n ColumnsToggle,\r\n FormSection,\r\n FormPageShell,\r\n FormErrorSummary,\r\n PageContent,\r\n DataGrid,\r\n DataGridVirtualized,\r\n DataGridSettingsMenu,\r\n DataGridToolbar,\r\n CollapsibleDataGrid,\r\n SortableHeader,\r\n NetworkErrorBanner,\r\n ReferentielField,\r\n Tour,\r\n KeyboardShortcutsHelp,\r\n DeleteResourceConfirmDialog,\r\n SaveFilterDialog,\r\n SavedFiltersMenu,\r\n makeFavoriteColumn,\r\n FavoritesFilter,\r\n applySort,\r\n getAriaSort,\r\n FormikInput,\r\n FormikTextarea,\r\n FormikSelect,\r\n FormikCombobox,\r\n FormikDatePicker,\r\n FormikFile,\r\n FormikCheckboxGroup,\r\n FormikReferentielField,\r\n /** Valeurs système non-éditables — fond grisé, pas d'interaction */\r\n FormikDisplay,\r\n} from \"./patterns\";\r\n\r\n/**\r\n * Pattern prop / configuration types — public typed surface.\r\n *\r\n * Extends the Gap-TS-003 fix (which covered `./components`) to `./patterns`.\r\n * `ReferentielField` / `FormikReferentielField` were exported as VALUES while\r\n * the types describing their required props were not, forcing consumers to\r\n * deep-import `dist/v2/patterns/…` or duplicate a shared contract — both\r\n * forbidden by the Platform TypeScript Guidelines.\r\n *\r\n * Surfaced so a host can write, for example:\r\n *\r\n * import type { ReferentielCriterion } from \"@portnet/ui/v2\";\r\n *\r\n * Kept deliberately MINIMAL. `ReferentielSearchParams` and\r\n * `ReferentielSearchResult` are excluded: identically-named types already come\r\n * from `./models` and `./referentiel`, and re-exporting either would be a\r\n * TS2308 ambiguity. Other pattern types (ActionBar*, FormErrorSummary*,\r\n * FavoritesFilter*) are already reachable from the library root via\r\n * `src/lib/index.ts`'s star-export of `./v2/patterns`; they are not forwarded\r\n * here without a consumer needing them, to keep the collision surface of a\r\n * certified library as small as possible.\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type {\r\n ReferentielFieldProps,\r\n ReferentielCriterion,\r\n ReferentielFieldLabels,\r\n FormikReferentielFieldProps,\r\n} from \"./patterns\";\r\n\r\n/**\r\n * User Personalization Foundation (favorites, saved filters, and future\r\n * slices). Also available via the dedicated subpath\r\n * \"@portnet/ui/v2/personalization\".\r\n *\r\n * The grid-bound composites are exported above via ./patterns\r\n * (makeFavoriteColumn, FavoritesFilter, SaveFilterDialog, SavedFiltersMenu);\r\n * FavoriteToggle via ./components. Here we surface the provider, the\r\n * capability hooks, and the favorites view logic.\r\n */\r\nexport {\r\n UserPersonalizationProvider,\r\n createLocalStorageAdapter,\r\n createMemoryAdapter,\r\n registerCapability,\r\n useFavorites,\r\n useIsFavorite,\r\n useFavoritesView,\r\n filterRowsByFavorites,\r\n sortRowsByFavorites,\r\n FAVORITES_FILTER,\r\n FAVORITES_SORT,\r\n useSavedFilters,\r\n} from \"./personalization\";\r\n\r\n/**\r\n * Referential data-access (config provider + hooks).\r\n *\r\n * The referential field UI is exported above via ./patterns\r\n * (ReferentielField, FormikReferentielField). This is the data layer that\r\n * backs them:\r\n * - ReferentielProvider — app-root config (baseURL / token / secret /\r\n * langue) + per-searchKey option cache.\r\n * - useReferentielOptions — simple searchKey -> option list (getAll, cached).\r\n * - useReferentielSearch — paginated search builder (getPage) producing a\r\n * ReferentielField `search` fn.\r\n * - useReferentielClient — auth-configured axios instance (shared by the\r\n * options + search hooks).\r\n */\r\nexport {\r\n ReferentielProvider,\r\n ReferentielContext,\r\n useReferentielClient,\r\n useReferentielOptions,\r\n useReferentielSearch,\r\n} from \"./referentiel\";\r\n\r\n/**\r\n * Domain models & shared UI/structural types.\r\n *\r\n * Surfaces the public type layer at the package root so hosts can import\r\n * types alongside the runtime API:\r\n * - ./models — domain shapes (Scope, FavoriteRef, SavedFilter, Referentiel*\r\n * DTO/param/result contracts, adapter/capability descriptors).\r\n * - ./types — UI/structural types (RowId, SortDescriptor, DataGrid types).\r\n * Type-only re-exports (no runtime cost). Conflicting names across the two\r\n * star-exports are omitted per ES module semantics rather than erroring.\r\n */\r\nexport * from \"./models\";\r\nexport * from \"./types\";\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,cAAA,CAAAC,IAAA,CAAAa,GAAA,EAAAhB,GAAA,SAAAwB,IAAA,GAAAF,qBAAA,GAAAzB,MAAA,CAAA0B,wBAAA,CAAAP,GAAA,EAAAhB,GAAA,cAAAwB,IAAA,KAAAA,IAAA,CAAAhB,GAAA,IAAAgB,IAAA,CAAAC,GAAA,KAAA5B,MAAA,CAAAS,cAAA,CAAAe,MAAA,EAAArB,GAAA,EAAAwB,IAAA,YAAAH,MAAA,CAAArB,GAAA,IAAAgB,GAAA,CAAAhB,GAAA,SAAAqB,MAAA,cAAAL,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAM,GAAA,CAAAT,GAAA,EAAAK,MAAA,YAAAA,MAAA;AA3TxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMK,OAAO,GAAArB,OAAA,CAAAqB,OAAA,GAAG,iBAAiB;;AAWxC;AACA;AACA;AACA;AACA;;AAqGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA4EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_theme","require","_hooks","_utils","_modalContext","_components","_patterns","_personalization","_referentiel","_models","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_types","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interopRequireWildcard","obj","__esModule","_typeof","cache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","desc","set","VERSION"],"sources":["../../src/lib/v2/index.ts"],"sourcesContent":["/**\r\n * @portnet/ui v2 — Public surface\r\n */\r\n\r\n/**\r\n * Public version constant. MUST stay in sync with package.json `version`.\r\n *\r\n * Audit Batch 6 external (B6-EXT-1): this constant was previously\r\n * stuck at \"0.1.4\" through the v0.2.x and MUI v9 migration cycles —\r\n * a silent metadata drift that broke host introspection (analytics,\r\n * version dashboards, debug reports).\r\n *\r\n * Future: ideally generated at build time from package.json (e.g.\r\n * via babel-plugin-transform-define) to remove the manual-sync\r\n * footgun. Tracked as Batch 7 P3 follow-up (R19 migration backlog).\r\n */\r\nexport const VERSION = \"0.8.0-react19.1\";\r\n\r\nexport * as tokens from \"./tokens\";\r\n\r\nexport {\r\n createPortnetTheme,\r\n getCssVariables,\r\n injectCssVariables,\r\n removeCssVariables,\r\n} from \"./theme\";\r\n\r\n/**\r\n * Theme factory typed contract (see ./theme for the rationale). Surfaced at\r\n * the package root so hosts can `import type { CreatePortnetThemeOptions,\r\n * BrandTokens } from \"@portnet/ui/v2\"` alongside the runtime API.\r\n */\r\nexport type {\r\n CreatePortnetThemeOptions,\r\n BrandTokens,\r\n BrandSecondaryTokens,\r\n} from \"./theme\";\r\n\r\nexport {\r\n useFocusTrap,\r\n useTabLoading,\r\n useDelayedFlag,\r\n useDensity,\r\n useResolvedDensity,\r\n useSortedRows,\r\n useFormAutoSave,\r\n useFormCompletionProgress,\r\n PERCEPTION_THRESHOLD_MS,\r\n} from \"./hooks\";\r\n\r\nexport {\r\n cx,\r\n fmtMoney,\r\n contrast,\r\n downloadBase64File,\r\n getMimeType,\r\n openBase64FileInTab,\r\n downloadBlobFile,\r\n} from \"./utils\";\r\n\r\nexport { MODAL_POPPER_PROPS, MODAL_ZINDEX } from \"./modalContext\";\r\n\r\nexport {\r\n Spinner,\r\n Button,\r\n Field,\r\n Input,\r\n Select,\r\n Textarea,\r\n Checkbox,\r\n CheckboxGroup,\r\n Radio,\r\n RadioGroup,\r\n Switch,\r\n Combobox,\r\n TelInput,\r\n NumberInput,\r\n FR_DECIMAL_SEPARATOR,\r\n FR_THOUSAND_SEPARATOR,\r\n DatePicker,\r\n DATE_FORMAT_CHARTER,\r\n DateTimePicker,\r\n DATETIME_FORMAT_CHARTER,\r\n TimePicker,\r\n TIME_FORMAT_CHARTER,\r\n DateRangePicker,\r\n Status,\r\n Chip,\r\n Skeleton,\r\n SkeletonKPI,\r\n SkeletonRow,\r\n SkeletonDetailHero,\r\n SkeletonTabContent,\r\n SkeletonText,\r\n Modal,\r\n Drawer,\r\n ConfirmDialog,\r\n Tabs,\r\n HStepper,\r\n VStepper,\r\n FilterTab,\r\n EmptyState,\r\n Banner,\r\n ToastProvider,\r\n useToast,\r\n KV,\r\n KPICard,\r\n MobileRowCard,\r\n OverflowMenu,\r\n FieldHelp,\r\n SkipLink,\r\n ProgressBar,\r\n Segmented,\r\n Dropzone,\r\n CommandPalette,\r\n SectionBusy,\r\n PageBusy,\r\n FormGrid,\r\n KVGrid,\r\n SectionHeader,\r\n Accordion,\r\n Tooltip,\r\n ActionStrip,\r\n CategoryTag,\r\n FavoriteToggle,\r\n PdfViewer,\r\n ForbiddenPage,\r\n NotFoundPage,\r\n ServerErrorPage,\r\n NetworkErrorPage,\r\n} from \"./components\";\r\n\r\n/**\r\n * Component prop / option types — public typed surface (Gap-TS-003).\r\n *\r\n * The value exports above were reachable from `@portnet/ui/v2`, but the\r\n * component TYPES were not: `./components` re-exported them from each module,\r\n * yet this barrel only forwarded the values, and no `exports` subpath reaches\r\n * `dist/v2/components` directly. Consumers were therefore forced to either\r\n * deep-import `@portnet/ui/dist/v2/components/…` (fragile, bypasses the\r\n * `exports` map) or redeclare a local twin of a shared contract — which the\r\n * Platform TypeScript Guidelines forbid (\"Reusable types belong inside Shared\r\n * UI Library. Modules must consume shared types. Never duplicate.\").\r\n *\r\n * Surfaced here so a host can write, for example:\r\n *\r\n * import type { DrawerProps, OverflowMenuAction } from \"@portnet/ui/v2\";\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type {\r\n SelectOption,\r\n SelectOptionObject,\r\n SelectOptionValue,\r\n SelectValue,\r\n SelectChangeLike,\r\n SelectLabels,\r\n ComboboxOption,\r\n ComboboxOptionValue,\r\n ComboboxValue,\r\n ComboboxLabels,\r\n ComboboxProps,\r\n DrawerProps,\r\n DrawerLabels,\r\n DrawerAnchor,\r\n FilterTabVariant,\r\n FilterTabLabels,\r\n BannerVariant,\r\n BannerAction,\r\n ToastVariant,\r\n ToastProviderLabels,\r\n ToastUndoOptions,\r\n ToastProgressHandle,\r\n ToastApi,\r\n MobileRowCardProps,\r\n OverflowMenuAction,\r\n OverflowMenuProps,\r\n OverflowMenuLabels,\r\n DropzoneProps,\r\n DropzoneFile,\r\n DropzoneFileStatus,\r\n DropzoneRejection,\r\n DropzoneRejectReason,\r\n DropzoneReasons,\r\n DropzoneLabels,\r\n PdfViewerProps,\r\n} from \"./components\";\r\n\r\nexport {\r\n ActionBar,\r\n BulkActionBar,\r\n ColumnsToggle,\r\n FormSection,\r\n FormPageShell,\r\n FormErrorSummary,\r\n PageContent,\r\n DataGrid,\r\n DataGridVirtualized,\r\n DataGridSettingsMenu,\r\n DataGridToolbar,\r\n CollapsibleDataGrid,\r\n SortableHeader,\r\n NetworkErrorBanner,\r\n ReferentielField,\r\n Tour,\r\n KeyboardShortcutsHelp,\r\n DeleteResourceConfirmDialog,\r\n SaveFilterDialog,\r\n SavedFiltersMenu,\r\n makeFavoriteColumn,\r\n FavoritesFilter,\r\n applySort,\r\n getAriaSort,\r\n FormikInput,\r\n FormikTextarea,\r\n FormikSelect,\r\n FormikCombobox,\r\n FormikDatePicker,\r\n FormikFile,\r\n FormikCheckboxGroup,\r\n /* G-A, G-C et G-E — `FormikCheckbox`, `FormikRadioGroup` et\r\n * `FormikDateTimePicker` sont volontairement ABSENTS de cette surface, per\r\n * la POLICY en bas de `src/lib/index.ts` : ce qui est ajoute apres la\r\n * deprecation de `@portnet/ui/v2` n'est surface QUE sur la racine plate.\r\n * Ils y sont atteignables sans rien ajouter ici, `./v2/patterns` etant\r\n * re-exporte en `export *` depuis `src/lib/index.ts`.\r\n *\r\n * Les trois avaient d'abord ete ajoutes ici par erreur, faute d'avoir lu la\r\n * politique. Le retrait remet la racine plate en sur-ensemble strict de\r\n * cette surface, ce que le corollaire G-34 de la meme note exige. */\r\n FormikReferentielField,\r\n /** Valeurs système non-éditables — fond grisé, pas d'interaction */\r\n FormikDisplay,\r\n} from \"./patterns\";\r\n\r\n/**\r\n * Pattern prop / configuration types — public typed surface.\r\n *\r\n * Extends the Gap-TS-003 fix (which covered `./components`) to `./patterns`.\r\n * `ReferentielField` / `FormikReferentielField` were exported as VALUES while\r\n * the types describing their required props were not, forcing consumers to\r\n * deep-import `dist/v2/patterns/…` or duplicate a shared contract — both\r\n * forbidden by the Platform TypeScript Guidelines.\r\n *\r\n * Surfaced so a host can write, for example:\r\n *\r\n * import type { ReferentielCriterion } from \"@portnet/ui/v2\";\r\n *\r\n * Kept deliberately MINIMAL. `ReferentielSearchParams` and\r\n * `ReferentielSearchResult` are excluded: identically-named types already come\r\n * from `./models` and `./referentiel`, and re-exporting either would be a\r\n * TS2308 ambiguity. Other pattern types (ActionBar*, FormErrorSummary*,\r\n * FavoritesFilter*) are already reachable from the library root via\r\n * `src/lib/index.ts`'s star-export of `./v2/patterns`; they are not forwarded\r\n * here without a consumer needing them, to keep the collision surface of a\r\n * certified library as small as possible.\r\n *\r\n * Additive and type-only: no runtime change, no existing export altered.\r\n */\r\nexport type {\r\n ReferentielFieldProps,\r\n ReferentielCriterion,\r\n ReferentielFieldLabels,\r\n FormikReferentielFieldProps,\r\n} from \"./patterns\";\r\n\r\n/**\r\n * User Personalization Foundation (favorites, saved filters, and future\r\n * slices). Also available via the dedicated subpath\r\n * \"@portnet/ui/v2/personalization\".\r\n *\r\n * The grid-bound composites are exported above via ./patterns\r\n * (makeFavoriteColumn, FavoritesFilter, SaveFilterDialog, SavedFiltersMenu);\r\n * FavoriteToggle via ./components. Here we surface the provider, the\r\n * capability hooks, and the favorites view logic.\r\n */\r\nexport {\r\n UserPersonalizationProvider,\r\n createLocalStorageAdapter,\r\n createMemoryAdapter,\r\n registerCapability,\r\n useFavorites,\r\n useIsFavorite,\r\n useFavoritesView,\r\n filterRowsByFavorites,\r\n sortRowsByFavorites,\r\n FAVORITES_FILTER,\r\n FAVORITES_SORT,\r\n useSavedFilters,\r\n} from \"./personalization\";\r\n\r\n/**\r\n * Referential data-access (config provider + hooks).\r\n *\r\n * The referential field UI is exported above via ./patterns\r\n * (ReferentielField, FormikReferentielField). This is the data layer that\r\n * backs them:\r\n * - ReferentielProvider — app-root config (baseURL / token / secret /\r\n * langue) + per-searchKey option cache.\r\n * - useReferentielOptions — simple searchKey -> option list (getAll, cached).\r\n * - useReferentielSearch — paginated search builder (getPage) producing a\r\n * ReferentielField `search` fn.\r\n * - useReferentielClient — auth-configured axios instance (shared by the\r\n * options + search hooks).\r\n */\r\nexport {\r\n ReferentielProvider,\r\n ReferentielContext,\r\n useReferentielClient,\r\n useReferentielOptions,\r\n useReferentielSearch,\r\n} from \"./referentiel\";\r\n\r\n/**\r\n * Domain models & shared UI/structural types.\r\n *\r\n * Surfaces the public type layer at the package root so hosts can import\r\n * types alongside the runtime API:\r\n * - ./models — domain shapes (Scope, FavoriteRef, SavedFilter, Referentiel*\r\n * DTO/param/result contracts, adapter/capability descriptors).\r\n * - ./types — UI/structural types (RowId, SortDescriptor, DataGrid types).\r\n * Type-only re-exports (no runtime cost). Conflicting names across the two\r\n * star-exports are omitted per ES module semantics rather than erroring.\r\n */\r\nexport * from \"./models\";\r\nexport * from \"./types\";\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ACA;AACA;AACA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -1,5 +1,4 @@
1
- import * as React from "react";
2
- import FavoriteToggle from "../components/FavoriteToggle";
1
+ import type { FavoriteToggleSize, RowFavoriteToggleLabels } from "./RowFavoriteToggle";
3
2
  import type { DataGridColumn } from "../types/datagrid";
4
3
  import type { RowId } from "../types/common";
5
4
  /**
@@ -40,14 +39,16 @@ import type { RowId } from "../types/common";
40
39
  * `getRowId` MUST match the one passed to <DataGrid> so the follow id and
41
40
  * the grid row id agree. Requires a <UserPersonalizationProvider>
42
41
  * ancestor (useIsFavorite throws otherwise).
42
+ *
43
+ * The per-row star itself is `RowFavoriteToggle` (gap G-36). It used to be a
44
+ * private `FavoriteCell` in this file, which made the follow control reachable
45
+ * as a DataGrid column and nowhere else — so hosts rebuilt it by hand for the
46
+ * `MobileRowCard` `leading` slot that DataGrid switches to below its
47
+ * `mobileBreakpoint`, and the copies drifted on their accessible names. Both
48
+ * now render the same component, so desktop and mobile agree by construction.
43
49
  */
44
- type FavoriteToggleSize = NonNullable<React.ComponentProps<typeof FavoriteToggle>["size"]>;
45
- export interface FavoriteColumnLabels {
50
+ export interface FavoriteColumnLabels extends RowFavoriteToggleLabels {
46
51
  columnHeader: string;
47
- addFavorite: string;
48
- removeFavorite: string;
49
- statusFollowed: string;
50
- statusNotFollowed: string;
51
52
  }
52
53
  export interface MakeFavoriteColumnOptions<T> {
53
54
  /** Required — follow namespace. */
@@ -68,5 +69,4 @@ export interface MakeFavoriteColumnOptions<T> {
68
69
  * Builds a v2 DataGrid column definition for the compact follow-star column.
69
70
  */
70
71
  export default function makeFavoriteColumn<T>(options: MakeFavoriteColumnOptions<T>): DataGridColumn<T>;
71
- export {};
72
72
  //# sourceMappingURL=FavoriteColumn.d.ts.map
@@ -1 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AAE,yBAAyB,CAAC,CAAC,CAAC,GACpC,cAAc,CAAC,CAAC,CAAC,CAkDnB"}
@@ -6,9 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = makeFavoriteColumn;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  var _Box = _interopRequireDefault(require("@mui/material/Box"));
9
- var _FavoriteToggle = _interopRequireDefault(require("../components/FavoriteToggle"));
10
- var _Tooltip = _interopRequireDefault(require("../components/Tooltip"));
11
- var _favorites = require("../personalization/capabilities/favorites");
9
+ var _RowFavoriteToggle = _interopRequireWildcard(require("./RowFavoriteToggle"));
12
10
  var _jsxRuntime = require("react/jsx-runtime");
13
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -56,14 +54,17 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
56
54
  * `getRowId` MUST match the one passed to <DataGrid> so the follow id and
57
55
  * the grid row id agree. Requires a <UserPersonalizationProvider>
58
56
  * ancestor (useIsFavorite throws otherwise).
57
+ *
58
+ * The per-row star itself is `RowFavoriteToggle` (gap G-36). It used to be a
59
+ * private `FavoriteCell` in this file, which made the follow control reachable
60
+ * as a DataGrid column and nowhere else — so hosts rebuilt it by hand for the
61
+ * `MobileRowCard` `leading` slot that DataGrid switches to below its
62
+ * `mobileBreakpoint`, and the copies drifted on their accessible names. Both
63
+ * now render the same component, so desktop and mobile agree by construction.
59
64
  */
60
- var DEFAULT_LABELS = Object.freeze({
61
- columnHeader: "Suivis",
62
- addFavorite: "Suivre",
63
- removeFavorite: "Ne plus suivre",
64
- statusFollowed: "Suivi",
65
- statusNotFollowed: "Non suivi"
66
- });
65
+ var DEFAULT_LABELS = Object.freeze(_objectSpread(_objectSpread({}, _RowFavoriteToggle.DEFAULT_ROW_FAVORITE_LABELS), {}, {
66
+ columnHeader: "Suivis"
67
+ }));
67
68
 
68
69
  /** Visually hidden, but exposed to assistive tech (the column's accessible name). */
69
70
  var SR_ONLY_SX = Object.freeze({
@@ -77,51 +78,6 @@ var SR_ONLY_SX = Object.freeze({
77
78
  whiteSpace: "nowrap",
78
79
  border: 0
79
80
  });
80
- function FavoriteCell(props) {
81
- var resourceKey = props.resourceKey,
82
- id = props.id,
83
- size = props.size,
84
- addLabel = props.addLabel,
85
- removeLabel = props.removeLabel,
86
- followedLabel = props.followedLabel,
87
- notFollowedLabel = props.notFollowedLabel,
88
- rowLabel = props.rowLabel;
89
- var _useIsFavorite = (0, _favorites.useIsFavorite)(resourceKey, id),
90
- isFavorite = _useIsFavorite.isFavorite,
91
- toggle = _useIsFavorite.toggle;
92
-
93
- // Action-oriented accessible name (toggle convention); aria-pressed (set
94
- // by FavoriteToggle) carries the state. Always provided, so the Tooltip
95
- // never mirrors its title onto the trigger.
96
- var action = isFavorite ? removeLabel : addLabel;
97
- var ariaLabel = rowLabel ? action + " : " + rowLabel : action;
98
- // Visible status shown on hover/focus.
99
- var statusLabel = isFavorite ? followedLabel : notFollowedLabel;
100
- var handleChange = function handleChange(_next, e) {
101
- // Don't let the toggle's click bubble to the row's onRowClick.
102
- if (e && typeof e.stopPropagation === "function") e.stopPropagation();
103
- toggle();
104
- };
105
- var handleKeyDown = function handleKeyDown(e) {
106
- // Prevent row-level Enter/Space (onRowClick) from also firing; the
107
- // button's own native activation is unaffected.
108
- e.stopPropagation();
109
- };
110
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip["default"], {
111
- title: statusLabel,
112
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FavoriteToggle["default"], {
113
- pressed: isFavorite,
114
- onChange: handleChange,
115
- onKeyDown: handleKeyDown,
116
- size: size,
117
- labels: {
118
- addFavorite: addLabel,
119
- removeFavorite: removeLabel
120
- },
121
- "aria-label": ariaLabel
122
- })
123
- });
124
- }
125
81
  /**
126
82
  * Builds a v2 DataGrid column definition for the compact follow-star column.
127
83
  */
@@ -155,14 +111,11 @@ function makeFavoriteColumn(options) {
155
111
  reorderable: false,
156
112
  width: width,
157
113
  render: function renderFavorite(row) {
158
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(FavoriteCell, {
114
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RowFavoriteToggle["default"], {
159
115
  resourceKey: resourceKey,
160
- id: getRowId(row),
116
+ rowId: getRowId(row),
161
117
  size: size,
162
- addLabel: L.addFavorite,
163
- removeLabel: L.removeFavorite,
164
- followedLabel: L.statusFollowed,
165
- notFollowedLabel: L.statusNotFollowed,
118
+ labels: L,
166
119
  rowLabel: getRowLabel ? getRowLabel(row) : undefined
167
120
  });
168
121
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FavoriteColumn.js","names":["React","_interopRequireWildcard","require","_Box","_interopRequireDefault","_FavoriteToggle","_Tooltip","_favorites","_jsxRuntime","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","Symbol","iterator","constructor","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","TypeError","Number","DEFAULT_LABELS","freeze","columnHeader","addFavorite","removeFavorite","statusFollowed","statusNotFollowed","SR_ONLY_SX","position","width","height","padding","margin","overflow","clip","whiteSpace","border","FavoriteCell","props","resourceKey","id","size","addLabel","removeLabel","followedLabel","notFollowedLabel","rowLabel","_useIsFavorite","useIsFavorite","isFavorite","toggle","action","ariaLabel","statusLabel","handleChange","_next","e","stopPropagation","handleKeyDown","jsx","title","children","pressed","onChange","onKeyDown","labels","makeFavoriteColumn","options","opts","getRowId","defaultGetRowId","r","getRowLabel","L","process","env","console","warn","header","component","sx","align","sortable","toggleable","resizable","reorderable","render","renderFavorite","row"],"sources":["../../../src/lib/v2/patterns/FavoriteColumn.tsx"],"sourcesContent":["import * as React from \"react\";\r\nimport Box from \"@mui/material/Box\";\r\nimport type { SxProps, Theme } from \"@mui/material/styles\";\r\n\r\nimport FavoriteToggle from \"../components/FavoriteToggle\";\r\nimport Tooltip from \"../components/Tooltip\";\r\nimport { useIsFavorite } from \"../personalization/capabilities/favorites\";\r\nimport type { DataGridColumn } from \"../types/datagrid\";\r\nimport type { RowId } from \"../types/common\";\r\n\r\n/**\r\n * FavoriteColumn - Portnet UI v2 (pattern)\r\n *\r\n * `makeFavoriteColumn(options)` builds a v2 DataGrid column definition for\r\n * a compact \"follow\" (suivi) star column. Spread it into the grid's\r\n * `columns` first so it sits at the LEFT of each row:\r\n *\r\n * const columns = [\r\n * makeFavoriteColumn({ resourceKey: \"ti:list\", getRowId: (r) => r.reference }),\r\n * { key: \"reference\", header: \"Référence\", ... },\r\n * ...\r\n * ];\r\n * <DataGrid columns={columns} rows={rows} getRowId={(r) => r.reference} ... />\r\n *\r\n * Behaviour:\r\n * - ALWAYS VISIBLE: the star is rendered on every row in both states\r\n * (filled ★ when followed, outline ☆ when not) — it is NOT\r\n * hover-revealed. It sits at the left of the row.\r\n * - COMPACT: no visible column header (the header carries only a\r\n * visually hidden accessible name \"Suivis\"), and a narrow 44px width,\r\n * so the column takes minimal space.\r\n * - STATUS TOOLTIP: hovering or focusing the star shows its current\r\n * status — \"Suivi\" when followed, \"Non suivi\" otherwise. The button's\r\n * accessible name stays action-oriented (\"Suivre\" / \"Ne plus suivre\",\r\n * optionally enriched with the row label) and aria-pressed conveys the\r\n * state, so screen-reader semantics are unaffected.\r\n * - `toggleable: false` keeps the column out of ColumnsToggle (the user\r\n * can't hide it); not sortable / resizable / reorderable (sorting BY\r\n * follow status is a separate concern — see useFavoritesView /\r\n * sortRowsByFavorites).\r\n * - Each cell reads useIsFavorite (a boolean selector), so toggling one\r\n * row re-renders only that row's star.\r\n * - Toggling never triggers the row's onRowClick (click + keydown\r\n * propagation stopped, mirroring the DataGrid selection checkbox).\r\n *\r\n * `getRowId` MUST match the one passed to <DataGrid> so the follow id and\r\n * the grid row id agree. Requires a <UserPersonalizationProvider>\r\n * ancestor (useIsFavorite throws otherwise).\r\n */\r\n\r\ntype FavoriteToggleSize = NonNullable<\r\n React.ComponentProps<typeof FavoriteToggle>[\"size\"]\r\n>;\r\n\r\nexport interface FavoriteColumnLabels {\r\n columnHeader: string;\r\n addFavorite: string;\r\n removeFavorite: string;\r\n statusFollowed: string;\r\n statusNotFollowed: string;\r\n}\r\n\r\nconst DEFAULT_LABELS = Object.freeze({\r\n columnHeader: \"Suivis\",\r\n addFavorite: \"Suivre\",\r\n removeFavorite: \"Ne plus suivre\",\r\n statusFollowed: \"Suivi\",\r\n statusNotFollowed: \"Non suivi\",\r\n} satisfies FavoriteColumnLabels);\r\n\r\n/** Visually hidden, but exposed to assistive tech (the column's accessible name). */\r\nconst SR_ONLY_SX = Object.freeze({\r\n position: \"absolute\",\r\n width: \"1px\",\r\n height: \"1px\",\r\n padding: 0,\r\n margin: \"-1px\",\r\n overflow: \"hidden\",\r\n clip: \"rect(0 0 0 0)\",\r\n whiteSpace: \"nowrap\",\r\n border: 0,\r\n} satisfies SxProps<Theme>);\r\n\r\ninterface FavoriteCellProps {\r\n resourceKey: string;\r\n id: RowId;\r\n size: FavoriteToggleSize;\r\n addLabel: string;\r\n removeLabel: string;\r\n followedLabel: string;\r\n notFollowedLabel: string;\r\n rowLabel?: string | undefined;\r\n}\r\n\r\nfunction FavoriteCell(props: FavoriteCellProps): React.JSX.Element {\r\n const {\r\n resourceKey,\r\n id,\r\n size,\r\n addLabel,\r\n removeLabel,\r\n followedLabel,\r\n notFollowedLabel,\r\n rowLabel,\r\n } = props;\r\n const { isFavorite, toggle } = useIsFavorite(resourceKey, id);\r\n\r\n // Action-oriented accessible name (toggle convention); aria-pressed (set\r\n // by FavoriteToggle) carries the state. Always provided, so the Tooltip\r\n // never mirrors its title onto the trigger.\r\n const action = isFavorite ? removeLabel : addLabel;\r\n const ariaLabel = rowLabel ? action + \" : \" + rowLabel : action;\r\n // Visible status shown on hover/focus.\r\n const statusLabel = isFavorite ? followedLabel : notFollowedLabel;\r\n\r\n const handleChange: NonNullable<\r\n React.ComponentProps<typeof FavoriteToggle>[\"onChange\"]\r\n > = function handleChange(_next, e) {\r\n // Don't let the toggle's click bubble to the row's onRowClick.\r\n if (e && typeof e.stopPropagation === \"function\") e.stopPropagation();\r\n toggle();\r\n };\r\n const handleKeyDown: NonNullable<\r\n React.ComponentProps<typeof FavoriteToggle>[\"onKeyDown\"]\r\n > = function handleKeyDown(e) {\r\n // Prevent row-level Enter/Space (onRowClick) from also firing; the\r\n // button's own native activation is unaffected.\r\n e.stopPropagation();\r\n };\r\n\r\n return (\r\n <Tooltip title={statusLabel}>\r\n <FavoriteToggle\r\n pressed={isFavorite}\r\n onChange={handleChange}\r\n onKeyDown={handleKeyDown}\r\n size={size}\r\n labels={{ addFavorite: addLabel, removeFavorite: removeLabel }}\r\n aria-label={ariaLabel}\r\n />\r\n </Tooltip>\r\n );\r\n}\r\n\r\nexport interface MakeFavoriteColumnOptions<T> {\r\n /** Required — follow namespace. */\r\n resourceKey: string;\r\n /** MUST match the grid's getRowId. Defaults to (r) => r.id. */\r\n getRowId?: ((row: T) => RowId) | undefined;\r\n /** Column key. @default \"__favorite__\" */\r\n key?: string | undefined;\r\n /** Toggle size (sm fits dense rows). @default \"sm\" */\r\n size?: FavoriteToggleSize | undefined;\r\n /** Column width (narrow / compact). @default 44 */\r\n width?: number | string | undefined;\r\n /** (row) => string, enriches the per-row aria-label. */\r\n getRowLabel?: ((row: T) => string) | undefined;\r\n labels?: Partial<FavoriteColumnLabels> | undefined;\r\n}\r\n\r\n/**\r\n * Builds a v2 DataGrid column definition for the compact follow-star column.\r\n */\r\nexport default function makeFavoriteColumn<T>(\r\n options: MakeFavoriteColumnOptions<T>\r\n): DataGridColumn<T> {\r\n const opts = options;\r\n const resourceKey = opts.resourceKey;\r\n const getRowId: (row: T) => RowId =\r\n typeof opts.getRowId === \"function\"\r\n ? opts.getRowId\r\n : function defaultGetRowId(r: T): RowId {\r\n return (r as { id: RowId }).id;\r\n };\r\n const key = opts.key || \"__favorite__\";\r\n const size = opts.size || \"sm\";\r\n const width: number | string = opts.width != null ? opts.width : 44;\r\n const getRowLabel =\r\n typeof opts.getRowLabel === \"function\" ? opts.getRowLabel : null;\r\n const L: FavoriteColumnLabels = opts.labels\r\n ? { ...DEFAULT_LABELS, ...opts.labels }\r\n : DEFAULT_LABELS;\r\n\r\n if (process.env[\"NODE_ENV\"] !== \"production\" && !resourceKey) {\r\n // eslint-disable-next-line no-console\r\n console.warn(\r\n \"[@portnet/ui v2] makeFavoriteColumn: `resourceKey` is required to scope follows.\"\r\n );\r\n }\r\n\r\n return {\r\n key: key,\r\n header: (\r\n <Box component=\"span\" sx={SR_ONLY_SX}>\r\n {L.columnHeader}\r\n </Box>\r\n ),\r\n align: \"center\",\r\n sortable: false,\r\n toggleable: false, // kept out of ColumnsToggle (cannot be hidden)\r\n resizable: false,\r\n reorderable: false,\r\n width: width,\r\n render: function renderFavorite(row: T): React.ReactNode {\r\n return (\r\n <FavoriteCell\r\n resourceKey={resourceKey}\r\n id={getRowId(row)}\r\n size={size}\r\n addLabel={L.addFavorite}\r\n removeLabel={L.removeFavorite}\r\n followedLabel={L.statusFollowed}\r\n notFollowedLabel={L.statusNotFollowed}\r\n rowLabel={getRowLabel ? getRowLabel(row) : undefined}\r\n />\r\n );\r\n },\r\n };\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAA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C;IAEN;EACF,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"file":"FavoriteColumn.js","names":["React","_interopRequireWildcard","require","_Box","_interopRequireDefault","_RowFavoriteToggle","_jsxRuntime","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","Symbol","iterator","constructor","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","TypeError","Number","DEFAULT_LABELS","freeze","DEFAULT_ROW_FAVORITE_LABELS","columnHeader","SR_ONLY_SX","position","width","height","padding","margin","overflow","clip","whiteSpace","border","makeFavoriteColumn","options","opts","resourceKey","getRowId","defaultGetRowId","r","id","size","getRowLabel","L","labels","process","env","console","warn","header","jsx","component","sx","children","align","sortable","toggleable","resizable","reorderable","render","renderFavorite","row","rowId","rowLabel"],"sources":["../../../src/lib/v2/patterns/FavoriteColumn.tsx"],"sourcesContent":["import * as React from \"react\";\r\nimport Box from \"@mui/material/Box\";\r\nimport type { SxProps, Theme } from \"@mui/material/styles\";\r\n\r\nimport RowFavoriteToggle, {\r\n DEFAULT_ROW_FAVORITE_LABELS,\r\n} from \"./RowFavoriteToggle\";\r\nimport type {\r\n FavoriteToggleSize,\r\n RowFavoriteToggleLabels,\r\n} from \"./RowFavoriteToggle\";\r\nimport type { DataGridColumn } from \"../types/datagrid\";\r\nimport type { RowId } from \"../types/common\";\r\n\r\n/**\r\n * FavoriteColumn - Portnet UI v2 (pattern)\r\n *\r\n * `makeFavoriteColumn(options)` builds a v2 DataGrid column definition for\r\n * a compact \"follow\" (suivi) star column. Spread it into the grid's\r\n * `columns` first so it sits at the LEFT of each row:\r\n *\r\n * const columns = [\r\n * makeFavoriteColumn({ resourceKey: \"ti:list\", getRowId: (r) => r.reference }),\r\n * { key: \"reference\", header: \"Référence\", ... },\r\n * ...\r\n * ];\r\n * <DataGrid columns={columns} rows={rows} getRowId={(r) => r.reference} ... />\r\n *\r\n * Behaviour:\r\n * - ALWAYS VISIBLE: the star is rendered on every row in both states\r\n * (filled ★ when followed, outline ☆ when not) — it is NOT\r\n * hover-revealed. It sits at the left of the row.\r\n * - COMPACT: no visible column header (the header carries only a\r\n * visually hidden accessible name \"Suivis\"), and a narrow 44px width,\r\n * so the column takes minimal space.\r\n * - STATUS TOOLTIP: hovering or focusing the star shows its current\r\n * status — \"Suivi\" when followed, \"Non suivi\" otherwise. The button's\r\n * accessible name stays action-oriented (\"Suivre\" / \"Ne plus suivre\",\r\n * optionally enriched with the row label) and aria-pressed conveys the\r\n * state, so screen-reader semantics are unaffected.\r\n * - `toggleable: false` keeps the column out of ColumnsToggle (the user\r\n * can't hide it); not sortable / resizable / reorderable (sorting BY\r\n * follow status is a separate concern — see useFavoritesView /\r\n * sortRowsByFavorites).\r\n * - Each cell reads useIsFavorite (a boolean selector), so toggling one\r\n * row re-renders only that row's star.\r\n * - Toggling never triggers the row's onRowClick (click + keydown\r\n * propagation stopped, mirroring the DataGrid selection checkbox).\r\n *\r\n * `getRowId` MUST match the one passed to <DataGrid> so the follow id and\r\n * the grid row id agree. Requires a <UserPersonalizationProvider>\r\n * ancestor (useIsFavorite throws otherwise).\r\n *\r\n * The per-row star itself is `RowFavoriteToggle` (gap G-36). It used to be a\r\n * private `FavoriteCell` in this file, which made the follow control reachable\r\n * as a DataGrid column and nowhere else — so hosts rebuilt it by hand for the\r\n * `MobileRowCard` `leading` slot that DataGrid switches to below its\r\n * `mobileBreakpoint`, and the copies drifted on their accessible names. Both\r\n * now render the same component, so desktop and mobile agree by construction.\r\n */\r\n\r\nexport interface FavoriteColumnLabels extends RowFavoriteToggleLabels {\r\n columnHeader: string;\r\n}\r\n\r\nconst DEFAULT_LABELS = Object.freeze({\r\n ...DEFAULT_ROW_FAVORITE_LABELS,\r\n columnHeader: \"Suivis\",\r\n} satisfies FavoriteColumnLabels);\r\n\r\n/** Visually hidden, but exposed to assistive tech (the column's accessible name). */\r\nconst SR_ONLY_SX = Object.freeze({\r\n position: \"absolute\",\r\n width: \"1px\",\r\n height: \"1px\",\r\n padding: 0,\r\n margin: \"-1px\",\r\n overflow: \"hidden\",\r\n clip: \"rect(0 0 0 0)\",\r\n whiteSpace: \"nowrap\",\r\n border: 0,\r\n} satisfies SxProps<Theme>);\r\n\r\nexport interface MakeFavoriteColumnOptions<T> {\r\n /** Required — follow namespace. */\r\n resourceKey: string;\r\n /** MUST match the grid's getRowId. Defaults to (r) => r.id. */\r\n getRowId?: ((row: T) => RowId) | undefined;\r\n /** Column key. @default \"__favorite__\" */\r\n key?: string | undefined;\r\n /** Toggle size (sm fits dense rows). @default \"sm\" */\r\n size?: FavoriteToggleSize | undefined;\r\n /** Column width (narrow / compact). @default 44 */\r\n width?: number | string | undefined;\r\n /** (row) => string, enriches the per-row aria-label. */\r\n getRowLabel?: ((row: T) => string) | undefined;\r\n labels?: Partial<FavoriteColumnLabels> | undefined;\r\n}\r\n\r\n/**\r\n * Builds a v2 DataGrid column definition for the compact follow-star column.\r\n */\r\nexport default function makeFavoriteColumn<T>(\r\n options: MakeFavoriteColumnOptions<T>\r\n): DataGridColumn<T> {\r\n const opts = options;\r\n const resourceKey = opts.resourceKey;\r\n const getRowId: (row: T) => RowId =\r\n typeof opts.getRowId === \"function\"\r\n ? opts.getRowId\r\n : function defaultGetRowId(r: T): RowId {\r\n return (r as { id: RowId }).id;\r\n };\r\n const key = opts.key || \"__favorite__\";\r\n const size = opts.size || \"sm\";\r\n const width: number | string = opts.width != null ? opts.width : 44;\r\n const getRowLabel =\r\n typeof opts.getRowLabel === \"function\" ? opts.getRowLabel : null;\r\n const L: FavoriteColumnLabels = opts.labels\r\n ? { ...DEFAULT_LABELS, ...opts.labels }\r\n : DEFAULT_LABELS;\r\n\r\n if (process.env[\"NODE_ENV\"] !== \"production\" && !resourceKey) {\r\n // eslint-disable-next-line no-console\r\n console.warn(\r\n \"[@portnet/ui v2] makeFavoriteColumn: `resourceKey` is required to scope follows.\"\r\n );\r\n }\r\n\r\n return {\r\n key: key,\r\n header: (\r\n <Box component=\"span\" sx={SR_ONLY_SX}>\r\n {L.columnHeader}\r\n </Box>\r\n ),\r\n align: \"center\",\r\n sortable: false,\r\n toggleable: false, // kept out of ColumnsToggle (cannot be hidden)\r\n resizable: false,\r\n reorderable: false,\r\n width: width,\r\n render: function renderFavorite(row: T): React.ReactNode {\r\n return (\r\n <RowFavoriteToggle\r\n resourceKey={resourceKey}\r\n rowId={getRowId(row)}\r\n size={size}\r\n labels={L}\r\n rowLabel={getRowLabel ? getRowLabel(row) : undefined}\r\n />\r\n );\r\n },\r\n };\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,kBAAA,GAAAJ,uBAAA,CAAAC,OAAA;AAE6B,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAE,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAT,wBAAAM,GAAA,EAAAG,WAAA,SAAAA,WAAA,IAAAH,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAO,OAAA,CAAAP,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAQ,KAAA,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,CAAE;QACrBpB,IAAI,EAAEA,IAAK;QACXG,MAAM,EAAED,CAAE;QACVoB,QAAQ,EAAErB,WAAW,GAAGA,WAAW,CAACmB,GAAG,CAAC,GAAG9C;MAAU,CACtD,CAAC;IAEN;EACF,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * FormikCheckbox — bridge between Formik state and v2.Field + v2.Checkbox,
3
+ * for a SINGLE BOOLEAN field.
4
+ *
5
+ * ── WHY THIS EXISTS ALONGSIDE FormikCheckboxGroup (gap G-A) ──────────
6
+ *
7
+ * `FormikCheckboxGroup` holds an ARRAY of selected values. That is the right
8
+ * model for "pick several from a list", and the wrong one for a lone flag:
9
+ *
10
+ * autreInfo.fabrication -> boolean
11
+ * objectDeclaration.premiereDeclaration -> boolean
12
+ *
13
+ * A host with boolean-shaped state cannot adopt the group bridge without
14
+ * changing what its payload sends, so every module ended up re-wiring
15
+ * `Checkbox` + `useField` by hand — the exact duplication R-2.1 forbids, and
16
+ * the one place where it hurts most: hand-rolled bridges lose the error
17
+ * rendering. Reported from refonte-frontend (lot 5), whose local masked/checked
18
+ * inputs displayed no validation message at all, so a required-field error was
19
+ * invisible to the user (R-4.1 MUST).
20
+ *
21
+ * Usage:
22
+ *
23
+ * import { FormikCheckbox } from "@portnet/ui/lib/v2";
24
+ *
25
+ * <FormikCheckbox
26
+ * name="autreInfo.fabrication"
27
+ * label="Fabrication"
28
+ * />
29
+ *
30
+ * <FormikCheckbox
31
+ * name="conditions"
32
+ * label="J'accepte les conditions"
33
+ * required
34
+ * hint="Obligatoire pour soumettre la demande"
35
+ * />
36
+ *
37
+ * ── WHY THE CHECKBOX IS WRAPPED IN A CheckboxGroup ──────────────────
38
+ *
39
+ * `Field` clones its child with `error` and `disabled` props, because several
40
+ * v2 inputs read them directly. `MuiCheckbox` spreads unknown props down to
41
+ * the native `<input>`, so a bare `Checkbox` inside `Field` would emit
42
+ * `error="false"` onto the DOM (React warning, invalid attribute).
43
+ * `CheckboxGroup` destructures its props explicitly and drops the rest, and it
44
+ * forwards the ARIA grouping attributes `Field` injects. Same composition as
45
+ * `FormikCheckboxGroup`, for the same reason.
46
+ *
47
+ * ── LABEL AND REQUIRED ──────────────────────────────────────────────
48
+ *
49
+ * The label belongs to the CHECKBOX (rendered by `FormControlLabel`, which
50
+ * names the input implicitly), not above the field: a lone checkbox with a
51
+ * field label AND a control label reads as two questions. `Field` therefore
52
+ * receives no label, and `required` is expressed twice where it counts —
53
+ * visually by the asterisk appended to the control label, and to assistive
54
+ * technology by `aria-required` on the input itself (`Field`'s own injection
55
+ * lands on the group, which does not forward it).
56
+ *
57
+ * Errors surface only once the field is touched, and toggling marks it touched
58
+ * — same semantics as `FormikCheckboxGroup`. A checkbox has no meaningful
59
+ * blur-before-change, so waiting for a blur would keep the message hidden.
60
+ *
61
+ * Charter §03 · R-I.2, R-I.3, R-4.1. Peer dependency: formik >= 2.x.
62
+ */
63
+ import * as React from "react";
64
+ export interface FormikCheckboxProps {
65
+ name: string;
66
+ /** Label rendered next to the checkbox — it names the control. */
67
+ label?: React.ReactNode | undefined;
68
+ /** Adds the asterisk on the label and `aria-required` on the input. */
69
+ required?: boolean | undefined;
70
+ disabled?: boolean | undefined;
71
+ hint?: React.ReactNode | undefined;
72
+ /** Native `<input>` attributes, routed to the checkbox input (v9 slot). */
73
+ inputProps?: React.InputHTMLAttributes<HTMLInputElement> | undefined;
74
+ }
75
+ declare const FormikCheckbox: ({ name, label, required, disabled, hint, inputProps, }: FormikCheckboxProps) => React.JSX.Element;
76
+ export default FormikCheckbox;
77
+ //# sourceMappingURL=FormikCheckbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormikCheckbox.d.ts","sourceRoot":"","sources":["../../../src/lib/v2/patterns/FormikCheckbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;IACpC,uEAAuE;IACvE,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;IACnC,2EAA2E;IAC3E,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;CACtE;AAED,QAAA,MAAM,cAAc,GAAI,wDAOrB,mBAAmB,sBAwDrB,CAAC;AAEF,eAAe,cAAc,CAAC"}