@inseefr/lunatic 2.4.3-beta → 2.4.4-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/lib/components/commons/components/lunatic-component-without-label.js +11 -4
  2. package/lib/components/questions/index.js +20 -0
  3. package/lib/components/questions/question-context .js +21 -0
  4. package/lib/components/questions/question-context.scss +9 -0
  5. package/lib/components/questions/question-information.js +21 -0
  6. package/lib/components/questions/question-information.scss +18 -0
  7. package/lib/components/questions/type.js +5 -0
  8. package/lib/components/sequence/html/sequence.js +22 -0
  9. package/lib/components/sequence/index.js +2 -2
  10. package/lib/components/sequence/lunatic-sequence.js +35 -0
  11. package/lib/components/sequence/sequence.spec.js +18 -23
  12. package/lib/components/suggester/idb-suggester/check-store.js +5 -3
  13. package/lib/components/table/lunatic-table.js +1 -2
  14. package/lib/components/table/table-orchestrator.js +2 -4
  15. package/lib/src/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.d.ts +1 -2
  16. package/lib/src/components/checkbox/checkbox-group/checkbox-group-content.d.ts +1 -2
  17. package/lib/src/components/checkbox/checkbox-group/html/checkbox-group-content.d.ts +1 -2
  18. package/lib/src/components/checkbox/checkbox-group/lunatic-checkbox-group.d.ts +1 -1
  19. package/lib/src/components/checkbox/checkbox-one/lunatic-checkbox-one.d.ts +1 -2
  20. package/lib/src/components/commons/components/combo-box/combo-box-container.d.ts +1 -1
  21. package/lib/src/components/commons/components/combo-box/combo-box-content.d.ts +1 -1
  22. package/lib/src/components/commons/components/combo-box/panel/option-container.d.ts +1 -1
  23. package/lib/src/components/commons/components/combo-box/panel/panel-container.d.ts +1 -1
  24. package/lib/src/components/commons/components/combo-box/panel/panel.d.ts +1 -1
  25. package/lib/src/components/commons/components/combo-box/selection/delete.d.ts +1 -2
  26. package/lib/src/components/commons/components/combo-box/selection/displayLabelOrInput.d.ts +1 -1
  27. package/lib/src/components/commons/components/combo-box/selection/input.d.ts +1 -2
  28. package/lib/src/components/commons/components/combo-box/selection/label-selection.d.ts +2 -2
  29. package/lib/src/components/commons/components/combo-box/selection/selection-container.d.ts +1 -1
  30. package/lib/src/components/commons/components/combo-box/selection/selection.d.ts +1 -2
  31. package/lib/src/components/commons/components/default-label-renderer.d.ts +1 -2
  32. package/lib/src/components/commons/components/default-option-renderer.d.ts +1 -2
  33. package/lib/src/components/commons/components/description.d.ts +1 -1
  34. package/lib/src/components/commons/components/dragger/dragger.d.ts +1 -1
  35. package/lib/src/components/commons/components/errors/errors.d.ts +1 -2
  36. package/lib/src/components/commons/components/fab/fab.d.ts +1 -1
  37. package/lib/src/components/commons/components/field-container/field-container.d.ts +1 -1
  38. package/lib/src/components/commons/components/is-network/is-network.d.ts +1 -2
  39. package/lib/src/components/commons/components/lunatic-component-with-label.d.ts +1 -1
  40. package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +2 -2
  41. package/lib/src/components/commons/components/md-label/link.d.ts +1 -1
  42. package/lib/src/components/commons/components/md-label/md-label.d.ts +1 -2
  43. package/lib/src/components/commons/components/missing/missing.d.ts +2 -3
  44. package/lib/src/components/commons/components/nothing-to-display.d.ts +1 -2
  45. package/lib/src/components/commons/components/orchestrated-component.d.ts +1 -2
  46. package/lib/src/components/commons/components/variable-status/variable-status.d.ts +1 -1
  47. package/lib/src/components/commons/create-row-orchestrator.d.ts +1 -1
  48. package/lib/src/components/commons/icons/checkbox-checked-icon.d.ts +1 -2
  49. package/lib/src/components/commons/icons/checkbox-unchecked-icon.d.ts +1 -2
  50. package/lib/src/components/commons/icons/closed-icon.d.ts +1 -2
  51. package/lib/src/components/commons/icons/cross-icon.d.ts +1 -2
  52. package/lib/src/components/commons/icons/load-icon.d.ts +1 -2
  53. package/lib/src/components/commons/icons/lunatic-icon.d.ts +1 -1
  54. package/lib/src/components/commons/icons/network-icon.d.ts +1 -2
  55. package/lib/src/components/commons/icons/on-drag-icon.d.ts +1 -2
  56. package/lib/src/components/commons/icons/opened-icon.d.ts +1 -2
  57. package/lib/src/components/commons/icons/radio-checked-icon.d.ts +1 -2
  58. package/lib/src/components/commons/icons/radio-unchecked-icon.d.ts +1 -2
  59. package/lib/src/components/component-set/html/component-set-components.d.ts +1 -2
  60. package/lib/src/components/component-set/html/legend/legend.d.ts +1 -1
  61. package/lib/src/components/component-set/lunatic-component-set.d.ts +1 -2
  62. package/lib/src/components/datepicker/html/datepicker-container.d.ts +1 -1
  63. package/lib/src/components/datepicker/html/datepicker-input.d.ts +1 -1
  64. package/lib/src/components/declarations/declarations-after-text.d.ts +1 -2
  65. package/lib/src/components/declarations/declarations-before-text.d.ts +1 -2
  66. package/lib/src/components/declarations/declarations-detachable.d.ts +1 -2
  67. package/lib/src/components/dropdown/html/dropdown-simple/dropdown-simple.d.ts +1 -2
  68. package/lib/src/components/dropdown/html/dropdown-simple/simple-label-renderer.d.ts +1 -2
  69. package/lib/src/components/dropdown/html/dropdown-simple/simple-option-renderer.d.ts +1 -2
  70. package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +1 -1
  71. package/lib/src/components/dropdown/html/dropdown-writable/writable-label-renderer.d.ts +1 -2
  72. package/lib/src/components/dropdown/html/dropdown-writable/writable-option-renderer.d.ts +1 -2
  73. package/lib/src/components/dropdown/lunatic-dropdown.d.ts +1 -2
  74. package/lib/src/components/input/lunatic-input.d.ts +1 -2
  75. package/lib/src/components/input-number/html/input-number-default.d.ts +1 -2
  76. package/lib/src/components/input-number/html/input-number-thousand.d.ts +1 -2
  77. package/lib/src/components/input-number/lunatic-input-number.d.ts +1 -2
  78. package/lib/src/components/loop/block-for-loop/block-for-loop-ochestrator.d.ts +1 -1
  79. package/lib/src/components/loop/block-for-loop/row.d.ts +1 -2
  80. package/lib/src/components/loop/commons/handle-row-button.d.ts +1 -1
  81. package/lib/src/components/loop/commons/row-component.d.ts +1 -2
  82. package/lib/src/components/loop/loop.d.ts +1 -2
  83. package/lib/src/components/loop/roster-for-loop/body.d.ts +1 -2
  84. package/lib/src/components/loop/roster-for-loop/header.d.ts +1 -1
  85. package/lib/src/components/loop/roster-for-loop/roster-for-loop-orchestrator.d.ts +1 -1
  86. package/lib/src/components/loop/roster-for-loop/roster-table.d.ts +1 -2
  87. package/lib/src/components/loop/roster-for-loop/row.d.ts +1 -2
  88. package/lib/src/components/modal-controls/close-or-skip.d.ts +1 -1
  89. package/lib/src/components/modal-controls/modal-controls.d.ts +1 -1
  90. package/lib/src/components/pairwise-links/orchestrator.d.ts +1 -2
  91. package/lib/src/components/pairwise-links/pairwise-links.d.ts +1 -2
  92. package/lib/src/components/pairwise-links/row.d.ts +1 -2
  93. package/lib/src/components/questions/index.d.ts +2 -0
  94. package/lib/src/components/questions/question-context .d.ts +5 -0
  95. package/lib/src/components/questions/question-information.d.ts +5 -0
  96. package/lib/src/components/questions/type.d.ts +4 -0
  97. package/lib/src/components/radio/html/radio-group-content.d.ts +1 -1
  98. package/lib/src/components/roundabout/lunatic-roundabout.d.ts +1 -2
  99. package/lib/src/components/roundabout/redirect.d.ts +1 -2
  100. package/lib/src/components/sequence/html/sequence.d.ts +5 -0
  101. package/lib/src/components/sequence/index.d.ts +1 -1
  102. package/lib/src/components/sequence/lunatic-sequence.d.ts +3 -0
  103. package/lib/src/components/suggester/idb-suggester/check-store.d.ts +1 -1
  104. package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +1 -2
  105. package/lib/src/components/suggester/idb-suggester/suggester-status.d.ts +1 -1
  106. package/lib/src/components/suggester/lunatic-suggester.d.ts +1 -2
  107. package/lib/src/components/suggester-loader-widget/loader-row.d.ts +1 -2
  108. package/lib/src/components/suggester-loader-widget/loader.d.ts +1 -2
  109. package/lib/src/components/suggester-loader-widget/progress.d.ts +1 -2
  110. package/lib/src/components/suggester-loader-widget/tools/action-tool.d.ts +1 -1
  111. package/lib/src/components/suggester-loader-widget/tools/tools.d.ts +1 -1
  112. package/lib/src/components/suggester-loader-widget/widget.d.ts +1 -2
  113. package/lib/src/components/switch/lunatic-switch.d.ts +1 -2
  114. package/lib/src/components/table/cell.d.ts +2 -3
  115. package/lib/src/components/table/header.d.ts +1 -1
  116. package/lib/src/components/table/lunatic-table.d.ts +1 -2
  117. package/lib/src/components/table/row.d.ts +2 -3
  118. package/lib/src/components/table/table-orchestrator.d.ts +2 -3
  119. package/lib/src/components/textarea/lunatic-textarea.d.ts +1 -2
  120. package/lib/src/components/type.d.ts +3 -1
  121. package/lib/stories/sequence/sequence.stories.js +41 -0
  122. package/lib/stories/sequence/source-declarations.json +31 -0
  123. package/lib/stories/sequence/source-questions.json +19 -0
  124. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +1 -1
  125. package/package.json +1 -1
  126. package/lib/components/sequence/sequence.js +0 -35
  127. package/lib/src/components/sequence/sequence.d.ts +0 -4
  128. /package/lib/components/sequence/{sequence.scss → html/sequence.scss} +0 -0
@@ -5,5 +5,5 @@ type Props = PropsWithChildren<{
5
5
  title?: string;
6
6
  display?: boolean;
7
7
  }>;
8
- declare function ActionTool({ children, ariaLabel, className, title, display, }: Props): JSX.Element | null;
8
+ declare function ActionTool({ children, ariaLabel, className, title, display, }: Props): import("react/jsx-runtime").JSX.Element | null;
9
9
  export default ActionTool;
@@ -1,3 +1,3 @@
1
1
  import { PropsWithChildren } from 'react';
2
- declare function Tools({ children }: PropsWithChildren): JSX.Element;
2
+ declare function Tools({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
3
3
  export default Tools;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './widget.scss';
3
2
  import { SuggesterType } from '../../use-lunatic/type-source';
4
3
  type Props = {
@@ -12,5 +11,5 @@ type Props = {
12
11
  fetch: () => Promise<unknown[]>;
13
12
  };
14
13
  };
15
- declare function SuggesterLoaderWidget({ source, getStoreInfo, onRefresh, absolute, }: Props): JSX.Element;
14
+ declare function SuggesterLoaderWidget({ source, getStoreInfo, onRefresh, absolute, }: Props): import("react/jsx-runtime").JSX.Element;
16
15
  export default SuggesterLoaderWidget;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LunaticComponentProps } from '../type';
3
- declare function LunaticSwitch({ id, value, statusLabel, handleChange, response, preferences, declarations, missing, missingResponse, management, description, label, errors, }: LunaticComponentProps<'Switch'>): JSX.Element;
2
+ declare function LunaticSwitch({ id, value, statusLabel, handleChange, response, preferences, declarations, missing, missingResponse, management, description, label, errors, }: LunaticComponentProps<'Switch'>): import("react/jsx-runtime").JSX.Element;
4
3
  export default LunaticSwitch;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LunaticBaseProps } from '../type';
3
2
  import type { LunaticComponentDefinition, LunaticExpression } from '../../use-lunatic/type';
4
3
  type Props = {
@@ -14,7 +13,7 @@ type Props = {
14
13
  row?: string | number;
15
14
  index?: string | number;
16
15
  handleChange: LunaticBaseProps['handleChange'];
17
- errors: LunaticBaseProps['errors'];
16
+ errors?: LunaticBaseProps['errors'];
18
17
  };
19
- declare function Cell({ content, id, executeExpression, iteration, value, row, index, handleChange, errors, }: Props): JSX.Element;
18
+ declare function Cell({ content, id, executeExpression, iteration, value, row, index, handleChange, errors, }: Props): import("react/jsx-runtime").JSX.Element;
20
19
  export default Cell;
@@ -7,5 +7,5 @@ type Props = {
7
7
  rowspan?: number;
8
8
  }>;
9
9
  };
10
- declare function Header({ id, header }: Props): JSX.Element | null;
10
+ declare function Header({ id, header }: Props): import("react/jsx-runtime").JSX.Element | null;
11
11
  export default Header;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LunaticComponentProps } from '../type';
3
- declare function LunaticTable(props: LunaticComponentProps<'Table'>): JSX.Element;
2
+ declare function LunaticTable(props: LunaticComponentProps<'Table'>): import("react/jsx-runtime").JSX.Element;
4
3
  export default LunaticTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { LunaticComponentDefinition, LunaticExpression } from '../../use-lunatic/type';
3
2
  import { LunaticBaseProps } from '../type';
4
3
  type Props = {
@@ -13,7 +12,7 @@ type Props = {
13
12
  valueMap: Record<string, unknown>;
14
13
  rowIndex?: string | number;
15
14
  handleChange: LunaticBaseProps['handleChange'];
16
- errors: LunaticBaseProps['errors'];
15
+ errors?: LunaticBaseProps['errors'];
17
16
  };
18
- declare function Row({ id, components, executeExpression, valueMap, rowIndex, iteration, handleChange, errors, }: Props): JSX.Element;
17
+ declare function Row({ id, components, executeExpression, valueMap, rowIndex, iteration, handleChange, errors, }: Props): import("react/jsx-runtime").JSX.Element;
19
18
  export default Row;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  import { LunaticComponentProps } from '../type';
3
- type Props = {} & Pick<LunaticComponentProps<'Table'>, 'body' | 'id' | 'executeExpression' | 'value' | 'handleChange' | 'iteration' | 'errors'>;
4
- declare function TableOrchestrator({ body, id, executeExpression, value: valueMap, handleChange, iteration, errors, }: Props): JSX.Element | null;
2
+ type Props = {} & Pick<LunaticComponentProps<'Table'>, 'body' | 'id' | 'executeExpression' | 'value' | 'handleChange' | 'iteration'>;
3
+ declare function TableOrchestrator({ body, id, executeExpression, value: valueMap, handleChange, iteration, }: Props): import("react/jsx-runtime").JSX.Element | null;
5
4
  export default TableOrchestrator;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from 'prop-types';
3
2
  import { LunaticComponentProps } from '../type';
4
3
  declare const LunaticTextarea: {
5
- (props: LunaticComponentProps<'Textarea'>): JSX.Element;
4
+ (props: LunaticComponentProps<'Textarea'>): import("react/jsx-runtime").JSX.Element;
6
5
  defaultProps: {
7
6
  rows: number;
8
7
  maxLength: number;
@@ -36,6 +36,8 @@ export type LunaticBaseProps<ValueType = unknown> = {
36
36
  executeExpression: LunaticState['executeExpression'];
37
37
  features?: string[];
38
38
  componentType?: string;
39
+ questionContext?: ReactNode;
40
+ questionInformation?: ReactNode;
39
41
  };
40
42
  export type SuggesterOption = {
41
43
  children?: string[];
@@ -67,7 +69,7 @@ type ComponentPropsByType = {
67
69
  name: string;
68
70
  };
69
71
  };
70
- Sequence: Pick<LunaticBaseProps<string>, 'id' | 'declarations' | 'label' | 'style'>;
72
+ Sequence: Pick<LunaticBaseProps<string>, 'id' | 'declarations' | 'label' | 'style' | 'questionContext' | 'questionInformation'>;
71
73
  Subsequence: Pick<LunaticBaseProps<string>, 'id' | 'declarations' | 'label'>;
72
74
  ComponentSet: LunaticBaseProps<unknown> & {
73
75
  components: LunaticComponentDefinition[];
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = exports.WithQuestions = exports.WithDeclarations = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _orchestrator = _interopRequireDefault(require("../utils/orchestrator"));
9
+ var _sourceDeclarations = _interopRequireDefault(require("./source-declarations.json"));
10
+ var _sourceQuestions = _interopRequireDefault(require("./source-questions.json"));
11
+ var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
15
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
+ var stories = {
21
+ title: 'Components/Sequence',
22
+ component: _orchestrator["default"],
23
+ argTypes: _objectSpread({}, _defaultArgTypes["default"])
24
+ };
25
+ var _default = stories;
26
+ exports["default"] = _default;
27
+ var Template = function Template(args) {
28
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_orchestrator["default"], _objectSpread({}, args));
29
+ };
30
+ var WithDeclarations = Template.bind({});
31
+ exports.WithDeclarations = WithDeclarations;
32
+ WithDeclarations.args = {
33
+ id: 'sequence-declarations',
34
+ source: _sourceDeclarations["default"]
35
+ };
36
+ var WithQuestions = Template.bind({});
37
+ exports.WithQuestions = WithQuestions;
38
+ WithQuestions.args = {
39
+ id: 'sequence-questions',
40
+ source: _sourceQuestions["default"]
41
+ };
@@ -0,0 +1,31 @@
1
+ {
2
+ "maxPages": "1",
3
+ "components": [
4
+ {
5
+ "componentType": "Sequence",
6
+ "page": "1",
7
+ "conditionFilter": { "value": "true", "type": "VTL" },
8
+ "label": { "value": "\"Sequence example\"", "type": "VTL|MD" },
9
+ "declarations": [
10
+ {
11
+ "id": "kb9hi4j0-krnoclfe",
12
+ "declarationType": "INSTRUCTION",
13
+ "position": "BEFORE_QUESTION_TEXT",
14
+ "label": {
15
+ "value": "\"Déclaration Before\"",
16
+ "type": "VTL|MD"
17
+ }
18
+ },
19
+ {
20
+ "id": "kb9hi4j0-krnoclfe",
21
+ "declarationType": "HELP",
22
+ "position": "DETACHABLE",
23
+ "label": {
24
+ "value": "\"Declaration Detachable\"",
25
+ "type": "VTL|MD"
26
+ }
27
+ }
28
+ ]
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "maxPages": "1",
3
+ "components": [
4
+ {
5
+ "componentType": "Sequence",
6
+ "page": "1",
7
+ "conditionFilter": { "value": "true", "type": "VTL" },
8
+ "label": { "value": "\"Sequence example\"", "type": "VTL|MD" },
9
+ "questionInformation": {
10
+ "value": "\"Question Information\"",
11
+ "type": "VTL|MD"
12
+ },
13
+ "questionContext": {
14
+ "value": "\"Question Context\"",
15
+ "type": "VTL|MD"
16
+ }
17
+ }
18
+ ]
19
+ }
@@ -24,7 +24,7 @@ var VTL_ATTRIBUTES = ['label', 'options.label', 'responses.label', 'hierarchy.la
24
24
  // Disable controls compilation
25
25
  // 'controls.control',
26
26
  // 'controls.errorMessage',
27
- 'controls.iterations', 'lines.min', 'lines.max', 'iterations', 'xAxisIterations', 'yAxisIterations', 'conditionFilter', 'headers.label', 'header.label'];
27
+ 'controls.iterations', 'lines.min', 'lines.max', 'iterations', 'xAxisIterations', 'yAxisIterations', 'conditionFilter', 'headers.label', 'header.label', 'questionContext', 'questionInformation'];
28
28
 
29
29
  // Utility type to replace all expression from an object into a translated version
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inseefr/lunatic",
3
- "version": "2.4.3-beta",
3
+ "version": "2.4.4-beta",
4
4
  "workersVersion": "0.2.5-experimental",
5
5
  "description": "Library of questionnaire components",
6
6
  "repository": {
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _declarations = require("../declarations");
8
- require("./sequence.scss");
9
- var _commons = require("../commons");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function Sequence(_ref) {
12
- var declarations = _ref.declarations,
13
- label = _ref.label,
14
- id = _ref.id,
15
- style = _ref.style;
16
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
17
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_declarations.DeclarationsBeforeText, {
18
- declarations: declarations,
19
- id: id
20
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
21
- className: "sequence-lunatic",
22
- id: "sequence-".concat(id),
23
- style: style,
24
- children: label
25
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_declarations.DeclarationsAfterText, {
26
- declarations: declarations,
27
- id: id
28
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_declarations.DeclarationsDetachable, {
29
- declarations: declarations,
30
- id: id
31
- })]
32
- });
33
- }
34
- var _default = (0, _commons.createCustomizableLunaticField)(Sequence, 'Sequence');
35
- exports["default"] = _default;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './sequence.scss';
3
- declare const _default: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<string>, "label" | "style" | "id" | "declarations">>;
4
- export default _default;