@progress/kendo-react-dropdowns 8.3.0-develop.5 → 8.3.0-develop.6

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.
@@ -6,44 +6,42 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as t from "react";
10
- import { classNames as d } from "@progress/kendo-react-common";
11
- import { getItemValue as n } from "./utils.mjs";
12
- class h extends t.Component {
13
- constructor() {
14
- super(...arguments), this.handleClick = (e) => this.props.onClick(this.props.index, e);
15
- }
16
- render() {
17
- const {
18
- selected: e,
19
- group: s,
20
- dataItem: a,
21
- virtual: c,
22
- groupMode: i,
23
- disabled: l,
24
- render: r
25
- } = this.props, o = /* @__PURE__ */ t.createElement(
26
- "li",
27
- {
28
- id: this.props.id,
29
- role: "option",
30
- "aria-selected": e,
31
- "aria-disabled": l ? !0 : void 0,
32
- className: d("k-list-item", {
33
- "k-selected": e,
34
- "k-focus": this.props.focused,
35
- "k-first": !!s && i === "classic",
36
- "k-disabled": l
37
- }),
38
- onClick: this.handleClick,
39
- style: { position: c ? "relative" : "unset" }
40
- },
41
- /* @__PURE__ */ t.createElement("span", { className: "k-list-item-text" }, n(a, this.props.textField).toString()),
42
- s !== void 0 && i === "classic" ? /* @__PURE__ */ t.createElement("div", { className: "k-list-item-group-label" }, s) : null
43
- );
44
- return r !== void 0 ? r.call(void 0, o, this.props) : o;
45
- }
46
- }
9
+ import * as a from "react";
10
+ import { useUnstyled as B, classNames as l, uDropDownsBase as i } from "@progress/kendo-react-common";
11
+ import { getItemValue as C } from "./utils.mjs";
12
+ const D = (e) => {
13
+ const {
14
+ selected: o,
15
+ group: t,
16
+ dataItem: u,
17
+ virtual: v,
18
+ groupMode: c,
19
+ disabled: n,
20
+ id: f,
21
+ focused: g,
22
+ render: r
23
+ } = e, d = B(), s = d && d.uDropDownsBase, p = (x) => e.onClick(e.index, x), m = /* @__PURE__ */ a.createElement(
24
+ "li",
25
+ {
26
+ id: f,
27
+ role: "option",
28
+ "aria-selected": o,
29
+ "aria-disabled": n ? !0 : void 0,
30
+ className: l(i.li({
31
+ c: s,
32
+ selected: o,
33
+ focused: g,
34
+ first: !!t && c === "classic",
35
+ disabled: n
36
+ })),
37
+ onClick: p,
38
+ style: { position: v ? "relative" : "unset" }
39
+ },
40
+ /* @__PURE__ */ a.createElement("span", { className: l(i.itemText({ c: s })) }, C(u, e.textField).toString()),
41
+ t !== void 0 && c === "classic" ? /* @__PURE__ */ a.createElement("div", { className: l(i.itemGroupLabel({ c: s })) }, t) : null
42
+ );
43
+ return r !== void 0 ? r.call(void 0, m, e) : m;
44
+ }, b = D;
47
45
  export {
48
- h as default
46
+ b as default
49
47
  };