@coveord/plasma-mantine 48.17.1 → 48.17.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.
@@ -19,7 +19,7 @@ var useStyles = (0, _core.createStyles)(function() {
19
19
  position: "sticky",
20
20
  bottom: 0,
21
21
  zIndex: 1,
22
- maxHeight: "80px"
22
+ backgroundColor: "white"
23
23
  }
24
24
  };
25
25
  });
@@ -29,20 +29,22 @@ var StickyFooter = function(_param) {
29
29
  "children"
30
30
  ]);
31
31
  var classes = useStyles().classes;
32
- return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_core.Paper, {
33
- className: classes.footer,
32
+ return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
34
33
  children: [
35
34
  borderTop ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_core.Divider, {
36
35
  size: "xs"
37
36
  }) : null,
38
- /*#__PURE__*/ (0, _jsxRuntime.jsx)(_core.Group, _objectSpreadProps(_objectSpread({
39
- position: "right",
40
- spacing: "xs",
41
- py: "md",
42
- px: "xl"
43
- }, others), {
44
- children: children
45
- }))
37
+ /*#__PURE__*/ (0, _jsxRuntime.jsx)(_core.Box, {
38
+ className: classes.footer,
39
+ children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_core.Group, _objectSpreadProps(_objectSpread({
40
+ position: "right",
41
+ spacing: "xs",
42
+ py: "md",
43
+ px: "xl"
44
+ }, others), {
45
+ children: children
46
+ }))
47
+ })
46
48
  ]
47
49
  });
48
50
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/sticky-footer/StickyFooter.tsx"],"sourcesContent":["import {createStyles, DefaultProps, Divider, Group, Paper} from '@mantine/core';\nimport {FunctionComponent, PropsWithChildren} from 'react';\n\nexport interface StickyFooterProps extends DefaultProps {\n /**\n * Whether a border is render on top of the footer\n */\n borderTop?: boolean;\n}\n\nconst useStyles = createStyles(() => ({\n footer: {\n position: 'sticky',\n bottom: 0,\n zIndex: 1,\n maxHeight: '80px',\n },\n}));\n\nexport const StickyFooter: FunctionComponent<PropsWithChildren<StickyFooterProps>> = ({\n borderTop,\n children,\n ...others\n}) => {\n const {classes} = useStyles();\n\n return (\n <Paper className={classes.footer}>\n {borderTop ? <Divider size=\"xs\" /> : null}\n <Group position=\"right\" spacing=\"xs\" py=\"md\" px=\"xl\" {...others}>\n {children}\n </Group>\n </Paper>\n );\n};\n"],"names":["StickyFooter","useStyles","createStyles","footer","position","bottom","zIndex","maxHeight","borderTop","children","others","classes","Paper","className","Divider","size","Group","spacing","py","px"],"mappings":"AAAA;;;;+BAmBaA;;;eAAAA;;;;;;;oBAnBmD;AAUhE,IAAMC,YAAYC,IAAAA,kBAAY,EAAC;WAAO;QAClCC,QAAQ;YACJC,UAAU;YACVC,QAAQ;YACRC,QAAQ;YACRC,WAAW;QACf;IACJ;;AAEO,IAAMP,eAAwE,iBAI/E;QAHFQ,mBAAAA,WACAC,kBAAAA,UACGC;QAFHF;QACAC;;IAGA,IAAM,AAACE,UAAWV,YAAXU;IAEP,qBACI,sBAACC,WAAK;QAACC,WAAWF,QAAQR,MAAM;;YAC3BK,0BAAY,qBAACM,aAAO;gBAACC,MAAK;iBAAU,IAAI;0BACzC,qBAACC,WAAK;gBAACZ,UAAS;gBAAQa,SAAQ;gBAAKC,IAAG;gBAAKC,IAAG;eAAST;0BACpDD;;;;AAIjB"}
1
+ {"version":3,"sources":["../../../../src/components/sticky-footer/StickyFooter.tsx"],"sourcesContent":["import {Box, createStyles, DefaultProps, Divider, Group} from '@mantine/core';\nimport {FunctionComponent, PropsWithChildren} from 'react';\n\nexport interface StickyFooterProps extends DefaultProps {\n /**\n * Whether a border is render on top of the footer\n */\n borderTop?: boolean;\n}\n\nconst useStyles = createStyles(() => ({\n footer: {\n position: 'sticky',\n bottom: 0,\n zIndex: 1,\n backgroundColor: 'white',\n },\n}));\n\nexport const StickyFooter: FunctionComponent<PropsWithChildren<StickyFooterProps>> = ({\n borderTop,\n children,\n ...others\n}) => {\n const {classes} = useStyles();\n\n return (\n <>\n {borderTop ? <Divider size=\"xs\" /> : null}\n <Box className={classes.footer}>\n <Group position=\"right\" spacing=\"xs\" py=\"md\" px=\"xl\" {...others}>\n {children}\n </Group>\n </Box>\n </>\n );\n};\n"],"names":["StickyFooter","useStyles","createStyles","footer","position","bottom","zIndex","backgroundColor","borderTop","children","others","classes","Divider","size","Box","className","Group","spacing","py","px"],"mappings":"AAAA;;;;+BAmBaA;;;eAAAA;;;;;;;oBAnBiD;AAU9D,IAAMC,YAAYC,IAAAA,kBAAY,EAAC;WAAO;QAClCC,QAAQ;YACJC,UAAU;YACVC,QAAQ;YACRC,QAAQ;YACRC,iBAAiB;QACrB;IACJ;;AAEO,IAAMP,eAAwE,iBAI/E;QAHFQ,mBAAAA,WACAC,kBAAAA,UACGC;QAFHF;QACAC;;IAGA,IAAM,AAACE,UAAWV,YAAXU;IAEP,qBACI;;YACKH,0BAAY,qBAACI,aAAO;gBAACC,MAAK;iBAAU,IAAI;0BACzC,qBAACC,SAAG;gBAACC,WAAWJ,QAAQR,MAAM;0BAC1B,cAAA,qBAACa,WAAK;oBAACZ,UAAS;oBAAQa,SAAQ;oBAAKC,IAAG;oBAAKC,IAAG;mBAAST;8BACpDD;;;;;AAKrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"StickyFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/sticky-footer/StickyFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,YAAY,EAAwB,MAAM,eAAe,CAAC;AAChF,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACnD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAWD,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAehF,CAAC"}
1
+ {"version":3,"file":"StickyFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/sticky-footer/StickyFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAiB,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACnD;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAWD,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAiBhF,CAAC"}
@@ -1,15 +1,15 @@
1
1
  import _object_spread from "@swc/helpers/src/_object_spread.mjs";
2
2
  import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs";
3
3
  import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs";
4
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
- import { createStyles, Divider, Group, Paper } from "@mantine/core";
4
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
5
+ import { Box, createStyles, Divider, Group } from "@mantine/core";
6
6
  var useStyles = createStyles(function() {
7
7
  return {
8
8
  footer: {
9
9
  position: "sticky",
10
10
  bottom: 0,
11
11
  zIndex: 1,
12
- maxHeight: "80px"
12
+ backgroundColor: "white"
13
13
  }
14
14
  };
15
15
  });
@@ -19,20 +19,22 @@ export var StickyFooter = function(_param) {
19
19
  "children"
20
20
  ]);
21
21
  var classes = useStyles().classes;
22
- return /*#__PURE__*/ _jsxs(Paper, {
23
- className: classes.footer,
22
+ return /*#__PURE__*/ _jsxs(_Fragment, {
24
23
  children: [
25
24
  borderTop ? /*#__PURE__*/ _jsx(Divider, {
26
25
  size: "xs"
27
26
  }) : null,
28
- /*#__PURE__*/ _jsx(Group, _object_spread_props(_object_spread({
29
- position: "right",
30
- spacing: "xs",
31
- py: "md",
32
- px: "xl"
33
- }, others), {
34
- children: children
35
- }))
27
+ /*#__PURE__*/ _jsx(Box, {
28
+ className: classes.footer,
29
+ children: /*#__PURE__*/ _jsx(Group, _object_spread_props(_object_spread({
30
+ position: "right",
31
+ spacing: "xs",
32
+ py: "md",
33
+ px: "xl"
34
+ }, others), {
35
+ children: children
36
+ }))
37
+ })
36
38
  ]
37
39
  });
38
40
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/sticky-footer/StickyFooter.tsx"],"sourcesContent":["import {createStyles, DefaultProps, Divider, Group, Paper} from '@mantine/core';\nimport {FunctionComponent, PropsWithChildren} from 'react';\n\nexport interface StickyFooterProps extends DefaultProps {\n /**\n * Whether a border is render on top of the footer\n */\n borderTop?: boolean;\n}\n\nconst useStyles = createStyles(() => ({\n footer: {\n position: 'sticky',\n bottom: 0,\n zIndex: 1,\n maxHeight: '80px',\n },\n}));\n\nexport const StickyFooter: FunctionComponent<PropsWithChildren<StickyFooterProps>> = ({\n borderTop,\n children,\n ...others\n}) => {\n const {classes} = useStyles();\n\n return (\n <Paper className={classes.footer}>\n {borderTop ? <Divider size=\"xs\" /> : null}\n <Group position=\"right\" spacing=\"xs\" py=\"md\" px=\"xl\" {...others}>\n {children}\n </Group>\n </Paper>\n );\n};\n"],"names":["createStyles","Divider","Group","Paper","useStyles","footer","position","bottom","zIndex","maxHeight","StickyFooter","borderTop","children","others","classes","className","size","spacing","py","px"],"mappings":"AAAA;;;;AAAA,SAAQA,YAAY,EAAgBC,OAAO,EAAEC,KAAK,EAAEC,KAAK,QAAO,gBAAgB;AAUhF,IAAMC,YAAYJ,aAAa;WAAO;QAClCK,QAAQ;YACJC,UAAU;YACVC,QAAQ;YACRC,QAAQ;YACRC,WAAW;QACf;IACJ;;AAEA,OAAO,IAAMC,eAAwE,iBAI/E;QAHFC,mBAAAA,WACAC,kBAAAA,UACGC;QAFHF;QACAC;;IAGA,IAAM,AAACE,UAAWV,YAAXU;IAEP,qBACI,MAACX;QAAMY,WAAWD,QAAQT,MAAM;;YAC3BM,0BAAY,KAACV;gBAAQe,MAAK;iBAAU,IAAI;0BACzC,KAACd;gBAAMI,UAAS;gBAAQW,SAAQ;gBAAKC,IAAG;gBAAKC,IAAG;eAASN;0BACpDD;;;;AAIjB,EAAE"}
1
+ {"version":3,"sources":["../../../../src/components/sticky-footer/StickyFooter.tsx"],"sourcesContent":["import {Box, createStyles, DefaultProps, Divider, Group} from '@mantine/core';\nimport {FunctionComponent, PropsWithChildren} from 'react';\n\nexport interface StickyFooterProps extends DefaultProps {\n /**\n * Whether a border is render on top of the footer\n */\n borderTop?: boolean;\n}\n\nconst useStyles = createStyles(() => ({\n footer: {\n position: 'sticky',\n bottom: 0,\n zIndex: 1,\n backgroundColor: 'white',\n },\n}));\n\nexport const StickyFooter: FunctionComponent<PropsWithChildren<StickyFooterProps>> = ({\n borderTop,\n children,\n ...others\n}) => {\n const {classes} = useStyles();\n\n return (\n <>\n {borderTop ? <Divider size=\"xs\" /> : null}\n <Box className={classes.footer}>\n <Group position=\"right\" spacing=\"xs\" py=\"md\" px=\"xl\" {...others}>\n {children}\n </Group>\n </Box>\n </>\n );\n};\n"],"names":["Box","createStyles","Divider","Group","useStyles","footer","position","bottom","zIndex","backgroundColor","StickyFooter","borderTop","children","others","classes","size","className","spacing","py","px"],"mappings":"AAAA;;;;AAAA,SAAQA,GAAG,EAAEC,YAAY,EAAgBC,OAAO,EAAEC,KAAK,QAAO,gBAAgB;AAU9E,IAAMC,YAAYH,aAAa;WAAO;QAClCI,QAAQ;YACJC,UAAU;YACVC,QAAQ;YACRC,QAAQ;YACRC,iBAAiB;QACrB;IACJ;;AAEA,OAAO,IAAMC,eAAwE,iBAI/E;QAHFC,mBAAAA,WACAC,kBAAAA,UACGC;QAFHF;QACAC;;IAGA,IAAM,AAACE,UAAWV,YAAXU;IAEP,qBACI;;YACKH,0BAAY,KAACT;gBAAQa,MAAK;iBAAU,IAAI;0BACzC,KAACf;gBAAIgB,WAAWF,QAAQT,MAAM;0BAC1B,cAAA,KAACF;oBAAMG,UAAS;oBAAQW,SAAQ;oBAAKC,IAAG;oBAAKC,IAAG;mBAASN;8BACpDD;;;;;AAKrB,EAAE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveord/plasma-mantine",
3
- "version": "48.17.1",
3
+ "version": "48.17.2",
4
4
  "description": "A Plasma flavoured Mantine theme",
5
5
  "keywords": [
6
6
  "plasma",
@@ -1,4 +1,4 @@
1
- import {createStyles, DefaultProps, Divider, Group, Paper} from '@mantine/core';
1
+ import {Box, createStyles, DefaultProps, Divider, Group} from '@mantine/core';
2
2
  import {FunctionComponent, PropsWithChildren} from 'react';
3
3
 
4
4
  export interface StickyFooterProps extends DefaultProps {
@@ -13,7 +13,7 @@ const useStyles = createStyles(() => ({
13
13
  position: 'sticky',
14
14
  bottom: 0,
15
15
  zIndex: 1,
16
- maxHeight: '80px',
16
+ backgroundColor: 'white',
17
17
  },
18
18
  }));
19
19
 
@@ -25,11 +25,13 @@ export const StickyFooter: FunctionComponent<PropsWithChildren<StickyFooterProps
25
25
  const {classes} = useStyles();
26
26
 
27
27
  return (
28
- <Paper className={classes.footer}>
28
+ <>
29
29
  {borderTop ? <Divider size="xs" /> : null}
30
- <Group position="right" spacing="xs" py="md" px="xl" {...others}>
31
- {children}
32
- </Group>
33
- </Paper>
30
+ <Box className={classes.footer}>
31
+ <Group position="right" spacing="xs" py="md" px="xl" {...others}>
32
+ {children}
33
+ </Group>
34
+ </Box>
35
+ </>
34
36
  );
35
37
  };