@inseefr/lunatic 3.4.3 → 3.4.5-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -13
- package/components/Accordion/Accordion.js +9 -0
- package/components/Accordion/Accordion.js.map +1 -0
- package/components/CheckboxBoolean/CheckboxBoolean.js +23 -0
- package/components/CheckboxBoolean/CheckboxBoolean.js.map +1 -0
- package/components/CheckboxBoolean/CheckboxBoolean.spec.js +39 -0
- package/components/CheckboxBoolean/CheckboxBoolean.spec.js.map +1 -0
- package/components/CheckboxGroup/CheckboxGroup.js +10 -0
- package/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/components/CheckboxGroup/CustomCheckboxGroup.js +19 -0
- package/components/CheckboxGroup/CustomCheckboxGroup.js.map +1 -0
- package/components/CheckboxGroup/CustomCheckboxGroup.spec.js +47 -0
- package/components/CheckboxGroup/CustomCheckboxGroup.spec.js.map +1 -0
- package/components/CheckboxOne/CheckboxOne.js +13 -0
- package/components/CheckboxOne/CheckboxOne.js.map +1 -0
- package/components/CheckboxOne/CheckboxOne.spec.js +26 -0
- package/components/CheckboxOne/CheckboxOne.spec.js.map +1 -0
- package/components/Datepicker/Datepicker.js +70 -0
- package/components/Datepicker/Datepicker.js.map +1 -0
- package/components/Datepicker/Datepicker.spec.js +77 -0
- package/components/Datepicker/Datepicker.spec.js.map +1 -0
- package/components/Datepicker/DatepickerField.js +19 -0
- package/components/Datepicker/DatepickerField.js.map +1 -0
- package/components/Dropdown/Dropdown.js +22 -0
- package/components/Dropdown/Dropdown.js.map +1 -0
- package/components/Dropdown/Dropdown.spec.js +40 -0
- package/components/Dropdown/Dropdown.spec.js.map +1 -0
- package/components/Dropdown/renderer/SimpleLabelRenderer.js +22 -0
- package/components/Dropdown/renderer/SimpleLabelRenderer.js.map +1 -0
- package/components/Dropdown/renderer/SimpleOptionRenderer.js +16 -0
- package/components/Dropdown/renderer/SimpleOptionRenderer.js.map +1 -0
- package/components/Duration/Duration.js +38 -0
- package/components/Duration/Duration.js.map +1 -0
- package/components/Duration/durationUtils.js +30 -0
- package/components/Duration/durationUtils.js.map +1 -0
- package/components/Duration/formatDuration.js +21 -0
- package/components/Duration/formatDuration.js.map +1 -0
- package/components/Duration/formatDuration.spec.js +18 -0
- package/components/Duration/formatDuration.spec.js.map +1 -0
- package/components/Duration/getDurationFromValue.js +40 -0
- package/components/Duration/getDurationFromValue.js.map +1 -0
- package/components/FilterDescription/FilterDescription.js +7 -0
- package/components/FilterDescription/FilterDescription.js.map +1 -0
- package/components/FilterDescription/FilterDescription.spec.js +18 -0
- package/components/FilterDescription/FilterDescription.spec.js.map +1 -0
- package/components/Input/Input.js +22 -0
- package/components/Input/Input.js.map +1 -0
- package/components/Input/Input.spec.js +54 -0
- package/components/Input/Input.spec.js.map +1 -0
- package/components/InputNumber/InputNumber.js +19 -0
- package/components/InputNumber/InputNumber.js.map +1 -0
- package/components/InputNumber/InputNumber.spec.js +78 -0
- package/components/InputNumber/InputNumber.spec.js.map +1 -0
- package/components/InputNumber/InputNumberThousand.js +26 -0
- package/components/InputNumber/InputNumberThousand.js.map +1 -0
- package/components/Loop/Loop.js +62 -0
- package/components/Loop/Loop.js.map +1 -0
- package/components/Loop/constant.js +13 -0
- package/components/Loop/constant.js.map +1 -0
- package/components/LunaticComponents.js +87 -0
- package/components/LunaticComponents.js.map +1 -0
- package/components/PairwiseLinks/PairwiseLinks.js +46 -0
- package/components/PairwiseLinks/PairwiseLinks.js.map +1 -0
- package/components/Question/Question.js +20 -0
- package/components/Question/Question.js.map +1 -0
- package/components/Radio/Radio.js +13 -0
- package/components/Radio/Radio.js.map +1 -0
- package/components/RosterForLoop/RosterForLoop.js +66 -0
- package/components/RosterForLoop/RosterForLoop.js.map +1 -0
- package/components/RosterForLoop/RosterForLoop.spec.js +30 -0
- package/components/RosterForLoop/RosterForLoop.spec.js.map +1 -0
- package/components/Roundabout/CustomRoundabout.js +37 -0
- package/components/Roundabout/CustomRoundabout.js.map +1 -0
- package/components/Roundabout/Roundabout.js +31 -0
- package/components/Roundabout/Roundabout.js.map +1 -0
- package/components/Roundabout/roundabout.spec.js +49 -0
- package/components/Roundabout/roundabout.spec.js.map +1 -0
- package/components/Sequence/Sequence.js +12 -0
- package/components/Sequence/Sequence.js.map +1 -0
- package/components/Subsequence/Subsequence.js +12 -0
- package/components/Subsequence/Subsequence.js.map +1 -0
- package/components/Subsequence/Subsequence.spec.js +44 -0
- package/components/Subsequence/Subsequence.spec.js.map +1 -0
- package/components/Suggester/CustomSuggester.js +23 -0
- package/components/Suggester/CustomSuggester.js.map +1 -0
- package/components/Suggester/Suggester.js +109 -0
- package/components/Suggester/Suggester.js.map +1 -0
- package/components/Suggester/SuggesterNotification.js +18 -0
- package/components/Suggester/SuggesterNotification.js.map +1 -0
- package/components/Suggester/SuggesterType.js +3 -0
- package/components/Suggester/SuggesterType.js.map +1 -0
- package/components/Suggester/useSuggestions.js +90 -0
- package/components/Suggester/useSuggestions.js.map +1 -0
- package/components/Summary/Summary.js +69 -0
- package/components/Summary/Summary.js.map +1 -0
- package/components/Switch/Switch.js +36 -0
- package/components/Switch/Switch.js.map +1 -0
- package/components/Table/Table.js +12 -0
- package/components/Table/Table.js.map +1 -0
- package/components/Text/Text.js +7 -0
- package/components/Text/Text.js.map +1 -0
- package/components/Textarea/Textarea.js +18 -0
- package/components/Textarea/Textarea.js.map +1 -0
- package/components/Textarea/Textarea.spec.js +33 -0
- package/components/Textarea/Textarea.spec.js.map +1 -0
- package/components/library.js +55 -0
- package/components/library.js.map +1 -0
- package/components/shared/Button/Button.js +19 -0
- package/components/shared/Button/Button.js.map +1 -0
- package/components/shared/Button/Button.spec.js +53 -0
- package/components/shared/Button/Button.spec.js.map +1 -0
- package/components/shared/Button/IconButton.js +13 -0
- package/components/shared/Button/IconButton.js.map +1 -0
- package/components/shared/Button/IconButton.spec.js +58 -0
- package/components/shared/Button/IconButton.spec.js.map +1 -0
- package/components/shared/Checkbox/CheckboxOption.js +29 -0
- package/components/shared/Checkbox/CheckboxOption.js.map +1 -0
- package/components/shared/Checkbox/CheckboxOption.spec.js +54 -0
- package/components/shared/Checkbox/CheckboxOption.spec.js.map +1 -0
- package/components/shared/Checkbox/getShortcutKey.js +7 -0
- package/components/shared/Checkbox/getShortcutKey.js.map +1 -0
- package/components/shared/Combobox/Combobox.js +103 -0
- package/components/shared/Combobox/Combobox.js.map +1 -0
- package/components/shared/Combobox/Combobox.stories.js +48 -0
- package/components/shared/Combobox/Combobox.stories.js.map +1 -0
- package/components/shared/Combobox/ComboboxContainer.js +12 -0
- package/components/shared/Combobox/ComboboxContainer.js.map +1 -0
- package/components/shared/Combobox/ComboboxContainer.spec.js +26 -0
- package/components/shared/Combobox/ComboboxContainer.spec.js.map +1 -0
- package/components/shared/Combobox/ComboboxContent.js +39 -0
- package/components/shared/Combobox/ComboboxContent.js.map +1 -0
- package/components/shared/Combobox/ComboboxContentBox.js +13 -0
- package/components/shared/Combobox/ComboboxContentBox.js.map +1 -0
- package/components/shared/Combobox/ComboboxType.js +3 -0
- package/components/shared/Combobox/ComboboxType.js.map +1 -0
- package/components/shared/Combobox/Panel/ComboboxOption.js +21 -0
- package/components/shared/Combobox/Panel/ComboboxOption.js.map +1 -0
- package/components/shared/Combobox/Panel/ComboboxOption.spec.js +35 -0
- package/components/shared/Combobox/Panel/ComboboxOption.spec.js.map +1 -0
- package/components/shared/Combobox/Panel/ComboboxOptionContainer.js +42 -0
- package/components/shared/Combobox/Panel/ComboboxOptionContainer.js.map +1 -0
- package/components/shared/Combobox/Panel/ComboboxOptionContainer.spec.js +20 -0
- package/components/shared/Combobox/Panel/ComboboxOptionContainer.spec.js.map +1 -0
- package/components/shared/Combobox/Panel/ComboboxPanel.js +33 -0
- package/components/shared/Combobox/Panel/ComboboxPanel.js.map +1 -0
- package/components/shared/Combobox/Panel/ComboboxPanel.spec.js +62 -0
- package/components/shared/Combobox/Panel/ComboboxPanel.spec.js.map +1 -0
- package/components/shared/Combobox/Panel/ComboboxPanelContainer.js +14 -0
- package/components/shared/Combobox/Panel/ComboboxPanelContainer.js.map +1 -0
- package/components/shared/Combobox/Panel/ComboboxPanelContainer.spec.js +33 -0
- package/components/shared/Combobox/Panel/ComboboxPanelContainer.spec.js.map +1 -0
- package/components/shared/Combobox/Selection/ComboboxClearButton.js +34 -0
- package/components/shared/Combobox/Selection/ComboboxClearButton.js.map +1 -0
- package/components/shared/Combobox/Selection/ComboboxClearButton.spec.js +58 -0
- package/components/shared/Combobox/Selection/ComboboxClearButton.spec.js.map +1 -0
- package/components/shared/Combobox/Selection/ComboboxInput.js +27 -0
- package/components/shared/Combobox/Selection/ComboboxInput.js.map +1 -0
- package/components/shared/Combobox/Selection/ComboboxLabelSelection.js +37 -0
- package/components/shared/Combobox/Selection/ComboboxLabelSelection.js.map +1 -0
- package/components/shared/Combobox/Selection/ComboboxLabelSelection.spec.js +29 -0
- package/components/shared/Combobox/Selection/ComboboxLabelSelection.spec.js.map +1 -0
- package/components/shared/Combobox/Selection/ComboboxSelection.js +24 -0
- package/components/shared/Combobox/Selection/ComboboxSelection.js.map +1 -0
- package/components/shared/Combobox/Selection/ComboboxSelection.spec.js +38 -0
- package/components/shared/Combobox/Selection/ComboboxSelection.spec.js.map +1 -0
- package/components/shared/Combobox/constants.js +13 -0
- package/components/shared/Combobox/constants.js.map +1 -0
- package/components/shared/Combobox/index.js.map +1 -0
- package/components/shared/ComponentErrors/ComponentErrors.js +28 -0
- package/components/shared/ComponentErrors/ComponentErrors.js.map +1 -0
- package/components/shared/ComponentErrors/ComponentErrors.spec.js +42 -0
- package/components/shared/ComponentErrors/ComponentErrors.spec.js.map +1 -0
- package/components/shared/ComponentWrapper.js +34 -0
- package/components/shared/ComponentWrapper.js.map +1 -0
- package/components/shared/Declarations/Declarations.js +19 -0
- package/components/shared/Declarations/Declarations.js.map +1 -0
- package/components/shared/Declarations/Declarations.spec.js +68 -0
- package/components/shared/Declarations/Declarations.spec.js.map +1 -0
- package/components/shared/Fieldset/Fieldset.js +34 -0
- package/components/shared/Fieldset/Fieldset.js.map +1 -0
- package/components/shared/Fieldset/Fieldset.spec.js +27 -0
- package/components/shared/Fieldset/Fieldset.spec.js.map +1 -0
- package/components/shared/HOC/slottableComponent.js +35 -0
- package/components/shared/HOC/slottableComponent.js.map +1 -0
- package/components/shared/Icons/checkbox-checked-icon.js +9 -0
- package/components/shared/Icons/checkbox-checked-icon.js.map +1 -0
- package/components/shared/Icons/checkbox-disabled-icon.js +9 -0
- package/components/shared/Icons/checkbox-disabled-icon.js.map +1 -0
- package/components/shared/Icons/checkbox-unchecked-icon.js +9 -0
- package/components/shared/Icons/checkbox-unchecked-icon.js.map +1 -0
- package/components/shared/Icons/closed-icon.js +9 -0
- package/components/shared/Icons/closed-icon.js.map +1 -0
- package/components/shared/Icons/cross-icon.js +9 -0
- package/components/shared/Icons/cross-icon.js.map +1 -0
- package/components/shared/Icons/icon-props.js +3 -0
- package/components/shared/Icons/icon-props.js.map +1 -0
- package/components/shared/Icons/index.js +24 -0
- package/components/shared/Icons/index.js.map +1 -0
- package/components/shared/Icons/load-icon.js +9 -0
- package/components/shared/Icons/load-icon.js.map +1 -0
- package/components/shared/Icons/lunatic-icon.js +12 -0
- package/components/shared/Icons/lunatic-icon.js.map +1 -0
- package/components/shared/Icons/network-icon.js +9 -0
- package/components/shared/Icons/network-icon.js.map +1 -0
- package/components/shared/Icons/on-drag-icon.js +9 -0
- package/components/shared/Icons/on-drag-icon.js.map +1 -0
- package/components/shared/Icons/opened-icon.js +9 -0
- package/components/shared/Icons/opened-icon.js.map +1 -0
- package/components/shared/Icons/radio-checked-icon.js +10 -0
- package/components/shared/Icons/radio-checked-icon.js.map +1 -0
- package/components/shared/Icons/radio-unchecked-icon.js +9 -0
- package/components/shared/Icons/radio-unchecked-icon.js.map +1 -0
- package/components/shared/Label/Label.js +21 -0
- package/components/shared/Label/Label.js.map +1 -0
- package/components/shared/Label/Label.spec.js +21 -0
- package/components/shared/Label/Label.spec.js.map +1 -0
- package/components/shared/LabelDescription.js +17 -0
- package/components/shared/LabelDescription.js.map +1 -0
- package/components/shared/MDLabel/MDLabel.js +26 -0
- package/components/shared/MDLabel/MDLabel.js.map +1 -0
- package/components/shared/MDLabel/MDLabel.spec.js +112 -0
- package/components/shared/MDLabel/MDLabel.spec.js.map +1 -0
- package/components/shared/MDLabel/MarkdownLink.js +17 -0
- package/components/shared/MDLabel/MarkdownLink.js.map +1 -0
- package/components/shared/MDLabel/RouterLink.js +10 -0
- package/components/shared/MDLabel/RouterLink.js.map +1 -0
- package/components/shared/Missing/Missing.js +56 -0
- package/components/shared/Missing/Missing.js.map +1 -0
- package/components/shared/Missing/Missing.spec.js +47 -0
- package/components/shared/Missing/Missing.spec.js.map +1 -0
- package/components/shared/ModalControls/ModalControls.js +35 -0
- package/components/shared/ModalControls/ModalControls.js.map +1 -0
- package/components/shared/ModalControls/ModalControls.spec.js +63 -0
- package/components/shared/ModalControls/ModalControls.spec.js.map +1 -0
- package/components/shared/Notification.js +14 -0
- package/components/shared/Notification.js.map +1 -0
- package/components/shared/Radio/RadioGroup.js +26 -0
- package/components/shared/Radio/RadioGroup.js.map +1 -0
- package/components/shared/Radio/RadioOption.js +43 -0
- package/components/shared/Radio/RadioOption.js.map +1 -0
- package/components/shared/Radio/RadioOption.spec.js +48 -0
- package/components/shared/Radio/RadioOption.spec.js.map +1 -0
- package/components/shared/Table/Table.js +19 -0
- package/components/shared/Table/Table.js.map +1 -0
- package/components/shared/Table/Table.spec.js +17 -0
- package/components/shared/Table/Table.spec.js.map +1 -0
- package/components/shared/Table/TableHeader.js +17 -0
- package/components/shared/Table/TableHeader.js.map +1 -0
- package/components/shared/Table/Tbody.js +14 -0
- package/components/shared/Table/Tbody.js.map +1 -0
- package/components/shared/Table/Tbody.spec.js +24 -0
- package/components/shared/Table/Tbody.spec.js.map +1 -0
- package/components/shared/Table/Td.js +14 -0
- package/components/shared/Table/Td.js.map +1 -0
- package/components/shared/Table/Td.spec.js +23 -0
- package/components/shared/Table/Td.spec.js.map +1 -0
- package/components/shared/Table/Th.js +14 -0
- package/components/shared/Table/Th.js.map +1 -0
- package/components/shared/Table/Th.spec.js +27 -0
- package/components/shared/Table/Th.spec.js.map +1 -0
- package/components/shared/Table/Thead.js +14 -0
- package/components/shared/Table/Thead.js.map +1 -0
- package/components/shared/Table/Thead.spec.js +14 -0
- package/components/shared/Table/Thead.spec.js.map +1 -0
- package/components/shared/Table/Tr.js +14 -0
- package/components/shared/Table/Tr.js.map +1 -0
- package/components/shared/Table/Tr.spec.js +21 -0
- package/components/shared/Table/Tr.spec.js.map +1 -0
- package/components/shared/Table/index.js +18 -0
- package/components/shared/Table/index.js.map +1 -0
- package/components/type.d.ts +305 -0
- package/components/type.js +3 -0
- package/components/type.js.map +1 -0
- package/constants/component-types.js +5 -0
- package/constants/component-types.js.map +1 -0
- package/constants/declarations.js +15 -0
- package/constants/declarations.js.map +1 -0
- package/constants/event-types.js +16 -0
- package/constants/event-types.js.map +1 -0
- package/constants/index.js +22 -0
- package/constants/index.js.map +1 -0
- package/constants/indexedDBStore.js +22 -0
- package/constants/indexedDBStore.js.map +1 -0
- package/constants/supported-preferences.js +36 -0
- package/constants/supported-preferences.js.map +1 -0
- package/constants/value-types.js +9 -0
- package/constants/value-types.js.map +1 -0
- package/constants/variable-types.js +8 -0
- package/constants/variable-types.js.map +1 -0
- package/hooks/use-auto-focus.js +22 -0
- package/hooks/use-auto-focus.js.map +1 -0
- package/hooks/use-track-changes.js +44 -0
- package/hooks/use-track-changes.js.map +1 -0
- package/hooks/use-why-render.js +17 -0
- package/hooks/use-why-render.js.map +1 -0
- package/hooks/useDebounce.js +30 -0
- package/hooks/useDebounce.js.map +1 -0
- package/hooks/useDocumentEvent.js +20 -0
- package/hooks/useDocumentEvent.js.map +1 -0
- package/hooks/useKeyboardKey.js +28 -0
- package/hooks/useKeyboardKey.js.map +1 -0
- package/hooks/useListKeyboardHandler.js +31 -0
- package/hooks/useListKeyboardHandler.js.map +1 -0
- package/hooks/useRefSync.js +13 -0
- package/hooks/useRefSync.js.map +1 -0
- package/i18n/build-dictionary.js +41 -0
- package/i18n/build-dictionary.js.map +1 -0
- package/i18n/dictionary.js +29 -0
- package/i18n/dictionary.js.map +1 -0
- package/i18n/index.js +42 -0
- package/i18n/index.js.map +1 -0
- package/i18n/inputNumberProps.js +10 -0
- package/i18n/inputNumberProps.js.map +1 -0
- package/index.js +24 -0
- package/index.js.map +1 -0
- package/package.json +1279 -122
- package/src/components/Accordion/Accordion.tsx +18 -0
- package/src/components/CheckboxBoolean/CheckboxBoolean.spec.tsx +84 -0
- package/src/components/CheckboxBoolean/CheckboxBoolean.tsx +81 -0
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +31 -0
- package/src/components/CheckboxGroup/CustomCheckboxGroup.spec.tsx +51 -0
- package/src/components/CheckboxGroup/CustomCheckboxGroup.tsx +84 -0
- package/src/components/CheckboxOne/CheckboxOne.spec.tsx +44 -0
- package/src/components/CheckboxOne/CheckboxOne.tsx +39 -0
- package/src/components/Datepicker/Datepicker.spec.tsx +105 -0
- package/src/components/Datepicker/Datepicker.tsx +165 -0
- package/src/components/Datepicker/DatepickerField.tsx +58 -0
- package/src/components/Datepicker/__snapshots__/Datepicker.spec.tsx.snap +166 -0
- package/src/components/Dropdown/Dropdown.spec.tsx +42 -0
- package/src/components/Dropdown/Dropdown.tsx +69 -0
- package/src/components/Dropdown/__snapshots__/Dropdown.spec.tsx.snap +73 -0
- package/src/components/Dropdown/renderer/SimpleLabelRenderer.tsx +26 -0
- package/src/components/Dropdown/renderer/SimpleOptionRenderer.tsx +26 -0
- package/src/components/Duration/Duration.tsx +97 -0
- package/src/components/Duration/durationUtils.ts +39 -0
- package/src/components/Duration/formatDuration.spec.ts +15 -0
- package/src/components/Duration/formatDuration.ts +19 -0
- package/src/components/Duration/getDurationFromValue.ts +43 -0
- package/src/components/FilterDescription/FilterDescription.spec.tsx +20 -0
- package/src/components/FilterDescription/FilterDescription.tsx +16 -0
- package/src/components/Input/Input.spec.tsx +76 -0
- package/src/components/Input/Input.tsx +77 -0
- package/src/components/Input/__snapshots__/Input.spec.tsx.snap +36 -0
- package/src/components/InputNumber/InputNumber.spec.tsx +115 -0
- package/src/components/InputNumber/InputNumber.tsx +83 -0
- package/src/components/InputNumber/InputNumberThousand.tsx +73 -0
- package/src/components/InputNumber/__snapshots__/InputNumber.spec.tsx.snap +40 -0
- package/src/components/Loop/Loop.tsx +137 -0
- package/src/components/Loop/constant.ts +9 -0
- package/src/components/LunaticComponents.tsx +187 -0
- package/src/components/PairwiseLinks/PairwiseLinks.tsx +93 -0
- package/src/components/Question/Question.tsx +45 -0
- package/src/components/Radio/Radio.tsx +41 -0
- package/src/components/RosterForLoop/RosterForLoop.spec.tsx +42 -0
- package/src/components/RosterForLoop/RosterForLoop.tsx +123 -0
- package/src/components/RosterForLoop/__snapshots__/RosterForLoop.spec.tsx.snap +90 -0
- package/src/components/Roundabout/CustomRoundabout.tsx +117 -0
- package/src/components/Roundabout/Roundabout.tsx +39 -0
- package/src/components/Roundabout/roundabout.spec.tsx +77 -0
- package/src/components/Sequence/Sequence.tsx +28 -0
- package/src/components/Subsequence/Subsequence.spec.tsx +50 -0
- package/src/components/Subsequence/Subsequence.tsx +34 -0
- package/src/components/Suggester/CustomSuggester.tsx +93 -0
- package/src/components/Suggester/Suggester.tsx +160 -0
- package/src/components/Suggester/SuggesterNotification.tsx +58 -0
- package/src/components/Suggester/SuggesterType.ts +5 -0
- package/src/components/Suggester/useSuggestions.ts +113 -0
- package/src/components/Summary/Summary.tsx +121 -0
- package/src/components/Switch/Switch.tsx +108 -0
- package/src/components/Table/Table.tsx +48 -0
- package/src/components/Text/Text.tsx +5 -0
- package/src/components/Textarea/Textarea.spec.tsx +46 -0
- package/src/components/Textarea/Textarea.tsx +82 -0
- package/src/components/Textarea/__snapshots__/Textarea.spec.tsx.snap +32 -0
- package/src/components/library.ts +58 -0
- package/src/components/shared/Button/Button.spec.tsx +75 -0
- package/src/components/shared/Button/Button.tsx +61 -0
- package/src/components/shared/Button/IconButton.spec.tsx +59 -0
- package/src/components/shared/Button/IconButton.tsx +32 -0
- package/src/components/shared/Button/__snapshots__/Button.spec.tsx.snap +80 -0
- package/src/components/shared/Checkbox/CheckboxOption.spec.tsx +58 -0
- package/src/components/shared/Checkbox/CheckboxOption.tsx +98 -0
- package/src/components/shared/Checkbox/getShortcutKey.ts +6 -0
- package/src/components/shared/Combobox/Combobox.stories.tsx +74 -0
- package/src/components/shared/Combobox/Combobox.tsx +225 -0
- package/src/components/shared/Combobox/ComboboxContainer.spec.tsx +37 -0
- package/src/components/shared/Combobox/ComboboxContainer.tsx +40 -0
- package/src/components/shared/Combobox/ComboboxContent.tsx +74 -0
- package/src/components/shared/Combobox/ComboboxContentBox.tsx +21 -0
- package/src/components/shared/Combobox/ComboboxType.ts +54 -0
- package/src/components/shared/Combobox/Panel/ComboboxOption.spec.tsx +37 -0
- package/src/components/shared/Combobox/Panel/ComboboxOption.tsx +41 -0
- package/src/components/shared/Combobox/Panel/ComboboxOptionContainer.spec.tsx +18 -0
- package/src/components/shared/Combobox/Panel/ComboboxOptionContainer.tsx +67 -0
- package/src/components/shared/Combobox/Panel/ComboboxPanel.spec.tsx +97 -0
- package/src/components/shared/Combobox/Panel/ComboboxPanel.tsx +94 -0
- package/src/components/shared/Combobox/Panel/ComboboxPanelContainer.spec.tsx +61 -0
- package/src/components/shared/Combobox/Panel/ComboboxPanelContainer.tsx +26 -0
- package/src/components/shared/Combobox/Selection/ComboboxClearButton.spec.tsx +74 -0
- package/src/components/shared/Combobox/Selection/ComboboxClearButton.tsx +55 -0
- package/src/components/shared/Combobox/Selection/ComboboxInput.tsx +71 -0
- package/src/components/shared/Combobox/Selection/ComboboxLabelSelection.spec.tsx +44 -0
- package/src/components/shared/Combobox/Selection/ComboboxLabelSelection.tsx +70 -0
- package/src/components/shared/Combobox/Selection/ComboboxSelection.spec.tsx +65 -0
- package/src/components/shared/Combobox/Selection/ComboboxSelection.tsx +77 -0
- package/src/components/shared/Combobox/Selection/__snapshots__/ComboboxSelection.spec.tsx.snap +76 -0
- package/src/components/shared/Combobox/constants.ts +9 -0
- package/src/components/shared/Combobox/index.ts +0 -0
- package/src/components/shared/ComponentErrors/ComponentErrors.spec.tsx +46 -0
- package/src/components/shared/ComponentErrors/ComponentErrors.tsx +48 -0
- package/src/components/shared/ComponentWrapper.tsx +66 -0
- package/src/components/shared/Declarations/Declarations.spec.tsx +101 -0
- package/src/components/shared/Declarations/Declarations.tsx +70 -0
- package/src/components/shared/Fieldset/Fieldset.spec.tsx +28 -0
- package/src/components/shared/Fieldset/Fieldset.tsx +47 -0
- package/src/components/shared/HOC/slottableComponent.tsx +155 -0
- package/src/components/shared/Icons/checkbox-checked-icon.tsx +27 -0
- package/src/components/shared/Icons/checkbox-disabled-icon.tsx +27 -0
- package/src/components/shared/Icons/checkbox-unchecked-icon.tsx +27 -0
- package/src/components/shared/Icons/closed-icon.tsx +22 -0
- package/src/components/shared/Icons/cross-icon.tsx +22 -0
- package/src/components/shared/Icons/icon-props.ts +5 -0
- package/src/components/shared/Icons/index.ts +10 -0
- package/src/components/shared/Icons/load-icon.tsx +22 -0
- package/src/components/shared/Icons/lunatic-icon.tsx +9 -0
- package/src/components/shared/Icons/network-icon.tsx +22 -0
- package/src/components/shared/Icons/on-drag-icon.tsx +22 -0
- package/src/components/shared/Icons/opened-icon.tsx +22 -0
- package/src/components/shared/Icons/radio-checked-icon.tsx +29 -0
- package/src/components/shared/Icons/radio-unchecked-icon.tsx +27 -0
- package/src/components/shared/Label/Label.spec.tsx +41 -0
- package/src/components/shared/Label/Label.tsx +46 -0
- package/src/components/shared/LabelDescription.tsx +22 -0
- package/src/components/shared/MDLabel/MDLabel.spec.tsx +145 -0
- package/src/components/shared/MDLabel/MDLabel.tsx +36 -0
- package/src/components/shared/MDLabel/MarkdownLink.tsx +43 -0
- package/src/components/shared/MDLabel/RouterLink.tsx +13 -0
- package/src/components/shared/Missing/Missing.spec.tsx +78 -0
- package/src/components/shared/Missing/Missing.tsx +128 -0
- package/src/components/shared/ModalControls/ModalControls.spec.tsx +69 -0
- package/src/components/shared/ModalControls/ModalControls.tsx +66 -0
- package/src/components/shared/Notification.tsx +25 -0
- package/src/components/shared/Radio/RadioGroup.tsx +80 -0
- package/src/components/shared/Radio/RadioOption.spec.tsx +76 -0
- package/src/components/shared/Radio/RadioOption.tsx +132 -0
- package/src/components/shared/Table/Table.spec.tsx +17 -0
- package/src/components/shared/Table/Table.tsx +48 -0
- package/src/components/shared/Table/TableHeader.tsx +24 -0
- package/src/components/shared/Table/Tbody.spec.tsx +24 -0
- package/src/components/shared/Table/Tbody.tsx +17 -0
- package/src/components/shared/Table/Td.spec.tsx +37 -0
- package/src/components/shared/Table/Td.tsx +28 -0
- package/src/components/shared/Table/Th.spec.tsx +38 -0
- package/src/components/shared/Table/Th.tsx +25 -0
- package/src/components/shared/Table/Thead.spec.tsx +13 -0
- package/src/components/shared/Table/Thead.tsx +17 -0
- package/src/components/shared/Table/Tr.spec.tsx +30 -0
- package/src/components/shared/Table/Tr.tsx +16 -0
- package/src/components/shared/Table/index.ts +7 -0
- package/src/components/type.ts +317 -0
- package/src/constants/component-types.ts +1 -0
- package/src/constants/declarations.ts +14 -0
- package/src/constants/event-types.ts +13 -0
- package/src/constants/index.ts +5 -0
- package/src/constants/indexedDBStore.ts +20 -0
- package/src/constants/supported-preferences.ts +10 -0
- package/src/constants/value-types.ts +5 -0
- package/src/constants/variable-types.ts +4 -0
- package/src/css/components/Button.scss +24 -0
- package/src/css/components/CheckboxGroup.scss +13 -0
- package/src/css/components/CheckboxOne.scss +19 -0
- package/src/css/components/CheckboxOption.scss +87 -0
- package/src/css/components/Combobox.scss +203 -0
- package/src/css/components/ComponentErrors.scss +5 -0
- package/src/css/components/Datepicker.scss +19 -0
- package/src/css/components/Declarations.scss +42 -0
- package/src/css/components/Dragger.scss +8 -0
- package/src/css/components/Dropdown.scss +38 -0
- package/src/css/components/Duration.scss +9 -0
- package/src/css/components/Fieldset.scss +5 -0
- package/src/css/components/IconButton.scss +38 -0
- package/src/css/components/Input.scss +42 -0
- package/src/css/components/InputNumber.scss +11 -0
- package/src/css/components/Label.scss +6 -0
- package/src/css/components/Missing.scss +27 -0
- package/src/css/components/ModalControls.scss +48 -0
- package/src/css/components/RosterForLoop.scss +39 -0
- package/src/css/components/Roundabout.scss +31 -0
- package/src/css/components/Sequence.scss +10 -0
- package/src/css/components/Suggester.scss +170 -0
- package/src/css/components/SuggesterWidget.scss +176 -0
- package/src/css/components/Table.scss +43 -0
- package/src/css/components/Textarea.scss +8 -0
- package/src/css/components/VariableStatus.scss +36 -0
- package/src/css/icons/alert-icon.svg +2 -0
- package/src/css/icons/wait-icon.svg +17 -0
- package/src/css/icons/warn-icon.svg +1 -0
- package/src/css/main.scss +183 -0
- package/src/hooks/use-auto-focus.ts +29 -0
- package/src/hooks/use-track-changes.ts +59 -0
- package/src/hooks/use-why-render.ts +14 -0
- package/src/hooks/useDebounce.ts +39 -0
- package/src/hooks/useDocumentEvent.ts +27 -0
- package/src/hooks/useKeyboardKey.ts +31 -0
- package/src/hooks/useListKeyboardHandler.ts +31 -0
- package/src/hooks/useRefSync.ts +10 -0
- package/src/i18n/build-dictionary.ts +52 -0
- package/src/i18n/dictionary.ts +39 -0
- package/src/i18n/index.ts +19 -0
- package/src/i18n/inputNumberProps.ts +10 -0
- package/src/index.ts +41 -0
- package/src/insee.d.ts +29 -0
- package/src/stories/accordion/accordion.stories.jsx +17 -0
- package/src/stories/accordion/source.json +48 -0
- package/src/stories/behaviour/cleaning/cleaning.stories.jsx +58 -0
- package/src/stories/behaviour/cleaning/source-loop.json +138 -0
- package/src/stories/behaviour/cleaning/source.json +152 -0
- package/src/stories/behaviour/controls/boucles-n.json +202 -0
- package/src/stories/behaviour/controls/controls.stories.jsx +81 -0
- package/src/stories/behaviour/controls/loop.json +141 -0
- package/src/stories/behaviour/controls/roundabout.json +114 -0
- package/src/stories/behaviour/controls/simple-numeric.json +1944 -0
- package/src/stories/behaviour/controls/simple.json +667 -0
- package/src/stories/behaviour/missing/missing.stories.jsx +60 -0
- package/src/stories/behaviour/missing/source.json +818 -0
- package/src/stories/behaviour/others/V2_DeclarationsSimples.json +964 -0
- package/src/stories/behaviour/others/V2_MinMaxSum_Boucles.json +509 -0
- package/src/stories/behaviour/others/V2_QuestSimple_Boucles.json +4347 -0
- package/src/stories/behaviour/others/V2_TCMRallyeGames.json +2892 -0
- package/src/stories/behaviour/others/test-dylan.json +558 -0
- package/src/stories/behaviour/others/test.stories.jsx +78 -0
- package/src/stories/behaviour/paste/source.json +36 -0
- package/src/stories/behaviour/paste/test.stories.jsx +52 -0
- package/src/stories/behaviour/performance/performance.stories.jsx +26 -0
- package/src/stories/behaviour/performance/source.json +179 -0
- package/src/stories/behaviour/resizing/resizing.stories.jsx +60 -0
- package/src/stories/behaviour/resizing/source-resizing-cleaning.json +173 -0
- package/src/stories/behaviour/resizing/source.json +789 -0
- package/src/stories/behaviour/slots.stories.jsx +32 -0
- package/src/stories/checkbox-boolean/checkboxBoolean.stories.jsx +17 -0
- package/src/stories/checkbox-boolean/source.json +58 -0
- package/src/stories/checkbox-group/checkbox-group.stories.jsx +58 -0
- package/src/stories/checkbox-group/source.json +403 -0
- package/src/stories/checkbox-group/sourceCondition.json +87 -0
- package/src/stories/checkbox-group/sourceDetail.json +310 -0
- package/src/stories/checkbox-group/sourceLoop.json +85 -0
- package/src/stories/checkbox-one/checkboxOne.stories.jsx +31 -0
- package/src/stories/checkbox-one/source.json +54 -0
- package/src/stories/checkbox-one/sourceDetail.json +78 -0
- package/src/stories/date-picker/data.json +3 -0
- package/src/stories/date-picker/datepicker.stories.jsx +26 -0
- package/src/stories/date-picker/source.json +65 -0
- package/src/stories/declaration/data.json +1 -0
- package/src/stories/declaration/input.stories.jsx +18 -0
- package/src/stories/declaration/source.json +86 -0
- package/src/stories/disabled/data.json +32 -0
- package/src/stories/disabled/disabled.stories.jsx +18 -0
- package/src/stories/disabled/source.json +383 -0
- package/src/stories/dropdown/data.json +16 -0
- package/src/stories/dropdown/dropdown.stories.jsx +25 -0
- package/src/stories/dropdown/source.json +141 -0
- package/src/stories/duration/duration.stories.jsx +25 -0
- package/src/stories/duration/mois.json +32 -0
- package/src/stories/duration/time.json +32 -0
- package/src/stories/filter-description/filter-description.stories.jsx +33 -0
- package/src/stories/filter-description/source-options.json +81 -0
- package/src/stories/filter-description/source.json +12 -0
- package/src/stories/input/data.json +1 -0
- package/src/stories/input/input.stories.jsx +18 -0
- package/src/stories/input/source.json +35 -0
- package/src/stories/input-number/input-number.stories.jsx +18 -0
- package/src/stories/input-number/source-euro.json +46 -0
- package/src/stories/input-number/source.json +32 -0
- package/src/stories/loop/loop.stories.jsx +29 -0
- package/src/stories/loop/roster-for-loop.stories.jsx +49 -0
- package/src/stories/loop/source-bloc.json +87 -0
- package/src/stories/loop/source-paginated.json +115 -0
- package/src/stories/loop/source-roster.json +115 -0
- package/src/stories/loop/source-with-header.json +136 -0
- package/src/stories/markdown/markdown.stories.jsx +20 -0
- package/src/stories/markdown/source.json +43 -0
- package/src/stories/overview/data.json +1 -0
- package/src/stories/overview/dataLoop.json +189 -0
- package/src/stories/overview/overview.stories.jsx +28 -0
- package/src/stories/overview/source.json +29 -0
- package/src/stories/overview/sourceLoop.json +1424 -0
- package/src/stories/overview/sourceWithHierarchy.json +6289 -0
- package/src/stories/pairwise/data.json +12 -0
- package/src/stories/pairwise/pairwise-links.stories.jsx +48 -0
- package/src/stories/pairwise/source.json +347 -0
- package/src/stories/question/question.stories.jsx +16 -0
- package/src/stories/question/source.json +212 -0
- package/src/stories/questionnaires/logement/data.json +2686 -0
- package/src/stories/questionnaires/logement/logement.stories.jsx +59 -0
- package/src/stories/questionnaires/logement/source-sequence.json +34175 -0
- package/src/stories/questionnaires/logement/source-sum.json +31800 -0
- package/src/stories/questionnaires/logement/source.json +34185 -0
- package/src/stories/questionnaires/recensement/data.json +12 -0
- package/src/stories/questionnaires/recensement/recensement.stories.jsx +35 -0
- package/src/stories/questionnaires/recensement/source.json +15190 -0
- package/src/stories/questionnaires/rp/data.json +5 -0
- package/src/stories/questionnaires/rp/rp.stories.jsx +23 -0
- package/src/stories/questionnaires/rp/source.json +262 -0
- package/src/stories/questionnaires/simpsons/simpsons.stories.jsx +246 -0
- package/src/stories/questionnaires/simpsons/source.json +5078 -0
- package/src/stories/radio/radio.stories.jsx +38 -0
- package/src/stories/radio/source.json +51 -0
- package/src/stories/radio/sourceCondition.json +75 -0
- package/src/stories/radio/sourceDetail.json +97 -0
- package/src/stories/radio/sourceHorizontal.json +42 -0
- package/src/stories/roundabout/data1.json +25 -0
- package/src/stories/roundabout/data2.json +32 -0
- package/src/stories/roundabout/roundabout.stories.jsx +32 -0
- package/src/stories/roundabout/source.json +294 -0
- package/src/stories/sequence/sequence.stories.jsx +29 -0
- package/src/stories/sequence/source-declarations.json +43 -0
- package/src/stories/sequence/source.json +21 -0
- package/src/stories/suggester/fakeReferentiel.json +12 -0
- package/src/stories/suggester/source-arbitrary-response.json +178 -0
- package/src/stories/suggester/source-error.json +155 -0
- package/src/stories/suggester/source-multiline.json +338 -0
- package/src/stories/suggester/source-option-responses.json +156 -0
- package/src/stories/suggester/source.json +425 -0
- package/src/stories/suggester/suggester.stories.jsx +71 -0
- package/src/stories/summary/data.json +32 -0
- package/src/stories/summary/source.json +370 -0
- package/src/stories/summary/summary.stories.jsx +23 -0
- package/src/stories/switch/README.md +29 -0
- package/src/stories/switch/data-forced.json +48 -0
- package/src/stories/switch/source.json +80 -0
- package/src/stories/switch/switch.stories.jsx +17 -0
- package/src/stories/table/data.json +1 -0
- package/src/stories/table/source-colspan.json +315 -0
- package/src/stories/table/source.json +34 -0
- package/src/stories/table/table-dynamique.json +66 -0
- package/src/stories/table/table.stories.jsx +30 -0
- package/src/stories/text/data-roster.json +5 -0
- package/src/stories/text/source-roster.json +187 -0
- package/src/stories/text/source-table.json +293 -0
- package/src/stories/text/source.json +14 -0
- package/src/stories/text/text.stories.jsx +20 -0
- package/src/stories/textarea/data.json +1 -0
- package/src/stories/textarea/source.json +36 -0
- package/src/stories/textarea/textarea.stories.jsx +18 -0
- package/src/stories/utils/SchemaValidator.jsx +40 -0
- package/src/stories/utils/custom-lunatic.scss +28 -0
- package/src/stories/utils/default-arg-types.js +28 -0
- package/src/stories/utils/options.js +19 -0
- package/src/stories/utils/orchestrator.jsx +260 -0
- package/src/stories/utils/orchestrator.scss +64 -0
- package/src/stories/utils/overview.jsx +39 -0
- package/src/stories/utils/overview.scss +38 -0
- package/src/stories/utils/referentiel.js +7 -0
- package/src/test.d.ts +8 -0
- package/src/tests/setup.ts +20 -0
- package/src/tests/utils/e2e.js +91 -0
- package/src/tests/utils/lunatic.ts +37 -0
- package/src/tests/utils/timer.ts +3 -0
- package/src/type.source.ts +468 -0
- package/src/type.utils.ts +8 -0
- package/src/use-lunatic/__snapshots__/use-lunatic.test.ts.snap +2502 -0
- package/src/use-lunatic/actions.ts +72 -0
- package/src/use-lunatic/commons/check-loops.ts +95 -0
- package/src/use-lunatic/commons/check-pager.ts +20 -0
- package/src/use-lunatic/commons/compile-controls.ts +231 -0
- package/src/use-lunatic/commons/component.ts +47 -0
- package/src/use-lunatic/commons/create-map-pages.ts +83 -0
- package/src/use-lunatic/commons/execute-condition-filter.ts +17 -0
- package/src/use-lunatic/commons/fill-components/fill-component-expressions.spec.ts +88 -0
- package/src/use-lunatic/commons/fill-components/fill-component-expressions.ts +205 -0
- package/src/use-lunatic/commons/fill-components/fill-components.ts +75 -0
- package/src/use-lunatic/commons/get-compatible-vtl-expression.ts +23 -0
- package/src/use-lunatic/commons/get-components-from-state.ts +25 -0
- package/src/use-lunatic/commons/is-First-last-page.ts +10 -0
- package/src/use-lunatic/commons/is-paginated-loop.ts +12 -0
- package/src/use-lunatic/commons/is-roundabout.ts +8 -0
- package/src/use-lunatic/commons/page-navigation.spec.ts +140 -0
- package/src/use-lunatic/commons/page-navigation.ts +126 -0
- package/src/use-lunatic/commons/page-tag.spec.ts +43 -0
- package/src/use-lunatic/commons/page-tag.ts +78 -0
- package/src/use-lunatic/commons/page.ts +47 -0
- package/src/use-lunatic/commons/variables/behaviours/cleaning-behaviour.ts +73 -0
- package/src/use-lunatic/commons/variables/behaviours/missing-behaviour.ts +36 -0
- package/src/use-lunatic/commons/variables/behaviours/resizing-behaviour.ts +89 -0
- package/src/use-lunatic/commons/variables/errors.ts +35 -0
- package/src/use-lunatic/commons/variables/get-questionnaire-data.ts +73 -0
- package/src/use-lunatic/commons/variables/lunatic-variables-store.spec.ts +492 -0
- package/src/use-lunatic/commons/variables/lunatic-variables-store.ts +493 -0
- package/src/use-lunatic/hooks/use-loop-variables.ts +23 -0
- package/src/use-lunatic/hooks/use-page-has-response.ts +122 -0
- package/src/use-lunatic/hooks/useOverview.ts +152 -0
- package/src/use-lunatic/hooks/useWarnDepChange.ts +22 -0
- package/src/use-lunatic/logger/ConsoleLogger.ts +13 -0
- package/src/use-lunatic/logger/type.ts +11 -0
- package/src/use-lunatic/lunatic-context.tsx +78 -0
- package/src/use-lunatic/props/getComponentTypeProps.ts +230 -0
- package/src/use-lunatic/props/propIterations.ts +51 -0
- package/src/use-lunatic/props/propMissingResponse.ts +28 -0
- package/src/use-lunatic/props/propOptions.spec.ts +98 -0
- package/src/use-lunatic/props/propOptions.ts +99 -0
- package/src/use-lunatic/props/propValue.spec.ts +67 -0
- package/src/use-lunatic/props/propValue.ts +40 -0
- package/src/use-lunatic/reducer/commons/auto-explore-loop.ts +68 -0
- package/src/use-lunatic/reducer/commons/resize-array-variable.ts +28 -0
- package/src/use-lunatic/reducer/commons/validate-condition-filter.ts +21 -0
- package/src/use-lunatic/reducer/controls/check-base-control.ts +47 -0
- package/src/use-lunatic/reducer/controls/check-roundabout-control.ts +40 -0
- package/src/use-lunatic/reducer/overview/overviewOnInit.ts +74 -0
- package/src/use-lunatic/reducer/reduce-go-next-page.ts +72 -0
- package/src/use-lunatic/reducer/reduce-go-previous-page.ts +39 -0
- package/src/use-lunatic/reducer/reduce-go-to-page.ts +69 -0
- package/src/use-lunatic/reducer/reduce-handle-changes.ts +33 -0
- package/src/use-lunatic/reducer/reducer.ts +24 -0
- package/src/use-lunatic/reducer/reducerInitializer.tsx +178 -0
- package/src/use-lunatic/replace-component-sequence.ts +25 -0
- package/src/use-lunatic/type.ts +212 -0
- package/src/use-lunatic/use-lunatic.test.ts +368 -0
- package/src/use-lunatic/use-lunatic.ts +221 -0
- package/src/utils/array.spec.ts +48 -0
- package/src/utils/array.ts +130 -0
- package/src/utils/constants/alphabet.ts +1 -0
- package/src/utils/constants/features.ts +4 -0
- package/src/utils/constants/links.ts +2 -0
- package/src/utils/constants/missing.ts +2 -0
- package/src/utils/constants/variable-status.ts +5 -0
- package/src/utils/constants/variable-types.ts +1 -0
- package/src/utils/dom.ts +33 -0
- package/src/utils/env.ts +11 -0
- package/src/utils/function.ts +32 -0
- package/src/utils/is-element.ts +7 -0
- package/src/utils/is-object.ts +6 -0
- package/src/utils/logger.ts +17 -0
- package/src/utils/number.spec.ts +10 -0
- package/src/utils/number.ts +33 -0
- package/src/utils/object.ts +35 -0
- package/src/utils/search/SearchInterface.ts +17 -0
- package/src/utils/search/SearchMinisearch.ts +54 -0
- package/src/utils/search/SuggestersDatabase.ts +46 -0
- package/src/utils/search/melauto.ts +48 -0
- package/src/utils/search/tokenizer.ts +77 -0
- package/src/utils/to-number.ts +12 -0
- package/src/utils/variables.spec.ts +94 -0
- package/src/utils/variables.ts +24 -0
- package/src/utils/vtl.ts +116 -0
- package/tests/setup.js +20 -0
- package/tests/setup.js.map +1 -0
- package/tests/utils/lunatic.js +35 -0
- package/tests/utils/lunatic.js.map +1 -0
- package/tests/utils/timer.js +7 -0
- package/tests/utils/timer.js.map +1 -0
- package/type.source.js +8 -0
- package/type.source.js.map +1 -0
- package/type.utils.js +3 -0
- package/type.utils.js.map +1 -0
- package/use-lunatic/actions.js +31 -0
- package/use-lunatic/actions.js.map +1 -0
- package/use-lunatic/commons/check-loops.js +68 -0
- package/use-lunatic/commons/check-loops.js.map +1 -0
- package/use-lunatic/commons/check-pager.js +20 -0
- package/use-lunatic/commons/check-pager.js.map +1 -0
- package/use-lunatic/commons/compile-controls.js +157 -0
- package/use-lunatic/commons/compile-controls.js.map +1 -0
- package/use-lunatic/commons/component.js +28 -0
- package/use-lunatic/commons/component.js.map +1 -0
- package/use-lunatic/commons/create-map-pages.js +63 -0
- package/use-lunatic/commons/create-map-pages.js.map +1 -0
- package/use-lunatic/commons/execute-condition-filter.js +13 -0
- package/use-lunatic/commons/execute-condition-filter.js.map +1 -0
- package/use-lunatic/commons/fill-components/fill-component-expressions.js +151 -0
- package/use-lunatic/commons/fill-components/fill-component-expressions.js.map +1 -0
- package/use-lunatic/commons/fill-components/fill-component-expressions.spec.js +85 -0
- package/use-lunatic/commons/fill-components/fill-component-expressions.spec.js.map +1 -0
- package/use-lunatic/commons/fill-components/fill-components.js +46 -0
- package/use-lunatic/commons/fill-components/fill-components.js.map +1 -0
- package/use-lunatic/commons/get-compatible-vtl-expression.js +21 -0
- package/use-lunatic/commons/get-compatible-vtl-expression.js.map +1 -0
- package/use-lunatic/commons/get-components-from-state.js +25 -0
- package/use-lunatic/commons/get-components-from-state.js.map +1 -0
- package/use-lunatic/commons/index.d.ts +6 -0
- package/use-lunatic/commons/index.js +21 -0
- package/use-lunatic/commons/index.js.map +1 -0
- package/use-lunatic/commons/is-First-last-page.js +10 -0
- package/use-lunatic/commons/is-First-last-page.js.map +1 -0
- package/use-lunatic/commons/is-paginated-loop.js +7 -0
- package/use-lunatic/commons/is-paginated-loop.js.map +1 -0
- package/use-lunatic/commons/is-roundabout.js +8 -0
- package/use-lunatic/commons/is-roundabout.js.map +1 -0
- package/use-lunatic/commons/page-navigation.js +99 -0
- package/use-lunatic/commons/page-navigation.js.map +1 -0
- package/use-lunatic/commons/page-navigation.spec.js +138 -0
- package/use-lunatic/commons/page-navigation.spec.js.map +1 -0
- package/use-lunatic/commons/page-tag.js +62 -0
- package/use-lunatic/commons/page-tag.js.map +1 -0
- package/use-lunatic/commons/page-tag.spec.js +40 -0
- package/use-lunatic/commons/page-tag.spec.js.map +1 -0
- package/use-lunatic/commons/page.js +43 -0
- package/use-lunatic/commons/page.js.map +1 -0
- package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +58 -0
- package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +1 -0
- package/use-lunatic/commons/variables/behaviours/missing-behaviour.js +29 -0
- package/use-lunatic/commons/variables/behaviours/missing-behaviour.js.map +1 -0
- package/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +65 -0
- package/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +1 -0
- package/use-lunatic/commons/variables/errors.js +42 -0
- package/use-lunatic/commons/variables/errors.js.map +1 -0
- package/use-lunatic/commons/variables/get-questionnaire-data.js +56 -0
- package/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -0
- package/use-lunatic/commons/variables/lunatic-variables-store.js +361 -0
- package/use-lunatic/commons/variables/lunatic-variables-store.js.map +1 -0
- package/use-lunatic/commons/variables/lunatic-variables-store.spec.js +440 -0
- package/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -0
- package/use-lunatic/hooks/use-loop-variables.js +20 -0
- package/use-lunatic/hooks/use-loop-variables.js.map +1 -0
- package/use-lunatic/hooks/use-page-has-response.js +90 -0
- package/use-lunatic/hooks/use-page-has-response.js.map +1 -0
- package/use-lunatic/hooks/useOverview.js +95 -0
- package/use-lunatic/hooks/useOverview.js.map +1 -0
- package/use-lunatic/hooks/useWarnDepChange.js +20 -0
- package/use-lunatic/hooks/useWarnDepChange.js.map +1 -0
- package/use-lunatic/logger/ConsoleLogger.js +16 -0
- package/use-lunatic/logger/ConsoleLogger.js.map +1 -0
- package/use-lunatic/logger/type.js +3 -0
- package/use-lunatic/logger/type.js.map +1 -0
- package/use-lunatic/lunatic-context.js +53 -0
- package/use-lunatic/lunatic-context.js.map +1 -0
- package/use-lunatic/props/getComponentTypeProps.d.ts +291 -0
- package/use-lunatic/props/getComponentTypeProps.js +167 -0
- package/use-lunatic/props/getComponentTypeProps.js.map +1 -0
- package/use-lunatic/props/propIterations.js +29 -0
- package/use-lunatic/props/propIterations.js.map +1 -0
- package/use-lunatic/props/propMissingResponse.js +16 -0
- package/use-lunatic/props/propMissingResponse.js.map +1 -0
- package/use-lunatic/props/propOptions.js +72 -0
- package/use-lunatic/props/propOptions.js.map +1 -0
- package/use-lunatic/props/propOptions.spec.js +59 -0
- package/use-lunatic/props/propOptions.spec.js.map +1 -0
- package/use-lunatic/props/propValue.js +31 -0
- package/use-lunatic/props/propValue.js.map +1 -0
- package/use-lunatic/props/propValue.spec.js +56 -0
- package/use-lunatic/props/propValue.spec.js.map +1 -0
- package/use-lunatic/reducer/commons/auto-explore-loop.js +55 -0
- package/use-lunatic/reducer/commons/auto-explore-loop.js.map +1 -0
- package/use-lunatic/reducer/commons/index.d.ts +2 -0
- package/use-lunatic/reducer/commons/index.js +24 -0
- package/use-lunatic/reducer/commons/index.js.map +1 -0
- package/use-lunatic/reducer/commons/resize-array-variable.js +23 -0
- package/use-lunatic/reducer/commons/resize-array-variable.js.map +1 -0
- package/use-lunatic/reducer/commons/validate-condition-filter.js +14 -0
- package/use-lunatic/reducer/commons/validate-condition-filter.js.map +1 -0
- package/use-lunatic/reducer/controls/check-base-control.js +38 -0
- package/use-lunatic/reducer/controls/check-base-control.js.map +1 -0
- package/use-lunatic/reducer/controls/check-roundabout-control.js +25 -0
- package/use-lunatic/reducer/controls/check-roundabout-control.js.map +1 -0
- package/use-lunatic/reducer/overview/overviewOnInit.js +53 -0
- package/use-lunatic/reducer/overview/overviewOnInit.js.map +1 -0
- package/use-lunatic/reducer/reduce-go-next-page.js +64 -0
- package/use-lunatic/reducer/reduce-go-next-page.js.map +1 -0
- package/use-lunatic/reducer/reduce-go-previous-page.js +33 -0
- package/use-lunatic/reducer/reduce-go-previous-page.js.map +1 -0
- package/use-lunatic/reducer/reduce-go-to-page.js +57 -0
- package/use-lunatic/reducer/reduce-go-to-page.js.map +1 -0
- package/use-lunatic/reducer/reduce-handle-changes.js +29 -0
- package/use-lunatic/reducer/reduce-handle-changes.js.map +1 -0
- package/use-lunatic/reducer/reducer.js +23 -0
- package/use-lunatic/reducer/reducer.js.map +1 -0
- package/use-lunatic/reducer/reducerInitializer.js +131 -0
- package/use-lunatic/reducer/reducerInitializer.js.map +1 -0
- package/use-lunatic/replace-component-sequence.d.ts +36 -0
- package/use-lunatic/replace-component-sequence.js +22 -0
- package/use-lunatic/replace-component-sequence.js.map +1 -0
- package/use-lunatic/type.js +3 -0
- package/use-lunatic/type.js.map +1 -0
- package/use-lunatic/use-lunatic.js +146 -0
- package/use-lunatic/use-lunatic.js.map +1 -0
- package/utils/array.js +117 -0
- package/utils/array.js.map +1 -0
- package/utils/array.spec.js +44 -0
- package/utils/array.spec.js.map +1 -0
- package/utils/constants/alphabet.js +5 -0
- package/utils/constants/alphabet.js.map +1 -0
- package/utils/constants/features.js +8 -0
- package/utils/constants/features.js.map +1 -0
- package/utils/constants/index.d.ts +5 -0
- package/utils/constants/index.js +22 -0
- package/utils/constants/index.js.map +1 -0
- package/utils/constants/links.js +6 -0
- package/utils/constants/links.js.map +1 -0
- package/utils/constants/missing.js +6 -0
- package/utils/constants/missing.js.map +1 -0
- package/utils/constants/variable-status.js +9 -0
- package/utils/constants/variable-status.js.map +1 -0
- package/utils/constants/variable-types.js +5 -0
- package/utils/constants/variable-types.js.map +1 -0
- package/utils/dom.js +27 -0
- package/utils/dom.js.map +1 -0
- package/utils/env.js +16 -0
- package/utils/env.js.map +1 -0
- package/utils/function.js +28 -0
- package/utils/function.js.map +1 -0
- package/utils/is-element.js +8 -0
- package/utils/is-element.js.map +1 -0
- package/utils/is-object.js +10 -0
- package/utils/is-object.js.map +1 -0
- package/utils/logger.js +19 -0
- package/utils/logger.js.map +1 -0
- package/utils/number.js +37 -0
- package/utils/number.js.map +1 -0
- package/utils/number.spec.js +12 -0
- package/utils/number.spec.js.map +1 -0
- package/utils/object.js +31 -0
- package/utils/object.js.map +1 -0
- package/utils/search/SearchInterface.js +3 -0
- package/utils/search/SearchInterface.js.map +1 -0
- package/utils/search/SearchMinisearch.js +47 -0
- package/utils/search/SearchMinisearch.js.map +1 -0
- package/utils/search/SuggestersDatabase.js +42 -0
- package/utils/search/SuggestersDatabase.js.map +1 -0
- package/utils/search/melauto.js +45 -0
- package/utils/search/melauto.js.map +1 -0
- package/utils/search/tokenizer.js +63 -0
- package/utils/search/tokenizer.js.map +1 -0
- package/utils/to-number.js +16 -0
- package/utils/to-number.js.map +1 -0
- package/utils/variables.js +23 -0
- package/utils/variables.js.map +1 -0
- package/utils/variables.spec.js +85 -0
- package/utils/variables.spec.js.map +1 -0
- package/utils/vtl.js +103 -0
- package/utils/vtl.js.map +1 -0
- package/lib/components/Accordion/Accordion.js +0 -6
- package/lib/components/Accordion/Accordion.js.map +0 -1
- package/lib/components/CheckboxBoolean/CheckboxBoolean.js +0 -19
- package/lib/components/CheckboxBoolean/CheckboxBoolean.js.map +0 -1
- package/lib/components/CheckboxBoolean/CheckboxBoolean.spec.js +0 -37
- package/lib/components/CheckboxBoolean/CheckboxBoolean.spec.js.map +0 -1
- package/lib/components/CheckboxGroup/CheckboxGroup.js +0 -7
- package/lib/components/CheckboxGroup/CheckboxGroup.js.map +0 -1
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.js +0 -16
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.js.map +0 -1
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js +0 -45
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js.map +0 -1
- package/lib/components/CheckboxOne/CheckboxOne.js +0 -10
- package/lib/components/CheckboxOne/CheckboxOne.js.map +0 -1
- package/lib/components/CheckboxOne/CheckboxOne.spec.js +0 -24
- package/lib/components/CheckboxOne/CheckboxOne.spec.js.map +0 -1
- package/lib/components/Datepicker/Datepicker.js +0 -66
- package/lib/components/Datepicker/Datepicker.js.map +0 -1
- package/lib/components/Datepicker/Datepicker.spec.js +0 -75
- package/lib/components/Datepicker/Datepicker.spec.js.map +0 -1
- package/lib/components/Datepicker/DatepickerField.js +0 -13
- package/lib/components/Datepicker/DatepickerField.js.map +0 -1
- package/lib/components/Dropdown/Dropdown.js +0 -15
- package/lib/components/Dropdown/Dropdown.js.map +0 -1
- package/lib/components/Dropdown/Dropdown.spec.js +0 -38
- package/lib/components/Dropdown/Dropdown.spec.js.map +0 -1
- package/lib/components/Dropdown/renderer/SimpleLabelRenderer.js +0 -19
- package/lib/components/Dropdown/renderer/SimpleLabelRenderer.js.map +0 -1
- package/lib/components/Dropdown/renderer/SimpleOptionRenderer.js +0 -10
- package/lib/components/Dropdown/renderer/SimpleOptionRenderer.js.map +0 -1
- package/lib/components/Duration/Duration.js +0 -31
- package/lib/components/Duration/Duration.js.map +0 -1
- package/lib/components/Duration/durationUtils.js +0 -26
- package/lib/components/Duration/durationUtils.js.map +0 -1
- package/lib/components/Duration/formatDuration.js +0 -18
- package/lib/components/Duration/formatDuration.js.map +0 -1
- package/lib/components/Duration/formatDuration.spec.js +0 -16
- package/lib/components/Duration/formatDuration.spec.js.map +0 -1
- package/lib/components/Duration/getDurationFromValue.js +0 -37
- package/lib/components/Duration/getDurationFromValue.js.map +0 -1
- package/lib/components/FilterDescription/FilterDescription.js +0 -4
- package/lib/components/FilterDescription/FilterDescription.js.map +0 -1
- package/lib/components/FilterDescription/FilterDescription.spec.js +0 -16
- package/lib/components/FilterDescription/FilterDescription.spec.js.map +0 -1
- package/lib/components/Input/Input.js +0 -15
- package/lib/components/Input/Input.js.map +0 -1
- package/lib/components/Input/Input.spec.js +0 -52
- package/lib/components/Input/Input.spec.js.map +0 -1
- package/lib/components/InputNumber/InputNumber.js +0 -15
- package/lib/components/InputNumber/InputNumber.js.map +0 -1
- package/lib/components/InputNumber/InputNumber.spec.js +0 -76
- package/lib/components/InputNumber/InputNumber.spec.js.map +0 -1
- package/lib/components/InputNumber/InputNumberThousand.js +0 -19
- package/lib/components/InputNumber/InputNumberThousand.js.map +0 -1
- package/lib/components/Loop/Loop.js +0 -55
- package/lib/components/Loop/Loop.js.map +0 -1
- package/lib/components/Loop/constant.js +0 -10
- package/lib/components/Loop/constant.js.map +0 -1
- package/lib/components/LunaticComponents.js +0 -82
- package/lib/components/LunaticComponents.js.map +0 -1
- package/lib/components/PairwiseLinks/PairwiseLinks.js +0 -42
- package/lib/components/PairwiseLinks/PairwiseLinks.js.map +0 -1
- package/lib/components/Question/Question.js +0 -21
- package/lib/components/Question/Question.js.map +0 -1
- package/lib/components/Radio/Radio.js +0 -10
- package/lib/components/Radio/Radio.js.map +0 -1
- package/lib/components/RosterForLoop/RosterForLoop.js +0 -62
- package/lib/components/RosterForLoop/RosterForLoop.js.map +0 -1
- package/lib/components/RosterForLoop/RosterForLoop.spec.js +0 -28
- package/lib/components/RosterForLoop/RosterForLoop.spec.js.map +0 -1
- package/lib/components/Roundabout/CustomRoundabout.js +0 -31
- package/lib/components/Roundabout/CustomRoundabout.js.map +0 -1
- package/lib/components/Roundabout/Roundabout.js +0 -28
- package/lib/components/Roundabout/Roundabout.js.map +0 -1
- package/lib/components/Roundabout/roundabout.spec.js +0 -47
- package/lib/components/Roundabout/roundabout.spec.js.map +0 -1
- package/lib/components/Sequence/Sequence.js +0 -9
- package/lib/components/Sequence/Sequence.js.map +0 -1
- package/lib/components/Subsequence/Subsequence.js +0 -8
- package/lib/components/Subsequence/Subsequence.js.map +0 -1
- package/lib/components/Subsequence/Subsequence.spec.js +0 -42
- package/lib/components/Subsequence/Subsequence.spec.js.map +0 -1
- package/lib/components/Suggester/CustomSuggester.js +0 -18
- package/lib/components/Suggester/CustomSuggester.js.map +0 -1
- package/lib/components/Suggester/Suggester.js +0 -103
- package/lib/components/Suggester/Suggester.js.map +0 -1
- package/lib/components/Suggester/SuggesterNotification.js +0 -16
- package/lib/components/Suggester/SuggesterNotification.js.map +0 -1
- package/lib/components/Suggester/SuggesterType.js +0 -2
- package/lib/components/Suggester/SuggesterType.js.map +0 -1
- package/lib/components/Suggester/useSuggestions.js +0 -86
- package/lib/components/Suggester/useSuggestions.js.map +0 -1
- package/lib/components/Summary/Summary.js +0 -66
- package/lib/components/Summary/Summary.js.map +0 -1
- package/lib/components/Switch/Switch.js +0 -31
- package/lib/components/Switch/Switch.js.map +0 -1
- package/lib/components/Table/Table.js +0 -9
- package/lib/components/Table/Table.js.map +0 -1
- package/lib/components/Text/Text.js +0 -4
- package/lib/components/Text/Text.js.map +0 -1
- package/lib/components/Textarea/Textarea.js +0 -14
- package/lib/components/Textarea/Textarea.js.map +0 -1
- package/lib/components/Textarea/Textarea.spec.js +0 -31
- package/lib/components/Textarea/Textarea.spec.js.map +0 -1
- package/lib/components/library.js +0 -52
- package/lib/components/library.js.map +0 -1
- package/lib/components/shared/Button/Button.js +0 -14
- package/lib/components/shared/Button/Button.js.map +0 -1
- package/lib/components/shared/Button/Button.spec.js +0 -51
- package/lib/components/shared/Button/Button.spec.js.map +0 -1
- package/lib/components/shared/Button/IconButton.js +0 -7
- package/lib/components/shared/Button/IconButton.js.map +0 -1
- package/lib/components/shared/Button/IconButton.spec.js +0 -53
- package/lib/components/shared/Button/IconButton.spec.js.map +0 -1
- package/lib/components/shared/Checkbox/CheckboxOption.js +0 -27
- package/lib/components/shared/Checkbox/CheckboxOption.js.map +0 -1
- package/lib/components/shared/Checkbox/CheckboxOption.spec.js +0 -52
- package/lib/components/shared/Checkbox/CheckboxOption.spec.js.map +0 -1
- package/lib/components/shared/Checkbox/getShortcutKey.js +0 -3
- package/lib/components/shared/Checkbox/getShortcutKey.js.map +0 -1
- package/lib/components/shared/Combobox/Combobox.js +0 -97
- package/lib/components/shared/Combobox/Combobox.js.map +0 -1
- package/lib/components/shared/Combobox/Combobox.stories.js +0 -46
- package/lib/components/shared/Combobox/Combobox.stories.js.map +0 -1
- package/lib/components/shared/Combobox/ComboboxContainer.js +0 -6
- package/lib/components/shared/Combobox/ComboboxContainer.js.map +0 -1
- package/lib/components/shared/Combobox/ComboboxContainer.spec.js +0 -24
- package/lib/components/shared/Combobox/ComboboxContainer.spec.js.map +0 -1
- package/lib/components/shared/Combobox/ComboboxContent.js +0 -33
- package/lib/components/shared/Combobox/ComboboxContent.js.map +0 -1
- package/lib/components/shared/Combobox/ComboboxContentBox.js +0 -8
- package/lib/components/shared/Combobox/ComboboxContentBox.js.map +0 -1
- package/lib/components/shared/Combobox/ComboboxType.js +0 -2
- package/lib/components/shared/Combobox/ComboboxType.js.map +0 -1
- package/lib/components/shared/Combobox/Panel/ComboboxOption.js +0 -15
- package/lib/components/shared/Combobox/Panel/ComboboxOption.js.map +0 -1
- package/lib/components/shared/Combobox/Panel/ComboboxOption.spec.js +0 -33
- package/lib/components/shared/Combobox/Panel/ComboboxOption.spec.js.map +0 -1
- package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.js +0 -36
- package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.js.map +0 -1
- package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.spec.js +0 -18
- package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.spec.js.map +0 -1
- package/lib/components/shared/Combobox/Panel/ComboboxPanel.js +0 -27
- package/lib/components/shared/Combobox/Panel/ComboboxPanel.js.map +0 -1
- package/lib/components/shared/Combobox/Panel/ComboboxPanel.spec.js +0 -57
- package/lib/components/shared/Combobox/Panel/ComboboxPanel.spec.js.map +0 -1
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.js +0 -9
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.js.map +0 -1
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.spec.js +0 -31
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.spec.js.map +0 -1
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.js +0 -28
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.js.map +0 -1
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.spec.js +0 -53
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.spec.js.map +0 -1
- package/lib/components/shared/Combobox/Selection/ComboboxInput.js +0 -21
- package/lib/components/shared/Combobox/Selection/ComboboxInput.js.map +0 -1
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.js +0 -31
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.js.map +0 -1
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.spec.js +0 -27
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.spec.js.map +0 -1
- package/lib/components/shared/Combobox/Selection/ComboboxSelection.js +0 -18
- package/lib/components/shared/Combobox/Selection/ComboboxSelection.js.map +0 -1
- package/lib/components/shared/Combobox/Selection/ComboboxSelection.spec.js +0 -36
- package/lib/components/shared/Combobox/Selection/ComboboxSelection.spec.js.map +0 -1
- package/lib/components/shared/Combobox/constants.js +0 -10
- package/lib/components/shared/Combobox/constants.js.map +0 -1
- package/lib/components/shared/Combobox/index.js.map +0 -1
- package/lib/components/shared/ComponentErrors/ComponentErrors.js +0 -24
- package/lib/components/shared/ComponentErrors/ComponentErrors.js.map +0 -1
- package/lib/components/shared/ComponentErrors/ComponentErrors.spec.js +0 -40
- package/lib/components/shared/ComponentErrors/ComponentErrors.spec.js.map +0 -1
- package/lib/components/shared/ComponentWrapper.js +0 -29
- package/lib/components/shared/ComponentWrapper.js.map +0 -1
- package/lib/components/shared/Declarations/Declarations.js +0 -14
- package/lib/components/shared/Declarations/Declarations.js.map +0 -1
- package/lib/components/shared/Declarations/Declarations.spec.js +0 -66
- package/lib/components/shared/Declarations/Declarations.spec.js.map +0 -1
- package/lib/components/shared/Fieldset/Fieldset.js +0 -29
- package/lib/components/shared/Fieldset/Fieldset.js.map +0 -1
- package/lib/components/shared/Fieldset/Fieldset.spec.js +0 -25
- package/lib/components/shared/Fieldset/Fieldset.spec.js.map +0 -1
- package/lib/components/shared/HOC/slottableComponent.js +0 -30
- package/lib/components/shared/HOC/slottableComponent.js.map +0 -1
- package/lib/components/shared/Icons/checkbox-checked-icon.js +0 -7
- package/lib/components/shared/Icons/checkbox-checked-icon.js.map +0 -1
- package/lib/components/shared/Icons/checkbox-disabled-icon.js +0 -7
- package/lib/components/shared/Icons/checkbox-disabled-icon.js.map +0 -1
- package/lib/components/shared/Icons/checkbox-unchecked-icon.js +0 -7
- package/lib/components/shared/Icons/checkbox-unchecked-icon.js.map +0 -1
- package/lib/components/shared/Icons/closed-icon.js +0 -7
- package/lib/components/shared/Icons/closed-icon.js.map +0 -1
- package/lib/components/shared/Icons/cross-icon.js +0 -7
- package/lib/components/shared/Icons/cross-icon.js.map +0 -1
- package/lib/components/shared/Icons/icon-props.js +0 -2
- package/lib/components/shared/Icons/icon-props.js.map +0 -1
- package/lib/components/shared/Icons/index.js +0 -11
- package/lib/components/shared/Icons/index.js.map +0 -1
- package/lib/components/shared/Icons/load-icon.js +0 -7
- package/lib/components/shared/Icons/load-icon.js.map +0 -1
- package/lib/components/shared/Icons/lunatic-icon.js +0 -7
- package/lib/components/shared/Icons/lunatic-icon.js.map +0 -1
- package/lib/components/shared/Icons/network-icon.js +0 -7
- package/lib/components/shared/Icons/network-icon.js.map +0 -1
- package/lib/components/shared/Icons/on-drag-icon.js +0 -7
- package/lib/components/shared/Icons/on-drag-icon.js.map +0 -1
- package/lib/components/shared/Icons/opened-icon.js +0 -7
- package/lib/components/shared/Icons/opened-icon.js.map +0 -1
- package/lib/components/shared/Icons/radio-checked-icon.js +0 -8
- package/lib/components/shared/Icons/radio-checked-icon.js.map +0 -1
- package/lib/components/shared/Icons/radio-unchecked-icon.js +0 -7
- package/lib/components/shared/Icons/radio-unchecked-icon.js.map +0 -1
- package/lib/components/shared/Label/Label.js +0 -16
- package/lib/components/shared/Label/Label.js.map +0 -1
- package/lib/components/shared/Label/Label.spec.js +0 -19
- package/lib/components/shared/Label/Label.spec.js.map +0 -1
- package/lib/components/shared/LabelDescription.js +0 -11
- package/lib/components/shared/LabelDescription.js.map +0 -1
- package/lib/components/shared/MDLabel/MDLabel.js +0 -20
- package/lib/components/shared/MDLabel/MDLabel.js.map +0 -1
- package/lib/components/shared/MDLabel/MDLabel.spec.js +0 -107
- package/lib/components/shared/MDLabel/MDLabel.spec.js.map +0 -1
- package/lib/components/shared/MDLabel/MarkdownLink.js +0 -14
- package/lib/components/shared/MDLabel/MarkdownLink.js.map +0 -1
- package/lib/components/shared/MDLabel/RouterLink.js +0 -7
- package/lib/components/shared/MDLabel/RouterLink.js.map +0 -1
- package/lib/components/shared/Missing/Missing.js +0 -51
- package/lib/components/shared/Missing/Missing.js.map +0 -1
- package/lib/components/shared/Missing/Missing.spec.js +0 -45
- package/lib/components/shared/Missing/Missing.spec.js.map +0 -1
- package/lib/components/shared/ModalControls/ModalControls.js +0 -30
- package/lib/components/shared/ModalControls/ModalControls.js.map +0 -1
- package/lib/components/shared/ModalControls/ModalControls.spec.js +0 -61
- package/lib/components/shared/ModalControls/ModalControls.spec.js.map +0 -1
- package/lib/components/shared/Notification.js +0 -9
- package/lib/components/shared/Notification.js.map +0 -1
- package/lib/components/shared/Radio/RadioGroup.js +0 -23
- package/lib/components/shared/Radio/RadioGroup.js.map +0 -1
- package/lib/components/shared/Radio/RadioOption.js +0 -37
- package/lib/components/shared/Radio/RadioOption.js.map +0 -1
- package/lib/components/shared/Radio/RadioOption.spec.js +0 -46
- package/lib/components/shared/Radio/RadioOption.spec.js.map +0 -1
- package/lib/components/shared/Table/Table.js +0 -14
- package/lib/components/shared/Table/Table.js.map +0 -1
- package/lib/components/shared/Table/Table.spec.js +0 -15
- package/lib/components/shared/Table/Table.spec.js.map +0 -1
- package/lib/components/shared/Table/TableHeader.js +0 -14
- package/lib/components/shared/Table/TableHeader.js.map +0 -1
- package/lib/components/shared/Table/Tbody.js +0 -8
- package/lib/components/shared/Table/Tbody.js.map +0 -1
- package/lib/components/shared/Table/Tbody.spec.js +0 -22
- package/lib/components/shared/Table/Tbody.spec.js.map +0 -1
- package/lib/components/shared/Table/Td.js +0 -8
- package/lib/components/shared/Table/Td.js.map +0 -1
- package/lib/components/shared/Table/Td.spec.js +0 -21
- package/lib/components/shared/Table/Td.spec.js.map +0 -1
- package/lib/components/shared/Table/Th.js +0 -8
- package/lib/components/shared/Table/Th.js.map +0 -1
- package/lib/components/shared/Table/Th.spec.js +0 -25
- package/lib/components/shared/Table/Th.spec.js.map +0 -1
- package/lib/components/shared/Table/Thead.js +0 -9
- package/lib/components/shared/Table/Thead.js.map +0 -1
- package/lib/components/shared/Table/Thead.spec.js +0 -12
- package/lib/components/shared/Table/Thead.spec.js.map +0 -1
- package/lib/components/shared/Table/Tr.js +0 -8
- package/lib/components/shared/Table/Tr.js.map +0 -1
- package/lib/components/shared/Table/Tr.spec.js +0 -19
- package/lib/components/shared/Table/Tr.spec.js.map +0 -1
- package/lib/components/shared/Table/index.js +0 -8
- package/lib/components/shared/Table/index.js.map +0 -1
- package/lib/components/type.d.ts +0 -304
- package/lib/components/type.js +0 -2
- package/lib/components/type.js.map +0 -1
- package/lib/constants/component-types.js +0 -2
- package/lib/constants/component-types.js.map +0 -1
- package/lib/constants/declarations.js +0 -12
- package/lib/constants/declarations.js.map +0 -1
- package/lib/constants/event-types.js +0 -13
- package/lib/constants/event-types.js.map +0 -1
- package/lib/constants/index.js +0 -6
- package/lib/constants/index.js.map +0 -1
- package/lib/constants/indexedDBStore.js +0 -19
- package/lib/constants/indexedDBStore.js.map +0 -1
- package/lib/constants/supported-preferences.js +0 -10
- package/lib/constants/supported-preferences.js.map +0 -1
- package/lib/constants/value-types.js +0 -6
- package/lib/constants/value-types.js.map +0 -1
- package/lib/constants/variable-types.js +0 -5
- package/lib/constants/variable-types.js.map +0 -1
- package/lib/hooks/use-auto-focus.js +0 -19
- package/lib/hooks/use-auto-focus.js.map +0 -1
- package/lib/hooks/use-track-changes.js +0 -41
- package/lib/hooks/use-track-changes.js.map +0 -1
- package/lib/hooks/use-why-render.js +0 -14
- package/lib/hooks/use-why-render.js.map +0 -1
- package/lib/hooks/useDebounce.js +0 -24
- package/lib/hooks/useDebounce.js.map +0 -1
- package/lib/hooks/useDocumentEvent.js +0 -18
- package/lib/hooks/useDocumentEvent.js.map +0 -1
- package/lib/hooks/useKeyboardKey.js +0 -25
- package/lib/hooks/useKeyboardKey.js.map +0 -1
- package/lib/hooks/useListKeyboardHandler.js +0 -28
- package/lib/hooks/useListKeyboardHandler.js.map +0 -1
- package/lib/hooks/useRefSync.js +0 -10
- package/lib/hooks/useRefSync.js.map +0 -1
- package/lib/i18n/build-dictionary.js +0 -38
- package/lib/i18n/build-dictionary.js.map +0 -1
- package/lib/i18n/dictionary.js +0 -27
- package/lib/i18n/dictionary.js.map +0 -1
- package/lib/i18n/index.js +0 -13
- package/lib/i18n/index.js.map +0 -1
- package/lib/i18n/inputNumberProps.js +0 -7
- package/lib/i18n/inputNumberProps.js.map +0 -1
- package/lib/index.js +0 -12
- package/lib/index.js.map +0 -1
- package/lib/tests/setup.js +0 -18
- package/lib/tests/setup.js.map +0 -1
- package/lib/tests/utils/lunatic.js +0 -31
- package/lib/tests/utils/lunatic.js.map +0 -1
- package/lib/tests/utils/timer.js +0 -4
- package/lib/tests/utils/timer.js.map +0 -1
- package/lib/type.source.js +0 -7
- package/lib/type.source.js.map +0 -1
- package/lib/type.utils.js +0 -2
- package/lib/type.utils.js.map +0 -1
- package/lib/use-lunatic/actions.js +0 -26
- package/lib/use-lunatic/actions.js.map +0 -1
- package/lib/use-lunatic/commons/check-loops.js +0 -63
- package/lib/use-lunatic/commons/check-loops.js.map +0 -1
- package/lib/use-lunatic/commons/check-pager.js +0 -17
- package/lib/use-lunatic/commons/check-pager.js.map +0 -1
- package/lib/use-lunatic/commons/compile-controls.js +0 -154
- package/lib/use-lunatic/commons/compile-controls.js.map +0 -1
- package/lib/use-lunatic/commons/component.js +0 -22
- package/lib/use-lunatic/commons/component.js.map +0 -1
- package/lib/use-lunatic/commons/create-map-pages.js +0 -58
- package/lib/use-lunatic/commons/create-map-pages.js.map +0 -1
- package/lib/use-lunatic/commons/execute-condition-filter.js +0 -11
- package/lib/use-lunatic/commons/execute-condition-filter.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +0 -148
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js +0 -83
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-components.js +0 -41
- package/lib/use-lunatic/commons/fill-components/fill-components.js.map +0 -1
- package/lib/use-lunatic/commons/get-compatible-vtl-expression.js +0 -19
- package/lib/use-lunatic/commons/get-compatible-vtl-expression.js.map +0 -1
- package/lib/use-lunatic/commons/get-components-from-state.js +0 -22
- package/lib/use-lunatic/commons/get-components-from-state.js.map +0 -1
- package/lib/use-lunatic/commons/index.js +0 -7
- package/lib/use-lunatic/commons/index.js.map +0 -1
- package/lib/use-lunatic/commons/is-First-last-page.js +0 -8
- package/lib/use-lunatic/commons/is-First-last-page.js.map +0 -1
- package/lib/use-lunatic/commons/is-paginated-loop.js +0 -5
- package/lib/use-lunatic/commons/is-paginated-loop.js.map +0 -1
- package/lib/use-lunatic/commons/is-roundabout.js +0 -5
- package/lib/use-lunatic/commons/is-roundabout.js.map +0 -1
- package/lib/use-lunatic/commons/page-navigation.js +0 -95
- package/lib/use-lunatic/commons/page-navigation.js.map +0 -1
- package/lib/use-lunatic/commons/page-navigation.spec.js +0 -136
- package/lib/use-lunatic/commons/page-navigation.spec.js.map +0 -1
- package/lib/use-lunatic/commons/page-tag.js +0 -55
- package/lib/use-lunatic/commons/page-tag.js.map +0 -1
- package/lib/use-lunatic/commons/page-tag.spec.js +0 -38
- package/lib/use-lunatic/commons/page-tag.spec.js.map +0 -1
- package/lib/use-lunatic/commons/page.js +0 -35
- package/lib/use-lunatic/commons/page.js.map +0 -1
- package/lib/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +0 -55
- package/lib/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +0 -1
- package/lib/use-lunatic/commons/variables/behaviours/missing-behaviour.js +0 -26
- package/lib/use-lunatic/commons/variables/behaviours/missing-behaviour.js.map +0 -1
- package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +0 -62
- package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +0 -1
- package/lib/use-lunatic/commons/variables/errors.js +0 -35
- package/lib/use-lunatic/commons/variables/errors.js.map +0 -1
- package/lib/use-lunatic/commons/variables/get-questionnaire-data.js +0 -53
- package/lib/use-lunatic/commons/variables/get-questionnaire-data.js.map +0 -1
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.js +0 -357
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.js.map +0 -1
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js +0 -438
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +0 -1
- package/lib/use-lunatic/hooks/use-loop-variables.js +0 -17
- package/lib/use-lunatic/hooks/use-loop-variables.js.map +0 -1
- package/lib/use-lunatic/hooks/use-page-has-response.js +0 -87
- package/lib/use-lunatic/hooks/use-page-has-response.js.map +0 -1
- package/lib/use-lunatic/hooks/useOverview.js +0 -91
- package/lib/use-lunatic/hooks/useOverview.js.map +0 -1
- package/lib/use-lunatic/hooks/useWarnDepChange.js +0 -17
- package/lib/use-lunatic/hooks/useWarnDepChange.js.map +0 -1
- package/lib/use-lunatic/logger/ConsoleLogger.js +0 -12
- package/lib/use-lunatic/logger/ConsoleLogger.js.map +0 -1
- package/lib/use-lunatic/logger/type.js +0 -2
- package/lib/use-lunatic/logger/type.js.map +0 -1
- package/lib/use-lunatic/lunatic-context.js +0 -44
- package/lib/use-lunatic/lunatic-context.js.map +0 -1
- package/lib/use-lunatic/props/getComponentTypeProps.d.ts +0 -291
- package/lib/use-lunatic/props/getComponentTypeProps.js +0 -165
- package/lib/use-lunatic/props/getComponentTypeProps.js.map +0 -1
- package/lib/use-lunatic/props/propIterations.js +0 -26
- package/lib/use-lunatic/props/propIterations.js.map +0 -1
- package/lib/use-lunatic/props/propMissingResponse.js +0 -13
- package/lib/use-lunatic/props/propMissingResponse.js.map +0 -1
- package/lib/use-lunatic/props/propOptions.js +0 -69
- package/lib/use-lunatic/props/propOptions.js.map +0 -1
- package/lib/use-lunatic/props/propOptions.spec.js +0 -57
- package/lib/use-lunatic/props/propOptions.spec.js.map +0 -1
- package/lib/use-lunatic/props/propValue.js +0 -28
- package/lib/use-lunatic/props/propValue.js.map +0 -1
- package/lib/use-lunatic/props/propValue.spec.js +0 -54
- package/lib/use-lunatic/props/propValue.spec.js.map +0 -1
- package/lib/use-lunatic/reducer/commons/auto-explore-loop.js +0 -52
- package/lib/use-lunatic/reducer/commons/auto-explore-loop.js.map +0 -1
- package/lib/use-lunatic/reducer/commons/index.js +0 -3
- package/lib/use-lunatic/reducer/commons/index.js.map +0 -1
- package/lib/use-lunatic/reducer/commons/resize-array-variable.js +0 -21
- package/lib/use-lunatic/reducer/commons/resize-array-variable.js.map +0 -1
- package/lib/use-lunatic/reducer/commons/validate-condition-filter.js +0 -12
- package/lib/use-lunatic/reducer/commons/validate-condition-filter.js.map +0 -1
- package/lib/use-lunatic/reducer/controls/check-base-control.js +0 -36
- package/lib/use-lunatic/reducer/controls/check-base-control.js.map +0 -1
- package/lib/use-lunatic/reducer/controls/check-roundabout-control.js +0 -23
- package/lib/use-lunatic/reducer/controls/check-roundabout-control.js.map +0 -1
- package/lib/use-lunatic/reducer/overview/overviewOnInit.js +0 -50
- package/lib/use-lunatic/reducer/overview/overviewOnInit.js.map +0 -1
- package/lib/use-lunatic/reducer/reduce-go-next-page.js +0 -61
- package/lib/use-lunatic/reducer/reduce-go-next-page.js.map +0 -1
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js +0 -30
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js.map +0 -1
- package/lib/use-lunatic/reducer/reduce-go-to-page.js +0 -55
- package/lib/use-lunatic/reducer/reduce-go-to-page.js.map +0 -1
- package/lib/use-lunatic/reducer/reduce-handle-changes.js +0 -26
- package/lib/use-lunatic/reducer/reduce-handle-changes.js.map +0 -1
- package/lib/use-lunatic/reducer/reducer.js +0 -20
- package/lib/use-lunatic/reducer/reducer.js.map +0 -1
- package/lib/use-lunatic/reducer/reducerInitializer.js +0 -128
- package/lib/use-lunatic/reducer/reducerInitializer.js.map +0 -1
- package/lib/use-lunatic/replace-component-sequence.d.ts +0 -9
- package/lib/use-lunatic/replace-component-sequence.js +0 -19
- package/lib/use-lunatic/replace-component-sequence.js.map +0 -1
- package/lib/use-lunatic/type.js +0 -2
- package/lib/use-lunatic/type.js.map +0 -1
- package/lib/use-lunatic/use-lunatic.js +0 -140
- package/lib/use-lunatic/use-lunatic.js.map +0 -1
- package/lib/utils/array.js +0 -107
- package/lib/utils/array.js.map +0 -1
- package/lib/utils/array.spec.js +0 -42
- package/lib/utils/array.spec.js.map +0 -1
- package/lib/utils/constants/alphabet.js +0 -2
- package/lib/utils/constants/alphabet.js.map +0 -1
- package/lib/utils/constants/features.js +0 -5
- package/lib/utils/constants/features.js.map +0 -1
- package/lib/utils/constants/index.js +0 -6
- package/lib/utils/constants/index.js.map +0 -1
- package/lib/utils/constants/links.js +0 -3
- package/lib/utils/constants/links.js.map +0 -1
- package/lib/utils/constants/missing.js +0 -3
- package/lib/utils/constants/missing.js.map +0 -1
- package/lib/utils/constants/variable-status.js +0 -6
- package/lib/utils/constants/variable-status.js.map +0 -1
- package/lib/utils/constants/variable-types.js +0 -2
- package/lib/utils/constants/variable-types.js.map +0 -1
- package/lib/utils/dom.js +0 -23
- package/lib/utils/dom.js.map +0 -1
- package/lib/utils/env.js +0 -13
- package/lib/utils/env.js.map +0 -1
- package/lib/utils/function.js +0 -23
- package/lib/utils/function.js.map +0 -1
- package/lib/utils/is-element.js +0 -6
- package/lib/utils/is-element.js.map +0 -1
- package/lib/utils/is-object.js +0 -7
- package/lib/utils/is-object.js.map +0 -1
- package/lib/utils/logger.js +0 -15
- package/lib/utils/logger.js.map +0 -1
- package/lib/utils/number.js +0 -32
- package/lib/utils/number.js.map +0 -1
- package/lib/utils/number.spec.js +0 -10
- package/lib/utils/number.spec.js.map +0 -1
- package/lib/utils/object.js +0 -26
- package/lib/utils/object.js.map +0 -1
- package/lib/utils/search/SearchInterface.js +0 -2
- package/lib/utils/search/SearchInterface.js.map +0 -1
- package/lib/utils/search/SearchMinisearch.js +0 -40
- package/lib/utils/search/SearchMinisearch.js.map +0 -1
- package/lib/utils/search/SuggestersDatabase.js +0 -38
- package/lib/utils/search/SuggestersDatabase.js.map +0 -1
- package/lib/utils/search/melauto.js +0 -41
- package/lib/utils/search/melauto.js.map +0 -1
- package/lib/utils/search/tokenizer.js +0 -57
- package/lib/utils/search/tokenizer.js.map +0 -1
- package/lib/utils/to-number.js +0 -13
- package/lib/utils/to-number.js.map +0 -1
- package/lib/utils/variables.js +0 -20
- package/lib/utils/variables.js.map +0 -1
- package/lib/utils/variables.spec.js +0 -83
- package/lib/utils/variables.spec.js.map +0 -1
- package/lib/utils/vtl.js +0 -93
- package/lib/utils/vtl.js.map +0 -1
- /package/{lib/components → components}/Accordion/Accordion.d.ts +0 -0
- /package/{lib/components → components}/CheckboxBoolean/CheckboxBoolean.d.ts +0 -0
- /package/{lib/components → components}/CheckboxBoolean/CheckboxBoolean.spec.d.ts +0 -0
- /package/{lib/components → components}/CheckboxGroup/CheckboxGroup.d.ts +0 -0
- /package/{lib/components → components}/CheckboxGroup/CustomCheckboxGroup.d.ts +0 -0
- /package/{lib/components → components}/CheckboxGroup/CustomCheckboxGroup.spec.d.ts +0 -0
- /package/{lib/components → components}/CheckboxOne/CheckboxOne.d.ts +0 -0
- /package/{lib/components → components}/CheckboxOne/CheckboxOne.spec.d.ts +0 -0
- /package/{lib/components → components}/Datepicker/Datepicker.d.ts +0 -0
- /package/{lib/components → components}/Datepicker/Datepicker.spec.d.ts +0 -0
- /package/{lib/components → components}/Datepicker/DatepickerField.d.ts +0 -0
- /package/{lib/components → components}/Dropdown/Dropdown.d.ts +0 -0
- /package/{lib/components → components}/Dropdown/Dropdown.spec.d.ts +0 -0
- /package/{lib/components → components}/Dropdown/renderer/SimpleLabelRenderer.d.ts +0 -0
- /package/{lib/components → components}/Dropdown/renderer/SimpleOptionRenderer.d.ts +0 -0
- /package/{lib/components → components}/Duration/Duration.d.ts +0 -0
- /package/{lib/components → components}/Duration/durationUtils.d.ts +0 -0
- /package/{lib/components → components}/Duration/formatDuration.d.ts +0 -0
- /package/{lib/components → components}/Duration/formatDuration.spec.d.ts +0 -0
- /package/{lib/components → components}/Duration/getDurationFromValue.d.ts +0 -0
- /package/{lib/components → components}/FilterDescription/FilterDescription.d.ts +0 -0
- /package/{lib/components → components}/FilterDescription/FilterDescription.spec.d.ts +0 -0
- /package/{lib/components → components}/Input/Input.d.ts +0 -0
- /package/{lib/components → components}/Input/Input.spec.d.ts +0 -0
- /package/{lib/components → components}/InputNumber/InputNumber.d.ts +0 -0
- /package/{lib/components → components}/InputNumber/InputNumber.spec.d.ts +0 -0
- /package/{lib/components → components}/InputNumber/InputNumberThousand.d.ts +0 -0
- /package/{lib/components → components}/Loop/Loop.d.ts +0 -0
- /package/{lib/components → components}/Loop/constant.d.ts +0 -0
- /package/{lib/components → components}/LunaticComponents.d.ts +0 -0
- /package/{lib/components → components}/PairwiseLinks/PairwiseLinks.d.ts +0 -0
- /package/{lib/components → components}/Question/Question.d.ts +0 -0
- /package/{lib/components → components}/Radio/Radio.d.ts +0 -0
- /package/{lib/components → components}/RosterForLoop/RosterForLoop.d.ts +0 -0
- /package/{lib/components → components}/RosterForLoop/RosterForLoop.spec.d.ts +0 -0
- /package/{lib/components → components}/Roundabout/CustomRoundabout.d.ts +0 -0
- /package/{lib/components → components}/Roundabout/Roundabout.d.ts +0 -0
- /package/{lib/components → components}/Roundabout/roundabout.spec.d.ts +0 -0
- /package/{lib/components → components}/Sequence/Sequence.d.ts +0 -0
- /package/{lib/components → components}/Subsequence/Subsequence.d.ts +0 -0
- /package/{lib/components → components}/Subsequence/Subsequence.spec.d.ts +0 -0
- /package/{lib/components → components}/Suggester/CustomSuggester.d.ts +0 -0
- /package/{lib/components → components}/Suggester/Suggester.d.ts +0 -0
- /package/{lib/components → components}/Suggester/SuggesterNotification.d.ts +0 -0
- /package/{lib/components → components}/Suggester/SuggesterType.d.ts +0 -0
- /package/{lib/components → components}/Suggester/useSuggestions.d.ts +0 -0
- /package/{lib/components → components}/Summary/Summary.d.ts +0 -0
- /package/{lib/components → components}/Switch/Switch.d.ts +0 -0
- /package/{lib/components → components}/Table/Table.d.ts +0 -0
- /package/{lib/components → components}/Text/Text.d.ts +0 -0
- /package/{lib/components → components}/Textarea/Textarea.d.ts +0 -0
- /package/{lib/components → components}/Textarea/Textarea.spec.d.ts +0 -0
- /package/{lib/components → components}/library.d.ts +0 -0
- /package/{lib/components → components}/shared/Button/Button.d.ts +0 -0
- /package/{lib/components → components}/shared/Button/Button.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Button/IconButton.d.ts +0 -0
- /package/{lib/components → components}/shared/Button/IconButton.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Checkbox/CheckboxOption.d.ts +0 -0
- /package/{lib/components → components}/shared/Checkbox/CheckboxOption.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Checkbox/getShortcutKey.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Combobox.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Combobox.stories.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/ComboboxContainer.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/ComboboxContainer.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/ComboboxContent.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/ComboboxContentBox.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/ComboboxType.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Panel/ComboboxOption.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Panel/ComboboxOption.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Panel/ComboboxOptionContainer.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Panel/ComboboxOptionContainer.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Panel/ComboboxPanel.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Panel/ComboboxPanel.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Panel/ComboboxPanelContainer.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Panel/ComboboxPanelContainer.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Selection/ComboboxClearButton.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Selection/ComboboxClearButton.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Selection/ComboboxInput.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Selection/ComboboxLabelSelection.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Selection/ComboboxLabelSelection.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Selection/ComboboxSelection.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/Selection/ComboboxSelection.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/constants.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/index.d.ts +0 -0
- /package/{lib/components → components}/shared/Combobox/index.js +0 -0
- /package/{lib/components → components}/shared/ComponentErrors/ComponentErrors.d.ts +0 -0
- /package/{lib/components → components}/shared/ComponentErrors/ComponentErrors.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/ComponentWrapper.d.ts +0 -0
- /package/{lib/components → components}/shared/Declarations/Declarations.d.ts +0 -0
- /package/{lib/components → components}/shared/Declarations/Declarations.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Fieldset/Fieldset.d.ts +0 -0
- /package/{lib/components → components}/shared/Fieldset/Fieldset.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/HOC/slottableComponent.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/checkbox-checked-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/checkbox-disabled-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/checkbox-unchecked-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/closed-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/cross-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/icon-props.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/index.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/load-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/lunatic-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/network-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/on-drag-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/opened-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/radio-checked-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Icons/radio-unchecked-icon.d.ts +0 -0
- /package/{lib/components → components}/shared/Label/Label.d.ts +0 -0
- /package/{lib/components → components}/shared/Label/Label.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/LabelDescription.d.ts +0 -0
- /package/{lib/components → components}/shared/MDLabel/MDLabel.d.ts +0 -0
- /package/{lib/components → components}/shared/MDLabel/MDLabel.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/MDLabel/MarkdownLink.d.ts +0 -0
- /package/{lib/components → components}/shared/MDLabel/RouterLink.d.ts +0 -0
- /package/{lib/components → components}/shared/Missing/Missing.d.ts +0 -0
- /package/{lib/components → components}/shared/Missing/Missing.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/ModalControls/ModalControls.d.ts +0 -0
- /package/{lib/components → components}/shared/ModalControls/ModalControls.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Notification.d.ts +0 -0
- /package/{lib/components → components}/shared/Radio/RadioGroup.d.ts +0 -0
- /package/{lib/components → components}/shared/Radio/RadioOption.d.ts +0 -0
- /package/{lib/components → components}/shared/Radio/RadioOption.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Table.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Table.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/TableHeader.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Tbody.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Tbody.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Td.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Td.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Th.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Th.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Thead.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Thead.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Tr.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/Tr.spec.d.ts +0 -0
- /package/{lib/components → components}/shared/Table/index.d.ts +0 -0
- /package/{lib/constants → constants}/component-types.d.ts +0 -0
- /package/{lib/constants → constants}/declarations.d.ts +0 -0
- /package/{lib/constants → constants}/event-types.d.ts +0 -0
- /package/{lib/constants → constants}/index.d.ts +0 -0
- /package/{lib/constants → constants}/indexedDBStore.d.ts +0 -0
- /package/{lib/constants → constants}/supported-preferences.d.ts +0 -0
- /package/{lib/constants → constants}/value-types.d.ts +0 -0
- /package/{lib/constants → constants}/variable-types.d.ts +0 -0
- /package/{lib/hooks → hooks}/use-auto-focus.d.ts +0 -0
- /package/{lib/hooks → hooks}/use-track-changes.d.ts +0 -0
- /package/{lib/hooks → hooks}/use-why-render.d.ts +0 -0
- /package/{lib/hooks → hooks}/useDebounce.d.ts +0 -0
- /package/{lib/hooks → hooks}/useDocumentEvent.d.ts +0 -0
- /package/{lib/hooks → hooks}/useKeyboardKey.d.ts +0 -0
- /package/{lib/hooks → hooks}/useListKeyboardHandler.d.ts +0 -0
- /package/{lib/hooks → hooks}/useRefSync.d.ts +0 -0
- /package/{lib/i18n → i18n}/build-dictionary.d.ts +0 -0
- /package/{lib/i18n → i18n}/dictionary.d.ts +0 -0
- /package/{lib/i18n → i18n}/index.d.ts +0 -0
- /package/{lib/i18n → i18n}/inputNumberProps.d.ts +0 -0
- /package/{lib/icons → icons}/alert-icon.svg +0 -0
- /package/{lib/icons → icons}/wait-icon.svg +0 -0
- /package/{lib/icons → icons}/warn-icon.svg +0 -0
- /package/{lib/index.d.ts → index.d.ts} +0 -0
- /package/{lib/main.css → main.css} +0 -0
- /package/{lib/main.css.map → main.css.map} +0 -0
- /package/{lib/use-lunatic/commons/index.d.ts → src/use-lunatic/commons/index.ts} +0 -0
- /package/{lib/use-lunatic/reducer/commons/index.d.ts → src/use-lunatic/reducer/commons/index.ts} +0 -0
- /package/{lib/utils/constants/index.d.ts → src/utils/constants/index.ts} +0 -0
- /package/{lib/tests → tests}/setup.d.ts +0 -0
- /package/{lib/tests → tests}/utils/lunatic.d.ts +0 -0
- /package/{lib/tests → tests}/utils/timer.d.ts +0 -0
- /package/{lib/type.source.d.ts → type.source.d.ts} +0 -0
- /package/{lib/type.utils.d.ts → type.utils.d.ts} +0 -0
- /package/{lib/use-lunatic → use-lunatic}/actions.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/check-loops.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/check-pager.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/compile-controls.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/component.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/create-map-pages.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/execute-condition-filter.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/fill-components/fill-component-expressions.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/fill-components/fill-component-expressions.spec.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/fill-components/fill-components.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/get-compatible-vtl-expression.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/get-components-from-state.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/is-First-last-page.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/is-paginated-loop.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/is-roundabout.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/page-navigation.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/page-navigation.spec.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/page-tag.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/page-tag.spec.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/page.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/variables/behaviours/cleaning-behaviour.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/variables/behaviours/missing-behaviour.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/variables/behaviours/resizing-behaviour.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/variables/errors.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/variables/get-questionnaire-data.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/variables/lunatic-variables-store.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/commons/variables/lunatic-variables-store.spec.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/hooks/use-loop-variables.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/hooks/use-page-has-response.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/hooks/useOverview.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/hooks/useWarnDepChange.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/logger/ConsoleLogger.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/logger/type.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/lunatic-context.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/props/propIterations.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/props/propMissingResponse.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/props/propOptions.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/props/propOptions.spec.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/props/propValue.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/props/propValue.spec.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/commons/auto-explore-loop.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/commons/resize-array-variable.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/commons/validate-condition-filter.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/controls/check-base-control.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/controls/check-roundabout-control.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/overview/overviewOnInit.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/reduce-go-next-page.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/reduce-go-previous-page.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/reduce-go-to-page.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/reduce-handle-changes.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/reducer.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/reducer/reducerInitializer.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/type.d.ts +0 -0
- /package/{lib/use-lunatic → use-lunatic}/use-lunatic.d.ts +0 -0
- /package/{lib/utils → utils}/array.d.ts +0 -0
- /package/{lib/utils → utils}/array.spec.d.ts +0 -0
- /package/{lib/utils → utils}/constants/alphabet.d.ts +0 -0
- /package/{lib/utils → utils}/constants/features.d.ts +0 -0
- /package/{lib/utils → utils}/constants/links.d.ts +0 -0
- /package/{lib/utils → utils}/constants/missing.d.ts +0 -0
- /package/{lib/utils → utils}/constants/variable-status.d.ts +0 -0
- /package/{lib/utils → utils}/constants/variable-types.d.ts +0 -0
- /package/{lib/utils → utils}/dom.d.ts +0 -0
- /package/{lib/utils → utils}/env.d.ts +0 -0
- /package/{lib/utils → utils}/function.d.ts +0 -0
- /package/{lib/utils → utils}/is-element.d.ts +0 -0
- /package/{lib/utils → utils}/is-object.d.ts +0 -0
- /package/{lib/utils → utils}/logger.d.ts +0 -0
- /package/{lib/utils → utils}/number.d.ts +0 -0
- /package/{lib/utils → utils}/number.spec.d.ts +0 -0
- /package/{lib/utils → utils}/object.d.ts +0 -0
- /package/{lib/utils → utils}/search/SearchInterface.d.ts +0 -0
- /package/{lib/utils → utils}/search/SearchMinisearch.d.ts +0 -0
- /package/{lib/utils → utils}/search/SuggestersDatabase.d.ts +0 -0
- /package/{lib/utils → utils}/search/melauto.d.ts +0 -0
- /package/{lib/utils → utils}/search/tokenizer.d.ts +0 -0
- /package/{lib/utils → utils}/to-number.d.ts +0 -0
- /package/{lib/utils → utils}/variables.d.ts +0 -0
- /package/{lib/utils → utils}/variables.spec.d.ts +0 -0
- /package/{lib/utils → utils}/vtl.d.ts +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ComponentWrapper = ComponentWrapper;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const Missing_1 = require("./Missing/Missing");
|
|
9
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
10
|
+
const Declarations_1 = require("./Declarations/Declarations");
|
|
11
|
+
const function_1 = require("../../utils/function");
|
|
12
|
+
/**
|
|
13
|
+
* Wrapper around Lunatic components, handle Declarations and missing buttons
|
|
14
|
+
*
|
|
15
|
+
* ## The structure :
|
|
16
|
+
*
|
|
17
|
+
* |--------------------------|
|
|
18
|
+
* | DeclarationBefore |
|
|
19
|
+
* |__________________________|
|
|
20
|
+
* |--------------------------|
|
|
21
|
+
* | Component |
|
|
22
|
+
* |__________________________|
|
|
23
|
+
* |--------------------------|
|
|
24
|
+
* | Missing Buttons |
|
|
25
|
+
* |__________________________|
|
|
26
|
+
*/
|
|
27
|
+
function ComponentWrapper(props) {
|
|
28
|
+
const { id, declarations, children, management, handleChanges } = props;
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Declarations_1.Declarations, { type: "BEFORE_QUESTION_TEXT", declarations: declarations, id: id }), (0, jsx_runtime_1.jsxs)("div", { className: "field-container", children: [(0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)({
|
|
30
|
+
'field-with-tooltip': management,
|
|
31
|
+
field: !management,
|
|
32
|
+
}), children: children }), management && (0, jsx_runtime_1.jsx)("div", { className: "tooltip" })] }), (0, jsx_runtime_1.jsx)(Declarations_1.Declarations, { type: "DETACHABLE", declarations: declarations, id: id }), (0, jsx_runtime_1.jsx)(Missing_1.Missing, { ...props, handleChanges: handleChanges ?? function_1.voidFunction })] }));
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=ComponentWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentWrapper.js","sourceRoot":"","sources":["../../src/components/shared/ComponentWrapper.tsx"],"names":[],"mappings":";;;;;AAyCA,4CAwBC;;AA/DD,+CAA4C;AAC5C,4DAAoC;AACpC,8DAA2D;AAC3D,mDAAoD;AAqBpD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,gBAAgB,CAAC,KAAY;IAC5C,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACxE,OAAO,CACN,6DACC,uBAAC,2BAAY,IACZ,IAAI,EAAC,sBAAsB,EAC3B,YAAY,EAAE,YAAY,EAC1B,EAAE,EAAE,EAAE,GACL,EACF,iCAAK,SAAS,EAAC,iBAAiB,aAC/B,gCACC,SAAS,EAAE,IAAA,oBAAU,EAAC;4BACrB,oBAAoB,EAAE,UAAU;4BAChC,KAAK,EAAE,CAAC,UAAU;yBAClB,CAAC,YAED,QAAQ,GACJ,EACL,UAAU,IAAI,gCAAK,SAAS,EAAC,SAAS,GAAG,IACrC,EACN,uBAAC,2BAAY,IAAC,IAAI,EAAC,YAAY,EAAC,YAAY,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,GAAI,EACtE,uBAAC,iBAAO,OAAK,KAAK,EAAE,aAAa,EAAE,aAAa,IAAI,uBAAY,GAAI,IAClE,CACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Declarations = exports.Declaration = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const slottableComponent_1 = require("../HOC/slottableComponent");
|
|
9
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
10
|
+
exports.Declaration = (0, slottableComponent_1.slottableComponent)('Declaration', ({ children, declarationType }) => ((0, jsx_runtime_1.jsx)("div", { "data-testid": "declaration", className: (0, classnames_1.default)('declaration-lunatic', `declaration-${declarationType.toLowerCase()}`), children: children })));
|
|
11
|
+
function LunaticDeclarations({ id, type = 'AFTER_QUESTION_TEXT', declarations, }) {
|
|
12
|
+
const filtered = declarations?.filter((d) => d.position === type && d.label) ?? [];
|
|
13
|
+
if (filtered.length === 0) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("div", { id: `declarations-${id}-${type}`, className: "declarations-lunatic", children: filtered.map(({ id, label, declarationType }) => ((0, jsx_runtime_1.jsx)(exports.Declaration, { declarationType: declarationType, children: label }, id))) }));
|
|
17
|
+
}
|
|
18
|
+
exports.Declarations = (0, slottableComponent_1.slottableComponent)('Declarations', LunaticDeclarations);
|
|
19
|
+
//# sourceMappingURL=Declarations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Declarations.js","sourceRoot":"","sources":["../../../src/components/shared/Declarations/Declarations.tsx"],"names":[],"mappings":";;;;;;;AAAA,kEAA+D;AAE/D,4DAAoC;AAEvB,QAAA,WAAW,GAAG,IAAA,uCAAkB,EAU3C,aAAa,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CACnD,+CACa,aAAa,EACzB,SAAS,EAAE,IAAA,oBAAU,EACpB,qBAAqB,EACrB,eAAe,eAAe,CAAC,WAAW,EAAE,EAAE,CAC9C,YAEA,QAAQ,GACJ,CACN,CAAC,CAAC;AAmBH,SAAS,mBAAmB,CAAC,EAC5B,EAAE,EACF,IAAI,GAAG,qBAAqB,EAC5B,YAAY,GACL;IACP,MAAM,QAAQ,GACb,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEnE,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,CACN,gCAAK,EAAE,EAAE,gBAAgB,EAAE,IAAI,IAAI,EAAE,EAAE,SAAS,EAAC,sBAAsB,YACrE,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CACjD,uBAAC,mBAAW,IAAU,eAAe,EAAE,eAAe,YACpD,KAAK,IADW,EAAE,CAEN,CACd,CAAC,GACG,CACN,CAAC;AACH,CAAC;AAEY,QAAA,YAAY,GAAG,IAAA,uCAAkB,EAC7C,cAAc,EACd,mBAAmB,CACnB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const Declarations_1 = require("./Declarations");
|
|
5
|
+
const react_1 = require("@testing-library/react");
|
|
6
|
+
const vitest_1 = require("vitest");
|
|
7
|
+
const declarations = [
|
|
8
|
+
{
|
|
9
|
+
id: '1',
|
|
10
|
+
label: 'Declaration 1',
|
|
11
|
+
declarationType: 'COMMENT',
|
|
12
|
+
position: 'AFTER_QUESTION_TEXT',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: '2',
|
|
16
|
+
label: 'Declaration 2',
|
|
17
|
+
declarationType: 'COMMENT',
|
|
18
|
+
position: 'BEFORE_QUESTION_TEXT',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: '3',
|
|
22
|
+
label: 'Declaration 3',
|
|
23
|
+
declarationType: 'COMMENT',
|
|
24
|
+
position: 'DETACHABLE',
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
(0, vitest_1.describe)('Declarations component', () => {
|
|
28
|
+
(0, vitest_1.it)('renders correctly with filtered Declarations', () => {
|
|
29
|
+
const { getByTestId, getByText } = (0, react_1.render)((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { "data-testid": `declarations-1-AFTER_QUESTION_TEXT` }), (0, jsx_runtime_1.jsx)(Declarations_1.Declarations, { id: "1", type: "AFTER_QUESTION_TEXT", declarations: declarations })] }));
|
|
30
|
+
const declarationsElement = getByTestId('declarations-1-AFTER_QUESTION_TEXT');
|
|
31
|
+
(0, vitest_1.expect)(declarationsElement.nextElementSibling).toHaveClass('declarations-lunatic');
|
|
32
|
+
const declarationElement = getByText('Declaration 1');
|
|
33
|
+
(0, vitest_1.expect)(declarationElement).toBeInTheDocument();
|
|
34
|
+
(0, vitest_1.expect)(declarationElement).toHaveClass('declaration-lunatic');
|
|
35
|
+
(0, vitest_1.expect)(declarationElement).toHaveClass('declaration-comment');
|
|
36
|
+
});
|
|
37
|
+
(0, vitest_1.it)('renders nothing with unfiltered Declarations', () => {
|
|
38
|
+
const declarationstest = [
|
|
39
|
+
{
|
|
40
|
+
id: '3',
|
|
41
|
+
label: 'Declaration 3',
|
|
42
|
+
declarationType: 'COMMENT',
|
|
43
|
+
position: 'DETACHABLE',
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
const { queryByTestId } = (0, react_1.render)((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { "data-testid": `declarations-1-BEFORE_QUESTION_TEXT` }), (0, jsx_runtime_1.jsx)(Declarations_1.Declarations, { id: "1", type: "BEFORE_QUESTION_TEXT", declarations: declarationstest })] }));
|
|
47
|
+
const declarationsElement = queryByTestId('declarations-1-BEFORE_QUESTION_TEXT');
|
|
48
|
+
(0, vitest_1.expect)(declarationsElement.nextElementSibling).toBeNull();
|
|
49
|
+
});
|
|
50
|
+
(0, vitest_1.it)('renders nothing with empty Declarations array', () => {
|
|
51
|
+
const { queryByTestId } = (0, react_1.render)((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { "data-testid": `declarations-1-DETACHABLE` }), (0, jsx_runtime_1.jsx)(Declarations_1.Declarations, { id: "1", type: "DETACHABLE", declarations: [] })] }));
|
|
52
|
+
const declarationsElement = queryByTestId('declarations-1-DETACHABLE');
|
|
53
|
+
(0, vitest_1.expect)(declarationsElement.nextElementSibling).toBeNull();
|
|
54
|
+
});
|
|
55
|
+
(0, vitest_1.it)('renders null with empty Declaration', () => {
|
|
56
|
+
const declarationstest = [
|
|
57
|
+
{
|
|
58
|
+
id: '3',
|
|
59
|
+
label: '',
|
|
60
|
+
declarationType: 'COMMENT',
|
|
61
|
+
position: 'DETACHABLE',
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
const { container } = (0, react_1.render)((0, jsx_runtime_1.jsx)(Declarations_1.Declarations, { id: "1", type: "DETACHABLE", declarations: declarationstest }));
|
|
65
|
+
(0, vitest_1.expect)(container).toMatchInlineSnapshot(`<div />`);
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
//# sourceMappingURL=Declarations.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Declarations.spec.js","sourceRoot":"","sources":["../../../src/components/shared/Declarations/Declarations.spec.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,kDAAgD;AAChD,mCAA8C;AAG9C,MAAM,YAAY,GAAG;IACpB;QACC,EAAE,EAAE,GAAG;QACP,KAAK,EAAE,eAAe;QACtB,eAAe,EAAE,SAAS;QAC1B,QAAQ,EAAE,qBAAqB;KAC/B;IACD;QACC,EAAE,EAAE,GAAG;QACP,KAAK,EAAE,eAAe;QACtB,eAAe,EAAE,SAAS;QAC1B,QAAQ,EAAE,sBAAsB;KAChC;IACD;QACC,EAAE,EAAE,GAAG;QACP,KAAK,EAAE,eAAe;QACtB,eAAe,EAAE,SAAS;QAC1B,QAAQ,EAAE,YAAY;KACtB;CAC0C,CAAC;AAE7C,IAAA,iBAAQ,EAAC,wBAAwB,EAAE,GAAG,EAAE;IACvC,IAAA,WAAE,EAAC,8CAA8C,EAAE,GAAG,EAAE;QACvD,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAA,cAAM,EACxC,4CACC,+CAAkB,oCAAoC,GAAI,EAC1D,uBAAC,2BAAY,IACZ,EAAE,EAAC,GAAG,EACN,IAAI,EAAC,qBAAqB,EAC1B,YAAY,EAAE,YAAY,GACzB,IACG,CACN,CAAC;QACF,MAAM,mBAAmB,GAAG,WAAW,CACtC,oCAAoC,CACpC,CAAC;QACF,IAAA,eAAM,EAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC,WAAW,CACzD,sBAAsB,CACtB,CAAC;QACF,MAAM,kBAAkB,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;QACtD,IAAA,eAAM,EAAC,kBAAkB,CAAC,CAAC,iBAAiB,EAAE,CAAC;QAC/C,IAAA,eAAM,EAAC,kBAAkB,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;QAC9D,IAAA,eAAM,EAAC,kBAAkB,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,8CAA8C,EAAE,GAAG,EAAE;QACvD,MAAM,gBAAgB,GAAG;YACxB;gBACC,EAAE,EAAE,GAAG;gBACP,KAAK,EAAE,eAAe;gBACtB,eAAe,EAAE,SAAkB;gBACnC,QAAQ,EAAE,YAAY;aACtB;SACD,CAAC;QACF,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,cAAM,EAC/B,4CACC,+CAAkB,qCAAqC,GAAI,EAC3D,uBAAC,2BAAY,IACZ,EAAE,EAAC,GAAG,EACN,IAAI,EAAC,sBAAsB,EAC3B,YAAY,EAAE,gBAAgB,GAC7B,IACG,CACN,CAAC;QACF,MAAM,mBAAmB,GAAG,aAAa,CACxC,qCAAqC,CACpC,CAAC;QACH,IAAA,eAAM,EAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,+CAA+C,EAAE,GAAG,EAAE;QACxD,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,cAAM,EAC/B,4CACC,+CAAkB,2BAA2B,GAAI,EACjD,uBAAC,2BAAY,IAAC,EAAE,EAAC,GAAG,EAAC,IAAI,EAAC,YAAY,EAAC,YAAY,EAAE,EAAE,GAAI,IACtD,CACN,CAAC;QACF,MAAM,mBAAmB,GAAG,aAAa,CAAC,2BAA2B,CAAE,CAAC;QACxE,IAAA,eAAM,EAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,qCAAqC,EAAE,GAAG,EAAE;QAC9C,MAAM,gBAAgB,GAAG;YACxB;gBACC,EAAE,EAAE,GAAG;gBACP,KAAK,EAAE,EAAE;gBACT,eAAe,EAAE,SAAkB;gBACnC,QAAQ,EAAE,YAAY;aACtB;SACD,CAAC;QACF,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,cAAM,EAC3B,uBAAC,2BAAY,IAAC,EAAE,EAAC,GAAG,EAAC,IAAI,EAAC,YAAY,EAAC,YAAY,EAAE,gBAAgB,GAAI,CACzE,CAAC;QACF,IAAA,eAAM,EAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Fieldset = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
+
const slottableComponent_1 = require("../HOC/slottableComponent");
|
|
10
|
+
const LabelDescription_1 = require("../LabelDescription");
|
|
11
|
+
const is_element_1 = require("../../../utils/is-element");
|
|
12
|
+
function LunaticFieldset({ children, legend, description, className }) {
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("fieldset", { className: (0, classnames_1.default)(className), children: [(0, jsx_runtime_1.jsxs)("legend", { children: [labelToReactNode(legend), (0, jsx_runtime_1.jsx)(LabelDescription_1.LabelDescription, { value: description })] }), children] }));
|
|
14
|
+
}
|
|
15
|
+
function labelToReactNode(label) {
|
|
16
|
+
if (!label) {
|
|
17
|
+
return '';
|
|
18
|
+
}
|
|
19
|
+
if (typeof label === 'string' ||
|
|
20
|
+
typeof label === 'boolean' ||
|
|
21
|
+
typeof label === 'number') {
|
|
22
|
+
return label;
|
|
23
|
+
}
|
|
24
|
+
if (typeof label === 'object') {
|
|
25
|
+
if ((0, is_element_1.isElement)(label))
|
|
26
|
+
return label;
|
|
27
|
+
if ('value' in label && typeof label.value === 'string') {
|
|
28
|
+
return label.value;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return ``;
|
|
32
|
+
}
|
|
33
|
+
exports.Fieldset = (0, slottableComponent_1.slottableComponent)('Fieldset', LunaticFieldset);
|
|
34
|
+
//# sourceMappingURL=Fieldset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fieldset.js","sourceRoot":"","sources":["../../../src/components/shared/Fieldset/Fieldset.tsx"],"names":[],"mappings":";;;;;;;AACA,4DAAoC;AACpC,kEAA+D;AAC/D,0DAAuD;AAEvD,0DAAsD;AAQtD,SAAS,eAAe,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAS;IAC3E,OAAO,CACN,sCAAU,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,CAAC,aACzC,+CACE,gBAAgB,CAAC,MAAM,CAAC,EACzB,uBAAC,mCAAgB,IAAC,KAAK,EAAE,WAAW,GAAI,IAChC,EACR,QAAQ,IACC,CACX,CAAC;AACH,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAc;IACvC,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,EAAE,CAAC;IACX,CAAC;IACD,IACC,OAAO,KAAK,KAAK,QAAQ;QACzB,OAAO,KAAK,KAAK,SAAS;QAC1B,OAAO,KAAK,KAAK,QAAQ,EACxB,CAAC;QACF,OAAO,KAAK,CAAC;IACd,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC/B,IAAI,IAAA,sBAAS,EAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QACnC,IAAI,OAAO,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YACzD,OAAO,KAAK,CAAC,KAAK,CAAC;QACpB,CAAC;IACF,CAAC;IAED,OAAO,EAAE,CAAC;AACX,CAAC;AAEY,QAAA,QAAQ,GAAG,IAAA,uCAAkB,EAAC,UAAU,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const react_1 = require("@testing-library/react");
|
|
5
|
+
const Fieldset_1 = require("./Fieldset");
|
|
6
|
+
const vitest_1 = require("vitest");
|
|
7
|
+
(0, vitest_1.describe)('Fieldset', () => {
|
|
8
|
+
(0, vitest_1.it)('renders the legend text', () => {
|
|
9
|
+
const legendText = 'Example Legend';
|
|
10
|
+
const { getByText } = (0, react_1.render)((0, jsx_runtime_1.jsx)(Fieldset_1.Fieldset, { legend: legendText }));
|
|
11
|
+
const legendElement = getByText(legendText);
|
|
12
|
+
(0, vitest_1.expect)(legendElement).toBeInTheDocument();
|
|
13
|
+
});
|
|
14
|
+
(0, vitest_1.it)('renders the children', () => {
|
|
15
|
+
const childText = 'Example child text';
|
|
16
|
+
const { getByText } = (0, react_1.render)((0, jsx_runtime_1.jsx)(Fieldset_1.Fieldset, { children: (0, jsx_runtime_1.jsx)("div", { children: childText }) }));
|
|
17
|
+
const childElement = getByText(childText);
|
|
18
|
+
(0, vitest_1.expect)(childElement).toBeInTheDocument();
|
|
19
|
+
});
|
|
20
|
+
(0, vitest_1.it)('applies the className', () => {
|
|
21
|
+
const className = 'custom-class';
|
|
22
|
+
const { container } = (0, react_1.render)((0, jsx_runtime_1.jsx)(Fieldset_1.Fieldset, { className: className }));
|
|
23
|
+
const fieldsetElement = container.querySelector('fieldset');
|
|
24
|
+
(0, vitest_1.expect)(fieldsetElement).toHaveClass(className);
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=Fieldset.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fieldset.spec.js","sourceRoot":"","sources":["../../../src/components/shared/Fieldset/Fieldset.spec.tsx"],"names":[],"mappings":";;;AAAA,kDAAgD;AAChD,yCAAsC;AACtC,mCAA8C;AAC9C,IAAA,iBAAQ,EAAC,UAAU,EAAE,GAAG,EAAE;IACzB,IAAA,WAAE,EAAC,yBAAyB,EAAE,GAAG,EAAE;QAClC,MAAM,UAAU,GAAG,gBAAgB,CAAC;QACpC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,cAAM,EAAC,uBAAC,mBAAQ,IAAC,MAAM,EAAE,UAAU,GAAI,CAAC,CAAC;QAC/D,MAAM,aAAa,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;QAC5C,IAAA,eAAM,EAAC,aAAa,CAAC,CAAC,iBAAiB,EAAE,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,sBAAsB,EAAE,GAAG,EAAE;QAC/B,MAAM,SAAS,GAAG,oBAAoB,CAAC;QACvC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,cAAM,EAC3B,uBAAC,mBAAQ,cACR,0CAAM,SAAS,GAAO,GACZ,CACX,CAAC;QACF,MAAM,YAAY,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC;QAC1C,IAAA,eAAM,EAAC,YAAY,CAAC,CAAC,iBAAiB,EAAE,CAAC;IAC1C,CAAC,CAAC,CAAC;IACH,IAAA,WAAE,EAAC,uBAAuB,EAAE,GAAG,EAAE;QAChC,MAAM,SAAS,GAAG,cAAc,CAAC;QACjC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,cAAM,EAAC,uBAAC,mBAAQ,IAAC,SAAS,EAAE,SAAS,GAAI,CAAC,CAAC;QACjE,MAAM,eAAe,GAAG,SAAS,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAC5D,IAAA,eAAM,EAAC,eAAe,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SlotsProvider = void 0;
|
|
4
|
+
exports.slottableComponent = slottableComponent;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const empty = {};
|
|
8
|
+
const SlotsContext = (0, react_1.createContext)(empty);
|
|
9
|
+
const SlotsProvider = ({ slots, children, }) => {
|
|
10
|
+
if (!slots) {
|
|
11
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
12
|
+
}
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(SlotsContext.Provider, { value: slots ?? empty, children: children }));
|
|
14
|
+
};
|
|
15
|
+
exports.SlotsProvider = SlotsProvider;
|
|
16
|
+
/**
|
|
17
|
+
* Create a replaceable version of a component
|
|
18
|
+
*
|
|
19
|
+
* The component can be replaced using the "slots" props on <LunaticComponents>
|
|
20
|
+
*/
|
|
21
|
+
function slottableComponent(name, OriginalComponent) {
|
|
22
|
+
const DecoratedComponent = (props) => {
|
|
23
|
+
const custom = (0, react_1.useContext)(SlotsContext) ?? empty;
|
|
24
|
+
if (custom && name in custom) {
|
|
25
|
+
const SlotComponent = custom[name];
|
|
26
|
+
// @ts-expect-error This is too dynamic
|
|
27
|
+
return (0, jsx_runtime_1.jsx)(SlotComponent, { ...props });
|
|
28
|
+
}
|
|
29
|
+
// @ts-expect-error This is too dynamic
|
|
30
|
+
return (0, jsx_runtime_1.jsx)(OriginalComponent, { ...props });
|
|
31
|
+
};
|
|
32
|
+
DecoratedComponent.displayName = name;
|
|
33
|
+
return DecoratedComponent;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=slottableComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slottableComponent.js","sourceRoot":"","sources":["../../../src/components/shared/HOC/slottableComponent.tsx"],"names":[],"mappings":";;;AAwIA,gDAkBC;;AA1JD,iCAMe;AA2Gf,MAAM,KAAK,GAAG,EAAgD,CAAC;AAE/D,MAAM,YAAY,GAAG,IAAA,qBAAa,EAAC,KAAK,CAAC,CAAC;AAEnC,MAAM,aAAa,GAAG,CAAC,EAC7B,KAAK,EACL,QAAQ,GACuD,EAAE,EAAE;IACnE,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,2DAAG,QAAQ,GAAI,CAAC;IACxB,CAAC;IACD,OAAO,CACN,uBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IAAI,KAAK,YAC1C,QAAQ,GACc,CACxB,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,aAAa,iBAYxB;AAEF;;;;GAIG;AACH,SAAgB,kBAAkB,CACjC,IAAiC,EACjC,iBAAuC;IAEvC,MAAM,kBAAkB,GAAG,CAAC,KAAQ,EAAE,EAAE;QACvC,MAAM,MAAM,GAAG,IAAA,kBAAU,EAAC,YAAY,CAAC,IAAI,KAAK,CAAC;QAEjD,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,EAAE,CAAC;YAC9B,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAqB,CAAC;YACvD,uCAAuC;YACvC,OAAO,uBAAC,aAAa,OAAK,KAAK,GAAI,CAAC;QACrC,CAAC;QAED,uCAAuC;QACvC,OAAO,uBAAC,iBAAiB,OAAK,KAAK,GAAI,CAAC;IACzC,CAAC,CAAC;IACF,kBAAkB,CAAC,WAAW,GAAG,IAAI,CAAC;IACtC,OAAO,kBAAkB,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckboxCheckedIcon = CheckboxCheckedIcon;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lunatic_icon_1 = require("./lunatic-icon");
|
|
6
|
+
function CheckboxCheckedIcon({ className, width = 32, height = 32, }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(lunatic_icon_1.LunaticIcon, { className: className, children: (0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, x: "0", y: "0", enableBackground: "new 0 0 32 32", version: "1.1", viewBox: "0 0 32 32", xmlSpace: "preserve", children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0z", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })] }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=checkbox-checked-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-checked-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/checkbox-checked-icon.tsx"],"names":[],"mappings":";;AAGA,kDAuBC;;AA1BD,iDAA6C;AAG7C,SAAgB,mBAAmB,CAAC,EACnC,SAAS,EACT,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,GACA;IACX,OAAO,CACN,uBAAC,0BAAW,IAAC,SAAS,EAAE,SAAS,YAChC,iCACC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,gBAAgB,EAAC,eAAe,EAChC,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAC,UAAU,aAEnB,iCAAM,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,EACtC,iCAAM,CAAC,EAAC,qIAAqI,GAAG,IAC3I,GACO,CACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckboxCheckedIcon = CheckboxCheckedIcon;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lunatic_icon_1 = require("./lunatic-icon");
|
|
6
|
+
function CheckboxCheckedIcon({ className, width = 32, height = 32, }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(lunatic_icon_1.LunaticIcon, { className: className, children: (0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, x: "0", y: "0", enableBackground: "new 0 0 32 32", version: "1.1", viewBox: "0 0 32 32", xmlSpace: "preserve", children: [(0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0z", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })] }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=checkbox-disabled-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-disabled-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/checkbox-disabled-icon.tsx"],"names":[],"mappings":";;AAGA,kDAuBC;;AA1BD,iDAA6C;AAG7C,SAAgB,mBAAmB,CAAC,EACnC,SAAS,EACT,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,GACA;IACX,OAAO,CACN,uBAAC,0BAAW,IAAC,SAAS,EAAE,SAAS,YAChC,iCACC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,gBAAgB,EAAC,eAAe,EAChC,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAC,UAAU,aAEnB,iCAAM,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,EACtC,iCAAM,CAAC,EAAC,qIAAqI,GAAG,IAC3I,GACO,CACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckboxUncheckedIcon = CheckboxUncheckedIcon;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lunatic_icon_1 = require("./lunatic-icon");
|
|
6
|
+
function CheckboxUncheckedIcon({ className, width = 32, height = 32, }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(lunatic_icon_1.LunaticIcon, { className: className, children: (0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, x: "0", y: "0", enableBackground: "new 0 0 32 32", version: "1.1", viewBox: "0 0 32 32", xmlSpace: "preserve", children: [(0, jsx_runtime_1.jsx)("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), (0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0z", fill: "none" })] }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=checkbox-unchecked-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-unchecked-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/checkbox-unchecked-icon.tsx"],"names":[],"mappings":";;AAGA,sDAuBC;;AA1BD,iDAA6C;AAG7C,SAAgB,qBAAqB,CAAC,EACrC,SAAS,EACT,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,GACA;IACX,OAAO,CACN,uBAAC,0BAAW,IAAC,SAAS,EAAE,SAAS,YAChC,iCACC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,gBAAgB,EAAC,eAAe,EAChC,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAC,UAAU,aAEnB,iCAAM,CAAC,EAAC,4FAA4F,GAAG,EACvG,iCAAM,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,IACjC,GACO,CACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClosedIcon = ClosedIcon;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lunatic_icon_1 = require("./lunatic-icon");
|
|
6
|
+
function ClosedIcon({ className, width = 32, height = 32 }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(lunatic_icon_1.LunaticIcon, { className: className, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, x: "0", y: "0", enableBackground: "new 0 0 32 32", version: "1.1", viewBox: "0 0 32 32", xmlSpace: "preserve", children: (0, jsx_runtime_1.jsx)("path", { d: "M 25.628748,11.329813 C 25.38152,11.109877 25.088459,11 24.749838,11 H 7.2500941 C 6.9113359,11 6.6184798,11.109877 6.3710468,11.329813 6.1236139,11.549992 6,11.810303 6,12.111233 c 0,0.300869 0.1236139,0.56118 0.3710468,0.781177 l 8.7499062,7.777534 C 15.368659,20.88988 15.661516,21 16,21 c 0.338484,0 0.631614,-0.11012 0.878842,-0.330056 l 8.749906,-7.777595 C 25.875907,12.672413 26,12.412102 26,12.111172 c 0,-0.300869 -0.124093,-0.56118 -0.371252,-0.781359 z" }) }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=closed-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closed-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/closed-icon.tsx"],"names":[],"mappings":";;AAGA,gCAkBC;;AArBD,iDAA6C;AAG7C,SAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAa;IAC3E,OAAO,CACN,uBAAC,0BAAW,IAAC,SAAS,EAAE,SAAS,YAChC,gCACC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,gBAAgB,EAAC,eAAe,EAChC,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAC,UAAU,YAEnB,iCAAM,CAAC,EAAC,kdAAkd,GAAQ,GAC7d,GACO,CACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CrossIcon = CrossIcon;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lunatic_icon_1 = require("./lunatic-icon");
|
|
6
|
+
function CrossIcon({ className, width = 32, height = 32 }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(lunatic_icon_1.LunaticIcon, { className: className, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, x: "0", y: "0", enableBackground: "new 0 0 32 32", version: "1.1", viewBox: "0 0 32 32", xmlSpace: "preserve", children: (0, jsx_runtime_1.jsx)("path", { d: "M 7.097006,7.0709627 C 6.4710386,7.6950801 6.0348033,8.5167883 6,9.3333333 l 6.666666,6.6666677 -6.6666655,6.666666 C 6.0406655,24.255963 7.7002437,25.930395 9.3333333,26 L 15.999999,19.333334 22.666665,26 C 24.255962,25.95934 25.930393,24.299755 26,22.666667 L 19.333332,16.000001 26,9.3333334 C 25.959335,7.7440359 24.299754,6.069605 22.666665,6 L 15.999999,12.666666 9.3333333,6 C 8.5386853,6.020332 7.7229758,6.4468492 7.097006,7.0709627 Z" }) }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=cross-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cross-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/cross-icon.tsx"],"names":[],"mappings":";;AAGA,8BAkBC;;AArBD,iDAA6C;AAG7C,SAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAa;IAC1E,OAAO,CACN,uBAAC,0BAAW,IAAC,SAAS,EAAE,SAAS,YAChC,gCACC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,gBAAgB,EAAC,eAAe,EAChC,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAC,UAAU,YAEnB,iCAAM,CAAC,EAAC,6bAA6b,GAAQ,GACxc,GACO,CACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-props.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/icon-props.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckboxUncheckedIcon = exports.CheckboxCheckedIcon = exports.RadioUncheckedIcon = exports.RadioCheckedIcon = exports.OnDragIcon = exports.NetworkIcon = exports.LoadIcon = exports.OpenedIcon = exports.ClosedIcon = exports.CrossIcon = void 0;
|
|
4
|
+
var cross_icon_1 = require("./cross-icon");
|
|
5
|
+
Object.defineProperty(exports, "CrossIcon", { enumerable: true, get: function () { return cross_icon_1.CrossIcon; } });
|
|
6
|
+
var closed_icon_1 = require("./closed-icon");
|
|
7
|
+
Object.defineProperty(exports, "ClosedIcon", { enumerable: true, get: function () { return closed_icon_1.ClosedIcon; } });
|
|
8
|
+
var opened_icon_1 = require("./opened-icon");
|
|
9
|
+
Object.defineProperty(exports, "OpenedIcon", { enumerable: true, get: function () { return opened_icon_1.OpenedIcon; } });
|
|
10
|
+
var load_icon_1 = require("./load-icon");
|
|
11
|
+
Object.defineProperty(exports, "LoadIcon", { enumerable: true, get: function () { return load_icon_1.LoadIcon; } });
|
|
12
|
+
var network_icon_1 = require("./network-icon");
|
|
13
|
+
Object.defineProperty(exports, "NetworkIcon", { enumerable: true, get: function () { return network_icon_1.NetworkIcon; } });
|
|
14
|
+
var on_drag_icon_1 = require("./on-drag-icon");
|
|
15
|
+
Object.defineProperty(exports, "OnDragIcon", { enumerable: true, get: function () { return on_drag_icon_1.OnDragIcon; } });
|
|
16
|
+
var radio_checked_icon_1 = require("./radio-checked-icon");
|
|
17
|
+
Object.defineProperty(exports, "RadioCheckedIcon", { enumerable: true, get: function () { return radio_checked_icon_1.RadioCheckedIcon; } });
|
|
18
|
+
var radio_unchecked_icon_1 = require("./radio-unchecked-icon");
|
|
19
|
+
Object.defineProperty(exports, "RadioUncheckedIcon", { enumerable: true, get: function () { return radio_unchecked_icon_1.RadioUncheckedIcon; } });
|
|
20
|
+
var checkbox_checked_icon_1 = require("./checkbox-checked-icon");
|
|
21
|
+
Object.defineProperty(exports, "CheckboxCheckedIcon", { enumerable: true, get: function () { return checkbox_checked_icon_1.CheckboxCheckedIcon; } });
|
|
22
|
+
var checkbox_unchecked_icon_1 = require("./checkbox-unchecked-icon");
|
|
23
|
+
Object.defineProperty(exports, "CheckboxUncheckedIcon", { enumerable: true, get: function () { return checkbox_unchecked_icon_1.CheckboxUncheckedIcon; } });
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,yCAAuC;AAA9B,qGAAA,QAAQ,OAAA;AACjB,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,+CAA4C;AAAnC,0GAAA,UAAU,OAAA;AACnB,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAC3B,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoadIcon = LoadIcon;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lunatic_icon_1 = require("./lunatic-icon");
|
|
6
|
+
function LoadIcon({ className, width = 32, height = 32 }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(lunatic_icon_1.LunaticIcon, { className: className, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, x: "0", y: "0", enableBackground: "new 0 0 32 32", version: "1.1", viewBox: "0 0 32 32", xmlSpace: "preserve", children: (0, jsx_runtime_1.jsx)("path", { d: "m 10.628906,5.8808594 c -0.214987,-0.001 -0.42313,0.066105 -0.621094,0.203125 -0.197929,0.13695 -0.3337126,0.3059125 -0.4082026,0.5078125 -0.07434,0.20177 -0.063157,0.3725087 0.033203,0.5117187 L 10.667969,8.5996094 C 7.7654347,10.429719 6.000564,13.619938 6,17.054688 c 0,5.522849 4.477153,10 10,10 5.522847,0 10,-4.477151 10,-10 C 26.000084,13.846958 24.464581,10.867019 21.925781,9 l -2.167969,4.773438 c 0.779895,0.889532 1.238599,2.0462 1.242188,3.28125 0,2.76142 -2.238576,5 -5,5 -2.761424,0 -5,-2.238581 -5,-5 0.0042,-1.793391 0.969178,-3.443679 2.523438,-4.330079 l 1.089843,1.574219 c 0.09638,0.13927 0.25171,0.209318 0.466797,0.210938 0.215229,10e-4 0.421172,-0.06601 0.619141,-0.203125 0.19792,-0.13696 0.333879,-0.305933 0.408203,-0.507813 l 2.626953,-7.1386718 c 0.07422,-0.2019799 0.06311,-0.3725587 -0.0332,-0.5117187 -0.0963,-0.13917 -0.251768,-0.2093975 -0.4668,-0.2109375 z" }) }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=load-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/load-icon.tsx"],"names":[],"mappings":";;AAGA,4BAkBC;;AArBD,iDAA6C;AAG7C,SAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAa;IACzE,OAAO,CACN,uBAAC,0BAAW,IAAC,SAAS,EAAE,SAAS,YAChC,gCACC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,gBAAgB,EAAC,eAAe,EAChC,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAC,UAAU,YAEnB,iCAAM,CAAC,EAAC,63BAA63B,GAAQ,GACx4B,GACO,CACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LunaticIcon = LunaticIcon;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
+
function LunaticIcon({ className, children, }) {
|
|
10
|
+
return (0, jsx_runtime_1.jsx)("i", { className: (0, classnames_1.default)('lunatic-icon', className), children: children });
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=lunatic-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lunatic-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/lunatic-icon.tsx"],"names":[],"mappings":";;;;;AAGA,kCAKC;;AARD,4DAAoC;AAGpC,SAAgB,WAAW,CAAC,EAC3B,SAAS,EACT,QAAQ,GACmC;IAC3C,OAAO,8BAAG,SAAS,EAAE,IAAA,oBAAU,EAAC,cAAc,EAAE,SAAS,CAAC,YAAG,QAAQ,GAAK,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NetworkIcon = NetworkIcon;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lunatic_icon_1 = require("./lunatic-icon");
|
|
6
|
+
function NetworkIcon({ className, width = 32, height = 32 }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(lunatic_icon_1.LunaticIcon, { className: className, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, x: "0", y: "0", enableBackground: "new 0 0 32 32", version: "1.1", viewBox: "0 0 32 32", xmlSpace: "preserve", children: (0, jsx_runtime_1.jsx)("path", { d: "M 16.211514,6 C 11.574486,6.008 7.1494292,7.94279 4,11.34621 c 0.067313,0.60594 0.3511557,1.08182 1.0781965,1.29181 2.8398143,-3.15866 6.8857655,-4.96513 11.1333175,-4.9708 4.246875,0.008 8.291469,1.81516 11.12987,4.9742 0.42856,-0.18331 0.899659,-0.21808 1.074753,-1.28833 C 25.269539,7.94895 20.847185,6.00922 16.211514,6 Z m 0,3.33452 c -3.859338,0.004 -7.5270269,1.68269 -10.055121,4.59867 0.082129,0.59595 0.3347147,1.09028 1.0747495,1.2918 2.214919,-2.67556 5.5069425,-4.22502 8.9803715,-4.22664 3.472148,0.004 6.761427,1.5572 8.973481,4.23352 0.574616,-0.21997 1.032388,-0.55661 1.081639,-1.30212 -2.528736,-2.91477 -6.196335,-4.59084 -10.05512,-4.59523 z m -0.0034,3.33101 c -3.084894,0.002 -5.995941,1.42878 -7.8883982,3.86498 0.015118,0.87625 0.5660293,1.08257 1.095416,1.31584 1.5613712,-2.20255 4.0931392,-3.51208 6.7929792,-3.51359 2.700508,0.004 5.231123,1.31845 6.789531,3.52395 0.886465,-0.21657 1.135403,-0.70692 1.098867,-1.31932 -1.891063,-2.43881 -4.802322,-3.8677 -7.888395,-3.87186 z m 0,3.33449 c -2.316849,0.002 -4.46631,1.20748 -5.676888,3.18293 L 16.211554,26 21.884999,19.18982 c -1.2089,-1.97805 -3.358668,-3.18598 -5.676885,-3.1898 z" }) }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=network-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/network-icon.tsx"],"names":[],"mappings":";;AAGA,kCAkBC;;AArBD,iDAA6C;AAG7C,SAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAa;IAC5E,OAAO,CACN,uBAAC,0BAAW,IAAC,SAAS,EAAE,SAAS,YAChC,gCACC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,gBAAgB,EAAC,eAAe,EAChC,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAC,UAAU,YAEnB,iCAAM,CAAC,EAAC,4oCAA4oC,GAAG,GAClpC,GACO,CACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OnDragIcon = OnDragIcon;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lunatic_icon_1 = require("./lunatic-icon");
|
|
6
|
+
function OnDragIcon({ className, width = 32, height = 32 }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(lunatic_icon_1.LunaticIcon, { className: className, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, x: "0", y: "0", enableBackground: "new 0 0 32 32", version: "1.1", viewBox: "0 0 32 32", xmlSpace: "preserve", children: (0, jsx_runtime_1.jsx)("path", { d: "M 15.998805,0 C 15.791758,0 15.614821,0.068587 15.4636,0.2030911 L 10.109162,4.9578137 C 9.95798,5.0923491 9.884566,5.2516109 9.884566,5.4356753 c 0,0.1840189 0.07342,0.3431857 0.224596,0.4778615 0.151203,0.1345354 0.330468,0.2030913 0.537594,0.2030913 h 4.205182 V 14.854326 H 6.1166281 v -4.202792 c 0,-0.2072 -0.068555,-0.388637 -0.2030912,-0.539983 C 5.7788793,9.9602251 5.6197345,9.8845661 5.4356754,9.8845661 c -0.1840494,0 -0.3432982,0.07566 -0.4778615,0.2269849 L 0.2030911,15.4636 C 0.0685559,15.615109 1.2e-6,15.794159 0,16.001195 0,16.208242 0.068592,16.385179 0.2030911,16.5364 l 4.7547228,5.352049 c 0.1345352,0.151182 0.2937975,0.226985 0.4778615,0.226985 0.1840188,0 0.3431856,-0.07581 0.4778615,-0.226985 0.1345353,-0.151203 0.2030912,-0.328079 0.2030912,-0.535205 v -4.205182 h 8.7353099 v 8.73531 h -4.202794 c -0.207124,0 -0.388779,0.06855 -0.539982,0.203092 -0.151179,0.134675 -0.224596,0.293842 -0.224596,0.477861 0,0.184064 0.07341,0.343326 0.224596,0.477862 L 15.4636,31.796909 C 15.614821,31.931407 15.794147,32 16.001195,32 c 0.207036,-1e-6 0.383696,-0.06855 0.535205,-0.203091 l 5.352049,-4.754722 c 0.151326,-0.134563 0.226985,-0.293813 0.226985,-0.477862 0,-0.184058 -0.07566,-0.343204 -0.226985,-0.477861 -0.151346,-0.134536 -0.337561,-0.203092 -0.544762,-0.203092 h -4.198013 v -8.73531 h 8.737698 v 4.202793 c 0,0.207125 0.06855,0.386391 0.203092,0.537594 0.134675,0.151179 0.293842,0.226985 0.477861,0.226985 0.184064,0 0.343326,-0.0758 0.477862,-0.226985 L 31.796909,16.5364 C 31.931407,16.385179 32,16.205853 32,15.998805 31.999999,15.791768 31.93144,15.615109 31.796909,15.4636 L 27.042187,10.111551 C 26.907624,9.9602251 26.748374,9.8845661 26.564325,9.8845661 c -0.184058,0 -0.343204,0.07566 -0.477861,0.2269849 -0.134536,0.151346 -0.203092,0.335171 -0.203092,0.542372 v 4.200403 H 17.145674 V 6.1166281 h 4.200403 c 0.207201,0 0.391026,-0.068557 0.542372,-0.2030913 0.151326,-0.1346576 0.226985,-0.2938028 0.226985,-0.4778615 0,-0.1840494 -0.07566,-0.3432989 -0.226985,-0.4778616 L 16.5364,0.2030911 C 16.384891,0.0685559 16.205841,1.5e-6 15.998805,0 Z" }) }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=on-drag-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"on-drag-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/on-drag-icon.tsx"],"names":[],"mappings":";;AAGA,gCAkBC;;AArBD,iDAA6C;AAG7C,SAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAa;IAC3E,OAAO,CACN,uBAAC,0BAAW,IAAC,SAAS,EAAE,SAAS,YAChC,gCACC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,gBAAgB,EAAC,eAAe,EAChC,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAC,UAAU,YAEnB,iCAAM,CAAC,EAAC,4iEAA4iE,GAAG,GACljE,GACO,CACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenedIcon = OpenedIcon;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lunatic_icon_1 = require("./lunatic-icon");
|
|
6
|
+
function OpenedIcon({ className, width = 32, height = 32 }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(lunatic_icon_1.LunaticIcon, { className: className, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, x: "0", y: "0", enableBackground: "new 0 0 32 32", version: "1.1", viewBox: "0 0 32 32", xmlSpace: "preserve", children: (0, jsx_runtime_1.jsx)("path", { d: "M 11.329813,6.371252 C 11.109877,6.61848 11,6.911541 11,7.250162 v 17.499744 c 0,0.338758 0.109877,0.631614 0.329813,0.879047 C 11.549992,25.876386 11.810303,26 12.111233,26 c 0.300869,0 0.56118,-0.123614 0.781177,-0.371047 l 7.777534,-8.749906 C 20.88988,16.631341 21,16.338484 21,16 21,15.661516 20.88988,15.368386 20.669944,15.121158 L 12.892349,6.371252 C 12.672413,6.124093 12.412102,6 12.111172,6 11.810303,6 11.549992,6.124093 11.329813,6.371252 Z" }) }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=opened-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opened-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/opened-icon.tsx"],"names":[],"mappings":";;AAGA,gCAkBC;;AArBD,iDAA6C;AAG7C,SAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAa;IAC3E,OAAO,CACN,uBAAC,0BAAW,IAAC,SAAS,EAAE,SAAS,YAChC,gCACC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,gBAAgB,EAAC,eAAe,EAChC,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAC,UAAU,YAEnB,iCAAM,CAAC,EAAC,wcAAwc,GAAQ,GACnd,GACO,CACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RadioCheckedIcon = RadioCheckedIcon;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lunatic_icon_1 = require("./lunatic-icon");
|
|
6
|
+
function RadioCheckedIcon({ className, width = 32, height = 32, }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(lunatic_icon_1.LunaticIcon, { className: className, children: (0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, x: "0", y: "0", enableBackground: "new 0 0 32 32", version: "1.1", viewBox: "0 0 32 32", xmlSpace: "preserve", children: [(0, jsx_runtime_1.jsx)("path", { d: "M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), (0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0z", fill: "none" })] }) }));
|
|
8
|
+
}
|
|
9
|
+
exports.default = RadioCheckedIcon;
|
|
10
|
+
//# sourceMappingURL=radio-checked-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-checked-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/radio-checked-icon.tsx"],"names":[],"mappings":";;AAGA,4CAuBC;;AA1BD,iDAA6C;AAG7C,SAAgB,gBAAgB,CAAC,EAChC,SAAS,EACT,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,GACA;IACX,OAAO,CACN,uBAAC,0BAAW,IAAC,SAAS,EAAE,SAAS,YAChC,iCACC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,gBAAgB,EAAC,eAAe,EAChC,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAC,UAAU,aAEnB,iCAAM,CAAC,EAAC,uLAAuL,GAAG,EAClM,iCAAM,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,IACjC,GACO,CACd,CAAC;AACH,CAAC;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RadioUncheckedIcon = RadioUncheckedIcon;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const lunatic_icon_1 = require("./lunatic-icon");
|
|
6
|
+
function RadioUncheckedIcon({ className, width = 32, height = 32, }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(lunatic_icon_1.LunaticIcon, { className: className, children: (0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, x: "0", y: "0", enableBackground: "new 0 0 32 32", version: "1.1", viewBox: "0 0 32 32", xmlSpace: "preserve", children: [(0, jsx_runtime_1.jsx)("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), (0, jsx_runtime_1.jsx)("path", { d: "M0 0h24v24H0z", fill: "none" })] }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=radio-unchecked-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-unchecked-icon.js","sourceRoot":"","sources":["../../../src/components/shared/Icons/radio-unchecked-icon.tsx"],"names":[],"mappings":";;AAGA,gDAuBC;;AA1BD,iDAA6C;AAG7C,SAAgB,kBAAkB,CAAC,EAClC,SAAS,EACT,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,GACA;IACX,OAAO,CACN,uBAAC,0BAAW,IAAC,SAAS,EAAE,SAAS,YAChC,iCACC,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,gBAAgB,EAAC,eAAe,EAChC,OAAO,EAAC,KAAK,EACb,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAC,UAAU,aAEnB,iCAAM,CAAC,EAAC,8HAA8H,GAAG,EACzI,iCAAM,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,IACjC,GACO,CACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Label = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
+
const slottableComponent_1 = require("../HOC/slottableComponent");
|
|
10
|
+
const LabelDescription_1 = require("../LabelDescription");
|
|
11
|
+
/**
|
|
12
|
+
* Label displayed on top of a field
|
|
13
|
+
*/
|
|
14
|
+
function LunaticLabel({ children, id, htmlFor, className, style, description, }) {
|
|
15
|
+
if (!children) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)("label", { htmlFor: htmlFor, id: id, className: (0, classnames_1.default)('lunatic-label', className), style: style, children: [children, (0, jsx_runtime_1.jsx)(LabelDescription_1.LabelDescription, { value: description })] }));
|
|
19
|
+
}
|
|
20
|
+
exports.Label = (0, slottableComponent_1.slottableComponent)('Label', LunaticLabel);
|
|
21
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../src/components/shared/Label/Label.tsx"],"names":[],"mappings":";;;;;;;AAKA,4DAAoC;AACpC,kEAA+D;AAC/D,0DAAuD;AAWvD;;GAEG;AACH,SAAS,YAAY,CAAC,EACrB,QAAQ,EACR,EAAE,EACF,OAAO,EACP,SAAS,EACT,KAAK,EACL,WAAW,GACJ;IACP,IAAI,CAAC,QAAQ,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACb,CAAC;IACD,OAAO,CACN,mCACC,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,IAAA,oBAAU,EAAC,eAAe,EAAE,SAAS,CAAC,EACjD,KAAK,EAAE,KAAK,aAEX,QAAQ,EACT,uBAAC,mCAAgB,IAAC,KAAK,EAAE,WAAW,GAAI,IACjC,CACR,CAAC;AACH,CAAC;AAEY,QAAA,KAAK,GAAG,IAAA,uCAAkB,EAAC,OAAO,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const react_1 = require("@testing-library/react");
|
|
5
|
+
const Label_1 = require("./Label");
|
|
6
|
+
const vitest_1 = require("vitest");
|
|
7
|
+
(0, vitest_1.describe)('Label', () => {
|
|
8
|
+
(0, vitest_1.it)('renders null when children is falsy', () => {
|
|
9
|
+
const { container } = (0, react_1.render)((0, jsx_runtime_1.jsx)(Label_1.Label, { htmlFor: "input", id: "label", description: "This is a label", children: null }));
|
|
10
|
+
(0, vitest_1.expect)(container.firstChild).toBeNull();
|
|
11
|
+
});
|
|
12
|
+
(0, vitest_1.it)('renders a label without description', () => {
|
|
13
|
+
const { getByText, queryByText } = (0, react_1.render)((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Label_1.Label, { htmlFor: "kze792d8", id: "label", children: (0, jsx_runtime_1.jsx)("p", { children: "Name" }) }), (0, jsx_runtime_1.jsx)("input", { id: "kze792d8", className: "", type: "number", "aria-labelledby": "label", min: "0", max: "10", value: "", lang: "en" })] }));
|
|
14
|
+
const label = getByText('Name');
|
|
15
|
+
(0, vitest_1.expect)(label).toBeInTheDocument();
|
|
16
|
+
(0, vitest_1.expect)(label.parentNode).toHaveAttribute('for', 'kze792d8');
|
|
17
|
+
const description = queryByText('This is a label');
|
|
18
|
+
(0, vitest_1.expect)(description).not.toBeInTheDocument();
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=Label.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.spec.js","sourceRoot":"","sources":["../../../src/components/shared/Label/Label.spec.tsx"],"names":[],"mappings":";;;AAAA,kDAAgD;AAChD,mCAAgC;AAChC,mCAA8C;AAE9C,IAAA,iBAAQ,EAAC,OAAO,EAAE,GAAG,EAAE;IACtB,IAAA,WAAE,EAAC,qCAAqC,EAAE,GAAG,EAAE;QAC9C,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,cAAM,EAC3B,uBAAC,aAAK,IAAC,OAAO,EAAC,OAAO,EAAC,EAAE,EAAC,OAAO,EAAC,WAAW,EAAC,iBAAiB,YAC7D,IAAI,GACE,CACR,CAAC;QAEF,IAAA,eAAM,EAAC,SAAS,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,qCAAqC,EAAE,GAAG,EAAE;QAC9C,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,IAAA,cAAM,EACxC,6DACC,uBAAC,aAAK,IAAC,OAAO,EAAC,UAAU,EAAC,EAAE,EAAC,OAAO,YACnC,iDAAW,GACJ,EACR,kCACC,EAAE,EAAC,UAAU,EACb,SAAS,EAAC,EAAE,EACZ,IAAI,EAAC,QAAQ,qBACG,OAAO,EACvB,GAAG,EAAC,GAAG,EACP,GAAG,EAAC,IAAI,EACR,KAAK,EAAC,EAAE,EACR,IAAI,EAAC,IAAI,GACD,IACP,CACH,CAAC;QAEF,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;QAChC,IAAA,eAAM,EAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,CAAC;QAClC,IAAA,eAAM,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;QAC5D,MAAM,WAAW,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;QACnD,IAAA,eAAM,EAAC,WAAW,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LabelDescription = LabelDescription;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
+
const react_1 = __importDefault(require("react"));
|
|
10
|
+
function LabelDescription({ value, className }) {
|
|
11
|
+
if ((typeof value === 'string' && value.length > 0) ||
|
|
12
|
+
react_1.default.isValidElement(value)) {
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)("span", { className: (0, classnames_1.default)('label-description', className), children: value }));
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=LabelDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabelDescription.js","sourceRoot":"","sources":["../../src/components/shared/LabelDescription.tsx"],"names":[],"mappings":";;;;;AAQA,4CAaC;;AArBD,4DAAoC;AACpC,kDAA8C;AAO9C,SAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAS;IAC3D,IACC,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QAC/C,eAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAC1B,CAAC;QACF,OAAO,CACN,iCAAM,SAAS,EAAE,IAAA,oBAAU,EAAC,mBAAmB,EAAE,SAAS,CAAC,YACzD,KAAK,GACA,CACP,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC"}
|