kdpa-components 1.0.0 → 1.2.0

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.
Files changed (149) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/Accordion/index.js +17 -19
  3. package/dist/Alert/index.js +19 -20
  4. package/dist/{ArrowDropDown-4bc3084f.js → ArrowDropDown-07b9ccae.js} +19 -20
  5. package/dist/Avatar/index.js +7 -8
  6. package/dist/Badge/index.js +22 -24
  7. package/dist/{Box-af81b133.js → Box-032e9a1d.js} +25 -27
  8. package/dist/{Button-da8592f4.js → Button-9d9cc0bd.js} +18 -20
  9. package/dist/{ButtonBase-496494a5.js → ButtonBase-fa4630c8.js} +35 -37
  10. package/dist/Buttons/index.js +28 -30
  11. package/dist/{CSSTransition-5496e075.js → CSSTransition-7e2d0e80.js} +3 -3
  12. package/dist/Cards/index.d.ts +2 -0
  13. package/dist/Cards/index.d.ts.map +1 -1
  14. package/dist/Cards/index.js +150 -1
  15. package/dist/CheckBox/index.js +13 -14
  16. package/dist/Chip/index.js +17 -19
  17. package/dist/{Chip-2dfcd6e9.js → Chip-e5751770.js} +25 -27
  18. package/dist/{CircularProgress-e1f22f2a.js → CircularProgress-01a8929e.js} +19 -21
  19. package/dist/{Close-319784e1.js → Close-db7afda5.js} +2 -2
  20. package/dist/Collapse/index.js +10 -12
  21. package/dist/{Collapse-75d5ed79.js → Collapse-547e6c7a.js} +27 -30
  22. package/dist/CopyToClipboard/index.js +24 -26
  23. package/dist/{Dialog-0eadb508.js → Dialog-652a3ad4.js} +19 -21
  24. package/dist/Divider/index.js +7 -8
  25. package/dist/DropZone/index.js +34 -36
  26. package/dist/{Fade-6a96fc41.js → Fade-7ee2c0a4.js} +23 -25
  27. package/dist/FormControl/index.js +12 -13
  28. package/dist/{FormControl-c914b3de.js → FormControl-ca7447ab.js} +13 -15
  29. package/dist/FullScreenDialog/index.js +20 -22
  30. package/dist/Grid/index.js +9 -10
  31. package/dist/{Grid-4cbef6c7.js → Grid-9708b9ca.js} +65 -67
  32. package/dist/{Grow-8a97586f.js → Grow-55d0786d.js} +17 -19
  33. package/dist/{IconButton-b4e677f7.js → IconButton-48d87778.js} +30 -32
  34. package/dist/Input/index.js +27 -29
  35. package/dist/{KdpaAccordions-60fefaf0.js → KdpaAccordions-2ae65dd1.js} +126 -115
  36. package/dist/{KdpaAlertTitle-497100ba.js → KdpaAlertTitle-f1549035.js} +93 -82
  37. package/dist/{KdpaAutoComplete-9c0b8d4d.js → KdpaAutoComplete-8a11974a.js} +237 -234
  38. package/dist/{KdpaAvatar-da84b516.js → KdpaAvatar-d297ef8a.js} +75 -72
  39. package/dist/{KdpaCheckBox-d06c93b0.js → KdpaCheckBox-84d56486.js} +33 -30
  40. package/dist/KdpaChip-10899788.js +51 -0
  41. package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
  42. package/dist/KdpaCollapse-2d23c312.js +12 -0
  43. package/dist/KdpaCollapse-73c03e02.js +23 -0
  44. package/dist/{KdpaCopyToClipboard-2c36d593.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
  45. package/dist/{KdpaDateTimePicker-8e9da3c8.js → KdpaDateTimePicker-cb4a16d0.js} +10530 -13197
  46. package/dist/{KdpaDivider-10de74db.js → KdpaDivider-1c62c65a.js} +95 -84
  47. package/dist/{KdpaDropZone-85943160.js → KdpaDropZone-b21d2304.js} +631 -531
  48. package/dist/KdpaFormControl-135b070d.js +10 -0
  49. package/dist/{KdpaFormControlLabel-8a6ff2a6.js → KdpaFormControlLabel-249b7622.js} +57 -54
  50. package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
  51. package/dist/KdpaGrid-2a3f9346.js +12 -0
  52. package/dist/{KdpaGridBadge-d8a8e388.js → KdpaGridBadge-65b88a7a.js} +123 -104
  53. package/dist/KdpaIconButton-a0ee669c.js +35 -0
  54. package/dist/KdpaInputMultiline-231a2be1.js +68 -0
  55. package/dist/{KdpaLazyDrop-347b6e24.js → KdpaLazyDrop-1985fc75.js} +254 -217
  56. package/dist/KdpaMenuItem-99cde871.js +56 -0
  57. package/dist/{KdpaSimpleModal-6ab72b9c.js → KdpaModalImage-eb732bf0.js} +176 -185
  58. package/dist/{KdpaPaginationGrid-6e4cd782.js → KdpaPaginationGrid-97a5b164.js} +343 -283
  59. package/dist/{KdpaRadioGroup-de6c67d4.js → KdpaRadioGroup-87122ec7.js} +129 -122
  60. package/dist/{KdpaRtlProvider-d7cc5029.js → KdpaRtlProvider-495e4bb0.js} +169 -162
  61. package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
  62. package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
  63. package/dist/{KdpaSlider-93a991f0.js → KdpaSlider-b7226e20.js} +196 -182
  64. package/dist/{KdpaSwitch-2f07cd38.js → KdpaSwitch-b2ba7c23.js} +50 -43
  65. package/dist/KdpaTabs-ab618f36.js +50 -0
  66. package/dist/{KdpaTooltip-e30e1eea.js → KdpaTooltip-653424c7.js} +95 -88
  67. package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
  68. package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
  69. package/dist/KdpaTypography-763c3238.js +10 -0
  70. package/dist/KdpaZoom-1b0f3404.js +22 -0
  71. package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
  72. package/dist/LazyDrop/index.js +24 -24
  73. package/dist/{ListItem-da6701a3.js → ListItem-ddec0b28.js} +14 -16
  74. package/dist/Loading/KdpaProgress/index.js +12 -13
  75. package/dist/Loading/index.js +11 -12
  76. package/dist/{MenuItem-b9a45c1d.js → MenuItem-057c85a3.js} +44 -46
  77. package/dist/Modal/index.d.ts +0 -2
  78. package/dist/Modal/index.d.ts.map +1 -1
  79. package/dist/Modal/index.js +3 -17
  80. package/dist/{Modal-1e4a342f.js → Modal-daf2a588.js} +18 -20
  81. package/dist/PaginationGrid/index.js +33 -34
  82. package/dist/{Paper-ad7ba238.js → Paper-00aea968.js} +16 -18
  83. package/dist/Pickers/index.d.ts +2 -1
  84. package/dist/Pickers/index.d.ts.map +1 -1
  85. package/dist/Pickers/index.js +43 -45
  86. package/dist/{Popper-20f4d1e9.js → Popper-7adcd815.js} +13 -15
  87. package/dist/{Portal-1b00a402.js → Portal-de5e310c.js} +6 -7
  88. package/dist/Radio/index.js +14 -15
  89. package/dist/Selects/index.js +39 -40
  90. package/dist/{Slide-d61a6d2b.js → Slide-803fd098.js} +17 -19
  91. package/dist/Slider/index.js +8 -9
  92. package/dist/Switch/index.js +12 -13
  93. package/dist/{SwitchBase-e8b18f94.js → SwitchBase-64e5662e.js} +14 -16
  94. package/dist/Tabs/index.js +16 -17
  95. package/dist/{Tabs-1cc5862d.js → Tabs-1140d353.js} +87 -89
  96. package/dist/{TextField-c2c0172a.js → TextField-57c51dbe.js} +52 -54
  97. package/dist/ThemeProvider/index.js +7 -8
  98. package/dist/Tooltips/index.js +16 -18
  99. package/dist/{TransitionGroup-68fd1866.js → TransitionGroup-f9877c5b.js} +2 -2
  100. package/dist/Transitions/index.js +22 -24
  101. package/dist/Tree/index.js +2 -2
  102. package/dist/TreeSelect/index.js +3 -3
  103. package/dist/Typography/index.js +8 -9
  104. package/dist/{Typography-9a28b393.js → Typography-db7e5ea2.js} +42 -44
  105. package/dist/{Zoom-64a4beac.js → Zoom-36a189bb.js} +22 -24
  106. package/dist/{createSvgIcon-5cb90f79.js → createSvgIcon-1aa1b2b2.js} +20 -22
  107. package/dist/{dividerClasses-6f4cb6be.js → dividerClasses-a9b8b1ae.js} +2 -2
  108. package/dist/{elementAcceptingRef-332a290a.js → elementAcceptingRef-bd96c731.js} +1 -1
  109. package/dist/{elementTypeAcceptingRef-05dea79e.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
  110. package/dist/{emotion-react.browser.esm-921c014a.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
  111. package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
  112. package/dist/{extendSxProp-eacd850e.js → extendSxProp-d294b946.js} +2 -2
  113. package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
  114. package/dist/identifier-2647f844.js +3775 -0
  115. package/dist/{index-456f3e1b.js → index-5f8afc53.js} +5 -5
  116. package/dist/index.js +140 -142
  117. package/dist/jsx-dev-runtime-48fdc504.js +615 -0
  118. package/dist/kdpaSelect-4ed993c7.js +1 -0
  119. package/dist/{listItemTextClasses-f7759ba4.js → listItemTextClasses-da281500.js} +2 -2
  120. package/dist/{refType-7c2b090c.js → refType-450337d6.js} +1 -1
  121. package/dist/style.css +1 -1
  122. package/dist/{useSlotProps-db1ead27.js → useSlotProps-3b927bcb.js} +2 -2
  123. package/dist/{useTheme-2bb6b2df.js → useTheme-6ea322ec.js} +2 -2
  124. package/dist/{useThemeProps-114e8d66.js → useThemeProps-ea792506.js} +11 -11
  125. package/dist/{Transition-2ecbc61d.js → utils-acd98a68.js} +113 -98
  126. package/package.json +90 -87
  127. package/dist/KdpaChip-f94c5b7e.js +0 -31
  128. package/dist/KdpaCircularProgress-aed28149.js +0 -44
  129. package/dist/KdpaCollapse-73e5e40c.js +0 -8
  130. package/dist/KdpaCollapse-7f12a32a.js +0 -11
  131. package/dist/KdpaFormControl-ae8f7241.js +0 -6
  132. package/dist/KdpaFullScreenDialog-f60e21f3.js +0 -16
  133. package/dist/KdpaGrid-b93fab29.js +0 -8
  134. package/dist/KdpaIconButton-f5146164.js +0 -23
  135. package/dist/KdpaInputMultiline-71dfbfe5.js +0 -48
  136. package/dist/KdpaMenuItem-9a9ece89.js +0 -35
  137. package/dist/KdpaSecondaryButton-9b81f97d.js +0 -28
  138. package/dist/KdpaSkeleton-4696fadd.js +0 -541
  139. package/dist/KdpaTabs-a76a17a7.js +0 -38
  140. package/dist/KdpaTypography-17403558.js +0 -6
  141. package/dist/KdpaZoom-96a648cb.js +0 -10
  142. package/dist/KpdaPrimaryButton-9a5d8d6d.js +0 -47
  143. package/dist/Sanitizer/index.d.ts +0 -3
  144. package/dist/Sanitizer/index.d.ts.map +0 -1
  145. package/dist/Sanitizer/index.js +0 -492
  146. package/dist/identifier-5cabf5ae.js +0 -2481
  147. package/dist/index-f4329b29.js +0 -669
  148. package/dist/jsx-runtime-944c88e2.js +0 -631
  149. package/dist/utils-8a7b223e.js +0 -18
@@ -1,43 +1,42 @@
1
- import { j as d } from "./jsx-runtime-944c88e2.js";
2
- import * as $ from "react";
3
- import y from "react";
4
- import { _ as s, a as x } from "./extends-393586f3.js";
5
- import { P as a } from "./index-f4329b29.js";
6
- import { g as S, s as p, u as C, c as R, a as z } from "./useThemeProps-114e8d66.js";
7
- import { S as T } from "./SwitchBase-e8b18f94.js";
8
- import { g as j, c as i, a as w, l as O, d as B } from "./identifier-5cabf5ae.js";
9
- import { r as M } from "./refType-7c2b090c.js";
10
- function N(o) {
11
- return j("MuiSwitch", o);
1
+ import { j as $ } from "./jsx-dev-runtime-48fdc504.js";
2
+ import * as y from "react";
3
+ import x from "react";
4
+ import { a as r, _ as S } from "./extends-135d7828.js";
5
+ import { g as C, c as i, a as m, l as R, d as j, j as d, P as a } from "./identifier-2647f844.js";
6
+ import { g as z, s as p, u as T, c as O, a as N } from "./useThemeProps-ea792506.js";
7
+ import { S as B } from "./SwitchBase-64e5662e.js";
8
+ import { r as M } from "./refType-450337d6.js";
9
+ function D(o) {
10
+ return C("MuiSwitch", o);
12
11
  }
13
- const P = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), e = P, _ = ["className", "color", "edge", "size", "sx"], I = (o) => {
12
+ const P = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), e = P, _ = ["className", "color", "edge", "size", "sx"], E = (o) => {
14
13
  const {
15
14
  classes: t,
16
- edge: r,
15
+ edge: s,
17
16
  size: c,
18
17
  color: u,
19
18
  checked: h,
20
19
  disabled: g
21
20
  } = o, b = {
22
- root: ["root", r && `edge${i(r)}`, `size${i(c)}`],
21
+ root: ["root", s && `edge${i(s)}`, `size${i(c)}`],
23
22
  switchBase: ["switchBase", `color${i(u)}`, h && "checked", g && "disabled"],
24
23
  thumb: ["thumb"],
25
24
  track: ["track"],
26
25
  input: ["input"]
27
- }, f = z(b, N, t);
28
- return s({}, t, f);
29
- }, D = p("span", {
26
+ }, f = N(b, D, t);
27
+ return r({}, t, f);
28
+ }, I = p("span", {
30
29
  name: "MuiSwitch",
31
30
  slot: "Root",
32
31
  overridesResolver: (o, t) => {
33
32
  const {
34
- ownerState: r
33
+ ownerState: s
35
34
  } = o;
36
- return [t.root, r.edge && t[`edge${i(r.edge)}`], t[`size${i(r.size)}`]];
35
+ return [t.root, s.edge && t[`edge${i(s.edge)}`], t[`size${i(s.size)}`]];
37
36
  }
38
37
  })(({
39
38
  ownerState: o
40
- }) => s({
39
+ }) => r({
41
40
  display: "inline-flex",
42
41
  width: 34 + 12 * 2,
43
42
  height: 14 + 12 * 2,
@@ -71,16 +70,16 @@ const P = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
71
70
  transform: "translateX(16px)"
72
71
  }
73
72
  }
74
- })), E = p(T, {
73
+ })), U = p(B, {
75
74
  name: "MuiSwitch",
76
75
  slot: "SwitchBase",
77
76
  overridesResolver: (o, t) => {
78
77
  const {
79
- ownerState: r
78
+ ownerState: s
80
79
  } = o;
81
80
  return [t.switchBase, {
82
81
  [`& .${e.input}`]: t.input
83
- }, r.color !== "default" && t[`color${i(r.color)}`]];
82
+ }, s.color !== "default" && t[`color${i(s.color)}`]];
84
83
  }
85
84
  })(({
86
85
  theme: o
@@ -113,9 +112,9 @@ const P = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
113
112
  }), ({
114
113
  theme: o,
115
114
  ownerState: t
116
- }) => s({
115
+ }) => r({
117
116
  "&:hover": {
118
- backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : w(o.palette.action.active, o.palette.action.hoverOpacity),
117
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : m(o.palette.action.active, o.palette.action.hoverOpacity),
119
118
  // Reset on touch devices, it doesn't add specificity
120
119
  "@media (hover: none)": {
121
120
  backgroundColor: "transparent"
@@ -125,19 +124,19 @@ const P = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
125
124
  [`&.${e.checked}`]: {
126
125
  color: (o.vars || o).palette[t.color].main,
127
126
  "&:hover": {
128
- backgroundColor: o.vars ? `rgba(${o.vars.palette[t.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : w(o.palette[t.color].main, o.palette.action.hoverOpacity),
127
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[t.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : m(o.palette[t.color].main, o.palette.action.hoverOpacity),
129
128
  "@media (hover: none)": {
130
129
  backgroundColor: "transparent"
131
130
  }
132
131
  },
133
132
  [`&.${e.disabled}`]: {
134
- color: o.vars ? o.vars.palette.Switch[`${t.color}DisabledColor`] : `${o.palette.mode === "light" ? O(o.palette[t.color].main, 0.62) : B(o.palette[t.color].main, 0.55)}`
133
+ color: o.vars ? o.vars.palette.Switch[`${t.color}DisabledColor`] : `${o.palette.mode === "light" ? R(o.palette[t.color].main, 0.62) : j(o.palette[t.color].main, 0.55)}`
135
134
  }
136
135
  },
137
136
  [`&.${e.checked} + .${e.track}`]: {
138
137
  backgroundColor: (o.vars || o).palette[t.color].main
139
138
  }
140
- })), U = p("span", {
139
+ })), K = p("span", {
141
140
  name: "MuiSwitch",
142
141
  slot: "Track",
143
142
  overridesResolver: (o, t) => t.track
@@ -165,8 +164,8 @@ const P = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
165
164
  width: 20,
166
165
  height: 20,
167
166
  borderRadius: "50%"
168
- })), m = /* @__PURE__ */ $.forwardRef(function(t, r) {
169
- const c = C({
167
+ })), w = /* @__PURE__ */ y.forwardRef(function(t, s) {
168
+ const c = T({
170
169
  props: t,
171
170
  name: "MuiSwitch"
172
171
  }), {
@@ -175,35 +174,35 @@ const P = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
175
174
  edge: g = !1,
176
175
  size: b = "medium",
177
176
  sx: f
178
- } = c, k = x(c, _), n = s({}, c, {
177
+ } = c, k = S(c, _), n = r({}, c, {
179
178
  color: h,
180
179
  edge: g,
181
180
  size: b
182
- }), l = I(n), v = /* @__PURE__ */ d.jsx(A, {
181
+ }), l = E(n), v = /* @__PURE__ */ d.jsx(A, {
183
182
  className: l.thumb,
184
183
  ownerState: n
185
184
  });
186
- return /* @__PURE__ */ d.jsxs(D, {
187
- className: R(l.root, u),
185
+ return /* @__PURE__ */ d.jsxs(I, {
186
+ className: O(l.root, u),
188
187
  sx: f,
189
188
  ownerState: n,
190
- children: [/* @__PURE__ */ d.jsx(E, s({
189
+ children: [/* @__PURE__ */ d.jsx(U, r({
191
190
  type: "checkbox",
192
191
  icon: v,
193
192
  checkedIcon: v,
194
- ref: r,
193
+ ref: s,
195
194
  ownerState: n
196
195
  }, k, {
197
- classes: s({}, l, {
196
+ classes: r({}, l, {
198
197
  root: l.switchBase
199
198
  })
200
- })), /* @__PURE__ */ d.jsx(U, {
199
+ })), /* @__PURE__ */ d.jsx(K, {
201
200
  className: l.track,
202
201
  ownerState: n
203
202
  })]
204
203
  });
205
204
  });
206
- process.env.NODE_ENV !== "production" && (m.propTypes = {
205
+ process.env.NODE_ENV !== "production" && (w.propTypes = {
207
206
  // ----------------------------- Warning --------------------------------
208
207
  // | These PropTypes are generated from the TypeScript type definitions |
209
208
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -297,15 +296,23 @@ process.env.NODE_ENV !== "production" && (m.propTypes = {
297
296
  */
298
297
  value: a.any
299
298
  });
300
- const K = m, J = y.forwardRef(
301
- (o, t) => /* @__PURE__ */ d.jsx(
302
- K,
299
+ const L = w, J = x.forwardRef(
300
+ (o, t) => /* @__PURE__ */ $.jsxDEV(
301
+ L,
303
302
  {
304
303
  color: "primary",
305
304
  inputRef: t,
306
305
  inputProps: { "aria-label": "primary checkbox" },
307
306
  ...o
308
- }
307
+ },
308
+ void 0,
309
+ !1,
310
+ {
311
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Switch/KdpaSwitch.tsx",
312
+ lineNumber: 9,
313
+ columnNumber: 7
314
+ },
315
+ globalThis
309
316
  )
310
317
  );
311
318
  export {
@@ -0,0 +1,50 @@
1
+ import { j as s } from "./jsx-dev-runtime-48fdc504.js";
2
+ import { a as n, T as i } from "./Tabs-1140d353.js";
3
+ import { useRef as r, useEffect as c } from "react";
4
+ import { u as m } from "./useTheme-6ea322ec.js";
5
+ function u(a) {
6
+ return {
7
+ id: `full-width-tab-${a}`,
8
+ "aria-controls": `full-width-tabpanel-${a}`
9
+ };
10
+ }
11
+ function b(a, t) {
12
+ return /* @__PURE__ */ s.jsxDEV(n, { iconPosition: "start", ...u(t), ...a }, void 0, !1, {
13
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Tabs/KdpaTab/KdpaTab.tsx",
14
+ lineNumber: 15,
15
+ columnNumber: 5
16
+ }, this);
17
+ }
18
+ function T(a) {
19
+ const t = m(), e = r();
20
+ return c(() => {
21
+ const o = setTimeout(() => {
22
+ e.current && e.current.updateIndicator();
23
+ }, 300);
24
+ return () => {
25
+ clearTimeout(o);
26
+ };
27
+ }, [t]), /* @__PURE__ */ s.jsxDEV(
28
+ i,
29
+ {
30
+ sx: {
31
+ minHeight: 20
32
+ },
33
+ action: e,
34
+ ...a,
35
+ children: a.children
36
+ },
37
+ void 0,
38
+ !1,
39
+ {
40
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Tabs/KdpaTabs/KdpaTabs.tsx",
41
+ lineNumber: 22,
42
+ columnNumber: 5
43
+ },
44
+ this
45
+ );
46
+ }
47
+ export {
48
+ b as K,
49
+ T as a
50
+ };
@@ -1,41 +1,40 @@
1
- import { j as g } from "./jsx-runtime-944c88e2.js";
2
- import { _ as n, a as ho } from "./extends-393586f3.js";
1
+ import { j as ho } from "./jsx-dev-runtime-48fdc504.js";
2
+ import { a as n, _ as To } from "./extends-135d7828.js";
3
3
  import * as s from "react";
4
- import { P as e } from "./index-f4329b29.js";
5
- import { g as To, s as X, u as bo, c as I, a as go } from "./useThemeProps-114e8d66.js";
6
- import { u as yo } from "./useTheme-2bb6b2df.js";
7
- import { g as vo, c as Se, a as Ue } from "./identifier-5cabf5ae.js";
8
- import { M as We } from "./Popper-20f4d1e9.js";
9
- import { a as Po } from "./useEventCallback-83a2883c.js";
10
- import { u as wo } from "./useIsFocusVisible-4693b580.js";
11
- import { G as Be } from "./Grow-8a97586f.js";
12
- import { a as A } from "./useSlotProps-db1ead27.js";
13
- import { e as xo } from "./elementAcceptingRef-332a290a.js";
4
+ import { g as bo, c as Se, a as Ue, j as x, P as e } from "./identifier-2647f844.js";
5
+ import { g as go, s as X, u as yo, c as I, a as vo } from "./useThemeProps-ea792506.js";
6
+ import { u as Po } from "./useTheme-6ea322ec.js";
7
+ import { M as We } from "./Popper-7adcd815.js";
8
+ import { a as wo } from "./useEventCallback-83a2883c.js";
9
+ import { u as xo } from "./useIsFocusVisible-4693b580.js";
10
+ import { G as Be } from "./Grow-55d0786d.js";
11
+ import { a as k } from "./useSlotProps-3b927bcb.js";
12
+ import { e as Ro } from "./elementAcceptingRef-bd96c731.js";
14
13
  import { u as Co } from "./useControlled-cc2d41cb.js";
15
- import { u as Ro } from "./useId-a21bd5c3.js";
16
- import { u as Oo } from "./useForkRef-0781dda0.js";
17
- import { Z as Mo } from "./Zoom-64a4beac.js";
18
- function Eo(r) {
19
- return vo("MuiTooltip", r);
20
- }
21
- const _o = To("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), d = _o, Lo = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
14
+ import { u as Oo } from "./useId-a21bd5c3.js";
15
+ import { u as Mo } from "./useForkRef-0781dda0.js";
16
+ import { Z as Eo } from "./Zoom-36a189bb.js";
22
17
  function No(r) {
18
+ return bo("MuiTooltip", r);
19
+ }
20
+ const _o = go("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), d = _o, jo = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
21
+ function Do(r) {
23
22
  return Math.round(r * 1e5) / 1e5;
24
23
  }
25
- const $o = (r) => {
24
+ const Lo = (r) => {
26
25
  const {
27
26
  classes: t,
28
27
  disableInteractive: i,
29
- arrow: y,
30
- touch: R,
28
+ arrow: g,
29
+ touch: C,
31
30
  placement: O
32
31
  } = r, M = {
33
- popper: ["popper", !i && "popperInteractive", y && "popperArrow"],
34
- tooltip: ["tooltip", y && "tooltipArrow", R && "touch", `tooltipPlacement${Se(O.split("-")[0])}`],
32
+ popper: ["popper", !i && "popperInteractive", g && "popperArrow"],
33
+ tooltip: ["tooltip", g && "tooltipArrow", C && "touch", `tooltipPlacement${Se(O.split("-")[0])}`],
35
34
  arrow: ["arrow"]
36
35
  };
37
- return go(M, Eo, t);
38
- }, jo = X(We, {
36
+ return vo(M, No, t);
37
+ }, $o = X(We, {
39
38
  name: "MuiTooltip",
40
39
  slot: "Popper",
41
40
  overridesResolver: (r, t) => {
@@ -96,7 +95,7 @@ const $o = (r) => {
96
95
  transformOrigin: "0 0"
97
96
  }
98
97
  })
99
- })), Do = X("div", {
98
+ })), Io = X("div", {
100
99
  name: "MuiTooltip",
101
100
  slot: "Tooltip",
102
101
  overridesResolver: (r, t) => {
@@ -125,7 +124,7 @@ const $o = (r) => {
125
124
  }, t.touch && {
126
125
  padding: "8px 16px",
127
126
  fontSize: r.typography.pxToRem(14),
128
- lineHeight: `${No(16 / 14)}em`,
127
+ lineHeight: `${Do(16 / 14)}em`,
129
128
  fontWeight: r.typography.fontWeightRegular
130
129
  }, {
131
130
  [`.${d.popper}[data-popper-placement*="left"] &`]: n({
@@ -162,7 +161,7 @@ const $o = (r) => {
162
161
  }, t.touch && {
163
162
  marginTop: "24px"
164
163
  })
165
- })), Io = X("span", {
164
+ })), ko = X("span", {
166
165
  name: "MuiTooltip",
167
166
  slot: "Arrow",
168
167
  overridesResolver: (r, t) => t.arrow
@@ -185,7 +184,7 @@ const $o = (r) => {
185
184
  transform: "rotate(45deg)"
186
185
  }
187
186
  }));
188
- let k = !1, q = null, C = {
187
+ let A = !1, q = null, R = {
189
188
  x: 0,
190
189
  y: 0
191
190
  };
@@ -195,8 +194,8 @@ function F(r, t) {
195
194
  };
196
195
  }
197
196
  const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
198
- var y, R, O, M, J, Q, ee, oe, te, re, ne, se, ie, pe, le, ae, ce, ue, me;
199
- const B = bo({
197
+ var g, C, O, M, J, Q, ee, oe, te, re, ne, se, ie, pe, le, ae, ce, ue, me;
198
+ const B = yo({
200
199
  props: t,
201
200
  name: "MuiTooltip"
202
201
  }), {
@@ -223,11 +222,11 @@ const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
223
222
  PopperComponent: U,
224
223
  PopperProps: h = {},
225
224
  slotProps: T = {},
226
- slots: _ = {},
225
+ slots: N = {},
227
226
  title: m,
228
227
  TransitionComponent: Xe = Be,
229
228
  TransitionProps: Je
230
- } = B, we = ho(B, Lo), W = yo(), Qe = W.direction === "rtl", [l, xe] = s.useState(), [V, eo] = s.useState(null), L = s.useRef(!1), z = Ke || S, N = s.useRef(), $ = s.useRef(), b = s.useRef(), Ce = s.useRef(), [oo, Re] = Co({
229
+ } = B, we = To(B, jo), W = Po(), Qe = W.direction === "rtl", [l, xe] = s.useState(), [V, eo] = s.useState(null), _ = s.useRef(!1), z = Ke || S, j = s.useRef(), D = s.useRef(), b = s.useRef(), Re = s.useRef(), [oo, Ce] = Co({
231
230
  controlled: ve,
232
231
  default: !1,
233
232
  name: "Tooltip",
@@ -243,78 +242,78 @@ const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
243
242
  `));
244
243
  }, [m, l, o]);
245
244
  }
246
- const H = Ro(Ze), v = s.useRef(), j = s.useCallback(() => {
247
- v.current !== void 0 && (document.body.style.WebkitUserSelect = v.current, v.current = void 0), clearTimeout(Ce.current);
245
+ const H = Oo(Ze), y = s.useRef(), L = s.useCallback(() => {
246
+ y.current !== void 0 && (document.body.style.WebkitUserSelect = y.current, y.current = void 0), clearTimeout(Re.current);
248
247
  }, []);
249
248
  s.useEffect(() => () => {
250
- clearTimeout(N.current), clearTimeout($.current), clearTimeout(b.current), j();
251
- }, [j]);
249
+ clearTimeout(j.current), clearTimeout(D.current), clearTimeout(b.current), L();
250
+ }, [L]);
252
251
  const Oe = (o) => {
253
- clearTimeout(q), k = !0, Re(!0), ye && !u && ye(o);
254
- }, D = Po(
252
+ clearTimeout(q), A = !0, Ce(!0), ye && !u && ye(o);
253
+ }, $ = wo(
255
254
  /**
256
255
  * @param {React.SyntheticEvent | Event} event
257
256
  */
258
257
  (o) => {
259
258
  clearTimeout(q), q = setTimeout(() => {
260
- k = !1;
261
- }, 800 + be), Re(!1), ge && u && ge(o), clearTimeout(N.current), N.current = setTimeout(() => {
262
- L.current = !1;
259
+ A = !1;
260
+ }, 800 + be), Ce(!1), ge && u && ge(o), clearTimeout(j.current), j.current = setTimeout(() => {
261
+ _.current = !1;
263
262
  }, W.transitions.duration.shortest);
264
263
  }
265
264
  ), K = (o) => {
266
- L.current && o.type !== "touchstart" || (l && l.removeAttribute("title"), clearTimeout($.current), clearTimeout(b.current), he || k && Te ? $.current = setTimeout(() => {
265
+ _.current && o.type !== "touchstart" || (l && l.removeAttribute("title"), clearTimeout(D.current), clearTimeout(b.current), he || A && Te ? D.current = setTimeout(() => {
267
266
  Oe(o);
268
- }, k ? Te : he) : Oe(o));
267
+ }, A ? Te : he) : Oe(o));
269
268
  }, Me = (o) => {
270
- clearTimeout($.current), clearTimeout(b.current), b.current = setTimeout(() => {
271
- D(o);
269
+ clearTimeout(D.current), clearTimeout(b.current), b.current = setTimeout(() => {
270
+ $(o);
272
271
  }, be);
273
272
  }, {
274
273
  isFocusVisibleRef: Ee,
275
274
  onBlur: to,
276
275
  onFocus: ro,
277
276
  ref: no
278
- } = wo(), [, _e] = s.useState(!1), Le = (o) => {
279
- to(o), Ee.current === !1 && (_e(!1), Me(o));
280
- }, Ne = (o) => {
281
- l || xe(o.currentTarget), ro(o), Ee.current === !0 && (_e(!0), K(o));
282
- }, $e = (o) => {
283
- L.current = !0;
277
+ } = xo(), [, Ne] = s.useState(!1), _e = (o) => {
278
+ to(o), Ee.current === !1 && (Ne(!1), Me(o));
279
+ }, je = (o) => {
280
+ l || xe(o.currentTarget), ro(o), Ee.current === !0 && (Ne(!0), K(o));
281
+ }, De = (o) => {
282
+ _.current = !0;
284
283
  const p = c.props;
285
284
  p.onTouchStart && p.onTouchStart(o);
286
- }, je = K, De = Me, so = (o) => {
287
- $e(o), clearTimeout(b.current), clearTimeout(N.current), j(), v.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Ce.current = setTimeout(() => {
288
- document.body.style.WebkitUserSelect = v.current, K(o);
285
+ }, Le = K, $e = Me, so = (o) => {
286
+ De(o), clearTimeout(b.current), clearTimeout(j.current), L(), y.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Re.current = setTimeout(() => {
287
+ document.body.style.WebkitUserSelect = y.current, K(o);
289
288
  }, Ge);
290
289
  }, io = (o) => {
291
- c.props.onTouchEnd && c.props.onTouchEnd(o), j(), clearTimeout(b.current), b.current = setTimeout(() => {
292
- D(o);
290
+ c.props.onTouchEnd && c.props.onTouchEnd(o), L(), clearTimeout(b.current), b.current = setTimeout(() => {
291
+ $(o);
293
292
  }, qe);
294
293
  };
295
294
  s.useEffect(() => {
296
295
  if (!u)
297
296
  return;
298
297
  function o(p) {
299
- (p.key === "Escape" || p.key === "Esc") && D(p);
298
+ (p.key === "Escape" || p.key === "Esc") && $(p);
300
299
  }
301
300
  return document.addEventListener("keydown", o), () => {
302
301
  document.removeEventListener("keydown", o);
303
302
  };
304
- }, [D, u]);
305
- const po = Oo(c.ref, no, xe, i);
303
+ }, [$, u]);
304
+ const po = Mo(c.ref, no, xe, i);
306
305
  !m && m !== 0 && (u = !1);
307
306
  const Y = s.useRef(), lo = (o) => {
308
307
  const p = c.props;
309
- p.onMouseMove && p.onMouseMove(o), C = {
308
+ p.onMouseMove && p.onMouseMove(o), R = {
310
309
  x: o.clientX,
311
310
  y: o.clientY
312
311
  }, Y.current && Y.current.update();
313
- }, P = {}, G = typeof m == "string";
314
- ze ? (P.title = !u && G && !fe ? m : null, P["aria-describedby"] = u ? H : null) : (P["aria-label"] = G ? m : null, P["aria-labelledby"] = u && !G ? H : null);
315
- const a = n({}, P, we, c.props, {
312
+ }, v = {}, G = typeof m == "string";
313
+ ze ? (v.title = !u && G && !fe ? m : null, v["aria-describedby"] = u ? H : null) : (v["aria-label"] = G ? m : null, v["aria-labelledby"] = u && !G ? H : null);
314
+ const a = n({}, v, we, c.props, {
316
315
  className: I(we.className, c.props.className),
317
- onTouchStart: $e,
316
+ onTouchStart: De,
318
317
  ref: po
319
318
  }, S ? {
320
319
  onMouseMove: lo
@@ -323,8 +322,8 @@ const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
323
322
  l && !l.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
324
323
  `));
325
324
  }, [l]));
326
- const w = {};
327
- Ye || (a.onTouchStart = so, a.onTouchEnd = io), fe || (a.onMouseOver = F(je, a.onMouseOver), a.onMouseLeave = F(De, a.onMouseLeave), z || (w.onMouseOver = je, w.onMouseLeave = De)), He || (a.onFocus = F(Ne, a.onFocus), a.onBlur = F(Le, a.onBlur), z || (w.onFocus = Ne, w.onBlur = Le)), process.env.NODE_ENV !== "production" && c.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${c.props.title}\` or the Tooltip component.`].join(`
325
+ const P = {};
326
+ Ye || (a.onTouchStart = so, a.onTouchEnd = io), fe || (a.onMouseOver = F(Le, a.onMouseOver), a.onMouseLeave = F($e, a.onMouseLeave), z || (P.onMouseOver = Le, P.onMouseLeave = $e)), He || (a.onFocus = F(je, a.onFocus), a.onBlur = F(_e, a.onBlur), z || (P.onFocus = je, P.onBlur = _e)), process.env.NODE_ENV !== "production" && c.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${c.props.title}\` or the Tooltip component.`].join(`
328
327
  `));
329
328
  const ao = s.useMemo(() => {
330
329
  var o;
@@ -339,30 +338,30 @@ const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
339
338
  return (o = h.popperOptions) != null && o.modifiers && (p = p.concat(h.popperOptions.modifiers)), n({}, h.popperOptions, {
340
339
  modifiers: p
341
340
  });
342
- }, [V, h]), x = n({}, B, {
341
+ }, [V, h]), w = n({}, B, {
343
342
  isRtl: Qe,
344
343
  arrow: de,
345
344
  disableInteractive: z,
346
345
  placement: Pe,
347
346
  PopperComponentProp: U,
348
- touch: L.current
349
- }), Z = $o(x), Ie = (y = (R = _.popper) != null ? R : E.Popper) != null ? y : jo, Ae = (O = (M = (J = _.transition) != null ? J : E.Transition) != null ? M : Xe) != null ? O : Be, ke = (Q = (ee = _.tooltip) != null ? ee : E.Tooltip) != null ? Q : Do, Fe = (oe = (te = _.arrow) != null ? te : E.Arrow) != null ? oe : Io, co = A(Ie, n({}, h, (re = T.popper) != null ? re : f.popper, {
347
+ touch: _.current
348
+ }), Z = Lo(w), Ie = (g = (C = N.popper) != null ? C : E.Popper) != null ? g : $o, ke = (O = (M = (J = N.transition) != null ? J : E.Transition) != null ? M : Xe) != null ? O : Be, Ae = (Q = (ee = N.tooltip) != null ? ee : E.Tooltip) != null ? Q : Io, Fe = (oe = (te = N.arrow) != null ? te : E.Arrow) != null ? oe : ko, co = k(Ie, n({}, h, (re = T.popper) != null ? re : f.popper, {
350
349
  className: I(Z.popper, h == null ? void 0 : h.className, (ne = (se = T.popper) != null ? se : f.popper) == null ? void 0 : ne.className)
351
- }), x), uo = A(Ae, n({}, Je, (ie = T.transition) != null ? ie : f.transition), x), mo = A(ke, n({}, (pe = T.tooltip) != null ? pe : f.tooltip, {
350
+ }), w), uo = k(ke, n({}, Je, (ie = T.transition) != null ? ie : f.transition), w), mo = k(Ae, n({}, (pe = T.tooltip) != null ? pe : f.tooltip, {
352
351
  className: I(Z.tooltip, (le = (ae = T.tooltip) != null ? ae : f.tooltip) == null ? void 0 : le.className)
353
- }), x), fo = A(Fe, n({}, (ce = T.arrow) != null ? ce : f.arrow, {
352
+ }), w), fo = k(Fe, n({}, (ce = T.arrow) != null ? ce : f.arrow, {
354
353
  className: I(Z.arrow, (ue = (me = T.arrow) != null ? me : f.arrow) == null ? void 0 : ue.className)
355
- }), x);
356
- return /* @__PURE__ */ g.jsxs(s.Fragment, {
357
- children: [/* @__PURE__ */ s.cloneElement(c, a), /* @__PURE__ */ g.jsx(Ie, n({
354
+ }), w);
355
+ return /* @__PURE__ */ x.jsxs(s.Fragment, {
356
+ children: [/* @__PURE__ */ s.cloneElement(c, a), /* @__PURE__ */ x.jsx(Ie, n({
358
357
  as: U ?? We,
359
358
  placement: Pe,
360
359
  anchorEl: S ? {
361
360
  getBoundingClientRect: () => ({
362
- top: C.y,
363
- left: C.x,
364
- right: C.x,
365
- bottom: C.y,
361
+ top: R.y,
362
+ left: R.x,
363
+ right: R.x,
364
+ bottom: R.y,
366
365
  width: 0,
367
366
  height: 0
368
367
  })
@@ -371,15 +370,15 @@ const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
371
370
  open: l ? u : !1,
372
371
  id: H,
373
372
  transition: !0
374
- }, w, co, {
373
+ }, P, co, {
375
374
  popperOptions: ao,
376
375
  children: ({
377
376
  TransitionProps: o
378
- }) => /* @__PURE__ */ g.jsx(Ae, n({
377
+ }) => /* @__PURE__ */ x.jsx(ke, n({
379
378
  timeout: W.transitions.duration.shorter
380
379
  }, o, uo, {
381
- children: /* @__PURE__ */ g.jsxs(ke, n({}, mo, {
382
- children: [m, de ? /* @__PURE__ */ g.jsx(Fe, n({}, fo, {
380
+ children: /* @__PURE__ */ x.jsxs(Ae, n({}, mo, {
381
+ children: [m, de ? /* @__PURE__ */ x.jsx(Fe, n({}, fo, {
383
382
  ref: eo
384
383
  })) : null]
385
384
  }))
@@ -400,7 +399,7 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
400
399
  /**
401
400
  * Tooltip reference element.
402
401
  */
403
- children: xo.isRequired,
402
+ children: Ro.isRequired,
404
403
  /**
405
404
  * Override or extend the styles applied to the component.
406
405
  */
@@ -580,17 +579,25 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
580
579
  */
581
580
  TransitionProps: e.object
582
581
  });
583
- const Ao = Ve, Qo = ({ title: r = "", children: t, ...i }) => /* @__PURE__ */ g.jsx(
582
+ const Ao = Ve, Qo = ({ title: r = "", children: t, ...i }) => /* @__PURE__ */ ho.jsxDEV(
584
583
  Ao,
585
584
  {
586
585
  title: r,
587
- TransitionComponent: Mo,
586
+ TransitionComponent: Eo,
588
587
  enterDelay: 700,
589
588
  leaveDelay: 200,
590
589
  arrow: !0,
591
590
  ...i,
592
591
  children: t
593
- }
592
+ },
593
+ void 0,
594
+ !1,
595
+ {
596
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Tooltips/KdpaTooltip.tsx",
597
+ lineNumber: 9,
598
+ columnNumber: 5
599
+ },
600
+ globalThis
594
601
  );
595
602
  export {
596
603
  Qo as K