@inseefr/lunatic 3.0.0-rc.1 → 3.0.0-rc.10

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 (185) hide show
  1. package/lib/components/CheckboxBoolean/CheckboxBoolean.js +39 -19
  2. package/lib/components/CheckboxGroup/CheckboxGroup.js +3 -2
  3. package/lib/components/CheckboxGroup/CustomCheckboxGroup.js +4 -5
  4. package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js +3 -0
  5. package/lib/components/CheckboxOne/CheckboxOne.js +6 -7
  6. package/lib/components/Datepicker/Datepicker.js +43 -29
  7. package/lib/components/Dropdown/Dropdown.js +37 -37
  8. package/lib/components/Duration/Duration.js +41 -17
  9. package/lib/components/FilterDescription/FilterDescription.js +2 -3
  10. package/lib/components/Input/Input.js +39 -22
  11. package/lib/components/InputNumber/InputNumber.js +45 -35
  12. package/lib/components/InputNumber/__snapshots__/InputNumber.spec.tsx.snap +0 -2
  13. package/lib/components/Loop/Loop.js +52 -29
  14. package/lib/components/LunaticComponents.js +60 -51
  15. package/lib/components/Question/Question.js +23 -14
  16. package/lib/components/Radio/Radio.js +2 -2
  17. package/lib/components/RosterForLoop/RosterForLoop.js +13 -36
  18. package/lib/components/Roundabout/CustomRoundabout.js +2 -2
  19. package/lib/components/Roundabout/Roundabout.js +0 -1
  20. package/lib/components/Roundabout/RoundaboutItButton.js +2 -2
  21. package/lib/components/Roundabout/extra.js +6 -6
  22. package/lib/components/Sequence/Sequence.js +2 -3
  23. package/lib/components/Subsequence/Subsequence.js +2 -2
  24. package/lib/components/Subsequence/Subsequence.spec.js +1 -1
  25. package/lib/components/Suggester/CustomSuggester.js +9 -6
  26. package/lib/components/Suggester/Suggester.js +67 -4
  27. package/lib/components/Suggester/SuggesterNotification.js +2 -2
  28. package/lib/components/Summary/Summary.js +3 -3
  29. package/lib/components/Switch/Switch.js +42 -22
  30. package/lib/components/Textarea/Textarea.js +43 -24
  31. package/lib/components/library.js +0 -2
  32. package/lib/components/shared/Button/Button.js +2 -3
  33. package/lib/components/shared/Button/IconButton.js +0 -1
  34. package/lib/components/shared/Checkbox/CheckboxOption.js +2 -3
  35. package/lib/components/shared/Combobox/Combobox.js +5 -4
  36. package/lib/components/shared/Combobox/ComboboxContainer.js +2 -2
  37. package/lib/components/shared/Combobox/ComboboxContentBox.js +2 -2
  38. package/lib/components/shared/Combobox/Panel/ComboboxOption.js +2 -2
  39. package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.js +2 -2
  40. package/lib/components/shared/Combobox/Selection/ComboboxClearButton.js +2 -2
  41. package/lib/components/shared/Combobox/Selection/ComboboxInput.js +2 -2
  42. package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.js +2 -2
  43. package/lib/components/shared/ComponentErrors/ComponentErrors.js +0 -1
  44. package/lib/components/shared/Declarations/Declarations.js +6 -7
  45. package/lib/components/shared/Declarations/Declarations.spec.js +5 -5
  46. package/lib/components/shared/Fieldset/Fieldset.js +2 -3
  47. package/lib/components/shared/HOC/{customizedComponent.js → slottableComponent.js} +35 -13
  48. package/lib/components/shared/Icons/lunatic-icon.js +0 -1
  49. package/lib/components/shared/Label/Label.js +2 -3
  50. package/lib/components/shared/MDLabel/RouterLink.js +2 -2
  51. package/lib/components/shared/Missing/Missing.js +0 -1
  52. package/lib/components/shared/ModalControls/ModalControls.js +0 -1
  53. package/lib/components/shared/Notification.js +2 -2
  54. package/lib/components/shared/Radio/RadioGroup.js +4 -4
  55. package/lib/components/shared/Radio/RadioOption.js +2 -2
  56. package/lib/components/shared/Table/Table.js +2 -3
  57. package/lib/components/shared/Table/Tbody.js +2 -2
  58. package/lib/components/shared/Table/Td.js +2 -2
  59. package/lib/components/shared/Table/Th.js +2 -2
  60. package/lib/components/shared/Table/Thead.js +2 -2
  61. package/lib/components/shared/Table/Tr.js +2 -2
  62. package/lib/components/shared/VariableStatus/VariableStatus.js +0 -1
  63. package/lib/components/shared/suggester-loader-widget/dragger/dragger.js +0 -1
  64. package/lib/components/shared/suggester-loader-widget/widget.js +0 -1
  65. package/lib/css/components/Button.scss +24 -0
  66. package/lib/css/components/CheckboxGroup.scss +13 -0
  67. package/lib/css/components/CheckboxOne.scss +19 -0
  68. package/lib/css/components/CheckboxOption.scss +19 -0
  69. package/lib/css/components/Combobox.scss +206 -0
  70. package/lib/css/components/ComponentErrors.scss +5 -0
  71. package/lib/css/components/Datepicker.scss +19 -0
  72. package/lib/css/components/Declarations.scss +42 -0
  73. package/lib/css/components/Dragger.scss +8 -0
  74. package/lib/css/components/Dropdown.scss +38 -0
  75. package/lib/css/components/Duration.scss +9 -0
  76. package/lib/css/components/Fieldset.scss +5 -0
  77. package/lib/css/components/IconButton.scss +38 -0
  78. package/lib/css/components/Input.scss +42 -0
  79. package/lib/css/components/InputNumber.scss +11 -0
  80. package/lib/css/components/Label.scss +6 -0
  81. package/lib/css/components/Missing.scss +27 -0
  82. package/lib/css/components/ModalControls.scss +48 -0
  83. package/lib/css/components/RadioGroup.scss +21 -0
  84. package/lib/css/components/RosterForLoop.scss +39 -0
  85. package/lib/css/components/Roundabout.scss +13 -0
  86. package/lib/css/components/Sequence.scss +10 -0
  87. package/lib/css/components/Suggester.scss +170 -0
  88. package/lib/css/components/SuggesterWidget.scss +176 -0
  89. package/lib/css/components/Table.scss +27 -0
  90. package/lib/css/components/Textarea.scss +8 -0
  91. package/lib/css/components/VariableStatus.scss +36 -0
  92. package/lib/css/main.scss +181 -0
  93. package/lib/hooks/useSuggesterInfo.js +14 -12
  94. package/lib/main.css +1063 -0
  95. package/lib/main.css.map +1 -0
  96. package/lib/src/components/CheckboxBoolean/CheckboxBoolean.d.ts +10 -5
  97. package/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  98. package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +5 -12
  99. package/lib/src/components/Datepicker/Datepicker.d.ts +8 -10
  100. package/lib/src/components/Dropdown/Dropdown.d.ts +9 -12
  101. package/lib/src/components/Duration/Duration.d.ts +9 -7
  102. package/lib/src/components/FilterDescription/FilterDescription.d.ts +1 -1
  103. package/lib/src/components/Input/Input.d.ts +9 -8
  104. package/lib/src/components/InputNumber/InputNumber.d.ts +9 -10
  105. package/lib/src/components/Loop/Loop.d.ts +11 -18
  106. package/lib/src/components/LunaticComponents.d.ts +4 -2
  107. package/lib/src/components/Question/Question.d.ts +6 -4
  108. package/lib/src/components/RosterForLoop/RosterForLoop.d.ts +2 -22
  109. package/lib/src/components/Roundabout/Roundabout.d.ts +0 -1
  110. package/lib/src/components/Sequence/Sequence.d.ts +1 -2
  111. package/lib/src/components/Subsequence/Subsequence.d.ts +1 -1
  112. package/lib/src/components/Suggester/CustomSuggester.d.ts +7 -3
  113. package/lib/src/components/Suggester/Suggester.d.ts +1 -2
  114. package/lib/src/components/Suggester/SuggesterType.d.ts +6 -0
  115. package/lib/src/components/Suggester/helpers.d.ts +2 -2
  116. package/lib/src/components/Switch/Switch.d.ts +9 -0
  117. package/lib/src/components/Textarea/Textarea.d.ts +9 -10
  118. package/lib/src/components/library.d.ts +26 -93
  119. package/lib/src/components/shared/Button/Button.d.ts +0 -1
  120. package/lib/src/components/shared/Button/IconButton.d.ts +0 -1
  121. package/lib/src/components/shared/Checkbox/CheckboxOption.d.ts +0 -1
  122. package/lib/src/components/shared/Combobox/Combobox.d.ts +1 -1
  123. package/lib/src/components/shared/ComponentErrors/ComponentErrors.d.ts +0 -1
  124. package/lib/src/components/shared/Declarations/Declarations.d.ts +2 -3
  125. package/lib/src/components/shared/Fieldset/Fieldset.d.ts +0 -1
  126. package/lib/src/components/shared/HOC/slottableComponent.d.ts +105 -0
  127. package/lib/src/components/shared/Icons/lunatic-icon.d.ts +0 -1
  128. package/lib/src/components/shared/Label/Label.d.ts +0 -1
  129. package/lib/src/components/shared/Missing/Missing.d.ts +0 -1
  130. package/lib/src/components/shared/ModalControls/ModalControls.d.ts +0 -1
  131. package/lib/src/components/shared/Radio/RadioGroup.d.ts +1 -1
  132. package/lib/src/components/shared/Table/Table.d.ts +0 -1
  133. package/lib/src/components/shared/VariableStatus/VariableStatus.d.ts +0 -1
  134. package/lib/src/components/shared/suggester-loader-widget/dragger/dragger.d.ts +0 -1
  135. package/lib/src/components/shared/suggester-loader-widget/widget.d.ts +0 -1
  136. package/lib/src/components/type.d.ts +7 -7
  137. package/lib/src/hooks/use-track-changes.d.ts +9 -1
  138. package/lib/src/hooks/useSuggesterInfo.d.ts +1 -1
  139. package/lib/src/index.d.ts +1 -1
  140. package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +106 -59
  141. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +87 -58
  142. package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +47 -38
  143. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +159 -87
  144. package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
  145. package/lib/src/use-lunatic/lunatic-context.d.ts +1 -4
  146. package/lib/src/use-lunatic/replace-component-sequence.d.ts +23 -5
  147. package/lib/src/use-lunatic/type-source.d.ts +55 -46
  148. package/lib/src/use-lunatic/type.d.ts +4 -4
  149. package/lib/src/use-lunatic/use-lunatic.d.ts +63 -32
  150. package/lib/src/utils/variables.d.ts +10 -2
  151. package/lib/stories/{component-set/component-set.stories.js → behaviour/slots.stories.js} +36 -25
  152. package/lib/stories/checkbox-group/checkbox-group.stories.js +1 -6
  153. package/lib/stories/disabled/source.json +1 -1
  154. package/lib/stories/loop/source-roster.json +2 -2
  155. package/lib/stories/pairwise/pairwise-links.stories.js +1 -9
  156. package/lib/stories/suggester/fakeReferentiel.json +12 -0
  157. package/lib/stories/suggester/source-option-responses.json +145 -0
  158. package/lib/stories/suggester/suggester.stories.js +45 -7
  159. package/lib/stories/utils/orchestrator.js +4 -4
  160. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +0 -1
  161. package/lib/use-lunatic/lunatic-context.js +2 -10
  162. package/lib/use-lunatic/replace-component-sequence.js +2 -3
  163. package/lib/use-lunatic/use-lunatic.js +1 -4
  164. package/lib/use-lunatic/use-lunatic.test.js +12 -37
  165. package/package.json +2 -2
  166. package/lib/components/ComponentSet/ComponentSet.js +0 -68
  167. package/lib/components/Dropdown/DropdownWritable.js +0 -58
  168. package/lib/components/Dropdown/renderer/WritableLabelRenderer.js +0 -38
  169. package/lib/components/Dropdown/renderer/WritableOptionRenderer.js +0 -140
  170. package/lib/src/components/ComponentSet/ComponentSet.d.ts +0 -7
  171. package/lib/src/components/Dropdown/DropdownWritable.d.ts +0 -17
  172. package/lib/src/components/Dropdown/renderer/WritableLabelRenderer.d.ts +0 -8
  173. package/lib/src/components/Dropdown/renderer/WritableOptionRenderer.d.ts +0 -8
  174. package/lib/src/components/shared/HOC/customizedComponent.d.ts +0 -5
  175. package/lib/src/components/type-custom.d.ts +0 -101
  176. package/lib/stories/checkbox-group/sourceComponentset.json +0 -424
  177. package/lib/stories/component-set/data-loop.json +0 -18
  178. package/lib/stories/component-set/data-roundabout.json +0 -25
  179. package/lib/stories/component-set/data.json +0 -25
  180. package/lib/stories/component-set/source-loop.json +0 -308
  181. package/lib/stories/component-set/source-roundabout.json +0 -434
  182. package/lib/stories/component-set/source.json +0 -113
  183. package/lib/stories/pairwise/source-componentset.json +0 -292
  184. package/lib/stories/suggester/source-component-set.json +0 -113
  185. /package/lib/components/{type-custom.js → Suggester/SuggesterType.js} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sourceRoot":"","sources":["../src/css/main.scss","../src/css/components/Button.scss","../src/css/components/CheckboxGroup.scss","../src/css/components/CheckboxOne.scss","../src/css/components/CheckboxOption.scss","../src/css/components/Combobox.scss","../src/css/components/ComponentErrors.scss","../src/css/components/Datepicker.scss","../src/css/components/Declarations.scss","../src/css/components/Dropdown.scss","../src/css/components/Duration.scss","../src/css/components/Fieldset.scss","../src/css/components/IconButton.scss","../src/css/components/Input.scss","../src/css/components/InputNumber.scss","../src/css/components/Label.scss","../src/css/components/Missing.scss","../src/css/components/ModalControls.scss","../src/css/components/RadioGroup.scss","../src/css/components/RosterForLoop.scss","../src/css/components/Roundabout.scss","../src/css/components/Sequence.scss","../src/css/components/Suggester.scss","../src/css/components/Table.scss","../src/css/components/Textarea.scss","../src/css/components/VariableStatus.scss","../src/css/components/Dragger.scss","../src/css/components/SuggesterWidget.scss"],"names":[],"mappings":";AAAA;EACE;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EAEA;;;AAkBF;AA0BE;AA+BA;;AAxDA;EACE;EACA;;AAEF;EACE;EACA;;AAIF;AAAA;AAAA;AAAA;AAAA;EAKE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AASF;EACE;;AAEA;EACE;EACA;;AACA;EACE;;AAGJ;EACE;EACA;;AACA;EACE;;AAGJ;EACE;;AAEF;EACE;;AAMJ;EAzEA;EACA;;AA2EA;EA5EA;EACA;;AA8EA;EACE;EA3EF;EACA;EACA;;AAEA;EACE;;AAyEF;EA9EA;EACA;EACA;;AAEA;EACE;;AA6EF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;EACE;;AACA;EACE;EACA;EACA;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEE;EACE;;AAEF;EACE;;;ACpJR;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EAEC;EACA;EACA;;AAED;EACC;EACA;EACA;;AAED;EACC;EACA;;;AClBE;EACE;EACA;;AAGJ;EACE;EACA;;;ACRF;EACC;;AAGF;EACC;;AAEA;EACC;EACA;EACA;;AACA;EACC;;;ACbH;EACC;;AACA;EACC;;AAGD;EACC;EACA;EACA;EACA;;;AAIH;EACC;EACA;;;ACMD;EACC;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EAEA;;AACA;EACC;EACA;EACA;;AAEC;EACC;EACA;EACA;;AACA;EACC;;AAED;EACC;EACA;EACA;EACA;EApCL;;AAuCK;EAhDL;EASA;EAPA;EACA;EACA;EACA;;AAgDI;EACC;EACA;EACA;EACA;EACA;EAjDL;EAmDK;EACA;EACA;EA9DL;EASA;EAPA;EACA;EACA;EACA;;AA4DK;EACC;EACA;EACA;;AAGD;EACC;;AAKH;EApEH;EAsEI;EACA;EACA;EACA;;AAGA;EACC;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;;AAED;EACC;EACA;;AAQN;EACC;EACA;EACA;EACA;;AACA;EACC;;AAIA;EACC;EACA;EACA;EACA;;AAKH;EACC;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;EACA;;AAEA;EACC;;AACA;EACC;EACA;EACA;EACA;EAKA;;AAJA;EACC;;AAMF;EAEC;EACA;EACA;EACA;EACA;;AACA;EACC;;AAKH;AAAA;AAAA;AAAA;EAIC;EACA;EACA;EACA;;AAIA;EACC;;AAED;EACC;EAtMJ;EACA;EACA;;;ACFA;EACC;;;ACFF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AChBD;EACC;;AAGD;EACC;EACA;;AAGD;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;;AAIF;EACC;EACA;;AACA;EACC;;;ACxBD;EACC;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;;AAGD;EACC;EACA;;AAGD;EACC;;;ACjCJ;AAAA;EAEE;EACA;EACA;;;AAEF;EACE;;;ACPF;EACC;EACA;EACA;;;ACHD;EACC;EACA;;;AAID;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGA;EACC;EACA;EACA;;AAGD;EACC;EACA;;AAGD;EACC;;AAGD;EACC;EACA;;;AC9BA;AAAA;AAAA;AAAA;EACC;;AACA;AAAA;AAAA;AAAA;EACC;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;AAAA;AAAA;AAAA;EACC;EACA;;AAED;AAAA;AAAA;AAAA;EACC;;AAED;AAAA;AAAA;AAAA;EACC;;AAIF;AAAA;AAAA;AAAA;EACC;EACA;EACA;;;ACnCF;EACC;;AAEA;EACC;;;ACNF;EACC;EACA;;;ACHF;EACC;;;AAED;EACC;EACA;EACA;;;AAED;EACC;EACA;;;AAED;EACC;EACA;;;AAED;EACC;;;AAED;EACC;EACA;;;AAED;EACC;EACA;;;ACzBD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;;AAGD;EACC;EACA;;AACA;EACC;;AAMF;AAAA;AAAA;AAAA;EAIC;EACA;;AAGF;EACC;EACA;;;AC3CA;EACC;;AAGF;EACC;;AAEA;EACC;;AAGD;EACC;EACA;EACA;EACA;;;ACUH;EACC;EACA;EACA;EACA;;AAEC;EACC;EACA;;;ACnCH;EACC;;AAGC;EACC;;AAGD;EACC;;;ACRF;EACC;EACA;EACA;EACA;EACA;EACA;;;AC8BD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAIA;EACC;;AACA;EACC;EACA;EACA;;AAQC;EACC;EACA;EACA;;AACA;EACC;;AAED;EACC;EACA;EACA;EACA;EAvEN;;AA0EM;EAlEN;EARA;EAUA;EACA;EACA;EACA;;AAkEK;EACC;EACA;EACA;EACA;EACA;EApFN;;AAuFM;EACC;EAhFP;EARA;EAUA;EACA;EACA;EACA;;AA8EM;EACC;EACA;EACA;;AAGD;EACC;;AAKH;EAvGJ;EAyGK;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AAED;EACC;EACA;;AASP;EACC;EACA;EACA;;AAEA;EACC;;AAjIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAsHA;EACC;;AArIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AA0HA;EACC;;AAzIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AA+HA;EACC;EACA;;AACA;EACC;EACA;EACA;;;ACpKH;EACC;EACA;EACA;EACA;;AACA;AAAA;EAEC;EACA;EACA;;AAGA;AAAA;EAEC;EACA;EACA;;AAKH;EACC;EACA;;;ACrBD;EACC;EACA;;;ACLF;EACC;AAMA;AAUA;;AAdA;EACC;;AAID;EACC;EACA;EACA;EACA;EACA;EACA;;AAID;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAEC;EACC;;AAED;EACC;;;AC/BJ;EACE;EACA;EACA;EACA;EACA;EACA;;;ACaD;EACC;EACA;;AAED;EACC;EACA;EACA,kBA1BO;EA2BP;EACA;EACA;EACA;;AAlBD;EACC;EACA;;AAoBA;EACC;EACA;EACA;EACA;;AACA;EACC;EACA,OAxCK;EAyCL;EACA;EACA;;AAED;EACC,OA9CK;EA+CL;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA,kBA1DK;;AA4DL;EACC;EACA;;AAGD;EACC,kBAjEI;EAkEJ;EACA;;AAIA;EACC;EACA;EACA,MA5EG;;AAiFN;EACC;EACA;EACA;EACA;;AAGC;EACC,cAvFG;EAwFH;EAMA;;AALA;EACC,kBA1FE;EA2FF;;AAOH;EACC;EACA;EACA;;AACA;EACC,kBAxGG;EAyGH;;AAMJ;EACC;EACA;EACA;EACA,kBApHM;EAqHN;EACA;EACA;EACA;EACA;;AAGC;EACC;;AAIF;EACC;EACA;EACA,MAnIK;;AAWR;EACC;EACA;;AA4HA;EACC;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA,kBAnJK;EAoJL;EACA;;AAEA;EACC;;AAGD;EACC,kBA1JI;EA2JJ;;AAGD;EACC;;AACA;EACC;;AAED;EACC;EACA;EACA,MAzKG","file":"main.css"}
@@ -1,6 +1,11 @@
1
1
  /// <reference types="react" />
2
- export declare const CheckboxBoolean: import("react").ComponentType<import("../type").LunaticBaseProps<boolean> & {
3
- response: {
4
- name: string;
5
- };
6
- }>;
2
+ import type { LunaticComponentProps } from '../type';
3
+ import type { LunaticError } from '../../use-lunatic/type';
4
+ export declare function CheckboxBoolean({ handleChange, response, errors, value, ...props }: LunaticComponentProps<'CheckboxBoolean'>): import("react/jsx-runtime").JSX.Element;
5
+ type CustomProps = Omit<LunaticComponentProps<'CheckboxBoolean'>, 'response' | 'handleChange' | 'errors' | 'value'> & {
6
+ onChange: () => void;
7
+ errors?: LunaticError[];
8
+ checked?: boolean;
9
+ };
10
+ export declare const CustomCheckboxBoolean: import("react").ComponentType<CustomProps>;
11
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import type { LunaticComponentProps } from '../type';
3
- import './CheckboxGroup.scss';
4
3
  export type CheckboxGroupOption = {
4
+ id: string;
5
5
  label: ReactNode;
6
6
  name: string;
7
7
  checked: boolean;
@@ -1,12 +1,5 @@
1
- /// <reference types="react" />
2
- import './CheckboxOne.scss';
3
- export declare const CheckboxOne: import("react").ComponentType<import("../type").LunaticBaseProps<string | null> & {
4
- options: {
5
- description?: import("react").ReactNode;
6
- label: import("react").ReactNode;
7
- value: string;
8
- }[];
9
- response: {
10
- name: string;
11
- };
12
- }>;
1
+ import type { LunaticComponentProps } from '../type';
2
+ /**
3
+ * Checkbox acting as a radio (only one option can be checked at a time)
4
+ */
5
+ export declare function CheckboxOne({ options, value, id, label, description, handleChange, errors, shortcut, response, }: LunaticComponentProps<'CheckboxOne'>): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,10 @@
1
1
  /// <reference types="react" />
2
- import './Datepicker.scss';
3
2
  import type { LunaticComponentProps } from '../type';
4
- export declare function LunaticDatepicker({ disabled, readOnly, value, dateFormat, response, id, handleChange, label, errors, description, declarations, }: LunaticComponentProps<'Datepicker'>): import("react/jsx-runtime").JSX.Element;
5
- export declare const Datepicker: import("react").ComponentType<import("../type").LunaticBaseProps<string | null> & {
6
- dateFormat: "YYYY-MM-DD" | "YYYY" | "YYYY-MM";
7
- min?: string | undefined;
8
- max?: string | undefined;
9
- response: {
10
- name: string;
11
- };
12
- }>;
3
+ import type { LunaticError } from '../../use-lunatic/type';
4
+ export declare function Datepicker({ dateFormat, response, handleChange, errors, ...props }: LunaticComponentProps<'Datepicker'>): import("react/jsx-runtime").JSX.Element;
5
+ type CustomProps = Omit<LunaticComponentProps<'Datepicker'>, 'response' | 'handleChange' | 'errors'> & {
6
+ onChange: (s: string | null) => void;
7
+ errors?: LunaticError[];
8
+ };
9
+ export declare const CustomDatepicker: import("react").ComponentType<CustomProps>;
10
+ export {};
@@ -1,13 +1,10 @@
1
1
  /// <reference types="react" />
2
- import './Dropdown.scss';
3
- export declare const Dropdown: import("react").ComponentType<import("../type").LunaticBaseProps<string | null> & {
4
- options: {
5
- description: import("react").ReactNode;
6
- label: import("react").ReactNode;
7
- value: string;
8
- }[];
9
- response: {
10
- name: string;
11
- };
12
- writable?: boolean | undefined;
13
- }>;
2
+ import type { LunaticComponentProps } from '../type';
3
+ import type { LunaticError } from '../../use-lunatic/type';
4
+ export declare function Dropdown({ handleChange, response, errors, ...props }: LunaticComponentProps<'Dropdown'>): import("react/jsx-runtime").JSX.Element;
5
+ type CustomProps = Omit<LunaticComponentProps<'Dropdown'>, 'response' | 'handleChange' | 'errors'> & {
6
+ onChange: (v: string | null) => void;
7
+ errors?: LunaticError[];
8
+ };
9
+ export declare const CustomDropdown: import("react").ComponentType<CustomProps>;
10
+ export {};
@@ -1,8 +1,10 @@
1
1
  /// <reference types="react" />
2
- import './Duration.scss';
3
- export declare const Duration: import("react").ComponentType<import("../type").LunaticBaseProps<string | null> & {
4
- format: "PTnHnM" | "PnYnM";
5
- response: {
6
- name: string;
7
- };
8
- }>;
2
+ import type { LunaticComponentProps } from '../type';
3
+ import type { LunaticError } from '../../use-lunatic/type';
4
+ export declare function Duration({ handleChange, response, errors, ...props }: LunaticComponentProps<'Duration'>): import("react/jsx-runtime").JSX.Element;
5
+ type CustomProps = Omit<LunaticComponentProps<'Duration'>, 'response' | 'handleChange' | 'errors'> & {
6
+ onChange: (v: string | null) => void;
7
+ errors?: LunaticError[];
8
+ };
9
+ export declare const CustomDuration: import("react").ComponentType<CustomProps>;
10
+ export {};
@@ -3,5 +3,5 @@ type Props = {
3
3
  id: string;
4
4
  label?: ReactNode;
5
5
  };
6
- export declare const FilterDescription: import("react").ComponentType<Props>;
6
+ export declare const FilterDescription: ({ id, label }: Props) => import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
- import './Input.scss';
3
- export declare const Input: import("react").ComponentType<import("../type").LunaticBaseProps<string> & {
4
- maxLength?: number | undefined;
5
- value: string | null;
6
- response: {
7
- name: string;
8
- };
9
- }>;
2
+ import type { LunaticComponentProps } from '../type';
3
+ import type { LunaticError } from '../../use-lunatic/type';
4
+ export declare function Input({ handleChange, response, errors, ...props }: LunaticComponentProps<'Input'>): import("react/jsx-runtime").JSX.Element;
5
+ type CustomProps = Omit<LunaticComponentProps<'Input'>, 'response' | 'handleChange' | 'errors'> & {
6
+ onChange: (v: string) => void;
7
+ errors?: LunaticError[];
8
+ };
9
+ export declare const CustomInput: import("react").ComponentType<CustomProps>;
10
+ export {};
@@ -1,11 +1,10 @@
1
1
  /// <reference types="react" />
2
- import './InputNumber.scss';
3
- export declare const InputNumber: import("react").ComponentType<import("../type").LunaticBaseProps<number | null> & {
4
- min?: number | undefined;
5
- max?: number | undefined;
6
- decimals?: number | undefined;
7
- unit?: string | undefined;
8
- response: {
9
- name: string;
10
- };
11
- }>;
2
+ import type { LunaticComponentProps } from '../type';
3
+ import type { LunaticError } from '../../use-lunatic/type';
4
+ export declare function InputNumber({ handleChange, response, errors, decimals, ...props }: LunaticComponentProps<'InputNumber'>): import("react/jsx-runtime").JSX.Element;
5
+ type CustomProps = Omit<LunaticComponentProps<'InputNumber'>, 'response' | 'handleChange' | 'errors'> & {
6
+ onChange: (v: number | null) => void;
7
+ errors?: LunaticError[];
8
+ };
9
+ export declare const CustomInputNumber: import("react").ComponentType<CustomProps>;
10
+ export {};
@@ -1,22 +1,15 @@
1
- /// <reference types="react" />
1
+ import { type PropsWithChildren } from 'react';
2
+ import type { LunaticComponentProps } from '../type';
3
+ import type { LunaticError } from '../../use-lunatic/type';
2
4
  /**
3
5
  * Loop without specific markup (stack of subcomponents)
4
6
  */
5
- export declare const Loop: import("react").ComponentType<import("../type").LunaticBaseProps<unknown> & {
6
- lines: {
7
- min: number;
8
- max: number;
9
- };
10
- iterations: number;
11
- getComponents: (n: number) => import("../../use-lunatic/commons/fill-components/fill-components").FilledLunaticComponentProps[];
12
- executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
13
- iteration?: number | number[] | undefined;
14
- bindingDependencies?: string[] | undefined;
15
- deps?: string[] | undefined;
16
- } | undefined) => T;
17
- value: Record<string, unknown[]>;
18
- header?: {
19
- label: import("react").ReactNode;
20
- }[] | undefined;
21
- paginatedLoop?: boolean | undefined;
7
+ export declare function Loop({ lines, iterations, value, handleChange, getComponents, errors, ...props }: LunaticComponentProps<'Loop'>): import("react/jsx-runtime").JSX.Element | null;
8
+ type CustomProps = Omit<LunaticComponentProps<'Loop'>, 'response' | 'handleChange' | 'errors' | 'lines' | 'iterations' | 'value' | 'getComponents'> & PropsWithChildren<{
9
+ errors?: LunaticError[];
10
+ addRow?: () => void;
11
+ removeRow?: () => void;
12
+ canControlRows?: boolean;
22
13
  }>;
14
+ export declare const CustomLoop: import("react").ComponentType<CustomProps>;
15
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { type PropsWithChildren, type ReactElement, type ReactNode } from 'react';
2
2
  import type { FilledLunaticComponentProps } from '../use-lunatic/commons/fill-components/fill-components';
3
- type Props<T extends FilledLunaticComponentProps, V = undefined> = {
3
+ import { type LunaticSlotComponents } from './shared/HOC/slottableComponent';
4
+ type Props<T extends FilledLunaticComponentProps, V = unknown> = {
4
5
  components: (FilledLunaticComponentProps | ReactElement | {
5
6
  label: string;
6
7
  [key: string]: unknown;
@@ -12,11 +13,12 @@ type Props<T extends FilledLunaticComponentProps, V = undefined> = {
12
13
  wrapper?: (props: PropsWithChildren<FilledLunaticComponentProps & T & V & {
13
14
  index: number;
14
15
  }>) => ReactNode;
16
+ slots?: Partial<LunaticSlotComponents>;
15
17
  };
16
18
  /**
17
19
  * Entry point for orchestrators, this component display the list of fields
18
20
  */
19
- export declare function LunaticComponents<T extends FilledLunaticComponentProps, V = undefined>({ components, autoFocusKey, componentProps, blocklist, memo, wrapper, }: Props<T, V>): import("react/jsx-runtime").JSX.Element;
21
+ export declare function LunaticComponents<T extends FilledLunaticComponentProps, V = undefined>({ components, autoFocusKey, componentProps, blocklist, memo, slots, wrapper, }: Props<T, V>): import("react/jsx-runtime").JSX.Element;
20
22
  export declare function hasLabel(component: unknown): component is {
21
23
  label: ReactNode;
22
24
  } & FilledLunaticComponentProps;
@@ -1,7 +1,9 @@
1
- /// <reference types="react" />
1
+ import type { LunaticComponentProps } from '../type';
2
+ import type { PropsWithChildren } from 'react';
2
3
  /**
3
4
  * Surround a question giving additional context with label / description / declarations
4
5
  */
5
- export declare const Question: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<unknown>, "id" | "label" | "description" | "declarations"> & {
6
- components: import("../../use-lunatic/commons/fill-components/fill-components").FilledLunaticComponentProps[];
7
- }>;
6
+ export declare const Question: ({ components, ...props }: LunaticComponentProps<'Question'>) => import("react/jsx-runtime").JSX.Element;
7
+ type CustomProps = PropsWithChildren<Omit<LunaticComponentProps<'Question'>, 'components'>>;
8
+ export declare const CustomQuestion: import("react").ComponentType<CustomProps>;
9
+ export {};
@@ -1,25 +1,5 @@
1
- /// <reference types="react" />
2
- import './RosterForLoop.scss';
1
+ import type { LunaticComponentProps } from '../type';
3
2
  /**
4
3
  * Loop displayed as a table
5
4
  */
6
- export declare const RosterForLoop: import("react").ComponentType<import("../type").LunaticBaseProps<unknown> & {
7
- lines: {
8
- min: number;
9
- max: number;
10
- };
11
- iterations: number;
12
- getComponents: (n: number) => import("../../use-lunatic/commons/fill-components/fill-components").FilledLunaticComponentProps[];
13
- executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
14
- iteration?: number | number[] | undefined;
15
- bindingDependencies?: string[] | undefined;
16
- deps?: string[] | undefined;
17
- } | undefined) => T;
18
- value: Record<string, unknown[]>;
19
- header?: {
20
- label: import("react").ReactNode;
21
- rowspan?: number | undefined;
22
- colspan?: number | undefined;
23
- }[] | undefined;
24
- paginatedLoop?: boolean | undefined;
25
- }>;
5
+ export declare const RosterForLoop: (props: LunaticComponentProps<'RosterForLoop'>) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,3 @@
1
- import './Roundabout.scss';
2
1
  import type { LunaticComponentProps } from '../type';
3
2
  /**
4
3
  * Roundabout is a special loop component where the user can select the iteration to go to
@@ -1,3 +1,2 @@
1
1
  /// <reference types="react" />
2
- import './Sequence.scss';
3
- export declare const Sequence: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<string>, "id" | "label" | "style" | "description" | "declarations">>;
2
+ export declare const Sequence: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<string>, "label" | "description" | "declarations" | "id" | "style">>;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const Subsequence: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<string>, "id" | "label" | "declarations">>;
2
+ export declare const Subsequence: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<string>, "label" | "declarations" | "id">>;
@@ -1,12 +1,15 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import type { LunaticError } from '../../use-lunatic/type';
3
3
  import type { LunaticComponentProps } from '../type';
4
- import type { ComboboxOptionType } from '../shared/Combobox/ComboboxType';
4
+ import type { SuggesterOptionType } from './SuggesterType';
5
5
  type Props = {
6
6
  className?: string;
7
7
  classNamePrefix?: string;
8
8
  placeholder?: string;
9
- onSelect?: (s: string | null) => void;
9
+ onSelect: (option: string | null | {
10
+ id?: string;
11
+ [key: string]: ReactNode;
12
+ }) => void;
10
13
  value: string | null;
11
14
  labelRenderer: LunaticComponentProps<'Suggester'>['labelRenderer'];
12
15
  optionRenderer: LunaticComponentProps<'Suggester'>['optionRenderer'];
@@ -14,12 +17,13 @@ type Props = {
14
17
  readOnly?: boolean;
15
18
  id?: string;
16
19
  searching?: (s: string | null) => Promise<{
17
- results: ComboboxOptionType[];
20
+ results: SuggesterOptionType[];
18
21
  search: string;
19
22
  }>;
20
23
  label?: ReactNode;
21
24
  description?: ReactNode;
22
25
  errors?: LunaticError[];
26
+ defaultOptions?: SuggesterOptionType[];
23
27
  };
24
28
  export declare const CustomSuggester: import("react").ComponentType<Props>;
25
29
  export {};
@@ -1,3 +1,2 @@
1
1
  import type { LunaticComponentProps } from '../type';
2
- import './Suggester.scss';
3
- export declare function Suggester({ storeName, idbVersion, id, className, optionRenderer, labelRenderer, handleChange, disabled, value, label, description, getSuggesterStatus, errors, readOnly, workersBasePath, response, }: LunaticComponentProps<'Suggester'>): import("react/jsx-runtime").JSX.Element;
2
+ export declare function Suggester({ storeName, idbVersion, id, className, optionRenderer, labelRenderer, handleChange, disabled, value, label, description, getSuggesterStatus, errors, readOnly, workersBasePath, response, optionResponses, executeExpression, iteration, }: LunaticComponentProps<'Suggester'>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export type SuggesterOptionType = {
2
+ id: string;
3
+ label: string;
4
+ value: string;
5
+ [k: string]: string;
6
+ };
@@ -1,6 +1,6 @@
1
- import type { ComboboxOptionType } from '../shared/Combobox/ComboboxType';
1
+ import type { SuggesterOptionType } from './SuggesterType';
2
2
  export declare function isWorkerCompatible(): boolean;
3
3
  export declare function createSearching(name: string, version: string, workersBasePath?: string): (search: string | null) => Promise<{
4
- results: ComboboxOptionType[];
4
+ results: SuggesterOptionType[];
5
5
  search: string;
6
6
  }>;
@@ -1,4 +1,12 @@
1
+ import type { LunaticComponentProps } from '../type';
1
2
  import React from 'react';
3
+ import type { LunaticError } from '../../use-lunatic/type';
4
+ type CustomProps = Omit<LunaticComponentProps<'Switch'>, 'response' | 'handleChange' | 'errors' | 'value'> & {
5
+ onChange: () => void;
6
+ errors?: LunaticError[];
7
+ checked: boolean;
8
+ };
9
+ export declare const CustomSwitch: React.ComponentType<CustomProps>;
2
10
  export declare const Switch: React.ComponentType<import("../type").LunaticBaseProps<boolean> & {
3
11
  response: {
4
12
  name: string;
@@ -8,3 +16,4 @@ export declare const Switch: React.ComponentType<import("../type").LunaticBasePr
8
16
  false: string;
9
17
  } | undefined;
10
18
  }>;
19
+ export {};
@@ -1,11 +1,10 @@
1
1
  /// <reference types="react" />
2
- import './Textarea.scss';
3
- export declare const Textarea: import("react").ComponentType<import("../type").LunaticBaseProps<string> & {
4
- cols?: number | undefined;
5
- placeHolder?: string | undefined;
6
- maxLength?: number | undefined;
7
- rows?: number | undefined;
8
- response: {
9
- name: string;
10
- };
11
- }>;
2
+ import type { LunaticComponentProps } from '../type';
3
+ import type { LunaticError } from '../../use-lunatic/type';
4
+ export declare function Textarea({ handleChange, response, errors, ...props }: LunaticComponentProps<'Textarea'>): import("react/jsx-runtime").JSX.Element;
5
+ type CustomProps = Omit<LunaticComponentProps<'Textarea'>, 'response' | 'handleChange' | 'errors'> & {
6
+ onChange: (v: string) => void;
7
+ errors?: LunaticError[];
8
+ };
9
+ export declare const CustomTextarea: import("react").ComponentType<CustomProps>;
10
+ export {};
@@ -1,14 +1,22 @@
1
1
  import { Table } from './Table/Table';
2
+ import { Datepicker } from './Datepicker/Datepicker';
2
3
  import { CheckboxGroup } from './CheckboxGroup/CheckboxGroup';
4
+ import { CheckboxBoolean } from './CheckboxBoolean/CheckboxBoolean';
5
+ import { Input } from './Input/Input';
6
+ import { Textarea } from './Textarea/Textarea';
3
7
  import type { ComponentType } from 'react';
4
- import { ComponentSet } from './ComponentSet/ComponentSet';
8
+ import { InputNumber } from './InputNumber/InputNumber';
9
+ import { Duration } from './Duration/Duration';
10
+ import { Loop } from './Loop/Loop';
11
+ import { Dropdown } from './Dropdown/Dropdown';
5
12
  import { Roundabout } from './Roundabout/Roundabout';
13
+ import { CheckboxOne } from './CheckboxOne/CheckboxOne';
6
14
  import { Suggester } from './Suggester/Suggester';
7
15
  import { Summary } from './Summary/Summary';
8
16
  export declare const library: {
9
- Sequence: ComponentType<Pick<import("./type").LunaticBaseProps<string>, "id" | "label" | "style" | "description" | "declarations">>;
10
- Subsequence: ComponentType<Pick<import("./type").LunaticBaseProps<string>, "id" | "label" | "declarations">>;
11
- RosterForLoop: ComponentType<import("./type").LunaticBaseProps<unknown> & {
17
+ Sequence: ComponentType<Pick<import("./type").LunaticBaseProps<string>, "label" | "description" | "declarations" | "id" | "style">>;
18
+ Subsequence: ComponentType<Pick<import("./type").LunaticBaseProps<string>, "label" | "declarations" | "id">>;
19
+ RosterForLoop: (props: import("./type").LunaticBaseProps<unknown> & {
12
20
  lines: {
13
21
  min: number;
14
22
  max: number;
@@ -27,59 +35,14 @@ export declare const library: {
27
35
  colspan?: number | undefined;
28
36
  }[] | undefined;
29
37
  paginatedLoop?: boolean | undefined;
30
- }>;
31
- Loop: ComponentType<import("./type").LunaticBaseProps<unknown> & {
32
- lines: {
33
- min: number;
34
- max: number;
35
- };
36
- iterations: number;
37
- getComponents: (n: number) => import("../use-lunatic/commons/fill-components/fill-components").FilledLunaticComponentProps[];
38
- executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
39
- iteration?: number | number[] | undefined;
40
- bindingDependencies?: string[] | undefined;
41
- deps?: string[] | undefined;
42
- } | undefined) => T;
43
- value: Record<string, unknown[]>;
44
- header?: {
45
- label: import("react").ReactNode;
46
- }[] | undefined;
47
- paginatedLoop?: boolean | undefined;
48
- }>;
38
+ }) => import("react/jsx-runtime").JSX.Element | null;
39
+ Loop: typeof Loop;
49
40
  Table: typeof Table;
50
- InputNumber: ComponentType<import("./type").LunaticBaseProps<number | null> & {
51
- min?: number | undefined;
52
- max?: number | undefined;
53
- decimals?: number | undefined;
54
- unit?: string | undefined;
55
- response: {
56
- name: string;
57
- };
58
- }>;
59
- Datepicker: ComponentType<import("./type").LunaticBaseProps<string | null> & {
60
- dateFormat: "YYYY-MM-DD" | "YYYY" | "YYYY-MM";
61
- min?: string | undefined;
62
- max?: string | undefined;
63
- response: {
64
- name: string;
65
- };
66
- }>;
41
+ InputNumber: typeof InputNumber;
42
+ Datepicker: typeof Datepicker;
67
43
  CheckboxGroup: typeof CheckboxGroup;
68
- CheckboxOne: ComponentType<import("./type").LunaticBaseProps<string | null> & {
69
- options: {
70
- description?: import("react").ReactNode;
71
- label: import("react").ReactNode;
72
- value: string;
73
- }[];
74
- response: {
75
- name: string;
76
- };
77
- }>;
78
- CheckboxBoolean: ComponentType<import("./type").LunaticBaseProps<boolean> & {
79
- response: {
80
- name: string;
81
- };
82
- }>;
44
+ CheckboxOne: typeof CheckboxOne;
45
+ CheckboxBoolean: typeof CheckboxBoolean;
83
46
  Radio: ComponentType<import("./type").LunaticBaseProps<string | null> & {
84
47
  options: {
85
48
  description: import("react").ReactNode;
@@ -91,28 +54,9 @@ export declare const library: {
91
54
  name: string;
92
55
  };
93
56
  }>;
94
- Input: ComponentType<import("./type").LunaticBaseProps<string> & {
95
- maxLength?: number | undefined;
96
- value: string | null;
97
- response: {
98
- name: string;
99
- };
100
- }>;
101
- Duration: ComponentType<import("./type").LunaticBaseProps<string | null> & {
102
- format: "PTnHnM" | "PnYnM";
103
- response: {
104
- name: string;
105
- };
106
- }>;
107
- Textarea: ComponentType<import("./type").LunaticBaseProps<string> & {
108
- cols?: number | undefined;
109
- placeHolder?: string | undefined;
110
- maxLength?: number | undefined;
111
- rows?: number | undefined;
112
- response: {
113
- name: string;
114
- };
115
- }>;
57
+ Input: typeof Input;
58
+ Duration: typeof Duration;
59
+ Textarea: typeof Textarea;
116
60
  Switch: ComponentType<import("./type").LunaticBaseProps<boolean> & {
117
61
  response: {
118
62
  name: string;
@@ -122,25 +66,14 @@ export declare const library: {
122
66
  false: string;
123
67
  } | undefined;
124
68
  }>;
125
- Question: ComponentType<Pick<import("./type").LunaticBaseProps<unknown>, "id" | "label" | "description" | "declarations"> & {
69
+ Question: ({ components, ...props }: Pick<import("./type").LunaticBaseProps<unknown>, "label" | "description" | "declarations" | "id"> & {
126
70
  components: import("../use-lunatic/commons/fill-components/fill-components").FilledLunaticComponentProps[];
127
- }>;
128
- ComponentSet: typeof ComponentSet;
129
- FilterDescription: ComponentType<{
71
+ }) => import("react/jsx-runtime").JSX.Element;
72
+ FilterDescription: ({ id, label }: {
130
73
  id: string;
131
74
  label?: import("react").ReactNode;
132
- }>;
133
- Dropdown: ComponentType<import("./type").LunaticBaseProps<string | null> & {
134
- options: {
135
- description: import("react").ReactNode;
136
- label: import("react").ReactNode;
137
- value: string;
138
- }[];
139
- response: {
140
- name: string;
141
- };
142
- writable?: boolean | undefined;
143
- }>;
75
+ }) => import("react/jsx-runtime").JSX.Element;
76
+ Dropdown: typeof Dropdown;
144
77
  PairwiseLinks: ({ declarations, xAxisIterations, yAxisIterations, id, getComponents, }: Omit<import("./type").LunaticBaseProps<unknown>, "value"> & {
145
78
  components: import("..").LunaticComponentDefinition[];
146
79
  features?: ["VTL"] | ["VTL", "MD"] | undefined;
@@ -1,5 +1,4 @@
1
1
  import { type MouseEventHandler, type PropsWithChildren } from 'react';
2
- import './Button.scss';
3
2
  type Props = PropsWithChildren<{
4
3
  onClick?: MouseEventHandler<HTMLButtonElement | HTMLInputElement>;
5
4
  className?: string;
@@ -1,5 +1,4 @@
1
1
  import type { HTMLAttributes, PropsWithChildren } from 'react';
2
- import './IconButton.scss';
3
2
  type Props = PropsWithChildren<{
4
3
  disabled?: boolean;
5
4
  }> & HTMLAttributes<HTMLButtonElement>;
@@ -1,5 +1,4 @@
1
1
  import { type ReactNode } from 'react';
2
- import './CheckboxOption.scss';
3
2
  import type { LunaticBaseProps } from '../../type';
4
3
  export type CheckboxOptionProps = {
5
4
  disabled?: boolean;
@@ -1,5 +1,4 @@
1
1
  import { type ReactNode } from 'react';
2
- import './Combobox.scss';
3
2
  import type { ComboboxOptionType, ComboboxPanelProps, ComboboxSelectionProps } from './ComboboxType';
4
3
  import type { LunaticError } from '../../../use-lunatic/type';
5
4
  type Props = ComboboxSelectionProps & ComboboxPanelProps & {
@@ -14,6 +13,7 @@ type Props = ComboboxSelectionProps & ComboboxPanelProps & {
14
13
  errors?: LunaticError[];
15
14
  onChange?: (s: string | null) => void;
16
15
  onSelect: (s: string | null) => void;
16
+ onBlur?: () => void;
17
17
  options: ComboboxOptionType[];
18
18
  readOnly?: boolean;
19
19
  };
@@ -1,4 +1,3 @@
1
- import './ComponentErrors.scss';
2
1
  import type { LunaticError } from '../../../use-lunatic/type';
3
2
  type Props = {
4
3
  errors?: Record<string, LunaticError[]>;
@@ -1,14 +1,13 @@
1
- import './Declarations.scss';
2
1
  import { type PropsWithChildren, type ReactNode } from 'react';
3
2
  export declare const Declaration: import("react").ComponentType<PropsWithChildren<{
4
- type: string;
3
+ declarationType: 'INSTRUCTION' | 'COMMENT' | 'HELP' | 'CODECARD' | 'WARNING' | 'STATEMENT';
5
4
  }>>;
6
5
  type Props = {
7
6
  id?: string;
8
7
  type?: 'AFTER_QUESTION_TEXT' | 'BEFORE_QUESTION_TEXT' | 'DETACHABLE';
9
8
  declarations?: {
10
9
  id: string;
11
- declarationType: string;
10
+ declarationType: 'INSTRUCTION' | 'COMMENT' | 'HELP' | 'CODECARD' | 'WARNING' | 'STATEMENT';
12
11
  position: string;
13
12
  label: ReactNode;
14
13
  }[];