@12-apps/ui 6.16.0 → 6.17.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/dist/_internal/components/index.js +1 -1
- package/dist/_internal/components/layout/Separator/Separator.js +1 -1
- package/dist/_internal/components/layout/index.js +1 -1
- package/dist/_internal/social-login-button/social-login-button.js +2 -2
- package/dist/{chunk-P2U7C2S7.js → chunk-EB4BTKKY.js} +2 -2
- package/dist/{chunk-6I75JTFO.js → chunk-MCZ7536N.js} +3 -6
- package/dist/chunk-MCZ7536N.js.map +1 -0
- package/dist/layout/Separator.js +1 -1
- package/dist/social-login-button.js +2 -2
- package/dist/types/components/layout/Separator/Separator.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/Separator/Separator.tsx +12 -5
- package/dist/chunk-6I75JTFO.js.map +0 -1
- /package/dist/{chunk-P2U7C2S7.js.map → chunk-EB4BTKKY.js.map} +0 -0
|
@@ -100,7 +100,7 @@ import "../../../chunk-HXYXDQ7U.js";
|
|
|
100
100
|
import "../../../chunk-CMMPGAMJ.js";
|
|
101
101
|
import {
|
|
102
102
|
Separator
|
|
103
|
-
} from "../../../chunk-
|
|
103
|
+
} from "../../../chunk-MCZ7536N.js";
|
|
104
104
|
import "../../../chunk-IFPTVHYR.js";
|
|
105
105
|
import "../../../chunk-2GSIEDGN.js";
|
|
106
106
|
import {
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
GoogleIcon,
|
|
6
6
|
SocialLoginButton,
|
|
7
7
|
SocialLoginContainer
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-EB4BTKKY.js";
|
|
9
9
|
import "../../chunk-INGPH3YQ.js";
|
|
10
10
|
import "../../chunk-6GP2DOOO.js";
|
|
11
11
|
import "../../chunk-HQJ75HHI.js";
|
|
12
12
|
import "../../chunk-QCIWROKG.js";
|
|
13
13
|
import "../../chunk-CMMPGAMJ.js";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-MCZ7536N.js";
|
|
15
15
|
import "../../chunk-IFPTVHYR.js";
|
|
16
16
|
import "../../chunk-VUHLNYAE.js";
|
|
17
17
|
import "../../chunk-2GSIEDGN.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-HQJ75HHI.js";
|
|
7
7
|
import {
|
|
8
8
|
Separator
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MCZ7536N.js";
|
|
10
10
|
import {
|
|
11
11
|
Card,
|
|
12
12
|
CardContent
|
|
@@ -174,4 +174,4 @@ export {
|
|
|
174
174
|
SocialLoginButton,
|
|
175
175
|
SocialLoginContainer
|
|
176
176
|
};
|
|
177
|
-
//# sourceMappingURL=chunk-
|
|
177
|
+
//# sourceMappingURL=chunk-EB4BTKKY.js.map
|
|
@@ -27,6 +27,7 @@ var Separator = ({
|
|
|
27
27
|
Box,
|
|
28
28
|
{
|
|
29
29
|
className,
|
|
30
|
+
"data-testid": dataTestId,
|
|
30
31
|
sx: {
|
|
31
32
|
display: "flex",
|
|
32
33
|
alignItems: "center",
|
|
@@ -41,11 +42,7 @@ var Separator = ({
|
|
|
41
42
|
{
|
|
42
43
|
variant: "body2",
|
|
43
44
|
color: "text.secondary",
|
|
44
|
-
sx: {
|
|
45
|
-
flexShrink: 0,
|
|
46
|
-
padding: theme.spacing(0, 1),
|
|
47
|
-
backgroundColor: theme.palette.background.default
|
|
48
|
-
},
|
|
45
|
+
sx: { flexShrink: 0, padding: theme.spacing(0, 1) },
|
|
49
46
|
children
|
|
50
47
|
}
|
|
51
48
|
),
|
|
@@ -69,4 +66,4 @@ var Separator = ({
|
|
|
69
66
|
export {
|
|
70
67
|
Separator
|
|
71
68
|
};
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
69
|
+
//# sourceMappingURL=chunk-MCZ7536N.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/layout/Separator/Separator.tsx"],"sourcesContent":["import Box from '@mui/material/Box/index.js';\nimport Typography from '@mui/material/Typography/index.js';\nimport { useTheme } from '@mui/material/styles/index.js';\nimport React from 'react';\n\nimport { separatorMargin, separatorStyles } from './Separator.styles';\nimport type { SeparatorProps } from './Separator.types';\n\nexport const Separator: React.FC<SeparatorProps> = ({\n variant = 'solid',\n orientation = 'horizontal',\n size = 'md',\n color,\n margin,\n length,\n children,\n className,\n 'data-testid': dataTestId,\n}) => {\n const theme = useTheme();\n const styles = separatorStyles(theme, { variant, orientation, size, color, margin, length });\n\n if (children) {\n const isHorizontal = orientation === 'horizontal';\n\n return (\n <Box\n className={className}\n // The plain branch below has always carried the caller's hook; this one\n // silently dropped it, so a LABELLED separator was the one variant no\n // test could address except through its own words.\n data-testid={dataTestId}\n sx={{\n display: 'flex',\n alignItems: 'center',\n margin: separatorMargin(size, margin),\n flexDirection: isHorizontal ? 'row' : 'column',\n gap: theme.spacing(2),\n }}\n >\n <Box sx={styles} />\n {/*\n No background behind the label. The two rules and the words are a FLEX\n ROW — the rules stop where the label starts — so there is nothing for a\n background to mask, and painting one made the label a coloured pill on\n every surface that is not `background.default`. On a white card it read\n as a highlight nobody had asked for.\n */}\n <Typography\n variant=\"body2\"\n color=\"text.secondary\"\n sx={{ flexShrink: 0, padding: theme.spacing(0, 1) }}\n >\n {children}\n </Typography>\n <Box sx={styles} />\n </Box>\n );\n }\n\n return (\n <Box\n className={className}\n sx={styles}\n role=\"separator\"\n aria-orientation={orientation}\n data-testid={dataTestId}\n />\n );\n};\n"],"mappings":";;;;;;AAAA,OAAO,SAAS;AAChB,OAAO,gBAAgB;AACvB,SAAS,gBAAgB;AAwBnB,SAcE,KAdF;AAlBC,IAAM,YAAsC,CAAC;AAAA,EAClD,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AACjB,MAAM;AACJ,QAAM,QAAQ,SAAS;AACvB,QAAM,SAAS,gBAAgB,OAAO,EAAE,SAAS,aAAa,MAAM,OAAO,QAAQ,OAAO,CAAC;AAE3F,MAAI,UAAU;AACZ,UAAM,eAAe,gBAAgB;AAErC,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QAIA,eAAa;AAAA,QACb,IAAI;AAAA,UACF,SAAS;AAAA,UACT,YAAY;AAAA,UACZ,QAAQ,gBAAgB,MAAM,MAAM;AAAA,UACpC,eAAe,eAAe,QAAQ;AAAA,UACtC,KAAK,MAAM,QAAQ,CAAC;AAAA,QACtB;AAAA,QAEA;AAAA,8BAAC,OAAI,IAAI,QAAQ;AAAA,UAQjB;AAAA,YAAC;AAAA;AAAA,cACC,SAAQ;AAAA,cACR,OAAM;AAAA,cACN,IAAI,EAAE,YAAY,GAAG,SAAS,MAAM,QAAQ,GAAG,CAAC,EAAE;AAAA,cAEjD;AAAA;AAAA,UACH;AAAA,UACA,oBAAC,OAAI,IAAI,QAAQ;AAAA;AAAA;AAAA,IACnB;AAAA,EAEJ;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,IAAI;AAAA,MACJ,MAAK;AAAA,MACL,oBAAkB;AAAA,MAClB,eAAa;AAAA;AAAA,EACf;AAEJ;","names":[]}
|
package/dist/layout/Separator.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
GoogleIcon,
|
|
5
5
|
SocialLoginButton,
|
|
6
6
|
SocialLoginContainer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EB4BTKKY.js";
|
|
8
8
|
import "./chunk-INGPH3YQ.js";
|
|
9
9
|
import "./chunk-6GP2DOOO.js";
|
|
10
10
|
import "./chunk-HQJ75HHI.js";
|
|
11
11
|
import "./chunk-QCIWROKG.js";
|
|
12
12
|
import "./chunk-CMMPGAMJ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-MCZ7536N.js";
|
|
14
14
|
import "./chunk-IFPTVHYR.js";
|
|
15
15
|
import "./chunk-VUHLNYAE.js";
|
|
16
16
|
import "./chunk-2GSIEDGN.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Separator/Separator.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Separator/Separator.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA6D9C,CAAC"}
|
package/package.json
CHANGED
|
@@ -26,6 +26,10 @@ export const Separator: React.FC<SeparatorProps> = ({
|
|
|
26
26
|
return (
|
|
27
27
|
<Box
|
|
28
28
|
className={className}
|
|
29
|
+
// The plain branch below has always carried the caller's hook; this one
|
|
30
|
+
// silently dropped it, so a LABELLED separator was the one variant no
|
|
31
|
+
// test could address except through its own words.
|
|
32
|
+
data-testid={dataTestId}
|
|
29
33
|
sx={{
|
|
30
34
|
display: 'flex',
|
|
31
35
|
alignItems: 'center',
|
|
@@ -35,14 +39,17 @@ export const Separator: React.FC<SeparatorProps> = ({
|
|
|
35
39
|
}}
|
|
36
40
|
>
|
|
37
41
|
<Box sx={styles} />
|
|
42
|
+
{/*
|
|
43
|
+
No background behind the label. The two rules and the words are a FLEX
|
|
44
|
+
ROW — the rules stop where the label starts — so there is nothing for a
|
|
45
|
+
background to mask, and painting one made the label a coloured pill on
|
|
46
|
+
every surface that is not `background.default`. On a white card it read
|
|
47
|
+
as a highlight nobody had asked for.
|
|
48
|
+
*/}
|
|
38
49
|
<Typography
|
|
39
50
|
variant="body2"
|
|
40
51
|
color="text.secondary"
|
|
41
|
-
sx={{
|
|
42
|
-
flexShrink: 0,
|
|
43
|
-
padding: theme.spacing(0, 1),
|
|
44
|
-
backgroundColor: theme.palette.background.default,
|
|
45
|
-
}}
|
|
52
|
+
sx={{ flexShrink: 0, padding: theme.spacing(0, 1) }}
|
|
46
53
|
>
|
|
47
54
|
{children}
|
|
48
55
|
</Typography>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/layout/Separator/Separator.tsx"],"sourcesContent":["import Box from '@mui/material/Box/index.js';\nimport Typography from '@mui/material/Typography/index.js';\nimport { useTheme } from '@mui/material/styles/index.js';\nimport React from 'react';\n\nimport { separatorMargin, separatorStyles } from './Separator.styles';\nimport type { SeparatorProps } from './Separator.types';\n\nexport const Separator: React.FC<SeparatorProps> = ({\n variant = 'solid',\n orientation = 'horizontal',\n size = 'md',\n color,\n margin,\n length,\n children,\n className,\n 'data-testid': dataTestId,\n}) => {\n const theme = useTheme();\n const styles = separatorStyles(theme, { variant, orientation, size, color, margin, length });\n\n if (children) {\n const isHorizontal = orientation === 'horizontal';\n\n return (\n <Box\n className={className}\n sx={{\n display: 'flex',\n alignItems: 'center',\n margin: separatorMargin(size, margin),\n flexDirection: isHorizontal ? 'row' : 'column',\n gap: theme.spacing(2),\n }}\n >\n <Box sx={styles} />\n <Typography\n variant=\"body2\"\n color=\"text.secondary\"\n sx={{\n flexShrink: 0,\n padding: theme.spacing(0, 1),\n backgroundColor: theme.palette.background.default,\n }}\n >\n {children}\n </Typography>\n <Box sx={styles} />\n </Box>\n );\n }\n\n return (\n <Box\n className={className}\n sx={styles}\n role=\"separator\"\n aria-orientation={orientation}\n data-testid={dataTestId}\n />\n );\n};\n"],"mappings":";;;;;;AAAA,OAAO,SAAS;AAChB,OAAO,gBAAgB;AACvB,SAAS,gBAAgB;AAwBnB,SAUE,KAVF;AAlBC,IAAM,YAAsC,CAAC;AAAA,EAClD,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AACjB,MAAM;AACJ,QAAM,QAAQ,SAAS;AACvB,QAAM,SAAS,gBAAgB,OAAO,EAAE,SAAS,aAAa,MAAM,OAAO,QAAQ,OAAO,CAAC;AAE3F,MAAI,UAAU;AACZ,UAAM,eAAe,gBAAgB;AAErC,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,IAAI;AAAA,UACF,SAAS;AAAA,UACT,YAAY;AAAA,UACZ,QAAQ,gBAAgB,MAAM,MAAM;AAAA,UACpC,eAAe,eAAe,QAAQ;AAAA,UACtC,KAAK,MAAM,QAAQ,CAAC;AAAA,QACtB;AAAA,QAEA;AAAA,8BAAC,OAAI,IAAI,QAAQ;AAAA,UACjB;AAAA,YAAC;AAAA;AAAA,cACC,SAAQ;AAAA,cACR,OAAM;AAAA,cACN,IAAI;AAAA,gBACF,YAAY;AAAA,gBACZ,SAAS,MAAM,QAAQ,GAAG,CAAC;AAAA,gBAC3B,iBAAiB,MAAM,QAAQ,WAAW;AAAA,cAC5C;AAAA,cAEC;AAAA;AAAA,UACH;AAAA,UACA,oBAAC,OAAI,IAAI,QAAQ;AAAA;AAAA;AAAA,IACnB;AAAA,EAEJ;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,IAAI;AAAA,MACJ,MAAK;AAAA,MACL,oBAAkB;AAAA,MAClB,eAAa;AAAA;AAAA,EACf;AAEJ;","names":[]}
|
|
File without changes
|