@progress/kendo-react-dropdowns 11.0.0-develop.2 → 11.0.0-develop.4

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.
@@ -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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),r=require("@progress/kendo-react-layout"),y=require("@progress/kendo-svg-icons"),i=require("@progress/kendo-react-buttons"),x=require("@progress/kendo-react-common");function h(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const n=h(v),k=t=>{const{footer:e,windowWidth:a=0,mobileFilter:o,children:s,navigatable:d,navigatableElements:u,expand:b,animation:p,title:m,subTitle:f,onClose:c}=t,l=x.useAdaptiveModeContext(),g={navigatable:d||!1,navigatableElements:u||[],expand:b,animation:p!==!1,suffixActions:n.createElement(i.Button,{tabIndex:0,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",icon:"x",svgIcon:y.xIcon,onClick:c}),filter:o,onClose:c,animationStyles:l&&a<=l.small?{top:0,width:"100%",height:"100%"}:void 0,title:m,subTitle:f,className:"k-adaptive-actionsheet",position:l&&a<=l.small?"fullscreen":void 0};return n.createElement(r.ActionSheet,{...g},s,e&&n.createElement(r.ActionSheetFooter,{className:"k-actions k-actions-stretched"},n.createElement(i.Button,{size:"large",tabIndex:0,"aria-label":e.cancelText,"aria-disabled":"false",type:"button",onClick:e.onCancel},e.cancelText),n.createElement(i.Button,{tabIndex:0,themeColor:"primary",size:"large","aria-label":e.applyText,"aria-disabled":"false",type:"button",onClick:e.onApply},e.applyText)))};exports.AdaptiveMode=k;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),c=require("@progress/kendo-react-layout"),v=require("@progress/kendo-svg-icons"),i=require("@progress/kendo-react-buttons"),h=require("@progress/kendo-react-common");function k(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const n=k(y),C=t=>{const{footer:e,windowWidth:a=0,mobileFilter:o,children:s,navigatable:d,navigatableElements:u,expand:b,animation:m,title:p,subTitle:f,onClose:r}=t,l=h.useAdaptiveModeContext(),g={navigatable:d||!1,navigatableElements:u||[],expand:b,animation:m!==!1,suffixActions:n.createElement(i.Button,{tabIndex:0,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",size:"large",themeColor:"primary",svgIcon:v.checkIcon,onClick:r}),filter:o,onClose:r,animationStyles:l&&a<=l.small?{top:0,width:"100%",height:"100%"}:void 0,title:p,subTitle:f,className:"k-adaptive-actionsheet",position:l&&a<=l.small?"fullscreen":void 0};return n.createElement(c.ActionSheet,{...g},s,e&&n.createElement(c.ActionSheetFooter,{className:"k-actions k-actions-stretched"},n.createElement(i.Button,{size:"large",tabIndex:0,"aria-label":e.cancelText,"aria-disabled":"false",type:"button",onClick:e.onCancel},e.cancelText),n.createElement(i.Button,{tabIndex:0,themeColor:"primary",size:"large","aria-label":e.applyText,"aria-disabled":"false",type:"button",onClick:e.onApply},e.applyText)))};exports.AdaptiveMode=C;
@@ -6,14 +6,14 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as t from "react";
9
- import { ActionSheet as h, ActionSheetFooter as u } from "@progress/kendo-react-layout";
10
- import { xIcon as v } from "@progress/kendo-svg-icons";
9
+ import { ActionSheet as x, ActionSheetFooter as u } from "@progress/kendo-react-layout";
10
+ import { checkIcon as C } from "@progress/kendo-svg-icons";
11
11
  import { Button as o } from "@progress/kendo-react-buttons";
12
- import { useAdaptiveModeContext as C } from "@progress/kendo-react-common";
12
+ import { useAdaptiveModeContext as v } from "@progress/kendo-react-common";
13
13
  const I = (i) => {
14
14
  const {
15
15
  footer: e,
16
- windowWidth: n = 0,
16
+ windowWidth: l = 0,
17
17
  mobileFilter: r,
18
18
  children: s,
19
19
  navigatable: c,
@@ -22,8 +22,8 @@ const I = (i) => {
22
22
  animation: p,
23
23
  title: b,
24
24
  subTitle: f,
25
- onClose: l
26
- } = i, a = C(), x = {
25
+ onClose: n
26
+ } = i, a = v(), h = {
27
27
  navigatable: c || !1,
28
28
  navigatableElements: m || [],
29
29
  expand: d,
@@ -36,20 +36,21 @@ const I = (i) => {
36
36
  "aria-disabled": "false",
37
37
  type: "button",
38
38
  fillMode: "flat",
39
- icon: "x",
40
- svgIcon: v,
41
- onClick: l
39
+ size: "large",
40
+ themeColor: "primary",
41
+ svgIcon: C,
42
+ onClick: n
42
43
  }
43
44
  ),
44
45
  filter: r,
45
- onClose: l,
46
- animationStyles: a && n <= a.small ? { top: 0, width: "100%", height: "100%" } : void 0,
46
+ onClose: n,
47
+ animationStyles: a && l <= a.small ? { top: 0, width: "100%", height: "100%" } : void 0,
47
48
  title: b,
48
49
  subTitle: f,
49
50
  className: "k-adaptive-actionsheet",
50
- position: a && n <= a.small ? "fullscreen" : void 0
51
+ position: a && l <= a.small ? "fullscreen" : void 0
51
52
  };
52
- return /* @__PURE__ */ t.createElement(h, { ...x }, s, e && /* @__PURE__ */ t.createElement(u, { className: "k-actions k-actions-stretched" }, /* @__PURE__ */ t.createElement(
53
+ return /* @__PURE__ */ t.createElement(x, { ...h }, s, e && /* @__PURE__ */ t.createElement(u, { className: "k-actions k-actions-stretched" }, /* @__PURE__ */ t.createElement(
53
54
  o,
54
55
  {
55
56
  size: "large",
@@ -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 strict";const g=require("react"),n=require("prop-types"),c=require("@progress/kendo-react-inputs"),x=require("@progress/kendo-svg-icons"),r=require("@progress/kendo-react-common");function y(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return o.default=e,Object.freeze(o)}const t=y(g),u=t.forwardRef((e,o)=>{const a=t.useRef(null),{renderListFilterWrapper:l=!1,renderPrefixSeparator:f=!1,...m}=e,i=r.useUnstyled(),s=i&&i.uDropDownsBase;t.useImperativeHandle(o,()=>a.current);const p=()=>t.createElement(t.Fragment,null,t.createElement(c.InputPrefix,null,t.createElement(r.IconWrap,{name:"search",icon:x.searchIcon,className:r.classNames(r.uDropDownsBase.inputIcon({c:s}))})),f&&t.createElement(c.InputSeparator,null)),d=t.createElement(c.TextBox,{...m,ref:a,className:r.classNames(r.uDropDownsBase.searchbox({c:s})),value:e.value||"",onChange:e.onChange,onKeyDown:e.onKeyDown,tabIndex:e.tabIndex,onClick:b=>b.stopPropagation(),size:e.size,fillMode:e.fillMode,rounded:e.rounded,prefix:p});return l?t.createElement("div",{className:r.classNames(r.uDropDownsBase.listFilter({c:s}))}," ",d," "):d});u.propTypes={value:n.oneOfType([n.string,n.number,n.array]),tabIndex:n.number,onChange:n.func,onKeyDown:n.func,size:n.oneOf([null,"small","medium","large"]),rounded:n.oneOf([null,"small","medium","large","full"]),fillMode:n.oneOf([null,"solid","flat","outline"]),renderListFilterWrapper:n.bool,renderPrefixSeparator:n.bool};u.displayName="KendoReactListFilter";module.exports=u;
8
+ "use strict";const x=require("react"),n=require("prop-types"),c=require("@progress/kendo-react-inputs"),y=require("@progress/kendo-svg-icons"),r=require("@progress/kendo-react-common");function D(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return o.default=e,Object.freeze(o)}const t=D(x),u=t.forwardRef((e,o)=>{const a=t.useRef(null),{renderListFilterWrapper:l=!1,renderPrefixSeparator:f=!1,placeholder:m,...p}=e,i=r.useUnstyled(),s=i&&i.uDropDownsBase;t.useImperativeHandle(o,()=>a.current);const b=()=>t.createElement(t.Fragment,null,t.createElement(c.InputPrefix,null,t.createElement(r.IconWrap,{name:"search",icon:y.searchIcon,className:r.classNames(r.uDropDownsBase.inputIcon({c:s}))})),f&&t.createElement(c.InputSeparator,null)),d=t.createElement(c.TextBox,{...p,ref:a,className:r.classNames(r.uDropDownsBase.searchbox({c:s})),value:e.value||"",onChange:e.onChange,onKeyDown:e.onKeyDown,tabIndex:e.tabIndex,onClick:g=>g.stopPropagation(),size:e.size,fillMode:e.fillMode,rounded:e.rounded,prefix:b,placeholder:m});return l?t.createElement("div",{className:r.classNames(r.uDropDownsBase.listFilter({c:s}))}," ",d," "):d});u.propTypes={value:n.oneOfType([n.string,n.number,n.array]),tabIndex:n.number,onChange:n.func,onKeyDown:n.func,size:n.oneOf([null,"small","medium","large"]),rounded:n.oneOf([null,"small","medium","large","full"]),fillMode:n.oneOf([null,"solid","flat","outline"]),renderListFilterWrapper:n.bool,placeholder:n.string,renderPrefixSeparator:n.bool};u.displayName="KendoReactListFilter";module.exports=u;
@@ -7,39 +7,40 @@
7
7
  */
8
8
  import * as n from "react";
9
9
  import e from "prop-types";
10
- import { TextBox as y, InputPrefix as b, InputSeparator as I } from "@progress/kendo-react-inputs";
11
- import { searchIcon as g } from "@progress/kendo-svg-icons";
12
- import { useUnstyled as h, classNames as a, uDropDownsBase as l, IconWrap as D } from "@progress/kendo-react-common";
13
- const u = n.forwardRef((r, c) => {
14
- const o = n.useRef(null), { renderListFilterWrapper: m = !1, renderPrefixSeparator: d = !1, ...f } = r, s = h(), t = s && s.uDropDownsBase;
15
- n.useImperativeHandle(c, () => o.current);
16
- const p = () => /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(b, null, /* @__PURE__ */ n.createElement(
17
- D,
10
+ import { TextBox as b, InputPrefix as g, InputSeparator as h } from "@progress/kendo-react-inputs";
11
+ import { searchIcon as I } from "@progress/kendo-svg-icons";
12
+ import { useUnstyled as D, classNames as a, uDropDownsBase as t, IconWrap as w } from "@progress/kendo-react-common";
13
+ const c = n.forwardRef((r, u) => {
14
+ const o = n.useRef(null), { renderListFilterWrapper: m = !1, renderPrefixSeparator: d = !1, placeholder: f, ...p } = r, s = D(), l = s && s.uDropDownsBase;
15
+ n.useImperativeHandle(u, () => o.current);
16
+ const x = () => /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(g, null, /* @__PURE__ */ n.createElement(
17
+ w,
18
18
  {
19
19
  name: "search",
20
- icon: g,
21
- className: a(l.inputIcon({ c: t }))
20
+ icon: I,
21
+ className: a(t.inputIcon({ c: l }))
22
22
  }
23
- )), d && /* @__PURE__ */ n.createElement(I, null)), i = /* @__PURE__ */ n.createElement(
24
- y,
23
+ )), d && /* @__PURE__ */ n.createElement(h, null)), i = /* @__PURE__ */ n.createElement(
24
+ b,
25
25
  {
26
- ...f,
26
+ ...p,
27
27
  ref: o,
28
- className: a(l.searchbox({ c: t })),
28
+ className: a(t.searchbox({ c: l })),
29
29
  value: r.value || "",
30
30
  onChange: r.onChange,
31
31
  onKeyDown: r.onKeyDown,
32
32
  tabIndex: r.tabIndex,
33
- onClick: (x) => x.stopPropagation(),
33
+ onClick: (y) => y.stopPropagation(),
34
34
  size: r.size,
35
35
  fillMode: r.fillMode,
36
36
  rounded: r.rounded,
37
- prefix: p
37
+ prefix: x,
38
+ placeholder: f
38
39
  }
39
40
  );
40
- return m ? /* @__PURE__ */ n.createElement("div", { className: a(l.listFilter({ c: t })) }, " ", i, " ") : i;
41
+ return m ? /* @__PURE__ */ n.createElement("div", { className: a(t.listFilter({ c: l })) }, " ", i, " ") : i;
41
42
  });
42
- u.propTypes = {
43
+ c.propTypes = {
43
44
  value: e.oneOfType([e.string, e.number, e.array]),
44
45
  tabIndex: e.number,
45
46
  onChange: e.func,
@@ -48,9 +49,10 @@ u.propTypes = {
48
49
  rounded: e.oneOf([null, "small", "medium", "large", "full"]),
49
50
  fillMode: e.oneOf([null, "solid", "flat", "outline"]),
50
51
  renderListFilterWrapper: e.bool,
52
+ placeholder: e.string,
51
53
  renderPrefixSeparator: e.bool
52
54
  };
53
- u.displayName = "KendoReactListFilter";
55
+ c.displayName = "KendoReactListFilter";
54
56
  export {
55
- u as default
57
+ c as default
56
58
  };