@pareto-engineering/design-system 5.9.0 → 5.10.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/dist/{FormBuilder-D0lMP-MB.js → FormBuilder-DfzGoJzj.js} +13098 -13034
- package/dist/assets/DraggableItem.css +1 -1
- package/dist/assets/FormBuilder.css +1 -1
- package/dist/assets/ProgressBar.css +1 -1
- package/dist/assets/ToggleSwitch.css +1 -1
- package/dist/index.js +105 -104
- package/dist/stories/a/AppContext.stories.js +7 -6
- package/dist/stories/a/AreaChart.stories.js +5 -4
- package/dist/stories/a/BarChart.stories.js +9 -8
- package/dist/stories/a/BlurOverlay.stories.js +5 -4
- package/dist/stories/a/ContentTree.stories.js +7 -6
- package/dist/stories/a/Conversation.stories.js +9 -8
- package/dist/stories/a/DatePicker.stories.js +5 -4
- package/dist/stories/a/DotInfo.stories.js +7 -6
- package/dist/stories/a/Figure.stories.js +7 -6
- package/dist/stories/a/HamburgerButton.stories.js +7 -6
- package/dist/stories/a/IconList.stories.js +7 -6
- package/dist/stories/a/Label.stories.js +7 -6
- package/dist/stories/a/LoadingCircle.stories.js +7 -6
- package/dist/stories/a/MetaCard.stories.js +5 -4
- package/dist/stories/a/Notification.stories.js +13 -12
- package/dist/stories/a/NotificationStack.stories.js +7 -6
- package/dist/stories/a/People.stories.js +11 -10
- package/dist/stories/a/PieChart.stories.js +5 -4
- package/dist/stories/a/Popover.stories.js +5 -4
- package/dist/stories/a/ProgressBar.stories.js +7 -6
- package/dist/stories/a/Quote.stories.js +5 -4
- package/dist/stories/a/Removable.stories.js +7 -6
- package/dist/stories/a/SVG.stories.js +13 -12
- package/dist/stories/a/SnapScroller.stories.js +12 -11
- package/dist/stories/a/Spinner.stories.js +7 -6
- package/dist/stories/a/TextSteps.stories.js +7 -6
- package/dist/stories/a/Timestamp.stories.js +5 -4
- package/dist/stories/a/Tip.stories.js +5 -4
- package/dist/stories/a/ToggleSwitch.stories.js +8 -7
- package/dist/stories/a/Tooltip.stories.js +11 -10
- package/dist/stories/a/XMLEditor.stories.js +5 -4
- package/dist/stories/b/Button/Button.stories.js +10 -9
- package/dist/stories/b/Button/Group.stories.js +5 -4
- package/dist/stories/b/Card/Card.stories.js +5 -4
- package/dist/stories/b/Card/Group.stories.js +5 -4
- package/dist/stories/b/Logo.stories.js +8 -7
- package/dist/stories/b/Page.stories.js +10 -9
- package/dist/stories/b/SocialMediaButton.stories.js +5 -4
- package/dist/stories/b/ThemeSelector.stories.js +7 -6
- package/dist/stories/b/Title.stories.js +7 -6
- package/dist/stories/c/Modal.stories.js +5 -4
- package/dist/stories/c/Shortener.stories.js +5 -4
- package/dist/stories/c/SocialMediaShareButton.stories.js +5 -4
- package/dist/stories/f/Checkbox.stories.js +5 -4
- package/dist/stories/f/ChoicesInput.stories.js +5 -4
- package/dist/stories/f/Combobox.stories.js +95 -0
- package/dist/stories/f/Description.stories.js +5 -4
- package/dist/stories/f/DragAndDropFileUpload.stories.js +139 -0
- package/dist/stories/f/EditorInput.stories.js +5 -4
- package/dist/stories/f/FileUpload.stories.js +11 -10
- package/dist/stories/f/Label.stories.js +7 -6
- package/dist/stories/f/LinkInput.stories.js +5 -4
- package/dist/stories/f/RadioInput.stories.js +7 -6
- package/dist/stories/f/RatingsInput.stories.js +5 -4
- package/dist/stories/f/SelectInput.stories.js +7 -6
- package/dist/stories/f/TextInput.stories.js +5 -4
- package/dist/stories/f/TextareaInput.stories.js +5 -4
- package/dist/stories/g/DragAndDrop.stories.js +9 -8
- package/dist/stories/g/ExpandableLexicalPreview.stories.js +8 -7
- package/dist/stories/g/FormBuilder.stories.js +25 -16
- package/dist/stories/utils/defaultFormBuilderConfig.js +115 -0
- package/dist/ui/a/AnimatedGradient/AnimatedGradient.js +1 -1
- package/dist/ui/a/AnimatedGradient/index.js +1 -1
- package/dist/ui/a/ContentTree/ContentTree.js +1 -1
- package/dist/ui/a/ContentTree/common/Tree/Tree.js +4 -3
- package/dist/ui/a/ContentTree/common/Tree/index.js +2 -2
- package/dist/ui/a/ContentTree/common/index.js +1 -1
- package/dist/ui/a/ContentTree/index.js +1 -1
- package/dist/ui/a/Conversation/Conversation.js +4 -3
- package/dist/ui/a/Conversation/index.js +1 -1
- package/dist/ui/a/Notification/Notification.js +4 -3
- package/dist/ui/a/Notification/index.js +1 -1
- package/dist/ui/a/NotificationStack/NotificationStack.js +1 -1
- package/dist/ui/a/NotificationStack/index.js +1 -1
- package/dist/ui/a/ToggleSwitch/ToggleSwitch.js +21 -53
- package/dist/ui/a/index.js +1 -1
- package/dist/ui/b/Button/Button.js +4 -3
- package/dist/ui/b/Button/index.js +1 -1
- package/dist/ui/b/Card/Card.js +4 -3
- package/dist/ui/b/Card/common/Group/Group.js +4 -3
- package/dist/ui/b/Card/common/Group/index.js +2 -2
- package/dist/ui/b/Card/common/index.js +4 -4
- package/dist/ui/b/Card/index.js +1 -1
- package/dist/ui/b/Logo/Logo.js +1 -1
- package/dist/ui/b/Logo/index.js +1 -1
- package/dist/ui/b/Page/Page.js +1 -1
- package/dist/ui/b/Page/common/PageHelmet/PageHelmet.js +1 -1
- package/dist/ui/b/Page/common/PageHelmet/index.js +1 -1
- package/dist/ui/b/Page/common/index.js +1 -1
- package/dist/ui/b/Page/index.js +1 -1
- package/dist/ui/b/SocialMediaButton/SocialMediaButton.js +1 -1
- package/dist/ui/b/SocialMediaButton/index.js +1 -1
- package/dist/ui/b/ThemeSelector/ThemeSelector.js +1 -1
- package/dist/ui/b/ThemeSelector/index.js +1 -1
- package/dist/ui/b/index.js +1 -1
- package/dist/ui/c/Modal/Modal.js +1 -1
- package/dist/ui/c/Modal/common/ModalHeader/ModalHeader.js +4 -3
- package/dist/ui/c/Modal/common/ModalHeader/index.js +1 -1
- package/dist/ui/c/Modal/common/index.js +1 -1
- package/dist/ui/c/Modal/index.js +1 -1
- package/dist/ui/c/Shortener/Shortener.js +1 -1
- package/dist/ui/c/Shortener/index.js +1 -1
- package/dist/ui/c/index.js +1 -1
- package/dist/ui/f/FormInput/FormInput.js +1 -1
- package/dist/ui/f/FormInput/index.js +1 -1
- package/dist/ui/f/common/Debugger/Debugger.js +1 -1
- package/dist/ui/f/common/Debugger/index.js +1 -1
- package/dist/ui/f/common/index.js +5 -5
- package/dist/ui/f/common/utils/index.js +2 -2
- package/dist/ui/f/common/utils/{lookUpInputValueFromFetchedOptions.js → lookUpInputValueFromOptions.js} +5 -6
- package/dist/ui/f/fields/Checkbox/Checkbox.js +1 -1
- package/dist/ui/f/fields/Checkbox/index.js +1 -1
- package/dist/ui/f/fields/ChoicesInput/ChoicesInput.js +1 -1
- package/dist/ui/f/fields/ChoicesInput/index.js +1 -1
- package/dist/ui/f/fields/DragAndDropFileUpload/DragAndDropFileUpload.js +10 -0
- package/dist/ui/f/fields/DragAndDropFileUpload/index.js +4 -0
- package/dist/ui/f/fields/EditorInput/EditorInput.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +2 -2
- package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/ColorPicker/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/index.js +1 -1
- package/dist/ui/f/fields/FileUpload/FileUpload.js +1 -1
- package/dist/ui/f/fields/FileUpload/common/Preview/Preview.js +2 -2
- package/dist/ui/f/fields/FileUpload/common/Preview/index.js +1 -1
- package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/PreviewNewRegistration.js +42 -0
- package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/index.js +4 -0
- package/dist/ui/f/fields/FileUpload/common/index.js +3 -2
- package/dist/ui/f/fields/FileUpload/index.js +1 -1
- package/dist/ui/f/fields/LatexPreviewInput/LatexPreviewInput.js +1 -1
- package/dist/ui/f/fields/LatexPreviewInput/index.js +1 -1
- package/dist/ui/f/fields/LinkInput/LinkInput.js +1 -1
- package/dist/ui/f/fields/LinkInput/index.js +1 -1
- package/dist/ui/f/fields/QueryChoices/QueryChoices.js +1 -1
- package/dist/ui/f/fields/QueryChoices/index.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/QueryCombobox.js +2 -3
- package/dist/ui/f/fields/QueryCombobox/common/Combobox/Combobox.js +7 -7
- package/dist/ui/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +4 -4
- package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/common/index.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/index.js +1 -1
- package/dist/ui/f/fields/QuerySelect/QuerySelect.js +6 -4
- package/dist/ui/f/fields/QuerySelect/index.js +1 -1
- package/dist/ui/f/fields/RatingsInput/RatingsInput.js +1 -1
- package/dist/ui/f/fields/RatingsInput/index.js +1 -1
- package/dist/ui/f/fields/SearchDropdown/SearchDropdown.js +4 -2
- package/dist/ui/f/fields/SearchDropdown/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/SelectInput.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/Menu/Menu.js +2 -2
- package/dist/ui/f/fields/SelectInput/common/Menu/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/Multiple/Multiple.js +4 -2
- package/dist/ui/f/fields/SelectInput/common/Multiple/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/Single/Single.js +6 -4
- package/dist/ui/f/fields/SelectInput/common/Single/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/index.js +1 -1
- package/dist/ui/f/fields/SelectSingle/SelectSingle.js +16 -14
- package/dist/ui/f/fields/TextInput/TextInput.js +1 -1
- package/dist/ui/f/fields/TextInput/index.js +1 -1
- package/dist/ui/f/fields/TextareaInput/TextareaInput.js +1 -1
- package/dist/ui/f/fields/TextareaInput/index.js +1 -1
- package/dist/ui/f/fields/ToggleInput/ToggleInput.js +1 -1
- package/dist/ui/f/fields/ToggleInput/index.js +1 -1
- package/dist/ui/f/fields/index.js +18 -17
- package/dist/ui/f/index.js +22 -21
- package/dist/ui/g/DragAndDrop/DragAndDrop.js +21 -21
- package/dist/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +6 -4
- package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +3 -2
- package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +1 -1
- package/dist/ui/g/ExpandableLexicalPreview/common/index.js +1 -1
- package/dist/ui/g/ExpandableLexicalPreview/index.js +1 -1
- package/dist/ui/g/FormBuilder/FormBuilder.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/Builder.js +6 -4
- package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +6 -5
- package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/Section/Section.js +7 -4
- package/dist/ui/g/FormBuilder/common/Builder/common/Section/index.js +3 -2
- package/dist/ui/g/FormBuilder/common/Builder/common/index.js +5 -4
- package/dist/ui/g/FormBuilder/common/Builder/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Renderer/Renderer.js +1 -1
- package/dist/ui/g/FormBuilder/common/Renderer/common/Section/Section.js +7 -5
- package/dist/ui/g/FormBuilder/common/Renderer/common/Section/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Renderer/common/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Renderer/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/index.js +3 -3
- package/dist/ui/g/FormBuilder/index.js +1 -1
- package/dist/ui/g/index.js +1 -1
- package/dist/ui/index.js +105 -104
- package/package.json +8 -8
|
@@ -3,7 +3,7 @@ import { useRef as l } from "react";
|
|
|
3
3
|
import "../../ui/a/AppContext/Context.js";
|
|
4
4
|
import "../../ui/a/AppContext/ContextProvider.js";
|
|
5
5
|
import "../../ui/a/BlurOverlay/BlurOverlay.js";
|
|
6
|
-
import { e as d, D as c } from "../../FormBuilder-
|
|
6
|
+
import { e as d, D as c } from "../../FormBuilder-DfzGoJzj.js";
|
|
7
7
|
import "../../ui/a/Conversation/Context.js";
|
|
8
8
|
import "../../ui/a/DotInfo/DotInfo.js";
|
|
9
9
|
import "../../ui/a/Figure/Figure.js";
|
|
@@ -38,13 +38,14 @@ import "../../ui/c/SocialMediaShareButton/SocialMediaShareButton.js";
|
|
|
38
38
|
import "../../ui/f/common/Label/Label.js";
|
|
39
39
|
import "../../ui/f/common/Description/Description.js";
|
|
40
40
|
import { Formik as g, Form as u } from "formik";
|
|
41
|
+
import "../../ui/f/fields/QueryCombobox/common/Menu/Menu.js";
|
|
42
|
+
import "../../debounce-Cm69Z_cF.js";
|
|
41
43
|
import "../../ui/f/fields/LatexPreviewInput/convertLatexToHtml.js";
|
|
42
44
|
import "../../ui/f/fields/RadioInput/RadioInput.js";
|
|
43
45
|
import p from "../../ui/g/DragAndDrop/DragAndDrop.js";
|
|
44
|
-
import "../../debounce-Cm69Z_cF.js";
|
|
45
46
|
import "../../throttle-BCrS-Wew.js";
|
|
46
47
|
import "../../ui/utils/formatting.js";
|
|
47
|
-
const
|
|
48
|
+
const dr = {
|
|
48
49
|
title: "g/DragAndDrop",
|
|
49
50
|
component: p,
|
|
50
51
|
subcomponents: {
|
|
@@ -66,7 +67,7 @@ const lr = {
|
|
|
66
67
|
},
|
|
67
68
|
children: t
|
|
68
69
|
}
|
|
69
|
-
),
|
|
70
|
+
), cr = {
|
|
70
71
|
args: {
|
|
71
72
|
items: Array(8).fill().map((t, r) => ({
|
|
72
73
|
disabled: r === 0,
|
|
@@ -118,7 +119,7 @@ const lr = {
|
|
|
118
119
|
)
|
|
119
120
|
]
|
|
120
121
|
}
|
|
121
|
-
),
|
|
122
|
+
), gr = {
|
|
122
123
|
render: ({ items: t }) => {
|
|
123
124
|
const r = l();
|
|
124
125
|
return /* @__PURE__ */ o(
|
|
@@ -144,7 +145,7 @@ const lr = {
|
|
|
144
145
|
}
|
|
145
146
|
};
|
|
146
147
|
export {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
cr as Base,
|
|
149
|
+
gr as WithFormikInputs,
|
|
150
|
+
dr as default
|
|
150
151
|
};
|
|
@@ -3,7 +3,7 @@ import "react";
|
|
|
3
3
|
import "../../ui/a/AppContext/Context.js";
|
|
4
4
|
import e from "../../ui/a/AppContext/ContextProvider.js";
|
|
5
5
|
import "../../ui/a/BlurOverlay/BlurOverlay.js";
|
|
6
|
-
import {
|
|
6
|
+
import { r } from "../../FormBuilder-DfzGoJzj.js";
|
|
7
7
|
import "../../ui/a/Conversation/Context.js";
|
|
8
8
|
import "../../ui/a/DotInfo/DotInfo.js";
|
|
9
9
|
import "../../ui/a/Figure/Figure.js";
|
|
@@ -38,13 +38,14 @@ import "../../ui/c/SocialMediaShareButton/SocialMediaShareButton.js";
|
|
|
38
38
|
import "../../ui/f/common/Label/Label.js";
|
|
39
39
|
import "../../ui/f/common/Description/Description.js";
|
|
40
40
|
import "formik";
|
|
41
|
+
import "../../ui/f/fields/QueryCombobox/common/Menu/Menu.js";
|
|
42
|
+
import "../../debounce-Cm69Z_cF.js";
|
|
41
43
|
import "../../ui/f/fields/LatexPreviewInput/convertLatexToHtml.js";
|
|
42
44
|
import "../../ui/f/fields/RadioInput/RadioInput.js";
|
|
43
45
|
import "../../ui/g/DragAndDrop/DragAndDrop.js";
|
|
44
|
-
import "../../debounce-Cm69Z_cF.js";
|
|
45
46
|
import "../../throttle-BCrS-Wew.js";
|
|
46
47
|
import "../../ui/utils/formatting.js";
|
|
47
|
-
const
|
|
48
|
+
const tt = {
|
|
48
49
|
title: "g/ExpandableLexicalPreview",
|
|
49
50
|
component: r,
|
|
50
51
|
subcomponents: {
|
|
@@ -56,14 +57,14 @@ const $ = {
|
|
|
56
57
|
argTypes: {
|
|
57
58
|
color: { control: "text" }
|
|
58
59
|
}
|
|
59
|
-
}, o = '{"root":{"children":[{"children":[{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"This is bold.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":2,"mode":"normal","style":"","text":"This is italic.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"listitem","version":1,"value":2},{"children":[{"detail":0,"format":8,"mode":"normal","style":"","text":"This is underlined.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"listitem","version":1,"value":3},{"children":[{"children":[{"children":[{"detail":0,"format":4,"mode":"normal","style":"","text":"This is struck.","type":"text","version":1}],"direction":"ltr","format":"","indent":1,"type":"listitem","version":1,"value":1}],"direction":"ltr","format":"","indent":0,"type":"list","version":1,"listType":"bullet","start":1,"tag":"ul"}],"direction":"ltr","format":"","indent":0,"type":"listitem","version":1,"value":4}],"direction":"ltr","format":"","indent":0,"type":"list","version":1,"listType":"bullet","start":1,"tag":"ul"}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', m = (t) => /* @__PURE__ */ i(r, { ...t }),
|
|
60
|
-
|
|
60
|
+
}, o = '{"root":{"children":[{"children":[{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"This is bold.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":2,"mode":"normal","style":"","text":"This is italic.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"listitem","version":1,"value":2},{"children":[{"detail":0,"format":8,"mode":"normal","style":"","text":"This is underlined.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"listitem","version":1,"value":3},{"children":[{"children":[{"children":[{"detail":0,"format":4,"mode":"normal","style":"","text":"This is struck.","type":"text","version":1}],"direction":"ltr","format":"","indent":1,"type":"listitem","version":1,"value":1}],"direction":"ltr","format":"","indent":0,"type":"list","version":1,"listType":"bullet","start":1,"tag":"ul"}],"direction":"ltr","format":"","indent":0,"type":"listitem","version":1,"value":4}],"direction":"ltr","format":"","indent":0,"type":"list","version":1,"listType":"bullet","start":1,"tag":"ul"}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}', m = (t) => /* @__PURE__ */ i(r, { ...t }), p = m.bind({});
|
|
61
|
+
p.args = {
|
|
61
62
|
nodes: o,
|
|
62
63
|
name: "taskDescription",
|
|
63
64
|
pageTitle: "Task Instructions",
|
|
64
65
|
header: "Task Instructions"
|
|
65
66
|
};
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
p as Base,
|
|
69
|
+
tt as default
|
|
69
70
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, Fragment as s, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as l } from "react";
|
|
3
3
|
import "../../ui/a/AppContext/Context.js";
|
|
4
4
|
import "../../ui/a/AppContext/ContextProvider.js";
|
|
5
5
|
import "../../ui/a/BlurOverlay/BlurOverlay.js";
|
|
6
|
-
import {
|
|
6
|
+
import { s as p, B as u } from "../../FormBuilder-DfzGoJzj.js";
|
|
7
7
|
import "../../ui/a/Conversation/Context.js";
|
|
8
8
|
import "../../ui/a/DotInfo/DotInfo.js";
|
|
9
9
|
import "../../ui/a/Figure/Figure.js";
|
|
@@ -38,13 +38,15 @@ import "../../ui/c/SocialMediaShareButton/SocialMediaShareButton.js";
|
|
|
38
38
|
import "../../ui/f/common/Label/Label.js";
|
|
39
39
|
import "../../ui/f/common/Description/Description.js";
|
|
40
40
|
import "formik";
|
|
41
|
+
import "../../ui/f/fields/QueryCombobox/common/Menu/Menu.js";
|
|
42
|
+
import "../../debounce-Cm69Z_cF.js";
|
|
41
43
|
import "../../ui/f/fields/LatexPreviewInput/convertLatexToHtml.js";
|
|
42
44
|
import "../../ui/f/fields/RadioInput/RadioInput.js";
|
|
43
45
|
import "../../ui/g/DragAndDrop/DragAndDrop.js";
|
|
44
|
-
import "../../debounce-Cm69Z_cF.js";
|
|
45
46
|
import "../../throttle-BCrS-Wew.js";
|
|
46
47
|
import "../../ui/utils/formatting.js";
|
|
47
|
-
|
|
48
|
+
import { DEFAULT_CONFIG as c } from "../utils/defaultFormBuilderConfig.js";
|
|
49
|
+
const sr = {
|
|
48
50
|
title: "g/FormBuilder",
|
|
49
51
|
component: p,
|
|
50
52
|
subcomponents: {
|
|
@@ -56,21 +58,27 @@ const mr = {
|
|
|
56
58
|
argTypes: {
|
|
57
59
|
backgroundColor: { control: "color" }
|
|
58
60
|
}
|
|
59
|
-
},
|
|
61
|
+
}, n = {
|
|
60
62
|
args: {
|
|
61
63
|
mode: "build"
|
|
62
64
|
},
|
|
63
65
|
render: (o) => {
|
|
64
66
|
const [e, i] = l({});
|
|
65
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ a(s, { children: [
|
|
66
68
|
/* @__PURE__ */ r(p, { ...o, onBuilderFormSave: (m) => {
|
|
67
69
|
i(m);
|
|
68
70
|
}, formBuilderId: "some-sample-form-id" }),
|
|
69
|
-
/* @__PURE__ */ r(
|
|
71
|
+
/* @__PURE__ */ r(u, { form: "some-sample-form-id", type: "submit", children: "Sample Next Button in a Work flow" }),
|
|
70
72
|
/* @__PURE__ */ r("pre", { children: JSON.stringify(e, null, 2) })
|
|
71
73
|
] });
|
|
72
74
|
}
|
|
73
|
-
},
|
|
75
|
+
}, lr = {
|
|
76
|
+
...n,
|
|
77
|
+
args: {
|
|
78
|
+
...n.args,
|
|
79
|
+
initialBuilderValues: c
|
|
80
|
+
}
|
|
81
|
+
}, f = {
|
|
74
82
|
sections: [
|
|
75
83
|
{
|
|
76
84
|
title: "Hello",
|
|
@@ -102,11 +110,11 @@ const mr = {
|
|
|
102
110
|
}, t = {
|
|
103
111
|
args: {
|
|
104
112
|
mode: "render",
|
|
105
|
-
formData:
|
|
113
|
+
formData: f
|
|
106
114
|
},
|
|
107
115
|
render: (o) => {
|
|
108
116
|
const [e, i] = l({});
|
|
109
|
-
return /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ a(s, { children: [
|
|
110
118
|
/* @__PURE__ */ r(
|
|
111
119
|
p,
|
|
112
120
|
{
|
|
@@ -119,13 +127,13 @@ const mr = {
|
|
|
119
127
|
/* @__PURE__ */ r("pre", { children: JSON.stringify(e, null, 2) })
|
|
120
128
|
] });
|
|
121
129
|
}
|
|
122
|
-
},
|
|
130
|
+
}, dr = {
|
|
123
131
|
...t,
|
|
124
132
|
args: {
|
|
125
133
|
...t.args,
|
|
126
134
|
shouldSubmit: !0
|
|
127
135
|
}
|
|
128
|
-
},
|
|
136
|
+
}, ur = {
|
|
129
137
|
...t,
|
|
130
138
|
args: {
|
|
131
139
|
...t.args,
|
|
@@ -133,9 +141,10 @@ const mr = {
|
|
|
133
141
|
}
|
|
134
142
|
};
|
|
135
143
|
export {
|
|
136
|
-
|
|
144
|
+
n as Builder,
|
|
145
|
+
lr as BuilderWithLockedInputs,
|
|
137
146
|
t as Renderer,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
147
|
+
ur as RendererWithDisabled,
|
|
148
|
+
dr as RendererWithSubmit,
|
|
149
|
+
sr as default
|
|
141
150
|
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
sections: [
|
|
3
|
+
{
|
|
4
|
+
key: "section-0",
|
|
5
|
+
title: "Personal Information",
|
|
6
|
+
inputs: [
|
|
7
|
+
{
|
|
8
|
+
name: "section_0_input_0",
|
|
9
|
+
type: "text",
|
|
10
|
+
label: "Email ",
|
|
11
|
+
options: [],
|
|
12
|
+
required: !0,
|
|
13
|
+
description: "Valid email ",
|
|
14
|
+
conditionalLogic: null,
|
|
15
|
+
isLocked: !0,
|
|
16
|
+
isDeletable: !1
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "section_0_input_1",
|
|
20
|
+
type: "text",
|
|
21
|
+
label: "First Name (Legal)",
|
|
22
|
+
options: [],
|
|
23
|
+
required: !0,
|
|
24
|
+
description: "legal first name ",
|
|
25
|
+
conditionalLogic: null,
|
|
26
|
+
isLocked: !0,
|
|
27
|
+
isDeletable: !1
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "section_0_input_2",
|
|
31
|
+
type: "text",
|
|
32
|
+
label: "Last Name (Legal)",
|
|
33
|
+
options: [],
|
|
34
|
+
required: !0,
|
|
35
|
+
description: "legal last name ",
|
|
36
|
+
conditionalLogic: null,
|
|
37
|
+
isLocked: !0,
|
|
38
|
+
isDeletable: !0
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
navigation: { nextSection: "next" },
|
|
42
|
+
description: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"All information provided will be kept confidential. Please note that misrepresenting your name, personal details, professional expertise, email address, or location is strictly prohibited.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}',
|
|
43
|
+
orderedInputDragIds: []
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
key: "section-1",
|
|
47
|
+
title: "Skill Qualifications",
|
|
48
|
+
inputs: [
|
|
49
|
+
{
|
|
50
|
+
name: "section_1_input_0",
|
|
51
|
+
type: "select",
|
|
52
|
+
label: "What is your native language?",
|
|
53
|
+
options: [
|
|
54
|
+
{
|
|
55
|
+
key: "sections-1-inputs-0-options--1",
|
|
56
|
+
label: "Albania ",
|
|
57
|
+
value: "Albania ",
|
|
58
|
+
nextSection: ""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: "sections-1-inputs-0-options-0",
|
|
62
|
+
label: "Arabic",
|
|
63
|
+
value: "Arabic",
|
|
64
|
+
nextSection: ""
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
key: "sections-1-inputs-0-options-1",
|
|
68
|
+
label: "Dutch",
|
|
69
|
+
value: "Dutch",
|
|
70
|
+
nextSection: ""
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
isLocked: !0,
|
|
74
|
+
required: !0,
|
|
75
|
+
description: "native language"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "section_1_input_1",
|
|
79
|
+
type: "multiple",
|
|
80
|
+
label: "In addition to your native language, which other language or languages are you fluent in?",
|
|
81
|
+
options: [
|
|
82
|
+
{
|
|
83
|
+
key: "sections-1-inputs-1-options--1",
|
|
84
|
+
label: "Swahili",
|
|
85
|
+
value: "Swahili",
|
|
86
|
+
nextSection: ""
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "sections-1-inputs-1-options-0",
|
|
90
|
+
label: "Kikuyu",
|
|
91
|
+
value: "Kikuyu",
|
|
92
|
+
nextSection: ""
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
key: "sections-1-inputs-1-options-1",
|
|
96
|
+
label: "English",
|
|
97
|
+
value: "English",
|
|
98
|
+
nextSection: ""
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
required: !1,
|
|
102
|
+
description: "",
|
|
103
|
+
conditionalLogic: null,
|
|
104
|
+
isLocked: !0
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
navigation: { nextSection: "next" },
|
|
108
|
+
description: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"All information provided will be kept confidential. Please note that misrepresenting your name, personal details, professional expertise, email address, or location is strictly prohibited.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}',
|
|
109
|
+
orderedInputDragIds: []
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
};
|
|
113
|
+
export {
|
|
114
|
+
e as DEFAULT_CONFIG
|
|
115
|
+
};
|
|
@@ -6,7 +6,7 @@ import "../AppContext/Context.js";
|
|
|
6
6
|
import "../AppContext/ContextProvider.js";
|
|
7
7
|
import "../AppContext/useApp.js";
|
|
8
8
|
import "../BlurOverlay/BlurOverlay.js";
|
|
9
|
-
import { A as N } from "../../../FormBuilder-
|
|
9
|
+
import { A as N } from "../../../FormBuilder-DfzGoJzj.js";
|
|
10
10
|
import "../Conversation/Context.js";
|
|
11
11
|
import "../DotInfo/DotInfo.js";
|
|
12
12
|
import "../Figure/Figure.js";
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../index-CxkFVI6N.js";
|
|
4
4
|
import "../../../exports.module-DmUnHWIJ.js";
|
|
5
|
-
import { C as f } from "../../../FormBuilder-
|
|
5
|
+
import { C as f } from "../../../FormBuilder-DfzGoJzj.js";
|
|
6
6
|
import "./common/useContentTree.js";
|
|
7
7
|
import "../../../debounce-Cm69Z_cF.js";
|
|
8
8
|
export {
|
|
@@ -5,7 +5,7 @@ import "../../../../../exports.module-DmUnHWIJ.js";
|
|
|
5
5
|
import "../../../AppContext/Context.js";
|
|
6
6
|
import "../../../AppContext/ContextProvider.js";
|
|
7
7
|
import "../../../BlurOverlay/BlurOverlay.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a1 as Z } from "../../../../../FormBuilder-DfzGoJzj.js";
|
|
9
9
|
import "../../../Conversation/Context.js";
|
|
10
10
|
import "../../../DotInfo/DotInfo.js";
|
|
11
11
|
import "../../../Figure/Figure.js";
|
|
@@ -40,13 +40,14 @@ import "../../../../c/SocialMediaShareButton/SocialMediaShareButton.js";
|
|
|
40
40
|
import "../../../../f/common/Label/Label.js";
|
|
41
41
|
import "../../../../f/common/Description/Description.js";
|
|
42
42
|
import "formik";
|
|
43
|
+
import "../../../../f/fields/QueryCombobox/common/Menu/Menu.js";
|
|
44
|
+
import "../../../../../debounce-Cm69Z_cF.js";
|
|
43
45
|
import "../../../../f/fields/LatexPreviewInput/convertLatexToHtml.js";
|
|
44
46
|
import "../../../../f/fields/RadioInput/RadioInput.js";
|
|
45
47
|
import "../../../../g/DragAndDrop/DragAndDrop.js";
|
|
46
|
-
import "../../../../../debounce-Cm69Z_cF.js";
|
|
47
48
|
import "../../../../../throttle-BCrS-Wew.js";
|
|
48
49
|
import "../../../../utils/formatting.js";
|
|
49
50
|
import "../useFirstVisibleNode.js";
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
Z as default
|
|
52
53
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as o } from "./useContentTree.js";
|
|
2
2
|
import { default as s } from "./useFirstVisibleNode.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a1 as f } from "../../../../FormBuilder-DfzGoJzj.js";
|
|
4
4
|
export {
|
|
5
5
|
f as Tree,
|
|
6
6
|
o as useContentTree,
|
|
@@ -5,7 +5,7 @@ import "../../../exports.module-DmUnHWIJ.js";
|
|
|
5
5
|
import "../AppContext/Context.js";
|
|
6
6
|
import "../AppContext/ContextProvider.js";
|
|
7
7
|
import "../BlurOverlay/BlurOverlay.js";
|
|
8
|
-
import { a as
|
|
8
|
+
import { a as Z } from "../../../FormBuilder-DfzGoJzj.js";
|
|
9
9
|
import "./Context.js";
|
|
10
10
|
import "../DotInfo/DotInfo.js";
|
|
11
11
|
import "../Figure/Figure.js";
|
|
@@ -40,13 +40,14 @@ import "../../c/SocialMediaShareButton/SocialMediaShareButton.js";
|
|
|
40
40
|
import "../../f/common/Label/Label.js";
|
|
41
41
|
import "../../f/common/Description/Description.js";
|
|
42
42
|
import "formik";
|
|
43
|
+
import "../../f/fields/QueryCombobox/common/Menu/Menu.js";
|
|
44
|
+
import "../../../debounce-Cm69Z_cF.js";
|
|
43
45
|
import "../../f/fields/LatexPreviewInput/convertLatexToHtml.js";
|
|
44
46
|
import "../../f/fields/RadioInput/RadioInput.js";
|
|
45
47
|
import "../../g/DragAndDrop/DragAndDrop.js";
|
|
46
|
-
import "../../../debounce-Cm69Z_cF.js";
|
|
47
48
|
import "../../../throttle-BCrS-Wew.js";
|
|
48
49
|
import "../../utils/formatting.js";
|
|
49
50
|
import "./common/Message/Message.js";
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
Z as default
|
|
52
53
|
};
|
|
@@ -5,7 +5,7 @@ import "../../../exports.module-DmUnHWIJ.js";
|
|
|
5
5
|
import "../AppContext/Context.js";
|
|
6
6
|
import "../AppContext/ContextProvider.js";
|
|
7
7
|
import "../BlurOverlay/BlurOverlay.js";
|
|
8
|
-
import { N as
|
|
8
|
+
import { N as Y } from "../../../FormBuilder-DfzGoJzj.js";
|
|
9
9
|
import "../Conversation/Context.js";
|
|
10
10
|
import "../DotInfo/DotInfo.js";
|
|
11
11
|
import "../Figure/Figure.js";
|
|
@@ -40,12 +40,13 @@ import "../../c/SocialMediaShareButton/SocialMediaShareButton.js";
|
|
|
40
40
|
import "../../f/common/Label/Label.js";
|
|
41
41
|
import "../../f/common/Description/Description.js";
|
|
42
42
|
import "formik";
|
|
43
|
+
import "../../f/fields/QueryCombobox/common/Menu/Menu.js";
|
|
44
|
+
import "../../../debounce-Cm69Z_cF.js";
|
|
43
45
|
import "../../f/fields/LatexPreviewInput/convertLatexToHtml.js";
|
|
44
46
|
import "../../f/fields/RadioInput/RadioInput.js";
|
|
45
47
|
import "../../g/DragAndDrop/DragAndDrop.js";
|
|
46
|
-
import "../../../debounce-Cm69Z_cF.js";
|
|
47
48
|
import "../../../throttle-BCrS-Wew.js";
|
|
48
49
|
import "../../utils/formatting.js";
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
Y as default
|
|
51
52
|
};
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../index-CxkFVI6N.js";
|
|
4
4
|
import "../../../exports.module-DmUnHWIJ.js";
|
|
5
|
-
import { b as a } from "../../../FormBuilder-
|
|
5
|
+
import { b as a } from "../../../FormBuilder-DfzGoJzj.js";
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
|
@@ -1,77 +1,45 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
className: n,
|
|
3
|
+
import { s as p } from "../../../exports.module-DmUnHWIJ.js";
|
|
4
|
+
import '../../../assets/ToggleSwitch.css';const b = p.base, h = "toggle-switch", x = ({
|
|
5
|
+
id: a,
|
|
6
|
+
className: o,
|
|
8
7
|
style: l,
|
|
9
|
-
handleOnChange:
|
|
10
|
-
checked:
|
|
8
|
+
handleOnChange: m,
|
|
9
|
+
checked: s,
|
|
11
10
|
size: c,
|
|
12
|
-
inputId:
|
|
11
|
+
inputId: e,
|
|
12
|
+
disabled: n = !1
|
|
13
13
|
// ...otherProps
|
|
14
|
-
}) => /* @__PURE__ */
|
|
14
|
+
}) => /* @__PURE__ */ r(
|
|
15
15
|
"button",
|
|
16
16
|
{
|
|
17
|
-
id:
|
|
17
|
+
id: a,
|
|
18
18
|
className: [
|
|
19
|
-
h,
|
|
20
19
|
b,
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
h,
|
|
21
|
+
o
|
|
22
|
+
].filter((i) => i).join(" "),
|
|
23
23
|
style: {
|
|
24
24
|
"--size": c,
|
|
25
25
|
...l
|
|
26
26
|
},
|
|
27
27
|
type: "button",
|
|
28
28
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ t(
|
|
30
30
|
"input",
|
|
31
31
|
{
|
|
32
32
|
type: "checkbox",
|
|
33
|
-
id:
|
|
34
|
-
checked:
|
|
35
|
-
onChange:
|
|
33
|
+
id: e,
|
|
34
|
+
checked: s,
|
|
35
|
+
onChange: m,
|
|
36
|
+
disabled: n
|
|
36
37
|
}
|
|
37
38
|
),
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ t("label", { htmlFor: e, className: s ? "checked" : "" })
|
|
39
40
|
]
|
|
40
41
|
}
|
|
41
42
|
);
|
|
42
|
-
a.propTypes = {
|
|
43
|
-
/**
|
|
44
|
-
* The HTML id for this element
|
|
45
|
-
*/
|
|
46
|
-
id: s.string,
|
|
47
|
-
/**
|
|
48
|
-
* The HTML class names for this element
|
|
49
|
-
*/
|
|
50
|
-
className: s.string,
|
|
51
|
-
/**
|
|
52
|
-
* The React-written, css properties for this element.
|
|
53
|
-
*/
|
|
54
|
-
style: s.objectOf(s.string),
|
|
55
|
-
/**
|
|
56
|
-
* The onClick handler for this element
|
|
57
|
-
*/
|
|
58
|
-
handleOnChange: s.func,
|
|
59
|
-
/**
|
|
60
|
-
* The checked state of this element
|
|
61
|
-
*/
|
|
62
|
-
checked: s.bool,
|
|
63
|
-
/**
|
|
64
|
-
* The size of this element
|
|
65
|
-
*/
|
|
66
|
-
size: s.string,
|
|
67
|
-
/**
|
|
68
|
-
* The ID of the elelment to be toggled
|
|
69
|
-
*/
|
|
70
|
-
inputId: s.string.isRequired
|
|
71
|
-
};
|
|
72
|
-
a.defaultProps = {
|
|
73
|
-
// someProp: 'someValue',
|
|
74
|
-
};
|
|
75
43
|
export {
|
|
76
|
-
|
|
44
|
+
x as default
|
|
77
45
|
};
|
package/dist/ui/a/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { default as p } from "./AppContext/ContextProvider.js";
|
|
|
3
3
|
import { default as l } from "./AppContext/useApp.js";
|
|
4
4
|
import { default as u } from "./AppContext/useTheme.js";
|
|
5
5
|
import { default as x } from "./BlurOverlay/BlurOverlay.js";
|
|
6
|
-
import { A as n, C, a as c, N as T, b as g } from "../../FormBuilder-
|
|
6
|
+
import { A as n, C, a as c, N as T, b as g } from "../../FormBuilder-DfzGoJzj.js";
|
|
7
7
|
import "./Conversation/Context.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import { default as A } from "./DotInfo/DotInfo.js";
|
|
@@ -5,7 +5,7 @@ import "../../../exports.module-DmUnHWIJ.js";
|
|
|
5
5
|
import "../../a/AppContext/Context.js";
|
|
6
6
|
import "../../a/AppContext/ContextProvider.js";
|
|
7
7
|
import "../../a/BlurOverlay/BlurOverlay.js";
|
|
8
|
-
import { B as
|
|
8
|
+
import { B as Z } from "../../../FormBuilder-DfzGoJzj.js";
|
|
9
9
|
import "../../a/Conversation/Context.js";
|
|
10
10
|
import "../../a/DotInfo/DotInfo.js";
|
|
11
11
|
import "../../a/Figure/Figure.js";
|
|
@@ -40,13 +40,14 @@ import "../../c/SocialMediaShareButton/SocialMediaShareButton.js";
|
|
|
40
40
|
import "../../f/common/Label/Label.js";
|
|
41
41
|
import "../../f/common/Description/Description.js";
|
|
42
42
|
import "formik";
|
|
43
|
+
import "../../f/fields/QueryCombobox/common/Menu/Menu.js";
|
|
44
|
+
import "../../../debounce-Cm69Z_cF.js";
|
|
43
45
|
import "../../f/fields/LatexPreviewInput/convertLatexToHtml.js";
|
|
44
46
|
import "../../f/fields/RadioInput/RadioInput.js";
|
|
45
47
|
import "../../g/DragAndDrop/DragAndDrop.js";
|
|
46
|
-
import "../../../debounce-Cm69Z_cF.js";
|
|
47
48
|
import "../../../throttle-BCrS-Wew.js";
|
|
48
49
|
import "../../utils/formatting.js";
|
|
49
50
|
import "./common/Group/Group.js";
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
Z as default
|
|
52
53
|
};
|