@inseefr/lunatic 2.7.20 → 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 (774) 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/{declarations/declarations-after-text.js → CheckboxGroup/CustomCheckboxGroup.js} +33 -11
  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} +45 -33
  10. package/lib/components/{datepicker/html/datepicker.js → Datepicker/Datepicker.js} +27 -16
  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/{stories/modal/modal.stories.js → components/Dropdown/Dropdown.spec.js} +40 -23
  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} +6 -9
  22. package/lib/components/{duration/durationInput.js → Duration/Duration.js} +12 -9
  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} +15 -19
  32. package/lib/components/{lunatic-components.js → LunaticComponents.js} +20 -5
  33. package/lib/components/{pairwise-links/pairwise-links.js → PairwiseLinks/PairwiseLinks.js} +11 -14
  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} +31 -35
  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} +7 -28
  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} +6 -7
  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} +4 -5
  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 -13
  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} +2 -2
  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/{commons/components/lunatic-component-without-label.js → shared/ComponentWrapper.js} +41 -32
  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} +7 -6
  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} +6 -7
  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} +11 -7
  106. package/lib/components/{commons/components/md-label/router-link.js → shared/MDLabel/RouterLink.js} +4 -6
  107. package/lib/components/shared/MDLabel/generateUniqueId.js +1 -0
  108. package/lib/components/{commons/components/missing/missing.js → shared/Missing/Missing.js} +16 -19
  109. package/lib/components/{commons/components/missing/missing.spec.js → shared/Missing/Missing.spec.js} +4 -4
  110. package/lib/components/{modal-controls/modal-controls.js → shared/ModalControls/ModalControls.js} +46 -34
  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} +3 -3
  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} +3 -3
  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 +5 -5
  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/index.js +24 -25
  144. package/lib/src/components/CheckboxBoolean/CheckboxBoolean.d.ts +6 -0
  145. package/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +11 -0
  146. package/lib/src/components/CheckboxGroup/CustomCheckboxGroup.d.ts +13 -0
  147. package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +12 -0
  148. package/lib/src/components/ComponentSet/ComponentSet.d.ts +7 -0
  149. package/lib/src/components/Datepicker/Datepicker.d.ts +12 -0
  150. package/lib/src/components/Dropdown/Dropdown.d.ts +13 -0
  151. package/lib/src/components/Dropdown/DropdownWritable.d.ts +17 -0
  152. package/lib/src/components/Dropdown/helpers.d.ts +19 -0
  153. package/lib/src/components/Dropdown/renderer/SimpleLabelRenderer.d.ts +8 -0
  154. package/lib/src/components/Dropdown/renderer/SimpleOptionRenderer.d.ts +7 -0
  155. package/lib/src/components/Dropdown/renderer/WritableLabelRenderer.d.ts +8 -0
  156. package/lib/src/components/Dropdown/renderer/WritableOptionRenderer.d.ts +8 -0
  157. package/lib/src/components/Duration/Duration.d.ts +8 -0
  158. package/lib/src/components/{filter-description/component.d.ts → FilterDescription/FilterDescription.d.ts} +2 -2
  159. package/lib/src/components/Input/Input.d.ts +9 -0
  160. package/lib/src/components/InputNumber/InputNumber.d.ts +11 -0
  161. package/lib/src/components/{input-number/html/input-number-thousand.d.ts → InputNumber/InputNumberThousand.d.ts} +2 -2
  162. package/lib/src/components/{loop/block-for-loop.d.ts → Loop/Loop.d.ts} +2 -2
  163. package/lib/src/components/{question → Question}/Question.d.ts +2 -2
  164. package/lib/src/components/{radio/lunatic-radio-group.d.ts → Radio/Radio.d.ts} +1 -2
  165. package/lib/src/components/{loop/roster-for-loop/roster-for-loop.d.ts → RosterForLoop/RosterForLoop.d.ts} +5 -3
  166. package/lib/src/components/{roundabout/roundabout.d.ts → Roundabout/CustomRoundabout.d.ts} +2 -2
  167. package/lib/src/components/Roundabout/Roundabout.d.ts +6 -0
  168. package/lib/src/components/{roundabout/components/roundabout-it-button.d.ts → Roundabout/RoundaboutItButton.d.ts} +2 -2
  169. package/lib/src/components/Roundabout/RoundaboutRedirect.d.ts +6 -0
  170. package/lib/src/components/Roundabout/extra.d.ts +14 -0
  171. package/lib/src/components/Sequence/Sequence.d.ts +3 -0
  172. package/lib/src/components/Subsequence/Subsequence.d.ts +2 -0
  173. package/lib/src/components/{suggester/html/suggester.d.ts → Suggester/CustomSuggester.d.ts} +6 -7
  174. package/lib/src/components/Suggester/Suggester.d.ts +3 -0
  175. package/lib/src/components/{suggester/idb-suggester/suggester-notification.d.ts → Suggester/SuggesterNotification.d.ts} +3 -3
  176. package/lib/src/components/{suggester/idb-suggester/suggester-status.d.ts → Suggester/SuggesterStatus.d.ts} +1 -1
  177. package/lib/src/components/Suggester/helpers.d.ts +6 -0
  178. package/lib/src/components/Summary/Summary.d.ts +25 -0
  179. package/lib/src/components/Switch/Switch.d.ts +10 -0
  180. package/lib/src/components/Table/Table.d.ts +2 -0
  181. package/lib/src/components/Textarea/Textarea.d.ts +11 -0
  182. package/lib/src/components/library.d.ts +161 -0
  183. package/lib/src/components/{button/lunatic-button.d.ts → shared/Button/Button.d.ts} +3 -3
  184. package/lib/src/components/shared/Button/IconButton.d.ts +7 -0
  185. package/lib/src/components/{checkbox/commons/checkbox-option.d.ts → shared/Checkbox/CheckboxOption.d.ts} +2 -3
  186. package/lib/src/components/shared/Combobox/Combobox.d.ts +21 -0
  187. package/lib/src/components/shared/Combobox/Combobox.stories.d.ts +6 -0
  188. package/lib/src/components/{commons/components/combo-box/combo-box-container.d.ts → shared/Combobox/ComboboxContainer.d.ts} +3 -3
  189. package/lib/src/components/{commons/components/combo-box/combo-box-content.d.ts → shared/Combobox/ComboboxContent.d.ts} +2 -2
  190. package/lib/src/components/shared/Combobox/ComboboxContentBox.d.ts +7 -0
  191. package/lib/src/components/shared/Combobox/ComboboxType.d.ts +50 -0
  192. package/lib/src/components/shared/Combobox/Panel/ComboboxOption.d.ts +8 -0
  193. package/lib/src/components/{commons/components/combo-box/panel/option-container.d.ts → shared/Combobox/Panel/ComboboxOptionContainer.d.ts} +1 -1
  194. package/lib/src/components/shared/Combobox/Panel/ComboboxPanel.d.ts +5 -0
  195. package/lib/src/components/{commons/components/combo-box/panel/panel-container.d.ts → shared/Combobox/Panel/ComboboxPanelContainer.d.ts} +2 -2
  196. package/lib/src/components/{commons/components/combo-box/selection/clear-button.d.ts → shared/Combobox/Selection/ComboboxClearButton.d.ts} +1 -1
  197. package/lib/src/components/{commons/components/combo-box/selection/input.d.ts → shared/Combobox/Selection/ComboboxInput.d.ts} +1 -2
  198. package/lib/src/components/shared/Combobox/Selection/ComboboxLabelSelection.d.ts +11 -0
  199. package/lib/src/components/shared/Combobox/Selection/ComboboxSelection.d.ts +6 -0
  200. package/lib/src/components/shared/Combobox/index.d.ts +0 -0
  201. package/lib/src/components/shared/ComponentErrors/ComponentErrors.d.ts +15 -0
  202. package/lib/src/components/shared/ComponentWrapper.d.ts +26 -0
  203. package/lib/src/components/shared/Declarations/Declarations.d.ts +17 -0
  204. package/lib/src/components/shared/Fieldset/Fieldset.d.ts +10 -0
  205. package/lib/src/components/shared/HOC/customizedComponent.d.ts +5 -0
  206. package/lib/src/components/shared/Icons/index.d.ts +10 -0
  207. package/lib/src/components/shared/Label/Label.d.ts +11 -0
  208. package/lib/src/components/shared/LabelDescription.d.ts +7 -0
  209. package/lib/src/components/{commons/components/md-label/md-label.d.ts → shared/MDLabel/MDLabel.d.ts} +2 -2
  210. package/lib/src/components/shared/MDLabel/MDLabelLink.d.ts +8 -0
  211. package/lib/src/components/{commons/components/md-label/router-link.d.ts → shared/MDLabel/RouterLink.d.ts} +2 -2
  212. package/lib/src/components/shared/MDLabel/generateUniqueId.d.ts +0 -0
  213. package/lib/src/components/{commons/components/missing/missing.d.ts → shared/Missing/Missing.d.ts} +4 -4
  214. package/lib/src/components/shared/ModalControls/ModalControls.d.ts +11 -0
  215. package/lib/src/components/{suggester/html/notification.d.ts → shared/Notification.d.ts} +2 -2
  216. package/lib/src/components/{radio/html/radio-group.d.ts → shared/Radio/RadioGroup.d.ts} +2 -3
  217. package/lib/src/components/{radio/html/radio-option.d.ts → shared/Radio/RadioOption.d.ts} +1 -2
  218. package/lib/src/components/{commons/components/html-table/table.d.ts → shared/Table/Table.d.ts} +2 -2
  219. package/lib/src/components/shared/Table/TableHeader.d.ts +2 -0
  220. package/lib/src/components/{commons/components/html-table/tbody.d.ts → shared/Table/Tbody.d.ts} +1 -1
  221. package/lib/src/components/{commons/components/html-table/td.d.ts → shared/Table/Td.d.ts} +1 -1
  222. package/lib/src/components/{commons/components/html-table/th.d.ts → shared/Table/Th.d.ts} +1 -1
  223. package/lib/src/components/{commons/components/html-table/thead.d.ts → shared/Table/Thead.d.ts} +1 -1
  224. package/lib/src/components/{commons/components/html-table/tr.d.ts → shared/Table/Tr.d.ts} +1 -1
  225. package/lib/src/components/shared/Table/index.d.ts +7 -0
  226. package/lib/src/components/shared/VariableStatus/VariableStatus.d.ts +7 -0
  227. package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/loader-row.d.ts +1 -1
  228. package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/loader.d.ts +1 -1
  229. package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget.d.ts +1 -1
  230. package/lib/src/components/type-custom.d.ts +101 -0
  231. package/lib/src/components/type.d.ts +15 -29
  232. package/lib/src/{utils/store-tools/constantes.d.ts → constants/indexedDBStore.d.ts} +2 -2
  233. package/lib/src/hooks/useDocumentEvent.d.ts +2 -0
  234. package/lib/src/{components/commons/use-options-keydown.d.ts → hooks/useListKeyboardHandler.d.ts} +4 -2
  235. package/lib/src/hooks/useSuggesterInfo.d.ts +9 -0
  236. package/lib/src/i18n/index.d.ts +2 -2
  237. package/lib/src/i18n/inputNumberProps.d.ts +1 -1
  238. package/lib/src/index.d.ts +5 -3
  239. package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +19 -51
  240. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +0 -74
  241. package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +17 -23
  242. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +5 -101
  243. package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
  244. package/lib/src/use-lunatic/replace-component-sequence.d.ts +1 -3
  245. package/lib/src/use-lunatic/type-source.d.ts +1 -8
  246. package/lib/src/use-lunatic/use-lunatic.d.ts +29 -57
  247. package/lib/src/utils/store-tools/index.d.ts +1 -1
  248. package/lib/stories/behaviour/others/test.stories.js +1 -1
  249. package/lib/stories/checkbox-group/sourceLoop.json +1 -1
  250. package/lib/stories/date-picker/datepicker.stories.js +2 -3
  251. package/lib/stories/loop/loop.stories.js +1 -1
  252. package/lib/stories/loop/roster-for-loop.stories.js +1 -1
  253. package/lib/stories/markdown/markdown.stories.js +1 -1
  254. package/lib/stories/questionnaires/recensement/source.json +2 -2
  255. package/lib/stories/sequence/sequence.stories.js +1 -1
  256. package/lib/stories/suggester/source-component-set.json +54 -8
  257. package/lib/stories/suggester/source.json +326 -182
  258. package/lib/stories/suggester/suggester-workers.stories.js +5 -5
  259. package/lib/stories/suggester/suggester.stories.js +1 -15
  260. package/lib/stories/switch/switch.stories.js +1 -6
  261. package/lib/stories/table/table.stories.js +1 -11
  262. package/lib/stories/utils/orchestrator.js +25 -26
  263. package/lib/stories/utils/referentiel.js +5 -14
  264. package/lib/use-lunatic/commons/page.js +0 -5
  265. package/lib/use-lunatic/reducer/reduce-on-init.js +2 -2
  266. package/lib/utils/idb-tools/open-or-create-db.js +4 -4
  267. package/lib/utils/store-tools/clear-store-data.js +2 -2
  268. package/lib/utils/store-tools/clear-store-info.js +2 -2
  269. package/lib/utils/store-tools/create/create.js +2 -2
  270. package/lib/utils/store-tools/create/update-store-info.js +3 -3
  271. package/lib/utils/store-tools/get-store-count.js +3 -3
  272. package/lib/utils/store-tools/index.js +1 -1
  273. package/lib/utils/store-tools/initStore.js +4 -4
  274. package/lib/utils/store-tools/open-or-create-store.js +4 -4
  275. package/lib/utils/suggester-workers/append-to-index/append.js +2 -2
  276. package/lib/utils/suggester-workers/searching/search-in-index.js +2 -2
  277. package/lib/utils/suggester-workers/searching/searching.js +5 -5
  278. package/package.json +2 -5
  279. package/workers-release/lunatic-append-worker-0.3.0.js +1 -1
  280. package/workers-release/lunatic-append-worker-0.3.0.js.LICENSE.txt +0 -10
  281. package/workers-release/lunatic-search-worker-0.3.0.js +1 -1
  282. package/workers-release/lunatic-search-worker-0.3.0.js.LICENSE.txt +0 -10
  283. package/lib/components/button/index.js +0 -13
  284. package/lib/components/checkbox/checkbox-boolean/html/checkbox-boolean.js +0 -34
  285. package/lib/components/checkbox/checkbox-boolean/index.js +0 -13
  286. package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +0 -58
  287. package/lib/components/checkbox/checkbox-group/checkbox-group-content.js +0 -34
  288. package/lib/components/checkbox/checkbox-group/html/checkbox-group-content.js +0 -41
  289. package/lib/components/checkbox/checkbox-group/html/checkbox-group.js +0 -33
  290. package/lib/components/checkbox/checkbox-group/html/checkbox-group.scss +0 -12
  291. package/lib/components/checkbox/checkbox-group/index.js +0 -13
  292. package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +0 -71
  293. package/lib/components/checkbox/checkbox-one/html/checkbox-one.js +0 -34
  294. package/lib/components/checkbox/checkbox-one/index.js +0 -13
  295. package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +0 -61
  296. package/lib/components/checkbox/commons/index.js +0 -13
  297. package/lib/components/checkbox/index.js +0 -27
  298. package/lib/components/commons/components/combo-box/index.js +0 -13
  299. package/lib/components/commons/components/combo-box/selection/LabelOrInput.js +0 -56
  300. package/lib/components/commons/components/combo-box/selection/LabelOrInput.spec.js +0 -21
  301. package/lib/components/commons/components/combo-box/selection/label-selection.js +0 -30
  302. package/lib/components/commons/components/combo-box/selection/label-selection.spec.js +0 -41
  303. package/lib/components/commons/components/combo-box/selection/selection-container.js +0 -36
  304. package/lib/components/commons/components/combo-box/selection/selection-container.spec.js +0 -52
  305. package/lib/components/commons/components/combo-box/selection/selection.js +0 -53
  306. package/lib/components/commons/components/description.js +0 -52
  307. package/lib/components/commons/components/description.spec.js +0 -45
  308. package/lib/components/commons/components/errors/errors.spec.js +0 -45
  309. package/lib/components/commons/components/errors/index.js +0 -13
  310. package/lib/components/commons/components/fab/index.js +0 -13
  311. package/lib/components/commons/components/field-container/field-container.js +0 -26
  312. package/lib/components/commons/components/field-container/filed-container.spec.js +0 -37
  313. package/lib/components/commons/components/field-container/index.js +0 -13
  314. package/lib/components/commons/components/fieldset.js +0 -28
  315. package/lib/components/commons/components/fieldset.spec.js +0 -51
  316. package/lib/components/commons/components/label/index.js +0 -13
  317. package/lib/components/commons/components/label/label.js +0 -34
  318. package/lib/components/commons/components/label/label.spec.js +0 -77
  319. package/lib/components/commons/components/lunatic-component-with-label.js +0 -66
  320. package/lib/components/commons/components/md-label/generateUniqueId.js +0 -11
  321. package/lib/components/commons/components/md-label/index.js +0 -13
  322. package/lib/components/commons/components/missing/index.js +0 -13
  323. package/lib/components/commons/components/nothing-to-display.js +0 -15
  324. package/lib/components/commons/components/nothing-to-display.spec.js +0 -15
  325. package/lib/components/commons/components/orchestrated-component.js +0 -40
  326. package/lib/components/commons/components/variable-status/img/index.js +0 -20
  327. package/lib/components/commons/components/variable-status/index.js +0 -13
  328. package/lib/components/commons/index.js +0 -96
  329. package/lib/components/commons/safety-label.js +0 -24
  330. package/lib/components/commons/use-on-handle-change.js +0 -18
  331. package/lib/components/commons/use-on-handle-change.spec.js +0 -50
  332. package/lib/components/component-set/html/__snapshots__/component-set.spec.tsx.snap +0 -126
  333. package/lib/components/component-set/html/component-set-legend.js +0 -28
  334. package/lib/components/component-set/html/component-set-wrapper.js +0 -15
  335. package/lib/components/component-set/html/component-set.js +0 -28
  336. package/lib/components/component-set/html/component-set.spec.js +0 -91
  337. package/lib/components/datepicker/html/datepicker.spec.js +0 -86
  338. package/lib/components/datepicker/index.js +0 -13
  339. package/lib/components/datepicker/lunatic-datepicker.js +0 -63
  340. package/lib/components/declarations/declaration.js +0 -21
  341. package/lib/components/declarations/declaration.spec.js +0 -30
  342. package/lib/components/declarations/declarations-before-text.js +0 -23
  343. package/lib/components/declarations/declarations-detachable.js +0 -23
  344. package/lib/components/declarations/declarations.js +0 -42
  345. package/lib/components/declarations/index.js +0 -43
  346. package/lib/components/dropdown/html/dropdown-simple/dropdown-simple.js +0 -39
  347. package/lib/components/dropdown/html/dropdown-simple/index.js +0 -13
  348. package/lib/components/dropdown/html/dropdown-writable/filter-tools/filter-options.js +0 -28
  349. package/lib/components/dropdown/html/dropdown-writable/filter-tools/filter-options.spec.js +0 -106
  350. package/lib/components/dropdown/html/dropdown-writable/filter-tools/get-label.js +0 -24
  351. package/lib/components/dropdown/html/dropdown-writable/filter-tools/letters-matching.js +0 -28
  352. package/lib/components/dropdown/html/dropdown-writable/filter-tools/match.js +0 -21
  353. package/lib/components/dropdown/html/dropdown-writable/filter-tools/prepare-prefix.js +0 -15
  354. package/lib/components/dropdown/html/dropdown-writable/index.js +0 -13
  355. package/lib/components/dropdown/html/dropdown.js +0 -52
  356. package/lib/components/dropdown/html/dropdown.spec.js +0 -48
  357. package/lib/components/dropdown/index.js +0 -13
  358. package/lib/components/dropdown/lunatic-dropdown.js +0 -62
  359. package/lib/components/duration/duration.js +0 -53
  360. package/lib/components/duration/index.js +0 -13
  361. package/lib/components/filter-description/index.js +0 -13
  362. package/lib/components/index.js +0 -223
  363. package/lib/components/input/html/input.js +0 -57
  364. package/lib/components/input/index.js +0 -13
  365. package/lib/components/input/lunatic-input.js +0 -59
  366. package/lib/components/input-number/html/input-number.js +0 -58
  367. package/lib/components/input-number/index.js +0 -13
  368. package/lib/components/input-number/lunatic-input-number.js +0 -63
  369. package/lib/components/loop/loop-button.js +0 -19
  370. package/lib/components/loop/loop-header.js +0 -30
  371. package/lib/components/loop/loop.js +0 -36
  372. package/lib/components/modal/html/modal.js +0 -59
  373. package/lib/components/modal/html/modal.scss +0 -26
  374. package/lib/components/modal/index.js +0 -13
  375. package/lib/components/modal/lunatic-modal.js +0 -61
  376. package/lib/components/modal-controls/close-or-skip.js +0 -38
  377. package/lib/components/modal-controls/close-or-skip.spec.js +0 -36
  378. package/lib/components/modal-controls/index.js +0 -13
  379. package/lib/components/modal-controls/modal-container.js +0 -21
  380. package/lib/components/modal-controls/modal-container.spec.js +0 -23
  381. package/lib/components/question/Question.js +0 -49
  382. package/lib/components/question/index.js +0 -16
  383. package/lib/components/question-explication/html/question-explication.js +0 -51
  384. package/lib/components/question-explication/html/question-explication.scss +0 -35
  385. package/lib/components/question-explication/index.js +0 -13
  386. package/lib/components/question-explication/lunatic-question-explication.js +0 -31
  387. package/lib/components/question-explication/question-explication.spec.js +0 -49
  388. package/lib/components/questions/index.js +0 -20
  389. package/lib/components/questions/question-context.js +0 -34
  390. package/lib/components/questions/question-context.scss +0 -10
  391. package/lib/components/questions/question-information.js +0 -34
  392. package/lib/components/questions/question-information.scss +0 -19
  393. package/lib/components/radio/html/radio-group-content.js +0 -53
  394. package/lib/components/radio/html/radio-group-content.spec.js +0 -99
  395. package/lib/components/radio/html/radio-group.js +0 -45
  396. package/lib/components/radio/index.js +0 -13
  397. package/lib/components/radio/lunatic-radio-group.js +0 -66
  398. package/lib/components/roundabout/components/roundabout-container.js +0 -19
  399. package/lib/components/roundabout/components/roundabout-container.spec.js +0 -23
  400. package/lib/components/roundabout/components/roundabout-it-container.js +0 -18
  401. package/lib/components/roundabout/components/roundabout-it-container.spec.js +0 -23
  402. package/lib/components/roundabout/components/roundabout-it-title.js +0 -16
  403. package/lib/components/roundabout/components/roundabout-it-title.spec.js +0 -18
  404. package/lib/components/roundabout/components/roundabout-label.js +0 -16
  405. package/lib/components/roundabout/components/roundabout-label.spec.js +0 -18
  406. package/lib/components/roundabout/components/roundabout-pending.js +0 -17
  407. package/lib/components/roundabout/components/roundabout-pending.spec.js +0 -15
  408. package/lib/components/roundabout/index.js +0 -13
  409. package/lib/components/sequence/html/sequence.js +0 -28
  410. package/lib/components/sequence/index.js +0 -13
  411. package/lib/components/sequence/lunatic-sequence.js +0 -30
  412. package/lib/components/sequence/sequence.spec.js +0 -75
  413. package/lib/components/subsequence/index.js +0 -13
  414. package/lib/components/subsequence/subsequence.js +0 -32
  415. package/lib/components/suggester/find-best-label/find-best-label.js +0 -49
  416. package/lib/components/suggester/find-best-label/index.js +0 -13
  417. package/lib/components/suggester/idb-suggester/idb-suggester.js +0 -72
  418. package/lib/components/suggester/idb-suggester/index.js +0 -12
  419. package/lib/components/suggester/index.js +0 -13
  420. package/lib/components/suggester/lunatic-suggester.js +0 -70
  421. package/lib/components/suggester/searching/index.js +0 -13
  422. package/lib/components/summary/html/summary-container.js +0 -14
  423. package/lib/components/summary/html/summary-responses.js +0 -56
  424. package/lib/components/summary/html/summary-title.js +0 -19
  425. package/lib/components/summary/index.js +0 -12
  426. package/lib/components/switch/index.js +0 -13
  427. package/lib/components/switch/lunatic-switch.js +0 -63
  428. package/lib/components/table/lunatic-table.js +0 -72
  429. package/lib/components/textarea/html/textarea.js +0 -54
  430. package/lib/components/textarea/html/textarea.spec.js +0 -38
  431. package/lib/components/textarea/index.js +0 -13
  432. package/lib/components/textarea/lunatic-textarea.js +0 -77
  433. package/lib/src/components/button/index.d.ts +0 -1
  434. package/lib/src/components/checkbox/checkbox-boolean/html/checkbox-boolean.d.ts +0 -13
  435. package/lib/src/components/checkbox/checkbox-boolean/index.d.ts +0 -1
  436. package/lib/src/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.d.ts +0 -8
  437. package/lib/src/components/checkbox/checkbox-group/checkbox-group-content.d.ts +0 -8
  438. package/lib/src/components/checkbox/checkbox-group/html/checkbox-group-content.d.ts +0 -9
  439. package/lib/src/components/checkbox/checkbox-group/html/checkbox-group.d.ts +0 -14
  440. package/lib/src/components/checkbox/checkbox-group/index.d.ts +0 -1
  441. package/lib/src/components/checkbox/checkbox-group/lunatic-checkbox-group.d.ts +0 -11
  442. package/lib/src/components/checkbox/checkbox-one/html/checkbox-one.d.ts +0 -5
  443. package/lib/src/components/checkbox/checkbox-one/index.d.ts +0 -1
  444. package/lib/src/components/checkbox/checkbox-one/lunatic-checkbox-one.d.ts +0 -3
  445. package/lib/src/components/checkbox/commons/index.d.ts +0 -1
  446. package/lib/src/components/checkbox/index.d.ts +0 -3
  447. package/lib/src/components/commons/components/combo-box/combo-box-content-box.d.ts +0 -8
  448. package/lib/src/components/commons/components/combo-box/combo-box.d.ts +0 -23
  449. package/lib/src/components/commons/components/combo-box/combo-box.stories.d.ts +0 -6
  450. package/lib/src/components/commons/components/combo-box/combo-box.type.d.ts +0 -8
  451. package/lib/src/components/commons/components/combo-box/index.d.ts +0 -1
  452. package/lib/src/components/commons/components/combo-box/panel/combo-box-option.d.ts +0 -8
  453. package/lib/src/components/commons/components/combo-box/panel/panel.d.ts +0 -20
  454. package/lib/src/components/commons/components/combo-box/selection/LabelOrInput.d.ts +0 -18
  455. package/lib/src/components/commons/components/combo-box/selection/combo-box-label-selection.d.ts +0 -11
  456. package/lib/src/components/commons/components/combo-box/selection/label-selection.d.ts +0 -21
  457. package/lib/src/components/commons/components/combo-box/selection/selection-container.d.ts +0 -11
  458. package/lib/src/components/commons/components/combo-box/selection/selection.d.ts +0 -13
  459. package/lib/src/components/commons/components/description.d.ts +0 -22
  460. package/lib/src/components/commons/components/errors/errors.d.ts +0 -11
  461. package/lib/src/components/commons/components/errors/index.d.ts +0 -1
  462. package/lib/src/components/commons/components/fab/fab.d.ts +0 -7
  463. package/lib/src/components/commons/components/fab/index.d.ts +0 -1
  464. package/lib/src/components/commons/components/field-container/field-container.d.ts +0 -6
  465. package/lib/src/components/commons/components/field-container/index.d.ts +0 -1
  466. package/lib/src/components/commons/components/fieldset.d.ts +0 -13
  467. package/lib/src/components/commons/components/html-table/index.d.ts +0 -6
  468. package/lib/src/components/commons/components/label/index.d.ts +0 -1
  469. package/lib/src/components/commons/components/label/label.d.ts +0 -14
  470. package/lib/src/components/commons/components/lunatic-component-with-label.d.ts +0 -12
  471. package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +0 -12
  472. package/lib/src/components/commons/components/md-label/generateUniqueId.d.ts +0 -1
  473. package/lib/src/components/commons/components/md-label/index.d.ts +0 -1
  474. package/lib/src/components/commons/components/md-label/link.d.ts +0 -7
  475. package/lib/src/components/commons/components/missing/index.d.ts +0 -1
  476. package/lib/src/components/commons/components/nothing-to-display.d.ts +0 -2
  477. package/lib/src/components/commons/components/orchestrated-component.d.ts +0 -8
  478. package/lib/src/components/commons/components/variable-status/img/index.d.ts +0 -2
  479. package/lib/src/components/commons/components/variable-status/index.d.ts +0 -1
  480. package/lib/src/components/commons/components/variable-status/variable-status.d.ts +0 -16
  481. package/lib/src/components/commons/create-customizable-field.d.ts +0 -3
  482. package/lib/src/components/commons/icons/index.d.ts +0 -10
  483. package/lib/src/components/commons/index.d.ts +0 -13
  484. package/lib/src/components/commons/safety-label.d.ts +0 -3
  485. package/lib/src/components/commons/use-document-add-event-listener.d.ts +0 -2
  486. package/lib/src/components/commons/use-on-handle-change.d.ts +0 -12
  487. package/lib/src/components/component-set/html/component-set-legend.d.ts +0 -8
  488. package/lib/src/components/component-set/html/component-set-wrapper.d.ts +0 -6
  489. package/lib/src/components/component-set/html/component-set.d.ts +0 -10
  490. package/lib/src/components/component-set/lunatic-component-set.d.ts +0 -3
  491. package/lib/src/components/datepicker/html/datepicker.d.ts +0 -18
  492. package/lib/src/components/datepicker/index.d.ts +0 -1
  493. package/lib/src/components/datepicker/lunatic-datepicker.d.ts +0 -10
  494. package/lib/src/components/declarations/declaration.d.ts +0 -6
  495. package/lib/src/components/declarations/declarations-after-text.d.ts +0 -4
  496. package/lib/src/components/declarations/declarations-before-text.d.ts +0 -4
  497. package/lib/src/components/declarations/declarations-detachable.d.ts +0 -4
  498. package/lib/src/components/declarations/declarations.d.ts +0 -15
  499. package/lib/src/components/declarations/index.d.ts +0 -4
  500. package/lib/src/components/dropdown/html/dropdown-simple/dropdown-simple.d.ts +0 -3
  501. package/lib/src/components/dropdown/html/dropdown-simple/index.d.ts +0 -1
  502. package/lib/src/components/dropdown/html/dropdown-simple/simple-label-renderer.d.ts +0 -8
  503. package/lib/src/components/dropdown/html/dropdown-simple/simple-option-renderer.d.ts +0 -7
  504. package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +0 -17
  505. package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/filter-options.d.ts +0 -6
  506. package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/get-label.d.ts +0 -9
  507. package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/letters-matching.d.ts +0 -2
  508. package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/match.d.ts +0 -2
  509. package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/prepare-prefix.d.ts +0 -2
  510. package/lib/src/components/dropdown/html/dropdown-writable/index.d.ts +0 -1
  511. package/lib/src/components/dropdown/html/dropdown-writable/writable-label-renderer.d.ts +0 -8
  512. package/lib/src/components/dropdown/html/dropdown-writable/writable-option-renderer.d.ts +0 -8
  513. package/lib/src/components/dropdown/html/dropdown.d.ts +0 -12
  514. package/lib/src/components/dropdown/html/dropdown.spec.d.ts +0 -1
  515. package/lib/src/components/dropdown/index.d.ts +0 -1
  516. package/lib/src/components/dropdown/lunatic-dropdown.d.ts +0 -3
  517. package/lib/src/components/duration/duration.d.ts +0 -4
  518. package/lib/src/components/duration/durationInput.d.ts +0 -11
  519. package/lib/src/components/duration/index.d.ts +0 -1
  520. package/lib/src/components/filter-description/component.spec.d.ts +0 -1
  521. package/lib/src/components/filter-description/index.d.ts +0 -1
  522. package/lib/src/components/index.d.ts +0 -31
  523. package/lib/src/components/input/html/input.d.ts +0 -17
  524. package/lib/src/components/input/html/input.spec.d.ts +0 -1
  525. package/lib/src/components/input/index.d.ts +0 -1
  526. package/lib/src/components/input/lunatic-input.d.ts +0 -3
  527. package/lib/src/components/input-number/html/input-number.d.ts +0 -20
  528. package/lib/src/components/input-number/html/input-number.spec.d.ts +0 -1
  529. package/lib/src/components/input-number/index.d.ts +0 -1
  530. package/lib/src/components/input-number/lunatic-input-number.d.ts +0 -3
  531. package/lib/src/components/loop/loop-button.d.ts +0 -7
  532. package/lib/src/components/loop/loop-header.d.ts +0 -9
  533. package/lib/src/components/loop/loop.d.ts +0 -2
  534. package/lib/src/components/loop/roster-for-loop/roster-for-loop.spec.d.ts +0 -1
  535. package/lib/src/components/modal/html/modal.d.ts +0 -11
  536. package/lib/src/components/modal/index.d.ts +0 -1
  537. package/lib/src/components/modal/lunatic-modal.d.ts +0 -3
  538. package/lib/src/components/modal-controls/close-or-skip.d.ts +0 -8
  539. package/lib/src/components/modal-controls/close-or-skip.spec.d.ts +0 -1
  540. package/lib/src/components/modal-controls/index.d.ts +0 -1
  541. package/lib/src/components/modal-controls/modal-container.d.ts +0 -3
  542. package/lib/src/components/modal-controls/modal-container.spec.d.ts +0 -1
  543. package/lib/src/components/modal-controls/modal-controls.d.ts +0 -11
  544. package/lib/src/components/modal-controls/modal-controls.spec.d.ts +0 -1
  545. package/lib/src/components/question/index.d.ts +0 -1
  546. package/lib/src/components/question-explication/html/question-explication.d.ts +0 -7
  547. package/lib/src/components/question-explication/index.d.ts +0 -1
  548. package/lib/src/components/question-explication/lunatic-question-explication.d.ts +0 -3
  549. package/lib/src/components/question-explication/question-explication.spec.d.ts +0 -1
  550. package/lib/src/components/questions/index.d.ts +0 -2
  551. package/lib/src/components/questions/question-context.d.ts +0 -4
  552. package/lib/src/components/questions/question-information.d.ts +0 -4
  553. package/lib/src/components/radio/html/radio-group-content.d.ts +0 -19
  554. package/lib/src/components/radio/html/radio-group-content.spec.d.ts +0 -1
  555. package/lib/src/components/radio/html/radio-option.spec.d.ts +0 -1
  556. package/lib/src/components/radio/index.d.ts +0 -1
  557. package/lib/src/components/roundabout/components/roundabout-container.d.ts +0 -6
  558. package/lib/src/components/roundabout/components/roundabout-container.spec.d.ts +0 -1
  559. package/lib/src/components/roundabout/components/roundabout-it-button.spec.d.ts +0 -1
  560. package/lib/src/components/roundabout/components/roundabout-it-container.d.ts +0 -5
  561. package/lib/src/components/roundabout/components/roundabout-it-container.spec.d.ts +0 -1
  562. package/lib/src/components/roundabout/components/roundabout-it-title.d.ts +0 -5
  563. package/lib/src/components/roundabout/components/roundabout-it-title.spec.d.ts +0 -1
  564. package/lib/src/components/roundabout/components/roundabout-label.d.ts +0 -5
  565. package/lib/src/components/roundabout/components/roundabout-label.spec.d.ts +0 -1
  566. package/lib/src/components/roundabout/components/roundabout-pending.d.ts +0 -3
  567. package/lib/src/components/roundabout/components/roundabout-pending.spec.d.ts +0 -1
  568. package/lib/src/components/roundabout/index.d.ts +0 -1
  569. package/lib/src/components/roundabout/lunatic-roundabout.d.ts +0 -6
  570. package/lib/src/components/roundabout/redirect.d.ts +0 -6
  571. package/lib/src/components/sequence/html/sequence.d.ts +0 -5
  572. package/lib/src/components/sequence/index.d.ts +0 -1
  573. package/lib/src/components/sequence/lunatic-sequence.d.ts +0 -3
  574. package/lib/src/components/sequence/sequence.spec.d.ts +0 -1
  575. package/lib/src/components/subsequence/index.d.ts +0 -1
  576. package/lib/src/components/subsequence/subsequence.d.ts +0 -3
  577. package/lib/src/components/subsequence/subsequence.spec.d.ts +0 -1
  578. package/lib/src/components/suggester/find-best-label/find-best-label.d.ts +0 -2
  579. package/lib/src/components/suggester/find-best-label/index.d.ts +0 -1
  580. package/lib/src/components/suggester/idb-suggester/check-store.d.ts +0 -11
  581. package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +0 -9
  582. package/lib/src/components/suggester/idb-suggester/index.d.ts +0 -1
  583. package/lib/src/components/suggester/index.d.ts +0 -1
  584. package/lib/src/components/suggester/lunatic-suggester.d.ts +0 -3
  585. package/lib/src/components/suggester/searching/create-searching.d.ts +0 -7
  586. package/lib/src/components/suggester/searching/index.d.ts +0 -1
  587. package/lib/src/components/summary/html/summary-container.d.ts +0 -2
  588. package/lib/src/components/summary/html/summary-responses.d.ts +0 -14
  589. package/lib/src/components/summary/html/summary-title.d.ts +0 -5
  590. package/lib/src/components/summary/index.d.ts +0 -1
  591. package/lib/src/components/summary/lunatic-summary.d.ts +0 -8
  592. package/lib/src/components/switch/html/switch.d.ts +0 -18
  593. package/lib/src/components/switch/index.d.ts +0 -1
  594. package/lib/src/components/switch/lunatic-switch.d.ts +0 -3
  595. package/lib/src/components/table/lunatic-table.d.ts +0 -3
  596. package/lib/src/components/table/table-header.d.ts +0 -11
  597. package/lib/src/components/textarea/html/textarea.d.ts +0 -19
  598. package/lib/src/components/textarea/html/textarea.spec.d.ts +0 -1
  599. package/lib/src/components/textarea/index.d.ts +0 -1
  600. package/lib/src/components/textarea/lunatic-textarea.d.ts +0 -18
  601. package/lib/src/use-lunatic/reducer/reduce-go-next-page.spec.d.ts +0 -1
  602. package/lib/src/use-lunatic/reducer/reduce-go-previous-page.spec.d.ts +0 -1
  603. package/lib/stories/custom-mui/checkbox-boolean-mui.js +0 -31
  604. package/lib/stories/custom-mui/checkbox-group-mui.js +0 -67
  605. package/lib/stories/custom-mui/checkbox-one-mui.js +0 -15
  606. package/lib/stories/custom-mui/index.js +0 -111
  607. package/lib/stories/custom-mui/input-mui.js +0 -51
  608. package/lib/stories/custom-mui/input-number-mui.js +0 -39
  609. package/lib/stories/custom-mui/radio-mui.js +0 -61
  610. package/lib/stories/custom-mui/suggester-mui/index.js +0 -13
  611. package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +0 -301
  612. package/lib/stories/custom-mui/switch-mui.js +0 -46
  613. package/lib/stories/custom-mui/table-mui.js +0 -27
  614. package/lib/stories/custom-mui/tbody-mui.js +0 -22
  615. package/lib/stories/custom-mui/td-mui.js +0 -24
  616. package/lib/stories/custom-mui/textarea-mui.js +0 -42
  617. package/lib/stories/custom-mui/th-mui.js +0 -23
  618. package/lib/stories/custom-mui/thead-mui.js +0 -22
  619. package/lib/stories/custom-mui/tr-mui.js +0 -32
  620. package/lib/stories/modal/source.json +0 -97
  621. package/lib/stories/question-context/question-context.stories.js +0 -31
  622. package/lib/stories/question-context/source.json +0 -13
  623. package/lib/stories/question-explication/question-explication.stories.js +0 -31
  624. package/lib/stories/question-explication/source.json +0 -17
  625. package/lib/stories/question-information/question-information.stories.js +0 -32
  626. package/lib/stories/question-information/source.json +0 -14
  627. package/lib/stories/suggester/simple.json +0 -168
  628. package/lib/tests/utils/lunatic.d.ts +0 -25
  629. package/lib/use-lunatic/reducer/reduce-go-next-page.spec.js +0 -13
  630. package/lib/use-lunatic/reducer/reduce-go-previous-page.spec.js +0 -14
  631. /package/lib/components/{checkbox/checkbox-one/html/checkbox-one.scss → CheckboxOne/CheckboxOne.scss} +0 -0
  632. /package/lib/components/{datepicker/html/datepicker.scss → Datepicker/Datepicker.scss} +0 -0
  633. /package/lib/components/{datepicker/html → Datepicker}/DatepickerField.js +0 -0
  634. /package/lib/components/{dropdown/html/dropdown.scss → Dropdown/Dropdown.scss} +0 -0
  635. /package/lib/components/{duration/duration.scss → Duration/Duration.scss} +0 -0
  636. /package/lib/components/{duration → Duration}/durationUtils.js +0 -0
  637. /package/lib/components/{duration → Duration}/formatDuration.js +0 -0
  638. /package/lib/components/{duration → Duration}/formatDuration.spec.js +0 -0
  639. /package/lib/components/{duration → Duration}/getDurationFromValue.js +0 -0
  640. /package/lib/components/{input/html/input.scss → Input/Input.scss} +0 -0
  641. /package/lib/components/{input/html/__snapshots__/input.spec.tsx.snap → Input/__snapshots__/Input.spec.tsx.snap} +0 -0
  642. /package/lib/components/{input-number/html/input-number.scss → InputNumber/InputNumber.scss} +0 -0
  643. /package/lib/components/{loop → Loop}/constant.js +0 -0
  644. /package/lib/components/{radio/radio.scss → Radio/Radio.scss} +0 -0
  645. /package/lib/components/{loop/roster-for-loop/roster.scss → RosterForLoop/RosterForLoop.scss} +0 -0
  646. /package/lib/components/{loop/roster-for-loop/__snapshots__/roster-for-loop.spec.tsx.snap → RosterForLoop/__snapshots__/RosterForLoop.spec.tsx.snap} +0 -0
  647. /package/lib/components/{roundabout/components/roundabout.scss → Roundabout/Roundabout.scss} +0 -0
  648. /package/lib/components/{sequence/html/sequence.scss → Sequence/Sequence.scss} +0 -0
  649. /package/lib/components/{suggester/html → Suggester/icons}/alert-icon.svg +0 -0
  650. /package/lib/components/{suggester/html → Suggester/icons}/wait-icon.svg +0 -0
  651. /package/lib/components/{suggester/html → Suggester/icons}/warn-icon.svg +0 -0
  652. /package/lib/components/{switch/html → Switch}/switch.scss +0 -0
  653. /package/lib/components/{textarea/html/textarea.scss → Textarea/Textarea.scss} +0 -0
  654. /package/lib/components/{textarea/html/__snapshots__/textarea.spec.tsx.snap → Textarea/__snapshots__/Textarea.spec.tsx.snap} +0 -0
  655. /package/lib/components/{button/button.scss → shared/Button/Button.scss} +0 -0
  656. /package/lib/components/{button/__snapshots__/lunatic-button.spec.tsx.snap → shared/Button/__snapshots__/Button.spec.tsx.snap} +0 -0
  657. /package/lib/components/{checkbox/commons/checkbox-option.scss → shared/Checkbox/CheckboxOption.scss} +0 -0
  658. /package/lib/components/{checkbox/commons → shared/Checkbox}/getShortcutKey.js +0 -0
  659. /package/lib/components/{commons/components/combo-box/combo-box.scss → shared/Combobox/Combobox.scss} +0 -0
  660. /package/lib/components/{commons/components/combo-box/combo-box.type.js → shared/Combobox/ComboboxType.js} +0 -0
  661. /package/lib/components/{commons/components/combo-box/keyboard-key-codes.js → shared/Combobox/constants.js} +0 -0
  662. /package/lib/components/{commons/components/errors/errors.scss → shared/ComponentErrors/ComponentErrors.scss} +0 -0
  663. /package/lib/components/{declarations/declarations.scss → shared/Declarations/Declarations.scss} +0 -0
  664. /package/lib/components/{commons/components/fieldset.scss → shared/Fieldset/Fieldset.scss} +0 -0
  665. /package/lib/components/{commons/icons → shared/Icons}/checkbox-checked-icon.js +0 -0
  666. /package/lib/components/{commons/icons → shared/Icons}/checkbox-unchecked-icon.js +0 -0
  667. /package/lib/components/{commons/icons → shared/Icons}/closed-icon.js +0 -0
  668. /package/lib/components/{commons/icons → shared/Icons}/cross-icon.js +0 -0
  669. /package/lib/components/{commons/icons → shared/Icons}/icon-props.js +0 -0
  670. /package/lib/components/{commons/icons → shared/Icons}/load-icon.js +0 -0
  671. /package/lib/components/{commons/icons → shared/Icons}/lunatic-icon.js +0 -0
  672. /package/lib/components/{commons/icons → shared/Icons}/lunatic-icon.scss +0 -0
  673. /package/lib/components/{commons/icons → shared/Icons}/network-icon.js +0 -0
  674. /package/lib/components/{commons/icons → shared/Icons}/on-drag-icon.js +0 -0
  675. /package/lib/components/{commons/icons → shared/Icons}/opened-icon.js +0 -0
  676. /package/lib/components/{commons/icons → shared/Icons}/radio-checked-icon.js +0 -0
  677. /package/lib/components/{commons/icons → shared/Icons}/radio-unchecked-icon.js +0 -0
  678. /package/lib/components/{commons/components/label/label.scss → shared/Label/Label.scss} +0 -0
  679. /package/lib/components/{commons/components/missing/missing.scss → shared/Missing/Missing.scss} +0 -0
  680. /package/lib/components/{modal-controls/modal-controls.scss → shared/ModalControls/ModalControls.scss} +0 -0
  681. /package/lib/components/{radio/html/radio-group.scss → shared/Radio/RadioGroup.scss} +0 -0
  682. /package/lib/components/{commons/components/html-table/table.scss → shared/Table/Table.scss} +0 -0
  683. /package/lib/components/{commons/components/variable-status/img → shared/VariableStatus/icons}/edited.png +0 -0
  684. /package/lib/components/{commons/components/variable-status/img → shared/VariableStatus/icons}/forced.png +0 -0
  685. /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.scss +0 -0
  686. /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.spec.js +0 -0
  687. /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/index.js +0 -0
  688. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/index.js +0 -0
  689. /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/index.js +0 -0
  690. /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/is-network.spec.js +0 -0
  691. /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.js +0 -0
  692. /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.spec.js +0 -0
  693. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/progress.js +0 -0
  694. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/action-tool.js +0 -0
  695. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/index.js +0 -0
  696. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/tools.js +0 -0
  697. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget-container.js +0 -0
  698. /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget.scss +0 -0
  699. /package/lib/src/components/{button/lunatic-button.spec.d.ts → CheckboxBoolean/CheckboxBoolean.spec.d.ts} +0 -0
  700. /package/lib/src/components/{checkbox/checkbox-boolean/html/checkbox-boolean.spec.d.ts → CheckboxGroup/CustomCheckboxGroup.spec.d.ts} +0 -0
  701. /package/lib/src/components/{checkbox/checkbox-group/html/checkbox-group-content.spec.d.ts → CheckboxOne/CheckboxOne.spec.d.ts} +0 -0
  702. /package/lib/src/components/{checkbox/checkbox-one/html/checkbox-one.spec.d.ts → Datepicker/Datepicker.spec.d.ts} +0 -0
  703. /package/lib/src/components/{datepicker/html → Datepicker}/DatepickerField.d.ts +0 -0
  704. /package/lib/src/components/{checkbox/commons/checkbox-option.spec.d.ts → Dropdown/Dropdown.spec.d.ts} +0 -0
  705. /package/lib/src/components/{duration → Duration}/durationUtils.d.ts +0 -0
  706. /package/lib/src/components/{duration → Duration}/formatDuration.d.ts +0 -0
  707. /package/lib/src/components/{duration → Duration}/formatDuration.spec.d.ts +0 -0
  708. /package/lib/src/components/{duration → Duration}/getDurationFromValue.d.ts +0 -0
  709. /package/lib/src/components/{commons/components/combo-box/combo-box-container.spec.d.ts → FilterDescription/FilterDescription.spec.d.ts} +0 -0
  710. /package/lib/src/components/{commons/components/combo-box/panel/combo-box-option.spec.d.ts → Input/Input.spec.d.ts} +0 -0
  711. /package/lib/src/components/{commons/components/combo-box/panel/option-container.spec.d.ts → InputNumber/InputNumber.spec.d.ts} +0 -0
  712. /package/lib/src/components/{loop → Loop}/constant.d.ts +0 -0
  713. /package/lib/src/components/{lunatic-components.d.ts → LunaticComponents.d.ts} +0 -0
  714. /package/lib/src/components/{pairwise-links/pairwise-links.d.ts → PairwiseLinks/PairwiseLinks.d.ts} +0 -0
  715. /package/lib/src/components/{commons/components/combo-box/panel/panel-container.spec.d.ts → RosterForLoop/RosterForLoop.spec.d.ts} +0 -0
  716. /package/lib/src/components/{commons/components/combo-box/panel/panel.spec.d.ts → Roundabout/RoundaboutItButton.spec.d.ts} +0 -0
  717. /package/lib/src/components/{roundabout → Roundabout}/redirect.spec.d.ts +0 -0
  718. /package/lib/src/components/{roundabout → Roundabout}/roundabout.spec.d.ts +0 -0
  719. /package/lib/src/components/{commons/components/combo-box/selection/LabelOrInput.spec.d.ts → Subsequence/Subsequence.spec.d.ts} +0 -0
  720. /package/lib/src/components/{commons/components/combo-box/selection/clear-button.spec.d.ts → Textarea/Textarea.spec.d.ts} +0 -0
  721. /package/lib/src/components/{commons/components/combo-box/selection/combo-box-label-selection.spec.d.ts → shared/Button/Button.spec.d.ts} +0 -0
  722. /package/lib/src/components/{commons/components/combo-box/selection/label-selection.spec.d.ts → shared/Button/IconButton.spec.d.ts} +0 -0
  723. /package/lib/src/components/{commons/components/combo-box/selection/selection-container.spec.d.ts → shared/Checkbox/CheckboxOption.spec.d.ts} +0 -0
  724. /package/lib/src/components/{checkbox/commons → shared/Checkbox}/getShortcutKey.d.ts +0 -0
  725. /package/lib/src/components/{commons/components/combo-box/selection/selection.spec.d.ts → shared/Combobox/ComboboxContainer.spec.d.ts} +0 -0
  726. /package/lib/src/components/{commons/components/description.spec.d.ts → shared/Combobox/Panel/ComboboxOption.spec.d.ts} +0 -0
  727. /package/lib/src/components/{commons/components/dragger/dragger.spec.d.ts → shared/Combobox/Panel/ComboboxOptionContainer.spec.d.ts} +0 -0
  728. /package/lib/src/components/{commons/components/errors/errors.spec.d.ts → shared/Combobox/Panel/ComboboxPanel.spec.d.ts} +0 -0
  729. /package/lib/src/components/{commons/components/fab/fab.spec.d.ts → shared/Combobox/Panel/ComboboxPanelContainer.spec.d.ts} +0 -0
  730. /package/lib/src/components/{commons/components/field-container/filed-container.spec.d.ts → shared/Combobox/Selection/ComboboxClearButton.spec.d.ts} +0 -0
  731. /package/lib/src/components/{commons/components/fieldset.spec.d.ts → shared/Combobox/Selection/ComboboxLabelSelection.spec.d.ts} +0 -0
  732. /package/lib/src/components/{commons/components/html-table/table.spec.d.ts → shared/Combobox/Selection/ComboboxSelection.spec.d.ts} +0 -0
  733. /package/lib/src/components/{commons/components/combo-box/keyboard-key-codes.d.ts → shared/Combobox/constants.d.ts} +0 -0
  734. /package/lib/src/components/{commons/components/html-table/tbody.spec.d.ts → shared/ComponentErrors/ComponentErrors.spec.d.ts} +0 -0
  735. /package/lib/src/components/{commons/components/html-table/td.spec.d.ts → shared/Declarations/Declarations.spec.d.ts} +0 -0
  736. /package/lib/src/components/{commons/components/html-table/th.spec.d.ts → shared/Fieldset/Fieldset.spec.d.ts} +0 -0
  737. /package/lib/src/components/{commons/icons → shared/Icons}/checkbox-checked-icon.d.ts +0 -0
  738. /package/lib/src/components/{commons/icons → shared/Icons}/checkbox-unchecked-icon.d.ts +0 -0
  739. /package/lib/src/components/{commons/icons → shared/Icons}/closed-icon.d.ts +0 -0
  740. /package/lib/src/components/{commons/icons → shared/Icons}/cross-icon.d.ts +0 -0
  741. /package/lib/src/components/{commons/icons → shared/Icons}/icon-props.d.ts +0 -0
  742. /package/lib/src/components/{commons/icons → shared/Icons}/load-icon.d.ts +0 -0
  743. /package/lib/src/components/{commons/icons → shared/Icons}/lunatic-icon.d.ts +0 -0
  744. /package/lib/src/components/{commons/icons → shared/Icons}/network-icon.d.ts +0 -0
  745. /package/lib/src/components/{commons/icons → shared/Icons}/on-drag-icon.d.ts +0 -0
  746. /package/lib/src/components/{commons/icons → shared/Icons}/opened-icon.d.ts +0 -0
  747. /package/lib/src/components/{commons/icons → shared/Icons}/radio-checked-icon.d.ts +0 -0
  748. /package/lib/src/components/{commons/icons → shared/Icons}/radio-unchecked-icon.d.ts +0 -0
  749. /package/lib/src/components/{commons/components/html-table/thead.spec.d.ts → shared/Label/Label.spec.d.ts} +0 -0
  750. /package/lib/src/components/{commons/components/html-table/tr.spec.d.ts → shared/MDLabel/MDLabel.spec.d.ts} +0 -0
  751. /package/lib/src/components/{commons/components/is-network/is-network.spec.d.ts → shared/Missing/Missing.spec.d.ts} +0 -0
  752. /package/lib/src/components/{commons/components/is-network/use-online-status.spec.d.ts → shared/ModalControls/ModalControls.spec.d.ts} +0 -0
  753. /package/lib/src/components/{commons/components/label/label.spec.d.ts → shared/Radio/RadioOption.spec.d.ts} +0 -0
  754. /package/lib/src/components/{commons/components/md-label/md-label.spec.d.ts → shared/Table/Table.spec.d.ts} +0 -0
  755. /package/lib/src/components/{commons/components/missing/missing.spec.d.ts → shared/Table/Tbody.spec.d.ts} +0 -0
  756. /package/lib/src/components/{commons/components/nothing-to-display.spec.d.ts → shared/Table/Td.spec.d.ts} +0 -0
  757. /package/lib/src/components/{commons/components/variable-status/variable-status.spec.d.ts → shared/Table/Th.spec.d.ts} +0 -0
  758. /package/lib/src/components/{commons/use-on-handle-change.spec.d.ts → shared/Table/Thead.spec.d.ts} +0 -0
  759. /package/lib/src/components/{component-set/html/component-set.spec.d.ts → shared/Table/Tr.spec.d.ts} +0 -0
  760. /package/lib/src/components/{datepicker/html/datepicker.spec.d.ts → shared/VariableStatus/VariableStatus.spec.d.ts} +0 -0
  761. /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.d.ts +0 -0
  762. /package/lib/src/components/{declarations/declaration.spec.d.ts → shared/suggester-loader-widget/dragger/dragger.spec.d.ts} +0 -0
  763. /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/dragger/index.d.ts +0 -0
  764. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/index.d.ts +0 -0
  765. /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/index.d.ts +0 -0
  766. /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/is-network.d.ts +0 -0
  767. /package/lib/src/components/{declarations/declarations.spec.d.ts → shared/suggester-loader-widget/is-network/is-network.spec.d.ts} +0 -0
  768. /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.d.ts +0 -0
  769. /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
  770. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/progress.d.ts +0 -0
  771. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/action-tool.d.ts +0 -0
  772. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/index.d.ts +0 -0
  773. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/tools.d.ts +0 -0
  774. /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget-container.d.ts +0 -0
@@ -4,7 +4,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  var _vitest = require("vitest");
5
5
  var _react = require("@testing-library/react");
6
6
  var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
7
- var _mdLabel = _interopRequireDefault(require("./md-label"));
7
+ var _MDLabel = require("./MDLabel");
8
8
  var _jsxRuntime = require("react/jsx-runtime");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
10
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
@@ -15,25 +15,25 @@ function getStringHtmlWithoutId(htmlElement) {
15
15
  }
16
16
  (0, _vitest.describe)('md-label', function () {
17
17
  (0, _vitest.it)('should handle simple text', function () {
18
- var obj = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_mdLabel["default"], {
18
+ var obj = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_MDLabel.MDLabel, {
19
19
  expression: "This **is** a simple test"
20
20
  }));
21
21
  return (0, _vitest.expect)(obj.container).toMatchInlineSnapshot("\n\t\t\t<div>\n\t\t\t This \n\t\t\t <strong>\n\t\t\t is\n\t\t\t </strong>\n\t\t\t a simple test\n\t\t\t</div>\n\t\t");
22
22
  });
23
23
  (0, _vitest.it)('should handle line break', function () {
24
- var obj = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_mdLabel["default"], {
24
+ var obj = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_MDLabel.MDLabel, {
25
25
  expression: 'This **is** a simple test\non multiple line'
26
26
  }));
27
27
  return (0, _vitest.expect)(obj.container).toMatchInlineSnapshot("\n\t\t\t<div>\n\t\t\t This \n\t\t\t <strong>\n\t\t\t is\n\t\t\t </strong>\n\t\t\t a simple test\n\t\t\ton multiple line\n\t\t\t</div>\n\t\t");
28
28
  });
29
29
  (0, _vitest.it)('should handle paragraphs break', function () {
30
- var obj = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_mdLabel["default"], {
30
+ var obj = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_MDLabel.MDLabel, {
31
31
  expression: 'This **is** a simple test\n\nwith multiple paragraphs'
32
32
  }));
33
33
  return (0, _vitest.expect)(obj.container).toMatchInlineSnapshot("\n\t\t\t<div>\n\t\t\t <p>\n\t\t\t This \n\t\t\t <strong>\n\t\t\t is\n\t\t\t </strong>\n\t\t\t a simple test\n\t\t\t </p>\n\t\t\t \n\n\t\t\t <p>\n\t\t\t with multiple paragraphs\n\t\t\t </p>\n\t\t\t</div>\n\t\t");
34
34
  });
35
35
  (0, _vitest.it)('should render external link', function () {
36
- var obj = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_mdLabel["default"], {
36
+ var obj = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_MDLabel.MDLabel, {
37
37
  expression: 'This is a [link](https://inseefr.github.io/Lunatic/docs)'
38
38
  }));
39
39
  var stringHtmlWithoutId = getStringHtmlWithoutId(obj.container);
@@ -45,7 +45,7 @@ function getStringHtmlWithoutId(htmlElement) {
45
45
  return _regeneratorRuntime().wrap(function _callee$(_context) {
46
46
  while (1) switch (_context.prev = _context.next) {
47
47
  case 0:
48
- _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_mdLabel["default"], {
48
+ _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_MDLabel.MDLabel, {
49
49
  expression: "This is a [link](https://inseefr.github.io/Lunatic/docs 'with a tooltip')"
50
50
  })), container = _render.container;
51
51
  link = _react.screen.getByText('link'); // Get the link element by its text content
@@ -68,7 +68,7 @@ function getStringHtmlWithoutId(htmlElement) {
68
68
  }, _callee);
69
69
  })));
70
70
  (0, _vitest.it)('should render internal link', function () {
71
- var obj = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_mdLabel["default"], {
71
+ var obj = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_MDLabel.MDLabel, {
72
72
  expression: 'This is an [internal link](/docs)'
73
73
  }));
74
74
  return (0, _vitest.expect)(getStringHtmlWithoutId(obj.container)).toMatchInlineSnapshot('"<div>This is an <a href=\\"/docs\\" >internal link</a></div>"');
@@ -78,7 +78,7 @@ function getStringHtmlWithoutId(htmlElement) {
78
78
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
79
79
  while (1) switch (_context2.prev = _context2.next) {
80
80
  case 0:
81
- _render2 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_mdLabel["default"], {
81
+ _render2 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_MDLabel.MDLabel, {
82
82
  expression: "This is an [internal link](/docs 'with a tooltip')"
83
83
  })), container = _render2.container;
84
84
  link = _react.screen.getByText('internal link'); // Get the link element by its text content
@@ -4,12 +4,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports["default"] = void 0;
7
+ exports.MDLabelLink = void 0;
8
+ exports.generateUniqueId = generateUniqueId;
8
9
  var _react = require("react");
9
10
  var _reactTooltip = require("react-tooltip");
10
11
  var _reactMarkdown = _interopRequireDefault(require("react-markdown"));
11
- var _routerLink = _interopRequireDefault(require("./router-link"));
12
- var _generateUniqueId = require("./generateUniqueId");
12
+ var _RouterLink = require("./RouterLink");
13
13
  var _jsxRuntime = require("react/jsx-runtime");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -23,20 +23,20 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
23
23
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24
24
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
25
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
- var Link = function Link(props) {
26
+ var MDLabelLink = exports.MDLabelLink = function MDLabelLink(props) {
27
27
  var href = props.href,
28
28
  children = props.children,
29
29
  title = props.title;
30
30
 
31
31
  // Must be replace by useId when queen move to React 18.
32
32
  var _useState = (0, _react.useState)(function () {
33
- return (0, _generateUniqueId.generateUniqueId)();
33
+ return generateUniqueId();
34
34
  }),
35
35
  _useState2 = _slicedToArray(_useState, 1),
36
36
  id = _useState2[0];
37
37
  var LinkComponent = function () {
38
38
  if (href.trim().startsWith('/')) {
39
- return _routerLink["default"];
39
+ return _RouterLink.RouterLink;
40
40
  } else {
41
41
  return 'a';
42
42
  }
@@ -68,4 +68,8 @@ var Link = function Link(props) {
68
68
  })]
69
69
  });
70
70
  };
71
- var _default = exports["default"] = Link;
71
+ function generateUniqueId() {
72
+ var timestamp = Date.now().toString(36);
73
+ var randomPart = Math.random().toString(36).substring(2, 8);
74
+ return "".concat(timestamp, "-").concat(randomPart);
75
+ }
@@ -4,11 +4,10 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports["default"] = void 0;
8
- var _createCustomizableField = _interopRequireDefault(require("../../create-customizable-field"));
7
+ exports.RouterLink = void 0;
8
+ var _customizedComponent = require("../HOC/customizedComponent");
9
9
  var _jsxRuntime = require("react/jsx-runtime");
10
10
  var _excluded = ["to", "children"];
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
13
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -16,7 +15,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
16
15
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
16
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
18
17
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19
- var RouterLink = function RouterLink(props) {
18
+ var RouterLink = exports.RouterLink = (0, _customizedComponent.customizedComponent)('RouterLink', function (props) {
20
19
  var to = props.to,
21
20
  children = props.children,
22
21
  rest = _objectWithoutProperties(props, _excluded);
@@ -25,5 +24,4 @@ var RouterLink = function RouterLink(props) {
25
24
  }, rest), {}, {
26
25
  children: children
27
26
  }));
28
- };
29
- var _default = exports["default"] = (0, _createCustomizableField["default"])(RouterLink, 'RouterLink');
27
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -3,14 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = exports.MissingPure = void 0;
7
- require("./missing.scss");
6
+ exports["default"] = exports.MissingPure = exports.Missing = void 0;
7
+ require("./Missing.scss");
8
8
  var _react = require("react");
9
- var _constants = require("../../../../utils/constants");
9
+ var _constants = require("../../../utils/constants");
10
10
  var _reactKeyboardEventHandler = _interopRequireDefault(require("react-keyboard-event-handler"));
11
- var _lunaticContext = require("../../../../use-lunatic/lunatic-context");
12
- var _button = _interopRequireDefault(require("../../../button"));
13
- var _useOnHandleChange = _interopRequireDefault(require("../../use-on-handle-change"));
11
+ var _lunaticContext = require("../../../use-lunatic/lunatic-context");
12
+ var _Button = require("../Button/Button");
14
13
  var _jsxRuntime = require("react/jsx-runtime");
15
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
15
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -19,7 +18,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
18
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
19
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
21
20
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
22
- var Missing = function Missing(props) {
21
+ var Missing = exports.Missing = function Missing(props) {
23
22
  var propsContext = (0, _lunaticContext.useLunaticMissing)();
24
23
  if (!propsContext.missing || !props.missingResponse) {
25
24
  return null;
@@ -39,36 +38,34 @@ var MissingPure = exports.MissingPure = function MissingPure(props) {
39
38
  refusedButton = props.refusedButton,
40
39
  disabled = props.disabled;
41
40
  var value = missingResponse === null || missingResponse === void 0 ? void 0 : missingResponse.value;
42
- var onClick = (0, _useOnHandleChange["default"])({
43
- handleChange: handleChange,
44
- response: missingResponse !== null && missingResponse !== void 0 ? missingResponse : {
41
+ var onClick = function onClick(value) {
42
+ handleChange(missingResponse !== null && missingResponse !== void 0 ? missingResponse : {
45
43
  name: 'UNKNOWN'
46
- },
47
- value: value
48
- });
44
+ }, value);
45
+ };
49
46
  var handleMissingStrategy = (0, _react.useCallback)(function () {
50
47
  if (missingStrategy) missingStrategy();
51
48
  }, [missingStrategy]);
52
- var onClickDK = (0, _react.useCallback)(function () {
49
+ var onClickDK = function onClickDK() {
53
50
  onClick(_constants.DK);
54
51
  handleMissingStrategy();
55
- }, [onClick, handleMissingStrategy]);
56
- var onClickRF = (0, _react.useCallback)(function () {
52
+ };
53
+ var onClickRF = function onClickRF() {
57
54
  onClick(_constants.RF);
58
55
  handleMissingStrategy();
59
- }, [onClick, handleMissingStrategy]);
56
+ };
60
57
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
61
58
  className: "missing-buttons",
62
59
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
63
60
  className: "missing-button".concat(value === _constants.DK ? '-active' : '', " missing-button-dk").concat(value === _constants.DK ? '-active' : ''),
64
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button["default"], {
61
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
65
62
  disabled: disabled,
66
63
  label: dontKnowButton,
67
64
  onClick: onClickDK
68
65
  })
69
66
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
70
67
  className: "missing-button".concat(value === _constants.RF ? '-active' : '', " missing-button-rf").concat(value === _constants.RF ? '-active' : ''),
71
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button["default"], {
68
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
72
69
  disabled: disabled,
73
70
  label: refusedButton,
74
71
  onClick: onClickRF
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var _react = require("@testing-library/react");
4
- var _missing = require("./missing");
4
+ var _Missing = require("./Missing");
5
5
  var _vitest = require("vitest");
6
6
  var _jsxRuntime = require("react/jsx-runtime");
7
7
  (0, _vitest.describe)('Missing', function () {
@@ -16,7 +16,7 @@ var _jsxRuntime = require("react/jsx-runtime");
16
16
  _vitest.vi.clearAllMocks();
17
17
  });
18
18
  (0, _vitest.it)('should render the "Don\'t Know" and "Refused" buttons', function () {
19
- var _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_missing.MissingPure, {
19
+ var _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Missing.MissingPure, {
20
20
  dontKnowButton: dontKnowButton,
21
21
  refusedButton: refusedButton,
22
22
  missingResponse: missingResponse,
@@ -35,7 +35,7 @@ var _jsxRuntime = require("react/jsx-runtime");
35
35
  (0, _vitest.expect)(refused).toBeInTheDocument();
36
36
  });
37
37
  (0, _vitest.it)('should call the handleChange function when a button is clicked', function () {
38
- var _render2 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_missing.MissingPure, {
38
+ var _render2 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Missing.MissingPure, {
39
39
  dontKnowButton: dontKnowButton,
40
40
  refusedButton: refusedButton,
41
41
  missingResponse: missingResponse,
@@ -57,7 +57,7 @@ var _jsxRuntime = require("react/jsx-runtime");
57
57
  (0, _vitest.expect)(handleChange).toHaveBeenCalledWith(missingResponse, 'RF');
58
58
  });
59
59
  (0, _vitest.it)('should not handle keyboard shortcuts when a shortcut is not provided', function () {
60
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_missing.MissingPure, {
60
+ (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Missing.MissingPure, {
61
61
  dontKnowButton: dontKnowButton,
62
62
  refusedButton: refusedButton,
63
63
  missingResponse: missingResponse,
@@ -3,20 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.ModalControls = ModalControls;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
- var _closeOrSkip = _interopRequireDefault(require("./close-or-skip"));
9
- var _modalContainer = _interopRequireDefault(require("./modal-container"));
10
- require("./modal-controls.scss");
8
+ require("./ModalControls.scss");
9
+ var _reactDom = _interopRequireDefault(require("react-dom"));
10
+ var _Button = require("../Button/Button");
11
+ var _i18n = _interopRequireDefault(require("../../../i18n"));
11
12
  var _jsxRuntime = require("react/jsx-runtime");
12
13
  var _react = require("react");
13
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
15
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
18
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
19
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
15
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
21
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
17
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -43,31 +38,48 @@ function ComponentErrors(_ref2) {
43
38
  children: content
44
39
  });
45
40
  }
46
- function ModalControls(_ref3) {
47
- var errors = _ref3.errors,
48
- isCritical = _ref3.isCritical,
49
- goNext = _ref3.goNext,
50
- onClose = _ref3.onClose;
51
- if (_typeof(errors) === 'object') {
52
- var content = Object.entries(errors).map(function (_ref4) {
53
- var _ref5 = _slicedToArray(_ref4, 2),
54
- id = _ref5[0],
55
- errors = _ref5[1];
56
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentErrors, {
57
- errors: errors
58
- }, id);
59
- }, []);
60
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_modalContainer["default"], {
41
+ function ModalControls(props) {
42
+ if (_typeof(props.errors) !== 'object') {
43
+ return null;
44
+ }
45
+ var errors = Object.values(props.errors).flat();
46
+ return /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
47
+ className: "lunatic-modal-controls",
48
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
49
+ className: "modal-content",
61
50
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
62
51
  className: "body",
63
- children: content
64
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_closeOrSkip["default"], {
65
- onSkip: goNext,
66
- onClose: onClose,
67
- isCritical: isCritical
68
- })]
52
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentErrors, {
53
+ errors: errors
54
+ })
55
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(CloseOrSkip, _objectSpread({}, props))]
56
+ })
57
+ }), document.body);
58
+ }
59
+ function CloseOrSkip(_ref3) {
60
+ var onClose = _ref3.onClose,
61
+ goNext = _ref3.goNext,
62
+ isCritical = _ref3.isCritical;
63
+ if (isCritical) {
64
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
65
+ className: "modal-buttons",
66
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
67
+ className: "modal-button",
68
+ onClick: onClose,
69
+ children: _i18n["default"].MODAL_CORRECT
70
+ })
69
71
  });
70
72
  }
71
- return null;
72
- }
73
- var _default = exports["default"] = ModalControls;
73
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
74
+ className: "modal-buttons",
75
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
76
+ className: "modal-button",
77
+ onClick: onClose,
78
+ children: _i18n["default"].MODAL_CORRECT
79
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
80
+ className: "modal-button",
81
+ onClick: goNext,
82
+ children: _i18n["default"].MODAL_IGNORE
83
+ })]
84
+ });
85
+ }
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  var _react = require("@testing-library/react");
4
- var _modalControls = _interopRequireDefault(require("./modal-controls"));
4
+ var _ModalControls = require("./ModalControls");
5
5
  var _vitest = require("vitest");
6
6
  var _jsxRuntime = require("react/jsx-runtime");
7
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
7
  (0, _vitest.describe)('ModalControls component', function () {
9
8
  (0, _vitest.it)('should render correctly when there are errors', function () {
10
9
  var errors = {
@@ -22,7 +21,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
22
21
  }]
23
22
  };
24
23
  var goNext = _vitest.vi.fn();
25
- var _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_modalControls["default"], {
24
+ var _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalControls.ModalControls, {
26
25
  errors: errors,
27
26
  goNext: goNext,
28
27
  onClose: function onClose() {}
@@ -33,7 +32,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
33
32
  });
34
33
  (0, _vitest.it)('should render correctly when there are no errors', function () {
35
34
  var goNext = _vitest.vi.fn();
36
- var _render2 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_modalControls["default"], {
35
+ var _render2 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalControls.ModalControls, {
37
36
  errors: {},
38
37
  goNext: goNext,
39
38
  onClose: function onClose() {}
@@ -58,7 +57,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
58
57
  }]
59
58
  };
60
59
  var goNext = _vitest.vi.fn();
61
- var _render3 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_modalControls["default"], {
60
+ var _render3 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalControls.ModalControls, {
62
61
  errors: errors,
63
62
  goNext: goNext,
64
63
  onClose: function onClose() {}
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.Notification = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
- var _commons = require("../../commons");
8
+ var _customizedComponent = require("./HOC/customizedComponent");
9
9
  var _jsxRuntime = require("react/jsx-runtime");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- function Notification(_ref) {
11
+ function LunaticNotification(_ref) {
12
12
  var className = _ref.className,
13
13
  title = _ref.title,
14
14
  description = _ref.description;
@@ -26,4 +26,4 @@ function Notification(_ref) {
26
26
  })
27
27
  });
28
28
  }
29
- var _default = exports["default"] = (0, _commons.createCustomizableLunaticField)(Notification, 'Notification');
29
+ var Notification = exports.Notification = (0, _customizedComponent.customizedComponent)('Notification', LunaticNotification);
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.RadioGroup = void 0;
7
+ require("./RadioGroup.scss");
8
+ var _Fieldset = require("../Fieldset/Fieldset");
9
+ var _ComponentErrors = require("../ComponentErrors/ComponentErrors");
10
+ var _customizedComponent = require("../HOC/customizedComponent");
11
+ var _getShortcutKey = require("../Checkbox/getShortcutKey");
12
+ var _RadioOption = require("./RadioOption");
13
+ var _useListKeyboardHandler = require("../../../hooks/useListKeyboardHandler");
14
+ var _react = require("react");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
17
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
21
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
22
+ /**
23
+ * Stack of radios fields surrounded by a fieldset
24
+ */
25
+ function LunaticRadioGroup(_ref) {
26
+ var options = _ref.options,
27
+ value = _ref.value,
28
+ id = _ref.id,
29
+ label = _ref.label,
30
+ description = _ref.description,
31
+ onSelect = _ref.onSelect,
32
+ _ref$checkboxStyle = _ref.checkboxStyle,
33
+ checkboxStyle = _ref$checkboxStyle === void 0 ? false : _ref$checkboxStyle,
34
+ errors = _ref.errors,
35
+ className = _ref.className,
36
+ shortcut = _ref.shortcut,
37
+ disabled = _ref.disabled,
38
+ readOnly = _ref.readOnly;
39
+ var onKeyDown = (0, _useListKeyboardHandler.useListKeyboardHandler)(options, onSelect);
40
+ var maxIndex = options.length;
41
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Fieldset.Fieldset, {
42
+ className: className,
43
+ legend: label,
44
+ description: description,
45
+ children: [options.map(function (option, index) {
46
+ var radioId = "lunatic-radio-".concat(id, "-").concat(option.value);
47
+ var codeModality = (0, _getShortcutKey.getShortcutKey)(index, maxIndex);
48
+ return /*#__PURE__*/(0, _react.createElement)(_RadioOption.RadioOption, _objectSpread(_objectSpread({}, option), {}, {
49
+ key: radioId,
50
+ id: radioId,
51
+ index: index,
52
+ checked: value === option.value,
53
+ onClick: onSelect,
54
+ onKeyDown: onKeyDown,
55
+ checkboxStyle: checkboxStyle,
56
+ codeModality: shortcut ? codeModality : undefined,
57
+ shortcut: shortcut,
58
+ disabled: disabled,
59
+ readOnly: readOnly,
60
+ invalid: !!errors
61
+ }));
62
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ComponentErrors.ComponentErrors, {
63
+ errors: errors
64
+ })]
65
+ });
66
+ }
67
+ var RadioGroup = exports.RadioGroup = (0, _customizedComponent.customizedComponent)('Radio', LunaticRadioGroup);
@@ -3,18 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.RadioOption = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = require("react");
9
9
  var _reactKeyboardEventHandler = _interopRequireDefault(require("react-keyboard-event-handler"));
10
10
  var _function = require("../../../utils/function");
11
- var _commons = require("../../commons");
12
- var _icons = require("../../commons/icons");
11
+ var _Label = require("../Label/Label");
12
+ var _customizedComponent = require("../HOC/customizedComponent");
13
+ var _Icons = require("../Icons");
13
14
  var _jsxRuntime = require("react/jsx-runtime");
14
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
16
  /* eslint-disable jsx-a11y/role-supports-aria-props */
16
17
 
17
- function RadioOption(_ref) {
18
+ function LunaticRadioOption(_ref) {
18
19
  var checked = _ref.checked,
19
20
  _ref$onClick = _ref.onClick,
20
21
  onClick = _ref$onClick === void 0 ? _function.voidFunction : _ref$onClick,
@@ -79,7 +80,7 @@ function RadioOption(_ref) {
79
80
  onKeyDown: handleKeyDown,
80
81
  "aria-labelledby": labelledBy,
81
82
  ref: spanEl,
82
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_commons.Label, {
83
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Label.Label, {
83
84
  id: labelledBy,
84
85
  htmlFor: id,
85
86
  description: description,
@@ -103,13 +104,13 @@ function RadioOption(_ref) {
103
104
  function getIcon(checked, checkboxStyle) {
104
105
  if (checked) {
105
106
  if (checkboxStyle) {
106
- return _icons.CheckboxChecked;
107
+ return _Icons.CheckboxCheckedIcon;
107
108
  }
108
- return _icons.RadioChecked;
109
+ return _Icons.RadioCheckedIcon;
109
110
  }
110
111
  if (checkboxStyle) {
111
- return _icons.CheckboxUnchecked;
112
+ return _Icons.CheckboxUncheckedIcon;
112
113
  }
113
- return _icons.RadioUnchecked;
114
+ return _Icons.RadioUncheckedIcon;
114
115
  }
115
- var _default = exports["default"] = (0, _commons.createCustomizableLunaticField)(RadioOption, 'RadioOption');
116
+ var RadioOption = exports.RadioOption = (0, _customizedComponent.customizedComponent)('RadioOption', LunaticRadioOption);