@hybridcore/ui 1.6.0 → 1.6.1

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 (128) hide show
  1. package/dist/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
  2. package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
  3. package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
  4. package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
  5. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
  6. package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
  7. package/dist/FormControlLabel-BkRfrhNy.js +601 -0
  8. package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
  9. package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
  10. package/dist/InputLabel-rEwwnD4_.js +354 -0
  11. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
  12. package/dist/Modal-DlB6GH-f.js +1659 -0
  13. package/dist/Paper-q9kKjAKx.js +527 -0
  14. package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
  15. package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
  16. package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
  17. package/dist/components/access/index.js +8 -15
  18. package/dist/components/access/logic.js +25 -0
  19. package/dist/components/card/index.js +158 -498
  20. package/dist/components/card/logic.js +24 -0
  21. package/dist/components/card/styled.js +226 -51
  22. package/dist/components/card-alternate/index.js +111 -139
  23. package/dist/components/card-alternate/logic.js +17 -0
  24. package/dist/components/card-alternate/styled.js +113 -19
  25. package/dist/components/collapsible-card/index.js +1 -1
  26. package/dist/components/collapsible-card/styled.js +1 -1
  27. package/dist/components/confirm/dialog.js +3 -3
  28. package/dist/components/confirm/index.js +1 -1
  29. package/dist/components/container/index.js +28 -269
  30. package/dist/components/container/logic.js +12 -0
  31. package/dist/components/container/styled.js +29 -0
  32. package/dist/components/context-menu/index.js +25 -457
  33. package/dist/components/context-menu/logic.js +14 -0
  34. package/dist/components/context-menu/styled.js +40 -0
  35. package/dist/components/data-security-selectors/security-level/index.js +36 -91
  36. package/dist/components/data-security-selectors/security-level/logic.js +73 -0
  37. package/dist/components/data-security-selectors/security-level/styled.js +47 -0
  38. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  39. package/dist/components/geometry-picker/index.js +13 -12
  40. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  41. package/dist/components/instance-form/components/variable/index.js +7 -9
  42. package/dist/components/instance-form/components/variables/index.js +1 -1
  43. package/dist/components/instance-form/index.js +1 -1
  44. package/dist/components/instance-hierarchy-table/index.js +32 -37
  45. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  46. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  47. package/dist/components/instance-table/index.js +30 -135
  48. package/dist/components/instance-table/logic.js +122 -0
  49. package/dist/components/instance-table/styled.js +53 -11
  50. package/dist/components/key-protection/index.js +45 -2
  51. package/dist/components/key-protection/logic.js +40 -0
  52. package/dist/components/key-protection/styled.js +45 -0
  53. package/dist/components/key-protection/utils.js +1 -1
  54. package/dist/components/loading/index.js +15 -9
  55. package/dist/components/loading/logic.js +15 -0
  56. package/dist/components/loading/styled.js +26 -19
  57. package/dist/components/phone-input/index.js +18 -22
  58. package/dist/components/phone-input/logic.js +14 -0
  59. package/dist/components/phone-input/styled.js +12 -4
  60. package/dist/components/property-mapping/index.js +1 -1
  61. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  62. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  63. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  64. package/dist/components/range-selector/components/number-range/index.js +48 -53
  65. package/dist/components/range-selector/components/string-range/index.js +15 -17
  66. package/dist/components/range-selector/index.js +63 -57
  67. package/dist/components/range-selector/logic.js +12 -0
  68. package/dist/components/range-selector/styled.js +4222 -0
  69. package/dist/components/template-filters/components/filter/index.js +13 -18
  70. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  71. package/dist/components/template-filters/index.js +21 -29
  72. package/dist/components/template-filters/logic.js +18 -0
  73. package/dist/components/template-filters/styled.js +44 -1
  74. package/dist/components/template-form/components/property-list/index.js +8 -8
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  76. package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
  77. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  78. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  79. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
  80. package/dist/components/template-form/index.js +32 -33
  81. package/dist/components/template-property-filters/index.js +45 -95
  82. package/dist/components/template-property-filters/logic.js +27 -0
  83. package/dist/components/template-property-filters/property.js +105 -165
  84. package/dist/components/template-property-filters/styled.js +121 -20
  85. package/dist/components/tree-select/index.js +52 -67
  86. package/dist/components/tree-select/logic.js +59 -0
  87. package/dist/components/tree-select/styled.js +45 -62
  88. package/dist/components/treeview-filter/index.js +43 -65
  89. package/dist/components/treeview-filter/item/index.js +43 -42
  90. package/dist/components/treeview-filter/item-label/index.js +17 -37
  91. package/dist/components/treeview-filter/logic.js +28 -0
  92. package/dist/components/treeview-filter/styled.js +86 -0
  93. package/dist/components/uploader/index.js +532 -567
  94. package/dist/components/uploader/logic.js +74 -0
  95. package/dist/components/uploader/styled.js +93 -46
  96. package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
  97. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
  98. package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
  99. package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
  100. package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
  101. package/dist/isMuiElement-BkJ72LB3.js +26 -0
  102. package/dist/main.d.ts +734 -298
  103. package/dist/main.js +15 -15
  104. package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
  105. package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
  106. package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
  107. package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
  108. package/package.json +1 -1
  109. package/dist/Box-p6OtTUEo.js +0 -30
  110. package/dist/Button-CvE2gnly.js +0 -370
  111. package/dist/CardContent-CSHh-ZlM.js +0 -74
  112. package/dist/Checkbox-CWRMFTBp.js +0 -421
  113. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  114. package/dist/List-tqElle9C.js +0 -121
  115. package/dist/ListItem-CfjsIg4B.js +0 -430
  116. package/dist/Modal-DhPpOoGB.js +0 -1299
  117. package/dist/Paper-2B03OBmZ.js +0 -169
  118. package/dist/TextField-1yCesIbH.js +0 -457
  119. package/dist/components/key-protection/menu.js +0 -85
  120. package/dist/components/treeview-filter/item/styled.js +0 -39
  121. package/dist/debounce-46wSf_lW.js +0 -15
  122. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  123. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  124. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  125. package/dist/styled-eZwjUruw.js +0 -12
  126. package/dist/useFormControl-CatNKXAi.js +0 -10
  127. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  128. package/dist/utils-BDNynJcd.js +0 -365
@@ -1,4 +1,4 @@
1
- async function c() {
1
+ async function i() {
2
2
  const e = {
3
3
  challenge: new Uint8Array([583, 3, 100]),
4
4
  rp: { id: window.location.hostname, name: "Smart Navigator" },
@@ -11,7 +11,7 @@ async function c() {
11
11
  };
12
12
  return await navigator.credentials.create({ publicKey: e });
13
13
  }
14
- async function i(e) {
14
+ async function c(e) {
15
15
  const r = {
16
16
  challenge: new Uint8Array([583, 3, 100]),
17
17
  rpId: window.location.hostname,
@@ -95,21 +95,21 @@ async function w(e) {
95
95
  }
96
96
  const b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
97
97
  __proto__: null,
98
- authenticate: i,
98
+ authenticate: c,
99
99
  decrypt: d,
100
100
  encrypt: y,
101
101
  exportKey: l,
102
102
  generateKey: s,
103
103
  importKey: w,
104
- register: c
104
+ register: i
105
105
  }, Symbol.toStringTag, { value: "Module" }));
106
106
  export {
107
- b as S,
108
- i as a,
107
+ c as a,
109
108
  l as b,
110
109
  d,
111
110
  y as e,
112
111
  s as g,
113
112
  w as i,
114
- c as r
113
+ i as r,
114
+ b as u
115
115
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridcore/ui",
3
3
  "description": "Hybrid Core UI Library",
4
- "version": "1.6.0",
4
+ "version": "1.6.1",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",
@@ -1,30 +0,0 @@
1
- import { createBox as o } from "@mui/system";
2
- import { P as e } from "./index-C__OZmYy.js";
3
- import { c as r, C as a } from "./createTheme-DYxDnE9u.js";
4
- const t = r(), s = o({
5
- defaultTheme: t,
6
- defaultClassName: "MuiBox-root",
7
- generateClassName: a.generate
8
- });
9
- process.env.NODE_ENV !== "production" && (s.propTypes = {
10
- // ----------------------------- Warning --------------------------------
11
- // | These PropTypes are generated from the TypeScript type definitions |
12
- // | To update them edit the d.ts file and run "yarn proptypes" |
13
- // ----------------------------------------------------------------------
14
- /**
15
- * @ignore
16
- */
17
- children: e.node,
18
- /**
19
- * The component used for the root node.
20
- * Either a string to use a HTML element or a component.
21
- */
22
- component: e.elementType,
23
- /**
24
- * The system prop that allows defining system overrides as well as additional CSS styles.
25
- */
26
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
27
- });
28
- export {
29
- s as B
30
- };
@@ -1,370 +0,0 @@
1
- import { a as t, _ as L } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as f from "react";
3
- import { P as n } from "./index-C__OZmYy.js";
4
- import { g as _, u as F, c as h, a as U } from "./useThemeProps-BzzHcQyd.js";
5
- import { alpha as v } from "@mui/system";
6
- import { s as x, r as D } from "./styled-eZwjUruw.js";
7
- import { g as G } from "./createTheme-DYxDnE9u.js";
8
- import { jsx as m, jsxs as A } from "react/jsx-runtime";
9
- import { B as q } from "./ButtonBase-2bPw77UP.js";
10
- import { c as e } from "./capitalize-ciszXJ7R.js";
11
- function O(o, i) {
12
- const a = t({}, i);
13
- return Object.keys(o).forEach((r) => {
14
- if (r.toString().match(/^(components|slots)$/))
15
- a[r] = t({}, o[r], a[r]);
16
- else if (r.toString().match(/^(componentsProps|slotProps)$/)) {
17
- const l = o[r] || {}, s = i[r];
18
- a[r] = {}, !s || !Object.keys(s) ? a[r] = l : !l || !Object.keys(l) ? a[r] = s : (a[r] = t({}, s), Object.keys(l).forEach((c) => {
19
- a[r][c] = O(l[c], s[c]);
20
- }));
21
- } else a[r] === void 0 && (a[r] = o[r]);
22
- }), a;
23
- }
24
- function H(o) {
25
- return G("MuiButton", o);
26
- }
27
- const b = _("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), R = /* @__PURE__ */ f.createContext({});
28
- process.env.NODE_ENV !== "production" && (R.displayName = "ButtonGroupContext");
29
- const J = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], K = (o) => {
30
- const {
31
- color: i,
32
- disableElevation: a,
33
- fullWidth: r,
34
- size: l,
35
- variant: s,
36
- classes: c
37
- } = o, g = {
38
- root: ["root", s, `${s}${e(i)}`, `size${e(l)}`, `${s}Size${e(l)}`, i === "inherit" && "colorInherit", a && "disableElevation", r && "fullWidth"],
39
- label: ["label"],
40
- startIcon: ["startIcon", `iconSize${e(l)}`],
41
- endIcon: ["endIcon", `iconSize${e(l)}`]
42
- }, p = U(g, H, c);
43
- return t({}, c, p);
44
- }, k = (o) => t({}, o.size === "small" && {
45
- "& > *:nth-of-type(1)": {
46
- fontSize: 18
47
- }
48
- }, o.size === "medium" && {
49
- "& > *:nth-of-type(1)": {
50
- fontSize: 20
51
- }
52
- }, o.size === "large" && {
53
- "& > *:nth-of-type(1)": {
54
- fontSize: 22
55
- }
56
- }), N = x(q, {
57
- shouldForwardProp: (o) => D(o) || o === "classes",
58
- name: "MuiButton",
59
- slot: "Root",
60
- overridesResolver: (o, i) => {
61
- const {
62
- ownerState: a
63
- } = o;
64
- return [i.root, i[a.variant], i[`${a.variant}${e(a.color)}`], i[`size${e(a.size)}`], i[`${a.variant}Size${e(a.size)}`], a.color === "inherit" && i.colorInherit, a.disableElevation && i.disableElevation, a.fullWidth && i.fullWidth];
65
- }
66
- })(({
67
- theme: o,
68
- ownerState: i
69
- }) => {
70
- var a, r;
71
- return t({}, o.typography.button, {
72
- minWidth: 64,
73
- padding: "6px 16px",
74
- borderRadius: (o.vars || o).shape.borderRadius,
75
- transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
76
- duration: o.transitions.duration.short
77
- }),
78
- "&:hover": t({
79
- textDecoration: "none",
80
- backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
81
- // Reset on touch devices, it doesn't add specificity
82
- "@media (hover: none)": {
83
- backgroundColor: "transparent"
84
- }
85
- }, i.variant === "text" && i.color !== "inherit" && {
86
- backgroundColor: o.vars ? `rgba(${o.vars.palette[i.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[i.color].main, o.palette.action.hoverOpacity),
87
- // Reset on touch devices, it doesn't add specificity
88
- "@media (hover: none)": {
89
- backgroundColor: "transparent"
90
- }
91
- }, i.variant === "outlined" && i.color !== "inherit" && {
92
- border: `1px solid ${(o.vars || o).palette[i.color].main}`,
93
- backgroundColor: o.vars ? `rgba(${o.vars.palette[i.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[i.color].main, o.palette.action.hoverOpacity),
94
- // Reset on touch devices, it doesn't add specificity
95
- "@media (hover: none)": {
96
- backgroundColor: "transparent"
97
- }
98
- }, i.variant === "contained" && {
99
- backgroundColor: (o.vars || o).palette.grey.A100,
100
- boxShadow: (o.vars || o).shadows[4],
101
- // Reset on touch devices, it doesn't add specificity
102
- "@media (hover: none)": {
103
- boxShadow: (o.vars || o).shadows[2],
104
- backgroundColor: (o.vars || o).palette.grey[300]
105
- }
106
- }, i.variant === "contained" && i.color !== "inherit" && {
107
- backgroundColor: (o.vars || o).palette[i.color].dark,
108
- // Reset on touch devices, it doesn't add specificity
109
- "@media (hover: none)": {
110
- backgroundColor: (o.vars || o).palette[i.color].main
111
- }
112
- }),
113
- "&:active": t({}, i.variant === "contained" && {
114
- boxShadow: (o.vars || o).shadows[8]
115
- }),
116
- [`&.${b.focusVisible}`]: t({}, i.variant === "contained" && {
117
- boxShadow: (o.vars || o).shadows[6]
118
- }),
119
- [`&.${b.disabled}`]: t({
120
- color: (o.vars || o).palette.action.disabled
121
- }, i.variant === "outlined" && {
122
- border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
123
- }, i.variant === "contained" && {
124
- color: (o.vars || o).palette.action.disabled,
125
- boxShadow: (o.vars || o).shadows[0],
126
- backgroundColor: (o.vars || o).palette.action.disabledBackground
127
- })
128
- }, i.variant === "text" && {
129
- padding: "6px 8px"
130
- }, i.variant === "text" && i.color !== "inherit" && {
131
- color: (o.vars || o).palette[i.color].main
132
- }, i.variant === "outlined" && {
133
- padding: "5px 15px",
134
- border: "1px solid currentColor"
135
- }, i.variant === "outlined" && i.color !== "inherit" && {
136
- color: (o.vars || o).palette[i.color].main,
137
- border: o.vars ? `1px solid rgba(${o.vars.palette[i.color].mainChannel} / 0.5)` : `1px solid ${v(o.palette[i.color].main, 0.5)}`
138
- }, i.variant === "contained" && {
139
- color: o.vars ? (
140
- // this is safe because grey does not change between default light/dark mode
141
- o.vars.palette.text.primary
142
- ) : (a = (r = o.palette).getContrastText) == null ? void 0 : a.call(r, o.palette.grey[300]),
143
- backgroundColor: (o.vars || o).palette.grey[300],
144
- boxShadow: (o.vars || o).shadows[2]
145
- }, i.variant === "contained" && i.color !== "inherit" && {
146
- color: (o.vars || o).palette[i.color].contrastText,
147
- backgroundColor: (o.vars || o).palette[i.color].main
148
- }, i.color === "inherit" && {
149
- color: "inherit",
150
- borderColor: "currentColor"
151
- }, i.size === "small" && i.variant === "text" && {
152
- padding: "4px 5px",
153
- fontSize: o.typography.pxToRem(13)
154
- }, i.size === "large" && i.variant === "text" && {
155
- padding: "8px 11px",
156
- fontSize: o.typography.pxToRem(15)
157
- }, i.size === "small" && i.variant === "outlined" && {
158
- padding: "3px 9px",
159
- fontSize: o.typography.pxToRem(13)
160
- }, i.size === "large" && i.variant === "outlined" && {
161
- padding: "7px 21px",
162
- fontSize: o.typography.pxToRem(15)
163
- }, i.size === "small" && i.variant === "contained" && {
164
- padding: "4px 10px",
165
- fontSize: o.typography.pxToRem(13)
166
- }, i.size === "large" && i.variant === "contained" && {
167
- padding: "8px 22px",
168
- fontSize: o.typography.pxToRem(15)
169
- }, i.fullWidth && {
170
- width: "100%"
171
- });
172
- }, ({
173
- ownerState: o
174
- }) => o.disableElevation && {
175
- boxShadow: "none",
176
- "&:hover": {
177
- boxShadow: "none"
178
- },
179
- [`&.${b.focusVisible}`]: {
180
- boxShadow: "none"
181
- },
182
- "&:active": {
183
- boxShadow: "none"
184
- },
185
- [`&.${b.disabled}`]: {
186
- boxShadow: "none"
187
- }
188
- }), Q = x("span", {
189
- name: "MuiButton",
190
- slot: "StartIcon",
191
- overridesResolver: (o, i) => {
192
- const {
193
- ownerState: a
194
- } = o;
195
- return [i.startIcon, i[`iconSize${e(a.size)}`]];
196
- }
197
- })(({
198
- ownerState: o
199
- }) => t({
200
- display: "inherit",
201
- marginRight: 8,
202
- marginLeft: -4
203
- }, o.size === "small" && {
204
- marginLeft: -2
205
- }, k(o))), X = x("span", {
206
- name: "MuiButton",
207
- slot: "EndIcon",
208
- overridesResolver: (o, i) => {
209
- const {
210
- ownerState: a
211
- } = o;
212
- return [i.endIcon, i[`iconSize${e(a.size)}`]];
213
- }
214
- })(({
215
- ownerState: o
216
- }) => t({
217
- display: "inherit",
218
- marginRight: -4,
219
- marginLeft: 8
220
- }, o.size === "small" && {
221
- marginRight: -2
222
- }, k(o))), Y = /* @__PURE__ */ f.forwardRef(function(i, a) {
223
- const r = f.useContext(R), l = O(r, i), s = F({
224
- props: l,
225
- name: "MuiButton"
226
- }), {
227
- children: c,
228
- color: g = "primary",
229
- component: p = "button",
230
- className: B,
231
- disabled: y = !1,
232
- disableElevation: E = !1,
233
- disableFocusRipple: z = !1,
234
- endIcon: C,
235
- focusVisibleClassName: T,
236
- fullWidth: W = !1,
237
- size: P = "medium",
238
- startIcon: I,
239
- type: $,
240
- variant: S = "text"
241
- } = s, M = L(s, J), u = t({}, s, {
242
- color: g,
243
- component: p,
244
- disabled: y,
245
- disableElevation: E,
246
- disableFocusRipple: z,
247
- fullWidth: W,
248
- size: P,
249
- type: $,
250
- variant: S
251
- }), d = K(u), j = I && /* @__PURE__ */ m(Q, {
252
- className: d.startIcon,
253
- ownerState: u,
254
- children: I
255
- }), V = C && /* @__PURE__ */ m(X, {
256
- className: d.endIcon,
257
- ownerState: u,
258
- children: C
259
- });
260
- return /* @__PURE__ */ A(N, t({
261
- ownerState: u,
262
- className: h(r.className, d.root, B),
263
- component: p,
264
- disabled: y,
265
- focusRipple: !z,
266
- focusVisibleClassName: h(d.focusVisible, T),
267
- ref: a,
268
- type: $
269
- }, M, {
270
- classes: d,
271
- children: [j, c, V]
272
- }));
273
- });
274
- process.env.NODE_ENV !== "production" && (Y.propTypes = {
275
- // ----------------------------- Warning --------------------------------
276
- // | These PropTypes are generated from the TypeScript type definitions |
277
- // | To update them edit the d.ts file and run "yarn proptypes" |
278
- // ----------------------------------------------------------------------
279
- /**
280
- * The content of the component.
281
- */
282
- children: n.node,
283
- /**
284
- * Override or extend the styles applied to the component.
285
- */
286
- classes: n.object,
287
- /**
288
- * @ignore
289
- */
290
- className: n.string,
291
- /**
292
- * The color of the component.
293
- * It supports both default and custom theme colors, which can be added as shown in the
294
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
295
- * @default 'primary'
296
- */
297
- color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), n.string]),
298
- /**
299
- * The component used for the root node.
300
- * Either a string to use a HTML element or a component.
301
- */
302
- component: n.elementType,
303
- /**
304
- * If `true`, the component is disabled.
305
- * @default false
306
- */
307
- disabled: n.bool,
308
- /**
309
- * If `true`, no elevation is used.
310
- * @default false
311
- */
312
- disableElevation: n.bool,
313
- /**
314
- * If `true`, the keyboard focus ripple is disabled.
315
- * @default false
316
- */
317
- disableFocusRipple: n.bool,
318
- /**
319
- * If `true`, the ripple effect is disabled.
320
- *
321
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
322
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
323
- * @default false
324
- */
325
- disableRipple: n.bool,
326
- /**
327
- * Element placed after the children.
328
- */
329
- endIcon: n.node,
330
- /**
331
- * @ignore
332
- */
333
- focusVisibleClassName: n.string,
334
- /**
335
- * If `true`, the button will take up the full width of its container.
336
- * @default false
337
- */
338
- fullWidth: n.bool,
339
- /**
340
- * The URL to link to when the button is clicked.
341
- * If defined, an `a` element will be used as the root node.
342
- */
343
- href: n.string,
344
- /**
345
- * The size of the component.
346
- * `small` is equivalent to the dense button styling.
347
- * @default 'medium'
348
- */
349
- size: n.oneOfType([n.oneOf(["small", "medium", "large"]), n.string]),
350
- /**
351
- * Element placed before the children.
352
- */
353
- startIcon: n.node,
354
- /**
355
- * The system prop that allows defining system overrides as well as additional CSS styles.
356
- */
357
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
358
- /**
359
- * @ignore
360
- */
361
- type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string]),
362
- /**
363
- * The variant to use.
364
- * @default 'text'
365
- */
366
- variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
367
- });
368
- export {
369
- Y as B
370
- };
@@ -1,74 +0,0 @@
1
- import { _ as m, a as c } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as d from "react";
3
- import { P as o } from "./index-C__OZmYy.js";
4
- import { g as C, u, c as f, a as y } from "./useThemeProps-BzzHcQyd.js";
5
- import { s as g } from "./styled-eZwjUruw.js";
6
- import { g as v } from "./createTheme-DYxDnE9u.js";
7
- import { jsx as x } from "react/jsx-runtime";
8
- function N(t) {
9
- return v("MuiCardContent", t);
10
- }
11
- C("MuiCardContent", ["root"]);
12
- const T = ["className", "component"], b = (t) => {
13
- const {
14
- classes: s
15
- } = t;
16
- return y({
17
- root: ["root"]
18
- }, N, s);
19
- }, h = g("div", {
20
- name: "MuiCardContent",
21
- slot: "Root",
22
- overridesResolver: (t, s) => s.root
23
- })(() => ({
24
- padding: 16,
25
- "&:last-child": {
26
- paddingBottom: 24
27
- }
28
- })), j = /* @__PURE__ */ d.forwardRef(function(s, r) {
29
- const e = u({
30
- props: s,
31
- name: "MuiCardContent"
32
- }), {
33
- className: i,
34
- component: n = "div"
35
- } = e, p = m(e, T), a = c({}, e, {
36
- component: n
37
- }), l = b(a);
38
- return /* @__PURE__ */ x(h, c({
39
- as: n,
40
- className: f(l.root, i),
41
- ownerState: a,
42
- ref: r
43
- }, p));
44
- });
45
- process.env.NODE_ENV !== "production" && (j.propTypes = {
46
- // ----------------------------- Warning --------------------------------
47
- // | These PropTypes are generated from the TypeScript type definitions |
48
- // | To update them edit the d.ts file and run "yarn proptypes" |
49
- // ----------------------------------------------------------------------
50
- /**
51
- * The content of the component.
52
- */
53
- children: o.node,
54
- /**
55
- * Override or extend the styles applied to the component.
56
- */
57
- classes: o.object,
58
- /**
59
- * @ignore
60
- */
61
- className: o.string,
62
- /**
63
- * The component used for the root node.
64
- * Either a string to use a HTML element or a component.
65
- */
66
- component: o.elementType,
67
- /**
68
- * The system prop that allows defining system overrides as well as additional CSS styles.
69
- */
70
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
71
- });
72
- export {
73
- j as C
74
- };