@thecb/components 9.1.1-beta.4 → 9.1.1
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/index.cjs.js +173 -131
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +173 -131
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/layouts/Motion.styled.js +1 -1
- package/src/components/molecules/radio-section/RadioSection.js +1 -4
- package/src/components/templates/center-single/CenterSingle.js +2 -6
- package/src/components/templates/center-stack/CenterStack.js +4 -2
- package/src/components/templates/default-page-template/DefaultPageTemplate.js +1 -2
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ export const MotionWrapper = styled(motion.div)`
|
|
|
8
8
|
padding: ${({ padding }) => padding};
|
|
9
9
|
border: ${({ borderShorthand }) => borderShorthand};
|
|
10
10
|
border-color: ${({ borderColor }) => borderColor};
|
|
11
|
-
border-
|
|
11
|
+
border-size: ${({ borderSize }) => borderSize};
|
|
12
12
|
border-style: ${({ borderStyle }) => borderStyle};
|
|
13
13
|
border-width: ${({ borderWidth }) => borderWidth};
|
|
14
14
|
border-radius: ${({ borderRadius }) => borderRadius};
|
|
@@ -123,8 +123,7 @@ const RadioSection = ({
|
|
|
123
123
|
extraStyles={borderStyles}
|
|
124
124
|
role="radio"
|
|
125
125
|
aria-checked={openSection === section.id}
|
|
126
|
-
disabled={section.disabled}
|
|
127
|
-
required={section?.required}
|
|
126
|
+
aria-disabled={section.disabled}
|
|
128
127
|
>
|
|
129
128
|
<Stack childGap="0">
|
|
130
129
|
<Box
|
|
@@ -167,8 +166,6 @@ const RadioSection = ({
|
|
|
167
166
|
{!section.hideRadioButton && (
|
|
168
167
|
<Box padding="0">
|
|
169
168
|
<RadioButton
|
|
170
|
-
role="radio"
|
|
171
|
-
required={!!section?.required}
|
|
172
169
|
id={`radio-input-${idString(section)}`}
|
|
173
170
|
name={idString(section)}
|
|
174
171
|
ariaDescribedBy={ariaDescribedBy}
|
|
@@ -30,12 +30,7 @@ const CenterSingle = ({
|
|
|
30
30
|
>
|
|
31
31
|
<Cover centerOverride={isMobile && !centeredMobileContent}>
|
|
32
32
|
{header ? header : <Box padding="0" />}
|
|
33
|
-
<Box
|
|
34
|
-
padding="0"
|
|
35
|
-
minWidth="100%"
|
|
36
|
-
extraStyles={`z-index: 1;`}
|
|
37
|
-
role="main"
|
|
38
|
-
>
|
|
33
|
+
<Box padding="0" minWidth="100%" extraStyles={`z-index: 1;`}>
|
|
39
34
|
{subHeader && !(isMobile && hideMobileSubHeader) ? (
|
|
40
35
|
subHeader
|
|
41
36
|
) : (
|
|
@@ -44,6 +39,7 @@ const CenterSingle = ({
|
|
|
44
39
|
<Center
|
|
45
40
|
maxWidth={isMobile && fullWidthMobile ? "100%" : maxContentWidth}
|
|
46
41
|
intrinsic={!isMobile}
|
|
42
|
+
role="main"
|
|
47
43
|
>
|
|
48
44
|
{centeredMobileContent ? (
|
|
49
45
|
<Cover minHeight="100%" singleChild>
|
|
@@ -15,7 +15,8 @@ const CenterStack = ({
|
|
|
15
15
|
maxContentWidth = "36.75rem",
|
|
16
16
|
fullWidthMobile = true,
|
|
17
17
|
content,
|
|
18
|
-
themeValues
|
|
18
|
+
themeValues,
|
|
19
|
+
role = "main"
|
|
19
20
|
}) => {
|
|
20
21
|
const themeContext = useContext(ThemeContext);
|
|
21
22
|
const { isMobile } = themeContext;
|
|
@@ -29,7 +30,7 @@ const CenterStack = ({
|
|
|
29
30
|
>
|
|
30
31
|
<Cover>
|
|
31
32
|
{header ? header : <Box padding="0" />}
|
|
32
|
-
<Box padding="0" minWidth="100%"
|
|
33
|
+
<Box padding="0" minWidth="100%">
|
|
33
34
|
{subHeader && !(isMobile && hideMobileSubHeader) ? (
|
|
34
35
|
subHeader
|
|
35
36
|
) : (
|
|
@@ -38,6 +39,7 @@ const CenterStack = ({
|
|
|
38
39
|
<Center
|
|
39
40
|
maxWidth={isMobile && fullWidthMobile ? "100%" : maxContentWidth}
|
|
40
41
|
intrinsic={!isMobile}
|
|
42
|
+
role={role}
|
|
41
43
|
>
|
|
42
44
|
<Cover minHeight="100%" singleChild>
|
|
43
45
|
<Stack childGap={contentSpacing}>{content}</Stack>
|
|
@@ -38,14 +38,13 @@ const CenterSingle = ({
|
|
|
38
38
|
minWidth="100%"
|
|
39
39
|
minHeight="100%"
|
|
40
40
|
extraStyles={`z-index: 1;`}
|
|
41
|
-
role="main"
|
|
42
41
|
>
|
|
43
42
|
{subHeader && !(isMobile && hideMobileSubHeader) ? (
|
|
44
43
|
subHeader
|
|
45
44
|
) : (
|
|
46
45
|
<Fragment />
|
|
47
46
|
)}
|
|
48
|
-
<Center maxWidth={maxWidth} gutters={gutters}>
|
|
47
|
+
<Center maxWidth={maxWidth} gutters={gutters} role="main">
|
|
49
48
|
{content}
|
|
50
49
|
</Center>
|
|
51
50
|
</Box>
|