@streamline-pulse/formkrafter-react 0.1.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/LICENSE +21 -0
- package/README.md +70 -0
- package/dist/components/components.js +189 -0
- package/dist/components/components.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/types/components/components.d.ts +106 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +45 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Streamline Pulse
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# @streamline-pulse/formkrafter-react
|
|
2
|
+
|
|
3
|
+
React components for FormKrafter — generated at build time from the [Web Components](../wc/README.md), so props, events, and types always match the underlying library.
|
|
4
|
+
|
|
5
|
+
## Install & use
|
|
6
|
+
|
|
7
|
+
```tsx
|
|
8
|
+
import { useRef, useState } from 'react'
|
|
9
|
+
import type { ComponentRef } from 'react'
|
|
10
|
+
import { FkFormBuilder, FkFormRender } from '@streamline-pulse/formkrafter-react'
|
|
11
|
+
import '@streamline-pulse/formkrafter-wc/styles.css'
|
|
12
|
+
|
|
13
|
+
import type { BrickSpec, ValidationResult } from '@streamline-pulse/formkrafter-core'
|
|
14
|
+
import type { SpecChangeDetail, DataChangeDetail } from '@streamline-pulse/formkrafter-wc'
|
|
15
|
+
|
|
16
|
+
export function FormPlayground() {
|
|
17
|
+
const [spec, setSpec] = useState<BrickSpec>()
|
|
18
|
+
const renderRef = useRef<ComponentRef<typeof FkFormRender>>(null)
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<>
|
|
22
|
+
<FkFormBuilder
|
|
23
|
+
locales={['en', 'fr']}
|
|
24
|
+
onSpecChange={(e: CustomEvent<SpecChangeDetail>) => setSpec(structuredClone(e.detail.spec))}
|
|
25
|
+
/>
|
|
26
|
+
|
|
27
|
+
{spec && (
|
|
28
|
+
<FkFormRender
|
|
29
|
+
ref={renderRef}
|
|
30
|
+
spec={spec}
|
|
31
|
+
locale="fr"
|
|
32
|
+
data={{ _authToken: session.token }}
|
|
33
|
+
onFormSubmit={(e: CustomEvent<DataChangeDetail>) => post(e.detail.data)}
|
|
34
|
+
/>
|
|
35
|
+
)}
|
|
36
|
+
|
|
37
|
+
<button onClick={async () => {
|
|
38
|
+
const result: ValidationResult = await renderRef.current!.validate()
|
|
39
|
+
console.log(result.valid, result.errors)
|
|
40
|
+
}}>
|
|
41
|
+
Validate
|
|
42
|
+
</button>
|
|
43
|
+
</>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Conventions: web-component events become `on<PascalCase>` props (`specChange` → `onSpecChange`, `formSubmit` → `onFormSubmit`); complex props (`spec`, `data`, `locales`) are passed as objects, no serialization needed; element methods (`validate()`) are reached through a `ref`.
|
|
49
|
+
|
|
50
|
+
## SSR (Next.js, TanStack Start, …)
|
|
51
|
+
|
|
52
|
+
The custom elements register themselves on import, which requires a DOM — mount FormKrafter components **client-side only**:
|
|
53
|
+
|
|
54
|
+
```tsx
|
|
55
|
+
const Playground = lazy(() => import('./FormPlayground'))
|
|
56
|
+
|
|
57
|
+
function Page() {
|
|
58
|
+
const [mounted, setMounted] = useState(false)
|
|
59
|
+
useEffect(() => setMounted(true), [])
|
|
60
|
+
return mounted ? <Suspense fallback={<p>Loading…</p>}><Playground /></Suspense> : <p>Loading…</p>
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Server-side, validate submissions with the isomorphic core instead:
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
import { validateFormData } from '@streamline-pulse/formkrafter-core'
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
See the full working app in [`examples/tanstack-start`](../../examples/tanstack-start) — builder, live preview, en/fr switching, dark mode, submit flow.
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { FkBrickActions as FkBrickActionsElement, defineCustomElement as defineFkBrickActions } from "@streamline-pulse/formkrafter-wc/dist/components/fk-brick-actions.js";
|
|
5
|
+
import { FkBrickList as FkBrickListElement, defineCustomElement as defineFkBrickList } from "@streamline-pulse/formkrafter-wc/dist/components/fk-brick-list.js";
|
|
6
|
+
import { FkBrickMoldItem as FkBrickMoldItemElement, defineCustomElement as defineFkBrickMoldItem } from "@streamline-pulse/formkrafter-wc/dist/components/fk-brick-mold-item.js";
|
|
7
|
+
import { FkBrickNotFound as FkBrickNotFoundElement, defineCustomElement as defineFkBrickNotFound } from "@streamline-pulse/formkrafter-wc/dist/components/fk-brick-not-found.js";
|
|
8
|
+
import { FkBrickRender as FkBrickRenderElement, defineCustomElement as defineFkBrickRender } from "@streamline-pulse/formkrafter-wc/dist/components/fk-brick-render.js";
|
|
9
|
+
import { FkCodeEditor as FkCodeEditorElement, defineCustomElement as defineFkCodeEditor } from "@streamline-pulse/formkrafter-wc/dist/components/fk-code-editor.js";
|
|
10
|
+
import { FkDataGrid as FkDataGridElement, defineCustomElement as defineFkDataGrid } from "@streamline-pulse/formkrafter-wc/dist/components/fk-data-grid.js";
|
|
11
|
+
import { FkDropArea as FkDropAreaElement, defineCustomElement as defineFkDropArea } from "@streamline-pulse/formkrafter-wc/dist/components/fk-drop-area.js";
|
|
12
|
+
import { FkEmptyForm as FkEmptyFormElement, defineCustomElement as defineFkEmptyForm } from "@streamline-pulse/formkrafter-wc/dist/components/fk-empty-form.js";
|
|
13
|
+
import { FkFileInput as FkFileInputElement, defineCustomElement as defineFkFileInput } from "@streamline-pulse/formkrafter-wc/dist/components/fk-file-input.js";
|
|
14
|
+
import { FkFormBuilder as FkFormBuilderElement, defineCustomElement as defineFkFormBuilder } from "@streamline-pulse/formkrafter-wc/dist/components/fk-form-builder.js";
|
|
15
|
+
import { FkFormRender as FkFormRenderElement, defineCustomElement as defineFkFormRender } from "@streamline-pulse/formkrafter-wc/dist/components/fk-form-render.js";
|
|
16
|
+
import { FkPropertyPanel as FkPropertyPanelElement, defineCustomElement as defineFkPropertyPanel } from "@streamline-pulse/formkrafter-wc/dist/components/fk-property-panel.js";
|
|
17
|
+
import { FkRulesEditor as FkRulesEditorElement, defineCustomElement as defineFkRulesEditor } from "@streamline-pulse/formkrafter-wc/dist/components/fk-rules-editor.js";
|
|
18
|
+
import { FkSelectInput as FkSelectInputElement, defineCustomElement as defineFkSelectInput } from "@streamline-pulse/formkrafter-wc/dist/components/fk-select-input.js";
|
|
19
|
+
import { FkSignatureInput as FkSignatureInputElement, defineCustomElement as defineFkSignatureInput } from "@streamline-pulse/formkrafter-wc/dist/components/fk-signature-input.js";
|
|
20
|
+
import { FkStepper as FkStepperElement, defineCustomElement as defineFkStepper } from "@streamline-pulse/formkrafter-wc/dist/components/fk-stepper.js";
|
|
21
|
+
import { FkTabs as FkTabsElement, defineCustomElement as defineFkTabs } from "@streamline-pulse/formkrafter-wc/dist/components/fk-tabs.js";
|
|
22
|
+
export const FkBrickActions = /*@__PURE__*/ createComponent({
|
|
23
|
+
tagName: 'fk-brick-actions',
|
|
24
|
+
elementClass: FkBrickActionsElement,
|
|
25
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
26
|
+
react: React,
|
|
27
|
+
events: {
|
|
28
|
+
onBrickRemove: 'brickRemove',
|
|
29
|
+
onBrickDuplicate: 'brickDuplicate',
|
|
30
|
+
onBrickDrop: 'brickDrop',
|
|
31
|
+
onBrickSelect: 'brickSelect'
|
|
32
|
+
},
|
|
33
|
+
defineCustomElement: defineFkBrickActions
|
|
34
|
+
});
|
|
35
|
+
export const FkBrickList = /*@__PURE__*/ createComponent({
|
|
36
|
+
tagName: 'fk-brick-list',
|
|
37
|
+
elementClass: FkBrickListElement,
|
|
38
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
39
|
+
react: React,
|
|
40
|
+
events: {},
|
|
41
|
+
defineCustomElement: defineFkBrickList
|
|
42
|
+
});
|
|
43
|
+
export const FkBrickMoldItem = /*@__PURE__*/ createComponent({
|
|
44
|
+
tagName: 'fk-brick-mold-item',
|
|
45
|
+
elementClass: FkBrickMoldItemElement,
|
|
46
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
47
|
+
react: React,
|
|
48
|
+
events: {},
|
|
49
|
+
defineCustomElement: defineFkBrickMoldItem
|
|
50
|
+
});
|
|
51
|
+
export const FkBrickNotFound = /*@__PURE__*/ createComponent({
|
|
52
|
+
tagName: 'fk-brick-not-found',
|
|
53
|
+
elementClass: FkBrickNotFoundElement,
|
|
54
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
55
|
+
react: React,
|
|
56
|
+
events: {},
|
|
57
|
+
defineCustomElement: defineFkBrickNotFound
|
|
58
|
+
});
|
|
59
|
+
export const FkBrickRender = /*@__PURE__*/ createComponent({
|
|
60
|
+
tagName: 'fk-brick-render',
|
|
61
|
+
elementClass: FkBrickRenderElement,
|
|
62
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
63
|
+
react: React,
|
|
64
|
+
events: {
|
|
65
|
+
onBrickDataChange: 'brickDataChange',
|
|
66
|
+
onBrickConfigsChange: 'brickConfigsChange',
|
|
67
|
+
onBrickStylesChange: 'brickStylesChange',
|
|
68
|
+
onBrickValidationsChange: 'brickValidationsChange',
|
|
69
|
+
onBrickRulesChange: 'brickRulesChange',
|
|
70
|
+
onBrickRemove: 'brickRemove',
|
|
71
|
+
onBrickDuplicate: 'brickDuplicate'
|
|
72
|
+
},
|
|
73
|
+
defineCustomElement: defineFkBrickRender
|
|
74
|
+
});
|
|
75
|
+
export const FkCodeEditor = /*@__PURE__*/ createComponent({
|
|
76
|
+
tagName: 'fk-code-editor',
|
|
77
|
+
elementClass: FkCodeEditorElement,
|
|
78
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
79
|
+
react: React,
|
|
80
|
+
events: { onCodeChange: 'codeChange' },
|
|
81
|
+
defineCustomElement: defineFkCodeEditor
|
|
82
|
+
});
|
|
83
|
+
export const FkDataGrid = /*@__PURE__*/ createComponent({
|
|
84
|
+
tagName: 'fk-data-grid',
|
|
85
|
+
elementClass: FkDataGridElement,
|
|
86
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
87
|
+
react: React,
|
|
88
|
+
events: { onGridValueChange: 'gridValueChange' },
|
|
89
|
+
defineCustomElement: defineFkDataGrid
|
|
90
|
+
});
|
|
91
|
+
export const FkDropArea = /*@__PURE__*/ createComponent({
|
|
92
|
+
tagName: 'fk-drop-area',
|
|
93
|
+
elementClass: FkDropAreaElement,
|
|
94
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
95
|
+
react: React,
|
|
96
|
+
events: { onBrickDrop: 'brickDrop' },
|
|
97
|
+
defineCustomElement: defineFkDropArea
|
|
98
|
+
});
|
|
99
|
+
export const FkEmptyForm = /*@__PURE__*/ createComponent({
|
|
100
|
+
tagName: 'fk-empty-form',
|
|
101
|
+
elementClass: FkEmptyFormElement,
|
|
102
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
103
|
+
react: React,
|
|
104
|
+
events: {},
|
|
105
|
+
defineCustomElement: defineFkEmptyForm
|
|
106
|
+
});
|
|
107
|
+
export const FkFileInput = /*@__PURE__*/ createComponent({
|
|
108
|
+
tagName: 'fk-file-input',
|
|
109
|
+
elementClass: FkFileInputElement,
|
|
110
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
111
|
+
react: React,
|
|
112
|
+
events: { onFileValueChange: 'fileValueChange' },
|
|
113
|
+
defineCustomElement: defineFkFileInput
|
|
114
|
+
});
|
|
115
|
+
export const FkFormBuilder = /*@__PURE__*/ createComponent({
|
|
116
|
+
tagName: 'fk-form-builder',
|
|
117
|
+
elementClass: FkFormBuilderElement,
|
|
118
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
119
|
+
react: React,
|
|
120
|
+
events: { onSpecChange: 'specChange' },
|
|
121
|
+
defineCustomElement: defineFkFormBuilder
|
|
122
|
+
});
|
|
123
|
+
export const FkFormRender = /*@__PURE__*/ createComponent({
|
|
124
|
+
tagName: 'fk-form-render',
|
|
125
|
+
elementClass: FkFormRenderElement,
|
|
126
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
127
|
+
react: React,
|
|
128
|
+
events: {
|
|
129
|
+
onFormDataChange: 'formDataChange',
|
|
130
|
+
onFormSubmit: 'formSubmit'
|
|
131
|
+
},
|
|
132
|
+
defineCustomElement: defineFkFormRender
|
|
133
|
+
});
|
|
134
|
+
export const FkPropertyPanel = /*@__PURE__*/ createComponent({
|
|
135
|
+
tagName: 'fk-property-panel',
|
|
136
|
+
elementClass: FkPropertyPanelElement,
|
|
137
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
138
|
+
react: React,
|
|
139
|
+
events: {
|
|
140
|
+
onBrickConfigsChange: 'brickConfigsChange',
|
|
141
|
+
onBrickValidationsChange: 'brickValidationsChange',
|
|
142
|
+
onBrickStylesChange: 'brickStylesChange'
|
|
143
|
+
},
|
|
144
|
+
defineCustomElement: defineFkPropertyPanel
|
|
145
|
+
});
|
|
146
|
+
export const FkRulesEditor = /*@__PURE__*/ createComponent({
|
|
147
|
+
tagName: 'fk-rules-editor',
|
|
148
|
+
elementClass: FkRulesEditorElement,
|
|
149
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
150
|
+
react: React,
|
|
151
|
+
events: { onBrickRulesChange: 'brickRulesChange' },
|
|
152
|
+
defineCustomElement: defineFkRulesEditor
|
|
153
|
+
});
|
|
154
|
+
export const FkSelectInput = /*@__PURE__*/ createComponent({
|
|
155
|
+
tagName: 'fk-select-input',
|
|
156
|
+
elementClass: FkSelectInputElement,
|
|
157
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
158
|
+
react: React,
|
|
159
|
+
events: { onSelectValueChange: 'selectValueChange' },
|
|
160
|
+
defineCustomElement: defineFkSelectInput
|
|
161
|
+
});
|
|
162
|
+
export const FkSignatureInput = /*@__PURE__*/ createComponent({
|
|
163
|
+
tagName: 'fk-signature-input',
|
|
164
|
+
elementClass: FkSignatureInputElement,
|
|
165
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
166
|
+
react: React,
|
|
167
|
+
events: { onSignatureChange: 'signatureChange' },
|
|
168
|
+
defineCustomElement: defineFkSignatureInput
|
|
169
|
+
});
|
|
170
|
+
export const FkStepper = /*@__PURE__*/ createComponent({
|
|
171
|
+
tagName: 'fk-stepper',
|
|
172
|
+
elementClass: FkStepperElement,
|
|
173
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
174
|
+
react: React,
|
|
175
|
+
events: {
|
|
176
|
+
onStepTouch: 'stepTouch',
|
|
177
|
+
onStepperSubmit: 'stepperSubmit'
|
|
178
|
+
},
|
|
179
|
+
defineCustomElement: defineFkStepper
|
|
180
|
+
});
|
|
181
|
+
export const FkTabs = /*@__PURE__*/ createComponent({
|
|
182
|
+
tagName: 'fk-tabs',
|
|
183
|
+
elementClass: FkTabsElement,
|
|
184
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
185
|
+
react: React,
|
|
186
|
+
events: { onStepTouch: 'stepTouch' },
|
|
187
|
+
defineCustomElement: defineFkTabs
|
|
188
|
+
});
|
|
189
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../lib/components/components.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAUb,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,mBAAmB,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AAC5K,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,mBAAmB,IAAI,iBAAiB,EAAE,MAAM,mEAAmE,CAAC;AAChK,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAE,mBAAmB,IAAI,qBAAqB,EAAE,MAAM,wEAAwE,CAAC;AACjL,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAE,mBAAmB,IAAI,qBAAqB,EAAE,MAAM,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AC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import { type BrickConfigsChangeDetail, type BrickDropDetail, type BrickPathDetail, type BrickRulesChangeDetail, type BrickStylesChangeDetail, type BrickValidationsChangeDetail, type DataChangeDetail, type FkBrickActionsCustomEvent, type FkBrickRenderCustomEvent, type FkCodeEditorCustomEvent, type FkDataGridCustomEvent, type FkDropAreaCustomEvent, type FkFileInputCustomEvent, type FkFormBuilderCustomEvent, type FkFormRenderCustomEvent, type FkPropertyPanelCustomEvent, type FkRulesEditorCustomEvent, type FkSelectInputCustomEvent, type FkSignatureInputCustomEvent, type FkStepperCustomEvent, type FkTabsCustomEvent, type SpecChangeDetail, type UploadedFile } from "@streamline-pulse/formkrafter-wc";
|
|
7
|
+
import type { Components } from "@streamline-pulse/formkrafter-wc/dist/components";
|
|
8
|
+
import { FkBrickActions as FkBrickActionsElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-brick-actions.js";
|
|
9
|
+
import { FkBrickList as FkBrickListElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-brick-list.js";
|
|
10
|
+
import { FkBrickMoldItem as FkBrickMoldItemElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-brick-mold-item.js";
|
|
11
|
+
import { FkBrickNotFound as FkBrickNotFoundElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-brick-not-found.js";
|
|
12
|
+
import { FkBrickRender as FkBrickRenderElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-brick-render.js";
|
|
13
|
+
import { FkCodeEditor as FkCodeEditorElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-code-editor.js";
|
|
14
|
+
import { FkDataGrid as FkDataGridElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-data-grid.js";
|
|
15
|
+
import { FkDropArea as FkDropAreaElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-drop-area.js";
|
|
16
|
+
import { FkEmptyForm as FkEmptyFormElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-empty-form.js";
|
|
17
|
+
import { FkFileInput as FkFileInputElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-file-input.js";
|
|
18
|
+
import { FkFormBuilder as FkFormBuilderElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-form-builder.js";
|
|
19
|
+
import { FkFormRender as FkFormRenderElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-form-render.js";
|
|
20
|
+
import { FkPropertyPanel as FkPropertyPanelElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-property-panel.js";
|
|
21
|
+
import { FkRulesEditor as FkRulesEditorElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-rules-editor.js";
|
|
22
|
+
import { FkSelectInput as FkSelectInputElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-select-input.js";
|
|
23
|
+
import { FkSignatureInput as FkSignatureInputElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-signature-input.js";
|
|
24
|
+
import { FkStepper as FkStepperElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-stepper.js";
|
|
25
|
+
import { FkTabs as FkTabsElement } from "@streamline-pulse/formkrafter-wc/dist/components/fk-tabs.js";
|
|
26
|
+
export type FkBrickActionsEvents = {
|
|
27
|
+
onBrickRemove: EventName<FkBrickActionsCustomEvent<BrickPathDetail>>;
|
|
28
|
+
onBrickDuplicate: EventName<FkBrickActionsCustomEvent<BrickPathDetail>>;
|
|
29
|
+
onBrickDrop: EventName<FkBrickActionsCustomEvent<BrickDropDetail>>;
|
|
30
|
+
onBrickSelect: EventName<FkBrickActionsCustomEvent<BrickPathDetail>>;
|
|
31
|
+
};
|
|
32
|
+
export declare const FkBrickActions: StencilReactComponent<FkBrickActionsElement, FkBrickActionsEvents, Components.FkBrickActions, 'path'>;
|
|
33
|
+
export type FkBrickListEvents = NonNullable<unknown>;
|
|
34
|
+
export declare const FkBrickList: StencilReactComponent<FkBrickListElement, FkBrickListEvents, Components.FkBrickList>;
|
|
35
|
+
export type FkBrickMoldItemEvents = NonNullable<unknown>;
|
|
36
|
+
export declare const FkBrickMoldItem: StencilReactComponent<FkBrickMoldItemElement, FkBrickMoldItemEvents, Components.FkBrickMoldItem, 'brickMold'>;
|
|
37
|
+
export type FkBrickNotFoundEvents = NonNullable<unknown>;
|
|
38
|
+
export declare const FkBrickNotFound: StencilReactComponent<FkBrickNotFoundElement, FkBrickNotFoundEvents, Components.FkBrickNotFound>;
|
|
39
|
+
export type FkBrickRenderEvents = {
|
|
40
|
+
onBrickDataChange: EventName<FkBrickRenderCustomEvent<Record<string, unknown>>>;
|
|
41
|
+
onBrickConfigsChange: EventName<FkBrickRenderCustomEvent<BrickConfigsChangeDetail>>;
|
|
42
|
+
onBrickStylesChange: EventName<FkBrickRenderCustomEvent<BrickStylesChangeDetail>>;
|
|
43
|
+
onBrickValidationsChange: EventName<FkBrickRenderCustomEvent<BrickValidationsChangeDetail>>;
|
|
44
|
+
onBrickRulesChange: EventName<FkBrickRenderCustomEvent<BrickRulesChangeDetail>>;
|
|
45
|
+
onBrickRemove: EventName<FkBrickRenderCustomEvent<BrickPathDetail>>;
|
|
46
|
+
onBrickDuplicate: EventName<FkBrickRenderCustomEvent<BrickPathDetail>>;
|
|
47
|
+
};
|
|
48
|
+
export declare const FkBrickRender: StencilReactComponent<FkBrickRenderElement, FkBrickRenderEvents, Components.FkBrickRender, 'brickSpec' | 'utils'>;
|
|
49
|
+
export type FkCodeEditorEvents = {
|
|
50
|
+
onCodeChange: EventName<FkCodeEditorCustomEvent<string>>;
|
|
51
|
+
};
|
|
52
|
+
export declare const FkCodeEditor: StencilReactComponent<FkCodeEditorElement, FkCodeEditorEvents, Components.FkCodeEditor>;
|
|
53
|
+
export type FkDataGridEvents = {
|
|
54
|
+
onGridValueChange: EventName<FkDataGridCustomEvent<Array<Record<string, unknown>> | undefined>>;
|
|
55
|
+
};
|
|
56
|
+
export declare const FkDataGrid: StencilReactComponent<FkDataGridElement, FkDataGridEvents, Components.FkDataGrid, 'spec' | 'utils'>;
|
|
57
|
+
export type FkDropAreaEvents = {
|
|
58
|
+
onBrickDrop: EventName<FkDropAreaCustomEvent<BrickDropDetail>>;
|
|
59
|
+
};
|
|
60
|
+
export declare const FkDropArea: StencilReactComponent<FkDropAreaElement, FkDropAreaEvents, Components.FkDropArea, 'path'>;
|
|
61
|
+
export type FkEmptyFormEvents = NonNullable<unknown>;
|
|
62
|
+
export declare const FkEmptyForm: StencilReactComponent<FkEmptyFormElement, FkEmptyFormEvents, Components.FkEmptyForm>;
|
|
63
|
+
export type FkFileInputEvents = {
|
|
64
|
+
onFileValueChange: EventName<FkFileInputCustomEvent<UploadedFile | undefined>>;
|
|
65
|
+
};
|
|
66
|
+
export declare const FkFileInput: StencilReactComponent<FkFileInputElement, FkFileInputEvents, Components.FkFileInput>;
|
|
67
|
+
export type FkFormBuilderEvents = {
|
|
68
|
+
onSpecChange: EventName<FkFormBuilderCustomEvent<SpecChangeDetail>>;
|
|
69
|
+
};
|
|
70
|
+
export declare const FkFormBuilder: StencilReactComponent<FkFormBuilderElement, FkFormBuilderEvents, Components.FkFormBuilder>;
|
|
71
|
+
export type FkFormRenderEvents = {
|
|
72
|
+
onFormDataChange: EventName<FkFormRenderCustomEvent<DataChangeDetail>>;
|
|
73
|
+
onFormSubmit: EventName<FkFormRenderCustomEvent<DataChangeDetail>>;
|
|
74
|
+
};
|
|
75
|
+
export declare const FkFormRender: StencilReactComponent<FkFormRenderElement, FkFormRenderEvents, Components.FkFormRender, 'spec'>;
|
|
76
|
+
export type FkPropertyPanelEvents = {
|
|
77
|
+
onBrickConfigsChange: EventName<FkPropertyPanelCustomEvent<BrickConfigsChangeDetail>>;
|
|
78
|
+
onBrickValidationsChange: EventName<FkPropertyPanelCustomEvent<BrickValidationsChangeDetail>>;
|
|
79
|
+
onBrickStylesChange: EventName<FkPropertyPanelCustomEvent<BrickStylesChangeDetail>>;
|
|
80
|
+
};
|
|
81
|
+
export declare const FkPropertyPanel: StencilReactComponent<FkPropertyPanelElement, FkPropertyPanelEvents, Components.FkPropertyPanel, 'brick'>;
|
|
82
|
+
export type FkRulesEditorEvents = {
|
|
83
|
+
onBrickRulesChange: EventName<FkRulesEditorCustomEvent<BrickRulesChangeDetail>>;
|
|
84
|
+
};
|
|
85
|
+
export declare const FkRulesEditor: StencilReactComponent<FkRulesEditorElement, FkRulesEditorEvents, Components.FkRulesEditor, 'brick'>;
|
|
86
|
+
export type FkSelectInputEvents = {
|
|
87
|
+
onSelectValueChange: EventName<FkSelectInputCustomEvent<string | string[] | undefined>>;
|
|
88
|
+
};
|
|
89
|
+
export declare const FkSelectInput: StencilReactComponent<FkSelectInputElement, FkSelectInputEvents, Components.FkSelectInput>;
|
|
90
|
+
export type FkSignatureInputEvents = {
|
|
91
|
+
onSignatureChange: EventName<FkSignatureInputCustomEvent<string | undefined>>;
|
|
92
|
+
};
|
|
93
|
+
export declare const FkSignatureInput: StencilReactComponent<FkSignatureInputElement, FkSignatureInputEvents, Components.FkSignatureInput>;
|
|
94
|
+
export type FkStepperEvents = {
|
|
95
|
+
onStepTouch: EventName<FkStepperCustomEvent<{
|
|
96
|
+
keys: string[];
|
|
97
|
+
}>>;
|
|
98
|
+
onStepperSubmit: EventName<FkStepperCustomEvent<void>>;
|
|
99
|
+
};
|
|
100
|
+
export declare const FkStepper: StencilReactComponent<FkStepperElement, FkStepperEvents, Components.FkStepper>;
|
|
101
|
+
export type FkTabsEvents = {
|
|
102
|
+
onStepTouch: EventName<FkTabsCustomEvent<{
|
|
103
|
+
keys: string[];
|
|
104
|
+
}>>;
|
|
105
|
+
};
|
|
106
|
+
export declare const FkTabs: StencilReactComponent<FkTabsElement, FkTabsEvents, Components.FkTabs>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/components';
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@streamline-pulse/formkrafter-react",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "React bindings for FormKrafter web components",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"form",
|
|
17
|
+
"form-builder",
|
|
18
|
+
"react",
|
|
19
|
+
"web-components",
|
|
20
|
+
"formkrafter"
|
|
21
|
+
],
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc -p .",
|
|
28
|
+
"prepublishOnly": "cp ../../LICENSE . && bun run build"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@stencil/react-output-target": "^1.6.1",
|
|
32
|
+
"@streamline-pulse/formkrafter-wc": "0.0.1"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/react": "^19.2.17",
|
|
39
|
+
"react": "^19.2.7",
|
|
40
|
+
"typescript": "^6.0.3"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
}
|
|
45
|
+
}
|