@soyfri/shared-library 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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--OTb3X9v.cjs +270 -0
- package/DrawerItem--OTb3X9v.cjs.map +1 -0
- package/DrawerItem-DKlMQ-xs.js +271 -0
- package/DrawerItem-DKlMQ-xs.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-DP_fKl38.js → Input-BibHlnGN.js} +18 -11
- package/Input-BibHlnGN.js.map +1 -0
- package/{Input-CScC87J5.cjs → Input-Bpjw7qwq.cjs} +18 -11
- 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/README.md +0 -8
- 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.d.ts +4 -0
- package/components/Input/Input.helpers.d.ts +2 -2
- 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-CScC87J5.cjs.map +0 -1
- package/Input-DP_fKl38.js.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
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--OTb3X9v.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -43,3 +43,14 @@ export { DatePicker } from './components/DatePicker';
|
|
|
43
43
|
export type { DatePickerProps } from './components/DatePicker';
|
|
44
44
|
export { DateTimePicker } from './components/DateTimePicker';
|
|
45
45
|
export type { DateTimePickerProps } from './components/DateTimePicker';
|
|
46
|
+
export { InputGroup } from './components/InputGroup';
|
|
47
|
+
export type { InputGroupProps } from './components/InputGroup';
|
|
48
|
+
export { ActionMenu, ActionMenuItem } from './components/ActionMenu';
|
|
49
|
+
export { AppBar, AppBarMenuToggle, useAppBarContext } from './components/AppBar';
|
|
50
|
+
export { Drawer, DrawerItem, useDrawerContext } from './components/Drawer';
|
|
51
|
+
export { Flyout } from './components/Flyout';
|
|
52
|
+
export { Gallery } from './components/Gallery';
|
|
53
|
+
export { Icon } from './components/Icon';
|
|
54
|
+
export { MenuButton } from './components/MenuButton';
|
|
55
|
+
export { Timeline, TimelineItem } from './components/Timeline';
|
|
56
|
+
export { Tooltip } from './components/Tooltip';
|
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { B } from "./Button-UkkP-bNw.js";
|
|
|
5
5
|
import { C } from "./Card-DYKGY-NG.js";
|
|
6
6
|
import { C as C2 } from "./Chip-OPYQ1uQ_.js";
|
|
7
7
|
import { Column } from "./components/Column/Column.js";
|
|
8
|
-
import { A } from "./Avatar-
|
|
8
|
+
import { A } from "./Avatar-C_C4bcb9.js";
|
|
9
9
|
import { S } from "./Stat-C06A_izS.js";
|
|
10
10
|
import { S as S2 } from "./Spinner-B6sThC1p.js";
|
|
11
11
|
import { A as A2 } from "./Alert-YsPScpSE.js";
|
|
@@ -14,17 +14,27 @@ import { B as B2 } from "./ButtonGroup-CcKUZ-lT.js";
|
|
|
14
14
|
import { B as B3 } from "./Breadcrumbs-C41SPbtX.js";
|
|
15
15
|
import { a, S as S3 } from "./Step-BArsou1V.js";
|
|
16
16
|
import { a as a2, T } from "./Tab-DycIMXmQ.js";
|
|
17
|
-
import { T as T2 } from "./Table-
|
|
17
|
+
import { T as T2 } from "./Table-aNFAOuQk.js";
|
|
18
18
|
import { S as S4 } from "./StatusMessage-D0WgSBx7.js";
|
|
19
19
|
import { M, b, c, a as a3 } from "./Modal-C_QY7ZzY.js";
|
|
20
|
-
import { I } from "./Input-
|
|
21
|
-
import { O, S as S5 } from "./Select-
|
|
22
|
-
import { A as A3, a as a4 } from "./Autocomplete-
|
|
23
|
-
import { S as S6 } from "./Switch-
|
|
24
|
-
import { R } from "./RadioGroup-
|
|
25
|
-
import { C as C3 } from "./Checkbox-
|
|
26
|
-
import { D as D3 } from "./DatePicker-
|
|
27
|
-
import { D as D4 } from "./DateTimePicker-
|
|
20
|
+
import { I } from "./Input-BibHlnGN.js";
|
|
21
|
+
import { O, S as S5 } from "./Select-BaY3zJhq.js";
|
|
22
|
+
import { A as A3, a as a4 } from "./Autocomplete-E5aSUGVK.js";
|
|
23
|
+
import { S as S6 } from "./Switch-CY1Dd2ff.js";
|
|
24
|
+
import { R } from "./RadioGroup-cKCpag8W.js";
|
|
25
|
+
import { C as C3 } from "./Checkbox-BL4kvHFB.js";
|
|
26
|
+
import { D as D3 } from "./DatePicker-D__RSgs-.js";
|
|
27
|
+
import { D as D4 } from "./DateTimePicker-LeaE716a.js";
|
|
28
|
+
import { I as I2 } from "./InputGroup-D5pXKGjZ.js";
|
|
29
|
+
import { A as A4, a as a5 } from "./ActionMenu-BXRVKopM.js";
|
|
30
|
+
import { A as A5, a as a6, u } from "./AppBarMenuToggle-BpXBMeca.js";
|
|
31
|
+
import { D as D5, a as a7, u as u2 } from "./DrawerItem-DKlMQ-xs.js";
|
|
32
|
+
import { F } from "./Flyout-DCcDBYKT.js";
|
|
33
|
+
import { G } from "./Gallery-ClBJxCMc.js";
|
|
34
|
+
import { I as I3 } from "./Icon-CUwK2c8z.js";
|
|
35
|
+
import { M as M2 } from "./MenuButton-CZRN4P6x.js";
|
|
36
|
+
import { T as T3, a as a8 } from "./TimelineItem-0jRPFT11.js";
|
|
37
|
+
import { T as T4 } from "./Tooltip-BB77JBcg.js";
|
|
28
38
|
import './index.css';function scrollToTop({
|
|
29
39
|
behavior = "smooth",
|
|
30
40
|
target = typeof window !== "undefined" ? window : void 0,
|
|
@@ -34,8 +44,12 @@ import './index.css';function scrollToTop({
|
|
|
34
44
|
target.scrollTo({ top, left: 0, behavior });
|
|
35
45
|
}
|
|
36
46
|
export {
|
|
47
|
+
A4 as ActionMenu,
|
|
48
|
+
a5 as ActionMenuItem,
|
|
37
49
|
A2 as Alert,
|
|
38
50
|
AlertTitle,
|
|
51
|
+
A5 as AppBar,
|
|
52
|
+
a6 as AppBarMenuToggle,
|
|
39
53
|
A3 as Autocomplete,
|
|
40
54
|
a4 as AutocompleteSelect,
|
|
41
55
|
A as Avatar,
|
|
@@ -55,10 +69,16 @@ export {
|
|
|
55
69
|
D3 as DatePicker,
|
|
56
70
|
D4 as DateTimePicker,
|
|
57
71
|
D2 as Divider,
|
|
72
|
+
D5 as Drawer,
|
|
73
|
+
a7 as DrawerItem,
|
|
58
74
|
Fade,
|
|
75
|
+
F as Flyout,
|
|
76
|
+
G as Gallery,
|
|
59
77
|
Grid,
|
|
60
78
|
Grow,
|
|
79
|
+
I3 as Icon,
|
|
61
80
|
I as Input,
|
|
81
|
+
I2 as InputGroup,
|
|
62
82
|
LinearProgress,
|
|
63
83
|
Link,
|
|
64
84
|
List,
|
|
@@ -67,6 +87,7 @@ export {
|
|
|
67
87
|
ListItemIcon,
|
|
68
88
|
ListItemText,
|
|
69
89
|
ListSubheader,
|
|
90
|
+
M2 as MenuButton,
|
|
70
91
|
M as Modal,
|
|
71
92
|
b as ModalBody,
|
|
72
93
|
c as ModalFooter,
|
|
@@ -88,6 +109,9 @@ export {
|
|
|
88
109
|
T2 as Table,
|
|
89
110
|
T as Tabs,
|
|
90
111
|
ThemeProvider,
|
|
112
|
+
T3 as Timeline,
|
|
113
|
+
a8 as TimelineItem,
|
|
114
|
+
T4 as Tooltip,
|
|
91
115
|
Typography,
|
|
92
116
|
Zoom,
|
|
93
117
|
alpha,
|
|
@@ -96,6 +120,8 @@ export {
|
|
|
96
120
|
r as resolvePreset,
|
|
97
121
|
scrollToTop,
|
|
98
122
|
styled,
|
|
123
|
+
u as useAppBarContext,
|
|
124
|
+
u2 as useDrawerContext,
|
|
99
125
|
useMediaQuery,
|
|
100
126
|
useTheme
|
|
101
127
|
};
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","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.js","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;"}
|
package/package.json
CHANGED
package/styles.css
ADDED
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
.\@container {
|
|
4
|
+
container-type: inline-size;
|
|
5
|
+
}
|
|
6
|
+
.collapse {
|
|
7
|
+
visibility: collapse;
|
|
8
|
+
}
|
|
9
|
+
.invisible {
|
|
10
|
+
visibility: hidden;
|
|
11
|
+
}
|
|
12
|
+
.visible {
|
|
13
|
+
visibility: visible;
|
|
14
|
+
}
|
|
15
|
+
.absolute {
|
|
16
|
+
position: absolute;
|
|
17
|
+
}
|
|
18
|
+
.fixed {
|
|
19
|
+
position: fixed;
|
|
20
|
+
}
|
|
21
|
+
.relative {
|
|
22
|
+
position: relative;
|
|
23
|
+
}
|
|
24
|
+
.static {
|
|
25
|
+
position: static;
|
|
26
|
+
}
|
|
27
|
+
.sticky {
|
|
28
|
+
position: sticky;
|
|
29
|
+
}
|
|
30
|
+
.isolate {
|
|
31
|
+
isolation: isolate;
|
|
32
|
+
}
|
|
33
|
+
.float-left {
|
|
34
|
+
float: left;
|
|
35
|
+
}
|
|
36
|
+
.float-right {
|
|
37
|
+
float: right;
|
|
38
|
+
}
|
|
39
|
+
.container {
|
|
40
|
+
width: 100%;
|
|
41
|
+
}
|
|
42
|
+
.block {
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
45
|
+
.contents {
|
|
46
|
+
display: contents;
|
|
47
|
+
}
|
|
48
|
+
.flex {
|
|
49
|
+
display: flex;
|
|
50
|
+
}
|
|
51
|
+
.grid {
|
|
52
|
+
display: grid;
|
|
53
|
+
}
|
|
54
|
+
.hidden {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
.inline {
|
|
58
|
+
display: inline;
|
|
59
|
+
}
|
|
60
|
+
.inline-block {
|
|
61
|
+
display: inline-block;
|
|
62
|
+
}
|
|
63
|
+
.inline-flex {
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
}
|
|
66
|
+
.table {
|
|
67
|
+
display: table;
|
|
68
|
+
}
|
|
69
|
+
.table-cell {
|
|
70
|
+
display: table-cell;
|
|
71
|
+
}
|
|
72
|
+
.table-header-group {
|
|
73
|
+
display: table-header-group;
|
|
74
|
+
}
|
|
75
|
+
.table-row {
|
|
76
|
+
display: table-row;
|
|
77
|
+
}
|
|
78
|
+
.table-row-group {
|
|
79
|
+
display: table-row-group;
|
|
80
|
+
}
|
|
81
|
+
.flex-shrink {
|
|
82
|
+
flex-shrink: 1;
|
|
83
|
+
}
|
|
84
|
+
.shrink {
|
|
85
|
+
flex-shrink: 1;
|
|
86
|
+
}
|
|
87
|
+
.flex-grow {
|
|
88
|
+
flex-grow: 1;
|
|
89
|
+
}
|
|
90
|
+
.grow {
|
|
91
|
+
flex-grow: 1;
|
|
92
|
+
}
|
|
93
|
+
.border-collapse {
|
|
94
|
+
border-collapse: collapse;
|
|
95
|
+
}
|
|
96
|
+
.transform {
|
|
97
|
+
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
|
|
98
|
+
}
|
|
99
|
+
.transform\! {
|
|
100
|
+
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,) !important;
|
|
101
|
+
}
|
|
102
|
+
.resize {
|
|
103
|
+
resize: both;
|
|
104
|
+
}
|
|
105
|
+
.truncate {
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
text-overflow: ellipsis;
|
|
108
|
+
white-space: nowrap;
|
|
109
|
+
}
|
|
110
|
+
.border {
|
|
111
|
+
border-style: var(--tw-border-style);
|
|
112
|
+
border-width: 1px;
|
|
113
|
+
}
|
|
114
|
+
.text-wrap {
|
|
115
|
+
text-wrap: wrap;
|
|
116
|
+
}
|
|
117
|
+
.lowercase {
|
|
118
|
+
text-transform: lowercase;
|
|
119
|
+
}
|
|
120
|
+
.uppercase {
|
|
121
|
+
text-transform: uppercase;
|
|
122
|
+
}
|
|
123
|
+
.italic {
|
|
124
|
+
font-style: italic;
|
|
125
|
+
}
|
|
126
|
+
.tabular-nums {
|
|
127
|
+
--tw-numeric-spacing: tabular-nums;
|
|
128
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
129
|
+
}
|
|
130
|
+
.overline {
|
|
131
|
+
text-decoration-line: overline;
|
|
132
|
+
}
|
|
133
|
+
.underline {
|
|
134
|
+
text-decoration-line: underline;
|
|
135
|
+
}
|
|
136
|
+
.antialiased {
|
|
137
|
+
-webkit-font-smoothing: antialiased;
|
|
138
|
+
-moz-osx-font-smoothing: grayscale;
|
|
139
|
+
}
|
|
140
|
+
.ring {
|
|
141
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
142
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
143
|
+
}
|
|
144
|
+
.outline {
|
|
145
|
+
outline-style: var(--tw-outline-style);
|
|
146
|
+
outline-width: 1px;
|
|
147
|
+
}
|
|
148
|
+
.grayscale {
|
|
149
|
+
--tw-grayscale: grayscale(100%);
|
|
150
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
151
|
+
}
|
|
152
|
+
.filter {
|
|
153
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
154
|
+
}
|
|
155
|
+
.filter\! {
|
|
156
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,) !important;
|
|
157
|
+
}
|
|
158
|
+
.transition {
|
|
159
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
160
|
+
transition-timing-function: var(--tw-ease, ease);
|
|
161
|
+
transition-duration: var(--tw-duration, 0s);
|
|
162
|
+
}
|
|
163
|
+
@property --tw-rotate-x {
|
|
164
|
+
syntax: "*";
|
|
165
|
+
inherits: false;
|
|
166
|
+
}
|
|
167
|
+
@property --tw-rotate-y {
|
|
168
|
+
syntax: "*";
|
|
169
|
+
inherits: false;
|
|
170
|
+
}
|
|
171
|
+
@property --tw-rotate-z {
|
|
172
|
+
syntax: "*";
|
|
173
|
+
inherits: false;
|
|
174
|
+
}
|
|
175
|
+
@property --tw-skew-x {
|
|
176
|
+
syntax: "*";
|
|
177
|
+
inherits: false;
|
|
178
|
+
}
|
|
179
|
+
@property --tw-skew-y {
|
|
180
|
+
syntax: "*";
|
|
181
|
+
inherits: false;
|
|
182
|
+
}
|
|
183
|
+
@property --tw-border-style {
|
|
184
|
+
syntax: "*";
|
|
185
|
+
inherits: false;
|
|
186
|
+
initial-value: solid;
|
|
187
|
+
}
|
|
188
|
+
@property --tw-ordinal {
|
|
189
|
+
syntax: "*";
|
|
190
|
+
inherits: false;
|
|
191
|
+
}
|
|
192
|
+
@property --tw-slashed-zero {
|
|
193
|
+
syntax: "*";
|
|
194
|
+
inherits: false;
|
|
195
|
+
}
|
|
196
|
+
@property --tw-numeric-figure {
|
|
197
|
+
syntax: "*";
|
|
198
|
+
inherits: false;
|
|
199
|
+
}
|
|
200
|
+
@property --tw-numeric-spacing {
|
|
201
|
+
syntax: "*";
|
|
202
|
+
inherits: false;
|
|
203
|
+
}
|
|
204
|
+
@property --tw-numeric-fraction {
|
|
205
|
+
syntax: "*";
|
|
206
|
+
inherits: false;
|
|
207
|
+
}
|
|
208
|
+
@property --tw-shadow {
|
|
209
|
+
syntax: "*";
|
|
210
|
+
inherits: false;
|
|
211
|
+
initial-value: 0 0 #0000;
|
|
212
|
+
}
|
|
213
|
+
@property --tw-shadow-color {
|
|
214
|
+
syntax: "*";
|
|
215
|
+
inherits: false;
|
|
216
|
+
}
|
|
217
|
+
@property --tw-shadow-alpha {
|
|
218
|
+
syntax: "<percentage>";
|
|
219
|
+
inherits: false;
|
|
220
|
+
initial-value: 100%;
|
|
221
|
+
}
|
|
222
|
+
@property --tw-inset-shadow {
|
|
223
|
+
syntax: "*";
|
|
224
|
+
inherits: false;
|
|
225
|
+
initial-value: 0 0 #0000;
|
|
226
|
+
}
|
|
227
|
+
@property --tw-inset-shadow-color {
|
|
228
|
+
syntax: "*";
|
|
229
|
+
inherits: false;
|
|
230
|
+
}
|
|
231
|
+
@property --tw-inset-shadow-alpha {
|
|
232
|
+
syntax: "<percentage>";
|
|
233
|
+
inherits: false;
|
|
234
|
+
initial-value: 100%;
|
|
235
|
+
}
|
|
236
|
+
@property --tw-ring-color {
|
|
237
|
+
syntax: "*";
|
|
238
|
+
inherits: false;
|
|
239
|
+
}
|
|
240
|
+
@property --tw-ring-shadow {
|
|
241
|
+
syntax: "*";
|
|
242
|
+
inherits: false;
|
|
243
|
+
initial-value: 0 0 #0000;
|
|
244
|
+
}
|
|
245
|
+
@property --tw-inset-ring-color {
|
|
246
|
+
syntax: "*";
|
|
247
|
+
inherits: false;
|
|
248
|
+
}
|
|
249
|
+
@property --tw-inset-ring-shadow {
|
|
250
|
+
syntax: "*";
|
|
251
|
+
inherits: false;
|
|
252
|
+
initial-value: 0 0 #0000;
|
|
253
|
+
}
|
|
254
|
+
@property --tw-ring-inset {
|
|
255
|
+
syntax: "*";
|
|
256
|
+
inherits: false;
|
|
257
|
+
}
|
|
258
|
+
@property --tw-ring-offset-width {
|
|
259
|
+
syntax: "<length>";
|
|
260
|
+
inherits: false;
|
|
261
|
+
initial-value: 0px;
|
|
262
|
+
}
|
|
263
|
+
@property --tw-ring-offset-color {
|
|
264
|
+
syntax: "*";
|
|
265
|
+
inherits: false;
|
|
266
|
+
initial-value: #fff;
|
|
267
|
+
}
|
|
268
|
+
@property --tw-ring-offset-shadow {
|
|
269
|
+
syntax: "*";
|
|
270
|
+
inherits: false;
|
|
271
|
+
initial-value: 0 0 #0000;
|
|
272
|
+
}
|
|
273
|
+
@property --tw-outline-style {
|
|
274
|
+
syntax: "*";
|
|
275
|
+
inherits: false;
|
|
276
|
+
initial-value: solid;
|
|
277
|
+
}
|
|
278
|
+
@property --tw-blur {
|
|
279
|
+
syntax: "*";
|
|
280
|
+
inherits: false;
|
|
281
|
+
}
|
|
282
|
+
@property --tw-brightness {
|
|
283
|
+
syntax: "*";
|
|
284
|
+
inherits: false;
|
|
285
|
+
}
|
|
286
|
+
@property --tw-contrast {
|
|
287
|
+
syntax: "*";
|
|
288
|
+
inherits: false;
|
|
289
|
+
}
|
|
290
|
+
@property --tw-grayscale {
|
|
291
|
+
syntax: "*";
|
|
292
|
+
inherits: false;
|
|
293
|
+
}
|
|
294
|
+
@property --tw-hue-rotate {
|
|
295
|
+
syntax: "*";
|
|
296
|
+
inherits: false;
|
|
297
|
+
}
|
|
298
|
+
@property --tw-invert {
|
|
299
|
+
syntax: "*";
|
|
300
|
+
inherits: false;
|
|
301
|
+
}
|
|
302
|
+
@property --tw-opacity {
|
|
303
|
+
syntax: "*";
|
|
304
|
+
inherits: false;
|
|
305
|
+
}
|
|
306
|
+
@property --tw-saturate {
|
|
307
|
+
syntax: "*";
|
|
308
|
+
inherits: false;
|
|
309
|
+
}
|
|
310
|
+
@property --tw-sepia {
|
|
311
|
+
syntax: "*";
|
|
312
|
+
inherits: false;
|
|
313
|
+
}
|
|
314
|
+
@property --tw-drop-shadow {
|
|
315
|
+
syntax: "*";
|
|
316
|
+
inherits: false;
|
|
317
|
+
}
|
|
318
|
+
@property --tw-drop-shadow-color {
|
|
319
|
+
syntax: "*";
|
|
320
|
+
inherits: false;
|
|
321
|
+
}
|
|
322
|
+
@property --tw-drop-shadow-alpha {
|
|
323
|
+
syntax: "<percentage>";
|
|
324
|
+
inherits: false;
|
|
325
|
+
initial-value: 100%;
|
|
326
|
+
}
|
|
327
|
+
@property --tw-drop-shadow-size {
|
|
328
|
+
syntax: "*";
|
|
329
|
+
inherits: false;
|
|
330
|
+
}
|
|
331
|
+
@layer properties {
|
|
332
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
333
|
+
*, ::before, ::after, ::backdrop {
|
|
334
|
+
--tw-rotate-x: initial;
|
|
335
|
+
--tw-rotate-y: initial;
|
|
336
|
+
--tw-rotate-z: initial;
|
|
337
|
+
--tw-skew-x: initial;
|
|
338
|
+
--tw-skew-y: initial;
|
|
339
|
+
--tw-border-style: solid;
|
|
340
|
+
--tw-ordinal: initial;
|
|
341
|
+
--tw-slashed-zero: initial;
|
|
342
|
+
--tw-numeric-figure: initial;
|
|
343
|
+
--tw-numeric-spacing: initial;
|
|
344
|
+
--tw-numeric-fraction: initial;
|
|
345
|
+
--tw-shadow: 0 0 #0000;
|
|
346
|
+
--tw-shadow-color: initial;
|
|
347
|
+
--tw-shadow-alpha: 100%;
|
|
348
|
+
--tw-inset-shadow: 0 0 #0000;
|
|
349
|
+
--tw-inset-shadow-color: initial;
|
|
350
|
+
--tw-inset-shadow-alpha: 100%;
|
|
351
|
+
--tw-ring-color: initial;
|
|
352
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
353
|
+
--tw-inset-ring-color: initial;
|
|
354
|
+
--tw-inset-ring-shadow: 0 0 #0000;
|
|
355
|
+
--tw-ring-inset: initial;
|
|
356
|
+
--tw-ring-offset-width: 0px;
|
|
357
|
+
--tw-ring-offset-color: #fff;
|
|
358
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
359
|
+
--tw-outline-style: solid;
|
|
360
|
+
--tw-blur: initial;
|
|
361
|
+
--tw-brightness: initial;
|
|
362
|
+
--tw-contrast: initial;
|
|
363
|
+
--tw-grayscale: initial;
|
|
364
|
+
--tw-hue-rotate: initial;
|
|
365
|
+
--tw-invert: initial;
|
|
366
|
+
--tw-opacity: initial;
|
|
367
|
+
--tw-saturate: initial;
|
|
368
|
+
--tw-sepia: initial;
|
|
369
|
+
--tw-drop-shadow: initial;
|
|
370
|
+
--tw-drop-shadow-color: initial;
|
|
371
|
+
--tw-drop-shadow-alpha: 100%;
|
|
372
|
+
--tw-drop-shadow-size: initial;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
package/theme/tokens.d.ts
CHANGED
|
@@ -10,8 +10,18 @@
|
|
|
10
10
|
*/
|
|
11
11
|
/** Margen superior que deja el aire para el label flotante "outside". */
|
|
12
12
|
export declare const LABEL_MARGIN_TOP = "14px";
|
|
13
|
-
/**
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Padding vertical interno del input (TextField/Select/Picker sections).
|
|
15
|
+
* 9px → 41px de alto de control (9 + 9 + 23 de line-height). Es el único lugar
|
|
16
|
+
* donde se decide la densidad de TODOS los campos.
|
|
17
|
+
*/
|
|
18
|
+
export declare const FIELD_INPUT_PADDING_Y = "9px";
|
|
19
|
+
/**
|
|
20
|
+
* Radio por defecto de los campos y de los controles con borde
|
|
21
|
+
* (Checkbox/Switch/RadioGroup bordered, InputGroup). Vive acá para que campos,
|
|
22
|
+
* botones y chips de un mismo formulario se puedan alinear a un solo valor.
|
|
23
|
+
*/
|
|
24
|
+
export declare const FIELD_BORDER_RADIUS = 8;
|
|
15
25
|
/** Transform que aplica el label cuando sube arriba del input (shrink). */
|
|
16
26
|
export declare const LABEL_SHRINK_TRANSFORM = "translate(4px, -22px) scale(0.85)";
|
|
17
27
|
/** Origen del transform para el shrink. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const LABEL_MARGIN_TOP = "14px";
|
|
3
|
-
const FIELD_INPUT_PADDING_Y = "
|
|
3
|
+
const FIELD_INPUT_PADDING_Y = "9px";
|
|
4
|
+
const FIELD_BORDER_RADIUS = 8;
|
|
4
5
|
const LABEL_SHRINK_TRANSFORM = "translate(4px, -22px) scale(0.85)";
|
|
5
6
|
const LABEL_TRANSFORM_ORIGIN = "top left";
|
|
6
7
|
const LABEL_TRANSITION = "color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, max-width 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms";
|
|
@@ -8,6 +9,7 @@ const LABEL_COLOR_REST = "text.secondary";
|
|
|
8
9
|
const LABEL_COLOR_FILLED = "text.primary";
|
|
9
10
|
const LABEL_COLOR_FOCUSED = "primary.main";
|
|
10
11
|
const LABEL_FONT_WEIGHT_FILLED = 500;
|
|
12
|
+
exports.FIELD_BORDER_RADIUS = FIELD_BORDER_RADIUS;
|
|
11
13
|
exports.FIELD_INPUT_PADDING_Y = FIELD_INPUT_PADDING_Y;
|
|
12
14
|
exports.LABEL_COLOR_FILLED = LABEL_COLOR_FILLED;
|
|
13
15
|
exports.LABEL_COLOR_FOCUSED = LABEL_COLOR_FOCUSED;
|
|
@@ -17,4 +19,4 @@ exports.LABEL_MARGIN_TOP = LABEL_MARGIN_TOP;
|
|
|
17
19
|
exports.LABEL_SHRINK_TRANSFORM = LABEL_SHRINK_TRANSFORM;
|
|
18
20
|
exports.LABEL_TRANSFORM_ORIGIN = LABEL_TRANSFORM_ORIGIN;
|
|
19
21
|
exports.LABEL_TRANSITION = LABEL_TRANSITION;
|
|
20
|
-
//# sourceMappingURL=tokens-
|
|
22
|
+
//# sourceMappingURL=tokens-BGPazVFO.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens-BGPazVFO.cjs","sources":["../src/theme/tokens.ts"],"sourcesContent":["/**\n * Design tokens compartidos por los componentes de formulario\n * (Input, Select, Autocomplete, DatePicker, DateTimePicker).\n *\n * Centralizar estos valores garantiza que:\n * - el espaciado, la tipografía y las animaciones del label sean idénticos\n * en todos los campos;\n * - un cambio visual global (p.ej. cambiar el transform del shrink) se haga\n * en un único archivo.\n */\n\n// ── Spacing ──────────────────────────────────────────────────────────────\n/** Margen superior que deja el aire para el label flotante \"outside\". */\nexport const LABEL_MARGIN_TOP = '14px';\n\n/**\n * Padding vertical interno del input (TextField/Select/Picker sections).\n * 9px → 41px de alto de control (9 + 9 + 23 de line-height). Es el único lugar\n * donde se decide la densidad de TODOS los campos.\n */\nexport const FIELD_INPUT_PADDING_Y = '9px';\n\n/**\n * Radio por defecto de los campos y de los controles con borde\n * (Checkbox/Switch/RadioGroup bordered, InputGroup). Vive acá para que campos,\n * botones y chips de un mismo formulario se puedan alinear a un solo valor.\n */\nexport const FIELD_BORDER_RADIUS = 8;\n\n// ── Label animation ──────────────────────────────────────────────────────\n/** Transform que aplica el label cuando sube arriba del input (shrink). */\nexport const LABEL_SHRINK_TRANSFORM = 'translate(4px, -22px) scale(0.85)';\n\n/** Origen del transform para el shrink. */\nexport const LABEL_TRANSFORM_ORIGIN = 'top left';\n\n/** Transición del label (color + transform + max-width). */\nexport const LABEL_TRANSITION =\n 'color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, ' +\n 'transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, ' +\n 'max-width 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms';\n\n// ── Label colors (theme-aware) ───────────────────────────────────────────\n/** Color del label en reposo. */\nexport const LABEL_COLOR_REST = 'text.secondary';\n\n/** Color del label cuando el campo tiene valor (shrink). */\nexport const LABEL_COLOR_FILLED = 'text.primary';\n\n/** Color del label cuando el campo está focused. */\nexport const LABEL_COLOR_FOCUSED = 'primary.main';\n\n/** Peso del label cuando sube (filled/focused). */\nexport const LABEL_FONT_WEIGHT_FILLED = 500;\n"],"names":[],"mappings":";AAaO,MAAM,mBAAmB;AAOzB,MAAM,wBAAwB;AAO9B,MAAM,sBAAsB;AAI5B,MAAM,yBAAyB;AAG/B,MAAM,yBAAyB;AAG/B,MAAM,mBACX;AAMK,MAAM,mBAAmB;AAGzB,MAAM,qBAAqB;AAG3B,MAAM,sBAAsB;AAG5B,MAAM,2BAA2B;;;;;;;;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const LABEL_MARGIN_TOP = "14px";
|
|
2
|
-
const FIELD_INPUT_PADDING_Y = "
|
|
2
|
+
const FIELD_INPUT_PADDING_Y = "9px";
|
|
3
|
+
const FIELD_BORDER_RADIUS = 8;
|
|
3
4
|
const LABEL_SHRINK_TRANSFORM = "translate(4px, -22px) scale(0.85)";
|
|
4
5
|
const LABEL_TRANSFORM_ORIGIN = "top left";
|
|
5
6
|
const LABEL_TRANSITION = "color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, max-width 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms";
|
|
@@ -8,14 +9,15 @@ const LABEL_COLOR_FILLED = "text.primary";
|
|
|
8
9
|
const LABEL_COLOR_FOCUSED = "primary.main";
|
|
9
10
|
const LABEL_FONT_WEIGHT_FILLED = 500;
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
FIELD_BORDER_RADIUS as F,
|
|
12
13
|
LABEL_MARGIN_TOP as L,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
FIELD_INPUT_PADDING_Y as a,
|
|
15
|
+
LABEL_COLOR_FOCUSED as b,
|
|
16
|
+
LABEL_FONT_WEIGHT_FILLED as c,
|
|
17
|
+
LABEL_COLOR_FILLED as d,
|
|
18
|
+
LABEL_TRANSFORM_ORIGIN as e,
|
|
19
|
+
LABEL_SHRINK_TRANSFORM as f,
|
|
20
|
+
LABEL_TRANSITION as g,
|
|
21
|
+
LABEL_COLOR_REST as h
|
|
20
22
|
};
|
|
21
|
-
//# sourceMappingURL=tokens-
|
|
23
|
+
//# sourceMappingURL=tokens-DE2fV3a9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens-DE2fV3a9.js","sources":["../src/theme/tokens.ts"],"sourcesContent":["/**\n * Design tokens compartidos por los componentes de formulario\n * (Input, Select, Autocomplete, DatePicker, DateTimePicker).\n *\n * Centralizar estos valores garantiza que:\n * - el espaciado, la tipografía y las animaciones del label sean idénticos\n * en todos los campos;\n * - un cambio visual global (p.ej. cambiar el transform del shrink) se haga\n * en un único archivo.\n */\n\n// ── Spacing ──────────────────────────────────────────────────────────────\n/** Margen superior que deja el aire para el label flotante \"outside\". */\nexport const LABEL_MARGIN_TOP = '14px';\n\n/**\n * Padding vertical interno del input (TextField/Select/Picker sections).\n * 9px → 41px de alto de control (9 + 9 + 23 de line-height). Es el único lugar\n * donde se decide la densidad de TODOS los campos.\n */\nexport const FIELD_INPUT_PADDING_Y = '9px';\n\n/**\n * Radio por defecto de los campos y de los controles con borde\n * (Checkbox/Switch/RadioGroup bordered, InputGroup). Vive acá para que campos,\n * botones y chips de un mismo formulario se puedan alinear a un solo valor.\n */\nexport const FIELD_BORDER_RADIUS = 8;\n\n// ── Label animation ──────────────────────────────────────────────────────\n/** Transform que aplica el label cuando sube arriba del input (shrink). */\nexport const LABEL_SHRINK_TRANSFORM = 'translate(4px, -22px) scale(0.85)';\n\n/** Origen del transform para el shrink. */\nexport const LABEL_TRANSFORM_ORIGIN = 'top left';\n\n/** Transición del label (color + transform + max-width). */\nexport const LABEL_TRANSITION =\n 'color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, ' +\n 'transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, ' +\n 'max-width 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms';\n\n// ── Label colors (theme-aware) ───────────────────────────────────────────\n/** Color del label en reposo. */\nexport const LABEL_COLOR_REST = 'text.secondary';\n\n/** Color del label cuando el campo tiene valor (shrink). */\nexport const LABEL_COLOR_FILLED = 'text.primary';\n\n/** Color del label cuando el campo está focused. */\nexport const LABEL_COLOR_FOCUSED = 'primary.main';\n\n/** Peso del label cuando sube (filled/focused). */\nexport const LABEL_FONT_WEIGHT_FILLED = 500;\n"],"names":[],"mappings":"AAaO,MAAM,mBAAmB;AAOzB,MAAM,wBAAwB;AAO9B,MAAM,sBAAsB;AAI5B,MAAM,yBAAyB;AAG/B,MAAM,yBAAyB;AAG/B,MAAM,mBACX;AAMK,MAAM,mBAAmB;AAGzB,MAAM,qBAAqB;AAG3B,MAAM,sBAAsB;AAG5B,MAAM,2BAA2B;"}
|