@public-ui/react-standalone 2.0.9 → 2.0.11
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/index.mjs +16 -2
- package/package.json +8 -5
package/dist/index.mjs
CHANGED
|
@@ -93,6 +93,11 @@ const arrayToMap = (arr) => {
|
|
|
93
93
|
return map;
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
+
let tagNameTransformer;
|
|
97
|
+
const setTagNameTransformer = (_tagNameTransformer) => {
|
|
98
|
+
tagNameTransformer = _tagNameTransformer;
|
|
99
|
+
};
|
|
100
|
+
|
|
96
101
|
const setRef = (ref, value) => {
|
|
97
102
|
if (typeof ref === "function") {
|
|
98
103
|
ref(value);
|
|
@@ -158,7 +163,8 @@ const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFun
|
|
|
158
163
|
ref: mergeRefs(forwardedRef, this.setComponentElRef),
|
|
159
164
|
style
|
|
160
165
|
};
|
|
161
|
-
|
|
166
|
+
const newTagName = typeof tagNameTransformer === "function" ? tagNameTransformer(tagName) : tagName;
|
|
167
|
+
return createElement(newTagName, newProps, children);
|
|
162
168
|
}
|
|
163
169
|
static get displayName() {
|
|
164
170
|
return displayName;
|
|
@@ -222,4 +228,12 @@ const KolTreeItemWc = /* @__PURE__ */ createReactComponent("kol-tree-item-wc");
|
|
|
222
228
|
const KolTreeWc = /* @__PURE__ */ createReactComponent("kol-tree-wc");
|
|
223
229
|
const KolVersion = /* @__PURE__ */ createReactComponent("kol-version");
|
|
224
230
|
|
|
225
|
-
|
|
231
|
+
function createReactRenderElement(hostElement) {
|
|
232
|
+
const renderElement = document.createElement("div");
|
|
233
|
+
renderElement.setAttribute("role", "presentation");
|
|
234
|
+
hostElement.innerHTML = "";
|
|
235
|
+
hostElement.appendChild(renderElement);
|
|
236
|
+
return renderElement;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export { KolAbbr, KolAccordion, KolAlert, KolAvatar, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolButtonLink, KolCard, KolDetails, KolForm, KolHeading, KolIcon, KolImage, KolIndentedText, KolInputCheckbox, KolInputColor, KolInputDate, KolInputEmail, KolInputFile, KolInputNumber, KolInputPassword, KolInputRadio, KolInputRange, KolInputText, KolKolibri, KolLink, KolLinkButton, KolLinkGroup, KolLogo, KolModal, KolNav, KolPagination, KolProgress, KolQuote, KolSelect, KolSkipNav, KolSpan, KolSpin, KolSplitButton, KolSymbol, KolTable, KolTabs, KolTextarea, KolToastContainer, KolTree, KolTreeItem, KolTreeItemWc, KolTreeWc, KolVersion, createReactRenderElement, setTagNameTransformer };
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/react-standalone",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
|
-
"repository":
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/public-ui/kolibri"
|
|
9
|
+
},
|
|
7
10
|
"bugs": {
|
|
8
11
|
"url": "https://github.com/public-ui/kolibri/issues",
|
|
9
12
|
"email": "kolibri@itzbund.de"
|
|
@@ -42,12 +45,12 @@
|
|
|
42
45
|
"react"
|
|
43
46
|
],
|
|
44
47
|
"devDependencies": {
|
|
45
|
-
"@public-ui/react": "2.0.
|
|
48
|
+
"@public-ui/react": "2.0.11",
|
|
46
49
|
"cpy-cli": "5.0.0",
|
|
47
|
-
"rimraf": "
|
|
50
|
+
"rimraf": "5.0.5"
|
|
48
51
|
},
|
|
49
52
|
"peerDependencies": {
|
|
50
|
-
"@public-ui/components": "2.0.
|
|
53
|
+
"@public-ui/components": "2.0.11",
|
|
51
54
|
"react": ">=16.14.0",
|
|
52
55
|
"react-dom": ">=16.14.0"
|
|
53
56
|
},
|