@soyfri/shared-library 3.1.0 → 3.2.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.
- package/ActionMenu-BXRVKopM.js +106 -0
- package/ActionMenu-BXRVKopM.js.map +1 -0
- package/ActionMenu-wNWkDZWh.cjs +105 -0
- package/ActionMenu-wNWkDZWh.cjs.map +1 -0
- package/AppBarMenuToggle-BpXBMeca.js +128 -0
- package/AppBarMenuToggle-BpXBMeca.js.map +1 -0
- package/AppBarMenuToggle-D_RJGtHO.cjs +127 -0
- package/AppBarMenuToggle-D_RJGtHO.cjs.map +1 -0
- package/{Autocomplete-CejWztBY.cjs → Autocomplete-Bd3bN4Cw.cjs} +16 -11
- package/Autocomplete-Bd3bN4Cw.cjs.map +1 -0
- package/{Autocomplete-C_lW1VER.js → Autocomplete-E5aSUGVK.js} +16 -11
- package/Autocomplete-E5aSUGVK.js.map +1 -0
- package/{Avatar-Dw5rzayR.cjs → Avatar-BjyfSNvP.cjs} +3 -7
- package/Avatar-BjyfSNvP.cjs.map +1 -0
- package/{Avatar-H8akSege.js → Avatar-C_C4bcb9.js} +3 -7
- package/Avatar-C_C4bcb9.js.map +1 -0
- package/{Checkbox-gB5YKkVo.js → Checkbox-BL4kvHFB.js} +3 -2
- package/Checkbox-BL4kvHFB.js.map +1 -0
- package/{Checkbox-BCqMFWt4.cjs → Checkbox-Bx4Asmg7.cjs} +3 -2
- package/Checkbox-Bx4Asmg7.cjs.map +1 -0
- package/{DatePicker-t7uDTZMl.cjs → DatePicker-CMcQddi1.cjs} +45 -42
- package/DatePicker-CMcQddi1.cjs.map +1 -0
- package/{DatePicker-_IGWc3I5.js → DatePicker-D__RSgs-.js} +45 -42
- package/DatePicker-D__RSgs-.js.map +1 -0
- package/{DateTimePicker-BxQyjTCY.cjs → DateTimePicker-BVJGq1A0.cjs} +7 -15
- package/DateTimePicker-BVJGq1A0.cjs.map +1 -0
- package/{DateTimePicker-CrmWav_j.js → DateTimePicker-LeaE716a.js} +7 -15
- package/DateTimePicker-LeaE716a.js.map +1 -0
- package/DrawerItem-DlnG_NdY.cjs +272 -0
- package/DrawerItem-DlnG_NdY.cjs.map +1 -0
- package/DrawerItem-at1lsEo9.js +273 -0
- package/DrawerItem-at1lsEo9.js.map +1 -0
- package/Flyout-DCcDBYKT.js +117 -0
- package/Flyout-DCcDBYKT.js.map +1 -0
- package/Flyout-fycujUVf.cjs +116 -0
- package/Flyout-fycujUVf.cjs.map +1 -0
- package/Gallery-ClBJxCMc.js +491 -0
- package/Gallery-ClBJxCMc.js.map +1 -0
- package/Gallery-Cn1Bj_ao.cjs +490 -0
- package/Gallery-Cn1Bj_ao.cjs.map +1 -0
- package/Icon-CUwK2c8z.js +108 -0
- package/Icon-CUwK2c8z.js.map +1 -0
- package/Icon-ChnAivGo.cjs +107 -0
- package/Icon-ChnAivGo.cjs.map +1 -0
- package/{Input-BL1NUIbr.js → Input-BibHlnGN.js} +6 -8
- package/Input-BibHlnGN.js.map +1 -0
- package/{Input-BcLJlPRo.cjs → Input-Bpjw7qwq.cjs} +6 -8
- package/Input-Bpjw7qwq.cjs.map +1 -0
- package/InputGroup-BZ7cmAcg.cjs +140 -0
- package/InputGroup-BZ7cmAcg.cjs.map +1 -0
- package/InputGroup-D5pXKGjZ.js +141 -0
- package/InputGroup-D5pXKGjZ.js.map +1 -0
- package/MenuButton-C4s8rG05.cjs +79 -0
- package/MenuButton-C4s8rG05.cjs.map +1 -0
- package/MenuButton-CZRN4P6x.js +80 -0
- package/MenuButton-CZRN4P6x.js.map +1 -0
- package/{RadioGroup-Dd0rHXSX.cjs → RadioGroup-DVvmmDs3.cjs} +3 -2
- package/RadioGroup-DVvmmDs3.cjs.map +1 -0
- package/{RadioGroup-bO-ahP9T.js → RadioGroup-cKCpag8W.js} +3 -2
- package/RadioGroup-cKCpag8W.js.map +1 -0
- package/{Select-BY5Y0qZ1.js → Select-BaY3zJhq.js} +4 -3
- package/Select-BaY3zJhq.js.map +1 -0
- package/{Select-CURrHSyl.cjs → Select-WpHNCHHz.cjs} +4 -3
- package/Select-WpHNCHHz.cjs.map +1 -0
- package/{Switch-CQFOopYy.cjs → Switch-B4ex7yKR.cjs} +3 -2
- package/Switch-B4ex7yKR.cjs.map +1 -0
- package/{Switch-D72dpkH2.js → Switch-CY1Dd2ff.js} +3 -2
- package/Switch-CY1Dd2ff.js.map +1 -0
- package/{Table-C4OM6rrC.cjs → Table-DaNgX7PO.cjs} +8 -11
- package/{Table-C4OM6rrC.cjs.map → Table-DaNgX7PO.cjs.map} +1 -1
- package/{Table-C2LbW0B1.js → Table-aNFAOuQk.js} +8 -11
- package/{Table-C2LbW0B1.js.map → Table-aNFAOuQk.js.map} +1 -1
- package/TimelineItem-0jRPFT11.js +68 -0
- package/TimelineItem-0jRPFT11.js.map +1 -0
- package/TimelineItem-BbhUWJhU.cjs +84 -0
- package/TimelineItem-BbhUWJhU.cjs.map +1 -0
- package/Tooltip-BB77JBcg.js +42 -0
- package/Tooltip-BB77JBcg.js.map +1 -0
- package/Tooltip-DpAsWGpN.cjs +41 -0
- package/Tooltip-DpAsWGpN.cjs.map +1 -0
- package/components/ActionMenu/ActionMenu.cjs +4 -104
- package/components/ActionMenu/ActionMenu.cjs.map +1 -1
- package/components/ActionMenu/ActionMenu.js +4 -104
- package/components/ActionMenu/ActionMenu.js.map +1 -1
- package/components/AppBar/AppBar.cjs +6 -126
- package/components/AppBar/AppBar.cjs.map +1 -1
- package/components/AppBar/AppBar.js +6 -126
- package/components/AppBar/AppBar.js.map +1 -1
- package/components/Autocomplete/Autocomplete.cjs +1 -1
- package/components/Autocomplete/Autocomplete.js +1 -1
- package/components/Avatar/Avatar.cjs +1 -1
- package/components/Avatar/Avatar.js +1 -1
- package/components/Checkbox/Checkbox.cjs +1 -1
- package/components/Checkbox/Checkbox.js +1 -1
- package/components/DatePicker/DatePicker.cjs +1 -1
- package/components/DatePicker/DatePicker.js +1 -1
- package/components/DateTimePicker/DateTimePicker.cjs +1 -1
- package/components/DateTimePicker/DateTimePicker.js +1 -1
- package/components/Drawer/Drawer.cjs +5 -269
- package/components/Drawer/Drawer.cjs.map +1 -1
- package/components/Drawer/Drawer.js +5 -269
- package/components/Drawer/Drawer.js.map +1 -1
- package/components/Flyout/Flyout.cjs +2 -114
- package/components/Flyout/Flyout.cjs.map +1 -1
- package/components/Flyout/Flyout.js +2 -114
- package/components/Flyout/Flyout.js.map +1 -1
- package/components/Gallery/Gallery.cjs +3 -489
- package/components/Gallery/Gallery.cjs.map +1 -1
- package/components/Gallery/Gallery.js +3 -489
- package/components/Gallery/Gallery.js.map +1 -1
- package/components/Icon/Icon.cjs +3 -106
- package/components/Icon/Icon.cjs.map +1 -1
- package/components/Icon/Icon.js +3 -106
- package/components/Icon/Icon.js.map +1 -1
- package/components/Input/Input.cjs +1 -1
- package/components/Input/Input.js +1 -1
- package/components/InputGroup/InputGroup.cjs +3 -137
- package/components/InputGroup/InputGroup.cjs.map +1 -1
- package/components/InputGroup/InputGroup.js +3 -137
- package/components/InputGroup/InputGroup.js.map +1 -1
- package/components/MenuButton/MenuButton.cjs +2 -75
- package/components/MenuButton/MenuButton.cjs.map +1 -1
- package/components/MenuButton/MenuButton.d.ts +6 -0
- package/components/MenuButton/MenuButton.js +2 -75
- package/components/MenuButton/MenuButton.js.map +1 -1
- package/components/RadioGroup/RadioGroup.cjs +1 -1
- package/components/RadioGroup/RadioGroup.js +1 -1
- package/components/Select/Select.cjs +1 -1
- package/components/Select/Select.js +1 -1
- package/components/Switch/Switch.cjs +1 -1
- package/components/Switch/Switch.js +1 -1
- package/components/Table/Table.cjs +1 -1
- package/components/Table/Table.js +1 -1
- package/components/Timeline/Timeline.cjs +4 -83
- package/components/Timeline/Timeline.cjs.map +1 -1
- package/components/Timeline/Timeline.js +4 -66
- package/components/Timeline/Timeline.js.map +1 -1
- package/components/Tooltip/Tooltip.cjs +2 -39
- package/components/Tooltip/Tooltip.cjs.map +1 -1
- package/components/Tooltip/Tooltip.js +2 -39
- package/components/Tooltip/Tooltip.js.map +1 -1
- package/{formField.sx-BAX7KwMR.cjs → formField.sx-BZj7TaMa.cjs} +29 -4
- package/formField.sx-BZj7TaMa.cjs.map +1 -0
- package/{formField.sx-8_QRnKxv.js → formField.sx-DD1sxwWH.js} +29 -4
- package/formField.sx-DD1sxwWH.js.map +1 -0
- package/index.cjs +36 -10
- package/index.cjs.map +1 -1
- package/index.d.ts +11 -0
- package/index.js +36 -10
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/styles.css +375 -0
- package/theme/tokens.d.ts +12 -2
- package/{tokens-jaWWNk39.cjs → tokens-BGPazVFO.cjs} +4 -2
- package/tokens-BGPazVFO.cjs.map +1 -0
- package/{tokens-BRrcP_p_.js → tokens-DE2fV3a9.js} +12 -10
- package/tokens-DE2fV3a9.js.map +1 -0
- package/Autocomplete-C_lW1VER.js.map +0 -1
- package/Autocomplete-CejWztBY.cjs.map +0 -1
- package/Avatar-Dw5rzayR.cjs.map +0 -1
- package/Avatar-H8akSege.js.map +0 -1
- package/Checkbox-BCqMFWt4.cjs.map +0 -1
- package/Checkbox-gB5YKkVo.js.map +0 -1
- package/DatePicker-_IGWc3I5.js.map +0 -1
- package/DatePicker-t7uDTZMl.cjs.map +0 -1
- package/DateTimePicker-BxQyjTCY.cjs.map +0 -1
- package/DateTimePicker-CrmWav_j.js.map +0 -1
- package/Input-BL1NUIbr.js.map +0 -1
- package/Input-BcLJlPRo.cjs.map +0 -1
- package/RadioGroup-Dd0rHXSX.cjs.map +0 -1
- package/RadioGroup-bO-ahP9T.js.map +0 -1
- package/Select-BY5Y0qZ1.js.map +0 -1
- package/Select-CURrHSyl.cjs.map +0 -1
- package/Switch-CQFOopYy.cjs.map +0 -1
- package/Switch-D72dpkH2.js.map +0 -1
- package/formField.sx-8_QRnKxv.js.map +0 -1
- package/formField.sx-BAX7KwMR.cjs.map +0 -1
- package/tokens-BRrcP_p_.js.map +0 -1
- package/tokens-jaWWNk39.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuButton.js","sources":[
|
|
1
|
+
{"version":3,"file":"MenuButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const RadioGroup = require("../../RadioGroup-
|
|
3
|
+
const RadioGroup = require("../../RadioGroup-DVvmmDs3.cjs");
|
|
4
4
|
exports.RadioGroup = RadioGroup.RadioGroup;
|
|
5
5
|
exports.default = RadioGroup.RadioGroup;
|
|
6
6
|
//# sourceMappingURL=RadioGroup.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Select = require("../../Select-
|
|
3
|
+
const Select = require("../../Select-WpHNCHHz.cjs");
|
|
4
4
|
exports.Option = Select.Option;
|
|
5
5
|
exports.Select = Select.Select;
|
|
6
6
|
exports.default = Select.Select;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Switch = require("../../Switch-
|
|
3
|
+
const Switch = require("../../Switch-B4ex7yKR.cjs");
|
|
4
4
|
exports.Switch = Switch.Switch;
|
|
5
5
|
exports.default = Switch.Switch;
|
|
6
6
|
//# sourceMappingURL=Switch.cjs.map
|
|
@@ -1,86 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
-
var __spreadValues = (a, b) => {
|
|
8
|
-
for (var prop in b || (b = {}))
|
|
9
|
-
if (__hasOwnProp.call(b, prop))
|
|
10
|
-
__defNormalProp(a, prop, b[prop]);
|
|
11
|
-
if (__getOwnPropSymbols)
|
|
12
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
-
if (__propIsEnum.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
}
|
|
16
|
-
return a;
|
|
17
|
-
};
|
|
18
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const MuiTimelineSeparator = require("@mui/lab/TimelineSeparator");
|
|
24
|
-
const MuiTimelineConnector = require("@mui/lab/TimelineConnector");
|
|
25
|
-
const MuiTimelineContent = require("@mui/lab/TimelineContent");
|
|
26
|
-
const MuiTimelineDot = require("@mui/lab/TimelineDot");
|
|
27
|
-
function _interopNamespaceDefault(e) {
|
|
28
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
29
|
-
if (e) {
|
|
30
|
-
for (const k in e) {
|
|
31
|
-
if (k !== "default") {
|
|
32
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
33
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: () => e[k]
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
n.default = e;
|
|
41
|
-
return Object.freeze(n);
|
|
42
|
-
}
|
|
43
|
-
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
44
|
-
const Timeline = ({ children, position = "right", sx }) => {
|
|
45
|
-
const count = React__namespace.Children.count(children);
|
|
46
|
-
const customSx = position === "left" || position === "right" ? __spreadValues({
|
|
47
|
-
[`& .${MuiTimelineItem.timelineItemClasses.root}:before`]: {
|
|
48
|
-
flex: 0,
|
|
49
|
-
padding: 0
|
|
50
|
-
}
|
|
51
|
-
}, sx) : sx;
|
|
52
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
-
MuiTimeline,
|
|
54
|
-
{
|
|
55
|
-
position,
|
|
56
|
-
sx: __spreadValues({}, customSx),
|
|
57
|
-
children: React__namespace.Children.map(
|
|
58
|
-
children,
|
|
59
|
-
(child, idx) => {
|
|
60
|
-
var _a;
|
|
61
|
-
return React__namespace.isValidElement(child) ? React__namespace.cloneElement(child, {
|
|
62
|
-
connectorColor: idx < count - 1 ? (_a = child.props.connectorColor) != null ? _a : "grey" : void 0
|
|
63
|
-
}) : null;
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
const TimelineItem = ({
|
|
70
|
-
dotColor = "grey",
|
|
71
|
-
connectorColor,
|
|
72
|
-
children
|
|
73
|
-
}) => {
|
|
74
|
-
const color = connectorColor ? `${connectorColor}.main` : "secondary.main";
|
|
75
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(MuiTimelineItem, { children: [
|
|
76
|
-
/* @__PURE__ */ jsxRuntime.jsxs(MuiTimelineSeparator, { children: [
|
|
77
|
-
/* @__PURE__ */ jsxRuntime.jsx(MuiTimelineDot, { color: dotColor }),
|
|
78
|
-
connectorColor !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(MuiTimelineConnector, { sx: { bgcolor: color } })
|
|
79
|
-
] }),
|
|
80
|
-
/* @__PURE__ */ jsxRuntime.jsx(MuiTimelineContent, { children })
|
|
81
|
-
] });
|
|
82
|
-
};
|
|
83
|
-
exports.Timeline = Timeline;
|
|
84
|
-
exports.TimelineItem = TimelineItem;
|
|
85
|
-
exports.default = Timeline;
|
|
3
|
+
const TimelineItem = require("../../TimelineItem-BbhUWJhU.cjs");
|
|
4
|
+
exports.Timeline = TimelineItem.Timeline;
|
|
5
|
+
exports.TimelineItem = TimelineItem.TimelineItem;
|
|
6
|
+
exports.default = TimelineItem.Timeline;
|
|
86
7
|
//# sourceMappingURL=Timeline.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"Timeline.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,69 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
-
import * as React from "react";
|
|
19
|
-
import MuiTimeline from "@mui/lab/Timeline";
|
|
20
|
-
import MuiTimelineItem, { timelineItemClasses } from "@mui/lab/TimelineItem";
|
|
21
|
-
import MuiTimelineSeparator from "@mui/lab/TimelineSeparator";
|
|
22
|
-
import MuiTimelineConnector from "@mui/lab/TimelineConnector";
|
|
23
|
-
import MuiTimelineContent from "@mui/lab/TimelineContent";
|
|
24
|
-
import MuiTimelineDot from "@mui/lab/TimelineDot";
|
|
25
|
-
const Timeline = ({ children, position = "right", sx }) => {
|
|
26
|
-
const count = React.Children.count(children);
|
|
27
|
-
const customSx = position === "left" || position === "right" ? __spreadValues({
|
|
28
|
-
[`& .${timelineItemClasses.root}:before`]: {
|
|
29
|
-
flex: 0,
|
|
30
|
-
padding: 0
|
|
31
|
-
}
|
|
32
|
-
}, sx) : sx;
|
|
33
|
-
return /* @__PURE__ */ jsx(
|
|
34
|
-
MuiTimeline,
|
|
35
|
-
{
|
|
36
|
-
position,
|
|
37
|
-
sx: __spreadValues({}, customSx),
|
|
38
|
-
children: React.Children.map(
|
|
39
|
-
children,
|
|
40
|
-
(child, idx) => {
|
|
41
|
-
var _a;
|
|
42
|
-
return React.isValidElement(child) ? React.cloneElement(child, {
|
|
43
|
-
connectorColor: idx < count - 1 ? (_a = child.props.connectorColor) != null ? _a : "grey" : void 0
|
|
44
|
-
}) : null;
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
};
|
|
50
|
-
const TimelineItem = ({
|
|
51
|
-
dotColor = "grey",
|
|
52
|
-
connectorColor,
|
|
53
|
-
children
|
|
54
|
-
}) => {
|
|
55
|
-
const color = connectorColor ? `${connectorColor}.main` : "secondary.main";
|
|
56
|
-
return /* @__PURE__ */ jsxs(MuiTimelineItem, { children: [
|
|
57
|
-
/* @__PURE__ */ jsxs(MuiTimelineSeparator, { children: [
|
|
58
|
-
/* @__PURE__ */ jsx(MuiTimelineDot, { color: dotColor }),
|
|
59
|
-
connectorColor !== void 0 && /* @__PURE__ */ jsx(MuiTimelineConnector, { sx: { bgcolor: color } })
|
|
60
|
-
] }),
|
|
61
|
-
/* @__PURE__ */ jsx(MuiTimelineContent, { children })
|
|
62
|
-
] });
|
|
63
|
-
};
|
|
1
|
+
import { T, a, T as T2 } from "../../TimelineItem-0jRPFT11.js";
|
|
64
2
|
export {
|
|
65
|
-
Timeline,
|
|
66
|
-
TimelineItem,
|
|
67
|
-
|
|
3
|
+
T as Timeline,
|
|
4
|
+
a as TimelineItem,
|
|
5
|
+
T2 as default
|
|
68
6
|
};
|
|
69
7
|
//# sourceMappingURL=Timeline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.js","sources":[
|
|
1
|
+
{"version":3,"file":"Timeline.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,42 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
if (__hasOwnProp.call(b, prop))
|
|
12
|
-
__defNormalProp(a, prop, b[prop]);
|
|
13
|
-
if (__getOwnPropSymbols)
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const Typography = require("@mui/material/Typography");
|
|
25
|
-
const Box = require("@mui/material/Box");
|
|
26
|
-
const Tooltip = ({ text, maxWidth, children, sx }) => {
|
|
27
|
-
const tooltipContentStyle = __spreadProps(__spreadValues({}, maxWidth && { maxWidth }), {
|
|
28
|
-
padding: "4px 8px",
|
|
29
|
-
textAlign: "center"
|
|
30
|
-
});
|
|
31
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32
|
-
MuiTooltip,
|
|
33
|
-
{
|
|
34
|
-
title: /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "caption", component: "span", sx: tooltipContentStyle, children: text }),
|
|
35
|
-
placement: "top",
|
|
36
|
-
arrow: true,
|
|
37
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", sx: __spreadValues({ display: "inline-block" }, sx), children })
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
exports.Tooltip = Tooltip;
|
|
3
|
+
const Tooltip = require("../../Tooltip-DpAsWGpN.cjs");
|
|
4
|
+
exports.Tooltip = Tooltip.Tooltip;
|
|
42
5
|
//# sourceMappingURL=Tooltip.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"Tooltip.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,42 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { jsx } from "react/jsx-runtime";
|
|
21
|
-
import MuiTooltip from "@mui/material/Tooltip";
|
|
22
|
-
import Typography from "@mui/material/Typography";
|
|
23
|
-
import Box from "@mui/material/Box";
|
|
24
|
-
const Tooltip = ({ text, maxWidth, children, sx }) => {
|
|
25
|
-
const tooltipContentStyle = __spreadProps(__spreadValues({}, maxWidth && { maxWidth }), {
|
|
26
|
-
padding: "4px 8px",
|
|
27
|
-
textAlign: "center"
|
|
28
|
-
});
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
-
MuiTooltip,
|
|
31
|
-
{
|
|
32
|
-
title: /* @__PURE__ */ jsx(Typography, { variant: "caption", component: "span", sx: tooltipContentStyle, children: text }),
|
|
33
|
-
placement: "top",
|
|
34
|
-
arrow: true,
|
|
35
|
-
children: /* @__PURE__ */ jsx(Box, { component: "span", sx: __spreadValues({ display: "inline-block" }, sx), children })
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
};
|
|
1
|
+
import { T } from "../../Tooltip-BB77JBcg.js";
|
|
39
2
|
export {
|
|
40
|
-
Tooltip
|
|
3
|
+
T as Tooltip
|
|
41
4
|
};
|
|
42
5
|
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sources":[
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -15,7 +17,8 @@ var __spreadValues = (a, b) => {
|
|
|
15
17
|
}
|
|
16
18
|
return a;
|
|
17
19
|
};
|
|
18
|
-
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
const tokens = require("./tokens-BGPazVFO.cjs");
|
|
19
22
|
const toRadius = (borderRadius) => typeof borderRadius === "number" ? `${borderRadius}px` : borderRadius;
|
|
20
23
|
const buildFormFieldSx = ({
|
|
21
24
|
borderRadius,
|
|
@@ -33,7 +36,7 @@ const buildFormFieldSx = ({
|
|
|
33
36
|
[outlinedRootSelector]: { borderRadius: radius }
|
|
34
37
|
}, extraFloatingSx != null ? extraFloatingSx : {});
|
|
35
38
|
}
|
|
36
|
-
return __spreadValues({
|
|
39
|
+
return __spreadValues(__spreadProps(__spreadValues({
|
|
37
40
|
marginTop: tokens.LABEL_MARGIN_TOP,
|
|
38
41
|
"& .MuiInputLabel-root": {
|
|
39
42
|
color: tokens.LABEL_COLOR_REST,
|
|
@@ -53,6 +56,28 @@ const buildFormFieldSx = ({
|
|
|
53
56
|
display: "flex",
|
|
54
57
|
alignItems: "center"
|
|
55
58
|
},
|
|
59
|
+
// Altura uniforme de TODOS los campos. El padding vertical del control
|
|
60
|
+
// interno se fija acá — no en cada componente — porque si un campo lo deja
|
|
61
|
+
// suelto hereda el que el theme del consumidor le ponga a SU clase
|
|
62
|
+
// (p.ej. soporte pone 11px a `.MuiOutlinedInput-input` y `.MuiSelect-select`)
|
|
63
|
+
// y en una misma fila de filtros el Select termina ~6px más alto que el
|
|
64
|
+
// Input. Un `sx` gana siempre a `styleOverrides`, así que fijarlo acá deja
|
|
65
|
+
// los cinco campos a la misma altura bajo cualquier theme.
|
|
66
|
+
"& .MuiInputBase-input": {
|
|
67
|
+
paddingTop: tokens.FIELD_INPUT_PADDING_Y,
|
|
68
|
+
paddingBottom: tokens.FIELD_INPUT_PADDING_Y
|
|
69
|
+
},
|
|
70
|
+
"& .MuiSelect-select": {
|
|
71
|
+
paddingTop: tokens.FIELD_INPUT_PADDING_Y,
|
|
72
|
+
paddingBottom: tokens.FIELD_INPUT_PADDING_Y,
|
|
73
|
+
minHeight: "auto"
|
|
74
|
+
}
|
|
75
|
+
}, includePickersApi ? {
|
|
76
|
+
"& .MuiPickersInputBase-sectionsContainer": {
|
|
77
|
+
paddingTop: tokens.FIELD_INPUT_PADDING_Y,
|
|
78
|
+
paddingBottom: tokens.FIELD_INPUT_PADDING_Y
|
|
79
|
+
}
|
|
80
|
+
} : {}), {
|
|
56
81
|
// El label flota afuera: ocultar legend del notch.
|
|
57
82
|
[notchedOutlineSelector]: {
|
|
58
83
|
top: 0,
|
|
@@ -61,7 +86,7 @@ const buildFormFieldSx = ({
|
|
|
61
86
|
"& .MuiFormHelperText-root": {
|
|
62
87
|
marginLeft: 0
|
|
63
88
|
}
|
|
64
|
-
}, extraOutsideSx != null ? extraOutsideSx : {});
|
|
89
|
+
}), extraOutsideSx != null ? extraOutsideSx : {});
|
|
65
90
|
};
|
|
66
91
|
exports.buildFormFieldSx = buildFormFieldSx;
|
|
67
|
-
//# sourceMappingURL=formField.sx-
|
|
92
|
+
//# sourceMappingURL=formField.sx-BZj7TaMa.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formField.sx-BZj7TaMa.cjs","sources":["../src/components/_shared/formField.sx.ts"],"sourcesContent":["import type { SxProps, Theme } from '@mui/material/styles';\n\nimport {\n FIELD_INPUT_PADDING_Y,\n LABEL_COLOR_FILLED,\n LABEL_COLOR_FOCUSED,\n LABEL_COLOR_REST,\n LABEL_FONT_WEIGHT_FILLED,\n LABEL_MARGIN_TOP,\n LABEL_SHRINK_TRANSFORM,\n LABEL_TRANSFORM_ORIGIN,\n LABEL_TRANSITION,\n} from '../../theme/tokens';\n\nexport type LabelPosition = 'outside' | 'floating';\n\nexport interface BuildFormFieldSxOptions {\n borderRadius: number | string;\n labelPosition: LabelPosition;\n /**\n * Si es `true`, los selectores incluyen también la API nueva de MUI X\n * Pickers (v8): `MuiPickersInputBase-root`, `MuiPickersOutlinedInput-*`.\n */\n includePickersApi?: boolean;\n /**\n * Selectores/valores extra que se mergean SOLO cuando labelPosition === 'outside'.\n * Usar para paddings específicos del componente (p.ej. MuiAutocomplete-input).\n */\n extraOutsideSx?: Record<string, any>;\n /**\n * Selectores/valores extra que se mergean SOLO cuando labelPosition === 'floating'.\n */\n extraFloatingSx?: Record<string, any>;\n}\n\nconst toRadius = (borderRadius: number | string) =>\n typeof borderRadius === 'number' ? `${borderRadius}px` : borderRadius;\n\n/**\n * Builder del sx compartido por todos los campos de formulario\n * (Input/Select/Autocomplete/DatePicker/DateTimePicker).\n *\n * Produce:\n * - en modo \"floating\": sólo el border-radius del outlined input;\n * - en modo \"outside\": todo el pack (margen superior, label flotante afuera,\n * input base, notched outline oculto, helper text sin margen izquierdo).\n *\n * Componentes con paddings o selectores propios pueden inyectarlos vía\n * `extraOutsideSx` / `extraFloatingSx`.\n */\nexport const buildFormFieldSx = ({\n borderRadius,\n labelPosition,\n includePickersApi = false,\n extraOutsideSx,\n extraFloatingSx,\n}: BuildFormFieldSxOptions): SxProps<Theme> => {\n const radius = toRadius(borderRadius);\n\n // ── Selectores (alternan según la API de pickers) ────────────────────\n const outlinedRootSelector = includePickersApi\n ? '& .MuiOutlinedInput-root, & .MuiPickersOutlinedInput-root'\n : '& .MuiOutlinedInput-root';\n\n const inputBaseSelector = includePickersApi\n ? '& .MuiInputBase-root, & .MuiPickersInputBase-root'\n : '& .MuiInputBase-root';\n\n const notchedOutlineSelector = includePickersApi\n ? '& .MuiOutlinedInput-notchedOutline, & .MuiPickersOutlinedInput-notchedOutline'\n : '& .MuiOutlinedInput-notchedOutline';\n\n // ── Floating ─────────────────────────────────────────────────────────\n if (labelPosition === 'floating') {\n return {\n [outlinedRootSelector]: { borderRadius: radius },\n ...(extraFloatingSx ?? {}),\n };\n }\n\n // ── Outside ──────────────────────────────────────────────────────────\n return {\n marginTop: LABEL_MARGIN_TOP,\n\n '& .MuiInputLabel-root': {\n color: LABEL_COLOR_REST,\n transition: LABEL_TRANSITION,\n\n // Estado shrunk (focused o con valor): flota ARRIBA del input.\n '&.MuiInputLabel-shrink': {\n transform: LABEL_SHRINK_TRANSFORM,\n transformOrigin: LABEL_TRANSFORM_ORIGIN,\n color: LABEL_COLOR_FILLED,\n fontWeight: LABEL_FONT_WEIGHT_FILLED,\n },\n\n '&.Mui-focused': { color: LABEL_COLOR_FOCUSED },\n },\n\n // Input base — centra verticalmente (clásico y, si aplica, pickers).\n [inputBaseSelector]: {\n borderRadius: radius,\n display: 'flex',\n alignItems: 'center',\n },\n\n // Altura uniforme de TODOS los campos. El padding vertical del control\n // interno se fija acá — no en cada componente — porque si un campo lo deja\n // suelto hereda el que el theme del consumidor le ponga a SU clase\n // (p.ej. soporte pone 11px a `.MuiOutlinedInput-input` y `.MuiSelect-select`)\n // y en una misma fila de filtros el Select termina ~6px más alto que el\n // Input. Un `sx` gana siempre a `styleOverrides`, así que fijarlo acá deja\n // los cinco campos a la misma altura bajo cualquier theme.\n '& .MuiInputBase-input': {\n paddingTop: FIELD_INPUT_PADDING_Y,\n paddingBottom: FIELD_INPUT_PADDING_Y,\n },\n\n '& .MuiSelect-select': {\n paddingTop: FIELD_INPUT_PADDING_Y,\n paddingBottom: FIELD_INPUT_PADDING_Y,\n minHeight: 'auto',\n },\n\n // Secciones editables del PickersTextField (DD/MM/YYYY en la API v8).\n ...(includePickersApi\n ? {\n '& .MuiPickersInputBase-sectionsContainer': {\n paddingTop: FIELD_INPUT_PADDING_Y,\n paddingBottom: FIELD_INPUT_PADDING_Y,\n },\n }\n : {}),\n\n // El label flota afuera: ocultar legend del notch.\n [notchedOutlineSelector]: {\n top: 0,\n '& legend': { display: 'none' },\n },\n\n '& .MuiFormHelperText-root': {\n marginLeft: 0,\n },\n\n ...(extraOutsideSx ?? {}),\n };\n};\n"],"names":["LABEL_MARGIN_TOP","LABEL_COLOR_REST","LABEL_TRANSITION","LABEL_SHRINK_TRANSFORM","LABEL_TRANSFORM_ORIGIN","LABEL_COLOR_FILLED","LABEL_FONT_WEIGHT_FILLED","LABEL_COLOR_FOCUSED","FIELD_INPUT_PADDING_Y"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAmCA,MAAM,WAAW,CAAC,iBAChB,OAAO,iBAAiB,WAAW,GAAG,YAAY,OAAO;AAcpD,MAAM,mBAAmB,CAAC;AAAA,EAC/B;AAAA,EACA;AAAA,EACA,oBAAoB;AAAA,EACpB;AAAA,EACA;AACF,MAA+C;AAC7C,QAAM,SAAS,SAAS,YAAY;AAGpC,QAAM,uBAAuB,oBACzB,8DACA;AAEJ,QAAM,oBAAoB,oBACtB,sDACA;AAEJ,QAAM,yBAAyB,oBAC3B,kFACA;AAGJ,MAAI,kBAAkB,YAAY;AAChC,WAAO;AAAA,MACL,CAAC,oBAAoB,GAAG,EAAE,cAAc,OAAA;AAAA,OACpC,4CAAmB,CAAA;AAAA,EAE3B;AAGA,SAAO;AAAA,IACL,WAAWA,OAAAA;AAAAA,IAEX,yBAAyB;AAAA,MACvB,OAAOC,OAAAA;AAAAA,MACP,YAAYC,OAAAA;AAAAA;AAAAA,MAGZ,0BAA0B;AAAA,QACxB,WAAWC,OAAAA;AAAAA,QACX,iBAAiBC,OAAAA;AAAAA,QACjB,OAAOC,OAAAA;AAAAA,QACP,YAAYC,OAAAA;AAAAA,MAAA;AAAA,MAGd,iBAAiB,EAAE,OAAOC,OAAAA,oBAAA;AAAA,IAAoB;AAAA;AAAA,IAIhD,CAAC,iBAAiB,GAAG;AAAA,MACnB,cAAc;AAAA,MACd,SAAS;AAAA,MACT,YAAY;AAAA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUd,yBAAyB;AAAA,MACvB,YAAYC,OAAAA;AAAAA,MACZ,eAAeA,OAAAA;AAAAA,IAAA;AAAA,IAGjB,uBAAuB;AAAA,MACrB,YAAYA,OAAAA;AAAAA,MACZ,eAAeA,OAAAA;AAAAA,MACf,WAAW;AAAA,IAAA;AAAA,KAIT,oBACA;AAAA,IACE,4CAA4C;AAAA,MAC1C,YAAYA,OAAAA;AAAAA,MACZ,eAAeA,OAAAA;AAAAA,IAAA;AAAA,EACjB,IAEF,CAAA,IAnDC;AAAA;AAAA,IAsDL,CAAC,sBAAsB,GAAG;AAAA,MACxB,KAAK;AAAA,MACL,YAAY,EAAE,SAAS,OAAA;AAAA,IAAO;AAAA,IAGhC,6BAA6B;AAAA,MAC3B,YAAY;AAAA,IAAA;AAAA,MAGV,0CAAkB,CAAA;AAE1B;;"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,7 +16,8 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
17
|
-
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { a as FIELD_INPUT_PADDING_Y, b as LABEL_COLOR_FOCUSED, c as LABEL_FONT_WEIGHT_FILLED, d as LABEL_COLOR_FILLED, e as LABEL_TRANSFORM_ORIGIN, f as LABEL_SHRINK_TRANSFORM, g as LABEL_TRANSITION, h as LABEL_COLOR_REST, L as LABEL_MARGIN_TOP } from "./tokens-DE2fV3a9.js";
|
|
18
21
|
const toRadius = (borderRadius) => typeof borderRadius === "number" ? `${borderRadius}px` : borderRadius;
|
|
19
22
|
const buildFormFieldSx = ({
|
|
20
23
|
borderRadius,
|
|
@@ -32,7 +35,7 @@ const buildFormFieldSx = ({
|
|
|
32
35
|
[outlinedRootSelector]: { borderRadius: radius }
|
|
33
36
|
}, extraFloatingSx != null ? extraFloatingSx : {});
|
|
34
37
|
}
|
|
35
|
-
return __spreadValues({
|
|
38
|
+
return __spreadValues(__spreadProps(__spreadValues({
|
|
36
39
|
marginTop: LABEL_MARGIN_TOP,
|
|
37
40
|
"& .MuiInputLabel-root": {
|
|
38
41
|
color: LABEL_COLOR_REST,
|
|
@@ -52,6 +55,28 @@ const buildFormFieldSx = ({
|
|
|
52
55
|
display: "flex",
|
|
53
56
|
alignItems: "center"
|
|
54
57
|
},
|
|
58
|
+
// Altura uniforme de TODOS los campos. El padding vertical del control
|
|
59
|
+
// interno se fija acá — no en cada componente — porque si un campo lo deja
|
|
60
|
+
// suelto hereda el que el theme del consumidor le ponga a SU clase
|
|
61
|
+
// (p.ej. soporte pone 11px a `.MuiOutlinedInput-input` y `.MuiSelect-select`)
|
|
62
|
+
// y en una misma fila de filtros el Select termina ~6px más alto que el
|
|
63
|
+
// Input. Un `sx` gana siempre a `styleOverrides`, así que fijarlo acá deja
|
|
64
|
+
// los cinco campos a la misma altura bajo cualquier theme.
|
|
65
|
+
"& .MuiInputBase-input": {
|
|
66
|
+
paddingTop: FIELD_INPUT_PADDING_Y,
|
|
67
|
+
paddingBottom: FIELD_INPUT_PADDING_Y
|
|
68
|
+
},
|
|
69
|
+
"& .MuiSelect-select": {
|
|
70
|
+
paddingTop: FIELD_INPUT_PADDING_Y,
|
|
71
|
+
paddingBottom: FIELD_INPUT_PADDING_Y,
|
|
72
|
+
minHeight: "auto"
|
|
73
|
+
}
|
|
74
|
+
}, includePickersApi ? {
|
|
75
|
+
"& .MuiPickersInputBase-sectionsContainer": {
|
|
76
|
+
paddingTop: FIELD_INPUT_PADDING_Y,
|
|
77
|
+
paddingBottom: FIELD_INPUT_PADDING_Y
|
|
78
|
+
}
|
|
79
|
+
} : {}), {
|
|
55
80
|
// El label flota afuera: ocultar legend del notch.
|
|
56
81
|
[notchedOutlineSelector]: {
|
|
57
82
|
top: 0,
|
|
@@ -60,9 +85,9 @@ const buildFormFieldSx = ({
|
|
|
60
85
|
"& .MuiFormHelperText-root": {
|
|
61
86
|
marginLeft: 0
|
|
62
87
|
}
|
|
63
|
-
}, extraOutsideSx != null ? extraOutsideSx : {});
|
|
88
|
+
}), extraOutsideSx != null ? extraOutsideSx : {});
|
|
64
89
|
};
|
|
65
90
|
export {
|
|
66
91
|
buildFormFieldSx as b
|
|
67
92
|
};
|
|
68
|
-
//# sourceMappingURL=formField.sx-
|
|
93
|
+
//# sourceMappingURL=formField.sx-DD1sxwWH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formField.sx-DD1sxwWH.js","sources":["../src/components/_shared/formField.sx.ts"],"sourcesContent":["import type { SxProps, Theme } from '@mui/material/styles';\n\nimport {\n FIELD_INPUT_PADDING_Y,\n LABEL_COLOR_FILLED,\n LABEL_COLOR_FOCUSED,\n LABEL_COLOR_REST,\n LABEL_FONT_WEIGHT_FILLED,\n LABEL_MARGIN_TOP,\n LABEL_SHRINK_TRANSFORM,\n LABEL_TRANSFORM_ORIGIN,\n LABEL_TRANSITION,\n} from '../../theme/tokens';\n\nexport type LabelPosition = 'outside' | 'floating';\n\nexport interface BuildFormFieldSxOptions {\n borderRadius: number | string;\n labelPosition: LabelPosition;\n /**\n * Si es `true`, los selectores incluyen también la API nueva de MUI X\n * Pickers (v8): `MuiPickersInputBase-root`, `MuiPickersOutlinedInput-*`.\n */\n includePickersApi?: boolean;\n /**\n * Selectores/valores extra que se mergean SOLO cuando labelPosition === 'outside'.\n * Usar para paddings específicos del componente (p.ej. MuiAutocomplete-input).\n */\n extraOutsideSx?: Record<string, any>;\n /**\n * Selectores/valores extra que se mergean SOLO cuando labelPosition === 'floating'.\n */\n extraFloatingSx?: Record<string, any>;\n}\n\nconst toRadius = (borderRadius: number | string) =>\n typeof borderRadius === 'number' ? `${borderRadius}px` : borderRadius;\n\n/**\n * Builder del sx compartido por todos los campos de formulario\n * (Input/Select/Autocomplete/DatePicker/DateTimePicker).\n *\n * Produce:\n * - en modo \"floating\": sólo el border-radius del outlined input;\n * - en modo \"outside\": todo el pack (margen superior, label flotante afuera,\n * input base, notched outline oculto, helper text sin margen izquierdo).\n *\n * Componentes con paddings o selectores propios pueden inyectarlos vía\n * `extraOutsideSx` / `extraFloatingSx`.\n */\nexport const buildFormFieldSx = ({\n borderRadius,\n labelPosition,\n includePickersApi = false,\n extraOutsideSx,\n extraFloatingSx,\n}: BuildFormFieldSxOptions): SxProps<Theme> => {\n const radius = toRadius(borderRadius);\n\n // ── Selectores (alternan según la API de pickers) ────────────────────\n const outlinedRootSelector = includePickersApi\n ? '& .MuiOutlinedInput-root, & .MuiPickersOutlinedInput-root'\n : '& .MuiOutlinedInput-root';\n\n const inputBaseSelector = includePickersApi\n ? '& .MuiInputBase-root, & .MuiPickersInputBase-root'\n : '& .MuiInputBase-root';\n\n const notchedOutlineSelector = includePickersApi\n ? '& .MuiOutlinedInput-notchedOutline, & .MuiPickersOutlinedInput-notchedOutline'\n : '& .MuiOutlinedInput-notchedOutline';\n\n // ── Floating ─────────────────────────────────────────────────────────\n if (labelPosition === 'floating') {\n return {\n [outlinedRootSelector]: { borderRadius: radius },\n ...(extraFloatingSx ?? {}),\n };\n }\n\n // ── Outside ──────────────────────────────────────────────────────────\n return {\n marginTop: LABEL_MARGIN_TOP,\n\n '& .MuiInputLabel-root': {\n color: LABEL_COLOR_REST,\n transition: LABEL_TRANSITION,\n\n // Estado shrunk (focused o con valor): flota ARRIBA del input.\n '&.MuiInputLabel-shrink': {\n transform: LABEL_SHRINK_TRANSFORM,\n transformOrigin: LABEL_TRANSFORM_ORIGIN,\n color: LABEL_COLOR_FILLED,\n fontWeight: LABEL_FONT_WEIGHT_FILLED,\n },\n\n '&.Mui-focused': { color: LABEL_COLOR_FOCUSED },\n },\n\n // Input base — centra verticalmente (clásico y, si aplica, pickers).\n [inputBaseSelector]: {\n borderRadius: radius,\n display: 'flex',\n alignItems: 'center',\n },\n\n // Altura uniforme de TODOS los campos. El padding vertical del control\n // interno se fija acá — no en cada componente — porque si un campo lo deja\n // suelto hereda el que el theme del consumidor le ponga a SU clase\n // (p.ej. soporte pone 11px a `.MuiOutlinedInput-input` y `.MuiSelect-select`)\n // y en una misma fila de filtros el Select termina ~6px más alto que el\n // Input. Un `sx` gana siempre a `styleOverrides`, así que fijarlo acá deja\n // los cinco campos a la misma altura bajo cualquier theme.\n '& .MuiInputBase-input': {\n paddingTop: FIELD_INPUT_PADDING_Y,\n paddingBottom: FIELD_INPUT_PADDING_Y,\n },\n\n '& .MuiSelect-select': {\n paddingTop: FIELD_INPUT_PADDING_Y,\n paddingBottom: FIELD_INPUT_PADDING_Y,\n minHeight: 'auto',\n },\n\n // Secciones editables del PickersTextField (DD/MM/YYYY en la API v8).\n ...(includePickersApi\n ? {\n '& .MuiPickersInputBase-sectionsContainer': {\n paddingTop: FIELD_INPUT_PADDING_Y,\n paddingBottom: FIELD_INPUT_PADDING_Y,\n },\n }\n : {}),\n\n // El label flota afuera: ocultar legend del notch.\n [notchedOutlineSelector]: {\n top: 0,\n '& legend': { display: 'none' },\n },\n\n '& .MuiFormHelperText-root': {\n marginLeft: 0,\n },\n\n ...(extraOutsideSx ?? {}),\n };\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAmCA,MAAM,WAAW,CAAC,iBAChB,OAAO,iBAAiB,WAAW,GAAG,YAAY,OAAO;AAcpD,MAAM,mBAAmB,CAAC;AAAA,EAC/B;AAAA,EACA;AAAA,EACA,oBAAoB;AAAA,EACpB;AAAA,EACA;AACF,MAA+C;AAC7C,QAAM,SAAS,SAAS,YAAY;AAGpC,QAAM,uBAAuB,oBACzB,8DACA;AAEJ,QAAM,oBAAoB,oBACtB,sDACA;AAEJ,QAAM,yBAAyB,oBAC3B,kFACA;AAGJ,MAAI,kBAAkB,YAAY;AAChC,WAAO;AAAA,MACL,CAAC,oBAAoB,GAAG,EAAE,cAAc,OAAA;AAAA,OACpC,4CAAmB,CAAA;AAAA,EAE3B;AAGA,SAAO;AAAA,IACL,WAAW;AAAA,IAEX,yBAAyB;AAAA,MACvB,OAAO;AAAA,MACP,YAAY;AAAA;AAAA,MAGZ,0BAA0B;AAAA,QACxB,WAAW;AAAA,QACX,iBAAiB;AAAA,QACjB,OAAO;AAAA,QACP,YAAY;AAAA,MAAA;AAAA,MAGd,iBAAiB,EAAE,OAAO,oBAAA;AAAA,IAAoB;AAAA;AAAA,IAIhD,CAAC,iBAAiB,GAAG;AAAA,MACnB,cAAc;AAAA,MACd,SAAS;AAAA,MACT,YAAY;AAAA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUd,yBAAyB;AAAA,MACvB,YAAY;AAAA,MACZ,eAAe;AAAA,IAAA;AAAA,IAGjB,uBAAuB;AAAA,MACrB,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,WAAW;AAAA,IAAA;AAAA,KAIT,oBACA;AAAA,IACE,4CAA4C;AAAA,MAC1C,YAAY;AAAA,MACZ,eAAe;AAAA,IAAA;AAAA,EACjB,IAEF,CAAA,IAnDC;AAAA;AAAA,IAsDL,CAAC,sBAAsB,GAAG;AAAA,MACxB,KAAK;AAAA,MACL,YAAY,EAAE,SAAS,OAAA;AAAA,IAAO;AAAA,IAGhC,6BAA6B;AAAA,MAC3B,YAAY;AAAA,IAAA;AAAA,MAGV,0CAAkB,CAAA;AAE1B;"}
|
package/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const Button = require("./Button-C17mExpd.cjs");
|
|
|
7
7
|
const Card = require("./Card-Dr1-ATRY.cjs");
|
|
8
8
|
const Chip = require("./Chip-qoJLDiva.cjs");
|
|
9
9
|
const components_Column = require("./components/Column/Column.cjs");
|
|
10
|
-
const Avatar = require("./Avatar-
|
|
10
|
+
const Avatar = require("./Avatar-BjyfSNvP.cjs");
|
|
11
11
|
const Stat = require("./Stat-BUcFCGrz.cjs");
|
|
12
12
|
const Spinner = require("./Spinner-D7qRmNS9.cjs");
|
|
13
13
|
const Alert = require("./Alert-B3SMPD1s.cjs");
|
|
@@ -16,17 +16,27 @@ const ButtonGroup = require("./ButtonGroup-CNunDofQ.cjs");
|
|
|
16
16
|
const Breadcrumbs = require("./Breadcrumbs-B9I3vxPb.cjs");
|
|
17
17
|
const Step = require("./Step-Nd7SJbRZ.cjs");
|
|
18
18
|
const Tab = require("./Tab-D1S7kxXI.cjs");
|
|
19
|
-
const Table = require("./Table-
|
|
19
|
+
const Table = require("./Table-DaNgX7PO.cjs");
|
|
20
20
|
const StatusMessage = require("./StatusMessage-B3nXpuRl.cjs");
|
|
21
21
|
const Modal = require("./Modal-D_6ZdSzw.cjs");
|
|
22
|
-
const Input = require("./Input-
|
|
23
|
-
const Select = require("./Select-
|
|
24
|
-
const Autocomplete = require("./Autocomplete-
|
|
25
|
-
const Switch = require("./Switch-
|
|
26
|
-
const RadioGroup = require("./RadioGroup-
|
|
27
|
-
const Checkbox = require("./Checkbox-
|
|
28
|
-
const DatePicker = require("./DatePicker-
|
|
29
|
-
const DateTimePicker = require("./DateTimePicker-
|
|
22
|
+
const Input = require("./Input-Bpjw7qwq.cjs");
|
|
23
|
+
const Select = require("./Select-WpHNCHHz.cjs");
|
|
24
|
+
const Autocomplete = require("./Autocomplete-Bd3bN4Cw.cjs");
|
|
25
|
+
const Switch = require("./Switch-B4ex7yKR.cjs");
|
|
26
|
+
const RadioGroup = require("./RadioGroup-DVvmmDs3.cjs");
|
|
27
|
+
const Checkbox = require("./Checkbox-Bx4Asmg7.cjs");
|
|
28
|
+
const DatePicker = require("./DatePicker-CMcQddi1.cjs");
|
|
29
|
+
const DateTimePicker = require("./DateTimePicker-BVJGq1A0.cjs");
|
|
30
|
+
const InputGroup = require("./InputGroup-BZ7cmAcg.cjs");
|
|
31
|
+
const ActionMenu = require("./ActionMenu-wNWkDZWh.cjs");
|
|
32
|
+
const AppBarMenuToggle = require("./AppBarMenuToggle-D_RJGtHO.cjs");
|
|
33
|
+
const DrawerItem = require("./DrawerItem-DlnG_NdY.cjs");
|
|
34
|
+
const Flyout = require("./Flyout-fycujUVf.cjs");
|
|
35
|
+
const Gallery = require("./Gallery-Cn1Bj_ao.cjs");
|
|
36
|
+
const Icon = require("./Icon-ChnAivGo.cjs");
|
|
37
|
+
const MenuButton = require("./MenuButton-C4s8rG05.cjs");
|
|
38
|
+
const TimelineItem = require("./TimelineItem-BbhUWJhU.cjs");
|
|
39
|
+
const Tooltip = require("./Tooltip-DpAsWGpN.cjs");
|
|
30
40
|
function scrollToTop({
|
|
31
41
|
behavior = "smooth",
|
|
32
42
|
target = typeof window !== "undefined" ? window : void 0,
|
|
@@ -188,5 +198,21 @@ exports.RadioGroup = RadioGroup.RadioGroup;
|
|
|
188
198
|
exports.Checkbox = Checkbox.Checkbox;
|
|
189
199
|
exports.DatePicker = DatePicker.DatePicker;
|
|
190
200
|
exports.DateTimePicker = DateTimePicker.DateTimePicker;
|
|
201
|
+
exports.InputGroup = InputGroup.InputGroup;
|
|
202
|
+
exports.ActionMenu = ActionMenu.ActionMenu;
|
|
203
|
+
exports.ActionMenuItem = ActionMenu.ActionMenuItem;
|
|
204
|
+
exports.AppBar = AppBarMenuToggle.AppBar;
|
|
205
|
+
exports.AppBarMenuToggle = AppBarMenuToggle.AppBarMenuToggle;
|
|
206
|
+
exports.useAppBarContext = AppBarMenuToggle.useAppBarContext;
|
|
207
|
+
exports.Drawer = DrawerItem.Drawer;
|
|
208
|
+
exports.DrawerItem = DrawerItem.DrawerItem;
|
|
209
|
+
exports.useDrawerContext = DrawerItem.useDrawerContext;
|
|
210
|
+
exports.Flyout = Flyout.Flyout;
|
|
211
|
+
exports.Gallery = Gallery.Gallery;
|
|
212
|
+
exports.Icon = Icon.Icon;
|
|
213
|
+
exports.MenuButton = MenuButton.MenuButton;
|
|
214
|
+
exports.Timeline = TimelineItem.Timeline;
|
|
215
|
+
exports.TimelineItem = TimelineItem.TimelineItem;
|
|
216
|
+
exports.Tooltip = Tooltip.Tooltip;
|
|
191
217
|
exports.scrollToTop = scrollToTop;
|
|
192
218
|
//# sourceMappingURL=index.cjs.map
|
package/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/utils/scrollToTop.ts"],"sourcesContent":["export interface ScrollToTopOptions {\n /** Comportamiento del scroll. Default: `'smooth'`. */\n behavior?: ScrollBehavior;\n /**\n * Elemento target del scroll. Default: `window`. Útil cuando el contenedor\n * scrolleable NO es `window` (p.ej. un `<Box>` con `overflow: auto`).\n */\n target?: Window | HTMLElement;\n /** Offset desde el top. Default: `0`. */\n top?: number;\n}\n\n/**\n * Hace scroll al tope (por default con animación suave). Safe en SSR — si\n * `window` no existe, es un no-op.\n *\n * Llamar tras mutaciones / cambios de filtros / apertura de modales para\n * asegurar que el usuario vea el mensaje de confirmación en la parte\n * superior de la página.\n *\n * ```ts\n * import { scrollToTop } from '@soyfri/shared-library';\n *\n * scrollToTop(); // window, smooth\n * scrollToTop({ behavior: 'auto' }); // window, instantáneo\n * scrollToTop({ target: myScrollableRef.current }); // container custom\n * ```\n */\nexport function scrollToTop({\n behavior = 'smooth',\n target = typeof window !== 'undefined' ? window : undefined,\n top = 0,\n}: ScrollToTopOptions = {}): void {\n if (!target) return;\n target.scrollTo({ top, left: 0, behavior });\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/utils/scrollToTop.ts"],"sourcesContent":["export interface ScrollToTopOptions {\n /** Comportamiento del scroll. Default: `'smooth'`. */\n behavior?: ScrollBehavior;\n /**\n * Elemento target del scroll. Default: `window`. Útil cuando el contenedor\n * scrolleable NO es `window` (p.ej. un `<Box>` con `overflow: auto`).\n */\n target?: Window | HTMLElement;\n /** Offset desde el top. Default: `0`. */\n top?: number;\n}\n\n/**\n * Hace scroll al tope (por default con animación suave). Safe en SSR — si\n * `window` no existe, es un no-op.\n *\n * Llamar tras mutaciones / cambios de filtros / apertura de modales para\n * asegurar que el usuario vea el mensaje de confirmación en la parte\n * superior de la página.\n *\n * ```ts\n * import { scrollToTop } from '@soyfri/shared-library';\n *\n * scrollToTop(); // window, smooth\n * scrollToTop({ behavior: 'auto' }); // window, instantáneo\n * scrollToTop({ target: myScrollableRef.current }); // container custom\n * ```\n */\nexport function scrollToTop({\n behavior = 'smooth',\n target = typeof window !== 'undefined' ? window : undefined,\n top = 0,\n}: ScrollToTopOptions = {}): void {\n if (!target) return;\n target.scrollTo({ top, left: 0, behavior });\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BO,SAAS,YAAY;AAAA,EAC1B,WAAW;AAAA,EACX,SAAS,OAAO,WAAW,cAAc,SAAS;AAAA,EAClD,MAAM;AACR,IAAwB,IAAU;AAChC,MAAI,CAAC,OAAQ;AACb,SAAO,SAAS,EAAE,KAAK,MAAM,GAAG,UAAU;AAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|