@atipicus/mrs-ui 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/DatePicker-BKPeAHBW.mjs +25 -0
  2. package/dist/DatePicker-BKPeAHBW.mjs.map +1 -0
  3. package/dist/DatePicker-Du7BnvWs.js +24 -0
  4. package/dist/DatePicker-Du7BnvWs.js.map +1 -0
  5. package/dist/DateTimePicker-Cj0NPhiR.js +26 -0
  6. package/dist/DateTimePicker-Cj0NPhiR.js.map +1 -0
  7. package/dist/DateTimePicker-Xho8h3ww.mjs +27 -0
  8. package/dist/DateTimePicker-Xho8h3ww.mjs.map +1 -0
  9. package/dist/Dialog-CTl9ynAU.js +34 -0
  10. package/dist/Dialog-CTl9ynAU.js.map +1 -0
  11. package/dist/Dialog-Tfym7LkJ.mjs +35 -0
  12. package/dist/Dialog-Tfym7LkJ.mjs.map +1 -0
  13. package/dist/Drawer-9nL7gecl.mjs +53 -0
  14. package/dist/Drawer-9nL7gecl.mjs.map +1 -0
  15. package/dist/Drawer-Cs8bfNKk.js +52 -0
  16. package/dist/Drawer-Cs8bfNKk.js.map +1 -0
  17. package/dist/Table-BWJUQgDY.js +87 -0
  18. package/dist/Table-BWJUQgDY.js.map +1 -0
  19. package/dist/Table-BrEk_oGh.mjs +88 -0
  20. package/dist/Table-BrEk_oGh.mjs.map +1 -0
  21. package/dist/TimePicker-BCpPRTJI.js +24 -0
  22. package/dist/TimePicker-BCpPRTJI.js.map +1 -0
  23. package/dist/TimePicker-Bt5plyjC.mjs +25 -0
  24. package/dist/TimePicker-Bt5plyjC.mjs.map +1 -0
  25. package/dist/Timeline-BPdic0I4.mjs +59 -0
  26. package/dist/Timeline-BPdic0I4.mjs.map +1 -0
  27. package/dist/Timeline-BzDR_6ve.js +58 -0
  28. package/dist/Timeline-BzDR_6ve.js.map +1 -0
  29. package/dist/components/atoms/TextField/TextField.types.d.ts +1 -1
  30. package/dist/components/atoms/TextField/TextField.types.d.ts.map +1 -1
  31. package/dist/index--v2dNPpd.js +11 -0
  32. package/dist/index--v2dNPpd.js.map +1 -0
  33. package/dist/index-B4_KKxHQ.mjs +6 -0
  34. package/dist/index-B4_KKxHQ.mjs.map +1 -0
  35. package/dist/index-Bp_39Kmf.js +12 -0
  36. package/dist/index-Bp_39Kmf.js.map +1 -0
  37. package/dist/index-C4N6hqG7.mjs +14 -0
  38. package/dist/index-C4N6hqG7.mjs.map +1 -0
  39. package/dist/index-C4a5SkEO.js +6 -0
  40. package/dist/index-C4a5SkEO.js.map +1 -0
  41. package/dist/index-CBDmTLHS.mjs +11 -0
  42. package/dist/index-CBDmTLHS.mjs.map +1 -0
  43. package/dist/index-CLLVDdFI.mjs +12 -0
  44. package/dist/index-CLLVDdFI.mjs.map +1 -0
  45. package/dist/index-CxB9Lb7L.mjs +6 -0
  46. package/dist/index-CxB9Lb7L.mjs.map +1 -0
  47. package/dist/index-DGbzI3ul.mjs +6 -0
  48. package/dist/index-DGbzI3ul.mjs.map +1 -0
  49. package/dist/index-DQLiGYRv.js +6 -0
  50. package/dist/index-DQLiGYRv.js.map +1 -0
  51. package/dist/index-DgpKiomn.js +6 -0
  52. package/dist/index-DgpKiomn.js.map +1 -0
  53. package/dist/index-DrHcCXwi.js +6 -0
  54. package/dist/index-DrHcCXwi.js.map +1 -0
  55. package/dist/index-xewrdUFS.js +14 -0
  56. package/dist/index-xewrdUFS.js.map +1 -0
  57. package/dist/index-zqX2ktfd.mjs +6 -0
  58. package/dist/index-zqX2ktfd.mjs.map +1 -0
  59. package/dist/index.js +1603 -18703
  60. package/dist/index.js.map +1 -1
  61. package/dist/index.mjs +1605 -18692
  62. package/dist/index.mjs.map +1 -1
  63. package/dist/lazy.js +23 -23
  64. package/dist/lazy.js.map +1 -1
  65. package/dist/lazy.mjs +23 -23
  66. package/dist/lazy.mjs.map +1 -1
  67. package/package.json +2 -1
  68. package/dist/data-display-BT3VQcEN.mjs +0 -9920
  69. package/dist/data-display-BT3VQcEN.mjs.map +0 -1
  70. package/dist/data-display-DKx97xmI.js +0 -9935
  71. package/dist/data-display-DKx97xmI.js.map +0 -1
  72. package/dist/date-pickers-BMsJzi64.js +0 -34187
  73. package/dist/date-pickers-BMsJzi64.js.map +0 -1
  74. package/dist/date-pickers-CqiDeUt4.mjs +0 -34172
  75. package/dist/date-pickers-CqiDeUt4.mjs.map +0 -1
  76. package/dist/overlays-Cx39IOTG.js +0 -2380
  77. package/dist/overlays-Cx39IOTG.js.map +0 -1
  78. package/dist/overlays-a3qo0vDF.mjs +0 -2365
  79. package/dist/overlays-a3qo0vDF.mjs.map +0 -1
@@ -0,0 +1,25 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { DatePicker as DatePicker$1 } from "@mui/x-date-pickers/DatePicker";
4
+ const DatePicker = React.forwardRef((props, ref) => {
5
+ const { slotProps, ...rest } = props;
6
+ return /* @__PURE__ */ jsx(
7
+ DatePicker$1,
8
+ {
9
+ ref,
10
+ slotProps: {
11
+ textField: {
12
+ fullWidth: true,
13
+ ...slotProps?.textField
14
+ },
15
+ ...slotProps
16
+ },
17
+ ...rest
18
+ }
19
+ );
20
+ });
21
+ DatePicker.displayName = "DatePicker";
22
+ export {
23
+ DatePicker as D
24
+ };
25
+ //# sourceMappingURL=DatePicker-BKPeAHBW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker-BKPeAHBW.mjs","sources":["../src/components/molecules/DatePicker/DatePicker.tsx"],"sourcesContent":["/**\n * DatePicker Component\n *\n * Implements the MRS DatePicker using MUI X Date Pickers with design tokens.\n * Supports desktop and mobile variants with proper theme integration.\n *\n * @figma https://www.figma.com/design/pWR8HIewAt87ZioeOSMoWM/MRS---Material-UI?node-id=6569-39392\n * @see https://mui.com/x/react-date-pickers/date-picker/\n */\n\nimport React from 'react';\nimport { DatePicker as MuiDatePicker } from '@mui/x-date-pickers/DatePicker';\nimport type { DatePickerProps } from './DatePicker.types';\n\n/**\n * DatePicker component for selecting dates\n * Wraps MUI X DatePicker with MRS design tokens and theme integration\n */\nexport const DatePicker = React.forwardRef<HTMLDivElement, DatePickerProps>((props, ref) => {\n const { slotProps, ...rest } = props;\n\n return (\n <MuiDatePicker\n ref={ref}\n slotProps={{\n textField: {\n fullWidth: true,\n ...slotProps?.textField,\n },\n ...slotProps,\n }}\n {...rest}\n />\n );\n});\n\nDatePicker.displayName = 'DatePicker';\n\nexport default DatePicker;\n"],"names":["MuiDatePicker"],"mappings":";;;AAkBO,MAAM,aAAa,MAAM,WAA4C,CAAC,OAAO,QAAQ;AAC1F,QAAM,EAAE,WAAW,GAAG,KAAA,IAAS;AAE/B,SACE;AAAA,IAACA;AAAAA,IAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT,WAAW;AAAA,UACT,WAAW;AAAA,UACX,GAAG,WAAW;AAAA,QAAA;AAAA,QAEhB,GAAG;AAAA,MAAA;AAAA,MAEJ,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;AAED,WAAW,cAAc;"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const React = require("react");
4
+ const DatePicker$1 = require("@mui/x-date-pickers/DatePicker");
5
+ const DatePicker = React.forwardRef((props, ref) => {
6
+ const { slotProps, ...rest } = props;
7
+ return /* @__PURE__ */ jsxRuntime.jsx(
8
+ DatePicker$1.DatePicker,
9
+ {
10
+ ref,
11
+ slotProps: {
12
+ textField: {
13
+ fullWidth: true,
14
+ ...slotProps?.textField
15
+ },
16
+ ...slotProps
17
+ },
18
+ ...rest
19
+ }
20
+ );
21
+ });
22
+ DatePicker.displayName = "DatePicker";
23
+ exports.DatePicker = DatePicker;
24
+ //# sourceMappingURL=DatePicker-Du7BnvWs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker-Du7BnvWs.js","sources":["../src/components/molecules/DatePicker/DatePicker.tsx"],"sourcesContent":["/**\n * DatePicker Component\n *\n * Implements the MRS DatePicker using MUI X Date Pickers with design tokens.\n * Supports desktop and mobile variants with proper theme integration.\n *\n * @figma https://www.figma.com/design/pWR8HIewAt87ZioeOSMoWM/MRS---Material-UI?node-id=6569-39392\n * @see https://mui.com/x/react-date-pickers/date-picker/\n */\n\nimport React from 'react';\nimport { DatePicker as MuiDatePicker } from '@mui/x-date-pickers/DatePicker';\nimport type { DatePickerProps } from './DatePicker.types';\n\n/**\n * DatePicker component for selecting dates\n * Wraps MUI X DatePicker with MRS design tokens and theme integration\n */\nexport const DatePicker = React.forwardRef<HTMLDivElement, DatePickerProps>((props, ref) => {\n const { slotProps, ...rest } = props;\n\n return (\n <MuiDatePicker\n ref={ref}\n slotProps={{\n textField: {\n fullWidth: true,\n ...slotProps?.textField,\n },\n ...slotProps,\n }}\n {...rest}\n />\n );\n});\n\nDatePicker.displayName = 'DatePicker';\n\nexport default DatePicker;\n"],"names":["jsx","MuiDatePicker"],"mappings":";;;;AAkBO,MAAM,aAAa,MAAM,WAA4C,CAAC,OAAO,QAAQ;AAC1F,QAAM,EAAE,WAAW,GAAG,KAAA,IAAS;AAE/B,SACEA,2BAAAA;AAAAA,IAACC,aAAAA;AAAAA,IAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT,WAAW;AAAA,UACT,WAAW;AAAA,UACX,GAAG,WAAW;AAAA,QAAA;AAAA,QAEhB,GAAG;AAAA,MAAA;AAAA,MAEJ,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;AAED,WAAW,cAAc;;"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const React = require("react");
4
+ const DateTimePicker$1 = require("@mui/x-date-pickers/DateTimePicker");
5
+ const DateTimePicker = React.forwardRef(
6
+ (props, ref) => {
7
+ const { slotProps, ...rest } = props;
8
+ return /* @__PURE__ */ jsxRuntime.jsx(
9
+ DateTimePicker$1.DateTimePicker,
10
+ {
11
+ ref,
12
+ slotProps: {
13
+ textField: {
14
+ fullWidth: true,
15
+ ...slotProps?.textField
16
+ },
17
+ ...slotProps
18
+ },
19
+ ...rest
20
+ }
21
+ );
22
+ }
23
+ );
24
+ DateTimePicker.displayName = "DateTimePicker";
25
+ exports.DateTimePicker = DateTimePicker;
26
+ //# sourceMappingURL=DateTimePicker-Cj0NPhiR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateTimePicker-Cj0NPhiR.js","sources":["../src/components/molecules/DateTimePicker/DateTimePicker.tsx"],"sourcesContent":["/**\n * DateTimePicker Component\n *\n * Implements the MRS DateTimePicker using MUI X Date Pickers with design tokens.\n * Combines date and time selection in a single component.\n *\n * @see https://mui.com/x/react-date-pickers/date-time-picker/\n */\n\nimport React from 'react';\nimport { DateTimePicker as MuiDateTimePicker } from '@mui/x-date-pickers/DateTimePicker';\nimport type { DateTimePickerProps } from './DateTimePicker.types';\n\n/**\n * DateTimePicker component for selecting both date and time\n * Wraps MUI X DateTimePicker with MRS design tokens and theme integration\n */\nexport const DateTimePicker = React.forwardRef<HTMLDivElement, DateTimePickerProps>(\n (props, ref) => {\n const { slotProps, ...rest } = props;\n\n return (\n <MuiDateTimePicker\n ref={ref}\n slotProps={{\n textField: {\n fullWidth: true,\n ...slotProps?.textField,\n },\n ...slotProps,\n }}\n {...rest}\n />\n );\n }\n);\n\nDateTimePicker.displayName = 'DateTimePicker';\n\nexport default DateTimePicker;\n"],"names":["jsx","MuiDateTimePicker"],"mappings":";;;;AAiBO,MAAM,iBAAiB,MAAM;AAAA,EAClC,CAAC,OAAO,QAAQ;AACd,UAAM,EAAE,WAAW,GAAG,KAAA,IAAS;AAE/B,WACEA,2BAAAA;AAAAA,MAACC,iBAAAA;AAAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT,WAAW;AAAA,YACT,WAAW;AAAA,YACX,GAAG,WAAW;AAAA,UAAA;AAAA,UAEhB,GAAG;AAAA,QAAA;AAAA,QAEJ,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,eAAe,cAAc;;"}
@@ -0,0 +1,27 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { DateTimePicker as DateTimePicker$1 } from "@mui/x-date-pickers/DateTimePicker";
4
+ const DateTimePicker = React.forwardRef(
5
+ (props, ref) => {
6
+ const { slotProps, ...rest } = props;
7
+ return /* @__PURE__ */ jsx(
8
+ DateTimePicker$1,
9
+ {
10
+ ref,
11
+ slotProps: {
12
+ textField: {
13
+ fullWidth: true,
14
+ ...slotProps?.textField
15
+ },
16
+ ...slotProps
17
+ },
18
+ ...rest
19
+ }
20
+ );
21
+ }
22
+ );
23
+ DateTimePicker.displayName = "DateTimePicker";
24
+ export {
25
+ DateTimePicker as D
26
+ };
27
+ //# sourceMappingURL=DateTimePicker-Xho8h3ww.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateTimePicker-Xho8h3ww.mjs","sources":["../src/components/molecules/DateTimePicker/DateTimePicker.tsx"],"sourcesContent":["/**\n * DateTimePicker Component\n *\n * Implements the MRS DateTimePicker using MUI X Date Pickers with design tokens.\n * Combines date and time selection in a single component.\n *\n * @see https://mui.com/x/react-date-pickers/date-time-picker/\n */\n\nimport React from 'react';\nimport { DateTimePicker as MuiDateTimePicker } from '@mui/x-date-pickers/DateTimePicker';\nimport type { DateTimePickerProps } from './DateTimePicker.types';\n\n/**\n * DateTimePicker component for selecting both date and time\n * Wraps MUI X DateTimePicker with MRS design tokens and theme integration\n */\nexport const DateTimePicker = React.forwardRef<HTMLDivElement, DateTimePickerProps>(\n (props, ref) => {\n const { slotProps, ...rest } = props;\n\n return (\n <MuiDateTimePicker\n ref={ref}\n slotProps={{\n textField: {\n fullWidth: true,\n ...slotProps?.textField,\n },\n ...slotProps,\n }}\n {...rest}\n />\n );\n }\n);\n\nDateTimePicker.displayName = 'DateTimePicker';\n\nexport default DateTimePicker;\n"],"names":["MuiDateTimePicker"],"mappings":";;;AAiBO,MAAM,iBAAiB,MAAM;AAAA,EAClC,CAAC,OAAO,QAAQ;AACd,UAAM,EAAE,WAAW,GAAG,KAAA,IAAS;AAE/B,WACE;AAAA,MAACA;AAAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT,WAAW;AAAA,YACT,WAAW;AAAA,YACX,GAAG,WAAW;AAAA,UAAA;AAAA,UAEhB,GAAG;AAAA,QAAA;AAAA,QAEJ,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,eAAe,cAAc;"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const React = require("react");
4
+ const MuiDialog = require("@mui/material/Dialog");
5
+ const Dialog = React.forwardRef(
6
+ ({
7
+ open,
8
+ onClose,
9
+ maxWidth = "sm",
10
+ fullWidth = false,
11
+ fullScreen = false,
12
+ scroll = "paper",
13
+ children,
14
+ ...props
15
+ }, ref) => {
16
+ return /* @__PURE__ */ jsxRuntime.jsx(
17
+ MuiDialog,
18
+ {
19
+ ref,
20
+ open,
21
+ onClose,
22
+ maxWidth,
23
+ fullWidth,
24
+ fullScreen,
25
+ scroll,
26
+ ...props,
27
+ children
28
+ }
29
+ );
30
+ }
31
+ );
32
+ Dialog.displayName = "Dialog";
33
+ exports.Dialog = Dialog;
34
+ //# sourceMappingURL=Dialog-CTl9ynAU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog-CTl9ynAU.js","sources":["../src/components/molecules/Dialog/Dialog.tsx"],"sourcesContent":["/**\n * Dialog Component\n *\n * A modal dialog component for displaying content that requires user interaction.\n * Wraps Material-UI Dialog with MRS Design System theming.\n *\n * @example\n * ```tsx\n * import { Dialog, DialogTitle, DialogContent, DialogActions, Button } from '@atipicus/mrs-ui';\n *\n * function MyDialog() {\n * const [open, setOpen] = useState(false);\n *\n * return (\n * <>\n * <Button onClick={() => setOpen(true)}>Open Dialog</Button>\n * <Dialog open={open} onClose={() => setOpen(false)}>\n * <DialogTitle>Dialog Title</DialogTitle>\n * <DialogContent>\n * Content goes here\n * </DialogContent>\n * <DialogActions>\n * <Button onClick={() => setOpen(false)}>Cancel</Button>\n * <Button onClick={() => setOpen(false)} variant=\"contained\">OK</Button>\n * </DialogActions>\n * </Dialog>\n * </>\n * );\n * }\n * ```\n */\n\nimport React from 'react';\nimport MuiDialog from '@mui/material/Dialog';\nimport type { DialogProps } from './Dialog.types';\n\nexport const Dialog = React.forwardRef<HTMLDivElement, DialogProps>(\n (\n {\n open,\n onClose,\n maxWidth = 'sm',\n fullWidth = false,\n fullScreen = false,\n scroll = 'paper',\n children,\n ...props\n },\n ref\n ) => {\n return (\n <MuiDialog\n ref={ref}\n open={open}\n onClose={onClose}\n maxWidth={maxWidth}\n fullWidth={fullWidth}\n fullScreen={fullScreen}\n scroll={scroll}\n {...props}\n >\n {children}\n </MuiDialog>\n );\n }\n);\n\nDialog.displayName = 'Dialog';\n\nexport default Dialog;\n"],"names":["jsx"],"mappings":";;;;AAoCO,MAAM,SAAS,MAAM;AAAA,EAC1B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QACG;AACH,WACEA,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACC,GAAG;AAAA,QAEH;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEA,OAAO,cAAc;;"}
@@ -0,0 +1,35 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import MuiDialog from "@mui/material/Dialog";
4
+ const Dialog = React.forwardRef(
5
+ ({
6
+ open,
7
+ onClose,
8
+ maxWidth = "sm",
9
+ fullWidth = false,
10
+ fullScreen = false,
11
+ scroll = "paper",
12
+ children,
13
+ ...props
14
+ }, ref) => {
15
+ return /* @__PURE__ */ jsx(
16
+ MuiDialog,
17
+ {
18
+ ref,
19
+ open,
20
+ onClose,
21
+ maxWidth,
22
+ fullWidth,
23
+ fullScreen,
24
+ scroll,
25
+ ...props,
26
+ children
27
+ }
28
+ );
29
+ }
30
+ );
31
+ Dialog.displayName = "Dialog";
32
+ export {
33
+ Dialog as D
34
+ };
35
+ //# sourceMappingURL=Dialog-Tfym7LkJ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog-Tfym7LkJ.mjs","sources":["../src/components/molecules/Dialog/Dialog.tsx"],"sourcesContent":["/**\n * Dialog Component\n *\n * A modal dialog component for displaying content that requires user interaction.\n * Wraps Material-UI Dialog with MRS Design System theming.\n *\n * @example\n * ```tsx\n * import { Dialog, DialogTitle, DialogContent, DialogActions, Button } from '@atipicus/mrs-ui';\n *\n * function MyDialog() {\n * const [open, setOpen] = useState(false);\n *\n * return (\n * <>\n * <Button onClick={() => setOpen(true)}>Open Dialog</Button>\n * <Dialog open={open} onClose={() => setOpen(false)}>\n * <DialogTitle>Dialog Title</DialogTitle>\n * <DialogContent>\n * Content goes here\n * </DialogContent>\n * <DialogActions>\n * <Button onClick={() => setOpen(false)}>Cancel</Button>\n * <Button onClick={() => setOpen(false)} variant=\"contained\">OK</Button>\n * </DialogActions>\n * </Dialog>\n * </>\n * );\n * }\n * ```\n */\n\nimport React from 'react';\nimport MuiDialog from '@mui/material/Dialog';\nimport type { DialogProps } from './Dialog.types';\n\nexport const Dialog = React.forwardRef<HTMLDivElement, DialogProps>(\n (\n {\n open,\n onClose,\n maxWidth = 'sm',\n fullWidth = false,\n fullScreen = false,\n scroll = 'paper',\n children,\n ...props\n },\n ref\n ) => {\n return (\n <MuiDialog\n ref={ref}\n open={open}\n onClose={onClose}\n maxWidth={maxWidth}\n fullWidth={fullWidth}\n fullScreen={fullScreen}\n scroll={scroll}\n {...props}\n >\n {children}\n </MuiDialog>\n );\n }\n);\n\nDialog.displayName = 'Dialog';\n\nexport default Dialog;\n"],"names":[],"mappings":";;;AAoCO,MAAM,SAAS,MAAM;AAAA,EAC1B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,SAAS;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QACG;AACH,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACC,GAAG;AAAA,QAEH;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEA,OAAO,cAAc;"}
@@ -0,0 +1,53 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import MuiDrawer from "@mui/material/Drawer";
4
+ import { useTheme } from "@mui/material/styles";
5
+ const Drawer = React.forwardRef(
6
+ ({
7
+ anchor = "left",
8
+ children,
9
+ elevation = 16,
10
+ hideBackdrop = false,
11
+ ModalProps,
12
+ onClose,
13
+ open = false,
14
+ slotProps,
15
+ slots,
16
+ sx,
17
+ transitionDuration,
18
+ variant = "temporary",
19
+ ...props
20
+ }, ref) => {
21
+ const theme = useTheme();
22
+ return /* @__PURE__ */ jsx(
23
+ MuiDrawer,
24
+ {
25
+ ref,
26
+ anchor,
27
+ elevation,
28
+ hideBackdrop,
29
+ ModalProps,
30
+ onClose,
31
+ open,
32
+ slotProps,
33
+ slots,
34
+ transitionDuration,
35
+ variant,
36
+ sx: {
37
+ // Ensure Nunito font is applied to drawer content
38
+ "& .MuiDrawer-paper": {
39
+ fontFamily: theme.typography.fontFamily
40
+ },
41
+ ...sx
42
+ },
43
+ ...props,
44
+ children
45
+ }
46
+ );
47
+ }
48
+ );
49
+ Drawer.displayName = "Drawer";
50
+ export {
51
+ Drawer as D
52
+ };
53
+ //# sourceMappingURL=Drawer-9nL7gecl.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer-9nL7gecl.mjs","sources":["../src/components/molecules/Drawer/Drawer.tsx"],"sourcesContent":["/**\n * Drawer Component\n *\n * Side navigation panel component for the MRS Design System.\n * Wraps Material-UI Drawer with MRS theme tokens.\n *\n * @example\n * ```tsx\n * import { Drawer, List, ListItem, IconButton } from '@atipicus/mrs-ui';\n * import MenuIcon from '@mui/icons-material/Menu';\n *\n * function MyDrawer() {\n * const [open, setOpen] = React.useState(false);\n *\n * return (\n * <>\n * <IconButton onClick={() => setOpen(true)}>\n * <MenuIcon />\n * </IconButton>\n * <Drawer\n * open={open}\n * onClose={() => setOpen(false)}\n * anchor=\"left\"\n * >\n * <List>\n * <ListItem>Menu Item 1</ListItem>\n * <ListItem>Menu Item 2</ListItem>\n * </List>\n * </Drawer>\n * </>\n * );\n * }\n * ```\n *\n * @see {@link https://mui.com/material-ui/api/drawer/}\n * @see {@link https://mui.com/material-ui/react-drawer/}\n */\n\nimport React from 'react';\nimport MuiDrawer from '@mui/material/Drawer';\nimport { useTheme } from '@mui/material/styles';\nimport type { DrawerProps } from './Drawer.types';\n\n/**\n * Drawer component\n *\n * Side navigation panel that can appear from any edge of the screen.\n * Supports three variants: temporary (mobile), persistent, and permanent (desktop).\n *\n * Features:\n * - MRS design tokens (Nunito font, MRS color palette)\n * - Three variant types (temporary, persistent, permanent)\n * - Four anchor positions (left, right, top, bottom)\n * - Configurable elevation (shadow depth)\n * - Responsive design ready\n * - Full accessibility support\n *\n * @param props - Drawer component props\n * @returns Drawer component\n */\nexport const Drawer = React.forwardRef<HTMLDivElement, DrawerProps>(\n (\n {\n anchor = 'left',\n children,\n elevation = 16,\n hideBackdrop = false,\n ModalProps,\n onClose,\n open = false,\n slotProps,\n slots,\n sx,\n transitionDuration,\n variant = 'temporary',\n ...props\n },\n ref\n ) => {\n const theme = useTheme();\n\n return (\n <MuiDrawer\n ref={ref}\n anchor={anchor}\n elevation={elevation}\n hideBackdrop={hideBackdrop}\n ModalProps={ModalProps}\n onClose={onClose}\n open={open}\n slotProps={slotProps}\n slots={slots}\n transitionDuration={transitionDuration}\n variant={variant}\n sx={{\n // Ensure Nunito font is applied to drawer content\n '& .MuiDrawer-paper': {\n fontFamily: theme.typography.fontFamily,\n },\n ...sx,\n }}\n {...props}\n >\n {children}\n </MuiDrawer>\n );\n }\n);\n\nDrawer.displayName = 'Drawer';\n\nexport type { DrawerProps };\nexport default Drawer;\n"],"names":[],"mappings":";;;;AA4DO,MAAM,SAAS,MAAM;AAAA,EAC1B,CACE;AAAA,IACE,SAAS;AAAA,IACT;AAAA,IACA,YAAY;AAAA,IACZ,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,GAAG;AAAA,EAAA,GAEL,QACG;AACH,UAAM,QAAQ,SAAA;AAEd,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,IAAI;AAAA;AAAA,UAEF,sBAAsB;AAAA,YACpB,YAAY,MAAM,WAAW;AAAA,UAAA;AAAA,UAE/B,GAAG;AAAA,QAAA;AAAA,QAEJ,GAAG;AAAA,QAEH;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEA,OAAO,cAAc;"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const React = require("react");
4
+ const MuiDrawer = require("@mui/material/Drawer");
5
+ const styles = require("@mui/material/styles");
6
+ const Drawer = React.forwardRef(
7
+ ({
8
+ anchor = "left",
9
+ children,
10
+ elevation = 16,
11
+ hideBackdrop = false,
12
+ ModalProps,
13
+ onClose,
14
+ open = false,
15
+ slotProps,
16
+ slots,
17
+ sx,
18
+ transitionDuration,
19
+ variant = "temporary",
20
+ ...props
21
+ }, ref) => {
22
+ const theme = styles.useTheme();
23
+ return /* @__PURE__ */ jsxRuntime.jsx(
24
+ MuiDrawer,
25
+ {
26
+ ref,
27
+ anchor,
28
+ elevation,
29
+ hideBackdrop,
30
+ ModalProps,
31
+ onClose,
32
+ open,
33
+ slotProps,
34
+ slots,
35
+ transitionDuration,
36
+ variant,
37
+ sx: {
38
+ // Ensure Nunito font is applied to drawer content
39
+ "& .MuiDrawer-paper": {
40
+ fontFamily: theme.typography.fontFamily
41
+ },
42
+ ...sx
43
+ },
44
+ ...props,
45
+ children
46
+ }
47
+ );
48
+ }
49
+ );
50
+ Drawer.displayName = "Drawer";
51
+ exports.Drawer = Drawer;
52
+ //# sourceMappingURL=Drawer-Cs8bfNKk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer-Cs8bfNKk.js","sources":["../src/components/molecules/Drawer/Drawer.tsx"],"sourcesContent":["/**\n * Drawer Component\n *\n * Side navigation panel component for the MRS Design System.\n * Wraps Material-UI Drawer with MRS theme tokens.\n *\n * @example\n * ```tsx\n * import { Drawer, List, ListItem, IconButton } from '@atipicus/mrs-ui';\n * import MenuIcon from '@mui/icons-material/Menu';\n *\n * function MyDrawer() {\n * const [open, setOpen] = React.useState(false);\n *\n * return (\n * <>\n * <IconButton onClick={() => setOpen(true)}>\n * <MenuIcon />\n * </IconButton>\n * <Drawer\n * open={open}\n * onClose={() => setOpen(false)}\n * anchor=\"left\"\n * >\n * <List>\n * <ListItem>Menu Item 1</ListItem>\n * <ListItem>Menu Item 2</ListItem>\n * </List>\n * </Drawer>\n * </>\n * );\n * }\n * ```\n *\n * @see {@link https://mui.com/material-ui/api/drawer/}\n * @see {@link https://mui.com/material-ui/react-drawer/}\n */\n\nimport React from 'react';\nimport MuiDrawer from '@mui/material/Drawer';\nimport { useTheme } from '@mui/material/styles';\nimport type { DrawerProps } from './Drawer.types';\n\n/**\n * Drawer component\n *\n * Side navigation panel that can appear from any edge of the screen.\n * Supports three variants: temporary (mobile), persistent, and permanent (desktop).\n *\n * Features:\n * - MRS design tokens (Nunito font, MRS color palette)\n * - Three variant types (temporary, persistent, permanent)\n * - Four anchor positions (left, right, top, bottom)\n * - Configurable elevation (shadow depth)\n * - Responsive design ready\n * - Full accessibility support\n *\n * @param props - Drawer component props\n * @returns Drawer component\n */\nexport const Drawer = React.forwardRef<HTMLDivElement, DrawerProps>(\n (\n {\n anchor = 'left',\n children,\n elevation = 16,\n hideBackdrop = false,\n ModalProps,\n onClose,\n open = false,\n slotProps,\n slots,\n sx,\n transitionDuration,\n variant = 'temporary',\n ...props\n },\n ref\n ) => {\n const theme = useTheme();\n\n return (\n <MuiDrawer\n ref={ref}\n anchor={anchor}\n elevation={elevation}\n hideBackdrop={hideBackdrop}\n ModalProps={ModalProps}\n onClose={onClose}\n open={open}\n slotProps={slotProps}\n slots={slots}\n transitionDuration={transitionDuration}\n variant={variant}\n sx={{\n // Ensure Nunito font is applied to drawer content\n '& .MuiDrawer-paper': {\n fontFamily: theme.typography.fontFamily,\n },\n ...sx,\n }}\n {...props}\n >\n {children}\n </MuiDrawer>\n );\n }\n);\n\nDrawer.displayName = 'Drawer';\n\nexport type { DrawerProps };\nexport default Drawer;\n"],"names":["useTheme","jsx"],"mappings":";;;;;AA4DO,MAAM,SAAS,MAAM;AAAA,EAC1B,CACE;AAAA,IACE,SAAS;AAAA,IACT;AAAA,IACA,YAAY;AAAA,IACZ,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,GAAG;AAAA,EAAA,GAEL,QACG;AACH,UAAM,QAAQA,OAAAA,SAAA;AAEd,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,IAAI;AAAA;AAAA,UAEF,sBAAsB;AAAA,YACpB,YAAY,MAAM,WAAW;AAAA,UAAA;AAAA,UAE/B,GAAG;AAAA,QAAA;AAAA,QAEJ,GAAG;AAAA,QAEH;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEA,OAAO,cAAc;;"}
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const React = require("react");
4
+ const MuiTable = require("@mui/material/Table");
5
+ const MuiTableContainer = require("@mui/material/TableContainer");
6
+ const MuiTableHead = require("@mui/material/TableHead");
7
+ const MuiTableBody = require("@mui/material/TableBody");
8
+ const MuiTableFooter = require("@mui/material/TableFooter");
9
+ const MuiTableRow = require("@mui/material/TableRow");
10
+ const MuiTableCell = require("@mui/material/TableCell");
11
+ const TableBase = React.forwardRef(
12
+ ({ children, size = "medium", stickyHeader = false, padding = "normal", ...props }, ref) => {
13
+ return /* @__PURE__ */ jsxRuntime.jsx(MuiTable, { ref, size, stickyHeader, padding, ...props, children });
14
+ }
15
+ );
16
+ const Table = React.memo(TableBase);
17
+ Table.displayName = "Table";
18
+ const TableContainer = React.forwardRef(
19
+ ({ children, ...props }, ref) => {
20
+ return /* @__PURE__ */ jsxRuntime.jsx(MuiTableContainer, { ref, ...props, children });
21
+ }
22
+ );
23
+ TableContainer.displayName = "TableContainer";
24
+ const TableHead = React.forwardRef(
25
+ ({ children, ...props }, ref) => {
26
+ return /* @__PURE__ */ jsxRuntime.jsx(MuiTableHead, { ref, ...props, children });
27
+ }
28
+ );
29
+ TableHead.displayName = "TableHead";
30
+ const TableBody = React.forwardRef(
31
+ ({ children, ...props }, ref) => {
32
+ return /* @__PURE__ */ jsxRuntime.jsx(MuiTableBody, { ref, ...props, children });
33
+ }
34
+ );
35
+ TableBody.displayName = "TableBody";
36
+ const TableFooter = React.forwardRef(
37
+ ({ children, ...props }, ref) => {
38
+ return /* @__PURE__ */ jsxRuntime.jsx(MuiTableFooter, { ref, ...props, children });
39
+ }
40
+ );
41
+ TableFooter.displayName = "TableFooter";
42
+ const TableRowBase = React.forwardRef(
43
+ ({ children, selected = false, hover = false, ...props }, ref) => {
44
+ return /* @__PURE__ */ jsxRuntime.jsx(MuiTableRow, { ref, selected, hover, ...props, children });
45
+ }
46
+ );
47
+ const TableRow = React.memo(TableRowBase);
48
+ TableRow.displayName = "TableRow";
49
+ const TableCellBase = React.forwardRef(
50
+ ({
51
+ children,
52
+ align = "left",
53
+ padding = "normal",
54
+ size = "medium",
55
+ variant,
56
+ colSpan,
57
+ rowSpan,
58
+ sortDirection,
59
+ ...props
60
+ }, ref) => {
61
+ return /* @__PURE__ */ jsxRuntime.jsx(
62
+ MuiTableCell,
63
+ {
64
+ ref,
65
+ align,
66
+ padding,
67
+ size,
68
+ variant,
69
+ colSpan,
70
+ rowSpan,
71
+ sortDirection,
72
+ ...props,
73
+ children
74
+ }
75
+ );
76
+ }
77
+ );
78
+ const TableCell = React.memo(TableCellBase);
79
+ TableCell.displayName = "TableCell";
80
+ exports.Table = Table;
81
+ exports.TableBody = TableBody;
82
+ exports.TableCell = TableCell;
83
+ exports.TableContainer = TableContainer;
84
+ exports.TableFooter = TableFooter;
85
+ exports.TableHead = TableHead;
86
+ exports.TableRow = TableRow;
87
+ //# sourceMappingURL=Table-BWJUQgDY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table-BWJUQgDY.js","sources":["../src/components/molecules/Table/Table.tsx"],"sourcesContent":["/**\n * Table Component\n * @package @mrs/ui\n *\n * Displays data in rows and columns.\n * Tables organize information in a way that's easy to scan and compare.\n *\n * @example\n * ```tsx\n * <TableContainer component={Paper}>\n * <Table>\n * <TableHead>\n * <TableRow>\n * <TableCell>Name</TableCell>\n * <TableCell>Email</TableCell>\n * </TableRow>\n * </TableHead>\n * <TableBody>\n * <TableRow>\n * <TableCell>John Doe</TableCell>\n * <TableCell>john@example.com</TableCell>\n * </TableRow>\n * </TableBody>\n * </Table>\n * </TableContainer>\n * ```\n */\n\nimport React from 'react';\nimport MuiTable from '@mui/material/Table';\nimport MuiTableContainer from '@mui/material/TableContainer';\nimport MuiTableHead from '@mui/material/TableHead';\nimport MuiTableBody from '@mui/material/TableBody';\nimport MuiTableFooter from '@mui/material/TableFooter';\nimport MuiTableRow from '@mui/material/TableRow';\nimport MuiTableCell from '@mui/material/TableCell';\nimport type {\n TableProps,\n TableContainerProps,\n TableHeadProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableCellProps,\n} from './Table.types';\n\n/**\n * Table component for displaying tabular data\n * \n * Memoized for performance with large datasets.\n * Re-renders only when props change.\n */\nconst TableBase = React.forwardRef<HTMLTableElement, TableProps>(\n ({ children, size = 'medium', stickyHeader = false, padding = 'normal', ...props }, ref) => {\n return (\n <MuiTable ref={ref} size={size} stickyHeader={stickyHeader} padding={padding} {...props}>\n {children}\n </MuiTable>\n );\n }\n);\n\nexport const Table = React.memo(TableBase);\nTable.displayName = 'Table';\n\n/**\n * TableContainer component - wrapper for Table with scroll support\n */\nexport const TableContainer = React.forwardRef<HTMLDivElement, TableContainerProps>(\n ({ children, ...props }, ref) => {\n return (\n <MuiTableContainer ref={ref} {...props}>\n {children}\n </MuiTableContainer>\n );\n }\n);\n\nTableContainer.displayName = 'TableContainer';\n\n/**\n * TableHead component - table header section\n */\nexport const TableHead = React.forwardRef<HTMLTableSectionElement, TableHeadProps>(\n ({ children, ...props }, ref) => {\n return (\n <MuiTableHead ref={ref} {...props}>\n {children}\n </MuiTableHead>\n );\n }\n);\n\nTableHead.displayName = 'TableHead';\n\n/**\n * TableBody component - table body section\n */\nexport const TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>(\n ({ children, ...props }, ref) => {\n return (\n <MuiTableBody ref={ref} {...props}>\n {children}\n </MuiTableBody>\n );\n }\n);\n\nTableBody.displayName = 'TableBody';\n\n/**\n * TableFooter component - table footer section\n */\nexport const TableFooter = React.forwardRef<HTMLTableSectionElement, TableFooterProps>(\n ({ children, ...props }, ref) => {\n return (\n <MuiTableFooter ref={ref} {...props}>\n {children}\n </MuiTableFooter>\n );\n }\n);\n\nTableFooter.displayName = 'TableFooter';\n\n/**\n * TableRow component - row in a table\n * \n * Memoized to prevent unnecessary re-renders in large tables.\n */\nconst TableRowBase = React.forwardRef<HTMLTableRowElement, TableRowProps>(\n ({ children, selected = false, hover = false, ...props }, ref) => {\n return (\n <MuiTableRow ref={ref} selected={selected} hover={hover} {...props}>\n {children}\n </MuiTableRow>\n );\n }\n);\n\nexport const TableRow = React.memo(TableRowBase);\nTableRow.displayName = 'TableRow';\n\n/**\n * TableCell component - cell in a table row\n * \n * Memoized to optimize rendering of large tables with many cells.\n */\nconst TableCellBase = React.forwardRef<HTMLTableCellElement, TableCellProps>(\n (\n {\n children,\n align = 'left',\n padding = 'normal',\n size = 'medium',\n variant,\n colSpan,\n rowSpan,\n sortDirection,\n ...props\n },\n ref\n ) => {\n return (\n <MuiTableCell\n ref={ref}\n align={align}\n padding={padding}\n size={size}\n variant={variant}\n colSpan={colSpan}\n rowSpan={rowSpan}\n sortDirection={sortDirection}\n {...props}\n >\n {children}\n </MuiTableCell>\n );\n }\n);\n\nexport const TableCell = React.memo(TableCellBase);\nTableCell.displayName = 'TableCell';\n\nexport default Table;\n"],"names":["jsx"],"mappings":";;;;;;;;;;AAoDA,MAAM,YAAY,MAAM;AAAA,EACtB,CAAC,EAAE,UAAU,OAAO,UAAU,eAAe,OAAO,UAAU,UAAU,GAAG,MAAA,GAAS,QAAQ;AAC1F,WACEA,2BAAAA,IAAC,YAAS,KAAU,MAAY,cAA4B,SAAmB,GAAG,OAC/E,UACH;AAAA,EAEJ;AACF;AAEO,MAAM,QAAQ,MAAM,KAAK,SAAS;AACzC,MAAM,cAAc;AAKb,MAAM,iBAAiB,MAAM;AAAA,EAClC,CAAC,EAAE,UAAU,GAAG,MAAA,GAAS,QAAQ;AAC/B,WACEA,2BAAAA,IAAC,mBAAA,EAAkB,KAAW,GAAG,OAC9B,UACH;AAAA,EAEJ;AACF;AAEA,eAAe,cAAc;AAKtB,MAAM,YAAY,MAAM;AAAA,EAC7B,CAAC,EAAE,UAAU,GAAG,MAAA,GAAS,QAAQ;AAC/B,WACEA,2BAAAA,IAAC,cAAA,EAAa,KAAW,GAAG,OACzB,UACH;AAAA,EAEJ;AACF;AAEA,UAAU,cAAc;AAKjB,MAAM,YAAY,MAAM;AAAA,EAC7B,CAAC,EAAE,UAAU,GAAG,MAAA,GAAS,QAAQ;AAC/B,WACEA,2BAAAA,IAAC,cAAA,EAAa,KAAW,GAAG,OACzB,UACH;AAAA,EAEJ;AACF;AAEA,UAAU,cAAc;AAKjB,MAAM,cAAc,MAAM;AAAA,EAC/B,CAAC,EAAE,UAAU,GAAG,MAAA,GAAS,QAAQ;AAC/B,WACEA,2BAAAA,IAAC,gBAAA,EAAe,KAAW,GAAG,OAC3B,UACH;AAAA,EAEJ;AACF;AAEA,YAAY,cAAc;AAO1B,MAAM,eAAe,MAAM;AAAA,EACzB,CAAC,EAAE,UAAU,WAAW,OAAO,QAAQ,OAAO,GAAG,MAAA,GAAS,QAAQ;AAChE,0CACG,aAAA,EAAY,KAAU,UAAoB,OAAe,GAAG,OAC1D,UACH;AAAA,EAEJ;AACF;AAEO,MAAM,WAAW,MAAM,KAAK,YAAY;AAC/C,SAAS,cAAc;AAOvB,MAAM,gBAAgB,MAAM;AAAA,EAC1B,CACE;AAAA,IACE;AAAA,IACA,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QACG;AACH,WACEA,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACC,GAAG;AAAA,QAEH;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEO,MAAM,YAAY,MAAM,KAAK,aAAa;AACjD,UAAU,cAAc;;;;;;;;"}
@@ -0,0 +1,88 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import MuiTable from "@mui/material/Table";
4
+ import MuiTableContainer from "@mui/material/TableContainer";
5
+ import MuiTableHead from "@mui/material/TableHead";
6
+ import MuiTableBody from "@mui/material/TableBody";
7
+ import MuiTableFooter from "@mui/material/TableFooter";
8
+ import MuiTableRow from "@mui/material/TableRow";
9
+ import MuiTableCell from "@mui/material/TableCell";
10
+ const TableBase = React.forwardRef(
11
+ ({ children, size = "medium", stickyHeader = false, padding = "normal", ...props }, ref) => {
12
+ return /* @__PURE__ */ jsx(MuiTable, { ref, size, stickyHeader, padding, ...props, children });
13
+ }
14
+ );
15
+ const Table = React.memo(TableBase);
16
+ Table.displayName = "Table";
17
+ const TableContainer = React.forwardRef(
18
+ ({ children, ...props }, ref) => {
19
+ return /* @__PURE__ */ jsx(MuiTableContainer, { ref, ...props, children });
20
+ }
21
+ );
22
+ TableContainer.displayName = "TableContainer";
23
+ const TableHead = React.forwardRef(
24
+ ({ children, ...props }, ref) => {
25
+ return /* @__PURE__ */ jsx(MuiTableHead, { ref, ...props, children });
26
+ }
27
+ );
28
+ TableHead.displayName = "TableHead";
29
+ const TableBody = React.forwardRef(
30
+ ({ children, ...props }, ref) => {
31
+ return /* @__PURE__ */ jsx(MuiTableBody, { ref, ...props, children });
32
+ }
33
+ );
34
+ TableBody.displayName = "TableBody";
35
+ const TableFooter = React.forwardRef(
36
+ ({ children, ...props }, ref) => {
37
+ return /* @__PURE__ */ jsx(MuiTableFooter, { ref, ...props, children });
38
+ }
39
+ );
40
+ TableFooter.displayName = "TableFooter";
41
+ const TableRowBase = React.forwardRef(
42
+ ({ children, selected = false, hover = false, ...props }, ref) => {
43
+ return /* @__PURE__ */ jsx(MuiTableRow, { ref, selected, hover, ...props, children });
44
+ }
45
+ );
46
+ const TableRow = React.memo(TableRowBase);
47
+ TableRow.displayName = "TableRow";
48
+ const TableCellBase = React.forwardRef(
49
+ ({
50
+ children,
51
+ align = "left",
52
+ padding = "normal",
53
+ size = "medium",
54
+ variant,
55
+ colSpan,
56
+ rowSpan,
57
+ sortDirection,
58
+ ...props
59
+ }, ref) => {
60
+ return /* @__PURE__ */ jsx(
61
+ MuiTableCell,
62
+ {
63
+ ref,
64
+ align,
65
+ padding,
66
+ size,
67
+ variant,
68
+ colSpan,
69
+ rowSpan,
70
+ sortDirection,
71
+ ...props,
72
+ children
73
+ }
74
+ );
75
+ }
76
+ );
77
+ const TableCell = React.memo(TableCellBase);
78
+ TableCell.displayName = "TableCell";
79
+ export {
80
+ Table as T,
81
+ TableContainer as a,
82
+ TableHead as b,
83
+ TableBody as c,
84
+ TableFooter as d,
85
+ TableRow as e,
86
+ TableCell as f
87
+ };
88
+ //# sourceMappingURL=Table-BrEk_oGh.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table-BrEk_oGh.mjs","sources":["../src/components/molecules/Table/Table.tsx"],"sourcesContent":["/**\n * Table Component\n * @package @mrs/ui\n *\n * Displays data in rows and columns.\n * Tables organize information in a way that's easy to scan and compare.\n *\n * @example\n * ```tsx\n * <TableContainer component={Paper}>\n * <Table>\n * <TableHead>\n * <TableRow>\n * <TableCell>Name</TableCell>\n * <TableCell>Email</TableCell>\n * </TableRow>\n * </TableHead>\n * <TableBody>\n * <TableRow>\n * <TableCell>John Doe</TableCell>\n * <TableCell>john@example.com</TableCell>\n * </TableRow>\n * </TableBody>\n * </Table>\n * </TableContainer>\n * ```\n */\n\nimport React from 'react';\nimport MuiTable from '@mui/material/Table';\nimport MuiTableContainer from '@mui/material/TableContainer';\nimport MuiTableHead from '@mui/material/TableHead';\nimport MuiTableBody from '@mui/material/TableBody';\nimport MuiTableFooter from '@mui/material/TableFooter';\nimport MuiTableRow from '@mui/material/TableRow';\nimport MuiTableCell from '@mui/material/TableCell';\nimport type {\n TableProps,\n TableContainerProps,\n TableHeadProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableCellProps,\n} from './Table.types';\n\n/**\n * Table component for displaying tabular data\n * \n * Memoized for performance with large datasets.\n * Re-renders only when props change.\n */\nconst TableBase = React.forwardRef<HTMLTableElement, TableProps>(\n ({ children, size = 'medium', stickyHeader = false, padding = 'normal', ...props }, ref) => {\n return (\n <MuiTable ref={ref} size={size} stickyHeader={stickyHeader} padding={padding} {...props}>\n {children}\n </MuiTable>\n );\n }\n);\n\nexport const Table = React.memo(TableBase);\nTable.displayName = 'Table';\n\n/**\n * TableContainer component - wrapper for Table with scroll support\n */\nexport const TableContainer = React.forwardRef<HTMLDivElement, TableContainerProps>(\n ({ children, ...props }, ref) => {\n return (\n <MuiTableContainer ref={ref} {...props}>\n {children}\n </MuiTableContainer>\n );\n }\n);\n\nTableContainer.displayName = 'TableContainer';\n\n/**\n * TableHead component - table header section\n */\nexport const TableHead = React.forwardRef<HTMLTableSectionElement, TableHeadProps>(\n ({ children, ...props }, ref) => {\n return (\n <MuiTableHead ref={ref} {...props}>\n {children}\n </MuiTableHead>\n );\n }\n);\n\nTableHead.displayName = 'TableHead';\n\n/**\n * TableBody component - table body section\n */\nexport const TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>(\n ({ children, ...props }, ref) => {\n return (\n <MuiTableBody ref={ref} {...props}>\n {children}\n </MuiTableBody>\n );\n }\n);\n\nTableBody.displayName = 'TableBody';\n\n/**\n * TableFooter component - table footer section\n */\nexport const TableFooter = React.forwardRef<HTMLTableSectionElement, TableFooterProps>(\n ({ children, ...props }, ref) => {\n return (\n <MuiTableFooter ref={ref} {...props}>\n {children}\n </MuiTableFooter>\n );\n }\n);\n\nTableFooter.displayName = 'TableFooter';\n\n/**\n * TableRow component - row in a table\n * \n * Memoized to prevent unnecessary re-renders in large tables.\n */\nconst TableRowBase = React.forwardRef<HTMLTableRowElement, TableRowProps>(\n ({ children, selected = false, hover = false, ...props }, ref) => {\n return (\n <MuiTableRow ref={ref} selected={selected} hover={hover} {...props}>\n {children}\n </MuiTableRow>\n );\n }\n);\n\nexport const TableRow = React.memo(TableRowBase);\nTableRow.displayName = 'TableRow';\n\n/**\n * TableCell component - cell in a table row\n * \n * Memoized to optimize rendering of large tables with many cells.\n */\nconst TableCellBase = React.forwardRef<HTMLTableCellElement, TableCellProps>(\n (\n {\n children,\n align = 'left',\n padding = 'normal',\n size = 'medium',\n variant,\n colSpan,\n rowSpan,\n sortDirection,\n ...props\n },\n ref\n ) => {\n return (\n <MuiTableCell\n ref={ref}\n align={align}\n padding={padding}\n size={size}\n variant={variant}\n colSpan={colSpan}\n rowSpan={rowSpan}\n sortDirection={sortDirection}\n {...props}\n >\n {children}\n </MuiTableCell>\n );\n }\n);\n\nexport const TableCell = React.memo(TableCellBase);\nTableCell.displayName = 'TableCell';\n\nexport default Table;\n"],"names":[],"mappings":";;;;;;;;;AAoDA,MAAM,YAAY,MAAM;AAAA,EACtB,CAAC,EAAE,UAAU,OAAO,UAAU,eAAe,OAAO,UAAU,UAAU,GAAG,MAAA,GAAS,QAAQ;AAC1F,WACE,oBAAC,YAAS,KAAU,MAAY,cAA4B,SAAmB,GAAG,OAC/E,UACH;AAAA,EAEJ;AACF;AAEO,MAAM,QAAQ,MAAM,KAAK,SAAS;AACzC,MAAM,cAAc;AAKb,MAAM,iBAAiB,MAAM;AAAA,EAClC,CAAC,EAAE,UAAU,GAAG,MAAA,GAAS,QAAQ;AAC/B,WACE,oBAAC,mBAAA,EAAkB,KAAW,GAAG,OAC9B,UACH;AAAA,EAEJ;AACF;AAEA,eAAe,cAAc;AAKtB,MAAM,YAAY,MAAM;AAAA,EAC7B,CAAC,EAAE,UAAU,GAAG,MAAA,GAAS,QAAQ;AAC/B,WACE,oBAAC,cAAA,EAAa,KAAW,GAAG,OACzB,UACH;AAAA,EAEJ;AACF;AAEA,UAAU,cAAc;AAKjB,MAAM,YAAY,MAAM;AAAA,EAC7B,CAAC,EAAE,UAAU,GAAG,MAAA,GAAS,QAAQ;AAC/B,WACE,oBAAC,cAAA,EAAa,KAAW,GAAG,OACzB,UACH;AAAA,EAEJ;AACF;AAEA,UAAU,cAAc;AAKjB,MAAM,cAAc,MAAM;AAAA,EAC/B,CAAC,EAAE,UAAU,GAAG,MAAA,GAAS,QAAQ;AAC/B,WACE,oBAAC,gBAAA,EAAe,KAAW,GAAG,OAC3B,UACH;AAAA,EAEJ;AACF;AAEA,YAAY,cAAc;AAO1B,MAAM,eAAe,MAAM;AAAA,EACzB,CAAC,EAAE,UAAU,WAAW,OAAO,QAAQ,OAAO,GAAG,MAAA,GAAS,QAAQ;AAChE,+BACG,aAAA,EAAY,KAAU,UAAoB,OAAe,GAAG,OAC1D,UACH;AAAA,EAEJ;AACF;AAEO,MAAM,WAAW,MAAM,KAAK,YAAY;AAC/C,SAAS,cAAc;AAOvB,MAAM,gBAAgB,MAAM;AAAA,EAC1B,CACE;AAAA,IACE;AAAA,IACA,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QACG;AACH,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACC,GAAG;AAAA,QAEH;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEO,MAAM,YAAY,MAAM,KAAK,aAAa;AACjD,UAAU,cAAc;"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const React = require("react");
4
+ const TimePicker$1 = require("@mui/x-date-pickers/TimePicker");
5
+ const TimePicker = React.forwardRef((props, ref) => {
6
+ const { slotProps, ...rest } = props;
7
+ return /* @__PURE__ */ jsxRuntime.jsx(
8
+ TimePicker$1.TimePicker,
9
+ {
10
+ ref,
11
+ slotProps: {
12
+ textField: {
13
+ fullWidth: true,
14
+ ...slotProps?.textField
15
+ },
16
+ ...slotProps
17
+ },
18
+ ...rest
19
+ }
20
+ );
21
+ });
22
+ TimePicker.displayName = "TimePicker";
23
+ exports.TimePicker = TimePicker;
24
+ //# sourceMappingURL=TimePicker-BCpPRTJI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimePicker-BCpPRTJI.js","sources":["../src/components/molecules/TimePicker/TimePicker.tsx"],"sourcesContent":["/**\n * TimePicker Component\n *\n * Implements the MRS TimePicker using MUI X Date Pickers with design tokens.\n * Supports both 12-hour and 24-hour time formats with proper theme integration.\n *\n * @see https://mui.com/x/react-date-pickers/time-picker/\n */\n\nimport React from 'react';\nimport { TimePicker as MuiTimePicker } from '@mui/x-date-pickers/TimePicker';\nimport type { TimePickerProps } from './TimePicker.types';\n\n/**\n * TimePicker component for selecting time\n * Wraps MUI X TimePicker with MRS design tokens and theme integration\n */\nexport const TimePicker = React.forwardRef<HTMLDivElement, TimePickerProps>((props, ref) => {\n const { slotProps, ...rest } = props;\n\n return (\n <MuiTimePicker\n ref={ref}\n slotProps={{\n textField: {\n fullWidth: true,\n ...slotProps?.textField,\n },\n ...slotProps,\n }}\n {...rest}\n />\n );\n});\n\nTimePicker.displayName = 'TimePicker';\n\nexport default TimePicker;\n"],"names":["jsx","MuiTimePicker"],"mappings":";;;;AAiBO,MAAM,aAAa,MAAM,WAA4C,CAAC,OAAO,QAAQ;AAC1F,QAAM,EAAE,WAAW,GAAG,KAAA,IAAS;AAE/B,SACEA,2BAAAA;AAAAA,IAACC,aAAAA;AAAAA,IAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT,WAAW;AAAA,UACT,WAAW;AAAA,UACX,GAAG,WAAW;AAAA,QAAA;AAAA,QAEhB,GAAG;AAAA,MAAA;AAAA,MAEJ,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;AAED,WAAW,cAAc;;"}
@@ -0,0 +1,25 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { TimePicker as TimePicker$1 } from "@mui/x-date-pickers/TimePicker";
4
+ const TimePicker = React.forwardRef((props, ref) => {
5
+ const { slotProps, ...rest } = props;
6
+ return /* @__PURE__ */ jsx(
7
+ TimePicker$1,
8
+ {
9
+ ref,
10
+ slotProps: {
11
+ textField: {
12
+ fullWidth: true,
13
+ ...slotProps?.textField
14
+ },
15
+ ...slotProps
16
+ },
17
+ ...rest
18
+ }
19
+ );
20
+ });
21
+ TimePicker.displayName = "TimePicker";
22
+ export {
23
+ TimePicker as T
24
+ };
25
+ //# sourceMappingURL=TimePicker-Bt5plyjC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimePicker-Bt5plyjC.mjs","sources":["../src/components/molecules/TimePicker/TimePicker.tsx"],"sourcesContent":["/**\n * TimePicker Component\n *\n * Implements the MRS TimePicker using MUI X Date Pickers with design tokens.\n * Supports both 12-hour and 24-hour time formats with proper theme integration.\n *\n * @see https://mui.com/x/react-date-pickers/time-picker/\n */\n\nimport React from 'react';\nimport { TimePicker as MuiTimePicker } from '@mui/x-date-pickers/TimePicker';\nimport type { TimePickerProps } from './TimePicker.types';\n\n/**\n * TimePicker component for selecting time\n * Wraps MUI X TimePicker with MRS design tokens and theme integration\n */\nexport const TimePicker = React.forwardRef<HTMLDivElement, TimePickerProps>((props, ref) => {\n const { slotProps, ...rest } = props;\n\n return (\n <MuiTimePicker\n ref={ref}\n slotProps={{\n textField: {\n fullWidth: true,\n ...slotProps?.textField,\n },\n ...slotProps,\n }}\n {...rest}\n />\n );\n});\n\nTimePicker.displayName = 'TimePicker';\n\nexport default TimePicker;\n"],"names":["MuiTimePicker"],"mappings":";;;AAiBO,MAAM,aAAa,MAAM,WAA4C,CAAC,OAAO,QAAQ;AAC1F,QAAM,EAAE,WAAW,GAAG,KAAA,IAAS;AAE/B,SACE;AAAA,IAACA;AAAAA,IAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT,WAAW;AAAA,UACT,WAAW;AAAA,UACX,GAAG,WAAW;AAAA,QAAA;AAAA,QAEhB,GAAG;AAAA,MAAA;AAAA,MAEJ,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;AAED,WAAW,cAAc;"}