@public-ui/react 1.1.10-rc.1 → 1.1.10-rc.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.cjs +9 -11
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
const React = require('react');
|
|
6
4
|
require('react-dom');
|
|
7
5
|
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
9
|
-
|
|
10
|
-
const React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
-
|
|
12
6
|
const dashToPascalCase = (str) => str.toLowerCase().split("-").map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1)).join("");
|
|
13
7
|
const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);
|
|
14
8
|
|
|
@@ -111,13 +105,13 @@ const mergeRefs = (...refs) => {
|
|
|
111
105
|
};
|
|
112
106
|
const createForwardRef = (ReactComponent, displayName) => {
|
|
113
107
|
const forwardRef = (props, ref) => {
|
|
114
|
-
return /* @__PURE__ */
|
|
108
|
+
return /* @__PURE__ */ React.createElement(ReactComponent, {
|
|
115
109
|
...props,
|
|
116
110
|
forwardedRef: ref
|
|
117
111
|
});
|
|
118
112
|
};
|
|
119
113
|
forwardRef.displayName = displayName;
|
|
120
|
-
return
|
|
114
|
+
return React.forwardRef(forwardRef);
|
|
121
115
|
};
|
|
122
116
|
|
|
123
117
|
const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
|
|
@@ -125,7 +119,7 @@ const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFun
|
|
|
125
119
|
defineCustomElement();
|
|
126
120
|
}
|
|
127
121
|
const displayName = dashToPascalCase(tagName);
|
|
128
|
-
const ReactComponent = class extends
|
|
122
|
+
const ReactComponent = class extends React.Component {
|
|
129
123
|
constructor(props) {
|
|
130
124
|
super(props);
|
|
131
125
|
this.setComponentElRef = (element) => {
|
|
@@ -182,11 +176,11 @@ const KolBadge = /* @__PURE__ */ createReactComponent("kol-badge");
|
|
|
182
176
|
const KolBreadcrumb = /* @__PURE__ */ createReactComponent("kol-breadcrumb");
|
|
183
177
|
const KolButton = /* @__PURE__ */ createReactComponent("kol-button");
|
|
184
178
|
const KolButtonGroup = /* @__PURE__ */ createReactComponent("kol-button-group");
|
|
179
|
+
const KolButtonLink = /* @__PURE__ */ createReactComponent("kol-button-link");
|
|
185
180
|
const KolCard = /* @__PURE__ */ createReactComponent("kol-card");
|
|
186
181
|
const KolDetails = /* @__PURE__ */ createReactComponent("kol-details");
|
|
187
182
|
const KolForm = /* @__PURE__ */ createReactComponent("kol-form");
|
|
188
183
|
const KolHeading = /* @__PURE__ */ createReactComponent("kol-heading");
|
|
189
|
-
const KolHeadingWc = /* @__PURE__ */ createReactComponent("kol-heading-wc");
|
|
190
184
|
const KolIcon = /* @__PURE__ */ createReactComponent("kol-icon");
|
|
191
185
|
const KolIconFontAwesome = /* @__PURE__ */ createReactComponent("kol-icon-font-awesome");
|
|
192
186
|
const KolIconIcofont = /* @__PURE__ */ createReactComponent("kol-icon-icofont");
|
|
@@ -194,6 +188,7 @@ const KolIndentedText = /* @__PURE__ */ createReactComponent("kol-indented-text"
|
|
|
194
188
|
const KolInputAdapterLeanup = /* @__PURE__ */ createReactComponent("kol-input-adapter-leanup");
|
|
195
189
|
const KolInputCheckbox = /* @__PURE__ */ createReactComponent("kol-input-checkbox");
|
|
196
190
|
const KolInputColor = /* @__PURE__ */ createReactComponent("kol-input-color");
|
|
191
|
+
const KolInputDate = /* @__PURE__ */ createReactComponent("kol-input-date");
|
|
197
192
|
const KolInputEmail = /* @__PURE__ */ createReactComponent("kol-input-email");
|
|
198
193
|
const KolInputFile = /* @__PURE__ */ createReactComponent("kol-input-file");
|
|
199
194
|
const KolInputNumber = /* @__PURE__ */ createReactComponent("kol-input-number");
|
|
@@ -203,6 +198,7 @@ const KolInputRange = /* @__PURE__ */ createReactComponent("kol-input-range");
|
|
|
203
198
|
const KolInputText = /* @__PURE__ */ createReactComponent("kol-input-text");
|
|
204
199
|
const KolKolibri = /* @__PURE__ */ createReactComponent("kol-kolibri");
|
|
205
200
|
const KolLink = /* @__PURE__ */ createReactComponent("kol-link");
|
|
201
|
+
const KolLinkButton = /* @__PURE__ */ createReactComponent("kol-link-button");
|
|
206
202
|
const KolLinkGroup = /* @__PURE__ */ createReactComponent("kol-link-group");
|
|
207
203
|
const KolLogo = /* @__PURE__ */ createReactComponent("kol-logo");
|
|
208
204
|
const KolModal = /* @__PURE__ */ createReactComponent("kol-modal");
|
|
@@ -227,11 +223,11 @@ exports.KolBadge = KolBadge;
|
|
|
227
223
|
exports.KolBreadcrumb = KolBreadcrumb;
|
|
228
224
|
exports.KolButton = KolButton;
|
|
229
225
|
exports.KolButtonGroup = KolButtonGroup;
|
|
226
|
+
exports.KolButtonLink = KolButtonLink;
|
|
230
227
|
exports.KolCard = KolCard;
|
|
231
228
|
exports.KolDetails = KolDetails;
|
|
232
229
|
exports.KolForm = KolForm;
|
|
233
230
|
exports.KolHeading = KolHeading;
|
|
234
|
-
exports.KolHeadingWc = KolHeadingWc;
|
|
235
231
|
exports.KolIcon = KolIcon;
|
|
236
232
|
exports.KolIconFontAwesome = KolIconFontAwesome;
|
|
237
233
|
exports.KolIconIcofont = KolIconIcofont;
|
|
@@ -239,6 +235,7 @@ exports.KolIndentedText = KolIndentedText;
|
|
|
239
235
|
exports.KolInputAdapterLeanup = KolInputAdapterLeanup;
|
|
240
236
|
exports.KolInputCheckbox = KolInputCheckbox;
|
|
241
237
|
exports.KolInputColor = KolInputColor;
|
|
238
|
+
exports.KolInputDate = KolInputDate;
|
|
242
239
|
exports.KolInputEmail = KolInputEmail;
|
|
243
240
|
exports.KolInputFile = KolInputFile;
|
|
244
241
|
exports.KolInputNumber = KolInputNumber;
|
|
@@ -248,6 +245,7 @@ exports.KolInputRange = KolInputRange;
|
|
|
248
245
|
exports.KolInputText = KolInputText;
|
|
249
246
|
exports.KolKolibri = KolKolibri;
|
|
250
247
|
exports.KolLink = KolLink;
|
|
248
|
+
exports.KolLinkButton = KolLinkButton;
|
|
251
249
|
exports.KolLinkGroup = KolLinkGroup;
|
|
252
250
|
exports.KolLogo = KolLogo;
|
|
253
251
|
exports.KolModal = KolModal;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,11 +16,11 @@ declare const KolBadge: react.ForwardRefExoticComponent<JSX.KolBadge & Omit<reac
|
|
|
16
16
|
declare const KolBreadcrumb: react.ForwardRefExoticComponent<JSX.KolBreadcrumb & Omit<react.HTMLAttributes<HTMLKolBreadcrumbElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolBreadcrumbElement>>;
|
|
17
17
|
declare const KolButton: react.ForwardRefExoticComponent<JSX.KolButton & Omit<react.HTMLAttributes<HTMLKolButtonElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolButtonElement>>;
|
|
18
18
|
declare const KolButtonGroup: react.ForwardRefExoticComponent<JSX.KolButtonGroup & Omit<react.HTMLAttributes<HTMLKolButtonGroupElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolButtonGroupElement>>;
|
|
19
|
+
declare const KolButtonLink: react.ForwardRefExoticComponent<JSX.KolButtonLink & Omit<react.HTMLAttributes<HTMLKolButtonLinkElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolButtonLinkElement>>;
|
|
19
20
|
declare const KolCard: react.ForwardRefExoticComponent<JSX.KolCard & Omit<react.HTMLAttributes<HTMLKolCardElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolCardElement>>;
|
|
20
21
|
declare const KolDetails: react.ForwardRefExoticComponent<JSX.KolDetails & Omit<react.HTMLAttributes<HTMLKolDetailsElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolDetailsElement>>;
|
|
21
22
|
declare const KolForm: react.ForwardRefExoticComponent<JSX.KolForm & Omit<react.HTMLAttributes<HTMLKolFormElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolFormElement>>;
|
|
22
23
|
declare const KolHeading: react.ForwardRefExoticComponent<JSX.KolHeading & Omit<react.HTMLAttributes<HTMLKolHeadingElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolHeadingElement>>;
|
|
23
|
-
declare const KolHeadingWc: react.ForwardRefExoticComponent<JSX.KolHeadingWc & Omit<react.HTMLAttributes<HTMLKolHeadingWcElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolHeadingWcElement>>;
|
|
24
24
|
declare const KolIcon: react.ForwardRefExoticComponent<JSX.KolIcon & Omit<react.HTMLAttributes<HTMLKolIconElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolIconElement>>;
|
|
25
25
|
declare const KolIconFontAwesome: react.ForwardRefExoticComponent<JSX.KolIconFontAwesome & Omit<react.HTMLAttributes<HTMLKolIconFontAwesomeElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolIconFontAwesomeElement>>;
|
|
26
26
|
declare const KolIconIcofont: react.ForwardRefExoticComponent<JSX.KolIconIcofont & Omit<react.HTMLAttributes<HTMLKolIconIcofontElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolIconIcofontElement>>;
|
|
@@ -28,6 +28,7 @@ declare const KolIndentedText: react.ForwardRefExoticComponent<JSX.KolIndentedTe
|
|
|
28
28
|
declare const KolInputAdapterLeanup: react.ForwardRefExoticComponent<JSX.KolInputAdapterLeanup & Omit<react.HTMLAttributes<HTMLKolInputAdapterLeanupElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolInputAdapterLeanupElement>>;
|
|
29
29
|
declare const KolInputCheckbox: react.ForwardRefExoticComponent<JSX.KolInputCheckbox & Omit<react.HTMLAttributes<HTMLKolInputCheckboxElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolInputCheckboxElement>>;
|
|
30
30
|
declare const KolInputColor: react.ForwardRefExoticComponent<JSX.KolInputColor & Omit<react.HTMLAttributes<HTMLKolInputColorElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolInputColorElement>>;
|
|
31
|
+
declare const KolInputDate: react.ForwardRefExoticComponent<JSX.KolInputDate & Omit<react.HTMLAttributes<HTMLKolInputDateElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolInputDateElement>>;
|
|
31
32
|
declare const KolInputEmail: react.ForwardRefExoticComponent<JSX.KolInputEmail & Omit<react.HTMLAttributes<HTMLKolInputEmailElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolInputEmailElement>>;
|
|
32
33
|
declare const KolInputFile: react.ForwardRefExoticComponent<JSX.KolInputFile & Omit<react.HTMLAttributes<HTMLKolInputFileElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolInputFileElement>>;
|
|
33
34
|
declare const KolInputNumber: react.ForwardRefExoticComponent<JSX.KolInputNumber & Omit<react.HTMLAttributes<HTMLKolInputNumberElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolInputNumberElement>>;
|
|
@@ -37,6 +38,7 @@ declare const KolInputRange: react.ForwardRefExoticComponent<JSX.KolInputRange &
|
|
|
37
38
|
declare const KolInputText: react.ForwardRefExoticComponent<JSX.KolInputText & Omit<react.HTMLAttributes<HTMLKolInputTextElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolInputTextElement>>;
|
|
38
39
|
declare const KolKolibri: react.ForwardRefExoticComponent<JSX.KolKolibri & Omit<react.HTMLAttributes<HTMLKolKolibriElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolKolibriElement>>;
|
|
39
40
|
declare const KolLink: react.ForwardRefExoticComponent<JSX.KolLink & Omit<react.HTMLAttributes<HTMLKolLinkElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolLinkElement>>;
|
|
41
|
+
declare const KolLinkButton: react.ForwardRefExoticComponent<JSX.KolLinkButton & Omit<react.HTMLAttributes<HTMLKolLinkButtonElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolLinkButtonElement>>;
|
|
40
42
|
declare const KolLinkGroup: react.ForwardRefExoticComponent<JSX.KolLinkGroup & Omit<react.HTMLAttributes<HTMLKolLinkGroupElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolLinkGroupElement>>;
|
|
41
43
|
declare const KolLogo: react.ForwardRefExoticComponent<JSX.KolLogo & Omit<react.HTMLAttributes<HTMLKolLogoElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolLogoElement>>;
|
|
42
44
|
declare const KolModal: react.ForwardRefExoticComponent<JSX.KolModal & Omit<react.HTMLAttributes<HTMLKolModalElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolModalElement>>;
|
|
@@ -54,4 +56,4 @@ declare const KolToast: react.ForwardRefExoticComponent<JSX.KolToast & Omit<reac
|
|
|
54
56
|
declare const KolTooltip: react.ForwardRefExoticComponent<JSX.KolTooltip & Omit<react.HTMLAttributes<HTMLKolTooltipElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolTooltipElement>>;
|
|
55
57
|
declare const KolVersion: react.ForwardRefExoticComponent<JSX.KolVersion & Omit<react.HTMLAttributes<HTMLKolVersionElement>, "style"> & StyleReactProps & react.RefAttributes<HTMLKolVersionElement>>;
|
|
56
58
|
|
|
57
|
-
export { KolAbbr, KolAccordion, KolAlert, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolCard, KolDetails, KolForm, KolHeading,
|
|
59
|
+
export { KolAbbr, KolAccordion, KolAlert, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolButtonLink, KolCard, KolDetails, KolForm, KolHeading, KolIcon, KolIconFontAwesome, KolIconIcofont, KolIndentedText, KolInputAdapterLeanup, KolInputCheckbox, KolInputColor, KolInputDate, KolInputEmail, KolInputFile, KolInputNumber, KolInputPassword, KolInputRadio, KolInputRange, KolInputText, KolKolibri, KolLink, KolLinkButton, KolLinkGroup, KolLogo, KolModal, KolNav, KolPagination, KolProgress, KolSelect, KolSkipNav, KolSpin, KolSymbol, KolTable, KolTabs, KolTextarea, KolToast, KolTooltip, KolVersion };
|
package/dist/index.mjs
CHANGED
|
@@ -174,11 +174,11 @@ const KolBadge = /* @__PURE__ */ createReactComponent("kol-badge");
|
|
|
174
174
|
const KolBreadcrumb = /* @__PURE__ */ createReactComponent("kol-breadcrumb");
|
|
175
175
|
const KolButton = /* @__PURE__ */ createReactComponent("kol-button");
|
|
176
176
|
const KolButtonGroup = /* @__PURE__ */ createReactComponent("kol-button-group");
|
|
177
|
+
const KolButtonLink = /* @__PURE__ */ createReactComponent("kol-button-link");
|
|
177
178
|
const KolCard = /* @__PURE__ */ createReactComponent("kol-card");
|
|
178
179
|
const KolDetails = /* @__PURE__ */ createReactComponent("kol-details");
|
|
179
180
|
const KolForm = /* @__PURE__ */ createReactComponent("kol-form");
|
|
180
181
|
const KolHeading = /* @__PURE__ */ createReactComponent("kol-heading");
|
|
181
|
-
const KolHeadingWc = /* @__PURE__ */ createReactComponent("kol-heading-wc");
|
|
182
182
|
const KolIcon = /* @__PURE__ */ createReactComponent("kol-icon");
|
|
183
183
|
const KolIconFontAwesome = /* @__PURE__ */ createReactComponent("kol-icon-font-awesome");
|
|
184
184
|
const KolIconIcofont = /* @__PURE__ */ createReactComponent("kol-icon-icofont");
|
|
@@ -186,6 +186,7 @@ const KolIndentedText = /* @__PURE__ */ createReactComponent("kol-indented-text"
|
|
|
186
186
|
const KolInputAdapterLeanup = /* @__PURE__ */ createReactComponent("kol-input-adapter-leanup");
|
|
187
187
|
const KolInputCheckbox = /* @__PURE__ */ createReactComponent("kol-input-checkbox");
|
|
188
188
|
const KolInputColor = /* @__PURE__ */ createReactComponent("kol-input-color");
|
|
189
|
+
const KolInputDate = /* @__PURE__ */ createReactComponent("kol-input-date");
|
|
189
190
|
const KolInputEmail = /* @__PURE__ */ createReactComponent("kol-input-email");
|
|
190
191
|
const KolInputFile = /* @__PURE__ */ createReactComponent("kol-input-file");
|
|
191
192
|
const KolInputNumber = /* @__PURE__ */ createReactComponent("kol-input-number");
|
|
@@ -195,6 +196,7 @@ const KolInputRange = /* @__PURE__ */ createReactComponent("kol-input-range");
|
|
|
195
196
|
const KolInputText = /* @__PURE__ */ createReactComponent("kol-input-text");
|
|
196
197
|
const KolKolibri = /* @__PURE__ */ createReactComponent("kol-kolibri");
|
|
197
198
|
const KolLink = /* @__PURE__ */ createReactComponent("kol-link");
|
|
199
|
+
const KolLinkButton = /* @__PURE__ */ createReactComponent("kol-link-button");
|
|
198
200
|
const KolLinkGroup = /* @__PURE__ */ createReactComponent("kol-link-group");
|
|
199
201
|
const KolLogo = /* @__PURE__ */ createReactComponent("kol-logo");
|
|
200
202
|
const KolModal = /* @__PURE__ */ createReactComponent("kol-modal");
|
|
@@ -212,4 +214,4 @@ const KolToast = /* @__PURE__ */ createReactComponent("kol-toast");
|
|
|
212
214
|
const KolTooltip = /* @__PURE__ */ createReactComponent("kol-tooltip");
|
|
213
215
|
const KolVersion = /* @__PURE__ */ createReactComponent("kol-version");
|
|
214
216
|
|
|
215
|
-
export { KolAbbr, KolAccordion, KolAlert, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolCard, KolDetails, KolForm, KolHeading,
|
|
217
|
+
export { KolAbbr, KolAccordion, KolAlert, KolBadge, KolBreadcrumb, KolButton, KolButtonGroup, KolButtonLink, KolCard, KolDetails, KolForm, KolHeading, KolIcon, KolIconFontAwesome, KolIconIcofont, KolIndentedText, KolInputAdapterLeanup, KolInputCheckbox, KolInputColor, KolInputDate, KolInputEmail, KolInputFile, KolInputNumber, KolInputPassword, KolInputRadio, KolInputRange, KolInputText, KolKolibri, KolLink, KolLinkButton, KolLinkGroup, KolLogo, KolModal, KolNav, KolPagination, KolProgress, KolSelect, KolSkipNav, KolSpin, KolSymbol, KolTable, KolTabs, KolTextarea, KolToast, KolTooltip, KolVersion };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/react",
|
|
3
|
-
"version": "1.1.10-rc.
|
|
3
|
+
"version": "1.1.10-rc.11",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": "https://github.com/public-ui/kolibri",
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
":unpublish": "npm unpublish -f --registry=http://localhost:4873"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@public-ui/core": "1.1.10-rc.
|
|
32
|
-
"@public-ui/components": "1.1.10-rc.
|
|
31
|
+
"@public-ui/core": "1.1.10-rc.11",
|
|
32
|
+
"@public-ui/components": "1.1.10-rc.11",
|
|
33
33
|
"@types/minimatch": "5.1.2",
|
|
34
34
|
"@types/minimist": "1.2.2",
|
|
35
|
-
"@types/node": "18.11.
|
|
35
|
+
"@types/node": "18.11.9",
|
|
36
36
|
"@types/normalize-package-data": "2.4.1",
|
|
37
|
-
"@types/react": "18.0.
|
|
38
|
-
"@types/react-dom": "18.0.
|
|
37
|
+
"@types/react": "18.0.24",
|
|
38
|
+
"@types/react-dom": "18.0.8",
|
|
39
39
|
"react": "18.2.0",
|
|
40
40
|
"react-dom": "18.2.0",
|
|
41
41
|
"typescript": "4.8.4",
|
|
42
|
-
"unbuild": "0.
|
|
42
|
+
"unbuild": "0.9.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@public-ui/components": "1.1.10-rc.
|
|
45
|
+
"@public-ui/components": "1.1.10-rc.11",
|
|
46
46
|
"react": ">=16.14.0",
|
|
47
47
|
"react-dom": ">=16.14.0"
|
|
48
48
|
},
|