@inseefr/lunatic 2.7.20-rc.2 → 3.0.0-rc.1

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 (856) hide show
  1. package/lib/components/CheckboxBoolean/CheckboxBoolean.js +45 -0
  2. package/lib/components/{checkbox/checkbox-boolean/html/checkbox-boolean.spec.js → CheckboxBoolean/CheckboxBoolean.spec.js} +25 -14
  3. package/lib/components/CheckboxGroup/CheckboxGroup.js +50 -0
  4. package/lib/components/CheckboxGroup/CheckboxGroup.scss +13 -0
  5. package/lib/components/CheckboxGroup/CustomCheckboxGroup.js +45 -0
  6. package/lib/components/{checkbox/checkbox-group/html/checkbox-group-content.spec.js → CheckboxGroup/CustomCheckboxGroup.spec.js} +2 -3
  7. package/lib/components/CheckboxOne/CheckboxOne.js +39 -0
  8. package/lib/components/{checkbox/checkbox-one/html/checkbox-one.spec.js → CheckboxOne/CheckboxOne.spec.js} +14 -7
  9. package/lib/components/{component-set/lunatic-component-set.js → ComponentSet/ComponentSet.js} +47 -35
  10. package/lib/components/{datepicker/html/datepicker.js → Datepicker/Datepicker.js} +29 -18
  11. package/lib/components/Datepicker/Datepicker.spec.js +92 -0
  12. package/lib/components/{datepicker/html/__snapshots__/datepicker.spec.tsx.snap → Datepicker/__snapshots__/Datepicker.spec.tsx.snap} +0 -63
  13. package/lib/components/Dropdown/Dropdown.js +63 -0
  14. package/lib/components/Dropdown/Dropdown.spec.js +49 -0
  15. package/lib/components/{dropdown/html/dropdown-writable/dropdown-writable.js → Dropdown/DropdownWritable.js} +10 -12
  16. package/lib/components/{dropdown/html/__snapshots__/dropdown.spec.tsx.snap → Dropdown/__snapshots__/Dropdown.spec.tsx.snap} +3 -3
  17. package/lib/components/Dropdown/helpers.js +94 -0
  18. package/lib/components/{dropdown/html/dropdown-simple/simple-label-renderer.js → Dropdown/renderer/SimpleLabelRenderer.js} +2 -3
  19. package/lib/components/{dropdown/html/dropdown-simple/simple-option-renderer.js → Dropdown/renderer/SimpleOptionRenderer.js} +2 -4
  20. package/lib/components/{dropdown/html/dropdown-writable/writable-label-renderer.js → Dropdown/renderer/WritableLabelRenderer.js} +2 -3
  21. package/lib/components/{dropdown/html/dropdown-writable/writable-option-renderer.js → Dropdown/renderer/WritableOptionRenderer.js} +8 -11
  22. package/lib/components/{duration/durationInput.js → Duration/Duration.js} +14 -11
  23. package/lib/components/{filter-description/component.js → FilterDescription/FilterDescription.js} +4 -5
  24. package/lib/components/{filter-description/component.spec.js → FilterDescription/FilterDescription.spec.js} +3 -5
  25. package/lib/components/Input/Input.js +62 -0
  26. package/lib/components/{input/html/input.spec.js → Input/Input.spec.js} +26 -23
  27. package/lib/components/InputNumber/InputNumber.js +70 -0
  28. package/lib/components/{input-number/html/input-number.spec.js → InputNumber/InputNumber.spec.js} +40 -46
  29. package/lib/components/{input-number/html/input-number-thousand.js → InputNumber/InputNumberThousand.js} +4 -5
  30. package/lib/components/{input-number/html/__snapshots__/input-number.spec.tsx.snap → InputNumber/__snapshots__/InputNumber.spec.tsx.snap} +3 -3
  31. package/lib/components/{loop/block-for-loop.js → Loop/Loop.js} +18 -22
  32. package/lib/components/{lunatic-components.js → LunaticComponents.js} +22 -7
  33. package/lib/components/{pairwise-links/pairwise-links.js → PairwiseLinks/PairwiseLinks.js} +13 -16
  34. package/lib/components/Question/Question.js +45 -0
  35. package/lib/components/Radio/Radio.js +41 -0
  36. package/lib/components/{loop/roster-for-loop/roster-for-loop.js → RosterForLoop/RosterForLoop.js} +33 -37
  37. package/lib/components/{loop/roster-for-loop/roster-for-loop.spec.js → RosterForLoop/RosterForLoop.spec.js} +2 -2
  38. package/lib/components/{roundabout/roundabout.js → Roundabout/CustomRoundabout.js} +12 -18
  39. package/lib/components/{roundabout/lunatic-roundabout.js → Roundabout/Roundabout.js} +7 -8
  40. package/lib/components/{roundabout/components/roundabout-it-button.js → Roundabout/RoundaboutItButton.js} +40 -41
  41. package/lib/components/{roundabout/components/roundabout-it-button.spec.js → Roundabout/RoundaboutItButton.spec.js} +10 -11
  42. package/lib/components/{roundabout/redirect.js → Roundabout/RoundaboutRedirect.js} +3 -4
  43. package/lib/components/Roundabout/extra.js +44 -0
  44. package/lib/components/{roundabout → Roundabout}/redirect.spec.js +3 -5
  45. package/lib/components/{roundabout → Roundabout}/roundabout.spec.js +4 -4
  46. package/lib/components/Sequence/Sequence.js +33 -0
  47. package/lib/components/Subsequence/Subsequence.js +27 -0
  48. package/lib/components/{subsequence/subsequence.spec.js → Subsequence/Subsequence.spec.js} +9 -30
  49. package/lib/components/{suggester/html/suggester.js → Suggester/CustomSuggester.js} +9 -10
  50. package/lib/components/Suggester/Suggester.js +77 -0
  51. package/lib/components/{suggester/html/default-style.scss → Suggester/Suggester.scss} +3 -3
  52. package/lib/components/{suggester/idb-suggester/suggester-notification.js → Suggester/SuggesterNotification.js} +16 -16
  53. package/lib/components/{suggester/idb-suggester/suggester-status.js → Suggester/SuggesterStatus.js} +5 -7
  54. package/lib/components/{suggester/searching/create-searching.js → Suggester/helpers.js} +4 -5
  55. package/lib/components/{summary/lunatic-summary.js → Summary/Summary.js} +72 -59
  56. package/lib/components/{switch/html/switch.js → Switch/Switch.js} +32 -16
  57. package/lib/components/Table/Table.js +65 -0
  58. package/lib/components/Textarea/Textarea.js +60 -0
  59. package/lib/components/Textarea/Textarea.spec.js +46 -0
  60. package/lib/components/library.js +55 -0
  61. package/lib/components/{button/lunatic-button.js → shared/Button/Button.js} +7 -7
  62. package/lib/components/{button/lunatic-button.spec.js → shared/Button/Button.spec.js} +10 -12
  63. package/lib/components/{commons/components/fab/fab.js → shared/Button/IconButton.js} +5 -6
  64. package/lib/components/{commons/components/fab/fab.scss → shared/Button/IconButton.scss} +1 -0
  65. package/lib/components/{commons/components/fab/fab.spec.js → shared/Button/IconButton.spec.js} +9 -9
  66. package/lib/components/{checkbox/commons/checkbox-option.js → shared/Checkbox/CheckboxOption.js} +9 -8
  67. package/lib/components/{checkbox/commons/checkbox-option.spec.js → shared/Checkbox/CheckboxOption.spec.js} +8 -9
  68. package/lib/components/{commons/components/combo-box/combo-box.js → shared/Combobox/Combobox.js} +26 -26
  69. package/lib/components/{commons/components/combo-box/combo-box.stories.js → shared/Combobox/Combobox.stories.js} +6 -7
  70. package/lib/components/{commons/components/combo-box/combo-box-container.js → shared/Combobox/ComboboxContainer.js} +6 -7
  71. package/lib/components/{commons/components/combo-box/combo-box-container.spec.js → shared/Combobox/ComboboxContainer.spec.js} +6 -8
  72. package/lib/components/{commons/components/combo-box/combo-box-content.js → shared/Combobox/ComboboxContent.js} +11 -14
  73. package/lib/components/{commons/components/combo-box/combo-box-content-box.js → shared/Combobox/ComboboxContentBox.js} +4 -6
  74. package/lib/components/{commons/components/combo-box/panel/combo-box-option.js → shared/Combobox/Panel/ComboboxOption.js} +4 -5
  75. package/lib/components/{commons/components/combo-box/panel/combo-box-option.spec.js → shared/Combobox/Panel/ComboboxOption.spec.js} +6 -8
  76. package/lib/components/{commons/components/combo-box/panel/option-container.js → shared/Combobox/Panel/ComboboxOptionContainer.js} +2 -2
  77. package/lib/components/{commons/components/combo-box/panel/option-container.spec.js → shared/Combobox/Panel/ComboboxOptionContainer.spec.js} +4 -4
  78. package/lib/components/{commons/components/combo-box/panel/panel.js → shared/Combobox/Panel/ComboboxPanel.js} +11 -9
  79. package/lib/components/{commons/components/combo-box/panel/panel.spec.js → shared/Combobox/Panel/ComboboxPanel.spec.js} +5 -5
  80. package/lib/components/{commons/components/combo-box/panel/panel-container.js → shared/Combobox/Panel/ComboboxPanelContainer.js} +4 -5
  81. package/lib/components/{commons/components/combo-box/panel/panel-container.spec.js → shared/Combobox/Panel/ComboboxPanelContainer.spec.js} +7 -8
  82. package/lib/components/{commons/components/combo-box/selection/clear-button.js → shared/Combobox/Selection/ComboboxClearButton.js} +8 -8
  83. package/lib/components/{commons/components/combo-box/selection/clear-button.spec.js → shared/Combobox/Selection/ComboboxClearButton.spec.js} +9 -9
  84. package/lib/components/{commons/components/combo-box/selection/input.js → shared/Combobox/Selection/ComboboxInput.js} +4 -4
  85. package/lib/components/{commons/components/combo-box/selection/combo-box-label-selection.js → shared/Combobox/Selection/ComboboxLabelSelection.js} +8 -11
  86. package/lib/components/{commons/components/combo-box/selection/combo-box-label-selection.spec.js → shared/Combobox/Selection/ComboboxLabelSelection.spec.js} +5 -7
  87. package/lib/components/shared/Combobox/Selection/ComboboxSelection.js +68 -0
  88. package/lib/components/{commons/components/combo-box/selection/selection.spec.js → shared/Combobox/Selection/ComboboxSelection.spec.js} +7 -7
  89. package/lib/components/{commons/components/combo-box/selection/__snapshots__/selection.spec.tsx.snap → shared/Combobox/Selection/__snapshots__/ComboboxSelection.spec.tsx.snap} +1 -9
  90. package/lib/components/shared/Combobox/index.js +1 -0
  91. package/lib/components/{commons/components/errors/errors.js → shared/ComponentErrors/ComponentErrors.js} +9 -8
  92. package/lib/components/shared/ComponentErrors/ComponentErrors.spec.js +44 -0
  93. package/lib/components/shared/ComponentWrapper.js +68 -0
  94. package/lib/components/shared/Declarations/Declarations.js +47 -0
  95. package/lib/components/{declarations/declarations.spec.js → shared/Declarations/Declarations.spec.js} +7 -8
  96. package/lib/components/shared/Fieldset/Fieldset.js +44 -0
  97. package/lib/components/shared/Fieldset/Fieldset.spec.js +37 -0
  98. package/lib/components/{commons/create-customizable-field.js → shared/HOC/customizedComponent.js} +9 -8
  99. package/lib/components/{commons/icons → shared/Icons}/index.js +4 -4
  100. package/lib/components/shared/Label/Label.js +36 -0
  101. package/lib/components/shared/Label/Label.spec.js +45 -0
  102. package/lib/components/shared/LabelDescription.js +21 -0
  103. package/lib/components/{commons/components/md-label/md-label.js → shared/MDLabel/MDLabel.js} +8 -9
  104. package/lib/components/{commons/components/md-label/md-label.spec.js → shared/MDLabel/MDLabel.spec.js} +8 -8
  105. package/lib/components/{commons/components/md-label/link.js → shared/MDLabel/MDLabelLink.js} +13 -9
  106. package/lib/components/{commons/components/md-label/router-link.js → shared/MDLabel/RouterLink.js} +6 -8
  107. package/lib/components/shared/MDLabel/generateUniqueId.js +1 -0
  108. package/lib/components/{commons/components/missing/missing.js → shared/Missing/Missing.js} +18 -21
  109. package/lib/components/{commons/components/missing/missing.spec.js → shared/Missing/Missing.spec.js} +4 -4
  110. package/lib/components/shared/ModalControls/ModalControls.js +85 -0
  111. package/lib/components/{modal-controls/modal-controls.spec.js → shared/ModalControls/ModalControls.spec.js} +4 -5
  112. package/lib/components/{suggester/html/notification.js → shared/Notification.js} +4 -4
  113. package/lib/components/shared/Radio/RadioGroup.js +67 -0
  114. package/lib/components/{radio/html/radio-option.js → shared/Radio/RadioOption.js} +11 -10
  115. package/lib/components/{radio/html/radio-option.spec.js → shared/Radio/RadioOption.spec.js} +9 -10
  116. package/lib/components/{commons/components/html-table/table.js → shared/Table/Table.js} +5 -5
  117. package/lib/components/{commons/components/html-table/table.spec.js → shared/Table/Table.spec.js} +3 -3
  118. package/lib/components/{table/table-header.js → shared/Table/TableHeader.js} +6 -4
  119. package/lib/components/{commons/components/html-table/tbody.js → shared/Table/Tbody.js} +4 -4
  120. package/lib/components/{commons/components/html-table/tbody.spec.js → shared/Table/Tbody.spec.js} +3 -3
  121. package/lib/components/{commons/components/html-table/td.js → shared/Table/Td.js} +4 -4
  122. package/lib/components/{commons/components/html-table/td.spec.js → shared/Table/Td.spec.js} +2 -2
  123. package/lib/components/{commons/components/html-table/th.js → shared/Table/Th.js} +4 -4
  124. package/lib/components/{commons/components/html-table/th.spec.js → shared/Table/Th.spec.js} +5 -5
  125. package/lib/components/{commons/components/html-table/thead.js → shared/Table/Thead.js} +4 -4
  126. package/lib/components/{commons/components/html-table/thead.spec.js → shared/Table/Thead.spec.js} +5 -5
  127. package/lib/components/{commons/components/html-table/tr.js → shared/Table/Tr.js} +4 -4
  128. package/lib/components/{commons/components/html-table/tr.spec.js → shared/Table/Tr.spec.js} +3 -3
  129. package/lib/components/{commons/components/html-table → shared/Table}/index.js +19 -12
  130. package/lib/components/{commons/components/variable-status/variable-status.js → shared/VariableStatus/VariableStatus.js} +9 -24
  131. package/lib/components/{commons/components/variable-status/variable-status.scss → shared/VariableStatus/VariableStatus.scss} +1 -1
  132. package/lib/components/{commons/components/variable-status/variable-status.spec.js → shared/VariableStatus/VariableStatus.spec.js} +3 -3
  133. package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.js +4 -3
  134. package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/is-network.js +2 -2
  135. package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/loader-row.js +5 -5
  136. package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/loader.js +3 -3
  137. package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget.js +7 -7
  138. package/lib/components/type-custom.js +5 -0
  139. package/lib/{utils/store-tools/constantes.js → constants/indexedDBStore.js} +2 -2
  140. package/lib/{components/commons/use-document-add-event-listener.js → hooks/useDocumentEvent.js} +3 -3
  141. package/lib/{components/commons/use-options-keydown.js → hooks/useListKeyboardHandler.js} +6 -4
  142. package/lib/{components/suggester/idb-suggester/check-store.js → hooks/useSuggesterInfo.js} +24 -69
  143. package/lib/i18n/build-dictionary.js +2 -2
  144. package/lib/i18n/index.js +2 -2
  145. package/lib/index.js +24 -25
  146. package/lib/src/components/CheckboxBoolean/CheckboxBoolean.d.ts +6 -0
  147. package/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +11 -0
  148. package/lib/src/components/CheckboxGroup/CustomCheckboxGroup.d.ts +13 -0
  149. package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +12 -0
  150. package/lib/src/components/ComponentSet/ComponentSet.d.ts +7 -0
  151. package/lib/src/components/Datepicker/Datepicker.d.ts +12 -0
  152. package/lib/src/components/Dropdown/Dropdown.d.ts +13 -0
  153. package/lib/src/components/Dropdown/DropdownWritable.d.ts +17 -0
  154. package/lib/src/components/Dropdown/helpers.d.ts +19 -0
  155. package/lib/src/components/Dropdown/renderer/SimpleLabelRenderer.d.ts +8 -0
  156. package/lib/src/components/Dropdown/renderer/SimpleOptionRenderer.d.ts +7 -0
  157. package/lib/src/components/Dropdown/renderer/WritableLabelRenderer.d.ts +8 -0
  158. package/lib/src/components/Dropdown/renderer/WritableOptionRenderer.d.ts +8 -0
  159. package/lib/src/components/Duration/Duration.d.ts +8 -0
  160. package/lib/src/components/{filter-description/component.d.ts → FilterDescription/FilterDescription.d.ts} +2 -2
  161. package/lib/src/components/Input/Input.d.ts +9 -0
  162. package/lib/src/components/InputNumber/InputNumber.d.ts +11 -0
  163. package/lib/src/components/{input-number/html/input-number-thousand.d.ts → InputNumber/InputNumberThousand.d.ts} +2 -2
  164. package/lib/src/components/{loop/block-for-loop.d.ts → Loop/Loop.d.ts} +2 -2
  165. package/lib/src/components/{question → Question}/Question.d.ts +2 -2
  166. package/lib/src/components/{radio/lunatic-radio-group.d.ts → Radio/Radio.d.ts} +1 -2
  167. package/lib/src/components/{loop/roster-for-loop/roster-for-loop.d.ts → RosterForLoop/RosterForLoop.d.ts} +5 -3
  168. package/lib/src/components/{roundabout/roundabout.d.ts → Roundabout/CustomRoundabout.d.ts} +2 -2
  169. package/lib/src/components/Roundabout/Roundabout.d.ts +6 -0
  170. package/lib/src/components/{roundabout/components/roundabout-it-button.d.ts → Roundabout/RoundaboutItButton.d.ts} +2 -2
  171. package/lib/src/components/Roundabout/RoundaboutRedirect.d.ts +6 -0
  172. package/lib/src/components/Roundabout/extra.d.ts +14 -0
  173. package/lib/src/components/Sequence/Sequence.d.ts +3 -0
  174. package/lib/src/components/Subsequence/Subsequence.d.ts +2 -0
  175. package/lib/src/components/{suggester/html/suggester.d.ts → Suggester/CustomSuggester.d.ts} +6 -7
  176. package/lib/src/components/Suggester/Suggester.d.ts +3 -0
  177. package/lib/src/components/{suggester/idb-suggester/suggester-notification.d.ts → Suggester/SuggesterNotification.d.ts} +3 -3
  178. package/lib/src/components/{suggester/idb-suggester/suggester-status.d.ts → Suggester/SuggesterStatus.d.ts} +1 -1
  179. package/lib/src/components/Suggester/helpers.d.ts +6 -0
  180. package/lib/src/components/Summary/Summary.d.ts +25 -0
  181. package/lib/src/components/Switch/Switch.d.ts +10 -0
  182. package/lib/src/components/Table/Table.d.ts +2 -0
  183. package/lib/src/components/Textarea/Textarea.d.ts +11 -0
  184. package/lib/src/components/library.d.ts +161 -0
  185. package/lib/src/components/{button/lunatic-button.d.ts → shared/Button/Button.d.ts} +3 -3
  186. package/lib/src/components/shared/Button/IconButton.d.ts +7 -0
  187. package/lib/src/components/{checkbox/commons/checkbox-option.d.ts → shared/Checkbox/CheckboxOption.d.ts} +2 -3
  188. package/lib/src/components/shared/Combobox/Combobox.d.ts +21 -0
  189. package/lib/src/components/shared/Combobox/Combobox.stories.d.ts +6 -0
  190. package/lib/src/components/{commons/components/combo-box/combo-box-container.d.ts → shared/Combobox/ComboboxContainer.d.ts} +3 -3
  191. package/lib/src/components/{commons/components/combo-box/combo-box-content.d.ts → shared/Combobox/ComboboxContent.d.ts} +2 -2
  192. package/lib/src/components/shared/Combobox/ComboboxContentBox.d.ts +7 -0
  193. package/lib/src/components/shared/Combobox/ComboboxType.d.ts +50 -0
  194. package/lib/src/components/shared/Combobox/Panel/ComboboxOption.d.ts +8 -0
  195. package/lib/src/components/{commons/components/combo-box/panel/option-container.d.ts → shared/Combobox/Panel/ComboboxOptionContainer.d.ts} +1 -1
  196. package/lib/src/components/shared/Combobox/Panel/ComboboxPanel.d.ts +5 -0
  197. package/lib/src/components/{commons/components/combo-box/panel/panel-container.d.ts → shared/Combobox/Panel/ComboboxPanelContainer.d.ts} +2 -2
  198. package/lib/src/components/{commons/components/combo-box/selection/clear-button.d.ts → shared/Combobox/Selection/ComboboxClearButton.d.ts} +1 -1
  199. package/lib/src/components/{commons/components/combo-box/selection/input.d.ts → shared/Combobox/Selection/ComboboxInput.d.ts} +1 -2
  200. package/lib/src/components/shared/Combobox/Selection/ComboboxLabelSelection.d.ts +11 -0
  201. package/lib/src/components/shared/Combobox/Selection/ComboboxSelection.d.ts +6 -0
  202. package/lib/src/components/shared/Combobox/index.d.ts +0 -0
  203. package/lib/src/components/shared/ComponentErrors/ComponentErrors.d.ts +15 -0
  204. package/lib/src/components/shared/ComponentWrapper.d.ts +26 -0
  205. package/lib/src/components/shared/Declarations/Declarations.d.ts +17 -0
  206. package/lib/src/components/shared/Fieldset/Fieldset.d.ts +10 -0
  207. package/lib/src/components/shared/HOC/customizedComponent.d.ts +5 -0
  208. package/lib/src/components/shared/Icons/index.d.ts +10 -0
  209. package/lib/src/components/shared/Label/Label.d.ts +11 -0
  210. package/lib/src/components/shared/LabelDescription.d.ts +7 -0
  211. package/lib/src/components/{commons/components/md-label/md-label.d.ts → shared/MDLabel/MDLabel.d.ts} +2 -2
  212. package/lib/src/components/shared/MDLabel/MDLabelLink.d.ts +8 -0
  213. package/lib/src/components/{commons/components/md-label/router-link.d.ts → shared/MDLabel/RouterLink.d.ts} +2 -2
  214. package/lib/src/components/shared/MDLabel/generateUniqueId.d.ts +0 -0
  215. package/lib/src/components/{commons/components/missing/missing.d.ts → shared/Missing/Missing.d.ts} +4 -4
  216. package/lib/src/components/shared/ModalControls/ModalControls.d.ts +11 -0
  217. package/lib/src/components/{suggester/html/notification.d.ts → shared/Notification.d.ts} +2 -2
  218. package/lib/src/components/{radio/html/radio-group.d.ts → shared/Radio/RadioGroup.d.ts} +2 -3
  219. package/lib/src/components/{radio/html/radio-option.d.ts → shared/Radio/RadioOption.d.ts} +1 -2
  220. package/lib/src/components/{commons/components/html-table/table.d.ts → shared/Table/Table.d.ts} +2 -2
  221. package/lib/src/components/shared/Table/TableHeader.d.ts +2 -0
  222. package/lib/src/components/{commons/components/html-table/tbody.d.ts → shared/Table/Tbody.d.ts} +1 -1
  223. package/lib/src/components/{commons/components/html-table/td.d.ts → shared/Table/Td.d.ts} +1 -1
  224. package/lib/src/components/{commons/components/html-table/th.d.ts → shared/Table/Th.d.ts} +1 -1
  225. package/lib/src/components/{commons/components/html-table/thead.d.ts → shared/Table/Thead.d.ts} +1 -1
  226. package/lib/src/components/{commons/components/html-table/tr.d.ts → shared/Table/Tr.d.ts} +1 -1
  227. package/lib/src/components/shared/Table/index.d.ts +7 -0
  228. package/lib/src/components/shared/VariableStatus/VariableStatus.d.ts +7 -0
  229. package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/loader-row.d.ts +1 -1
  230. package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/loader.d.ts +1 -1
  231. package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget.d.ts +1 -1
  232. package/lib/src/components/type-custom.d.ts +101 -0
  233. package/lib/src/components/type.d.ts +15 -29
  234. package/lib/src/{utils/store-tools/constantes.d.ts → constants/indexedDBStore.d.ts} +2 -2
  235. package/lib/src/hooks/useDocumentEvent.d.ts +2 -0
  236. package/lib/src/{components/commons/use-options-keydown.d.ts → hooks/useListKeyboardHandler.d.ts} +4 -2
  237. package/lib/src/hooks/useSuggesterInfo.d.ts +9 -0
  238. package/lib/src/i18n/index.d.ts +2 -2
  239. package/lib/src/i18n/inputNumberProps.d.ts +1 -1
  240. package/lib/src/index.d.ts +9 -3
  241. package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +20 -56
  242. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +0 -74
  243. package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +18 -28
  244. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +5 -101
  245. package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
  246. package/lib/src/use-lunatic/replace-component-sequence.d.ts +1 -7
  247. package/lib/src/use-lunatic/type-source.d.ts +2 -12
  248. package/lib/src/use-lunatic/use-lunatic.d.ts +29 -57
  249. package/lib/src/utils/store-tools/index.d.ts +1 -1
  250. package/lib/stories/behaviour/cleaning/cleaning.stories.js +2 -2
  251. package/lib/stories/behaviour/controls/controls-externes.stories.js +2 -2
  252. package/lib/stories/behaviour/controls/controls.stories.js +2 -2
  253. package/lib/stories/behaviour/missing/missing.stories.js +2 -2
  254. package/lib/stories/behaviour/others/test.stories.js +3 -3
  255. package/lib/stories/behaviour/paste/source.json +44337 -5678
  256. package/lib/stories/behaviour/paste/test.stories.js +2 -2
  257. package/lib/stories/behaviour/performance/performance.stories.js +2 -2
  258. package/lib/stories/behaviour/resizing/resizing.stories.js +2 -2
  259. package/lib/stories/checkbox-boolean/checkboxBoolean.stories.js +2 -2
  260. package/lib/stories/checkbox-group/checkbox-group.stories.js +2 -2
  261. package/lib/stories/checkbox-group/sourceLoop.json +1 -1
  262. package/lib/stories/checkbox-one/checkboxOne.stories.js +2 -2
  263. package/lib/stories/component-set/component-set.stories.js +2 -2
  264. package/lib/stories/date-picker/datepicker.stories.js +2 -3
  265. package/lib/stories/declaration/input.stories.js +2 -2
  266. package/lib/stories/disabled/disabled.stories.js +2 -2
  267. package/lib/stories/dropdown/dropdown.stories.js +2 -2
  268. package/lib/stories/duration/duration.stories.js +2 -2
  269. package/lib/stories/filter-description/filter-description.stories.js +2 -2
  270. package/lib/stories/input/input.stories.js +2 -2
  271. package/lib/stories/input-number/input-number.stories.js +2 -2
  272. package/lib/stories/loop/loop.stories.js +3 -3
  273. package/lib/stories/loop/roster-for-loop.stories.js +3 -3
  274. package/lib/stories/markdown/markdown.stories.js +3 -3
  275. package/lib/stories/overview/overview.stories.js +2 -2
  276. package/lib/stories/pairwise/pairwise-links.stories.js +2 -2
  277. package/lib/stories/question/question.stories.js +4 -8
  278. package/lib/stories/questionnaires/logement/logement.stories.js +2 -2
  279. package/lib/stories/questionnaires/recensement/recensement.stories.js +2 -2
  280. package/lib/stories/questionnaires/recensement/source.json +2 -2
  281. package/lib/stories/questionnaires/rp/rp.stories.js +2 -2
  282. package/lib/stories/questionnaires/simpsons/simpsons.stories.js +2 -2
  283. package/lib/stories/questionnaires2023/bySequence/ticWeb.stories.js +2 -2
  284. package/lib/stories/questionnaires2023/famille/famille.stories.js +2 -2
  285. package/lib/stories/questionnaires2023/simpsons/simpsons.stories.js +2 -2
  286. package/lib/stories/questionnaires2023/ticTel/ticWeb.stories.js +2 -2
  287. package/lib/stories/questionnaires2023/ticWeb/ticWeb.stories.js +2 -2
  288. package/lib/stories/radio/radio.stories.js +2 -2
  289. package/lib/stories/roundabout/roundabout.stories.js +2 -2
  290. package/lib/stories/sequence/sequence.stories.js +3 -3
  291. package/lib/stories/suggester/source-component-set.json +54 -8
  292. package/lib/stories/suggester/source.json +326 -182
  293. package/lib/stories/suggester/suggester-workers.stories.js +5 -5
  294. package/lib/stories/suggester/suggester.stories.js +3 -17
  295. package/lib/stories/summary/summary.stories.js +2 -2
  296. package/lib/stories/switch/switch.stories.js +3 -8
  297. package/lib/stories/table/table.stories.js +3 -13
  298. package/lib/stories/textarea/textarea.stories.js +2 -2
  299. package/lib/stories/utils/default-arg-types.js +2 -2
  300. package/lib/stories/utils/orchestrator.js +27 -28
  301. package/lib/stories/utils/referentiel.js +5 -14
  302. package/lib/use-lunatic/commons/check-loops.js +2 -2
  303. package/lib/use-lunatic/commons/compile-controls.js +2 -2
  304. package/lib/use-lunatic/commons/create-map-pages.js +2 -2
  305. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +2 -2
  306. package/lib/use-lunatic/commons/fill-components/fill-component-required.js +2 -2
  307. package/lib/use-lunatic/commons/fill-components/fill-component-value.js +2 -2
  308. package/lib/use-lunatic/commons/fill-components/fill-from-state.js +2 -2
  309. package/lib/use-lunatic/commons/fill-components/fill-iterations.js +2 -2
  310. package/lib/use-lunatic/commons/fill-components/fill-management.js +2 -2
  311. package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +2 -2
  312. package/lib/use-lunatic/commons/fill-components/fill-pagination.js +2 -2
  313. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +2 -2
  314. package/lib/use-lunatic/commons/page-navigation.js +2 -2
  315. package/lib/use-lunatic/commons/page-navigation.spec.js +2 -2
  316. package/lib/use-lunatic/commons/page.js +0 -5
  317. package/lib/use-lunatic/commons/variables/get-questionnaire-data.js +2 -2
  318. package/lib/use-lunatic/commons/variables/lunatic-variables-store.js +2 -2
  319. package/lib/use-lunatic/reducer/commons/auto-explore-loop.js +2 -2
  320. package/lib/use-lunatic/reducer/overview/overview-on-change.js +2 -2
  321. package/lib/use-lunatic/reducer/overview/overview-on-init.js +2 -2
  322. package/lib/use-lunatic/reducer/reduce-go-next-page.js +2 -2
  323. package/lib/use-lunatic/reducer/reduce-go-previous-page.js +2 -2
  324. package/lib/use-lunatic/reducer/reduce-go-to-page.js +2 -2
  325. package/lib/use-lunatic/reducer/reduce-handle-change.js +2 -2
  326. package/lib/use-lunatic/reducer/reduce-on-init.js +6 -6
  327. package/lib/use-lunatic/reducer/reduce-on-set-waiting.js +2 -2
  328. package/lib/use-lunatic/reducer/reduce-update-state.js +2 -2
  329. package/lib/use-lunatic/use-lunatic.test.js +2 -2
  330. package/lib/use-lunatic/use-suggesters.js +2 -2
  331. package/lib/utils/array.js +0 -1
  332. package/lib/utils/idb-tools/idb-bulk-insert.js +2 -2
  333. package/lib/utils/idb-tools/open-or-create-db.js +4 -4
  334. package/lib/utils/logger.js +2 -2
  335. package/lib/utils/store-tools/clear-store-data.js +2 -2
  336. package/lib/utils/store-tools/clear-store-info.js +2 -2
  337. package/lib/utils/store-tools/create/create.js +2 -2
  338. package/lib/utils/store-tools/create/update-store-info.js +3 -3
  339. package/lib/utils/store-tools/get-store-count.js +3 -3
  340. package/lib/utils/store-tools/index.js +1 -1
  341. package/lib/utils/store-tools/initStore.js +4 -4
  342. package/lib/utils/store-tools/open-or-create-store.js +4 -4
  343. package/lib/utils/suggester-workers/append-to-index/append.js +2 -2
  344. package/lib/utils/suggester-workers/append-to-index/prepare-entities.js +2 -2
  345. package/lib/utils/suggester-workers/append-to-index/store-messages.js +2 -2
  346. package/lib/utils/suggester-workers/commons-tokenizer/create-entity-tokenizer.js +2 -2
  347. package/lib/utils/suggester-workers/commons-tokenizer/create-fields-tokenizer.js +2 -2
  348. package/lib/utils/suggester-workers/commons-tokenizer/create-filter-stop-words.js +2 -2
  349. package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.js +2 -2
  350. package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.js +2 -2
  351. package/lib/utils/suggester-workers/find-best-label/find-best-label.js +2 -2
  352. package/lib/utils/suggester-workers/searching/compute-score.js +2 -2
  353. package/lib/utils/suggester-workers/searching/search-in-index.js +2 -2
  354. package/lib/utils/suggester-workers/searching/searching.js +7 -7
  355. package/package.json +14 -22
  356. package/workers-release/lunatic-append-worker-0.3.0.js +1 -1
  357. package/workers-release/lunatic-append-worker-0.3.0.js.LICENSE.txt +0 -10
  358. package/workers-release/lunatic-label-worker-0.3.0.js +1 -1
  359. package/workers-release/lunatic-search-worker-0.3.0.js +1 -1
  360. package/workers-release/lunatic-search-worker-0.3.0.js.LICENSE.txt +0 -10
  361. package/lib/components/button/index.js +0 -13
  362. package/lib/components/checkbox/checkbox-boolean/html/checkbox-boolean.js +0 -34
  363. package/lib/components/checkbox/checkbox-boolean/index.js +0 -13
  364. package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +0 -58
  365. package/lib/components/checkbox/checkbox-group/checkbox-group-content.js +0 -34
  366. package/lib/components/checkbox/checkbox-group/html/checkbox-group-content.js +0 -41
  367. package/lib/components/checkbox/checkbox-group/html/checkbox-group.js +0 -33
  368. package/lib/components/checkbox/checkbox-group/html/checkbox-group.scss +0 -12
  369. package/lib/components/checkbox/checkbox-group/index.js +0 -13
  370. package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +0 -71
  371. package/lib/components/checkbox/checkbox-one/html/checkbox-one.js +0 -34
  372. package/lib/components/checkbox/checkbox-one/index.js +0 -13
  373. package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +0 -61
  374. package/lib/components/checkbox/commons/index.js +0 -13
  375. package/lib/components/checkbox/index.js +0 -27
  376. package/lib/components/commons/components/combo-box/index.js +0 -13
  377. package/lib/components/commons/components/combo-box/selection/LabelOrInput.js +0 -56
  378. package/lib/components/commons/components/combo-box/selection/LabelOrInput.spec.js +0 -21
  379. package/lib/components/commons/components/combo-box/selection/label-selection.js +0 -30
  380. package/lib/components/commons/components/combo-box/selection/label-selection.spec.js +0 -41
  381. package/lib/components/commons/components/combo-box/selection/selection-container.js +0 -36
  382. package/lib/components/commons/components/combo-box/selection/selection-container.spec.js +0 -52
  383. package/lib/components/commons/components/combo-box/selection/selection.js +0 -53
  384. package/lib/components/commons/components/description.js +0 -52
  385. package/lib/components/commons/components/description.spec.js +0 -45
  386. package/lib/components/commons/components/errors/errors.spec.js +0 -45
  387. package/lib/components/commons/components/errors/index.js +0 -13
  388. package/lib/components/commons/components/fab/index.js +0 -13
  389. package/lib/components/commons/components/field-container/field-container.js +0 -26
  390. package/lib/components/commons/components/field-container/filed-container.spec.js +0 -37
  391. package/lib/components/commons/components/field-container/index.js +0 -13
  392. package/lib/components/commons/components/fieldset.js +0 -28
  393. package/lib/components/commons/components/fieldset.spec.js +0 -51
  394. package/lib/components/commons/components/label/index.js +0 -13
  395. package/lib/components/commons/components/label/label.js +0 -34
  396. package/lib/components/commons/components/label/label.spec.js +0 -77
  397. package/lib/components/commons/components/lunatic-component-with-label.js +0 -66
  398. package/lib/components/commons/components/lunatic-component-without-label.js +0 -59
  399. package/lib/components/commons/components/md-label/generateUniqueId.js +0 -11
  400. package/lib/components/commons/components/md-label/index.js +0 -13
  401. package/lib/components/commons/components/missing/index.js +0 -13
  402. package/lib/components/commons/components/nothing-to-display.js +0 -15
  403. package/lib/components/commons/components/nothing-to-display.spec.js +0 -15
  404. package/lib/components/commons/components/orchestrated-component.js +0 -40
  405. package/lib/components/commons/components/variable-status/img/index.js +0 -20
  406. package/lib/components/commons/components/variable-status/index.js +0 -13
  407. package/lib/components/commons/index.js +0 -96
  408. package/lib/components/commons/safety-label.js +0 -24
  409. package/lib/components/commons/use-on-handle-change.js +0 -18
  410. package/lib/components/commons/use-on-handle-change.spec.js +0 -50
  411. package/lib/components/component-set/html/__snapshots__/component-set.spec.tsx.snap +0 -126
  412. package/lib/components/component-set/html/component-set-legend.js +0 -28
  413. package/lib/components/component-set/html/component-set-wrapper.js +0 -15
  414. package/lib/components/component-set/html/component-set.js +0 -28
  415. package/lib/components/component-set/html/component-set.spec.js +0 -91
  416. package/lib/components/datepicker/html/datepicker.spec.js +0 -86
  417. package/lib/components/datepicker/index.js +0 -13
  418. package/lib/components/datepicker/lunatic-datepicker.js +0 -63
  419. package/lib/components/declarations/declaration.js +0 -21
  420. package/lib/components/declarations/declaration.spec.js +0 -30
  421. package/lib/components/declarations/declarations-after-text.js +0 -23
  422. package/lib/components/declarations/declarations-before-text.js +0 -25
  423. package/lib/components/declarations/declarations-detachable.js +0 -25
  424. package/lib/components/declarations/declarations.js +0 -42
  425. package/lib/components/declarations/index.js +0 -43
  426. package/lib/components/dropdown/html/dropdown-simple/dropdown-simple.js +0 -39
  427. package/lib/components/dropdown/html/dropdown-simple/index.js +0 -13
  428. package/lib/components/dropdown/html/dropdown-writable/filter-tools/filter-options.js +0 -28
  429. package/lib/components/dropdown/html/dropdown-writable/filter-tools/filter-options.spec.js +0 -106
  430. package/lib/components/dropdown/html/dropdown-writable/filter-tools/get-label.js +0 -24
  431. package/lib/components/dropdown/html/dropdown-writable/filter-tools/letters-matching.js +0 -28
  432. package/lib/components/dropdown/html/dropdown-writable/filter-tools/match.js +0 -21
  433. package/lib/components/dropdown/html/dropdown-writable/filter-tools/prepare-prefix.js +0 -15
  434. package/lib/components/dropdown/html/dropdown-writable/index.js +0 -13
  435. package/lib/components/dropdown/html/dropdown.js +0 -52
  436. package/lib/components/dropdown/html/dropdown.spec.js +0 -48
  437. package/lib/components/dropdown/index.js +0 -13
  438. package/lib/components/dropdown/lunatic-dropdown.js +0 -62
  439. package/lib/components/duration/duration.js +0 -53
  440. package/lib/components/duration/index.js +0 -13
  441. package/lib/components/filter-description/index.js +0 -13
  442. package/lib/components/index.js +0 -223
  443. package/lib/components/input/html/input.js +0 -57
  444. package/lib/components/input/index.js +0 -13
  445. package/lib/components/input/lunatic-input.js +0 -59
  446. package/lib/components/input-number/html/input-number.js +0 -58
  447. package/lib/components/input-number/index.js +0 -13
  448. package/lib/components/input-number/lunatic-input-number.js +0 -63
  449. package/lib/components/loop/loop-button.js +0 -19
  450. package/lib/components/loop/loop-header.js +0 -30
  451. package/lib/components/loop/loop.js +0 -36
  452. package/lib/components/modal/html/modal.js +0 -59
  453. package/lib/components/modal/html/modal.scss +0 -26
  454. package/lib/components/modal/index.js +0 -13
  455. package/lib/components/modal/lunatic-modal.js +0 -61
  456. package/lib/components/modal-controls/close-or-skip.js +0 -38
  457. package/lib/components/modal-controls/close-or-skip.spec.js +0 -36
  458. package/lib/components/modal-controls/index.js +0 -13
  459. package/lib/components/modal-controls/modal-container.js +0 -21
  460. package/lib/components/modal-controls/modal-container.spec.js +0 -23
  461. package/lib/components/modal-controls/modal-controls.js +0 -73
  462. package/lib/components/question/Question.js +0 -49
  463. package/lib/components/question/index.js +0 -16
  464. package/lib/components/question-explication/html/question-explication.js +0 -51
  465. package/lib/components/question-explication/html/question-explication.scss +0 -35
  466. package/lib/components/question-explication/index.js +0 -13
  467. package/lib/components/question-explication/lunatic-question-explication.js +0 -31
  468. package/lib/components/question-explication/question-explication.spec.js +0 -49
  469. package/lib/components/questions/index.js +0 -20
  470. package/lib/components/questions/question-context.js +0 -34
  471. package/lib/components/questions/question-context.scss +0 -10
  472. package/lib/components/questions/question-information.js +0 -34
  473. package/lib/components/questions/question-information.scss +0 -19
  474. package/lib/components/radio/html/radio-group-content.js +0 -53
  475. package/lib/components/radio/html/radio-group-content.spec.js +0 -99
  476. package/lib/components/radio/html/radio-group.js +0 -45
  477. package/lib/components/radio/index.js +0 -13
  478. package/lib/components/radio/lunatic-radio-group.js +0 -66
  479. package/lib/components/roundabout/components/roundabout-container.js +0 -19
  480. package/lib/components/roundabout/components/roundabout-container.spec.js +0 -23
  481. package/lib/components/roundabout/components/roundabout-it-container.js +0 -18
  482. package/lib/components/roundabout/components/roundabout-it-container.spec.js +0 -23
  483. package/lib/components/roundabout/components/roundabout-it-title.js +0 -16
  484. package/lib/components/roundabout/components/roundabout-it-title.spec.js +0 -18
  485. package/lib/components/roundabout/components/roundabout-label.js +0 -16
  486. package/lib/components/roundabout/components/roundabout-label.spec.js +0 -18
  487. package/lib/components/roundabout/components/roundabout-pending.js +0 -17
  488. package/lib/components/roundabout/components/roundabout-pending.spec.js +0 -15
  489. package/lib/components/roundabout/index.js +0 -13
  490. package/lib/components/sequence/html/sequence.js +0 -28
  491. package/lib/components/sequence/index.js +0 -13
  492. package/lib/components/sequence/lunatic-sequence.js +0 -30
  493. package/lib/components/sequence/sequence.spec.js +0 -76
  494. package/lib/components/subsequence/index.js +0 -13
  495. package/lib/components/subsequence/subsequence.js +0 -32
  496. package/lib/components/suggester/find-best-label/find-best-label.js +0 -49
  497. package/lib/components/suggester/find-best-label/index.js +0 -13
  498. package/lib/components/suggester/idb-suggester/idb-suggester.js +0 -72
  499. package/lib/components/suggester/idb-suggester/index.js +0 -12
  500. package/lib/components/suggester/index.js +0 -13
  501. package/lib/components/suggester/lunatic-suggester.js +0 -70
  502. package/lib/components/suggester/searching/index.js +0 -13
  503. package/lib/components/summary/html/summary-container.js +0 -14
  504. package/lib/components/summary/html/summary-responses.js +0 -56
  505. package/lib/components/summary/html/summary-title.js +0 -19
  506. package/lib/components/summary/index.js +0 -12
  507. package/lib/components/switch/index.js +0 -13
  508. package/lib/components/switch/lunatic-switch.js +0 -63
  509. package/lib/components/table/lunatic-table.js +0 -72
  510. package/lib/components/textarea/html/textarea.js +0 -54
  511. package/lib/components/textarea/html/textarea.spec.js +0 -38
  512. package/lib/components/textarea/index.js +0 -13
  513. package/lib/components/textarea/lunatic-textarea.js +0 -77
  514. package/lib/src/components/button/index.d.ts +0 -1
  515. package/lib/src/components/checkbox/checkbox-boolean/html/checkbox-boolean.d.ts +0 -13
  516. package/lib/src/components/checkbox/checkbox-boolean/index.d.ts +0 -1
  517. package/lib/src/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.d.ts +0 -8
  518. package/lib/src/components/checkbox/checkbox-group/checkbox-group-content.d.ts +0 -8
  519. package/lib/src/components/checkbox/checkbox-group/html/checkbox-group-content.d.ts +0 -9
  520. package/lib/src/components/checkbox/checkbox-group/html/checkbox-group.d.ts +0 -14
  521. package/lib/src/components/checkbox/checkbox-group/index.d.ts +0 -1
  522. package/lib/src/components/checkbox/checkbox-group/lunatic-checkbox-group.d.ts +0 -11
  523. package/lib/src/components/checkbox/checkbox-one/html/checkbox-one.d.ts +0 -5
  524. package/lib/src/components/checkbox/checkbox-one/index.d.ts +0 -1
  525. package/lib/src/components/checkbox/checkbox-one/lunatic-checkbox-one.d.ts +0 -3
  526. package/lib/src/components/checkbox/commons/index.d.ts +0 -1
  527. package/lib/src/components/checkbox/index.d.ts +0 -3
  528. package/lib/src/components/commons/components/combo-box/combo-box-content-box.d.ts +0 -8
  529. package/lib/src/components/commons/components/combo-box/combo-box.d.ts +0 -23
  530. package/lib/src/components/commons/components/combo-box/combo-box.stories.d.ts +0 -6
  531. package/lib/src/components/commons/components/combo-box/combo-box.type.d.ts +0 -8
  532. package/lib/src/components/commons/components/combo-box/index.d.ts +0 -1
  533. package/lib/src/components/commons/components/combo-box/panel/combo-box-option.d.ts +0 -8
  534. package/lib/src/components/commons/components/combo-box/panel/panel.d.ts +0 -20
  535. package/lib/src/components/commons/components/combo-box/selection/LabelOrInput.d.ts +0 -18
  536. package/lib/src/components/commons/components/combo-box/selection/combo-box-label-selection.d.ts +0 -11
  537. package/lib/src/components/commons/components/combo-box/selection/label-selection.d.ts +0 -21
  538. package/lib/src/components/commons/components/combo-box/selection/selection-container.d.ts +0 -11
  539. package/lib/src/components/commons/components/combo-box/selection/selection.d.ts +0 -13
  540. package/lib/src/components/commons/components/description.d.ts +0 -22
  541. package/lib/src/components/commons/components/errors/errors.d.ts +0 -11
  542. package/lib/src/components/commons/components/errors/index.d.ts +0 -1
  543. package/lib/src/components/commons/components/fab/fab.d.ts +0 -7
  544. package/lib/src/components/commons/components/fab/index.d.ts +0 -1
  545. package/lib/src/components/commons/components/field-container/field-container.d.ts +0 -6
  546. package/lib/src/components/commons/components/field-container/index.d.ts +0 -1
  547. package/lib/src/components/commons/components/fieldset.d.ts +0 -13
  548. package/lib/src/components/commons/components/html-table/index.d.ts +0 -6
  549. package/lib/src/components/commons/components/label/index.d.ts +0 -1
  550. package/lib/src/components/commons/components/label/label.d.ts +0 -14
  551. package/lib/src/components/commons/components/lunatic-component-with-label.d.ts +0 -12
  552. package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +0 -12
  553. package/lib/src/components/commons/components/md-label/generateUniqueId.d.ts +0 -1
  554. package/lib/src/components/commons/components/md-label/index.d.ts +0 -1
  555. package/lib/src/components/commons/components/md-label/link.d.ts +0 -7
  556. package/lib/src/components/commons/components/missing/index.d.ts +0 -1
  557. package/lib/src/components/commons/components/nothing-to-display.d.ts +0 -2
  558. package/lib/src/components/commons/components/orchestrated-component.d.ts +0 -8
  559. package/lib/src/components/commons/components/variable-status/img/index.d.ts +0 -2
  560. package/lib/src/components/commons/components/variable-status/index.d.ts +0 -1
  561. package/lib/src/components/commons/components/variable-status/variable-status.d.ts +0 -16
  562. package/lib/src/components/commons/create-customizable-field.d.ts +0 -3
  563. package/lib/src/components/commons/icons/index.d.ts +0 -10
  564. package/lib/src/components/commons/index.d.ts +0 -13
  565. package/lib/src/components/commons/safety-label.d.ts +0 -3
  566. package/lib/src/components/commons/use-document-add-event-listener.d.ts +0 -2
  567. package/lib/src/components/commons/use-on-handle-change.d.ts +0 -12
  568. package/lib/src/components/component-set/html/component-set-legend.d.ts +0 -8
  569. package/lib/src/components/component-set/html/component-set-wrapper.d.ts +0 -6
  570. package/lib/src/components/component-set/html/component-set.d.ts +0 -10
  571. package/lib/src/components/component-set/lunatic-component-set.d.ts +0 -3
  572. package/lib/src/components/datepicker/html/datepicker.d.ts +0 -18
  573. package/lib/src/components/datepicker/index.d.ts +0 -1
  574. package/lib/src/components/datepicker/lunatic-datepicker.d.ts +0 -10
  575. package/lib/src/components/declarations/declaration.d.ts +0 -6
  576. package/lib/src/components/declarations/declarations-after-text.d.ts +0 -4
  577. package/lib/src/components/declarations/declarations-before-text.d.ts +0 -4
  578. package/lib/src/components/declarations/declarations-detachable.d.ts +0 -4
  579. package/lib/src/components/declarations/declarations.d.ts +0 -15
  580. package/lib/src/components/declarations/index.d.ts +0 -4
  581. package/lib/src/components/dropdown/html/dropdown-simple/dropdown-simple.d.ts +0 -3
  582. package/lib/src/components/dropdown/html/dropdown-simple/index.d.ts +0 -1
  583. package/lib/src/components/dropdown/html/dropdown-simple/simple-label-renderer.d.ts +0 -8
  584. package/lib/src/components/dropdown/html/dropdown-simple/simple-option-renderer.d.ts +0 -7
  585. package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +0 -17
  586. package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/filter-options.d.ts +0 -6
  587. package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/get-label.d.ts +0 -9
  588. package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/letters-matching.d.ts +0 -2
  589. package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/match.d.ts +0 -2
  590. package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/prepare-prefix.d.ts +0 -2
  591. package/lib/src/components/dropdown/html/dropdown-writable/index.d.ts +0 -1
  592. package/lib/src/components/dropdown/html/dropdown-writable/writable-label-renderer.d.ts +0 -8
  593. package/lib/src/components/dropdown/html/dropdown-writable/writable-option-renderer.d.ts +0 -8
  594. package/lib/src/components/dropdown/html/dropdown.d.ts +0 -12
  595. package/lib/src/components/dropdown/html/dropdown.spec.d.ts +0 -1
  596. package/lib/src/components/dropdown/index.d.ts +0 -1
  597. package/lib/src/components/dropdown/lunatic-dropdown.d.ts +0 -3
  598. package/lib/src/components/duration/duration.d.ts +0 -4
  599. package/lib/src/components/duration/durationInput.d.ts +0 -11
  600. package/lib/src/components/duration/index.d.ts +0 -1
  601. package/lib/src/components/filter-description/component.spec.d.ts +0 -1
  602. package/lib/src/components/filter-description/index.d.ts +0 -1
  603. package/lib/src/components/index.d.ts +0 -31
  604. package/lib/src/components/input/html/input.d.ts +0 -17
  605. package/lib/src/components/input/html/input.spec.d.ts +0 -1
  606. package/lib/src/components/input/index.d.ts +0 -1
  607. package/lib/src/components/input/lunatic-input.d.ts +0 -3
  608. package/lib/src/components/input-number/html/input-number.d.ts +0 -20
  609. package/lib/src/components/input-number/html/input-number.spec.d.ts +0 -1
  610. package/lib/src/components/input-number/index.d.ts +0 -1
  611. package/lib/src/components/input-number/lunatic-input-number.d.ts +0 -3
  612. package/lib/src/components/loop/loop-button.d.ts +0 -7
  613. package/lib/src/components/loop/loop-header.d.ts +0 -9
  614. package/lib/src/components/loop/loop.d.ts +0 -2
  615. package/lib/src/components/loop/roster-for-loop/roster-for-loop.spec.d.ts +0 -1
  616. package/lib/src/components/modal/html/modal.d.ts +0 -11
  617. package/lib/src/components/modal/index.d.ts +0 -1
  618. package/lib/src/components/modal/lunatic-modal.d.ts +0 -3
  619. package/lib/src/components/modal-controls/close-or-skip.d.ts +0 -8
  620. package/lib/src/components/modal-controls/close-or-skip.spec.d.ts +0 -1
  621. package/lib/src/components/modal-controls/index.d.ts +0 -1
  622. package/lib/src/components/modal-controls/modal-container.d.ts +0 -3
  623. package/lib/src/components/modal-controls/modal-container.spec.d.ts +0 -1
  624. package/lib/src/components/modal-controls/modal-controls.d.ts +0 -11
  625. package/lib/src/components/modal-controls/modal-controls.spec.d.ts +0 -1
  626. package/lib/src/components/question/index.d.ts +0 -1
  627. package/lib/src/components/question-explication/html/question-explication.d.ts +0 -7
  628. package/lib/src/components/question-explication/index.d.ts +0 -1
  629. package/lib/src/components/question-explication/lunatic-question-explication.d.ts +0 -3
  630. package/lib/src/components/question-explication/question-explication.spec.d.ts +0 -1
  631. package/lib/src/components/questions/index.d.ts +0 -2
  632. package/lib/src/components/questions/question-context.d.ts +0 -4
  633. package/lib/src/components/questions/question-information.d.ts +0 -4
  634. package/lib/src/components/radio/html/radio-group-content.d.ts +0 -19
  635. package/lib/src/components/radio/html/radio-group-content.spec.d.ts +0 -1
  636. package/lib/src/components/radio/html/radio-option.spec.d.ts +0 -1
  637. package/lib/src/components/radio/index.d.ts +0 -1
  638. package/lib/src/components/roundabout/components/roundabout-container.d.ts +0 -6
  639. package/lib/src/components/roundabout/components/roundabout-container.spec.d.ts +0 -1
  640. package/lib/src/components/roundabout/components/roundabout-it-button.spec.d.ts +0 -1
  641. package/lib/src/components/roundabout/components/roundabout-it-container.d.ts +0 -5
  642. package/lib/src/components/roundabout/components/roundabout-it-container.spec.d.ts +0 -1
  643. package/lib/src/components/roundabout/components/roundabout-it-title.d.ts +0 -5
  644. package/lib/src/components/roundabout/components/roundabout-it-title.spec.d.ts +0 -1
  645. package/lib/src/components/roundabout/components/roundabout-label.d.ts +0 -5
  646. package/lib/src/components/roundabout/components/roundabout-label.spec.d.ts +0 -1
  647. package/lib/src/components/roundabout/components/roundabout-pending.d.ts +0 -3
  648. package/lib/src/components/roundabout/components/roundabout-pending.spec.d.ts +0 -1
  649. package/lib/src/components/roundabout/index.d.ts +0 -1
  650. package/lib/src/components/roundabout/lunatic-roundabout.d.ts +0 -6
  651. package/lib/src/components/roundabout/redirect.d.ts +0 -6
  652. package/lib/src/components/sequence/html/sequence.d.ts +0 -5
  653. package/lib/src/components/sequence/index.d.ts +0 -1
  654. package/lib/src/components/sequence/lunatic-sequence.d.ts +0 -3
  655. package/lib/src/components/sequence/sequence.spec.d.ts +0 -1
  656. package/lib/src/components/subsequence/index.d.ts +0 -1
  657. package/lib/src/components/subsequence/subsequence.d.ts +0 -3
  658. package/lib/src/components/subsequence/subsequence.spec.d.ts +0 -1
  659. package/lib/src/components/suggester/find-best-label/find-best-label.d.ts +0 -2
  660. package/lib/src/components/suggester/find-best-label/index.d.ts +0 -1
  661. package/lib/src/components/suggester/idb-suggester/check-store.d.ts +0 -11
  662. package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +0 -9
  663. package/lib/src/components/suggester/idb-suggester/index.d.ts +0 -1
  664. package/lib/src/components/suggester/index.d.ts +0 -1
  665. package/lib/src/components/suggester/lunatic-suggester.d.ts +0 -3
  666. package/lib/src/components/suggester/searching/create-searching.d.ts +0 -7
  667. package/lib/src/components/suggester/searching/index.d.ts +0 -1
  668. package/lib/src/components/summary/html/summary-container.d.ts +0 -2
  669. package/lib/src/components/summary/html/summary-responses.d.ts +0 -14
  670. package/lib/src/components/summary/html/summary-title.d.ts +0 -5
  671. package/lib/src/components/summary/index.d.ts +0 -1
  672. package/lib/src/components/summary/lunatic-summary.d.ts +0 -8
  673. package/lib/src/components/switch/html/switch.d.ts +0 -18
  674. package/lib/src/components/switch/index.d.ts +0 -1
  675. package/lib/src/components/switch/lunatic-switch.d.ts +0 -3
  676. package/lib/src/components/table/lunatic-table.d.ts +0 -3
  677. package/lib/src/components/table/table-header.d.ts +0 -11
  678. package/lib/src/components/textarea/html/textarea.d.ts +0 -19
  679. package/lib/src/components/textarea/html/textarea.spec.d.ts +0 -1
  680. package/lib/src/components/textarea/index.d.ts +0 -1
  681. package/lib/src/components/textarea/lunatic-textarea.d.ts +0 -18
  682. package/lib/src/use-lunatic/reducer/reduce-go-next-page.spec.d.ts +0 -1
  683. package/lib/src/use-lunatic/reducer/reduce-go-previous-page.spec.d.ts +0 -1
  684. package/lib/stories/custom-mui/checkbox-boolean-mui.js +0 -31
  685. package/lib/stories/custom-mui/checkbox-group-mui.js +0 -67
  686. package/lib/stories/custom-mui/checkbox-one-mui.js +0 -15
  687. package/lib/stories/custom-mui/index.js +0 -111
  688. package/lib/stories/custom-mui/input-mui.js +0 -51
  689. package/lib/stories/custom-mui/input-number-mui.js +0 -39
  690. package/lib/stories/custom-mui/radio-mui.js +0 -61
  691. package/lib/stories/custom-mui/suggester-mui/index.js +0 -13
  692. package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +0 -301
  693. package/lib/stories/custom-mui/switch-mui.js +0 -46
  694. package/lib/stories/custom-mui/table-mui.js +0 -27
  695. package/lib/stories/custom-mui/tbody-mui.js +0 -22
  696. package/lib/stories/custom-mui/td-mui.js +0 -24
  697. package/lib/stories/custom-mui/textarea-mui.js +0 -42
  698. package/lib/stories/custom-mui/th-mui.js +0 -23
  699. package/lib/stories/custom-mui/thead-mui.js +0 -22
  700. package/lib/stories/custom-mui/tr-mui.js +0 -32
  701. package/lib/stories/modal/modal.stories.js +0 -32
  702. package/lib/stories/modal/source.json +0 -97
  703. package/lib/stories/question-context/question-context.stories.js +0 -31
  704. package/lib/stories/question-context/source.json +0 -13
  705. package/lib/stories/question-explication/question-explication.stories.js +0 -31
  706. package/lib/stories/question-explication/source.json +0 -17
  707. package/lib/stories/question-information/question-information.stories.js +0 -32
  708. package/lib/stories/question-information/source.json +0 -14
  709. package/lib/stories/suggester/simple.json +0 -168
  710. package/lib/tests/utils/lunatic.d.ts +0 -25
  711. package/lib/use-lunatic/reducer/reduce-go-next-page.spec.js +0 -13
  712. package/lib/use-lunatic/reducer/reduce-go-previous-page.spec.js +0 -14
  713. /package/lib/components/{checkbox/checkbox-one/html/checkbox-one.scss → CheckboxOne/CheckboxOne.scss} +0 -0
  714. /package/lib/components/{datepicker/html/datepicker.scss → Datepicker/Datepicker.scss} +0 -0
  715. /package/lib/components/{datepicker/html → Datepicker}/DatepickerField.js +0 -0
  716. /package/lib/components/{dropdown/html/dropdown.scss → Dropdown/Dropdown.scss} +0 -0
  717. /package/lib/components/{duration/duration.scss → Duration/Duration.scss} +0 -0
  718. /package/lib/components/{duration → Duration}/durationUtils.js +0 -0
  719. /package/lib/components/{duration → Duration}/formatDuration.js +0 -0
  720. /package/lib/components/{duration → Duration}/formatDuration.spec.js +0 -0
  721. /package/lib/components/{duration → Duration}/getDurationFromValue.js +0 -0
  722. /package/lib/components/{input/html/input.scss → Input/Input.scss} +0 -0
  723. /package/lib/components/{input/html/__snapshots__/input.spec.tsx.snap → Input/__snapshots__/Input.spec.tsx.snap} +0 -0
  724. /package/lib/components/{input-number/html/input-number.scss → InputNumber/InputNumber.scss} +0 -0
  725. /package/lib/components/{loop → Loop}/constant.js +0 -0
  726. /package/lib/components/{radio/radio.scss → Radio/Radio.scss} +0 -0
  727. /package/lib/components/{loop/roster-for-loop/roster.scss → RosterForLoop/RosterForLoop.scss} +0 -0
  728. /package/lib/components/{loop/roster-for-loop/__snapshots__/roster-for-loop.spec.tsx.snap → RosterForLoop/__snapshots__/RosterForLoop.spec.tsx.snap} +0 -0
  729. /package/lib/components/{roundabout/components/roundabout.scss → Roundabout/Roundabout.scss} +0 -0
  730. /package/lib/components/{sequence/html/sequence.scss → Sequence/Sequence.scss} +0 -0
  731. /package/lib/components/{suggester/html → Suggester/icons}/alert-icon.svg +0 -0
  732. /package/lib/components/{suggester/html → Suggester/icons}/wait-icon.svg +0 -0
  733. /package/lib/components/{suggester/html → Suggester/icons}/warn-icon.svg +0 -0
  734. /package/lib/components/{switch/html → Switch}/switch.scss +0 -0
  735. /package/lib/components/{textarea/html/textarea.scss → Textarea/Textarea.scss} +0 -0
  736. /package/lib/components/{textarea/html/__snapshots__/textarea.spec.tsx.snap → Textarea/__snapshots__/Textarea.spec.tsx.snap} +0 -0
  737. /package/lib/components/{button/button.scss → shared/Button/Button.scss} +0 -0
  738. /package/lib/components/{button/__snapshots__/lunatic-button.spec.tsx.snap → shared/Button/__snapshots__/Button.spec.tsx.snap} +0 -0
  739. /package/lib/components/{checkbox/commons/checkbox-option.scss → shared/Checkbox/CheckboxOption.scss} +0 -0
  740. /package/lib/components/{checkbox/commons → shared/Checkbox}/getShortcutKey.js +0 -0
  741. /package/lib/components/{commons/components/combo-box/combo-box.scss → shared/Combobox/Combobox.scss} +0 -0
  742. /package/lib/components/{commons/components/combo-box/combo-box.type.js → shared/Combobox/ComboboxType.js} +0 -0
  743. /package/lib/components/{commons/components/combo-box/keyboard-key-codes.js → shared/Combobox/constants.js} +0 -0
  744. /package/lib/components/{commons/components/errors/errors.scss → shared/ComponentErrors/ComponentErrors.scss} +0 -0
  745. /package/lib/components/{declarations/declarations.scss → shared/Declarations/Declarations.scss} +0 -0
  746. /package/lib/components/{commons/components/fieldset.scss → shared/Fieldset/Fieldset.scss} +0 -0
  747. /package/lib/components/{commons/icons → shared/Icons}/checkbox-checked-icon.js +0 -0
  748. /package/lib/components/{commons/icons → shared/Icons}/checkbox-unchecked-icon.js +0 -0
  749. /package/lib/components/{commons/icons → shared/Icons}/closed-icon.js +0 -0
  750. /package/lib/components/{commons/icons → shared/Icons}/cross-icon.js +0 -0
  751. /package/lib/components/{commons/icons → shared/Icons}/icon-props.js +0 -0
  752. /package/lib/components/{commons/icons → shared/Icons}/load-icon.js +0 -0
  753. /package/lib/components/{commons/icons → shared/Icons}/lunatic-icon.js +0 -0
  754. /package/lib/components/{commons/icons → shared/Icons}/lunatic-icon.scss +0 -0
  755. /package/lib/components/{commons/icons → shared/Icons}/network-icon.js +0 -0
  756. /package/lib/components/{commons/icons → shared/Icons}/on-drag-icon.js +0 -0
  757. /package/lib/components/{commons/icons → shared/Icons}/opened-icon.js +0 -0
  758. /package/lib/components/{commons/icons → shared/Icons}/radio-checked-icon.js +0 -0
  759. /package/lib/components/{commons/icons → shared/Icons}/radio-unchecked-icon.js +0 -0
  760. /package/lib/components/{commons/components/label/label.scss → shared/Label/Label.scss} +0 -0
  761. /package/lib/components/{commons/components/missing/missing.scss → shared/Missing/Missing.scss} +0 -0
  762. /package/lib/components/{modal-controls/modal-controls.scss → shared/ModalControls/ModalControls.scss} +0 -0
  763. /package/lib/components/{radio/html/radio-group.scss → shared/Radio/RadioGroup.scss} +0 -0
  764. /package/lib/components/{commons/components/html-table/table.scss → shared/Table/Table.scss} +0 -0
  765. /package/lib/components/{commons/components/variable-status/img → shared/VariableStatus/icons}/edited.png +0 -0
  766. /package/lib/components/{commons/components/variable-status/img → shared/VariableStatus/icons}/forced.png +0 -0
  767. /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.scss +0 -0
  768. /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.spec.js +0 -0
  769. /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/index.js +0 -0
  770. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/index.js +0 -0
  771. /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/index.js +0 -0
  772. /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/is-network.spec.js +0 -0
  773. /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.js +0 -0
  774. /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.spec.js +0 -0
  775. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/progress.js +0 -0
  776. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/action-tool.js +0 -0
  777. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/index.js +0 -0
  778. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/tools.js +0 -0
  779. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget-container.js +0 -0
  780. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget.scss +0 -0
  781. /package/lib/src/components/{button/lunatic-button.spec.d.ts → CheckboxBoolean/CheckboxBoolean.spec.d.ts} +0 -0
  782. /package/lib/src/components/{checkbox/checkbox-boolean/html/checkbox-boolean.spec.d.ts → CheckboxGroup/CustomCheckboxGroup.spec.d.ts} +0 -0
  783. /package/lib/src/components/{checkbox/checkbox-group/html/checkbox-group-content.spec.d.ts → CheckboxOne/CheckboxOne.spec.d.ts} +0 -0
  784. /package/lib/src/components/{checkbox/checkbox-one/html/checkbox-one.spec.d.ts → Datepicker/Datepicker.spec.d.ts} +0 -0
  785. /package/lib/src/components/{datepicker/html → Datepicker}/DatepickerField.d.ts +0 -0
  786. /package/lib/src/components/{checkbox/commons/checkbox-option.spec.d.ts → Dropdown/Dropdown.spec.d.ts} +0 -0
  787. /package/lib/src/components/{duration → Duration}/durationUtils.d.ts +0 -0
  788. /package/lib/src/components/{duration → Duration}/formatDuration.d.ts +0 -0
  789. /package/lib/src/components/{duration → Duration}/formatDuration.spec.d.ts +0 -0
  790. /package/lib/src/components/{duration → Duration}/getDurationFromValue.d.ts +0 -0
  791. /package/lib/src/components/{commons/components/combo-box/combo-box-container.spec.d.ts → FilterDescription/FilterDescription.spec.d.ts} +0 -0
  792. /package/lib/src/components/{commons/components/combo-box/panel/combo-box-option.spec.d.ts → Input/Input.spec.d.ts} +0 -0
  793. /package/lib/src/components/{commons/components/combo-box/panel/option-container.spec.d.ts → InputNumber/InputNumber.spec.d.ts} +0 -0
  794. /package/lib/src/components/{loop → Loop}/constant.d.ts +0 -0
  795. /package/lib/src/components/{lunatic-components.d.ts → LunaticComponents.d.ts} +0 -0
  796. /package/lib/src/components/{pairwise-links/pairwise-links.d.ts → PairwiseLinks/PairwiseLinks.d.ts} +0 -0
  797. /package/lib/src/components/{commons/components/combo-box/panel/panel-container.spec.d.ts → RosterForLoop/RosterForLoop.spec.d.ts} +0 -0
  798. /package/lib/src/components/{commons/components/combo-box/panel/panel.spec.d.ts → Roundabout/RoundaboutItButton.spec.d.ts} +0 -0
  799. /package/lib/src/components/{roundabout → Roundabout}/redirect.spec.d.ts +0 -0
  800. /package/lib/src/components/{roundabout → Roundabout}/roundabout.spec.d.ts +0 -0
  801. /package/lib/src/components/{commons/components/combo-box/selection/LabelOrInput.spec.d.ts → Subsequence/Subsequence.spec.d.ts} +0 -0
  802. /package/lib/src/components/{commons/components/combo-box/selection/clear-button.spec.d.ts → Textarea/Textarea.spec.d.ts} +0 -0
  803. /package/lib/src/components/{commons/components/combo-box/selection/combo-box-label-selection.spec.d.ts → shared/Button/Button.spec.d.ts} +0 -0
  804. /package/lib/src/components/{commons/components/combo-box/selection/label-selection.spec.d.ts → shared/Button/IconButton.spec.d.ts} +0 -0
  805. /package/lib/src/components/{commons/components/combo-box/selection/selection-container.spec.d.ts → shared/Checkbox/CheckboxOption.spec.d.ts} +0 -0
  806. /package/lib/src/components/{checkbox/commons → shared/Checkbox}/getShortcutKey.d.ts +0 -0
  807. /package/lib/src/components/{commons/components/combo-box/selection/selection.spec.d.ts → shared/Combobox/ComboboxContainer.spec.d.ts} +0 -0
  808. /package/lib/src/components/{commons/components/description.spec.d.ts → shared/Combobox/Panel/ComboboxOption.spec.d.ts} +0 -0
  809. /package/lib/src/components/{commons/components/dragger/dragger.spec.d.ts → shared/Combobox/Panel/ComboboxOptionContainer.spec.d.ts} +0 -0
  810. /package/lib/src/components/{commons/components/errors/errors.spec.d.ts → shared/Combobox/Panel/ComboboxPanel.spec.d.ts} +0 -0
  811. /package/lib/src/components/{commons/components/fab/fab.spec.d.ts → shared/Combobox/Panel/ComboboxPanelContainer.spec.d.ts} +0 -0
  812. /package/lib/src/components/{commons/components/field-container/filed-container.spec.d.ts → shared/Combobox/Selection/ComboboxClearButton.spec.d.ts} +0 -0
  813. /package/lib/src/components/{commons/components/fieldset.spec.d.ts → shared/Combobox/Selection/ComboboxLabelSelection.spec.d.ts} +0 -0
  814. /package/lib/src/components/{commons/components/html-table/table.spec.d.ts → shared/Combobox/Selection/ComboboxSelection.spec.d.ts} +0 -0
  815. /package/lib/src/components/{commons/components/combo-box/keyboard-key-codes.d.ts → shared/Combobox/constants.d.ts} +0 -0
  816. /package/lib/src/components/{commons/components/html-table/tbody.spec.d.ts → shared/ComponentErrors/ComponentErrors.spec.d.ts} +0 -0
  817. /package/lib/src/components/{commons/components/html-table/td.spec.d.ts → shared/Declarations/Declarations.spec.d.ts} +0 -0
  818. /package/lib/src/components/{commons/components/html-table/th.spec.d.ts → shared/Fieldset/Fieldset.spec.d.ts} +0 -0
  819. /package/lib/src/components/{commons/icons → shared/Icons}/checkbox-checked-icon.d.ts +0 -0
  820. /package/lib/src/components/{commons/icons → shared/Icons}/checkbox-unchecked-icon.d.ts +0 -0
  821. /package/lib/src/components/{commons/icons → shared/Icons}/closed-icon.d.ts +0 -0
  822. /package/lib/src/components/{commons/icons → shared/Icons}/cross-icon.d.ts +0 -0
  823. /package/lib/src/components/{commons/icons → shared/Icons}/icon-props.d.ts +0 -0
  824. /package/lib/src/components/{commons/icons → shared/Icons}/load-icon.d.ts +0 -0
  825. /package/lib/src/components/{commons/icons → shared/Icons}/lunatic-icon.d.ts +0 -0
  826. /package/lib/src/components/{commons/icons → shared/Icons}/network-icon.d.ts +0 -0
  827. /package/lib/src/components/{commons/icons → shared/Icons}/on-drag-icon.d.ts +0 -0
  828. /package/lib/src/components/{commons/icons → shared/Icons}/opened-icon.d.ts +0 -0
  829. /package/lib/src/components/{commons/icons → shared/Icons}/radio-checked-icon.d.ts +0 -0
  830. /package/lib/src/components/{commons/icons → shared/Icons}/radio-unchecked-icon.d.ts +0 -0
  831. /package/lib/src/components/{commons/components/html-table/thead.spec.d.ts → shared/Label/Label.spec.d.ts} +0 -0
  832. /package/lib/src/components/{commons/components/html-table/tr.spec.d.ts → shared/MDLabel/MDLabel.spec.d.ts} +0 -0
  833. /package/lib/src/components/{commons/components/is-network/is-network.spec.d.ts → shared/Missing/Missing.spec.d.ts} +0 -0
  834. /package/lib/src/components/{commons/components/is-network/use-online-status.spec.d.ts → shared/ModalControls/ModalControls.spec.d.ts} +0 -0
  835. /package/lib/src/components/{commons/components/label/label.spec.d.ts → shared/Radio/RadioOption.spec.d.ts} +0 -0
  836. /package/lib/src/components/{commons/components/md-label/md-label.spec.d.ts → shared/Table/Table.spec.d.ts} +0 -0
  837. /package/lib/src/components/{commons/components/missing/missing.spec.d.ts → shared/Table/Tbody.spec.d.ts} +0 -0
  838. /package/lib/src/components/{commons/components/nothing-to-display.spec.d.ts → shared/Table/Td.spec.d.ts} +0 -0
  839. /package/lib/src/components/{commons/components/variable-status/variable-status.spec.d.ts → shared/Table/Th.spec.d.ts} +0 -0
  840. /package/lib/src/components/{commons/use-on-handle-change.spec.d.ts → shared/Table/Thead.spec.d.ts} +0 -0
  841. /package/lib/src/components/{component-set/html/component-set.spec.d.ts → shared/Table/Tr.spec.d.ts} +0 -0
  842. /package/lib/src/components/{datepicker/html/datepicker.spec.d.ts → shared/VariableStatus/VariableStatus.spec.d.ts} +0 -0
  843. /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.d.ts +0 -0
  844. /package/lib/src/components/{declarations/declaration.spec.d.ts → shared/suggester-loader-widget/dragger/dragger.spec.d.ts} +0 -0
  845. /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/dragger/index.d.ts +0 -0
  846. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/index.d.ts +0 -0
  847. /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/index.d.ts +0 -0
  848. /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/is-network.d.ts +0 -0
  849. /package/lib/src/components/{declarations/declarations.spec.d.ts → shared/suggester-loader-widget/is-network/is-network.spec.d.ts} +0 -0
  850. /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.d.ts +0 -0
  851. /package/lib/src/components/{dropdown/html/dropdown-writable/filter-tools/filter-options.spec.d.ts → shared/suggester-loader-widget/is-network/use-online-status.spec.d.ts} +0 -0
  852. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/progress.d.ts +0 -0
  853. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/action-tool.d.ts +0 -0
  854. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/index.d.ts +0 -0
  855. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/tools.d.ts +0 -0
  856. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget-container.d.ts +0 -0
@@ -0,0 +1,15 @@
1
+ import './ComponentErrors.scss';
2
+ import type { LunaticError } from '../../../use-lunatic/type';
3
+ type Props = {
4
+ errors?: Record<string, LunaticError[]>;
5
+ componentId: string;
6
+ } | {
7
+ errors?: LunaticError[];
8
+ componentId?: undefined;
9
+ };
10
+ /**
11
+ * Display a list of error as simple red text
12
+ */
13
+ export declare function ComponentErrors({ errors, componentId }: Props): import("react/jsx-runtime").JSX.Element | null;
14
+ export declare function getComponentErrors(errors?: Record<string, LunaticError[]>, componentId?: string): LunaticError[] | undefined;
15
+ export {};
@@ -0,0 +1,26 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ import type { LunaticBaseProps } from '../type';
3
+ type Props = PropsWithChildren<{
4
+ componentType?: string;
5
+ paginatedLoop?: boolean;
6
+ handleChange?: (response: {
7
+ name: string;
8
+ }, value: any, args?: Record<string, unknown>) => void;
9
+ }> & Pick<LunaticBaseProps, 'declarations' | 'management' | 'id' | 'label' | 'missingResponse' | 'preferences' | 'value' | 'missing' | 'disabled'>;
10
+ /**
11
+ * Wrapper around Lunatic components, handle Declarations and missing buttons
12
+ *
13
+ * ## The structure :
14
+ *
15
+ * |--------------------------|
16
+ * | DeclarationBefore |
17
+ * |__________________________|
18
+ * |--------------------------|
19
+ * | Component |
20
+ * |__________________________|
21
+ * |--------------------------|
22
+ * | Missing Buttons |
23
+ * |__________________________|
24
+ */
25
+ export declare function ComponentWrapper(props: Props): import("react/jsx-runtime").JSX.Element;
26
+ export {};
@@ -0,0 +1,17 @@
1
+ import './Declarations.scss';
2
+ import { type PropsWithChildren, type ReactNode } from 'react';
3
+ export declare const Declaration: import("react").ComponentType<PropsWithChildren<{
4
+ type: string;
5
+ }>>;
6
+ type Props = {
7
+ id?: string;
8
+ type?: 'AFTER_QUESTION_TEXT' | 'BEFORE_QUESTION_TEXT' | 'DETACHABLE';
9
+ declarations?: {
10
+ id: string;
11
+ declarationType: string;
12
+ position: string;
13
+ label: ReactNode;
14
+ }[];
15
+ };
16
+ export declare const Declarations: import("react").ComponentType<Props>;
17
+ export {};
@@ -0,0 +1,10 @@
1
+ import { type PropsWithChildren, type ReactNode } from 'react';
2
+ import './Fieldset.scss';
3
+ import type { LunaticBaseProps } from '../../type';
4
+ type Props = PropsWithChildren<{
5
+ legend?: ReactNode;
6
+ description?: LunaticBaseProps['description'];
7
+ className?: string;
8
+ }>;
9
+ export declare const Fieldset: import("react").ComponentType<Props>;
10
+ export {};
@@ -0,0 +1,5 @@
1
+ import { type ComponentType, type FunctionComponent } from 'react';
2
+ /**
3
+ * Create a replaceable version of a component
4
+ */
5
+ export declare function customizedComponent<T extends Record<string, unknown>>(name: string, LunaticField: FunctionComponent<T>): ComponentType<T>;
@@ -0,0 +1,10 @@
1
+ export { CrossIcon } from './cross-icon';
2
+ export { ClosedIcon } from './closed-icon';
3
+ export { OpenedIcon } from './opened-icon';
4
+ export { LoadIcon } from './load-icon';
5
+ export { NetworkIcon } from './network-icon';
6
+ export { OnDragIcon } from './on-drag-icon';
7
+ export { RadioCheckedIcon } from './radio-checked-icon';
8
+ export { RadioUncheckedIcon } from './radio-unchecked-icon';
9
+ export { CheckboxCheckedIcon } from './checkbox-checked-icon';
10
+ export { CheckboxUncheckedIcon } from './checkbox-unchecked-icon';
@@ -0,0 +1,11 @@
1
+ import { type CSSProperties, type PropsWithChildren, type ReactNode } from 'react';
2
+ import './Label.scss';
3
+ type Props = PropsWithChildren<{
4
+ id?: string;
5
+ htmlFor?: string;
6
+ className?: string;
7
+ style?: CSSProperties;
8
+ description?: ReactNode;
9
+ }>;
10
+ export declare const Label: import("react").ComponentType<Props>;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ import { type ReactNode } from 'react';
2
+ type Props = {
3
+ value?: ReactNode;
4
+ className?: string;
5
+ };
6
+ export declare function LabelDescription({ value, className }: Props): import("react/jsx-runtime").JSX.Element | null;
7
+ export {};
@@ -3,5 +3,5 @@ type Props = {
3
3
  expression: string;
4
4
  logFunction?: typeof DEFAULT_LOG_FUNCTION;
5
5
  };
6
- declare const MdLabel: ({ expression, logFunction }: Props) => import("react/jsx-runtime").JSX.Element;
7
- export default MdLabel;
6
+ export declare const MDLabel: ({ expression, logFunction, }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ type Props = PropsWithChildren<{
3
+ href: string;
4
+ title: string;
5
+ }>;
6
+ export declare const MDLabelLink: (props: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export declare function generateUniqueId(): string;
8
+ export {};
@@ -2,5 +2,5 @@ import type { ComponentProps } from 'react';
2
2
  type Props = Omit<ComponentProps<'a'>, 'href'> & {
3
3
  to: string;
4
4
  };
5
- declare const _default: import("react").ComponentType<Props>;
6
- export default _default;
5
+ export declare const RouterLink: import("react").ComponentType<Props>;
6
+ export {};
@@ -1,6 +1,6 @@
1
- import './missing.scss';
2
- import { useLunaticMissing } from '../../../../use-lunatic/lunatic-context';
3
- import type { LunaticBaseProps } from '../../../type';
1
+ import './Missing.scss';
2
+ import { useLunaticMissing } from '../../../use-lunatic/lunatic-context';
3
+ import type { LunaticBaseProps } from '../../type';
4
4
  type Props = {
5
5
  handleChange: LunaticBaseProps<any>['handleChange'];
6
6
  componentType?: string;
@@ -9,6 +9,6 @@ type Props = {
9
9
  missingResponse?: LunaticBaseProps['missingResponse'];
10
10
  };
11
11
  type PropsFromContext = Pick<ReturnType<typeof useLunaticMissing>, 'shortcut' | 'missingStrategy' | 'dontKnowButton' | 'refusedButton' | 'missingShortcut'>;
12
- declare const Missing: (props: Props) => import("react/jsx-runtime").JSX.Element | null;
12
+ export declare const Missing: (props: Props) => import("react/jsx-runtime").JSX.Element | null;
13
13
  export declare const MissingPure: (props: Pick<Props, 'handleChange' | 'missingResponse' | 'disabled'> & PropsFromContext) => import("react/jsx-runtime").JSX.Element;
14
14
  export default Missing;
@@ -0,0 +1,11 @@
1
+ import { type MouseEventHandler } from 'react';
2
+ import type { LunaticError } from '../../../use-lunatic/type';
3
+ import './ModalControls.scss';
4
+ type Props = {
5
+ goNext: MouseEventHandler;
6
+ onClose: MouseEventHandler;
7
+ isCritical?: boolean;
8
+ errors: Record<string, LunaticError[]>;
9
+ };
10
+ export declare function ModalControls(props: Props): import("react").ReactPortal | null;
11
+ export {};
@@ -4,5 +4,5 @@ type Props = {
4
4
  title: ReactNode;
5
5
  description: ReactNode;
6
6
  };
7
- declare const _default: import("react").ComponentType<Props>;
8
- export default _default;
7
+ export declare const Notification: import("react").ComponentType<Props>;
8
+ export {};
@@ -1,4 +1,4 @@
1
- import './radio-group.scss';
1
+ import './RadioGroup.scss';
2
2
  import type { ReactNode } from 'react';
3
3
  import type { LunaticError } from '../../../use-lunatic/type';
4
4
  export type RadioGroupProps = {
@@ -19,5 +19,4 @@ export type RadioGroupProps = {
19
19
  disabled?: boolean;
20
20
  readOnly?: boolean;
21
21
  };
22
- declare const _default: import("react").ComponentType<RadioGroupProps>;
23
- export default _default;
22
+ export declare const RadioGroup: import("react").ComponentType<RadioGroupProps>;
@@ -19,5 +19,4 @@ export type Props = {
19
19
  codeModality?: string;
20
20
  invalid?: boolean;
21
21
  };
22
- declare const _default: import("react").ComponentType<Props>;
23
- export default _default;
22
+ export declare const RadioOption: import("react").ComponentType<Props>;
@@ -1,8 +1,8 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
- import './table.scss';
2
+ import './Table.scss';
3
3
  type Props = PropsWithChildren<{
4
4
  className?: string;
5
5
  id?: string;
6
6
  }>;
7
- export declare const LunaticTable: React.ComponentType<Props>;
7
+ export declare const Table: React.ComponentType<Props>;
8
8
  export {};
@@ -0,0 +1,2 @@
1
+ import type { LunaticComponentProps } from '../../type';
2
+ export declare function TableHeader({ id, header, }: Pick<LunaticComponentProps<'Table'>, 'id' | 'header'>): import("react/jsx-runtime").JSX.Element | null;
@@ -3,5 +3,5 @@ type Props = PropsWithChildren<{
3
3
  className?: string;
4
4
  id?: string;
5
5
  }>;
6
- export declare const LunaticTbody: import("react").ComponentType<Props>;
6
+ export declare const Tbody: import("react").ComponentType<Props>;
7
7
  export {};
@@ -7,5 +7,5 @@ type Props = PropsWithChildren<{
7
7
  colSpan?: number;
8
8
  rowSpan?: number;
9
9
  }>;
10
- export declare const LunaticTd: import("react").ComponentType<Props>;
10
+ export declare const Td: import("react").ComponentType<Props>;
11
11
  export {};
@@ -7,5 +7,5 @@ type Props = PropsWithChildren<{
7
7
  colSpan?: number;
8
8
  rowSpan?: number;
9
9
  }>;
10
- export declare const LunaticTh: import("react").ComponentType<Props>;
10
+ export declare const Th: import("react").ComponentType<Props>;
11
11
  export {};
@@ -3,5 +3,5 @@ type Props = PropsWithChildren<{
3
3
  className?: string;
4
4
  id?: string;
5
5
  }>;
6
- export declare const LunaticThead: import("react").ComponentType<Props>;
6
+ export declare const Thead: import("react").ComponentType<Props>;
7
7
  export {};
@@ -4,5 +4,5 @@ type Props = PropsWithChildren<{
4
4
  id?: string;
5
5
  row?: string | number;
6
6
  }>;
7
- export declare const LunaticTr: import("react").ComponentType<Props>;
7
+ export declare const Tr: import("react").ComponentType<Props>;
8
8
  export {};
@@ -0,0 +1,7 @@
1
+ export { Table } from './Table';
2
+ export { Tbody } from './Tbody';
3
+ export { Td } from './Td';
4
+ export { Th } from './Th';
5
+ export { Thead } from './Thead';
6
+ export { Tr } from './Tr';
7
+ export { TableHeader } from './TableHeader';
@@ -0,0 +1,7 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ import './VariableStatus.scss';
3
+ type Props = PropsWithChildren<{
4
+ id?: string;
5
+ }>;
6
+ export declare const VariableStatus: ({ id, children }: Props) => import("react/jsx-runtime").JSX.Element | null;
7
+ export {};
@@ -1,4 +1,4 @@
1
- import type { SuggesterType } from '../../use-lunatic/type-source';
1
+ import type { SuggesterType } from '../../../use-lunatic/type-source';
2
2
  type Props = {
3
3
  storeInfo: SuggesterType;
4
4
  workersBasePath?: string;
@@ -1,4 +1,4 @@
1
- import type { SuggesterType } from '../../use-lunatic/type-source';
1
+ import type { SuggesterType } from '../../../use-lunatic/type-source';
2
2
  type Props = {
3
3
  idbVersion?: number;
4
4
  db?: IDBDatabase;
@@ -1,4 +1,4 @@
1
- import type { SuggesterType } from '../../use-lunatic/type-source';
1
+ import type { SuggesterType } from '../../../use-lunatic/type-source';
2
2
  import './widget.scss';
3
3
  type Props = {
4
4
  absolute?: boolean;
@@ -0,0 +1,101 @@
1
+ import type { Subsequence } from './Subsequence/Subsequence';
2
+ import type { Input } from './Input/Input';
3
+ import type { Declaration, Declarations } from './shared/Declarations/Declarations';
4
+ import type { Label } from './shared/Label/Label';
5
+ import { Tr, Td, Th, Tbody, Thead, Table } from './shared/Table';
6
+ import type { Textarea } from './Textarea/Textarea';
7
+ import type { RadioGroup } from './shared/Radio/RadioGroup';
8
+ import type { CustomRoundabout } from './Roundabout/CustomRoundabout';
9
+ import { RoundaboutContainer, RoundaboutItContainer, RoundaboutItTitle, RoundaboutLabel, RoundaboutPending } from './Roundabout/extra';
10
+ import type { RoundaboutItButton } from './Roundabout/RoundaboutItButton';
11
+ import type { Button } from './shared/Button/Button';
12
+ import type { CheckboxBoolean } from './CheckboxBoolean/CheckboxBoolean';
13
+ import { CheckboxOne } from './CheckboxOne/CheckboxOne';
14
+ import type { CheckboxOption } from './shared/Checkbox/CheckboxOption';
15
+ import type { Datepicker } from './Datepicker/Datepicker';
16
+ import type { Duration } from './Duration/Duration';
17
+ import { Fieldset } from './shared/Fieldset/Fieldset';
18
+ import type { InputNumber } from './InputNumber/InputNumber';
19
+ import type { Question } from './Question/Question';
20
+ import type { RadioOption } from './shared/Radio/RadioOption';
21
+ import type { Sequence } from './Sequence/Sequence';
22
+ import type { Switch } from './Switch/Switch';
23
+ import type { Loop } from './Loop/Loop';
24
+ import type { RosterForLoop } from './RosterForLoop/RosterForLoop';
25
+ import type { Dropdown } from './Dropdown/Dropdown';
26
+ import type { Combobox } from './shared/Combobox/Combobox';
27
+ import { ComboboxContainer } from './shared/Combobox/ComboboxContainer';
28
+ import { ComboboxContentBox } from './shared/Combobox/ComboboxContentBox';
29
+ import { ComboboxOption } from './shared/Combobox/Panel/ComboboxOption';
30
+ import type { ComboboxPanelContainer } from './shared/Combobox/Panel/ComboboxPanelContainer';
31
+ import type { ComboboxClearButton } from './shared/Combobox/Selection/ComboboxClearButton';
32
+ import type { ComboboxLabelSelection } from './shared/Combobox/Selection/ComboboxLabelSelection';
33
+ import { SuggesterNotification } from './Suggester/SuggesterNotification';
34
+ import type { Radio } from './Radio/Radio';
35
+ import type { ComboboxInput } from './shared/Combobox/Selection/ComboboxInput';
36
+ import type { FilterDescription } from './FilterDescription/FilterDescription';
37
+ import type { CustomSuggester } from './Suggester/CustomSuggester';
38
+ import type { CustomCheckboxGroup } from './CheckboxGroup/CustomCheckboxGroup';
39
+ import { ComponentSet, ComponentSetItem } from './ComponentSet/ComponentSet';
40
+ import type { RouterLink } from './shared/MDLabel/RouterLink';
41
+ import { SummaryResponses, type SummaryTitle } from './Summary/Summary';
42
+ /**
43
+ * Contains the type of every customizable component
44
+ */
45
+ export type LunaticCustomizedComponent = {
46
+ Input: typeof Input;
47
+ InputNumber: typeof InputNumber;
48
+ Sequence: typeof Sequence;
49
+ Switch: typeof Switch;
50
+ Subsequence: typeof Subsequence;
51
+ Textarea: typeof Textarea;
52
+ Datepicker: typeof Datepicker;
53
+ Duration: typeof Duration;
54
+ Question: typeof Question;
55
+ BlockForLoop: typeof Loop;
56
+ RosterForLoop: typeof RosterForLoop;
57
+ Dropdown: typeof Dropdown;
58
+ LunaticRadio: typeof Radio;
59
+ FilterDescription: typeof FilterDescription;
60
+ Suggester: typeof CustomSuggester;
61
+ ComponentSet: typeof ComponentSet;
62
+ ComponentSetItem: typeof ComponentSetItem;
63
+ CheckboxBoolean: typeof CheckboxBoolean;
64
+ CheckboxGroup: typeof CustomCheckboxGroup;
65
+ CheckboxOne: typeof CheckboxOne;
66
+ CheckboxOption: typeof CheckboxOption;
67
+ Radio: typeof RadioGroup;
68
+ RadioGroup: typeof RadioGroup;
69
+ RadioOption: typeof RadioOption;
70
+ Combobox: typeof Combobox;
71
+ ComboboxContainer: typeof ComboboxContainer;
72
+ ComboboxContentBox: typeof ComboboxContentBox;
73
+ ComboboxPanelContainer: typeof ComboboxPanelContainer;
74
+ ComboboxOption: typeof ComboboxOption;
75
+ ComboboxInput: typeof ComboboxInput;
76
+ ComboboxClearButton: typeof ComboboxClearButton;
77
+ ComboboxLabelSelection: typeof ComboboxLabelSelection;
78
+ Roundabout: typeof CustomRoundabout;
79
+ RoundaboutContainer: typeof RoundaboutContainer;
80
+ RoundaboutLabel: typeof RoundaboutLabel;
81
+ RoundaboutItTitle: typeof RoundaboutItTitle;
82
+ RoundaboutItContainer: typeof RoundaboutItContainer;
83
+ RoundaboutItButton: typeof RoundaboutItButton;
84
+ RoundaboutPending: typeof RoundaboutPending;
85
+ SuggesterNotification: typeof SuggesterNotification;
86
+ SummaryTitle: typeof SummaryTitle;
87
+ SummaryResponses: typeof SummaryResponses;
88
+ Button: typeof Button;
89
+ Label: typeof Label;
90
+ Declarations: typeof Declarations;
91
+ Declaration: typeof Declaration;
92
+ Tr: typeof Tr;
93
+ Td: typeof Td;
94
+ Th: typeof Th;
95
+ Tbody: typeof Tbody;
96
+ Table: typeof Table;
97
+ Thead: typeof Thead;
98
+ Fieldset: typeof Fieldset;
99
+ Notification: typeof Notification;
100
+ RouterLink: typeof RouterLink;
101
+ };
@@ -17,12 +17,6 @@ export type LunaticBaseProps<ValueType = unknown> = {
17
17
  [id: string]: LunaticError[];
18
18
  };
19
19
  preferences?: LunaticState['preferences'];
20
- declarations?: {
21
- id: string;
22
- declarationType: string;
23
- position: string;
24
- label: ReactNode;
25
- }[];
26
20
  label?: ReactNode;
27
21
  disabled?: boolean;
28
22
  missing?: unknown;
@@ -39,7 +33,12 @@ export type LunaticBaseProps<ValueType = unknown> = {
39
33
  className?: string;
40
34
  style?: CSSProperties;
41
35
  iteration?: number;
42
- executeExpression: LunaticState['executeExpression'];
36
+ declarations?: {
37
+ id: string;
38
+ declarationType: string;
39
+ position: string;
40
+ label: ReactNode;
41
+ }[];
43
42
  features?: string[];
44
43
  componentType?: string;
45
44
  goNextPage?: () => void;
@@ -61,8 +60,8 @@ export type SuggesterOption = {
61
60
  type ComponentPropsByType = {
62
61
  InputNumber: LunaticBaseProps<number | null> & {
63
62
  min?: number;
64
- max: number;
65
- decimals: number;
63
+ max?: number;
64
+ decimals?: number;
66
65
  unit?: string;
67
66
  response: {
68
67
  name: string;
@@ -81,13 +80,11 @@ type ComponentPropsByType = {
81
80
  name: string;
82
81
  };
83
82
  };
84
- Sequence: Pick<LunaticBaseProps<string>, 'id' | 'declarations' | 'label' | 'style'>;
85
- Subsequence: Pick<LunaticBaseProps<string>, 'id' | 'declarations' | 'label'>;
86
- Question: Pick<LunaticBaseProps<unknown>, 'declarations' | 'label' | 'id' | 'description'> & {
83
+ Sequence: Pick<LunaticBaseProps<string>, 'id' | 'label' | 'style' | 'declarations' | 'description'>;
84
+ Subsequence: Pick<LunaticBaseProps<string>, 'id' | 'label' | 'declarations'>;
85
+ Question: Pick<LunaticBaseProps<unknown>, 'label' | 'id' | 'description' | 'declarations'> & {
87
86
  components: FilledLunaticComponentProps[];
88
87
  };
89
- QuestionContext: Pick<LunaticBaseProps<unknown>, 'label' | 'description'>;
90
- QuestionInformation: Pick<LunaticBaseProps<unknown>, 'label' | 'description'>;
91
88
  ComponentSet: LunaticBaseProps<unknown> & {
92
89
  components: FilledLunaticComponentProps[];
93
90
  value: Record<string, unknown>;
@@ -104,6 +101,8 @@ type ComponentPropsByType = {
104
101
  value: Record<string, unknown[]>;
105
102
  header?: Array<{
106
103
  label: ReactNode;
104
+ rowspan?: number;
105
+ colspan?: number;
107
106
  }>;
108
107
  paginatedLoop?: boolean;
109
108
  };
@@ -158,7 +157,7 @@ type ComponentPropsByType = {
158
157
  };
159
158
  CheckboxOne: LunaticBaseProps<string | null> & {
160
159
  options: Array<{
161
- description: ReactNode;
160
+ description?: ReactNode;
162
161
  label: ReactNode;
163
162
  value: string;
164
163
  }>;
@@ -176,11 +175,6 @@ type ComponentPropsByType = {
176
175
  };
177
176
  };
178
177
  CheckboxBoolean: LunaticBaseProps<boolean> & {
179
- options: Array<{
180
- description: ReactNode;
181
- label: ReactNode;
182
- value: string;
183
- }>;
184
178
  response: {
185
179
  name: string;
186
180
  };
@@ -229,9 +223,6 @@ type ComponentPropsByType = {
229
223
  };
230
224
  };
231
225
  FilterDescription: Pick<LunaticBaseProps<string>, 'id' | 'label'>;
232
- QuestionExplication: Pick<LunaticBaseProps<string>, 'id' | 'label' | 'description'> & {
233
- bgColor?: string;
234
- };
235
226
  PairwiseLinks: Omit<LunaticBaseProps, 'value'> & {
236
227
  components: LunaticComponentDefinition[];
237
228
  features?: LunaticState['features'];
@@ -266,6 +257,7 @@ type ComponentPropsByType = {
266
257
  };
267
258
  };
268
259
  Summary: LunaticBaseProps<string | null> & {
260
+ executeExpression: LunaticState['executeExpression'];
269
261
  sections: Array<{
270
262
  id: string;
271
263
  responses?: Array<{
@@ -277,12 +269,6 @@ type ComponentPropsByType = {
277
269
  iterations?: number;
278
270
  }>;
279
271
  };
280
- ConfirmationModal: LunaticBaseProps<string | null> & {
281
- goToPage: ReturnType<typeof useLunatic>['goToPage'];
282
- page: string;
283
- goNextPage: () => void;
284
- goPreviousPage: () => void;
285
- };
286
272
  };
287
273
  export type LunaticComponentType = keyof ComponentPropsByType;
288
274
  export type LunaticComponentProps<T extends LunaticComponentType = LunaticComponentType> = ComponentPropsByType[T];
@@ -7,7 +7,7 @@ export declare const SEARCH_TYPES: {
7
7
  prefix: string;
8
8
  tokens: string;
9
9
  };
10
- declare const CONSTANTES: {
10
+ declare const IndexedDBStore: {
11
11
  STORE_DATA_NAME: string;
12
12
  STORE_INDEX_NAME: string;
13
13
  STORE_INDEX_PATH: string;
@@ -18,4 +18,4 @@ declare const CONSTANTES: {
18
18
  };
19
19
  STORE_INFO_NAME: string;
20
20
  };
21
- export default CONSTANTES;
21
+ export default IndexedDBStore;
@@ -0,0 +1,2 @@
1
+ declare function useDocumentEvent<K extends keyof DocumentEventMap>(eventName: K, callback: (e: DocumentEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
2
+ export default useDocumentEvent;
@@ -1,7 +1,9 @@
1
- declare function useOptionsKeydown(options: {
1
+ /**
2
+ * Handle navigating a list with arrow keys
3
+ */
4
+ export declare function useListKeyboardHandler(options: {
2
5
  value: string;
3
6
  }[], onClick: (s: string) => void): ({ key, index }: {
4
7
  key: string;
5
8
  index: number;
6
9
  }) => void;
7
- export default useOptionsKeydown;
@@ -0,0 +1,9 @@
1
+ import type { SuggesterType } from '../use-lunatic/type-source';
2
+ /**
3
+ * Retrieves suggester info from indexedDB
4
+ */
5
+ export declare function useSuggesterInfo(storeName: string, version: string): {
6
+ infos: SuggesterType | undefined;
7
+ state: "Loading" | "Ready" | "Error";
8
+ fetchInfos: () => Promise<void>;
9
+ };
@@ -1,7 +1,7 @@
1
1
  export declare const inputNumberPropsI18N: {
2
- allDecimalSeparators: ("," | ".")[];
2
+ allDecimalSeparators: ("." | ",")[];
3
3
  thousandSeparator: string;
4
4
  decimalSeparator: string;
5
5
  };
6
- declare const _default: Record<"DEFAULT_BUTTON_ADD" | "DEFAULT_BUTTON_REMOVE" | "MODAL_IGNORE" | "MODAL_CORRECT" | "DK" | "RF" | "PLACEHOLDER", string>;
6
+ declare const _default: Record<"DK" | "RF" | "DEFAULT_BUTTON_ADD" | "DEFAULT_BUTTON_REMOVE" | "MODAL_IGNORE" | "MODAL_CORRECT" | "PLACEHOLDER", string>;
7
7
  export default _default;
@@ -8,6 +8,6 @@ declare const inputNumberProps: {
8
8
  readonly en: ".";
9
9
  };
10
10
  };
11
- export declare const allDecimalSeparators: ("," | ".")[];
11
+ export declare const allDecimalSeparators: ("." | ",")[];
12
12
  export type InputNumberPropsI18N = typeof inputNumberProps;
13
13
  export default inputNumberProps;
@@ -1,7 +1,13 @@
1
- export * from './components';
2
- export * as components from './components';
3
- export { LunaticComponents } from './components/lunatic-components';
1
+ /**
2
+ * We should remove this export to avoid `import * as lunatic from "@inseefr/lunatic"` in orchestrators
3
+ * but this is a breaking change
4
+ */
5
+ export { library as components } from './components/library';
6
+ export { ModalControls } from './components/shared/ModalControls/ModalControls';
7
+ export { Button } from './components/shared/Button/Button';
8
+ export { LunaticComponents } from './components/LunaticComponents';
4
9
  export { default as useLunatic } from './use-lunatic';
5
10
  export type { LunaticComponentDefinition, LunaticControl, LunaticData, LunaticValues, LunaticError, LunaticExpression, LunaticVariable, LunaticCollectedValue, LunaticStateVariable, LunaticState, } from './use-lunatic/type';
6
11
  export type { LunaticComponentProps } from './components/type';
12
+ export type { LunaticCustomizedComponent } from './components/type-custom';
7
13
  export type { LunaticSource } from './use-lunatic/type-source';