@chayns-components/core 5.0.0-beta.826 → 5.0.0-beta.827
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/lib/cjs/components/list/list-item/ListItem.styles.js +7 -1
- package/lib/cjs/components/list/list-item/ListItem.styles.js.map +1 -1
- package/lib/esm/components/list/list-item/ListItem.styles.js +17 -8
- package/lib/esm/components/list/list-item/ListItem.styles.js.map +1 -1
- package/package.json +2 -2
|
@@ -12,6 +12,12 @@ const StyledMotionListItem = exports.StyledMotionListItem = (0, _styledComponent
|
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
transition: background-color 0.3s ease;
|
|
14
14
|
|
|
15
|
+
${({
|
|
16
|
+
$isParentAccordionWrapped
|
|
17
|
+
}) => $isParentAccordionWrapped && (0, _styledComponents.css)`
|
|
18
|
+
padding-left: 8px;
|
|
19
|
+
`}
|
|
20
|
+
|
|
15
21
|
${({
|
|
16
22
|
$isOpen,
|
|
17
23
|
theme
|
|
@@ -39,7 +45,7 @@ const StyledMotionListItem = exports.StyledMotionListItem = (0, _styledComponent
|
|
|
39
45
|
border-bottom: ${$shouldShowSeparatorBelow ? '4px' : '1px'} solid
|
|
40
46
|
rgba(${theme['headline-rgb']}, 0.5);
|
|
41
47
|
}
|
|
42
|
-
`}
|
|
48
|
+
`}
|
|
43
49
|
|
|
44
50
|
${({
|
|
45
51
|
$isWrapped
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.styles.js","names":["_framerMotion","require","_styledComponents","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StyledMotionListItem","exports","styled","motion","div","$
|
|
1
|
+
{"version":3,"file":"ListItem.styles.js","names":["_framerMotion","require","_styledComponents","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StyledMotionListItem","exports","styled","motion","div","$isParentAccordionWrapped","css","$isOpen","theme","cardBackgroundOpacity","$isClickable","$isWrapped","$shouldShowSeparatorBelow","accordionLines"],"sources":["../../../../../src/components/list/list-item/ListItem.styles.ts"],"sourcesContent":["import { motion } from 'framer-motion';\nimport styled, { css } from 'styled-components';\nimport type { WithTheme } from '../../color-scheme-provider/ColorSchemeProvider';\n\ntype StyledListItemProps = WithTheme<{\n $isClickable: boolean;\n $isOpen: boolean;\n $isParentAccordionWrapped: boolean;\n $isWrapped: boolean;\n $shouldShowSeparatorBelow: boolean;\n}>;\n\nexport const StyledMotionListItem = styled(motion.div)<StyledListItemProps>`\n overflow: hidden;\n transition: background-color 0.3s ease;\n\n ${({ $isParentAccordionWrapped }: StyledListItemProps) =>\n $isParentAccordionWrapped &&\n css`\n padding-left: 8px;\n `}\n\n ${({ $isOpen, theme }) =>\n $isOpen &&\n css`\n background-color: rgba(${theme['100-rgb']}, ${theme.cardBackgroundOpacity});\n `}\n\n ${({ $isClickable, theme }) =>\n $isClickable &&\n css`\n &&:hover {\n background-color: rgba(${theme['100-rgb']}, ${theme.cardBackgroundOpacity});\n }\n `}\n \n ${({\n $isOpen,\n $isParentAccordionWrapped,\n $isWrapped,\n $shouldShowSeparatorBelow,\n theme,\n }: StyledListItemProps) =>\n ($shouldShowSeparatorBelow ||\n ((!$isOpen || $isWrapped || $isParentAccordionWrapped) && theme.accordionLines)) &&\n css`\n &&:not(:last-child) {\n border-bottom: ${$shouldShowSeparatorBelow ? '4px' : '1px'} solid\n rgba(${theme['headline-rgb']}, 0.5);\n }\n `}\n\n ${({ $isWrapped }) =>\n $isWrapped &&\n css`\n padding-left: 26px;\n `}\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAgD,SAAAG,yBAAAC,CAAA,6BAAAC,O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ACX;AACA,SAAS;AACT;AACA,MAAM,CAAC;EAAEC,OAAO;EAAEC;AAAM,CAAC,KACjBD,OAAO,IACP,IAAAD,qBAAG;AACX,qCAAqCE,KAAK,CAAC,SAAS,CAAC,KAAKA,KAAK,CAACC,qBAAqB;AACrF,SAAS;AACT;AACA,MAAM,CAAC;EAAEC,YAAY;EAAEF;AAAM,CAAC,KACtBE,YAAY,IACZ,IAAAJ,qBAAG;AACX;AACA,yCAAyCE,KAAK,CAAC,SAAS,CAAC,KAAKA,KAAK,CAACC,qBAAqB;AACzF;AACA,SAAS;AACT;AACA,MAAM,CAAC;EACCF,OAAO;EACPF,yBAAyB;EACzBM,UAAU;EACVC,yBAAyB;EACzBJ;AACiB,CAAC,KAClB,CAACI,yBAAyB,IACrB,CAAC,CAACL,OAAO,IAAII,UAAU,IAAIN,yBAAyB,KAAKG,KAAK,CAACK,cAAe,KACnF,IAAAP,qBAAG;AACX;AACA,iCAAiCM,yBAAyB,GAAG,KAAK,GAAG,KAAK;AAC1E,2BAA2BJ,KAAK,CAAC,cAAc,CAAC;AAChD;AACA,SAAS;AACT;AACA,MAAM,CAAC;EAAEG;AAAW,CAAC,KACbA,UAAU,IACV,IAAAL,qBAAG;AACX;AACA,SAAS;AACT,CAAC","ignoreList":[]}
|
|
@@ -5,20 +5,29 @@ export const StyledMotionListItem = styled(motion.div)`
|
|
|
5
5
|
transition: background-color 0.3s ease;
|
|
6
6
|
|
|
7
7
|
${_ref => {
|
|
8
|
+
let {
|
|
9
|
+
$isParentAccordionWrapped
|
|
10
|
+
} = _ref;
|
|
11
|
+
return $isParentAccordionWrapped && css`
|
|
12
|
+
padding-left: 8px;
|
|
13
|
+
`;
|
|
14
|
+
}}
|
|
15
|
+
|
|
16
|
+
${_ref2 => {
|
|
8
17
|
let {
|
|
9
18
|
$isOpen,
|
|
10
19
|
theme
|
|
11
|
-
} =
|
|
20
|
+
} = _ref2;
|
|
12
21
|
return $isOpen && css`
|
|
13
22
|
background-color: rgba(${theme['100-rgb']}, ${theme.cardBackgroundOpacity});
|
|
14
23
|
`;
|
|
15
24
|
}}
|
|
16
25
|
|
|
17
|
-
${
|
|
26
|
+
${_ref3 => {
|
|
18
27
|
let {
|
|
19
28
|
$isClickable,
|
|
20
29
|
theme
|
|
21
|
-
} =
|
|
30
|
+
} = _ref3;
|
|
22
31
|
return $isClickable && css`
|
|
23
32
|
&&:hover {
|
|
24
33
|
background-color: rgba(${theme['100-rgb']}, ${theme.cardBackgroundOpacity});
|
|
@@ -26,26 +35,26 @@ export const StyledMotionListItem = styled(motion.div)`
|
|
|
26
35
|
`;
|
|
27
36
|
}}
|
|
28
37
|
|
|
29
|
-
${
|
|
38
|
+
${_ref4 => {
|
|
30
39
|
let {
|
|
31
40
|
$isOpen,
|
|
32
41
|
$isParentAccordionWrapped,
|
|
33
42
|
$isWrapped,
|
|
34
43
|
$shouldShowSeparatorBelow,
|
|
35
44
|
theme
|
|
36
|
-
} =
|
|
45
|
+
} = _ref4;
|
|
37
46
|
return ($shouldShowSeparatorBelow || (!$isOpen || $isWrapped || $isParentAccordionWrapped) && theme.accordionLines) && css`
|
|
38
47
|
&&:not(:last-child) {
|
|
39
48
|
border-bottom: ${$shouldShowSeparatorBelow ? '4px' : '1px'} solid
|
|
40
49
|
rgba(${theme['headline-rgb']}, 0.5);
|
|
41
50
|
}
|
|
42
51
|
`;
|
|
43
|
-
}}
|
|
52
|
+
}}
|
|
44
53
|
|
|
45
|
-
${
|
|
54
|
+
${_ref5 => {
|
|
46
55
|
let {
|
|
47
56
|
$isWrapped
|
|
48
|
-
} =
|
|
57
|
+
} = _ref5;
|
|
49
58
|
return $isWrapped && css`
|
|
50
59
|
padding-left: 26px;
|
|
51
60
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.styles.js","names":["motion","styled","css","StyledMotionListItem","div","_ref","$isOpen","theme","cardBackgroundOpacity","
|
|
1
|
+
{"version":3,"file":"ListItem.styles.js","names":["motion","styled","css","StyledMotionListItem","div","_ref","$isParentAccordionWrapped","_ref2","$isOpen","theme","cardBackgroundOpacity","_ref3","$isClickable","_ref4","$isWrapped","$shouldShowSeparatorBelow","accordionLines","_ref5"],"sources":["../../../../../src/components/list/list-item/ListItem.styles.ts"],"sourcesContent":["import { motion } from 'framer-motion';\nimport styled, { css } from 'styled-components';\nimport type { WithTheme } from '../../color-scheme-provider/ColorSchemeProvider';\n\ntype StyledListItemProps = WithTheme<{\n $isClickable: boolean;\n $isOpen: boolean;\n $isParentAccordionWrapped: boolean;\n $isWrapped: boolean;\n $shouldShowSeparatorBelow: boolean;\n}>;\n\nexport const StyledMotionListItem = styled(motion.div)<StyledListItemProps>`\n overflow: hidden;\n transition: background-color 0.3s ease;\n\n ${({ $isParentAccordionWrapped }: StyledListItemProps) =>\n $isParentAccordionWrapped &&\n css`\n padding-left: 8px;\n `}\n\n ${({ $isOpen, theme }) =>\n $isOpen &&\n css`\n background-color: rgba(${theme['100-rgb']}, ${theme.cardBackgroundOpacity});\n `}\n\n ${({ $isClickable, theme }) =>\n $isClickable &&\n css`\n &&:hover {\n background-color: rgba(${theme['100-rgb']}, ${theme.cardBackgroundOpacity});\n }\n `}\n \n ${({\n $isOpen,\n $isParentAccordionWrapped,\n $isWrapped,\n $shouldShowSeparatorBelow,\n theme,\n }: StyledListItemProps) =>\n ($shouldShowSeparatorBelow ||\n ((!$isOpen || $isWrapped || $isParentAccordionWrapped) && theme.accordionLines)) &&\n css`\n &&:not(:last-child) {\n border-bottom: ${$shouldShowSeparatorBelow ? '4px' : '1px'} solid\n rgba(${theme['headline-rgb']}, 0.5);\n }\n `}\n\n ${({ $isWrapped }) =>\n $isWrapped &&\n css`\n padding-left: 26px;\n `}\n`;\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,eAAe;AACtC,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAW/C,OAAO,MAAMC,oBAAoB,GAAGF,MAAM,CAACD,MAAM,CAACI,GAAG,CAAsB;AAC3E;AACA;AACA;AACA,MAAMC,IAAA;EAAA,IAAC;IAAEC;EAA+C,CAAC,GAAAD,IAAA;EAAA,OACjDC,yBAAyB,IACzBJ,GAAG;AACX;AACA,SAAS;AAAA;AACT;AACA,MAAMK,KAAA;EAAA,IAAC;IAAEC,OAAO;IAAEC;EAAM,CAAC,GAAAF,KAAA;EAAA,OACjBC,OAAO,IACPN,GAAG;AACX,qCAAqCO,KAAK,CAAC,SAAS,CAAC,KAAKA,KAAK,CAACC,qBAAqB;AACrF,SAAS;AAAA;AACT;AACA,MAAMC,KAAA;EAAA,IAAC;IAAEC,YAAY;IAAEH;EAAM,CAAC,GAAAE,KAAA;EAAA,OACtBC,YAAY,IACZV,GAAG;AACX;AACA,yCAAyCO,KAAK,CAAC,SAAS,CAAC,KAAKA,KAAK,CAACC,qBAAqB;AACzF;AACA,SAAS;AAAA;AACT;AACA,MAAMG,KAAA;EAAA,IAAC;IACCL,OAAO;IACPF,yBAAyB;IACzBQ,UAAU;IACVC,yBAAyB;IACzBN;EACiB,CAAC,GAAAI,KAAA;EAAA,OAClB,CAACE,yBAAyB,IACrB,CAAC,CAACP,OAAO,IAAIM,UAAU,IAAIR,yBAAyB,KAAKG,KAAK,CAACO,cAAe,KACnFd,GAAG;AACX;AACA,iCAAiCa,yBAAyB,GAAG,KAAK,GAAG,KAAK;AAC1E,2BAA2BN,KAAK,CAAC,cAAc,CAAC;AAChD;AACA,SAAS;AAAA;AACT;AACA,MAAMQ,KAAA;EAAA,IAAC;IAAEH;EAAW,CAAC,GAAAG,KAAA;EAAA,OACbH,UAAU,IACVZ,GAAG;AACX;AACA,SAAS;AAAA;AACT,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chayns-components/core",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.827",
|
|
4
4
|
"description": "A set of beautiful React components for developing your own applications with chayns.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"browserslist": [
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "d252443a4542ec80164b619d56ba6d71e8fbfa25"
|
|
89
89
|
}
|