@progress/kendo-react-layout 8.1.0-develop.2 → 8.1.0-develop.21

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,88 +6,27 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as r from "react";
10
- import a from "prop-types";
11
- import { TabStripNavigation as c } from "./TabStripNavigation.mjs";
9
+ import * as a from "react";
10
+ import l from "prop-types";
11
+ import { TabStripNavigation as h } from "./TabStripNavigation.mjs";
12
12
  import { TabStripContent as b } from "./TabStripContent.mjs";
13
- import { Keys as n, validatePackage as m, shouldShowValidationUI as f, classNames as u, WatermarkOverlay as g } from "@progress/kendo-react-common";
14
- import { packageMetadata as d } from "../package-metadata.mjs";
15
- const h = class h extends r.Component {
16
- constructor(o) {
17
- super(o), this._element = null, this.showLicenseWatermark = !1, this.keyBinding = {
18
- [n.left]: () => this.prevNavigatableTab(),
19
- [n.right]: () => this.nextNavigatableTab(),
20
- [n.down]: () => this.nextNavigatableTab(),
21
- [n.up]: () => this.prevNavigatableTab(),
22
- [n.home]: () => 0,
23
- [n.end]: () => r.Children.count(this.props.children) - 1
24
- }, this.onSelect = (t) => {
25
- this.props.selected !== t && this.props.onSelect && this.props.onSelect({
26
- selected: t
13
+ import { validatePackage as u, shouldShowValidationUI as g, Navigation as S, classNames as y, WatermarkOverlay as x } from "@progress/kendo-react-common";
14
+ import { packageMetadata as m } from "../package-metadata.mjs";
15
+ const d = class d extends a.Component {
16
+ constructor(s) {
17
+ super(s), this.tabStripRef = a.createRef(), this.showLicenseWatermark = !1, this.onSelect = (n) => {
18
+ this.props.selected !== n && this.props.onSelect && this.props.onSelect({
19
+ selected: n
27
20
  });
28
- }, this.onKeyDown = (t) => {
29
- let e;
30
- switch (t.keyCode) {
31
- case n.left:
32
- e = this.keyBinding[this.invertKeys(n.left, n.right)];
33
- break;
34
- case n.right:
35
- e = this.keyBinding[this.invertKeys(n.right, n.left)];
36
- break;
37
- case n.up:
38
- e = this.keyBinding[n.up];
39
- break;
40
- case n.down:
41
- e = this.keyBinding[n.down];
42
- break;
43
- case n.home:
44
- e = this.keyBinding[n.home];
45
- break;
46
- case n.end:
47
- e = this.keyBinding[n.end];
48
- break;
49
- }
50
- e && (t.preventDefault(), this.onSelect(e()));
51
- }, this.renderContent = (t) => {
52
- const { selected: e, children: i, tabContentStyle: s } = t, l = r.Children.count(i);
53
- return e < l && e > -1 ? /* @__PURE__ */ r.createElement(b, { index: e, ...t, style: s }) : null;
54
- }, this.firstNavigatableTab = () => {
55
- const t = this.children(), e = r.Children.count(t);
56
- if (t) {
57
- for (let i = 0; i < e; i++)
58
- if (!t[i].props.disabled)
59
- return i;
60
- }
61
- }, this.lastNavigatableTab = () => {
62
- const t = this.children(), e = r.Children.count(t);
63
- if (t) {
64
- for (let i = e - 1; i > 0; i--)
65
- if (!t[i].props.disabled)
66
- return i;
67
- }
68
- }, this.prevNavigatableTab = () => {
69
- const t = this.children(), { selected: e } = this.props, i = e ? e - 1 : -1;
70
- if (i < 0)
71
- return this.lastNavigatableTab();
72
- if (t)
73
- for (let s = i; s > -1; s--) {
74
- if (!t[s].props.disabled)
75
- return s;
76
- if (s === 0)
77
- return this.lastNavigatableTab();
78
- }
79
- }, this.nextNavigatableTab = () => {
80
- const t = this.children(), { selected: e } = this.props, i = e ? e + 1 : 1, s = r.Children.count(t);
81
- if (i >= s)
82
- return this.firstNavigatableTab();
83
- if (t)
84
- for (let l = i; l < s; l++) {
85
- if (!t[l].props.disabled)
86
- return l;
87
- if (l + 1 === s)
88
- return this.firstNavigatableTab();
89
- }
90
- }, m(d), this.showLicenseWatermark = f(d);
21
+ }, this.onKeyDown = (n) => {
22
+ this.navigation.triggerKeyboardEvent(n);
23
+ }, this.onKeyboardSelect = (n) => {
24
+ const i = this.children();
25
+ i && i[n].props.disabled || this.onSelect(n);
26
+ }, this.renderContent = (n) => {
27
+ const { selected: i, children: t, tabContentStyle: e } = n, r = a.Children.count(t);
28
+ return i < r && i > -1 ? /* @__PURE__ */ a.createElement(b, { index: i, ...n, style: e }) : null;
29
+ }, u(m), this.showLicenseWatermark = g(m);
91
30
  }
92
31
  get contentPanelId() {
93
32
  return this.props.id + "-content-panel-id";
@@ -95,11 +34,58 @@ const h = class h extends r.Component {
95
34
  get navItemId() {
96
35
  return this.props.id + "-nav-item-id";
97
36
  }
37
+ /** @hidden */
38
+ componentDidMount() {
39
+ var i;
40
+ const s = this.tabStripRef.current, n = s && getComputedStyle(s).direction === "rtl" || !1;
41
+ s && (this.navigation = new S({
42
+ tabIndex: 0,
43
+ root: this.tabStripRef,
44
+ rovingTabIndex: !0,
45
+ focusClass: "k-focus",
46
+ selectors: [".k-tabstrip .k-tabstrip-item"],
47
+ keyboardEvents: {
48
+ keydown: {
49
+ ArrowLeft: (t, e, r) => {
50
+ r.preventDefault();
51
+ const o = e.elements.indexOf(t), c = o !== 0 ? o - 1 : e.elements.length - 1, p = o !== e.elements.length - 1 ? o + 1 : 0;
52
+ n ? (e.focusNext(t), this.onKeyboardSelect(p)) : (e.focusPrevious(t), this.onKeyboardSelect(c));
53
+ },
54
+ ArrowRight: (t, e, r) => {
55
+ r.preventDefault();
56
+ const o = e.elements.indexOf(t), c = o !== 0 ? o - 1 : e.elements.length - 1, p = o !== e.elements.length - 1 ? o + 1 : 0;
57
+ n ? (e.focusPrevious(t), this.onKeyboardSelect(c)) : (e.focusNext(t), this.onKeyboardSelect(p));
58
+ },
59
+ ArrowDown: (t, e, r) => {
60
+ r.preventDefault();
61
+ const o = e.elements.indexOf(t), c = o !== e.elements.length - 1 ? o + 1 : 0;
62
+ e.focusNext(t), this.onKeyboardSelect(c);
63
+ },
64
+ ArrowUp: (t, e, r) => {
65
+ r.preventDefault();
66
+ const o = e.elements.indexOf(t), c = o !== 0 ? o - 1 : e.elements.length - 1;
67
+ e.focusPrevious(t), this.onKeyboardSelect(c);
68
+ },
69
+ Home: (t, e, r) => {
70
+ r.preventDefault(), e.focusElement(e.first, t), this.onKeyboardSelect(0);
71
+ },
72
+ End: (t, e, r) => {
73
+ r.preventDefault(), e.focusElement(e.last, t), this.onKeyboardSelect(e.elements.length - 1);
74
+ }
75
+ }
76
+ }
77
+ }), (i = this.navigation) == null || i.initializeRovingTab(this.props.selected));
78
+ }
79
+ /** @hidden */
80
+ componentWillUnmount() {
81
+ var s;
82
+ (s = this.navigation) == null || s.removeFocusListener();
83
+ }
98
84
  /**
99
85
  * @hidden
100
86
  */
101
87
  render() {
102
- const o = {
88
+ const s = {
103
89
  ...this.props,
104
90
  children: this.children(),
105
91
  contentPanelId: this.contentPanelId,
@@ -107,51 +93,48 @@ const h = class h extends r.Component {
107
93
  navItemId: this.navItemId,
108
94
  onKeyDown: this.onKeyDown,
109
95
  onSelect: this.onSelect
110
- }, { tabPosition: t, tabIndex: e = 0 } = o, i = t === "bottom", s = u(
96
+ }, { tabPosition: n, tabIndex: i } = s, t = n === "bottom", e = y(
111
97
  "k-tabstrip k-pos-relative",
112
98
  {
113
- "k-tabstrip-left": t === "left",
114
- "k-tabstrip-right": t === "right",
115
- "k-tabstrip-bottom": t === "bottom",
116
- "k-tabstrip-top": t === "top",
99
+ "k-tabstrip-left": n === "left",
100
+ "k-tabstrip-right": n === "right",
101
+ "k-tabstrip-bottom": n === "bottom",
102
+ "k-tabstrip-top": n === "top",
117
103
  "k-tabstrip-scrollable": this.props.scrollable
118
104
  },
119
105
  this.props.className
120
106
  );
121
- return /* @__PURE__ */ r.createElement(
107
+ return /* @__PURE__ */ a.createElement(
122
108
  "div",
123
109
  {
124
110
  id: this.props.id,
125
- ref: (l) => this._element = l,
111
+ ref: this.tabStripRef,
126
112
  dir: this.props.dir,
127
- className: s,
113
+ className: e,
128
114
  style: this.props.style
129
115
  },
130
- !i && /* @__PURE__ */ r.createElement(c, { ...o, tabIndex: e }),
131
- this.renderContent(o),
132
- i && /* @__PURE__ */ r.createElement(c, { ...o, tabIndex: e }),
133
- this.showLicenseWatermark && /* @__PURE__ */ r.createElement(g, null)
116
+ !t && /* @__PURE__ */ a.createElement(h, { ...s, tabIndex: i }),
117
+ this.renderContent(s),
118
+ t && /* @__PURE__ */ a.createElement(h, { ...s, tabIndex: i }),
119
+ this.showLicenseWatermark && /* @__PURE__ */ a.createElement(x, null)
134
120
  );
135
121
  }
136
- invertKeys(o, t) {
137
- return this._element && getComputedStyle(this._element).direction === "rtl" || !1 ? t : o;
138
- }
139
122
  children() {
140
- return r.Children.toArray(this.props.children).filter((o) => o);
123
+ return a.Children.toArray(this.props.children).filter((s) => s);
141
124
  }
142
125
  };
143
- h.propTypes = {
144
- animation: a.bool,
145
- children: a.node,
146
- onSelect: a.func,
147
- selected: a.number,
148
- style: a.object,
149
- tabContentStyle: a.object,
150
- tabPosition: a.string,
151
- tabIndex: a.number,
152
- className: a.string,
153
- dir: a.string
154
- }, h.defaultProps = {
126
+ d.propTypes = {
127
+ animation: l.bool,
128
+ children: l.node,
129
+ onSelect: l.func,
130
+ selected: l.number,
131
+ style: l.object,
132
+ tabContentStyle: l.object,
133
+ tabPosition: l.string,
134
+ tabIndex: l.number,
135
+ className: l.string,
136
+ dir: l.string
137
+ }, d.defaultProps = {
155
138
  animation: !0,
156
139
  tabPosition: "top",
157
140
  keepTabsMounted: !1,
@@ -159,7 +142,7 @@ h.propTypes = {
159
142
  mouseScrollSpeed: 10,
160
143
  renderAllContent: !1
161
144
  };
162
- let p = h;
145
+ let f = d;
163
146
  export {
164
- p as TabStrip
147
+ f as TabStrip
165
148
  };
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),i=require("prop-types"),h=require("@progress/kendo-react-animation"),u=require("@progress/kendo-react-common");function b(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>a[t]})}}return e.default=a,Object.freeze(e)}const r=b(y),c=class c extends r.Component{constructor(){super(...arguments),this.contentId=this.props.contentPanelId,this.childFactory=e=>r.cloneElement(e,{...e.props,in:e.props.children.props.id===String(this.contentId+this.props.selected)})}render(){const{children:e,selected:t,contentPanelId:n,keepTabsMounted:s,navItemId:o,renderAllContent:l}=this.props,d=e&&typeof t=="number"&&r.Children.toArray(e)[t],m=u.classNames("k-tabstrip-content","k-active",d&&d.props.contentClassName);return l?this.renderAllContent(e):r.createElement("div",{className:m,style:this.props.style,id:n,role:"tabpanel","aria-hidden":s,"aria-labelledby":`${o}-${(t==null?void 0:t.toString())||""}`},this.renderContent(e))}renderContent(e){return this.props.keepTabsMounted?r.Children.map(this.props.children,(t,n)=>this.renderChild(t,n)):this.renderChild(r.Children.toArray(e)[this.props.selected],this.props.selected)}renderAllContent(e){return r.Children.map(e,(t,n)=>{const s=t,o=n===this.props.selected,l=u.classNames("k-tabstrip-content",{"k-active":o},s.props.contentClassName);return r.createElement("div",{className:l,style:this.props.style,id:`${this.props.contentPanelId}-${n}`,role:"tabpanel","aria-hidden":!o,hidden:!o,"aria-labelledby":`${this.props.navItemId}-${n}`},this.props.animation?r.createElement(h.Fade,{key:`${n}-${o}`,appear:!0,enter:!0,exit:!1},s.props.children):s.props.children)})}renderChild(e,t){const n=t===this.props.selected,s={style:{display:n?void 0:"none"}},o={position:"initial",display:n?void 0:"none"};return e.props.disabled?null:this.props.animation?r.createElement(h.Fade,{appear:!0,exit:this.props.keepTabsMounted,style:o,childFactory:this.props.keepTabsMounted?this.childFactory:void 0},r.createElement("div",{...s,id:String(this.contentId+t),key:t},e.props.children)):r.createElement("div",{...s,key:t},e.props.children)}};c.propTypes={animation:i.bool,children:i.oneOfType([i.element,i.arrayOf(i.element)]),selected:i.number,style:i.object};let p=c;exports.TabStripContent=p;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),i=require("prop-types"),h=require("@progress/kendo-react-animation"),u=require("@progress/kendo-react-common");function b(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>a[t]})}}return e.default=a,Object.freeze(e)}const r=b(y),c=class c extends r.Component{constructor(){super(...arguments),this.contentId=this.props.contentPanelId,this.childFactory=e=>r.cloneElement(e,{...e.props,in:e.props.children.props.id===String(this.contentId+this.props.selected)})}render(){const{children:e,selected:t,contentPanelId:n,keepTabsMounted:s,navItemId:o,renderAllContent:l}=this.props,d=e&&typeof t=="number"&&r.Children.toArray(e)[t],m=u.classNames("k-tabstrip-content","k-active",d&&d.props.contentClassName);return l?this.renderAllContent(e):r.createElement("div",{className:m,style:this.props.style,id:n,role:"tabpanel","aria-hidden":s,"aria-labelledby":`${o}-${(t==null?void 0:t.toString())||""}`,tabIndex:0},this.renderContent(e))}renderContent(e){return this.props.keepTabsMounted?r.Children.map(this.props.children,(t,n)=>this.renderChild(t,n)):this.renderChild(r.Children.toArray(e)[this.props.selected],this.props.selected)}renderAllContent(e){return r.Children.map(e,(t,n)=>{const s=t,o=n===this.props.selected,l=u.classNames("k-tabstrip-content",{"k-active":o},s.props.contentClassName);return r.createElement("div",{className:l,style:this.props.style,id:`${this.props.contentPanelId}-${n}`,role:"tabpanel","aria-hidden":!o,hidden:!o,"aria-labelledby":`${this.props.navItemId}-${n}`},this.props.animation?r.createElement(h.Fade,{key:`${n}-${o}`,appear:!0,enter:!0,exit:!1},s.props.children):s.props.children)})}renderChild(e,t){const n=t===this.props.selected,s={style:{display:n?void 0:"none"}},o={position:"initial",display:n?void 0:"none"};return e.props.disabled?null:this.props.animation?r.createElement(h.Fade,{appear:!0,exit:this.props.keepTabsMounted,style:o,childFactory:this.props.keepTabsMounted?this.childFactory:void 0},r.createElement("div",{...s,id:String(this.contentId+t),key:t},e.props.children)):r.createElement("div",{...s,key:t},e.props.children)}};c.propTypes={animation:i.bool,children:i.oneOfType([i.element,i.arrayOf(i.element)]),selected:i.number,style:i.object};let p=c;exports.TabStripContent=p;
@@ -34,7 +34,8 @@ const l = class l extends n.Component {
34
34
  id: r,
35
35
  role: "tabpanel",
36
36
  "aria-hidden": s,
37
- "aria-labelledby": `${o}-${(t == null ? void 0 : t.toString()) || ""}`
37
+ "aria-labelledby": `${o}-${(t == null ? void 0 : t.toString()) || ""}`,
38
+ tabIndex: 0
38
39
  },
39
40
  this.renderContent(e)
40
41
  );
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),e=require("prop-types"),h=require("@progress/kendo-react-common");function R(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>s[t]})}}return n.default=s,Object.freeze(n)}const o=R(b),l=class l extends o.Component{constructor(){super(...arguments),this.itemRef=null,this.focus=()=>{this.itemRef&&(this.itemRef.tabIndex=0,this.itemRef.focus())},this.blur=()=>{this.itemRef&&(this.itemRef.tabIndex=-1,this.itemRef.blur())},this.onClick=()=>{this.props.onSelect&&this.props.onSelect(this.props.index),this.itemRef&&(this.itemRef.tabIndex=0,this.itemRef.focus())}}render(){const{id:n,active:t,disabled:i,title:d="Untitled",index:c,renderAllContent:f}=this.props,a=f?`${this.props.contentPanelId}-${c.toString()}`:this.props.contentPanelId,u={id:`${n}-${c.toString()}`,"aria-selected":t,"aria-controls":t?a:void 0,"aria-disabled":i,role:"tab",onClick:i?void 0:this.onClick},p=h.classNames("k-item","k-tabstrip-item",{"k-disabled":i,"k-active":t});return o.createElement("li",{...u,className:p,ref:m=>this.itemRef=m,onBlur:this.blur,"aria-controls":a},o.createElement("span",{className:"k-link"},d))}};l.propTypes={active:e.bool,disabled:e.bool,index:e.number,onSelect:e.func,title:e.oneOfType([e.string,e.element]),first:e.bool,last:e.bool};let r=l;exports.TabStripNavigationItem=r;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("react"),e=require("prop-types"),R=require("@progress/kendo-react-common");function g(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>s[t]})}}return n.default=s,Object.freeze(n)}const o=g(k),l=class l extends o.Component{constructor(){super(...arguments),this.itemRef=null,this.focus=()=>{this.itemRef&&this.itemRef.focus()},this.blur=()=>{this.itemRef&&this.itemRef.blur()},this.onClick=()=>{this.props.onSelect&&this.props.onSelect(this.props.index),this.itemRef&&(this.itemRef.tabIndex=0,this.itemRef.focus())}}render(){const{id:n,active:t,disabled:i,title:d="Untitled",index:c,renderAllContent:f,first:u,last:p}=this.props,a=f?`${this.props.contentPanelId}-${c.toString()}`:this.props.contentPanelId,m={id:`${n}-${c.toString()}`,"aria-selected":t,"aria-controls":t?a:void 0,"aria-disabled":i,role:"tab",onClick:i?void 0:this.onClick},b=R.classNames("k-item","k-tabstrip-item",{"k-disabled":i,"k-active":t,"k-first":u,"k-last":p});return o.createElement("li",{...m,className:b,ref:h=>this.itemRef=h,onBlur:this.blur,"aria-controls":a},o.createElement("span",{className:"k-link"},d))}};l.propTypes={active:e.bool,disabled:e.bool,index:e.number,onSelect:e.func,title:e.oneOfType([e.string,e.element]),first:e.bool,last:e.bool};let r=l;exports.TabStripNavigationItem=r;
@@ -6,15 +6,15 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as s from "react";
10
- import e from "prop-types";
11
- import { classNames as h } from "@progress/kendo-react-common";
12
- const o = class o extends s.Component {
9
+ import * as i from "react";
10
+ import t from "prop-types";
11
+ import { classNames as b } from "@progress/kendo-react-common";
12
+ const o = class o extends i.Component {
13
13
  constructor() {
14
14
  super(...arguments), this.itemRef = null, this.focus = () => {
15
- this.itemRef && (this.itemRef.tabIndex = 0, this.itemRef.focus());
15
+ this.itemRef && this.itemRef.focus();
16
16
  }, this.blur = () => {
17
- this.itemRef && (this.itemRef.tabIndex = -1, this.itemRef.blur());
17
+ this.itemRef && this.itemRef.blur();
18
18
  }, this.onClick = () => {
19
19
  this.props.onSelect && this.props.onSelect(this.props.index), this.itemRef && (this.itemRef.tabIndex = 0, this.itemRef.focus());
20
20
  };
@@ -23,31 +23,43 @@ const o = class o extends s.Component {
23
23
  * @hidden
24
24
  */
25
25
  render() {
26
- const { id: c, active: t, disabled: i, title: a = "Untitled", index: n, renderAllContent: m } = this.props, l = m ? `${this.props.contentPanelId}-${n.toString()}` : this.props.contentPanelId, d = {
26
+ const { id: c, active: e, disabled: s, title: a = "Untitled", index: n, renderAllContent: p, first: f, last: m } = this.props, l = p ? `${this.props.contentPanelId}-${n.toString()}` : this.props.contentPanelId, d = {
27
27
  id: `${c}-${n.toString()}`,
28
- "aria-selected": t,
29
- "aria-controls": t ? l : void 0,
30
- "aria-disabled": i,
28
+ "aria-selected": e,
29
+ "aria-controls": e ? l : void 0,
30
+ "aria-disabled": s,
31
31
  role: "tab",
32
- onClick: i ? void 0 : this.onClick
33
- }, p = h("k-item", "k-tabstrip-item", {
34
- "k-disabled": i,
35
- "k-active": t
32
+ onClick: s ? void 0 : this.onClick
33
+ }, h = b("k-item", "k-tabstrip-item", {
34
+ "k-disabled": s,
35
+ "k-active": e,
36
+ "k-first": f,
37
+ "k-last": m
36
38
  });
37
- return /* @__PURE__ */ s.createElement("li", { ...d, className: p, ref: (f) => this.itemRef = f, onBlur: this.blur, "aria-controls": l }, /* @__PURE__ */ s.createElement("span", { className: "k-link" }, a));
39
+ return /* @__PURE__ */ i.createElement(
40
+ "li",
41
+ {
42
+ ...d,
43
+ className: h,
44
+ ref: (u) => this.itemRef = u,
45
+ onBlur: this.blur,
46
+ "aria-controls": l
47
+ },
48
+ /* @__PURE__ */ i.createElement("span", { className: "k-link" }, a)
49
+ );
38
50
  }
39
51
  };
40
52
  o.propTypes = {
41
- active: e.bool,
42
- disabled: e.bool,
43
- index: e.number,
44
- onSelect: e.func,
45
- title: e.oneOfType([
46
- e.string,
47
- e.element
53
+ active: t.bool,
54
+ disabled: t.bool,
55
+ index: t.number,
56
+ onSelect: t.func,
57
+ title: t.oneOfType([
58
+ t.string,
59
+ t.element
48
60
  ]),
49
- first: e.bool,
50
- last: e.bool
61
+ first: t.bool,
62
+ last: t.bool
51
63
  };
52
64
  let r = o;
53
65
  export {