@public-ui/react-standalone 2.0.5 → 2.0.7
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 +4 -52
- package/package.json +4 -5
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React, { createElement } from 'react';
|
|
2
|
+
|
|
1
3
|
const dashToPascalCase = (str) => str.toLowerCase().split("-").map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1)).join("");
|
|
2
4
|
const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);
|
|
3
5
|
|
|
@@ -156,7 +158,7 @@ const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFun
|
|
|
156
158
|
ref: mergeRefs(forwardedRef, this.setComponentElRef),
|
|
157
159
|
style
|
|
158
160
|
};
|
|
159
|
-
return
|
|
161
|
+
return createElement(tagName, newProps, children);
|
|
160
162
|
}
|
|
161
163
|
static get displayName() {
|
|
162
164
|
return displayName;
|
|
@@ -220,54 +222,4 @@ const KolTreeItemWc = /* @__PURE__ */ createReactComponent("kol-tree-item-wc");
|
|
|
220
222
|
const KolTreeWc = /* @__PURE__ */ createReactComponent("kol-tree-wc");
|
|
221
223
|
const KolVersion = /* @__PURE__ */ createReactComponent("kol-version");
|
|
222
224
|
|
|
223
|
-
|
|
224
|
-
window.KolAccordion = KolAccordion;
|
|
225
|
-
window.KolAlert = KolAlert;
|
|
226
|
-
window.KolAvatar = KolAvatar;
|
|
227
|
-
window.KolBadge = KolBadge;
|
|
228
|
-
window.KolBreadcrumb = KolBreadcrumb;
|
|
229
|
-
window.KolButton = KolButton;
|
|
230
|
-
window.KolButtonGroup = KolButtonGroup;
|
|
231
|
-
window.KolButtonLink = KolButtonLink;
|
|
232
|
-
window.KolCard = KolCard;
|
|
233
|
-
window.KolDetails = KolDetails;
|
|
234
|
-
window.KolForm = KolForm;
|
|
235
|
-
window.KolHeading = KolHeading;
|
|
236
|
-
window.KolIcon = KolIcon;
|
|
237
|
-
window.KolImage = KolImage;
|
|
238
|
-
window.KolIndentedText = KolIndentedText;
|
|
239
|
-
window.KolInputCheckbox = KolInputCheckbox;
|
|
240
|
-
window.KolInputColor = KolInputColor;
|
|
241
|
-
window.KolInputDate = KolInputDate;
|
|
242
|
-
window.KolInputEmail = KolInputEmail;
|
|
243
|
-
window.KolInputFile = KolInputFile;
|
|
244
|
-
window.KolInputNumber = KolInputNumber;
|
|
245
|
-
window.KolInputPassword = KolInputPassword;
|
|
246
|
-
window.KolInputRadio = KolInputRadio;
|
|
247
|
-
window.KolInputRange = KolInputRange;
|
|
248
|
-
window.KolInputText = KolInputText;
|
|
249
|
-
window.KolKolibri = KolKolibri;
|
|
250
|
-
window.KolLink = KolLink;
|
|
251
|
-
window.KolLinkButton = KolLinkButton;
|
|
252
|
-
window.KolLinkGroup = KolLinkGroup;
|
|
253
|
-
window.KolLogo = KolLogo;
|
|
254
|
-
window.KolModal = KolModal;
|
|
255
|
-
window.KolNav = KolNav;
|
|
256
|
-
window.KolPagination = KolPagination;
|
|
257
|
-
window.KolProgress = KolProgress;
|
|
258
|
-
window.KolQuote = KolQuote;
|
|
259
|
-
window.KolSelect = KolSelect;
|
|
260
|
-
window.KolSkipNav = KolSkipNav;
|
|
261
|
-
window.KolSpan = KolSpan;
|
|
262
|
-
window.KolSpin = KolSpin;
|
|
263
|
-
window.KolSplitButton = KolSplitButton;
|
|
264
|
-
window.KolSymbol = KolSymbol;
|
|
265
|
-
window.KolTable = KolTable;
|
|
266
|
-
window.KolTabs = KolTabs;
|
|
267
|
-
window.KolTextarea = KolTextarea;
|
|
268
|
-
window.KolToastContainer = KolToastContainer;
|
|
269
|
-
window.KolTree = KolTree;
|
|
270
|
-
window.KolTreeItem = KolTreeItem;
|
|
271
|
-
window.KolTreeItemWc = KolTreeItemWc;
|
|
272
|
-
window.KolTreeWc = KolTreeWc;
|
|
273
|
-
window.KolVersion = KolVersion;
|
|
225
|
+
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/react-standalone",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": "https://github.com/public-ui/kolibri",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"react"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@public-ui/react": "2.0.
|
|
45
|
+
"@public-ui/react": "2.0.7",
|
|
46
46
|
"cpy-cli": "5.0.0",
|
|
47
47
|
"rimraf": "3.0.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@public-ui/components": "2.0.
|
|
50
|
+
"@public-ui/components": "2.0.7",
|
|
51
51
|
"react": ">=16.14.0",
|
|
52
52
|
"react-dom": ">=16.14.0"
|
|
53
53
|
},
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"dist"
|
|
64
64
|
],
|
|
65
65
|
"scripts": {
|
|
66
|
-
"build": "pnpm
|
|
67
|
-
"postinstall": "rimraf dist && cpy \"node_modules/@public-ui/react/dist/*.mjs\" dist --dot"
|
|
66
|
+
"build": "pnpm prepare && node scripts/make-standalone.js"
|
|
68
67
|
}
|
|
69
68
|
}
|