@fairmint/ui 0.3.6 → 0.3.7

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.
@@ -10,19 +10,7 @@ function DetailDrawer({
10
10
  size = "md",
11
11
  ...rest
12
12
  }) {
13
- return /* @__PURE__ */ jsxRuntime.jsx(
14
- Drawer.Drawer,
15
- {
16
- opened,
17
- onClose,
18
- title,
19
- position: "right",
20
- size,
21
- p: "lg",
22
- ...rest,
23
- children
24
- }
25
- );
13
+ return /* @__PURE__ */ jsxRuntime.jsx(Drawer.Drawer, { opened, onClose, title, position: "right", size, ...rest, children });
26
14
  }
27
15
  exports.DetailDrawer = DetailDrawer;
28
16
  //# sourceMappingURL=DetailDrawer.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DetailDrawer.cjs","sources":["../../../../src/components/generic/DetailDrawer/DetailDrawer.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Drawer, type DrawerProps } from \"../../primitives/Drawer/Drawer\";\n\nexport interface DetailDrawerProps extends Omit<DrawerProps, \"title\"> {\n /** Drawer title shown in the header. Accepts ReactNode for flexibility (layout component). */\n title: ReactNode;\n /** Whether the drawer is open. */\n opened: boolean;\n /** Close callback. */\n onClose: () => void;\n /** Drawer content. */\n children: ReactNode;\n /** Drawer width. @default \"md\" */\n size?: DrawerProps[\"size\"];\n}\n\nexport function DetailDrawer({\n title,\n opened,\n onClose,\n children,\n size = \"md\",\n ...rest\n}: DetailDrawerProps) {\n return (\n <Drawer\n opened={opened}\n onClose={onClose}\n title={title}\n position=\"right\"\n size={size}\n p=\"lg\"\n {...rest}\n >\n {children}\n </Drawer>\n );\n}\n"],"names":["jsx","Drawer"],"mappings":";;;;AAgBO,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,GAAsB;AACpB,SACEA,2BAAAA;AAAAA,IAACC,OAAAA;AAAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAS;AAAA,MACT;AAAA,MACA,GAAE;AAAA,MACD,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EAAA;AAGP;;"}
1
+ {"version":3,"file":"DetailDrawer.cjs","sources":["../../../../src/components/generic/DetailDrawer/DetailDrawer.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Drawer, type DrawerProps } from \"../../primitives/Drawer/Drawer\";\n\nexport interface DetailDrawerProps extends Omit<DrawerProps, \"title\"> {\n /** Drawer title shown in the header. Accepts ReactNode for flexibility (layout component). */\n title: ReactNode;\n /** Whether the drawer is open. */\n opened: boolean;\n /** Close callback. */\n onClose: () => void;\n /** Drawer content. */\n children: ReactNode;\n /** Drawer width. @default \"md\" */\n size?: DrawerProps[\"size\"];\n}\n\nexport function DetailDrawer({\n title,\n opened,\n onClose,\n children,\n size = \"md\",\n ...rest\n}: DetailDrawerProps) {\n return (\n <Drawer opened={opened} onClose={onClose} title={title} position=\"right\" size={size} {...rest}>\n {children}\n </Drawer>\n );\n}\n"],"names":["jsx","Drawer"],"mappings":";;;;AAgBO,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,GAAsB;AACpB,SACEA,+BAACC,OAAAA,QAAA,EAAO,QAAgB,SAAkB,OAAc,UAAS,SAAQ,MAAa,GAAG,MACtF,SAAA,CACH;AAEJ;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DetailDrawer.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/DetailDrawer/DetailDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE1E,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;IACnE,8FAA8F;IAC9F,KAAK,EAAE,SAAS,CAAC;IACjB,kCAAkC;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,sBAAsB;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sBAAsB;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,kCAAkC;IAClC,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,OAAO,EACP,QAAQ,EACR,IAAW,EACX,GAAG,IAAI,EACR,EAAE,iBAAiB,2CAcnB"}
1
+ {"version":3,"file":"DetailDrawer.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/DetailDrawer/DetailDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE1E,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;IACnE,8FAA8F;IAC9F,KAAK,EAAE,SAAS,CAAC;IACjB,kCAAkC;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,sBAAsB;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sBAAsB;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,kCAAkC;IAClC,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,OAAO,EACP,QAAQ,EACR,IAAW,EACX,GAAG,IAAI,EACR,EAAE,iBAAiB,2CAMnB"}
@@ -8,19 +8,7 @@ function DetailDrawer({
8
8
  size = "md",
9
9
  ...rest
10
10
  }) {
11
- return /* @__PURE__ */ jsx(
12
- Drawer,
13
- {
14
- opened,
15
- onClose,
16
- title,
17
- position: "right",
18
- size,
19
- p: "lg",
20
- ...rest,
21
- children
22
- }
23
- );
11
+ return /* @__PURE__ */ jsx(Drawer, { opened, onClose, title, position: "right", size, ...rest, children });
24
12
  }
25
13
  export {
26
14
  DetailDrawer
@@ -1 +1 @@
1
- {"version":3,"file":"DetailDrawer.js","sources":["../../../../src/components/generic/DetailDrawer/DetailDrawer.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Drawer, type DrawerProps } from \"../../primitives/Drawer/Drawer\";\n\nexport interface DetailDrawerProps extends Omit<DrawerProps, \"title\"> {\n /** Drawer title shown in the header. Accepts ReactNode for flexibility (layout component). */\n title: ReactNode;\n /** Whether the drawer is open. */\n opened: boolean;\n /** Close callback. */\n onClose: () => void;\n /** Drawer content. */\n children: ReactNode;\n /** Drawer width. @default \"md\" */\n size?: DrawerProps[\"size\"];\n}\n\nexport function DetailDrawer({\n title,\n opened,\n onClose,\n children,\n size = \"md\",\n ...rest\n}: DetailDrawerProps) {\n return (\n <Drawer\n opened={opened}\n onClose={onClose}\n title={title}\n position=\"right\"\n size={size}\n p=\"lg\"\n {...rest}\n >\n {children}\n </Drawer>\n );\n}\n"],"names":[],"mappings":";;AAgBO,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,GAAsB;AACpB,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAS;AAAA,MACT;AAAA,MACA,GAAE;AAAA,MACD,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EAAA;AAGP;"}
1
+ {"version":3,"file":"DetailDrawer.js","sources":["../../../../src/components/generic/DetailDrawer/DetailDrawer.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Drawer, type DrawerProps } from \"../../primitives/Drawer/Drawer\";\n\nexport interface DetailDrawerProps extends Omit<DrawerProps, \"title\"> {\n /** Drawer title shown in the header. Accepts ReactNode for flexibility (layout component). */\n title: ReactNode;\n /** Whether the drawer is open. */\n opened: boolean;\n /** Close callback. */\n onClose: () => void;\n /** Drawer content. */\n children: ReactNode;\n /** Drawer width. @default \"md\" */\n size?: DrawerProps[\"size\"];\n}\n\nexport function DetailDrawer({\n title,\n opened,\n onClose,\n children,\n size = \"md\",\n ...rest\n}: DetailDrawerProps) {\n return (\n <Drawer opened={opened} onClose={onClose} title={title} position=\"right\" size={size} {...rest}>\n {children}\n </Drawer>\n );\n}\n"],"names":[],"mappings":";;AAgBO,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,GAAsB;AACpB,SACE,oBAAC,QAAA,EAAO,QAAgB,SAAkB,OAAc,UAAS,SAAQ,MAAa,GAAG,MACtF,SAAA,CACH;AAEJ;"}
@@ -4,7 +4,16 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const zIndex = require("../../../theme/zIndex.cjs");
5
5
  const Drawer$1 = require("../../../node_modules/@mantine/core/esm/components/Drawer/Drawer.cjs");
6
6
  function Drawer({ zIndex: zIndex$1 = zIndex.overlayZIndexAboveLegacyShell, ...props }) {
7
- return /* @__PURE__ */ jsxRuntime.jsx(Drawer$1.Drawer, { position: "right", size: "lg", p: "lg", ...props, zIndex: zIndex$1 });
7
+ return /* @__PURE__ */ jsxRuntime.jsx(
8
+ Drawer$1.Drawer,
9
+ {
10
+ position: "right",
11
+ size: "lg",
12
+ padding: "lg",
13
+ ...props,
14
+ zIndex: zIndex$1
15
+ }
16
+ );
8
17
  }
9
18
  exports.Drawer = Drawer;
10
19
  //# sourceMappingURL=Drawer.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.cjs","sources":["../../../../src/components/primitives/Drawer/Drawer.tsx"],"sourcesContent":["import { Drawer as MantineDrawer, type DrawerProps as MantineDrawerProps } from \"@mantine/core\";\n\nimport { overlayZIndexAboveLegacyShell } from \"../../../theme/zIndex\";\n\nexport interface DrawerProps extends MantineDrawerProps {}\n\nexport function Drawer({ zIndex = overlayZIndexAboveLegacyShell, ...props }: DrawerProps) {\n return <MantineDrawer position=\"right\" size=\"lg\" p=\"lg\" {...props} zIndex={zIndex} />;\n}\n"],"names":["zIndex","overlayZIndexAboveLegacyShell","jsx","MantineDrawer"],"mappings":";;;;;AAMO,SAAS,OAAO,EAAA,QAAEA,WAASC,sCAA+B,GAAG,SAAsB;AACxF,SAAOC,+BAACC,SAAAA,QAAA,EAAc,UAAS,SAAQ,MAAK,MAAK,GAAE,MAAM,GAAG,OAAA,QAAOH,SAAA,CAAgB;AACrF;;"}
1
+ {"version":3,"file":"Drawer.cjs","sources":["../../../../src/components/primitives/Drawer/Drawer.tsx"],"sourcesContent":["import { Drawer as MantineDrawer, type DrawerProps as MantineDrawerProps } from \"@mantine/core\";\n\nimport { overlayZIndexAboveLegacyShell } from \"../../../theme/zIndex\";\n\nexport interface DrawerProps extends MantineDrawerProps {}\n\nexport function Drawer({ zIndex = overlayZIndexAboveLegacyShell, ...props }: DrawerProps) {\n return (\n <MantineDrawer\n position=\"right\"\n size=\"lg\"\n // `padding` (content/header/footer spacing) is not the same prop as the\n // Box style-shorthand `p`. Passing `p` here applies literal CSS padding to\n // the drawer's position: fixed, width: 100% root wrapper, which shifts its\n // static-position offset without shrinking its width — pushing the drawer\n // past the viewport's right edge by the padding amount.\n padding=\"lg\"\n {...props}\n zIndex={zIndex}\n />\n );\n}\n"],"names":["zIndex","overlayZIndexAboveLegacyShell","jsx","MantineDrawer"],"mappings":";;;;;AAMO,SAAS,OAAO,EAAA,QAAEA,WAASC,sCAA+B,GAAG,SAAsB;AACxF,SACEC,2BAAAA;AAAAA,IAACC,SAAAA;AAAAA,IAAA;AAAA,MACC,UAAS;AAAA,MACT,MAAK;AAAA,MAML,SAAQ;AAAA,MACP,GAAG;AAAA,MAAA,QACJH;AAAAA,IAAA;AAAA,EAAA;AAGN;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAIhG,MAAM,WAAW,WAAY,SAAQ,kBAAkB;CAAG;AAE1D,wBAAgB,MAAM,CAAC,EAAE,MAAsC,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAEvF"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAIhG,MAAM,WAAW,WAAY,SAAQ,kBAAkB;CAAG;AAE1D,wBAAgB,MAAM,CAAC,EAAE,MAAsC,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAevF"}
@@ -2,7 +2,16 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { overlayZIndexAboveLegacyShell } from "../../../theme/zIndex.js";
3
3
  import { Drawer as Drawer$1 } from "../../../node_modules/@mantine/core/esm/components/Drawer/Drawer.js";
4
4
  function Drawer({ zIndex = overlayZIndexAboveLegacyShell, ...props }) {
5
- return /* @__PURE__ */ jsx(Drawer$1, { position: "right", size: "lg", p: "lg", ...props, zIndex });
5
+ return /* @__PURE__ */ jsx(
6
+ Drawer$1,
7
+ {
8
+ position: "right",
9
+ size: "lg",
10
+ padding: "lg",
11
+ ...props,
12
+ zIndex
13
+ }
14
+ );
6
15
  }
7
16
  export {
8
17
  Drawer
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.js","sources":["../../../../src/components/primitives/Drawer/Drawer.tsx"],"sourcesContent":["import { Drawer as MantineDrawer, type DrawerProps as MantineDrawerProps } from \"@mantine/core\";\n\nimport { overlayZIndexAboveLegacyShell } from \"../../../theme/zIndex\";\n\nexport interface DrawerProps extends MantineDrawerProps {}\n\nexport function Drawer({ zIndex = overlayZIndexAboveLegacyShell, ...props }: DrawerProps) {\n return <MantineDrawer position=\"right\" size=\"lg\" p=\"lg\" {...props} zIndex={zIndex} />;\n}\n"],"names":["MantineDrawer"],"mappings":";;;AAMO,SAAS,OAAO,EAAE,SAAS,+BAA+B,GAAG,SAAsB;AACxF,SAAO,oBAACA,UAAA,EAAc,UAAS,SAAQ,MAAK,MAAK,GAAE,MAAM,GAAG,OAAO,OAAA,CAAgB;AACrF;"}
1
+ {"version":3,"file":"Drawer.js","sources":["../../../../src/components/primitives/Drawer/Drawer.tsx"],"sourcesContent":["import { Drawer as MantineDrawer, type DrawerProps as MantineDrawerProps } from \"@mantine/core\";\n\nimport { overlayZIndexAboveLegacyShell } from \"../../../theme/zIndex\";\n\nexport interface DrawerProps extends MantineDrawerProps {}\n\nexport function Drawer({ zIndex = overlayZIndexAboveLegacyShell, ...props }: DrawerProps) {\n return (\n <MantineDrawer\n position=\"right\"\n size=\"lg\"\n // `padding` (content/header/footer spacing) is not the same prop as the\n // Box style-shorthand `p`. Passing `p` here applies literal CSS padding to\n // the drawer's position: fixed, width: 100% root wrapper, which shifts its\n // static-position offset without shrinking its width — pushing the drawer\n // past the viewport's right edge by the padding amount.\n padding=\"lg\"\n {...props}\n zIndex={zIndex}\n />\n );\n}\n"],"names":["MantineDrawer"],"mappings":";;;AAMO,SAAS,OAAO,EAAE,SAAS,+BAA+B,GAAG,SAAsB;AACxF,SACE;AAAA,IAACA;AAAAA,IAAA;AAAA,MACC,UAAS;AAAA,MACT,MAAK;AAAA,MAML,SAAQ;AAAA,MACP,GAAG;AAAA,MACJ;AAAA,IAAA;AAAA,EAAA;AAGN;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairmint/ui",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "type": "module",
5
5
  "description": "Fairmint design system and UI component library",
6
6
  "license": "UNLICENSED",