@texaryn/react-bootstrap 0.0.0 → 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/CHANGELOG.md +14 -0
- package/LICENSE +190 -0
- package/README.md +105 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/registry.d.ts +4 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +15 -0
- package/dist/registry.js.map +1 -0
- package/dist/widgets/BootstrapArrayControl.d.ts +9 -0
- package/dist/widgets/BootstrapArrayControl.d.ts.map +1 -0
- package/dist/widgets/BootstrapArrayControl.js +14 -0
- package/dist/widgets/BootstrapArrayControl.js.map +1 -0
- package/dist/widgets/BootstrapCheckbox.d.ts +9 -0
- package/dist/widgets/BootstrapCheckbox.d.ts.map +1 -0
- package/dist/widgets/BootstrapCheckbox.js +10 -0
- package/dist/widgets/BootstrapCheckbox.js.map +1 -0
- package/dist/widgets/BootstrapFeedback.d.ts +5 -0
- package/dist/widgets/BootstrapFeedback.d.ts.map +1 -0
- package/dist/widgets/BootstrapFeedback.js +8 -0
- package/dist/widgets/BootstrapFeedback.js.map +1 -0
- package/dist/widgets/BootstrapNumberInput.d.ts +9 -0
- package/dist/widgets/BootstrapNumberInput.d.ts.map +1 -0
- package/dist/widgets/BootstrapNumberInput.js +10 -0
- package/dist/widgets/BootstrapNumberInput.js.map +1 -0
- package/dist/widgets/BootstrapObjectLayout.d.ts +9 -0
- package/dist/widgets/BootstrapObjectLayout.d.ts.map +1 -0
- package/dist/widgets/BootstrapObjectLayout.js +16 -0
- package/dist/widgets/BootstrapObjectLayout.js.map +1 -0
- package/dist/widgets/BootstrapSelect.d.ts +9 -0
- package/dist/widgets/BootstrapSelect.d.ts.map +1 -0
- package/dist/widgets/BootstrapSelect.js +11 -0
- package/dist/widgets/BootstrapSelect.js.map +1 -0
- package/dist/widgets/BootstrapTextInput.d.ts +9 -0
- package/dist/widgets/BootstrapTextInput.d.ts.map +1 -0
- package/dist/widgets/BootstrapTextInput.js +10 -0
- package/dist/widgets/BootstrapTextInput.js.map +1 -0
- package/dist/widgets/BootstrapTextarea.d.ts +9 -0
- package/dist/widgets/BootstrapTextarea.d.ts.map +1 -0
- package/dist/widgets/BootstrapTextarea.js +10 -0
- package/dist/widgets/BootstrapTextarea.js.map +1 -0
- package/dist/widgets/index.d.ts +9 -0
- package/dist/widgets/index.d.ts.map +1 -0
- package/dist/widgets/index.js +9 -0
- package/dist/widgets/index.js.map +1 -0
- package/package.json +56 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# @texaryn/react-bootstrap
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6c4fee1: First release: Bootstrap 5 widgets for Texaryn. `createBootstrapRegistry()` renders native HTML with Bootstrap classes (`form-control`, `form-select`, `form-check`, `form-label`, `form-text`, `is-invalid`, `invalid-feedback`, `btn`) on top of `@texaryn/react`. The package expects Bootstrap 5.3 CSS on the page and never loads it itself.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [f223cf9]
|
|
12
|
+
- Updated dependencies [6c4fee1]
|
|
13
|
+
- @texaryn/core@0.2.0
|
|
14
|
+
- @texaryn/react@0.2.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2024-2026 Hamza Hamidi
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,107 @@
|
|
|
1
1
|
# @texaryn/react-bootstrap
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Bootstrap 5 widgets for Texaryn: native HTML with Bootstrap classes, on top of `@texaryn/react`.
|
|
4
|
+
|
|
5
|
+
> Status: pre-1.0. Public APIs may change before 1.0.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @texaryn/core @texaryn/schema-json @texaryn/react @texaryn/react-bootstrap react react-dom bootstrap
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
`bootstrap` is a peer dependency (`^5.3`), and so are `@texaryn/react` and `react` (18 or newer). The package reads no Bootstrap JavaScript and imports no stylesheet: the page loads Bootstrap 5.3 CSS itself, from the installed `bootstrap` package or from a CDN link.
|
|
14
|
+
|
|
15
|
+
## Quick start
|
|
16
|
+
|
|
17
|
+
Swap `createDefaultRegistry()` for `createBootstrapRegistry()`. Nothing else about the form changes:
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import { createJsonSchemaAdapter } from '@texaryn/schema-json'
|
|
21
|
+
import { FormProvider, FormRoot, ErrorSummary, useForm } from '@texaryn/react'
|
|
22
|
+
import { createBootstrapRegistry } from '@texaryn/react-bootstrap'
|
|
23
|
+
import 'bootstrap/dist/css/bootstrap.min.css'
|
|
24
|
+
|
|
25
|
+
// schema as in the @texaryn/react quick start
|
|
26
|
+
const adapter = await createJsonSchemaAdapter(schema)
|
|
27
|
+
const registry = createBootstrapRegistry()
|
|
28
|
+
|
|
29
|
+
function App() {
|
|
30
|
+
const form = useForm(adapter, { initialData: { name: '' } })
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<FormProvider value={form.runtime}>
|
|
34
|
+
<ErrorSummary />
|
|
35
|
+
<FormRoot registry={registry} />
|
|
36
|
+
</FormProvider>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The CSS import above assumes a bundler that resolves stylesheet imports. A page without one adds the equivalent `<link>` tag instead.
|
|
42
|
+
|
|
43
|
+
## What this package renders
|
|
44
|
+
|
|
45
|
+
`createBootstrapRegistry()` returns a `RendererRegistry<WidgetComponent>` with seven widgets. Each field widget sits in a `mb-3` wrapper, adds `is-invalid` to its control while the field shows errors, and renders the description as `form-text` and every visible error as `invalid-feedback d-block` inside the binding's `role="alert"` container.
|
|
46
|
+
|
|
47
|
+
| Widget | Node it matches | Classes |
|
|
48
|
+
| --- | --- | --- |
|
|
49
|
+
| `BootstrapTextInput` | string field with no enum | `form-label`, `form-control` with `type="text"` |
|
|
50
|
+
| `BootstrapNumberInput` | number or integer field | `form-label`, `form-control` with `type="number"` |
|
|
51
|
+
| `BootstrapTextarea` | field with the `textarea` widget hint | `form-label`, `form-control` |
|
|
52
|
+
| `BootstrapSelect` | field with enum values | `form-label`, `form-select` |
|
|
53
|
+
| `BootstrapCheckbox` | boolean field | `form-check`, `form-check-input`, `form-check-label` |
|
|
54
|
+
| `BootstrapObjectLayout` | object container | none, a plain `div` around the children |
|
|
55
|
+
| `BootstrapArrayControl` | array container | `btn btn-primary` to add, `btn btn-outline-danger btn-sm` to remove |
|
|
56
|
+
|
|
57
|
+
Enum outranks the primitive type, so a string field with an `enum` renders as a select, and the `textarea` hint outranks both.
|
|
58
|
+
|
|
59
|
+
`invalid-feedback` is hidden by Bootstrap unless it directly follows an `.is-invalid` sibling. The error lines sit inside the alert container rather than beside the control, so each one carries `d-block`.
|
|
60
|
+
|
|
61
|
+
## Composing your own registry
|
|
62
|
+
|
|
63
|
+
Every widget is exported, so a registry can mix these with your own. A widget is markup around [`useFieldBinding`](../react/README.md#custom-widgets), which supplies the label, description, display-gated errors and a DOM surface to spread: `domInputProps` for text, number, textarea and select controls, `domCheckboxProps` for checkboxes.
|
|
64
|
+
|
|
65
|
+
```tsx
|
|
66
|
+
import { createRendererRegistry } from '@texaryn/core'
|
|
67
|
+
import type { FieldNode, UINode } from '@texaryn/core'
|
|
68
|
+
import { useFieldBinding } from '@texaryn/react'
|
|
69
|
+
import type { WidgetComponent } from '@texaryn/react'
|
|
70
|
+
import { BootstrapTextInput, BootstrapObjectLayout } from '@texaryn/react-bootstrap'
|
|
71
|
+
|
|
72
|
+
function EmailInput({ node }: { node: UINode }) {
|
|
73
|
+
const field = useFieldBinding(node as FieldNode)
|
|
74
|
+
return (
|
|
75
|
+
<div className="mb-3">
|
|
76
|
+
<label {...field.labelProps} className="form-label">{field.label}</label>
|
|
77
|
+
<input {...field.domInputProps} type="email" className="form-control" />
|
|
78
|
+
</div>
|
|
79
|
+
)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const registry = createRendererRegistry<WidgetComponent>()
|
|
83
|
+
registry.register({ test: (n) => n.type === 'container' && n.containerType === 'object', rank: 1 }, BootstrapObjectLayout)
|
|
84
|
+
registry.register({ test: (n) => n.type === 'field' && n.fieldType === 'string', rank: 1 }, BootstrapTextInput)
|
|
85
|
+
registry.register({ test: (n) => n.type === 'field' && n.format === 'email', rank: 10 }, EmailInput)
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`BootstrapFeedback` is exported too, so a custom widget can render the same description and error block as the built-in ones.
|
|
89
|
+
|
|
90
|
+
## What this package does not do
|
|
91
|
+
|
|
92
|
+
- It does not depend on `react-bootstrap` or any other component library. The widgets render `input`, `select`, `textarea`, `label`, `div` and `button` elements directly.
|
|
93
|
+
- It does not load or bundle Bootstrap CSS. The page is responsible for having Bootstrap 5.3 on it; without the stylesheet the form still works and still carries the classes, it is just unstyled.
|
|
94
|
+
- It does not load Bootstrap's JavaScript. No widget uses a Bootstrap component that needs it.
|
|
95
|
+
- It does not own form state. Values, validation, touched state and error display all come from the runtime through `@texaryn/react`.
|
|
96
|
+
|
|
97
|
+
## Related packages
|
|
98
|
+
|
|
99
|
+
- [`@texaryn/react`](../react/README.md), React bindings, hooks and default widgets
|
|
100
|
+
- [`@texaryn/core`](../core/README.md), runtime and renderer contracts
|
|
101
|
+
- [`@texaryn/schema-json`](../schema-json/README.md), JSON Schema adapter
|
|
102
|
+
|
|
103
|
+
See the [repository README](../../README.md) for the complete architecture.
|
|
104
|
+
|
|
105
|
+
## License
|
|
106
|
+
|
|
107
|
+
Apache-2.0
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,cAAc,oBAAoB,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,gBAAgB,EAAU,MAAM,eAAe,CAAA;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAGrD,wBAAgB,uBAAuB,IAAI,gBAAgB,CAAC,eAAe,CAAC,CAa3E"}
|
package/dist/registry.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createRendererRegistry } from '@texaryn/core';
|
|
2
|
+
import { BootstrapTextInput, BootstrapNumberInput, BootstrapCheckbox, BootstrapSelect, BootstrapTextarea, BootstrapObjectLayout, BootstrapArrayControl } from './widgets/index.js';
|
|
3
|
+
export function createBootstrapRegistry() {
|
|
4
|
+
const registry = createRendererRegistry();
|
|
5
|
+
const isField = (node) => node.type === 'field';
|
|
6
|
+
registry.register({ test: (n) => isField(n) && n.fieldType === 'string' && n.enumValues == null, rank: 1 }, BootstrapTextInput);
|
|
7
|
+
registry.register({ test: (n) => isField(n) && (n.fieldType === 'number' || n.fieldType === 'integer'), rank: 1 }, BootstrapNumberInput);
|
|
8
|
+
registry.register({ test: (n) => isField(n) && n.fieldType === 'boolean', rank: 1 }, BootstrapCheckbox);
|
|
9
|
+
registry.register({ test: (n) => isField(n) && n.enumValues != null && n.enumValues.length > 0, rank: 2 }, BootstrapSelect);
|
|
10
|
+
registry.register({ test: (n) => isField(n) && n.widget === 'textarea', rank: 5 }, BootstrapTextarea);
|
|
11
|
+
registry.register({ test: (n) => n.type === 'container' && n.containerType === 'object', rank: 1 }, BootstrapObjectLayout);
|
|
12
|
+
registry.register({ test: (n) => n.type === 'container' && n.containerType === 'array', rank: 1 }, BootstrapArrayControl);
|
|
13
|
+
return registry;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAGtD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAElL,MAAM,UAAU,uBAAuB;IACrC,MAAM,QAAQ,GAAG,sBAAsB,EAAmB,CAAA;IAC1D,MAAM,OAAO,GAAG,CAAC,IAAY,EAAqB,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAA;IAE1E,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,QAAQ,IAAI,CAAC,CAAC,UAAU,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAA;IAC/H,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,KAAK,QAAQ,IAAI,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,oBAAoB,CAAC,CAAA;IACxI,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAA;IACvG,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,IAAI,IAAI,IAAI,CAAC,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,eAAe,CAAC,CAAA;IAC3H,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAA;IAErG,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,IAAI,CAAC,CAAC,aAAa,KAAK,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,qBAAqB,CAAC,CAAA;IAC1H,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,IAAI,CAAC,CAAC,aAAa,KAAK,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,qBAAqB,CAAC,CAAA;IACzH,OAAO,QAAQ,CAAA;AACjB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UINode } from '@texaryn/core';
|
|
3
|
+
export interface WidgetProps {
|
|
4
|
+
node: UINode;
|
|
5
|
+
}
|
|
6
|
+
declare function BootstrapArrayControlImpl({ node }: WidgetProps): React.JSX.Element;
|
|
7
|
+
export declare const BootstrapArrayControl: React.MemoExoticComponent<typeof BootstrapArrayControlImpl>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=BootstrapArrayControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapArrayControl.d.ts","sourceRoot":"","sources":["../../src/widgets/BootstrapArrayControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAA;AAG1D,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,yBAAyB,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,qBA6BvD;AAED,eAAO,MAAM,qBAAqB,6DAGjC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { NodeRenderer, useFieldArray, useRendererContext } from '@texaryn/react';
|
|
4
|
+
function BootstrapArrayControlImpl({ node }) {
|
|
5
|
+
const containerNode = node;
|
|
6
|
+
const fieldArray = useFieldArray(containerNode.id);
|
|
7
|
+
const { document, registry } = useRendererContext();
|
|
8
|
+
return (_jsxs("div", { children: [fieldArray.items.map((item, index) => {
|
|
9
|
+
const childNode = item.nodeId ? document.nodes[item.nodeId] : undefined;
|
|
10
|
+
return (_jsxs("div", { className: "mb-3", children: [childNode ? (_jsx(NodeRenderer, { node: childNode, document: document, registry: registry })) : null, fieldArray.canRemove ? (_jsx("button", { type: "button", className: "btn btn-outline-danger btn-sm", onClick: () => fieldArray.remove(index), children: "Remove" })) : null] }, item.id));
|
|
11
|
+
}), fieldArray.canAdd ? (_jsx("button", { type: "button", className: "btn btn-primary", onClick: () => fieldArray.add(), children: "Add" })) : null] }));
|
|
12
|
+
}
|
|
13
|
+
export const BootstrapArrayControl = React.memo(BootstrapArrayControlImpl, (prev, next) => prev.node.id === next.node.id);
|
|
14
|
+
//# sourceMappingURL=BootstrapArrayControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapArrayControl.js","sourceRoot":"","sources":["../../src/widgets/BootstrapArrayControl.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAMhF,SAAS,yBAAyB,CAAC,EAAE,IAAI,EAAe;IACtD,MAAM,aAAa,GAAG,IAAqB,CAAA;IAC3C,MAAM,UAAU,GAAG,aAAa,CAAC,aAAa,CAAC,EAAE,CAAC,CAAA;IAClD,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAEnD,OAAO,CACL,0BACG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;gBACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;gBACvE,OAAO,CACL,eAAmB,SAAS,EAAC,MAAM,aAChC,SAAS,CAAC,CAAC,CAAC,CACX,KAAC,YAAY,IAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAC1E,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CACtB,iBAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,+BAA+B,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,uBAE9F,CACV,CAAC,CAAC,CAAC,IAAI,KARA,IAAI,CAAC,EAAE,CASX,CACP,CAAA;YACH,CAAC,CAAC,EACD,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CACnB,iBAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,iBAAiB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,oBAExE,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC,IAAI,CAC7C,yBAAyB,EACzB,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAC9C,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UINode } from '@texaryn/core';
|
|
3
|
+
export interface WidgetProps {
|
|
4
|
+
node: UINode;
|
|
5
|
+
}
|
|
6
|
+
declare function BootstrapCheckboxImpl({ node }: WidgetProps): React.JSX.Element;
|
|
7
|
+
export declare const BootstrapCheckbox: React.MemoExoticComponent<typeof BootstrapCheckboxImpl>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=BootstrapCheckbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapCheckbox.d.ts","sourceRoot":"","sources":["../../src/widgets/BootstrapCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAa,MAAM,EAAE,MAAM,eAAe,CAAA;AAItD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,qBAAqB,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,qBASnD;AAED,eAAO,MAAM,iBAAiB,yDAAmF,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useFieldBinding } from '@texaryn/react';
|
|
4
|
+
import { BootstrapFeedback } from './BootstrapFeedback.js';
|
|
5
|
+
function BootstrapCheckboxImpl({ node }) {
|
|
6
|
+
const field = useFieldBinding(node);
|
|
7
|
+
return (_jsxs("div", { className: "form-check mb-3", children: [_jsx("input", { ...field.domCheckboxProps, type: "checkbox", className: field.invalid ? 'form-check-input is-invalid' : 'form-check-input' }), _jsx("label", { ...field.labelProps, className: "form-check-label", children: field.label }), _jsx(BootstrapFeedback, { field: field })] }));
|
|
8
|
+
}
|
|
9
|
+
export const BootstrapCheckbox = React.memo(BootstrapCheckboxImpl, (prev, next) => prev.node.id === next.node.id);
|
|
10
|
+
//# sourceMappingURL=BootstrapCheckbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapCheckbox.js","sourceRoot":"","sources":["../../src/widgets/BootstrapCheckbox.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAM1D,SAAS,qBAAqB,CAAC,EAAE,IAAI,EAAe;IAClD,MAAM,KAAK,GAAG,eAAe,CAAC,IAAiB,CAAC,CAAA;IAChD,OAAO,CACL,eAAK,SAAS,EAAC,iBAAiB,aAC9B,mBAAW,KAAK,CAAC,gBAAgB,EAAE,IAAI,EAAC,UAAU,EAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,kBAAkB,GAAI,EACpI,mBAAW,KAAK,CAAC,UAAU,EAAE,SAAS,EAAC,kBAAkB,YAAE,KAAK,CAAC,KAAK,GAAS,EAC/E,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,IAC/B,CACP,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapFeedback.d.ts","sourceRoot":"","sources":["../../src/widgets/BootstrapFeedback.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAKlD,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,+BAenE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// .invalid-feedback is display: none unless it follows an .is-invalid sibling or
|
|
3
|
+
// carries d-block. The lines sit inside the role="alert" container, not beside
|
|
4
|
+
// the control, so each one needs d-block.
|
|
5
|
+
export function BootstrapFeedback({ field }) {
|
|
6
|
+
return (_jsxs(_Fragment, { children: [field.description ? (_jsx("div", { ...field.descriptionProps, className: "form-text", children: field.description })) : null, field.invalid ? (_jsx("div", { ...field.errorProps, children: field.errors.map((error, index) => (_jsx("div", { className: "invalid-feedback d-block", children: error.message ?? error.keyword }, index))) })) : null] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=BootstrapFeedback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapFeedback.js","sourceRoot":"","sources":["../../src/widgets/BootstrapFeedback.tsx"],"names":[],"mappings":";AAEA,iFAAiF;AACjF,+EAA+E;AAC/E,0CAA0C;AAC1C,MAAM,UAAU,iBAAiB,CAAC,EAAE,KAAK,EAA2B;IAClE,OAAO,CACL,8BACG,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CACnB,iBAAS,KAAK,CAAC,gBAAgB,EAAE,SAAS,EAAC,WAAW,YAAE,KAAK,CAAC,WAAW,GAAO,CACjF,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CACf,iBAAS,KAAK,CAAC,UAAU,YACtB,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAClC,cAAiB,SAAS,EAAC,0BAA0B,YAAE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,IAA3E,KAAK,CAA6E,CAC7F,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACP,CACJ,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UINode } from '@texaryn/core';
|
|
3
|
+
export interface WidgetProps {
|
|
4
|
+
node: UINode;
|
|
5
|
+
}
|
|
6
|
+
declare function BootstrapNumberInputImpl({ node }: WidgetProps): React.JSX.Element;
|
|
7
|
+
export declare const BootstrapNumberInput: React.MemoExoticComponent<typeof BootstrapNumberInputImpl>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=BootstrapNumberInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapNumberInput.d.ts","sourceRoot":"","sources":["../../src/widgets/BootstrapNumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAa,MAAM,EAAE,MAAM,eAAe,CAAA;AAItD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,wBAAwB,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,qBAStD;AAED,eAAO,MAAM,oBAAoB,4DAAsF,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useFieldBinding } from '@texaryn/react';
|
|
4
|
+
import { BootstrapFeedback } from './BootstrapFeedback.js';
|
|
5
|
+
function BootstrapNumberInputImpl({ node }) {
|
|
6
|
+
const field = useFieldBinding(node);
|
|
7
|
+
return (_jsxs("div", { className: "mb-3", children: [_jsx("label", { ...field.labelProps, className: "form-label", children: field.label }), _jsx("input", { ...field.domInputProps, type: "number", className: field.invalid ? 'form-control is-invalid' : 'form-control' }), _jsx(BootstrapFeedback, { field: field })] }));
|
|
8
|
+
}
|
|
9
|
+
export const BootstrapNumberInput = React.memo(BootstrapNumberInputImpl, (prev, next) => prev.node.id === next.node.id);
|
|
10
|
+
//# sourceMappingURL=BootstrapNumberInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapNumberInput.js","sourceRoot":"","sources":["../../src/widgets/BootstrapNumberInput.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAM1D,SAAS,wBAAwB,CAAC,EAAE,IAAI,EAAe;IACrD,MAAM,KAAK,GAAG,eAAe,CAAC,IAAiB,CAAC,CAAA;IAChD,OAAO,CACL,eAAK,SAAS,EAAC,MAAM,aACnB,mBAAW,KAAK,CAAC,UAAU,EAAE,SAAS,EAAC,YAAY,YAAE,KAAK,CAAC,KAAK,GAAS,EACzE,mBAAW,KAAK,CAAC,aAAa,EAAE,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,cAAc,GAAI,EACvH,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,IAC/B,CACP,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC,IAAI,CAAC,wBAAwB,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UINode } from '@texaryn/core';
|
|
3
|
+
export interface WidgetProps {
|
|
4
|
+
node: UINode;
|
|
5
|
+
}
|
|
6
|
+
declare function BootstrapObjectLayoutImpl({ node }: WidgetProps): React.JSX.Element;
|
|
7
|
+
export declare const BootstrapObjectLayout: React.MemoExoticComponent<typeof BootstrapObjectLayoutImpl>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=BootstrapObjectLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapObjectLayout.d.ts","sourceRoot":"","sources":["../../src/widgets/BootstrapObjectLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAA;AAG1D,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,yBAAyB,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,qBAevD;AAED,eAAO,MAAM,qBAAqB,6DAGjC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { NodeRenderer, useRendererContext } from '@texaryn/react';
|
|
4
|
+
function BootstrapObjectLayoutImpl({ node }) {
|
|
5
|
+
const containerNode = node;
|
|
6
|
+
const { document, registry } = useRendererContext();
|
|
7
|
+
return (_jsx("div", { children: containerNode.children.map((childId) => {
|
|
8
|
+
const child = document.nodes[childId];
|
|
9
|
+
if (!child) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
return _jsx(NodeRenderer, { node: child, document: document, registry: registry }, childId);
|
|
13
|
+
}) }));
|
|
14
|
+
}
|
|
15
|
+
export const BootstrapObjectLayout = React.memo(BootstrapObjectLayoutImpl, (prev, next) => prev.node.id === next.node.id);
|
|
16
|
+
//# sourceMappingURL=BootstrapObjectLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapObjectLayout.js","sourceRoot":"","sources":["../../src/widgets/BootstrapObjectLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAMjE,SAAS,yBAAyB,CAAC,EAAE,IAAI,EAAe;IACtD,MAAM,aAAa,GAAG,IAAqB,CAAA;IAC3C,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAEnD,OAAO,CACL,wBACG,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YACtC,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;YACrC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAO,IAAI,CAAA;YACb,CAAC;YACD,OAAO,KAAC,YAAY,IAAe,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,IAA5D,OAAO,CAAyD,CAAA;QAC5F,CAAC,CAAC,GACE,CACP,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC,IAAI,CAC7C,yBAAyB,EACzB,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAC9C,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UINode } from '@texaryn/core';
|
|
3
|
+
export interface WidgetProps {
|
|
4
|
+
node: UINode;
|
|
5
|
+
}
|
|
6
|
+
declare function BootstrapSelectImpl({ node }: WidgetProps): React.JSX.Element;
|
|
7
|
+
export declare const BootstrapSelect: React.MemoExoticComponent<typeof BootstrapSelectImpl>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=BootstrapSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapSelect.d.ts","sourceRoot":"","sources":["../../src/widgets/BootstrapSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAa,MAAM,EAAE,MAAM,eAAe,CAAA;AAItD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,mBAAmB,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,qBAiBjD;AAED,eAAO,MAAM,eAAe,uDAAiF,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useFieldBinding } from '@texaryn/react';
|
|
4
|
+
import { BootstrapFeedback } from './BootstrapFeedback.js';
|
|
5
|
+
function BootstrapSelectImpl({ node }) {
|
|
6
|
+
const field = useFieldBinding(node);
|
|
7
|
+
const enumValues = field.node.enumValues ?? [];
|
|
8
|
+
return (_jsxs("div", { className: "mb-3", children: [_jsx("label", { ...field.labelProps, className: "form-label", children: field.label }), _jsx("select", { ...field.domInputProps, className: field.invalid ? 'form-select is-invalid' : 'form-select', children: enumValues.map((option) => (_jsx("option", { value: String(option.value), children: option.title ?? String(option.value) }, String(option.value)))) }), _jsx(BootstrapFeedback, { field: field })] }));
|
|
9
|
+
}
|
|
10
|
+
export const BootstrapSelect = React.memo(BootstrapSelectImpl, (prev, next) => prev.node.id === next.node.id);
|
|
11
|
+
//# sourceMappingURL=BootstrapSelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapSelect.js","sourceRoot":"","sources":["../../src/widgets/BootstrapSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAM1D,SAAS,mBAAmB,CAAC,EAAE,IAAI,EAAe;IAChD,MAAM,KAAK,GAAG,eAAe,CAAC,IAAiB,CAAC,CAAA;IAChD,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAA;IAE9C,OAAO,CACL,eAAK,SAAS,EAAC,MAAM,aACnB,mBAAW,KAAK,CAAC,UAAU,EAAE,SAAS,EAAC,YAAY,YAAE,KAAK,CAAC,KAAK,GAAS,EACzE,oBAAY,KAAK,CAAC,aAAa,EAAE,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,aAAa,YACjG,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAC1B,iBAAmC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,YAC3D,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,IAD1B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAExB,CACV,CAAC,GACK,EACT,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,IAC/B,CACP,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UINode } from '@texaryn/core';
|
|
3
|
+
export interface WidgetProps {
|
|
4
|
+
node: UINode;
|
|
5
|
+
}
|
|
6
|
+
declare function BootstrapTextInputImpl({ node }: WidgetProps): React.JSX.Element;
|
|
7
|
+
export declare const BootstrapTextInput: React.MemoExoticComponent<typeof BootstrapTextInputImpl>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=BootstrapTextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapTextInput.d.ts","sourceRoot":"","sources":["../../src/widgets/BootstrapTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAa,MAAM,EAAE,MAAM,eAAe,CAAA;AAItD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,sBAAsB,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,qBASpD;AAED,eAAO,MAAM,kBAAkB,0DAAoF,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useFieldBinding } from '@texaryn/react';
|
|
4
|
+
import { BootstrapFeedback } from './BootstrapFeedback.js';
|
|
5
|
+
function BootstrapTextInputImpl({ node }) {
|
|
6
|
+
const field = useFieldBinding(node);
|
|
7
|
+
return (_jsxs("div", { className: "mb-3", children: [_jsx("label", { ...field.labelProps, className: "form-label", children: field.label }), _jsx("input", { ...field.domInputProps, type: "text", className: field.invalid ? 'form-control is-invalid' : 'form-control' }), _jsx(BootstrapFeedback, { field: field })] }));
|
|
8
|
+
}
|
|
9
|
+
export const BootstrapTextInput = React.memo(BootstrapTextInputImpl, (prev, next) => prev.node.id === next.node.id);
|
|
10
|
+
//# sourceMappingURL=BootstrapTextInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapTextInput.js","sourceRoot":"","sources":["../../src/widgets/BootstrapTextInput.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAM1D,SAAS,sBAAsB,CAAC,EAAE,IAAI,EAAe;IACnD,MAAM,KAAK,GAAG,eAAe,CAAC,IAAiB,CAAC,CAAA;IAChD,OAAO,CACL,eAAK,SAAS,EAAC,MAAM,aACnB,mBAAW,KAAK,CAAC,UAAU,EAAE,SAAS,EAAC,YAAY,YAAE,KAAK,CAAC,KAAK,GAAS,EACzE,mBAAW,KAAK,CAAC,aAAa,EAAE,IAAI,EAAC,MAAM,EAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,cAAc,GAAI,EACrH,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,IAC/B,CACP,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UINode } from '@texaryn/core';
|
|
3
|
+
export interface WidgetProps {
|
|
4
|
+
node: UINode;
|
|
5
|
+
}
|
|
6
|
+
declare function BootstrapTextareaImpl({ node }: WidgetProps): React.JSX.Element;
|
|
7
|
+
export declare const BootstrapTextarea: React.MemoExoticComponent<typeof BootstrapTextareaImpl>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=BootstrapTextarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapTextarea.d.ts","sourceRoot":"","sources":["../../src/widgets/BootstrapTextarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAa,MAAM,EAAE,MAAM,eAAe,CAAA;AAItD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,qBAAqB,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,qBASnD;AAED,eAAO,MAAM,iBAAiB,yDAAmF,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useFieldBinding } from '@texaryn/react';
|
|
4
|
+
import { BootstrapFeedback } from './BootstrapFeedback.js';
|
|
5
|
+
function BootstrapTextareaImpl({ node }) {
|
|
6
|
+
const field = useFieldBinding(node);
|
|
7
|
+
return (_jsxs("div", { className: "mb-3", children: [_jsx("label", { ...field.labelProps, className: "form-label", children: field.label }), _jsx("textarea", { ...field.domInputProps, className: field.invalid ? 'form-control is-invalid' : 'form-control' }), _jsx(BootstrapFeedback, { field: field })] }));
|
|
8
|
+
}
|
|
9
|
+
export const BootstrapTextarea = React.memo(BootstrapTextareaImpl, (prev, next) => prev.node.id === next.node.id);
|
|
10
|
+
//# sourceMappingURL=BootstrapTextarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BootstrapTextarea.js","sourceRoot":"","sources":["../../src/widgets/BootstrapTextarea.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAM1D,SAAS,qBAAqB,CAAC,EAAE,IAAI,EAAe;IAClD,MAAM,KAAK,GAAG,eAAe,CAAC,IAAiB,CAAC,CAAA;IAChD,OAAO,CACL,eAAK,SAAS,EAAC,MAAM,aACnB,mBAAW,KAAK,CAAC,UAAU,EAAE,SAAS,EAAC,YAAY,YAAE,KAAK,CAAC,KAAK,GAAS,EACzE,sBAAc,KAAK,CAAC,aAAa,EAAE,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,cAAc,GAAI,EAC5G,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,IAC/B,CACP,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { BootstrapFeedback } from './BootstrapFeedback.js';
|
|
2
|
+
export { BootstrapTextInput } from './BootstrapTextInput.js';
|
|
3
|
+
export { BootstrapNumberInput } from './BootstrapNumberInput.js';
|
|
4
|
+
export { BootstrapTextarea } from './BootstrapTextarea.js';
|
|
5
|
+
export { BootstrapSelect } from './BootstrapSelect.js';
|
|
6
|
+
export { BootstrapCheckbox } from './BootstrapCheckbox.js';
|
|
7
|
+
export { BootstrapObjectLayout } from './BootstrapObjectLayout.js';
|
|
8
|
+
export { BootstrapArrayControl } from './BootstrapArrayControl.js';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/widgets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { BootstrapFeedback } from './BootstrapFeedback.js';
|
|
2
|
+
export { BootstrapTextInput } from './BootstrapTextInput.js';
|
|
3
|
+
export { BootstrapNumberInput } from './BootstrapNumberInput.js';
|
|
4
|
+
export { BootstrapTextarea } from './BootstrapTextarea.js';
|
|
5
|
+
export { BootstrapSelect } from './BootstrapSelect.js';
|
|
6
|
+
export { BootstrapCheckbox } from './BootstrapCheckbox.js';
|
|
7
|
+
export { BootstrapObjectLayout } from './BootstrapObjectLayout.js';
|
|
8
|
+
export { BootstrapArrayControl } from './BootstrapArrayControl.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/widgets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@texaryn/react-bootstrap",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Bootstrap 5 widgets for Texaryn: native markup and Bootstrap classes on top of @texaryn/react",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"bootstrap",
|
|
8
|
+
"bootstrap5",
|
|
9
|
+
"json-schema",
|
|
10
|
+
"forms",
|
|
11
|
+
"texaryn"
|
|
12
|
+
],
|
|
13
|
+
"type": "module",
|
|
5
14
|
"license": "Apache-2.0",
|
|
15
|
+
"funding": {
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/hamzahamidi"
|
|
18
|
+
},
|
|
6
19
|
"repository": {
|
|
7
20
|
"type": "git",
|
|
8
21
|
"url": "git+https://github.com/texaryn/texaryn.git",
|
|
9
22
|
"directory": "packages/react-bootstrap"
|
|
10
23
|
},
|
|
11
24
|
"homepage": "https://github.com/texaryn/texaryn#readme",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/texaryn/texaryn/issues"
|
|
27
|
+
},
|
|
12
28
|
"publishConfig": {
|
|
13
29
|
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"main": "./dist/index.js",
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"import": "./dist/index.js"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist",
|
|
41
|
+
"CHANGELOG.md"
|
|
42
|
+
],
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@texaryn/core": "^0.2.0"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"react": ">=18.0.0",
|
|
48
|
+
"bootstrap": "^5.3",
|
|
49
|
+
"@texaryn/react": "^0.2.0"
|
|
50
|
+
},
|
|
51
|
+
"peerDependenciesMeta": {
|
|
52
|
+
"bootstrap": {
|
|
53
|
+
"optional": true
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@testing-library/react": "^16.0.0",
|
|
58
|
+
"@types/react": "^19.0.0",
|
|
59
|
+
"jsdom": "^25.0.0",
|
|
60
|
+
"react": "^19.0.0",
|
|
61
|
+
"react-dom": "^19.0.0",
|
|
62
|
+
"@texaryn/react": "0.2.0",
|
|
63
|
+
"@texaryn/schema-json": "0.2.0"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "tsc --build"
|
|
14
67
|
}
|
|
15
|
-
}
|
|
68
|
+
}
|