kdpa-components 1.35.2 → 1.35.3
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/dist/Accordion/index.d.ts +3 -0
- package/dist/Accordion/index.d.ts.map +1 -0
- package/dist/Accordion/index.js +481 -0
- package/dist/AdvancedList/index.d.ts +2 -0
- package/dist/AdvancedList/index.d.ts.map +1 -0
- package/dist/AdvancedList/index.js +16751 -0
- package/dist/Alert/index.d.ts +5 -0
- package/dist/Alert/index.d.ts.map +1 -0
- package/dist/Alert/index.js +407 -0
- package/dist/ArrowDropDown-76613637.js +35 -0
- package/dist/Autocomplete-45ae6737.js +1670 -0
- package/dist/Avatar/index.d.ts +3 -0
- package/dist/Avatar/index.d.ts.map +1 -0
- package/dist/Avatar/index.js +210 -0
- package/dist/Badge/index.d.ts +6 -0
- package/dist/Badge/index.d.ts.map +1 -0
- package/dist/Badge/index.js +69 -0
- package/dist/Badge-26e8a2aa.js +392 -0
- package/dist/Box-a827334a.js +58 -0
- package/dist/Button-b93e890d.js +355 -0
- package/dist/ButtonBase-0f9f324d.js +655 -0
- package/dist/Buttons/index.d.ts +9 -0
- package/dist/Buttons/index.d.ts.map +1 -0
- package/dist/Buttons/index.js +83 -0
- package/dist/CSSTransition-d0281d1f.js +215 -0
- package/dist/Cards/index.d.ts +3 -0
- package/dist/Cards/index.d.ts.map +1 -0
- package/dist/Cards/index.js +144 -0
- package/dist/CheckBox/index.d.ts +3 -0
- package/dist/CheckBox/index.d.ts.map +1 -0
- package/dist/CheckBox/index.js +32 -0
- package/dist/Checkbox-2cb33932.js +199 -0
- package/dist/Chip/index.d.ts +3 -0
- package/dist/Chip/index.d.ts.map +1 -0
- package/dist/Chip/index.js +61 -0
- package/dist/Chip-7b1a25ce.js +444 -0
- package/dist/CircularProgress-2c55d9ef.js +217 -0
- package/dist/Close-ef7a3b6b.js +9 -0
- package/dist/CodeEditor/index.d.ts +2 -0
- package/dist/CodeEditor/index.d.ts.map +1 -0
- package/dist/CodeEditor/index.js +559 -0
- package/dist/Collapse/index.d.ts +3 -0
- package/dist/Collapse/index.d.ts.map +1 -0
- package/dist/Collapse/index.js +23 -0
- package/dist/Collapse-4b8b3146.js +299 -0
- package/dist/CopyToClipboard/index.d.ts +3 -0
- package/dist/CopyToClipboard/index.d.ts.map +1 -0
- package/dist/CopyToClipboard/index.js +591 -0
- package/dist/Dialog-25ebaee6.js +356 -0
- package/dist/Divider/index.d.ts +4 -0
- package/dist/Divider/index.d.ts.map +1 -0
- package/dist/Divider/index.js +31 -0
- package/dist/Divider-cadf67a7.js +231 -0
- package/dist/DropZone/index.d.ts +2 -0
- package/dist/DropZone/index.d.ts.map +1 -0
- package/dist/DropZone/index.js +1348 -0
- package/dist/Fade-aabbd0cb.js +163 -0
- package/dist/FormControl/index.d.ts +5 -0
- package/dist/FormControl/index.d.ts.map +1 -0
- package/dist/FormControl/index.js +24 -0
- package/dist/FormControl-e7294bde.js +232 -0
- package/dist/FormControlLabel-276f1b1e.js +214 -0
- package/dist/FullScreenDialog/index.d.ts +3 -0
- package/dist/FullScreenDialog/index.d.ts.map +1 -0
- package/dist/FullScreenDialog/index.js +42 -0
- package/dist/Grid/index.d.ts +3 -0
- package/dist/Grid/index.d.ts.map +1 -0
- package/dist/Grid/index.js +17 -0
- package/dist/Grid-c1f5fe6b.js +486 -0
- package/dist/Grow-151a20f6.js +193 -0
- package/dist/HTMLElementType-ff213f3c.js +9 -0
- package/dist/IconButton-fdbca6d2.js +184 -0
- package/dist/Input/index.d.ts +7 -0
- package/dist/Input/index.d.ts.map +1 -0
- package/dist/Input/index.js +88 -0
- package/dist/InputAdornment-3334ace2.js +155 -0
- package/dist/KdpaAutoComplete-40e0949e.js +8 -0
- package/dist/KdpaCollapse-d9e37824.js +11 -0
- package/dist/KdpaFormControl-2d7c1db8.js +6 -0
- package/dist/KdpaIconButton-514e0d96.js +23 -0
- package/dist/KdpaMenuItem-085f686f.js +36 -0
- package/dist/KdpaSecondaryButton-14992523.js +25 -0
- package/dist/KeyboardArrowRight-14dbe7d6.js +12 -0
- package/dist/LazyDrop/index.d.ts +3 -0
- package/dist/LazyDrop/index.d.ts.map +1 -0
- package/dist/LazyDrop/index.js +839 -0
- package/dist/ListContext-de5072f9.js +7 -0
- package/dist/ListItem-2b5c2e20.js +426 -0
- package/dist/ListItemText-fcd66149.js +150 -0
- package/dist/Loading/KdpaProgress/index.d.ts +3 -0
- package/dist/Loading/KdpaProgress/index.d.ts.map +1 -0
- package/dist/Loading/KdpaProgress/index.js +56 -0
- package/dist/Loading/index.d.ts +6 -0
- package/dist/Loading/index.d.ts.map +1 -0
- package/dist/Loading/index.js +348 -0
- package/dist/MenuItem-cc037c5b.js +240 -0
- package/dist/Modal/index.d.ts +2 -0
- package/dist/Modal/index.d.ts.map +1 -0
- package/dist/Modal/index.js +751 -0
- package/dist/Modal-5f23fcfd.js +984 -0
- package/dist/PaginationGrid/index.d.ts +3 -0
- package/dist/PaginationGrid/index.d.ts.map +1 -0
- package/dist/PaginationGrid/index.js +60 -0
- package/dist/Paper-aaec61a3.js +163 -0
- package/dist/Pickers/index.d.ts +7 -0
- package/dist/Pickers/index.d.ts.map +1 -0
- package/dist/Pickers/index.js +14408 -0
- package/dist/Popper-490e6477.js +490 -0
- package/dist/Portal-b4f8657f.js +77 -0
- package/dist/Radio/index.d.ts +5 -0
- package/dist/Radio/index.d.ts.map +1 -0
- package/dist/Radio/index.js +431 -0
- package/dist/Segment/index.d.ts +3 -0
- package/dist/Segment/index.d.ts.map +1 -0
- package/dist/Segment/index.js +84 -0
- package/dist/Selects/index.d.ts +7 -0
- package/dist/Selects/index.d.ts.map +1 -0
- package/dist/Selects/index.js +66 -0
- package/dist/SimpleList/index.d.ts +2 -0
- package/dist/SimpleList/index.d.ts.map +1 -0
- package/dist/SimpleList/index.js +1913 -0
- package/dist/Skeleton-263b2beb.js +213 -0
- package/dist/Slide-3bc7a346.js +227 -0
- package/dist/Slider/index.d.ts +3 -0
- package/dist/Slider/index.d.ts.map +1 -0
- package/dist/Slider/index.js +1322 -0
- package/dist/SweetAlerts/index.d.ts +6 -0
- package/dist/SweetAlerts/index.d.ts.map +1 -0
- package/dist/SweetAlerts/index.js +1540 -0
- package/dist/Switch/index.d.ts +3 -0
- package/dist/Switch/index.d.ts.map +1 -0
- package/dist/Switch/index.js +39 -0
- package/dist/Switch-ef584fc0.js +302 -0
- package/dist/SwitchBase-c367ca3c.js +231 -0
- package/dist/Tabs/index.d.ts +5 -0
- package/dist/Tabs/index.d.ts.map +1 -0
- package/dist/Tabs/index.js +63 -0
- package/dist/Tabs-9775b0bb.js +1084 -0
- package/dist/TextField-b8c731e8.js +4439 -0
- package/dist/ThemeProvider/index.d.ts +4 -0
- package/dist/ThemeProvider/index.d.ts.map +1 -0
- package/dist/ThemeProvider/index.js +294 -0
- package/dist/Tooltip-4b1baf1b.js +584 -0
- package/dist/Tooltips/index.d.ts +3 -0
- package/dist/Tooltips/index.d.ts.map +1 -0
- package/dist/Tooltips/index.js +46 -0
- package/dist/TransitionGroup-196acb6a.js +185 -0
- package/dist/TransitionGroupContext-7435e195.js +10 -0
- package/dist/Transitions/index.d.ts +11 -0
- package/dist/Transitions/index.d.ts.map +1 -0
- package/dist/Transitions/index.js +34 -0
- package/dist/Tree/index.d.ts +3 -0
- package/dist/Tree/index.d.ts.map +1 -0
- package/dist/Tree/index.js +1447 -0
- package/dist/TreeSelect/index.d.ts +3 -0
- package/dist/TreeSelect/index.d.ts.map +1 -0
- package/dist/TreeSelect/index.js +6888 -0
- package/dist/Typography/index.d.ts +3 -0
- package/dist/Typography/index.d.ts.map +1 -0
- package/dist/Typography/index.js +14 -0
- package/dist/Typography-dfa51fea.js +176 -0
- package/dist/Uploader/index.d.ts +3 -0
- package/dist/Uploader/index.d.ts.map +1 -0
- package/dist/Uploader/index.js +81 -0
- package/dist/Zoom-b84bdc2b.js +163 -0
- package/dist/_commonjsHelpers-92157f1b.js +36 -0
- package/dist/assertThisInitialized-05701a63.js +8 -0
- package/dist/chainPropTypes-004bf492.js +8 -0
- package/dist/createChainedFunction-68e2a88d.js +9 -0
- package/dist/createSvgIcon-b80a8a41.js +182 -0
- package/dist/dividerClasses-99758da7.js +10 -0
- package/dist/elementAcceptingRef-803dfd80.js +26 -0
- package/dist/elementTypeAcceptingRef-6c34f16b.js +23 -0
- package/dist/emotion-is-prop-valid.esm-b7f48706.js +191 -0
- package/dist/emotion-memoize.esm-021d0d4e.js +9 -0
- package/dist/emotion-react.browser.esm-d563ed65.js +255 -0
- package/dist/exactProp-3aaa3ecc.js +13 -0
- package/dist/extendSxProp-f7714a31.js +30 -0
- package/dist/extends-393586f3.js +22 -0
- package/dist/formControlState-9148c46f.js +10 -0
- package/dist/hoist-non-react-statics.cjs-ce2f2873.js +236 -0
- package/dist/iconBase-800b43ff.js +63 -0
- package/dist/identifier-9dfe30d8.js +3320 -0
- package/dist/index-116f732f.js +749 -0
- package/dist/index-7e2d793d.js +12011 -0
- package/dist/index-fa965a10.js +43 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm-b78383d3.js +35 -0
- package/dist/isMuiElement-b88a921a.js +7 -0
- package/dist/jsx-runtime-944c88e2.js +631 -0
- package/dist/kdpaSelect-4ed993c7.js +1 -0
- package/dist/listItemTextClasses-d6839c02.js +10 -0
- package/dist/ownerDocument-5430cd5b.js +6 -0
- package/dist/ownerWindow-e6cc3097.js +20 -0
- package/dist/popper-78c6b162.js +1006 -0
- package/dist/refType-af1a9f54.js +5 -0
- package/dist/setPrototypeOf-98a00546.js +8 -0
- package/dist/style.css +1 -0
- package/dist/toPropertyKey-e295cd73.js +27 -0
- package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts +1 -1
- package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts.map +1 -1
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.d.ts.map +1 -1
- package/dist/types/designerKit/components/Uploader/KdFileUploader/UploadedItems.d.ts.map +1 -1
- package/dist/types/designerKit/utils/typographyHelper.d.ts +1 -2
- package/dist/types/designerKit/utils/typographyHelper.d.ts.map +1 -1
- package/dist/unsupportedProp-3dbf01f6.js +9 -0
- package/dist/useControlled-cc2d41cb.js +31 -0
- package/dist/useEventCallback-fe4fd69c.js +16 -0
- package/dist/useForkRef-0781dda0.js +15 -0
- package/dist/useFormControl-af690c26.js +11 -0
- package/dist/useId-e7dff7be.js +19 -0
- package/dist/useIsFocusVisible-4693b580.js +68 -0
- package/dist/usePreviousProps-c1ae4548.js +10 -0
- package/dist/useSlotProps-f238319f.js +74 -0
- package/dist/useTheme-014a54ad.js +10 -0
- package/dist/useThemeProps-7d04a175.js +513 -0
- package/dist/utils-129661c6.js +370 -0
- package/package.json +1 -1
- package/dist/types/designerKit/components/Alert/Temp.d.ts +0 -3
- package/dist/types/designerKit/components/Alert/Temp.d.ts.map +0 -1
- package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts +0 -12
- package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts.map +0 -1
- package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts +0 -5
- package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts.map +0 -1
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts +0 -9
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts.map +0 -1
- package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts +0 -53
- package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts.map +0 -1
- package/dist/types/designerKit/utils/fileUtils.d.ts +0 -19
- package/dist/types/designerKit/utils/fileUtils.d.ts.map +0 -1
- package/dist/types/designerKit/utils/useTreeHelper.d.ts +0 -17
- package/dist/types/designerKit/utils/useTreeHelper.d.ts.map +0 -1
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { _ as t, a as R } from "./extends-393586f3.js";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { g as z, h as n, a as f, P as r } from "./identifier-9dfe30d8.js";
|
|
4
|
+
import { g as C, s as B, u as I, c as x, a as O } from "./useThemeProps-7d04a175.js";
|
|
5
|
+
import { j as $ } from "./jsx-runtime-944c88e2.js";
|
|
6
|
+
import { B as T } from "./ButtonBase-0f9f324d.js";
|
|
7
|
+
import { c as k } from "./chainPropTypes-004bf492.js";
|
|
8
|
+
function j(o) {
|
|
9
|
+
return z("MuiIconButton", o);
|
|
10
|
+
}
|
|
11
|
+
const E = C("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), P = E, M = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], N = (o) => {
|
|
12
|
+
const {
|
|
13
|
+
classes: e,
|
|
14
|
+
disabled: s,
|
|
15
|
+
color: a,
|
|
16
|
+
edge: i,
|
|
17
|
+
size: l
|
|
18
|
+
} = o, c = {
|
|
19
|
+
root: ["root", s && "disabled", a !== "default" && `color${n(a)}`, i && `edge${n(i)}`, `size${n(l)}`]
|
|
20
|
+
};
|
|
21
|
+
return O(c, j, e);
|
|
22
|
+
}, _ = B(T, {
|
|
23
|
+
name: "MuiIconButton",
|
|
24
|
+
slot: "Root",
|
|
25
|
+
overridesResolver: (o, e) => {
|
|
26
|
+
const {
|
|
27
|
+
ownerState: s
|
|
28
|
+
} = o;
|
|
29
|
+
return [e.root, s.color !== "default" && e[`color${n(s.color)}`], s.edge && e[`edge${n(s.edge)}`], e[`size${n(s.size)}`]];
|
|
30
|
+
}
|
|
31
|
+
})(({
|
|
32
|
+
theme: o,
|
|
33
|
+
ownerState: e
|
|
34
|
+
}) => t({
|
|
35
|
+
textAlign: "center",
|
|
36
|
+
flex: "0 0 auto",
|
|
37
|
+
fontSize: o.typography.pxToRem(24),
|
|
38
|
+
padding: 8,
|
|
39
|
+
borderRadius: "50%",
|
|
40
|
+
overflow: "visible",
|
|
41
|
+
// Explicitly set the default value to solve a bug on IE11.
|
|
42
|
+
color: (o.vars || o).palette.action.active,
|
|
43
|
+
transition: o.transitions.create("background-color", {
|
|
44
|
+
duration: o.transitions.duration.shortest
|
|
45
|
+
})
|
|
46
|
+
}, !e.disableRipple && {
|
|
47
|
+
"&:hover": {
|
|
48
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette.action.active, o.palette.action.hoverOpacity),
|
|
49
|
+
// Reset on touch devices, it doesn't add specificity
|
|
50
|
+
"@media (hover: none)": {
|
|
51
|
+
backgroundColor: "transparent"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}, e.edge === "start" && {
|
|
55
|
+
marginLeft: e.size === "small" ? -3 : -12
|
|
56
|
+
}, e.edge === "end" && {
|
|
57
|
+
marginRight: e.size === "small" ? -3 : -12
|
|
58
|
+
}), ({
|
|
59
|
+
theme: o,
|
|
60
|
+
ownerState: e
|
|
61
|
+
}) => {
|
|
62
|
+
var s;
|
|
63
|
+
const a = (s = (o.vars || o).palette) == null ? void 0 : s[e.color];
|
|
64
|
+
return t({}, e.color === "inherit" && {
|
|
65
|
+
color: "inherit"
|
|
66
|
+
}, e.color !== "inherit" && e.color !== "default" && t({
|
|
67
|
+
color: a == null ? void 0 : a.main
|
|
68
|
+
}, !e.disableRipple && {
|
|
69
|
+
"&:hover": t({}, a && {
|
|
70
|
+
backgroundColor: o.vars ? `rgba(${a.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : f(a.main, o.palette.action.hoverOpacity)
|
|
71
|
+
}, {
|
|
72
|
+
// Reset on touch devices, it doesn't add specificity
|
|
73
|
+
"@media (hover: none)": {
|
|
74
|
+
backgroundColor: "transparent"
|
|
75
|
+
}
|
|
76
|
+
})
|
|
77
|
+
}), e.size === "small" && {
|
|
78
|
+
padding: 5,
|
|
79
|
+
fontSize: o.typography.pxToRem(18)
|
|
80
|
+
}, e.size === "large" && {
|
|
81
|
+
padding: 12,
|
|
82
|
+
fontSize: o.typography.pxToRem(28)
|
|
83
|
+
}, {
|
|
84
|
+
[`&.${P.disabled}`]: {
|
|
85
|
+
backgroundColor: "transparent",
|
|
86
|
+
color: (o.vars || o).palette.action.disabled
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}), b = /* @__PURE__ */ d.forwardRef(function(e, s) {
|
|
90
|
+
const a = I({
|
|
91
|
+
props: e,
|
|
92
|
+
name: "MuiIconButton"
|
|
93
|
+
}), {
|
|
94
|
+
edge: i = !1,
|
|
95
|
+
children: l,
|
|
96
|
+
className: c,
|
|
97
|
+
color: v = "default",
|
|
98
|
+
disabled: p = !1,
|
|
99
|
+
disableFocusRipple: u = !1,
|
|
100
|
+
size: m = "medium"
|
|
101
|
+
} = a, y = R(a, M), g = t({}, a, {
|
|
102
|
+
edge: i,
|
|
103
|
+
color: v,
|
|
104
|
+
disabled: p,
|
|
105
|
+
disableFocusRipple: u,
|
|
106
|
+
size: m
|
|
107
|
+
}), h = N(g);
|
|
108
|
+
return /* @__PURE__ */ $.jsx(_, t({
|
|
109
|
+
className: x(h.root, c),
|
|
110
|
+
centerRipple: !0,
|
|
111
|
+
focusRipple: !u,
|
|
112
|
+
disabled: p,
|
|
113
|
+
ref: s,
|
|
114
|
+
ownerState: g
|
|
115
|
+
}, y, {
|
|
116
|
+
children: l
|
|
117
|
+
}));
|
|
118
|
+
});
|
|
119
|
+
process.env.NODE_ENV !== "production" && (b.propTypes = {
|
|
120
|
+
// ----------------------------- Warning --------------------------------
|
|
121
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
122
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
123
|
+
// ----------------------------------------------------------------------
|
|
124
|
+
/**
|
|
125
|
+
* The icon to display.
|
|
126
|
+
*/
|
|
127
|
+
children: k(r.node, (o) => d.Children.toArray(o.children).some((s) => /* @__PURE__ */ d.isValidElement(s) && s.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
128
|
+
`)) : null),
|
|
129
|
+
/**
|
|
130
|
+
* Override or extend the styles applied to the component.
|
|
131
|
+
*/
|
|
132
|
+
classes: r.object,
|
|
133
|
+
/**
|
|
134
|
+
* @ignore
|
|
135
|
+
*/
|
|
136
|
+
className: r.string,
|
|
137
|
+
/**
|
|
138
|
+
* The color of the component.
|
|
139
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
140
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
141
|
+
* @default 'default'
|
|
142
|
+
*/
|
|
143
|
+
color: r.oneOfType([r.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
|
|
144
|
+
/**
|
|
145
|
+
* If `true`, the component is disabled.
|
|
146
|
+
* @default false
|
|
147
|
+
*/
|
|
148
|
+
disabled: r.bool,
|
|
149
|
+
/**
|
|
150
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
151
|
+
* @default false
|
|
152
|
+
*/
|
|
153
|
+
disableFocusRipple: r.bool,
|
|
154
|
+
/**
|
|
155
|
+
* If `true`, the ripple effect is disabled.
|
|
156
|
+
*
|
|
157
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
158
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
159
|
+
* @default false
|
|
160
|
+
*/
|
|
161
|
+
disableRipple: r.bool,
|
|
162
|
+
/**
|
|
163
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
164
|
+
* side (this is often helpful for aligning the left or right
|
|
165
|
+
* side of the icon with content above or below, without ruining the border
|
|
166
|
+
* size and shape).
|
|
167
|
+
* @default false
|
|
168
|
+
*/
|
|
169
|
+
edge: r.oneOf(["end", "start", !1]),
|
|
170
|
+
/**
|
|
171
|
+
* The size of the component.
|
|
172
|
+
* `small` is equivalent to the dense button styling.
|
|
173
|
+
* @default 'medium'
|
|
174
|
+
*/
|
|
175
|
+
size: r.oneOfType([r.oneOf(["small", "medium", "large"]), r.string]),
|
|
176
|
+
/**
|
|
177
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
178
|
+
*/
|
|
179
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
|
|
180
|
+
});
|
|
181
|
+
const D = b;
|
|
182
|
+
export {
|
|
183
|
+
D as I
|
|
184
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as KdpaInput } from "./KdpaInput/KdpaInput";
|
|
2
|
+
export { default as KdpaInputLabel } from "./KdpaInputLabel/KdpaInputLabel";
|
|
3
|
+
export { default as KdpaInputMultiline } from "./KdpaInputMultiline/KdpaInputMultiline";
|
|
4
|
+
export type { KdpaInputProps } from "./KdpaInput/KdpaInput";
|
|
5
|
+
export type { KdpaInputLabelProps } from "./KdpaInputLabel/KdpaInputLabel";
|
|
6
|
+
export type { KdpaInputMultilineProps } from "./KdpaInputMultiline/KdpaInputMultiline";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAExF,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,YAAY,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { j as i } from "../jsx-runtime-944c88e2.js";
|
|
2
|
+
import o from "react";
|
|
3
|
+
import { M as p, c as f } from "../TextField-b8c731e8.js";
|
|
4
|
+
import "../extends-393586f3.js";
|
|
5
|
+
import "../identifier-9dfe30d8.js";
|
|
6
|
+
import "../emotion-memoize.esm-021d0d4e.js";
|
|
7
|
+
import "../_commonjsHelpers-92157f1b.js";
|
|
8
|
+
import "../useThemeProps-7d04a175.js";
|
|
9
|
+
import "../emotion-is-prop-valid.esm-b7f48706.js";
|
|
10
|
+
import "../FormControl-e7294bde.js";
|
|
11
|
+
import "../useFormControl-af690c26.js";
|
|
12
|
+
import "../isMuiElement-b88a921a.js";
|
|
13
|
+
import "../useId-e7dff7be.js";
|
|
14
|
+
import "../formControlState-9148c46f.js";
|
|
15
|
+
import "../useTheme-014a54ad.js";
|
|
16
|
+
import "../Modal-5f23fcfd.js";
|
|
17
|
+
import "../Fade-aabbd0cb.js";
|
|
18
|
+
import "../utils-129661c6.js";
|
|
19
|
+
import "../TransitionGroupContext-7435e195.js";
|
|
20
|
+
import "../setPrototypeOf-98a00546.js";
|
|
21
|
+
import "react-dom";
|
|
22
|
+
import "../useForkRef-0781dda0.js";
|
|
23
|
+
import "../elementAcceptingRef-803dfd80.js";
|
|
24
|
+
import "../chainPropTypes-004bf492.js";
|
|
25
|
+
import "../ownerDocument-5430cd5b.js";
|
|
26
|
+
import "../ownerWindow-e6cc3097.js";
|
|
27
|
+
import "../Portal-b4f8657f.js";
|
|
28
|
+
import "../useEventCallback-fe4fd69c.js";
|
|
29
|
+
import "../HTMLElementType-ff213f3c.js";
|
|
30
|
+
import "../exactProp-3aaa3ecc.js";
|
|
31
|
+
import "../createChainedFunction-68e2a88d.js";
|
|
32
|
+
import "../useSlotProps-f238319f.js";
|
|
33
|
+
import "../Paper-aaec61a3.js";
|
|
34
|
+
import "../refType-af1a9f54.js";
|
|
35
|
+
import "../elementTypeAcceptingRef-6c34f16b.js";
|
|
36
|
+
import "../Grow-151a20f6.js";
|
|
37
|
+
import "../ListContext-de5072f9.js";
|
|
38
|
+
import "../useControlled-cc2d41cb.js";
|
|
39
|
+
import "../ArrowDropDown-76613637.js";
|
|
40
|
+
import "../createSvgIcon-b80a8a41.js";
|
|
41
|
+
import "../emotion-react.browser.esm-d563ed65.js";
|
|
42
|
+
import "../hoist-non-react-statics.cjs-ce2f2873.js";
|
|
43
|
+
const rt = o.forwardRef(
|
|
44
|
+
(t, r) => /* @__PURE__ */ i.jsx(
|
|
45
|
+
p,
|
|
46
|
+
{
|
|
47
|
+
sx: { width: "100%" },
|
|
48
|
+
inputRef: r,
|
|
49
|
+
variant: "standard",
|
|
50
|
+
size: "small",
|
|
51
|
+
...t
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
);
|
|
55
|
+
function it(t) {
|
|
56
|
+
return /* @__PURE__ */ i.jsx(f, { ...t, children: t.children });
|
|
57
|
+
}
|
|
58
|
+
const ot = o.forwardRef(
|
|
59
|
+
({
|
|
60
|
+
label: t = "متن پاراف",
|
|
61
|
+
variant: r = "standard",
|
|
62
|
+
placeholder: m = "پاراف را وارد کنید ...",
|
|
63
|
+
minRows: e = 5,
|
|
64
|
+
maxRows: n = 5,
|
|
65
|
+
multiline: a = !0,
|
|
66
|
+
autoComplete: d = "off",
|
|
67
|
+
...s
|
|
68
|
+
}, u) => /* @__PURE__ */ i.jsx(
|
|
69
|
+
p,
|
|
70
|
+
{
|
|
71
|
+
label: t,
|
|
72
|
+
variant: r,
|
|
73
|
+
sx: { width: "100%" },
|
|
74
|
+
placeholder: m,
|
|
75
|
+
minRows: e,
|
|
76
|
+
maxRows: n,
|
|
77
|
+
multiline: a,
|
|
78
|
+
autoComplete: d,
|
|
79
|
+
inputRef: u,
|
|
80
|
+
...s
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
);
|
|
84
|
+
export {
|
|
85
|
+
rt as KdpaInput,
|
|
86
|
+
it as KdpaInputLabel,
|
|
87
|
+
ot as KdpaInputMultiline
|
|
88
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { _ as u, a as A } from "./extends-393586f3.js";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import { g as I, P as e, h as v } from "./identifier-9dfe30d8.js";
|
|
4
|
+
import { g as j, s as C, u as N, c as L, a as R } from "./useThemeProps-7d04a175.js";
|
|
5
|
+
import { u as M, F as O } from "./useFormControl-af690c26.js";
|
|
6
|
+
import { j as a } from "./jsx-runtime-944c88e2.js";
|
|
7
|
+
import { T as _ } from "./Typography-dfa51fea.js";
|
|
8
|
+
function z(o) {
|
|
9
|
+
return I("MuiInputAdornment", o);
|
|
10
|
+
}
|
|
11
|
+
const $ = j("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]), y = $;
|
|
12
|
+
var g;
|
|
13
|
+
const F = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], U = (o, t) => {
|
|
14
|
+
const {
|
|
15
|
+
ownerState: n
|
|
16
|
+
} = o;
|
|
17
|
+
return [t.root, t[`position${v(n.position)}`], n.disablePointerEvents === !0 && t.disablePointerEvents, t[n.variant]];
|
|
18
|
+
}, S = (o) => {
|
|
19
|
+
const {
|
|
20
|
+
classes: t,
|
|
21
|
+
disablePointerEvents: n,
|
|
22
|
+
hiddenLabel: r,
|
|
23
|
+
position: s,
|
|
24
|
+
size: l,
|
|
25
|
+
variant: p
|
|
26
|
+
} = o, d = {
|
|
27
|
+
root: ["root", n && "disablePointerEvents", s && `position${v(s)}`, p, r && "hiddenLabel", l && `size${v(l)}`]
|
|
28
|
+
};
|
|
29
|
+
return R(d, z, t);
|
|
30
|
+
}, w = C("div", {
|
|
31
|
+
name: "MuiInputAdornment",
|
|
32
|
+
slot: "Root",
|
|
33
|
+
overridesResolver: U
|
|
34
|
+
})(({
|
|
35
|
+
theme: o,
|
|
36
|
+
ownerState: t
|
|
37
|
+
}) => u({
|
|
38
|
+
display: "flex",
|
|
39
|
+
height: "0.01em",
|
|
40
|
+
// Fix IE11 flexbox alignment. To remove at some point.
|
|
41
|
+
maxHeight: "2em",
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
whiteSpace: "nowrap",
|
|
44
|
+
color: (o.vars || o).palette.action.active
|
|
45
|
+
}, t.variant === "filled" && {
|
|
46
|
+
// Styles applied to the root element if `variant="filled"`.
|
|
47
|
+
[`&.${y.positionStart}&:not(.${y.hiddenLabel})`]: {
|
|
48
|
+
marginTop: 16
|
|
49
|
+
}
|
|
50
|
+
}, t.position === "start" && {
|
|
51
|
+
// Styles applied to the root element if `position="start"`.
|
|
52
|
+
marginRight: 8
|
|
53
|
+
}, t.position === "end" && {
|
|
54
|
+
// Styles applied to the root element if `position="end"`.
|
|
55
|
+
marginLeft: 8
|
|
56
|
+
}, t.disablePointerEvents === !0 && {
|
|
57
|
+
// Styles applied to the root element if `disablePointerEvents={true}`.
|
|
58
|
+
pointerEvents: "none"
|
|
59
|
+
})), x = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
60
|
+
const r = N({
|
|
61
|
+
props: t,
|
|
62
|
+
name: "MuiInputAdornment"
|
|
63
|
+
}), {
|
|
64
|
+
children: s,
|
|
65
|
+
className: l,
|
|
66
|
+
component: p = "div",
|
|
67
|
+
disablePointerEvents: d = !1,
|
|
68
|
+
disableTypography: E = !1,
|
|
69
|
+
position: f,
|
|
70
|
+
variant: c
|
|
71
|
+
} = r, P = A(r, F), i = M() || {};
|
|
72
|
+
let m = c;
|
|
73
|
+
c && i.variant && process.env.NODE_ENV !== "production" && c === i.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), i && !m && (m = i.variant);
|
|
74
|
+
const h = u({}, r, {
|
|
75
|
+
hiddenLabel: i.hiddenLabel,
|
|
76
|
+
size: i.size,
|
|
77
|
+
disablePointerEvents: d,
|
|
78
|
+
position: f,
|
|
79
|
+
variant: m
|
|
80
|
+
}), T = S(h);
|
|
81
|
+
return /* @__PURE__ */ a.jsx(O.Provider, {
|
|
82
|
+
value: null,
|
|
83
|
+
children: /* @__PURE__ */ a.jsx(w, u({
|
|
84
|
+
as: p,
|
|
85
|
+
ownerState: h,
|
|
86
|
+
className: L(T.root, l),
|
|
87
|
+
ref: n
|
|
88
|
+
}, P, {
|
|
89
|
+
children: typeof s == "string" && !E ? /* @__PURE__ */ a.jsx(_, {
|
|
90
|
+
color: "text.secondary",
|
|
91
|
+
children: s
|
|
92
|
+
}) : /* @__PURE__ */ a.jsxs(b.Fragment, {
|
|
93
|
+
children: [f === "start" ? (
|
|
94
|
+
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
95
|
+
g || (g = /* @__PURE__ */ a.jsx("span", {
|
|
96
|
+
className: "notranslate",
|
|
97
|
+
children: ""
|
|
98
|
+
}))
|
|
99
|
+
) : null, s]
|
|
100
|
+
})
|
|
101
|
+
}))
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
105
|
+
// ----------------------------- Warning --------------------------------
|
|
106
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
107
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
108
|
+
// ----------------------------------------------------------------------
|
|
109
|
+
/**
|
|
110
|
+
* The content of the component, normally an `IconButton` or string.
|
|
111
|
+
*/
|
|
112
|
+
children: e.node,
|
|
113
|
+
/**
|
|
114
|
+
* Override or extend the styles applied to the component.
|
|
115
|
+
*/
|
|
116
|
+
classes: e.object,
|
|
117
|
+
/**
|
|
118
|
+
* @ignore
|
|
119
|
+
*/
|
|
120
|
+
className: e.string,
|
|
121
|
+
/**
|
|
122
|
+
* The component used for the root node.
|
|
123
|
+
* Either a string to use a HTML element or a component.
|
|
124
|
+
*/
|
|
125
|
+
component: e.elementType,
|
|
126
|
+
/**
|
|
127
|
+
* Disable pointer events on the root.
|
|
128
|
+
* This allows for the content of the adornment to focus the `input` on click.
|
|
129
|
+
* @default false
|
|
130
|
+
*/
|
|
131
|
+
disablePointerEvents: e.bool,
|
|
132
|
+
/**
|
|
133
|
+
* If children is a string then disable wrapping in a Typography component.
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
136
|
+
disableTypography: e.bool,
|
|
137
|
+
/**
|
|
138
|
+
* The position this adornment should appear relative to the `Input`.
|
|
139
|
+
*/
|
|
140
|
+
position: e.oneOf(["end", "start"]).isRequired,
|
|
141
|
+
/**
|
|
142
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
143
|
+
*/
|
|
144
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
145
|
+
/**
|
|
146
|
+
* The variant to use.
|
|
147
|
+
* Note: If you are using the `TextField` component or the `FormControl` component
|
|
148
|
+
* you do not have to set this manually.
|
|
149
|
+
*/
|
|
150
|
+
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
151
|
+
});
|
|
152
|
+
const k = x;
|
|
153
|
+
export {
|
|
154
|
+
k as M
|
|
155
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { j as r } from "./jsx-runtime-944c88e2.js";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { F as p } from "./Fade-aabbd0cb.js";
|
|
4
|
+
import { C as d } from "./Collapse-4b8b3146.js";
|
|
5
|
+
const l = e.forwardRef(function({ children: a, ...s }, t) {
|
|
6
|
+
return /* @__PURE__ */ r.jsx(p, { ref: t, ...s, children: /* @__PURE__ */ r.jsx("div", { children: a }) });
|
|
7
|
+
}), x = ({ children: o, ...a }) => /* @__PURE__ */ r.jsx(d, { ...a, children: o });
|
|
8
|
+
export {
|
|
9
|
+
l as K,
|
|
10
|
+
x as a
|
|
11
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-944c88e2.js";
|
|
2
|
+
import { KdpaTooltip as l } from "./Tooltips/index.js";
|
|
3
|
+
import { I as a } from "./IconButton-fdbca6d2.js";
|
|
4
|
+
function u({
|
|
5
|
+
icon: r,
|
|
6
|
+
tooltipText: i = "",
|
|
7
|
+
placement: n = "top",
|
|
8
|
+
...s
|
|
9
|
+
}) {
|
|
10
|
+
const { disabled: e, onClick: p, children: o, ...d } = s;
|
|
11
|
+
return /* @__PURE__ */ t.jsx(l, { title: i, placement: n, children: /* @__PURE__ */ t.jsx(
|
|
12
|
+
a,
|
|
13
|
+
{
|
|
14
|
+
disabled: e ?? !1,
|
|
15
|
+
onClick: p,
|
|
16
|
+
...d,
|
|
17
|
+
children: o || r
|
|
18
|
+
}
|
|
19
|
+
) });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
u as K
|
|
23
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-944c88e2.js";
|
|
2
|
+
import { K as a } from "./KdpaFormControl-2d7c1db8.js";
|
|
3
|
+
import "./kdpaSelect-4ed993c7.js";
|
|
4
|
+
import { M as s } from "./TextField-b8c731e8.js";
|
|
5
|
+
import { M as n } from "./MenuItem-cc037c5b.js";
|
|
6
|
+
const d = ({ label: t = "", children: r, ...o }) => /* @__PURE__ */ e.jsx(a, { className: "kdpa-form-control", children: /* @__PURE__ */ e.jsx(
|
|
7
|
+
s,
|
|
8
|
+
{
|
|
9
|
+
select: !0,
|
|
10
|
+
fullWidth: !0,
|
|
11
|
+
label: t,
|
|
12
|
+
defaultValue: "",
|
|
13
|
+
variant: "standard",
|
|
14
|
+
inputProps: { MenuProps: { disableScrollLock: !0 } },
|
|
15
|
+
...o,
|
|
16
|
+
children: r
|
|
17
|
+
}
|
|
18
|
+
) });
|
|
19
|
+
function x({ children: t, ...r }) {
|
|
20
|
+
return /* @__PURE__ */ e.jsx(
|
|
21
|
+
n,
|
|
22
|
+
{
|
|
23
|
+
sx: {
|
|
24
|
+
display: "flex",
|
|
25
|
+
justifyContent: "flex-start",
|
|
26
|
+
padding: "6px 16px !important"
|
|
27
|
+
},
|
|
28
|
+
...r,
|
|
29
|
+
children: t
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
d as K,
|
|
35
|
+
x as a
|
|
36
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-944c88e2.js";
|
|
2
|
+
import { KdpaTooltip as p } from "./Tooltips/index.js";
|
|
3
|
+
import { B as s } from "./Button-b93e890d.js";
|
|
4
|
+
function d({
|
|
5
|
+
children: o,
|
|
6
|
+
icon: r,
|
|
7
|
+
tooltipText: i,
|
|
8
|
+
onClick: n,
|
|
9
|
+
...a
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ t.jsx(p, { title: i, children: /* @__PURE__ */ t.jsx(
|
|
12
|
+
s,
|
|
13
|
+
{
|
|
14
|
+
onClick: n,
|
|
15
|
+
variant: "outlined",
|
|
16
|
+
startIcon: r,
|
|
17
|
+
sx: { minWidth: "36px" },
|
|
18
|
+
...a,
|
|
19
|
+
children: o
|
|
20
|
+
}
|
|
21
|
+
) });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
d as K
|
|
25
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { c as r } from "./createSvgIcon-b80a8a41.js";
|
|
3
|
+
import { j as o } from "./jsx-runtime-944c88e2.js";
|
|
4
|
+
const s = r(/* @__PURE__ */ o.jsx("path", {
|
|
5
|
+
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
6
|
+
}), "KeyboardArrowLeft"), p = r(/* @__PURE__ */ o.jsx("path", {
|
|
7
|
+
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
8
|
+
}), "KeyboardArrowRight");
|
|
9
|
+
export {
|
|
10
|
+
s as K,
|
|
11
|
+
p as a
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/LazyDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC"}
|