@progress/kendo-react-labels 9.0.0-develop.1 → 9.0.0-develop.3

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/Error.mjs CHANGED
@@ -17,30 +17,21 @@ const a = (c) => {
17
17
  };
18
18
  n(p);
19
19
  const s = l(), t = s && s.uError, i = o.useMemo(
20
- () => d(m.wrapper({
21
- c: t,
22
- direction: e.direction
23
- }), e.className),
20
+ () => d(
21
+ m.wrapper({
22
+ c: t,
23
+ direction: e.direction
24
+ }),
25
+ e.className
26
+ ),
24
27
  [t, e.direction, e.className]
25
28
  );
26
- return /* @__PURE__ */ o.createElement(
27
- "div",
28
- {
29
- id: e.id,
30
- role: "alert",
31
- style: e.style,
32
- className: i
33
- },
34
- e.children
35
- );
29
+ return /* @__PURE__ */ o.createElement("div", { id: e.id, role: "alert", style: e.style, className: i }, e.children);
36
30
  };
37
31
  a.propTypes = {
38
32
  id: r.string,
39
33
  direction: r.oneOf(["start", "end"]),
40
- children: r.oneOfType([
41
- r.element,
42
- r.node
43
- ]),
34
+ children: r.oneOfType([r.element, r.node]),
44
35
  style: r.object,
45
36
  className: r.string
46
37
  };
package/FloatingLabel.mjs CHANGED
@@ -26,25 +26,41 @@ const i = class i extends t.Component {
26
26
  * @hidden
27
27
  */
28
28
  render() {
29
- const { label: s, editorId: a, className: N, labelClassName: y, editorValue: r, editorPlaceholder: E, editorValid: C, editorDisabled: n, style: v, id: c, optional: F, unstyled: d, ...S } = this.props, z = V(this), p = F ? z.toLanguageString(g, B[g]) : "", m = p && /* @__PURE__ */ t.createElement("span", { className: "k-label-optional" }, p), u = d && d.uFloatingLabel, o = !E && !r && r !== 0, L = b(f.wrapper(
30
- {
29
+ const {
30
+ label: s,
31
+ editorId: a,
32
+ className: N,
33
+ labelClassName: y,
34
+ editorValue: r,
35
+ editorPlaceholder: E,
36
+ editorValid: C,
37
+ editorDisabled: n,
38
+ style: v,
39
+ id: c,
40
+ optional: F,
41
+ unstyled: d,
42
+ ...S
43
+ } = this.props, z = V(this), p = F ? z.toLanguageString(g, B[g]) : "", m = p && /* @__PURE__ */ t.createElement("span", { className: "k-label-optional" }, p), u = d && d.uFloatingLabel, o = !E && !r && r !== 0, L = b(
44
+ f.wrapper({
31
45
  c: u,
32
46
  focused: this.state.focused,
33
47
  empty: o,
34
48
  notEmpty: !o,
35
49
  disabled: n,
36
50
  isRtl: this.props.dir === "rtl"
37
- }
38
- ), N), h = b(f.label(
39
- {
51
+ }),
52
+ N
53
+ ), h = b(
54
+ f.label({
40
55
  c: u,
41
56
  focused: this.state.focused,
42
57
  empty: o,
43
58
  notEmpty: !o,
44
59
  invalid: C === !1,
45
60
  disabled: n
46
- }
47
- ), y);
61
+ }),
62
+ y
63
+ );
48
64
  return /* @__PURE__ */ t.createElement(
49
65
  "span",
50
66
  {
package/Hint.mjs CHANGED
@@ -17,30 +17,22 @@ const o = (n) => {
17
17
  };
18
18
  d(p);
19
19
  const s = c(), i = s && s.uHint, r = a.useMemo(
20
- () => l(m.wrapper({
21
- c: i,
22
- direction: e.direction,
23
- disabled: e.editorDisabled === !0
24
- }), e.className),
20
+ () => l(
21
+ m.wrapper({
22
+ c: i,
23
+ direction: e.direction,
24
+ disabled: e.editorDisabled === !0
25
+ }),
26
+ e.className
27
+ ),
25
28
  [i, e.direction, e.editorDisabled, e.className]
26
29
  );
27
- return /* @__PURE__ */ a.createElement(
28
- "div",
29
- {
30
- id: e.id,
31
- style: e.style,
32
- className: r
33
- },
34
- e.children
35
- );
30
+ return /* @__PURE__ */ a.createElement("div", { id: e.id, style: e.style, className: r }, e.children);
36
31
  };
37
32
  o.propTypes = {
38
33
  id: t.string,
39
34
  direction: t.oneOf(["start", "end"]),
40
- children: t.oneOfType([
41
- t.element,
42
- t.node
43
- ]),
35
+ children: t.oneOfType([t.element, t.node]),
44
36
  style: t.object,
45
37
  className: t.string,
46
38
  editorDisabled: t.bool
package/Label.mjs CHANGED
@@ -24,34 +24,23 @@ const u = (b) => {
24
24
  },
25
25
  [t]
26
26
  ), C = a.useMemo(
27
- () => R(h.label({
28
- c,
29
- empty: !l,
30
- invalid: s === !1,
31
- disabled: o === !0
32
- }), i),
27
+ () => R(
28
+ h.label({
29
+ c,
30
+ empty: !l,
31
+ invalid: s === !1,
32
+ disabled: o === !0
33
+ }),
34
+ i
35
+ ),
33
36
  [c, l, s, o, i]
34
37
  );
35
- return /* @__PURE__ */ a.createElement(
36
- "label",
37
- {
38
- id: f,
39
- htmlFor: y,
40
- onClick: v,
41
- style: g,
42
- className: C
43
- },
44
- l,
45
- N
46
- );
38
+ return /* @__PURE__ */ a.createElement("label", { id: f, htmlFor: y, onClick: v, style: g, className: C }, l, N);
47
39
  };
48
40
  u.propTypes = {
49
41
  id: e.string,
50
42
  editorId: e.string,
51
- editorRef: e.oneOfType([
52
- e.func,
53
- e.shape({ current: e.any })
54
- ]),
43
+ editorRef: e.oneOfType([e.func, e.shape({ current: e.any })]),
55
44
  editorValid: e.bool,
56
45
  editorDisabled: e.bool,
57
46
  style: e.object,
package/README.md CHANGED
@@ -5,10 +5,11 @@
5
5
  # KendoReact Labels Library for React
6
6
 
7
7
  > **Important**
8
- > * This package is а part of [KendoReact](https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)—a commercial UI library.
9
- > * You will need to install a license key when adding the package to your project. For more information, please refer to the [KendoReact My License page](https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels).
10
- > * To receive a license key, you need to either [purchase a license](https://www.telerik.com/kendo-react-ui/pricing?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels) or register for a [free trial](https://www.telerik.com/try/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels). Doing so indicates that you [accept the KendoReact License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels).
11
- > * The 30-day free trial gives you access to all the KendoReact components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the KendoReact dev team!
8
+ >
9
+ > - This package is а part of [KendoReact](https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)—a commercial UI library.
10
+ > - You will need to install a license key when adding the package to your project. For more information, please refer to the [KendoReact My License page](https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels).
11
+ > - To receive a license key, you need to either [purchase a license](https://www.telerik.com/kendo-react-ui/pricing?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels) or register for a [free trial](https://www.telerik.com/try/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels). Doing so indicates that you [accept the KendoReact License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels).
12
+ > - The 30-day free trial gives you access to all the KendoReact components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the KendoReact dev team!
12
13
  >
13
14
  > [Start using KendoReact](https://www.telerik.com/try/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels) and speed up your development process!
14
15
 
@@ -16,12 +17,12 @@ The React Labels package, part of KendoReact, provides components for labelling
16
17
 
17
18
  What's in this package (ToC):
18
19
 
19
- * [React FloatingLabel component](#react-floatinglabel-component)
20
- * [React Label component](#react-label-component)
21
- * [React Hint component](#react-hint-component)
22
- * [React Error component](#react-error-component)
23
- * [Support Options](#support-options)
24
- * [Resources](#resources)
20
+ - [React FloatingLabel component](#react-floatinglabel-component)
21
+ - [React Label component](#react-label-component)
22
+ - [React Hint component](#react-hint-component)
23
+ - [React Error component](#react-error-component)
24
+ - [Support Options](#support-options)
25
+ - [Resources](#resources)
25
26
 
26
27
  ## React FloatingLabel Component
27
28
 
@@ -43,26 +44,26 @@ What's in this package (ToC):
43
44
 
44
45
  For any issues you might encounter while working with the KendoReact Internationalization, use any of the available support channels:
45
46
 
46
- * Industry-leading technical support—KendoReact paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use [the dedicated KendoReact support system](https://www.telerik.com/account/support-tickets?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels).
47
- * Product forums—The [KendoReact forums](https://www.telerik.com/forums/kendo-ui-react?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels) are part of the free support you can get from the community and from the KendoReact team.
48
- * Feedback portal—The [KendoReact feedback portal](https://feedback.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels) is where you can request and vote for new features to be added.
47
+ - Industry-leading technical support—KendoReact paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use [the dedicated KendoReact support system](https://www.telerik.com/account/support-tickets?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels).
48
+ - Product forums—The [KendoReact forums](https://www.telerik.com/forums/kendo-ui-react?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels) are part of the free support you can get from the community and from the KendoReact team.
49
+ - Feedback portal—The [KendoReact feedback portal](https://feedback.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels) is where you can request and vote for new features to be added.
49
50
 
50
51
  ## Resources
51
52
 
52
- * [Getting Started with KendoReact](https://www.telerik.com/kendo-react-ui/components/getting-started/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
53
- * [KendoReact Roadmap](https://www.telerik.com/support/whats-new/kendo-react-ui/roadmap?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
54
- * [Blogs](https://www.telerik.com/blogs/tag/kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
55
- * [Demos, documentation, and component reference](https://www.telerik.com/kendo-react-ui/components/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
56
- * [KendoReact pricing and licensing](https://www.telerik.com/kendo-react-ui/pricing?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
57
- * [Changelog](https://www.telerik.com/kendo-react-ui/components/changelogs/ui-for-react/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
53
+ - [Getting Started with KendoReact](https://www.telerik.com/kendo-react-ui/components/getting-started/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
54
+ - [KendoReact Roadmap](https://www.telerik.com/support/whats-new/kendo-react-ui/roadmap?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
55
+ - [Blogs](https://www.telerik.com/blogs/tag/kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
56
+ - [Demos, documentation, and component reference](https://www.telerik.com/kendo-react-ui/components/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
57
+ - [KendoReact pricing and licensing](https://www.telerik.com/kendo-react-ui/pricing?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
58
+ - [Changelog](https://www.telerik.com/kendo-react-ui/components/changelogs/ui-for-react/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-labels)
58
59
 
59
- *Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
60
+ _Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved._
60
61
 
61
62
  High-level component overview pages
62
63
 
63
- * [React Error Component](https://www.telerik.com/kendo-react-ui/error)
64
- * [React Floating Label Component](https://www.telerik.com/kendo-react-ui/floating-labels)
65
- * [React Hint Component](https://www.telerik.com/kendo-react-ui/hint)
66
- * [React Label Component](https://www.telerik.com/kendo-react-ui/labels)
64
+ - [React Error Component](https://www.telerik.com/kendo-react-ui/error)
65
+ - [React Floating Label Component](https://www.telerik.com/kendo-react-ui/floating-labels)
66
+ - [React Hint Component](https://www.telerik.com/kendo-react-ui/hint)
67
+ - [React Label Component](https://www.telerik.com/kendo-react-ui/labels)
67
68
 
68
- *Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
69
+ _Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries._
@@ -10,7 +10,7 @@ const e = {
10
10
  name: "@progress/kendo-react-labels",
11
11
  productName: "KendoReact",
12
12
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
13
- publishDate: 1729154202,
13
+ publishDate: 1729494520,
14
14
  version: "",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-labels",
3
- "version": "9.0.0-develop.1",
3
+ "version": "9.0.0-develop.3",
4
4
  "description": "React Labels package provides components for labelling form editors. KendoReact Labels package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -23,8 +23,8 @@
23
23
  "sideEffects": false,
24
24
  "peerDependencies": {
25
25
  "@progress/kendo-licensing": "^1.3.4",
26
- "@progress/kendo-react-common": "9.0.0-develop.1",
27
- "@progress/kendo-react-intl": "9.0.0-develop.1",
26
+ "@progress/kendo-react-common": "9.0.0-develop.3",
27
+ "@progress/kendo-react-intl": "9.0.0-develop.3",
28
28
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
29
29
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
30
30
  },