@progress/kendo-react-dropdowns 9.2.0-develop.3 → 9.2.0-develop.5

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.
@@ -7,14 +7,14 @@
7
7
  */
8
8
  "use client";
9
9
  import * as t from "react";
10
- import { ActionSheet as x, ActionSheetFooter as u } from "@progress/kendo-react-layout";
11
- import { xIcon as A } from "@progress/kendo-svg-icons";
12
- import { Button as a } from "@progress/kendo-react-buttons";
13
- import { ADAPTIVE_SMALL_BREAKPOINT as i } from "@progress/kendo-react-common";
14
- const I = (l) => {
10
+ import { ActionSheet as h, ActionSheetFooter as u } from "@progress/kendo-react-layout";
11
+ import { xIcon as v } from "@progress/kendo-svg-icons";
12
+ import { Button as n } from "@progress/kendo-react-buttons";
13
+ import { useAdaptiveModeContext as C } from "@progress/kendo-react-common";
14
+ const I = (i) => {
15
15
  const {
16
16
  footer: e,
17
- windowWidth: n = 0,
17
+ windowWidth: o = 0,
18
18
  mobileFilter: r,
19
19
  children: s,
20
20
  navigatable: c,
@@ -23,14 +23,14 @@ const I = (l) => {
23
23
  animation: p,
24
24
  title: b,
25
25
  subTitle: f,
26
- onClose: o
27
- } = l, h = {
26
+ onClose: l
27
+ } = i, a = C(), x = {
28
28
  navigatable: c || !1,
29
29
  navigatableElements: m || [],
30
30
  expand: d,
31
31
  animation: p !== !1,
32
32
  actions: /* @__PURE__ */ t.createElement(
33
- a,
33
+ n,
34
34
  {
35
35
  tabIndex: 0,
36
36
  "aria-label": "Cancel",
@@ -38,20 +38,20 @@ const I = (l) => {
38
38
  type: "button",
39
39
  fillMode: "flat",
40
40
  icon: "x",
41
- svgIcon: A,
42
- onClick: o
41
+ svgIcon: v,
42
+ onClick: l
43
43
  }
44
44
  ),
45
45
  filter: r,
46
- onClose: o,
47
- animationStyles: n <= i ? { top: 0, width: "100%", height: "100%" } : void 0,
46
+ onClose: l,
47
+ animationStyles: a && o <= a.small ? { top: 0, width: "100%", height: "100%" } : void 0,
48
48
  title: b,
49
49
  subTitle: f,
50
50
  className: "k-adaptive-actionsheet",
51
- position: n <= i ? "fullscreen" : void 0
51
+ position: a && o <= a.small ? "fullscreen" : void 0
52
52
  };
53
- return /* @__PURE__ */ t.createElement(x, { ...h }, s, e && /* @__PURE__ */ t.createElement(u, { className: "k-actions k-actions-stretched" }, /* @__PURE__ */ t.createElement(
54
- a,
53
+ return /* @__PURE__ */ t.createElement(h, { ...x }, s, e && /* @__PURE__ */ t.createElement(u, { className: "k-actions k-actions-stretched" }, /* @__PURE__ */ t.createElement(
54
+ n,
55
55
  {
56
56
  size: "large",
57
57
  tabIndex: 0,
@@ -62,7 +62,7 @@ const I = (l) => {
62
62
  },
63
63
  e.cancelText
64
64
  ), /* @__PURE__ */ t.createElement(
65
- a,
65
+ n,
66
66
  {
67
67
  tabIndex: 0,
68
68
  themeColor: "primary",