kdpa-components 1.1.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.
- package/CHANGELOG.md +2 -2
- package/dist/Accordion/index.js +14 -14
- package/dist/Alert/index.js +17 -17
- package/dist/{ArrowDropDown-ea2f6035.js → ArrowDropDown-07b9ccae.js} +19 -20
- package/dist/Avatar/index.js +6 -6
- package/dist/Badge/index.js +19 -19
- package/dist/{Box-06b8bc37.js → Box-032e9a1d.js} +23 -24
- package/dist/{Button-28699d65.js → Button-9d9cc0bd.js} +11 -12
- package/dist/{ButtonBase-e4d95755.js → ButtonBase-fa4630c8.js} +9 -10
- package/dist/Buttons/index.js +24 -24
- package/dist/{CSSTransition-2d7d1f1e.js → CSSTransition-7e2d0e80.js} +3 -3
- package/dist/Cards/index.d.ts +2 -0
- package/dist/Cards/index.d.ts.map +1 -1
- package/dist/Cards/index.js +150 -1
- package/dist/CheckBox/index.js +12 -12
- package/dist/Chip/index.js +16 -16
- package/dist/{Chip-95532a41.js → Chip-e5751770.js} +7 -8
- package/dist/{CircularProgress-6e67e3d8.js → CircularProgress-01a8929e.js} +15 -16
- package/dist/{Close-70f0ad0d.js → Close-db7afda5.js} +2 -2
- package/dist/Collapse/index.js +9 -9
- package/dist/{Collapse-c7000672.js → Collapse-547e6c7a.js} +35 -36
- package/dist/CopyToClipboard/index.js +23 -23
- package/dist/{Dialog-185ee62e.js → Dialog-652a3ad4.js} +15 -16
- package/dist/Divider/index.js +6 -6
- package/dist/DropZone/index.js +33 -33
- package/dist/{Fade-e6cc07e5.js → Fade-7ee2c0a4.js} +11 -12
- package/dist/FormControl/index.js +10 -10
- package/dist/{FormControl-3d1d38fe.js → FormControl-ca7447ab.js} +5 -6
- package/dist/FullScreenDialog/index.js +16 -16
- package/dist/Grid/index.js +8 -8
- package/dist/{Grid-b29d871f.js → Grid-9708b9ca.js} +59 -60
- package/dist/{Grow-bcd47732.js → Grow-55d0786d.js} +16 -17
- package/dist/{IconButton-eace4b91.js → IconButton-48d87778.js} +12 -13
- package/dist/Input/index.js +22 -22
- package/dist/{KdpaAccordions-39a4ed6e.js → KdpaAccordions-2ae65dd1.js} +125 -113
- package/dist/{KdpaAlertTitle-85b3b759.js → KdpaAlertTitle-f1549035.js} +103 -91
- package/dist/{KdpaAutoComplete-e2ccab34.js → KdpaAutoComplete-8a11974a.js} +225 -221
- package/dist/{KdpaAvatar-798f595f.js → KdpaAvatar-d297ef8a.js} +75 -71
- package/dist/{KdpaCheckBox-ca4f09b9.js → KdpaCheckBox-84d56486.js} +31 -27
- package/dist/KdpaChip-10899788.js +51 -0
- package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
- package/dist/KdpaCollapse-2d23c312.js +12 -0
- package/dist/KdpaCollapse-73c03e02.js +23 -0
- package/dist/{KdpaCopyToClipboard-2168fb05.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
- package/dist/{KdpaDateTimePicker-f6810c38.js → KdpaDateTimePicker-cb4a16d0.js} +10531 -13197
- package/dist/{KdpaDivider-8da2e22f.js → KdpaDivider-1c62c65a.js} +93 -81
- package/dist/{KdpaDropZone-3abdf72d.js → KdpaDropZone-b21d2304.js} +631 -531
- package/dist/KdpaFormControl-135b070d.js +10 -0
- package/dist/{KdpaFormControlLabel-e993132d.js → KdpaFormControlLabel-249b7622.js} +53 -49
- package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
- package/dist/KdpaGrid-2a3f9346.js +12 -0
- package/dist/{KdpaGridBadge-544999b0.js → KdpaGridBadge-65b88a7a.js} +121 -101
- package/dist/KdpaIconButton-a0ee669c.js +35 -0
- package/dist/KdpaInputMultiline-231a2be1.js +68 -0
- package/dist/{KdpaLazyDrop-3f3eb039.js → KdpaLazyDrop-1985fc75.js} +253 -217
- package/dist/KdpaMenuItem-99cde871.js +56 -0
- package/dist/{KdpaModalImage-f3b07c33.js → KdpaModalImage-eb732bf0.js} +69 -61
- package/dist/{KdpaPaginationGrid-281683fd.js → KdpaPaginationGrid-97a5b164.js} +307 -247
- package/dist/{KdpaRadioGroup-123a09aa.js → KdpaRadioGroup-87122ec7.js} +101 -93
- package/dist/{KdpaRtlProvider-120dff80.js → KdpaRtlProvider-495e4bb0.js} +142 -134
- package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
- package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
- package/dist/{KdpaSlider-40a1807a.js → KdpaSlider-b7226e20.js} +190 -182
- package/dist/{KdpaSwitch-603cd217.js → KdpaSwitch-b2ba7c23.js} +39 -31
- package/dist/KdpaTabs-ab618f36.js +50 -0
- package/dist/{KdpaTooltip-20c42ab8.js → KdpaTooltip-653424c7.js} +96 -88
- package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
- package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
- package/dist/KdpaTypography-763c3238.js +10 -0
- package/dist/KdpaZoom-1b0f3404.js +22 -0
- package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
- package/dist/LazyDrop/index.js +23 -23
- package/dist/{ListItem-8c33bc78.js → ListItem-ddec0b28.js} +8 -9
- package/dist/Loading/KdpaProgress/index.js +11 -11
- package/dist/Loading/index.js +8 -8
- package/dist/{MenuItem-db67ec92.js → MenuItem-057c85a3.js} +14 -15
- package/dist/Modal/index.js +2 -2
- package/dist/{Modal-8739c755.js → Modal-daf2a588.js} +10 -11
- package/dist/PaginationGrid/index.js +31 -31
- package/dist/{Paper-726cd077.js → Paper-00aea968.js} +15 -16
- package/dist/Pickers/index.d.ts +2 -1
- package/dist/Pickers/index.d.ts.map +1 -1
- package/dist/Pickers/index.js +38 -38
- package/dist/{Popper-708e355f.js → Popper-7adcd815.js} +8 -9
- package/dist/{Portal-90cf7ba4.js → Portal-de5e310c.js} +6 -7
- package/dist/Radio/index.js +12 -12
- package/dist/Selects/index.js +33 -33
- package/dist/{Slide-107d0b58.js → Slide-803fd098.js} +11 -12
- package/dist/Slider/index.js +7 -7
- package/dist/Switch/index.js +11 -11
- package/dist/{SwitchBase-0a37f2eb.js → SwitchBase-64e5662e.js} +7 -8
- package/dist/Tabs/index.js +14 -14
- package/dist/{Tabs-1caed6d0.js → Tabs-1140d353.js} +77 -78
- package/dist/{TextField-092190de.js → TextField-57c51dbe.js} +15 -16
- package/dist/ThemeProvider/index.js +5 -5
- package/dist/Tooltips/index.js +15 -15
- package/dist/{TransitionGroup-a1dcb75a.js → TransitionGroup-f9877c5b.js} +2 -2
- package/dist/Transitions/index.js +15 -15
- package/dist/Tree/index.js +2 -2
- package/dist/TreeSelect/index.js +3 -3
- package/dist/Typography/index.js +7 -7
- package/dist/{Typography-644bd1d9.js → Typography-db7e5ea2.js} +18 -19
- package/dist/{Zoom-39a63b9e.js → Zoom-36a189bb.js} +11 -12
- package/dist/{createSvgIcon-5491f07a.js → createSvgIcon-1aa1b2b2.js} +5 -6
- package/dist/{dividerClasses-6fed9b68.js → dividerClasses-a9b8b1ae.js} +2 -2
- package/dist/{elementAcceptingRef-f1cfc912.js → elementAcceptingRef-bd96c731.js} +1 -1
- package/dist/{elementTypeAcceptingRef-d599eee7.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
- package/dist/{emotion-react.browser.esm-7120a510.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
- package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
- package/dist/{extendSxProp-ee27a957.js → extendSxProp-d294b946.js} +2 -2
- package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
- package/dist/identifier-2647f844.js +3775 -0
- package/dist/{index-e017d9bf.js → index-5f8afc53.js} +5 -5
- package/dist/index.js +82 -82
- package/dist/jsx-dev-runtime-48fdc504.js +615 -0
- package/dist/{listItemTextClasses-29c5c497.js → listItemTextClasses-da281500.js} +2 -2
- package/dist/{refType-0b7ad6f5.js → refType-450337d6.js} +1 -1
- package/dist/{useSlotProps-615f7694.js → useSlotProps-3b927bcb.js} +2 -2
- package/dist/{useTheme-948a6d35.js → useTheme-6ea322ec.js} +2 -2
- package/dist/{useThemeProps-0f6826f6.js → useThemeProps-ea792506.js} +2 -2
- package/dist/{utils-765dc524.js → utils-acd98a68.js} +2 -2
- package/package.json +4 -1
- package/dist/KdpaChip-1bb449f1.js +0 -31
- package/dist/KdpaCircularProgress-18524b3d.js +0 -44
- package/dist/KdpaCollapse-0d001d1f.js +0 -11
- package/dist/KdpaCollapse-db70c13b.js +0 -8
- package/dist/KdpaFormControl-5136bd3a.js +0 -6
- package/dist/KdpaFullScreenDialog-6c8bc817.js +0 -16
- package/dist/KdpaGrid-c32b342e.js +0 -8
- package/dist/KdpaIconButton-d4c623d6.js +0 -23
- package/dist/KdpaInputMultiline-9f5ee3f0.js +0 -48
- package/dist/KdpaMenuItem-ec7a72c8.js +0 -36
- package/dist/KdpaSecondaryButton-ea9f2aeb.js +0 -28
- package/dist/KdpaSkeleton-872821e6.js +0 -540
- package/dist/KdpaTabs-8a087fe4.js +0 -38
- package/dist/KdpaTypography-0aab42ce.js +0 -6
- package/dist/KdpaZoom-dcf1dd78.js +0 -10
- package/dist/KpdaPrimaryButton-4e76c06b.js +0 -47
- package/dist/identifier-878ccaef.js +0 -3147
- package/dist/jsx-runtime-944c88e2.js +0 -631
- package/yarn-error.log +0 -7875
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { g as
|
|
6
|
-
import { g as z, s as p, u as T, c as
|
|
7
|
-
import { S as B } from "./SwitchBase-
|
|
8
|
-
import { r as M } from "./refType-
|
|
9
|
-
function
|
|
10
|
-
return
|
|
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);
|
|
11
11
|
}
|
|
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"],
|
|
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) => {
|
|
13
13
|
const {
|
|
14
14
|
classes: t,
|
|
15
15
|
edge: s,
|
|
@@ -23,9 +23,9 @@ const P = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
23
23
|
thumb: ["thumb"],
|
|
24
24
|
track: ["track"],
|
|
25
25
|
input: ["input"]
|
|
26
|
-
}, f =
|
|
26
|
+
}, f = N(b, D, t);
|
|
27
27
|
return r({}, t, f);
|
|
28
|
-
},
|
|
28
|
+
}, I = p("span", {
|
|
29
29
|
name: "MuiSwitch",
|
|
30
30
|
slot: "Root",
|
|
31
31
|
overridesResolver: (o, t) => {
|
|
@@ -70,7 +70,7 @@ const P = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
70
70
|
transform: "translateX(16px)"
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
})),
|
|
73
|
+
})), U = p(B, {
|
|
74
74
|
name: "MuiSwitch",
|
|
75
75
|
slot: "SwitchBase",
|
|
76
76
|
overridesResolver: (o, t) => {
|
|
@@ -114,7 +114,7 @@ const P = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
114
114
|
ownerState: t
|
|
115
115
|
}) => r({
|
|
116
116
|
"&:hover": {
|
|
117
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.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),
|
|
118
118
|
// Reset on touch devices, it doesn't add specificity
|
|
119
119
|
"@media (hover: none)": {
|
|
120
120
|
backgroundColor: "transparent"
|
|
@@ -124,19 +124,19 @@ const P = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
124
124
|
[`&.${e.checked}`]: {
|
|
125
125
|
color: (o.vars || o).palette[t.color].main,
|
|
126
126
|
"&:hover": {
|
|
127
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[t.color].mainChannel} / ${o.vars.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),
|
|
128
128
|
"@media (hover: none)": {
|
|
129
129
|
backgroundColor: "transparent"
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
[`&.${e.disabled}`]: {
|
|
133
|
-
color: o.vars ? o.vars.palette.Switch[`${t.color}DisabledColor`] : `${o.palette.mode === "light" ?
|
|
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)}`
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
136
|
[`&.${e.checked} + .${e.track}`]: {
|
|
137
137
|
backgroundColor: (o.vars || o).palette[t.color].main
|
|
138
138
|
}
|
|
139
|
-
})),
|
|
139
|
+
})), K = p("span", {
|
|
140
140
|
name: "MuiSwitch",
|
|
141
141
|
slot: "Track",
|
|
142
142
|
overridesResolver: (o, t) => t.track
|
|
@@ -164,7 +164,7 @@ const P = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
164
164
|
width: 20,
|
|
165
165
|
height: 20,
|
|
166
166
|
borderRadius: "50%"
|
|
167
|
-
})),
|
|
167
|
+
})), w = /* @__PURE__ */ y.forwardRef(function(t, s) {
|
|
168
168
|
const c = T({
|
|
169
169
|
props: t,
|
|
170
170
|
name: "MuiSwitch"
|
|
@@ -174,19 +174,19 @@ const P = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
174
174
|
edge: g = !1,
|
|
175
175
|
size: b = "medium",
|
|
176
176
|
sx: f
|
|
177
|
-
} = c, k =
|
|
177
|
+
} = c, k = S(c, _), n = r({}, c, {
|
|
178
178
|
color: h,
|
|
179
179
|
edge: g,
|
|
180
180
|
size: b
|
|
181
|
-
}), l =
|
|
181
|
+
}), l = E(n), v = /* @__PURE__ */ d.jsx(A, {
|
|
182
182
|
className: l.thumb,
|
|
183
183
|
ownerState: n
|
|
184
184
|
});
|
|
185
|
-
return /* @__PURE__ */ d.jsxs(
|
|
186
|
-
className:
|
|
185
|
+
return /* @__PURE__ */ d.jsxs(I, {
|
|
186
|
+
className: O(l.root, u),
|
|
187
187
|
sx: f,
|
|
188
188
|
ownerState: n,
|
|
189
|
-
children: [/* @__PURE__ */ d.jsx(
|
|
189
|
+
children: [/* @__PURE__ */ d.jsx(U, r({
|
|
190
190
|
type: "checkbox",
|
|
191
191
|
icon: v,
|
|
192
192
|
checkedIcon: v,
|
|
@@ -196,13 +196,13 @@ const P = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
196
196
|
classes: r({}, l, {
|
|
197
197
|
root: l.switchBase
|
|
198
198
|
})
|
|
199
|
-
})), /* @__PURE__ */ d.jsx(
|
|
199
|
+
})), /* @__PURE__ */ d.jsx(K, {
|
|
200
200
|
className: l.track,
|
|
201
201
|
ownerState: n
|
|
202
202
|
})]
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
|
-
process.env.NODE_ENV !== "production" && (
|
|
205
|
+
process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
206
206
|
// ----------------------------- Warning --------------------------------
|
|
207
207
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
208
208
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -296,17 +296,25 @@ process.env.NODE_ENV !== "production" && (m.propTypes = {
|
|
|
296
296
|
*/
|
|
297
297
|
value: a.any
|
|
298
298
|
});
|
|
299
|
-
const
|
|
300
|
-
(o, t) => /* @__PURE__ */
|
|
301
|
-
|
|
299
|
+
const L = w, J = x.forwardRef(
|
|
300
|
+
(o, t) => /* @__PURE__ */ $.jsxDEV(
|
|
301
|
+
L,
|
|
302
302
|
{
|
|
303
303
|
color: "primary",
|
|
304
304
|
inputRef: t,
|
|
305
305
|
inputProps: { "aria-label": "primary checkbox" },
|
|
306
306
|
...o
|
|
307
|
-
}
|
|
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
|
|
308
316
|
)
|
|
309
317
|
);
|
|
310
318
|
export {
|
|
311
|
-
|
|
319
|
+
J as K
|
|
312
320
|
};
|
|
@@ -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,40 +1,40 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
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 { g as
|
|
5
|
-
import { g as
|
|
6
|
-
import { u as
|
|
7
|
-
import { M as We } from "./Popper-
|
|
8
|
-
import { a as
|
|
9
|
-
import { u as
|
|
10
|
-
import { G as Be } from "./Grow-
|
|
11
|
-
import { a as
|
|
12
|
-
import { e as
|
|
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";
|
|
13
13
|
import { u as Co } from "./useControlled-cc2d41cb.js";
|
|
14
|
-
import { u as
|
|
15
|
-
import { u as
|
|
16
|
-
import { Z as
|
|
17
|
-
function Eo(r) {
|
|
18
|
-
return To("MuiTooltip", r);
|
|
19
|
-
}
|
|
20
|
-
const _o = bo("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";
|
|
21
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) {
|
|
22
22
|
return Math.round(r * 1e5) / 1e5;
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const Lo = (r) => {
|
|
25
25
|
const {
|
|
26
26
|
classes: t,
|
|
27
27
|
disableInteractive: i,
|
|
28
|
-
arrow:
|
|
29
|
-
touch:
|
|
28
|
+
arrow: g,
|
|
29
|
+
touch: C,
|
|
30
30
|
placement: O
|
|
31
31
|
} = r, M = {
|
|
32
|
-
popper: ["popper", !i && "popperInteractive",
|
|
33
|
-
tooltip: ["tooltip",
|
|
32
|
+
popper: ["popper", !i && "popperInteractive", g && "popperArrow"],
|
|
33
|
+
tooltip: ["tooltip", g && "tooltipArrow", C && "touch", `tooltipPlacement${Se(O.split("-")[0])}`],
|
|
34
34
|
arrow: ["arrow"]
|
|
35
35
|
};
|
|
36
|
-
return
|
|
37
|
-
},
|
|
36
|
+
return vo(M, No, t);
|
|
37
|
+
}, $o = X(We, {
|
|
38
38
|
name: "MuiTooltip",
|
|
39
39
|
slot: "Popper",
|
|
40
40
|
overridesResolver: (r, t) => {
|
|
@@ -95,7 +95,7 @@ const $o = (r) => {
|
|
|
95
95
|
transformOrigin: "0 0"
|
|
96
96
|
}
|
|
97
97
|
})
|
|
98
|
-
})),
|
|
98
|
+
})), Io = X("div", {
|
|
99
99
|
name: "MuiTooltip",
|
|
100
100
|
slot: "Tooltip",
|
|
101
101
|
overridesResolver: (r, t) => {
|
|
@@ -124,7 +124,7 @@ const $o = (r) => {
|
|
|
124
124
|
}, t.touch && {
|
|
125
125
|
padding: "8px 16px",
|
|
126
126
|
fontSize: r.typography.pxToRem(14),
|
|
127
|
-
lineHeight: `${
|
|
127
|
+
lineHeight: `${Do(16 / 14)}em`,
|
|
128
128
|
fontWeight: r.typography.fontWeightRegular
|
|
129
129
|
}, {
|
|
130
130
|
[`.${d.popper}[data-popper-placement*="left"] &`]: n({
|
|
@@ -161,7 +161,7 @@ const $o = (r) => {
|
|
|
161
161
|
}, t.touch && {
|
|
162
162
|
marginTop: "24px"
|
|
163
163
|
})
|
|
164
|
-
})),
|
|
164
|
+
})), ko = X("span", {
|
|
165
165
|
name: "MuiTooltip",
|
|
166
166
|
slot: "Arrow",
|
|
167
167
|
overridesResolver: (r, t) => t.arrow
|
|
@@ -184,7 +184,7 @@ const $o = (r) => {
|
|
|
184
184
|
transform: "rotate(45deg)"
|
|
185
185
|
}
|
|
186
186
|
}));
|
|
187
|
-
let
|
|
187
|
+
let A = !1, q = null, R = {
|
|
188
188
|
x: 0,
|
|
189
189
|
y: 0
|
|
190
190
|
};
|
|
@@ -194,8 +194,8 @@ function F(r, t) {
|
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
|
|
197
|
-
var
|
|
198
|
-
const B =
|
|
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({
|
|
199
199
|
props: t,
|
|
200
200
|
name: "MuiTooltip"
|
|
201
201
|
}), {
|
|
@@ -222,11 +222,11 @@ const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
|
|
|
222
222
|
PopperComponent: U,
|
|
223
223
|
PopperProps: h = {},
|
|
224
224
|
slotProps: T = {},
|
|
225
|
-
slots:
|
|
225
|
+
slots: N = {},
|
|
226
226
|
title: m,
|
|
227
227
|
TransitionComponent: Xe = Be,
|
|
228
228
|
TransitionProps: Je
|
|
229
|
-
} = B, we =
|
|
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({
|
|
230
230
|
controlled: ve,
|
|
231
231
|
default: !1,
|
|
232
232
|
name: "Tooltip",
|
|
@@ -242,78 +242,78 @@ const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
|
|
|
242
242
|
`));
|
|
243
243
|
}, [m, l, o]);
|
|
244
244
|
}
|
|
245
|
-
const H =
|
|
246
|
-
|
|
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);
|
|
247
247
|
}, []);
|
|
248
248
|
s.useEffect(() => () => {
|
|
249
|
-
clearTimeout(
|
|
250
|
-
}, [
|
|
249
|
+
clearTimeout(j.current), clearTimeout(D.current), clearTimeout(b.current), L();
|
|
250
|
+
}, [L]);
|
|
251
251
|
const Oe = (o) => {
|
|
252
|
-
clearTimeout(q),
|
|
253
|
-
},
|
|
252
|
+
clearTimeout(q), A = !0, Ce(!0), ye && !u && ye(o);
|
|
253
|
+
}, $ = wo(
|
|
254
254
|
/**
|
|
255
255
|
* @param {React.SyntheticEvent | Event} event
|
|
256
256
|
*/
|
|
257
257
|
(o) => {
|
|
258
258
|
clearTimeout(q), q = setTimeout(() => {
|
|
259
|
-
|
|
260
|
-
}, 800 + be),
|
|
261
|
-
|
|
259
|
+
A = !1;
|
|
260
|
+
}, 800 + be), Ce(!1), ge && u && ge(o), clearTimeout(j.current), j.current = setTimeout(() => {
|
|
261
|
+
_.current = !1;
|
|
262
262
|
}, W.transitions.duration.shortest);
|
|
263
263
|
}
|
|
264
264
|
), K = (o) => {
|
|
265
|
-
|
|
265
|
+
_.current && o.type !== "touchstart" || (l && l.removeAttribute("title"), clearTimeout(D.current), clearTimeout(b.current), he || A && Te ? D.current = setTimeout(() => {
|
|
266
266
|
Oe(o);
|
|
267
|
-
},
|
|
267
|
+
}, A ? Te : he) : Oe(o));
|
|
268
268
|
}, Me = (o) => {
|
|
269
|
-
clearTimeout(
|
|
270
|
-
|
|
269
|
+
clearTimeout(D.current), clearTimeout(b.current), b.current = setTimeout(() => {
|
|
270
|
+
$(o);
|
|
271
271
|
}, be);
|
|
272
272
|
}, {
|
|
273
273
|
isFocusVisibleRef: Ee,
|
|
274
274
|
onBlur: to,
|
|
275
275
|
onFocus: ro,
|
|
276
276
|
ref: no
|
|
277
|
-
} =
|
|
278
|
-
to(o), Ee.current === !1 && (
|
|
279
|
-
},
|
|
280
|
-
l || xe(o.currentTarget), ro(o), Ee.current === !0 && (
|
|
281
|
-
},
|
|
282
|
-
|
|
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;
|
|
283
283
|
const p = c.props;
|
|
284
284
|
p.onTouchStart && p.onTouchStart(o);
|
|
285
|
-
},
|
|
286
|
-
|
|
287
|
-
document.body.style.WebkitUserSelect =
|
|
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);
|
|
288
288
|
}, Ge);
|
|
289
289
|
}, io = (o) => {
|
|
290
|
-
c.props.onTouchEnd && c.props.onTouchEnd(o),
|
|
291
|
-
|
|
290
|
+
c.props.onTouchEnd && c.props.onTouchEnd(o), L(), clearTimeout(b.current), b.current = setTimeout(() => {
|
|
291
|
+
$(o);
|
|
292
292
|
}, qe);
|
|
293
293
|
};
|
|
294
294
|
s.useEffect(() => {
|
|
295
295
|
if (!u)
|
|
296
296
|
return;
|
|
297
297
|
function o(p) {
|
|
298
|
-
(p.key === "Escape" || p.key === "Esc") &&
|
|
298
|
+
(p.key === "Escape" || p.key === "Esc") && $(p);
|
|
299
299
|
}
|
|
300
300
|
return document.addEventListener("keydown", o), () => {
|
|
301
301
|
document.removeEventListener("keydown", o);
|
|
302
302
|
};
|
|
303
|
-
}, [
|
|
304
|
-
const po =
|
|
303
|
+
}, [$, u]);
|
|
304
|
+
const po = Mo(c.ref, no, xe, i);
|
|
305
305
|
!m && m !== 0 && (u = !1);
|
|
306
306
|
const Y = s.useRef(), lo = (o) => {
|
|
307
307
|
const p = c.props;
|
|
308
|
-
p.onMouseMove && p.onMouseMove(o),
|
|
308
|
+
p.onMouseMove && p.onMouseMove(o), R = {
|
|
309
309
|
x: o.clientX,
|
|
310
310
|
y: o.clientY
|
|
311
311
|
}, Y.current && Y.current.update();
|
|
312
|
-
},
|
|
313
|
-
ze ? (
|
|
314
|
-
const a = n({},
|
|
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, {
|
|
315
315
|
className: I(we.className, c.props.className),
|
|
316
|
-
onTouchStart:
|
|
316
|
+
onTouchStart: De,
|
|
317
317
|
ref: po
|
|
318
318
|
}, S ? {
|
|
319
319
|
onMouseMove: lo
|
|
@@ -322,8 +322,8 @@ const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
|
|
|
322
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(`
|
|
323
323
|
`));
|
|
324
324
|
}, [l]));
|
|
325
|
-
const
|
|
326
|
-
Ye || (a.onTouchStart = so, a.onTouchEnd = io), fe || (a.onMouseOver = F(
|
|
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(`
|
|
327
327
|
`));
|
|
328
328
|
const ao = s.useMemo(() => {
|
|
329
329
|
var o;
|
|
@@ -338,30 +338,30 @@ const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
|
|
|
338
338
|
return (o = h.popperOptions) != null && o.modifiers && (p = p.concat(h.popperOptions.modifiers)), n({}, h.popperOptions, {
|
|
339
339
|
modifiers: p
|
|
340
340
|
});
|
|
341
|
-
}, [V, h]),
|
|
341
|
+
}, [V, h]), w = n({}, B, {
|
|
342
342
|
isRtl: Qe,
|
|
343
343
|
arrow: de,
|
|
344
344
|
disableInteractive: z,
|
|
345
345
|
placement: Pe,
|
|
346
346
|
PopperComponentProp: U,
|
|
347
|
-
touch:
|
|
348
|
-
}), Z =
|
|
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, {
|
|
349
349
|
className: I(Z.popper, h == null ? void 0 : h.className, (ne = (se = T.popper) != null ? se : f.popper) == null ? void 0 : ne.className)
|
|
350
|
-
}),
|
|
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, {
|
|
351
351
|
className: I(Z.tooltip, (le = (ae = T.tooltip) != null ? ae : f.tooltip) == null ? void 0 : le.className)
|
|
352
|
-
}),
|
|
352
|
+
}), w), fo = k(Fe, n({}, (ce = T.arrow) != null ? ce : f.arrow, {
|
|
353
353
|
className: I(Z.arrow, (ue = (me = T.arrow) != null ? me : f.arrow) == null ? void 0 : ue.className)
|
|
354
|
-
}),
|
|
355
|
-
return /* @__PURE__ */
|
|
356
|
-
children: [/* @__PURE__ */ s.cloneElement(c, a), /* @__PURE__ */
|
|
354
|
+
}), w);
|
|
355
|
+
return /* @__PURE__ */ x.jsxs(s.Fragment, {
|
|
356
|
+
children: [/* @__PURE__ */ s.cloneElement(c, a), /* @__PURE__ */ x.jsx(Ie, n({
|
|
357
357
|
as: U ?? We,
|
|
358
358
|
placement: Pe,
|
|
359
359
|
anchorEl: S ? {
|
|
360
360
|
getBoundingClientRect: () => ({
|
|
361
|
-
top:
|
|
362
|
-
left:
|
|
363
|
-
right:
|
|
364
|
-
bottom:
|
|
361
|
+
top: R.y,
|
|
362
|
+
left: R.x,
|
|
363
|
+
right: R.x,
|
|
364
|
+
bottom: R.y,
|
|
365
365
|
width: 0,
|
|
366
366
|
height: 0
|
|
367
367
|
})
|
|
@@ -370,15 +370,15 @@ const Ve = /* @__PURE__ */ s.forwardRef(function(t, i) {
|
|
|
370
370
|
open: l ? u : !1,
|
|
371
371
|
id: H,
|
|
372
372
|
transition: !0
|
|
373
|
-
},
|
|
373
|
+
}, P, co, {
|
|
374
374
|
popperOptions: ao,
|
|
375
375
|
children: ({
|
|
376
376
|
TransitionProps: o
|
|
377
|
-
}) => /* @__PURE__ */
|
|
377
|
+
}) => /* @__PURE__ */ x.jsx(ke, n({
|
|
378
378
|
timeout: W.transitions.duration.shorter
|
|
379
379
|
}, o, uo, {
|
|
380
|
-
children: /* @__PURE__ */
|
|
381
|
-
children: [m, de ? /* @__PURE__ */
|
|
380
|
+
children: /* @__PURE__ */ x.jsxs(Ae, n({}, mo, {
|
|
381
|
+
children: [m, de ? /* @__PURE__ */ x.jsx(Fe, n({}, fo, {
|
|
382
382
|
ref: eo
|
|
383
383
|
})) : null]
|
|
384
384
|
}))
|
|
@@ -399,7 +399,7 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
399
399
|
/**
|
|
400
400
|
* Tooltip reference element.
|
|
401
401
|
*/
|
|
402
|
-
children:
|
|
402
|
+
children: Ro.isRequired,
|
|
403
403
|
/**
|
|
404
404
|
* Override or extend the styles applied to the component.
|
|
405
405
|
*/
|
|
@@ -579,18 +579,26 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
579
579
|
*/
|
|
580
580
|
TransitionProps: e.object
|
|
581
581
|
});
|
|
582
|
-
const Ao = Ve,
|
|
582
|
+
const Ao = Ve, Qo = ({ title: r = "", children: t, ...i }) => /* @__PURE__ */ ho.jsxDEV(
|
|
583
583
|
Ao,
|
|
584
584
|
{
|
|
585
585
|
title: r,
|
|
586
|
-
TransitionComponent:
|
|
586
|
+
TransitionComponent: Eo,
|
|
587
587
|
enterDelay: 700,
|
|
588
588
|
leaveDelay: 200,
|
|
589
589
|
arrow: !0,
|
|
590
590
|
...i,
|
|
591
591
|
children: t
|
|
592
|
-
}
|
|
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
|
|
593
601
|
);
|
|
594
602
|
export {
|
|
595
|
-
|
|
603
|
+
Qo as K
|
|
596
604
|
};
|