@chayns-components/core 5.0.0-beta.825 → 5.0.0-beta.826
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 +0 -6
- package/lib/cjs/components/list/list-item/ListItem.styles.js.map +1 -1
- package/lib/esm/components/list/list-item/ListItem.styles.js +7 -16
- package/lib/esm/components/list/list-item/ListItem.styles.js.map +1 -1
- package/package.json +2 -2
|
@@ -12,12 +12,6 @@ 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
|
-
|
|
21
15
|
${({
|
|
22
16
|
$isOpen,
|
|
23
17
|
theme
|
|
@@ -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","$isOpen","theme","css","cardBackgroundOpacity","$isClickable","$isParentAccordionWrapped","$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 ${({ $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,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,G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ACzBN;AACiB,CAAC,KAClB,CAACM,yBAAyB,IACrB,CAAC,CAACP,OAAO,IAAIM,UAAU,IAAID,yBAAyB,KAAKJ,KAAK,CAACO,cAAe,KACnF,IAAAN,qBAAG;AACX;AACA,iCAAiCK,yBAAyB,GAAG,KAAK,GAAG,KAAK;AAC1E,2BAA2BN,KAAK,CAAC,cAAc,CAAC;AAChD;AACA,SAAS;AACT;AACA,MAAM,CAAC;EAAEK;AAAW,CAAC,KACbA,UAAU,IACV,IAAAJ,qBAAG;AACX;AACA,SAAS;AACT,CAAC","ignoreList":[]}
|
|
@@ -5,29 +5,20 @@ 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 => {
|
|
17
8
|
let {
|
|
18
9
|
$isOpen,
|
|
19
10
|
theme
|
|
20
|
-
} =
|
|
11
|
+
} = _ref;
|
|
21
12
|
return $isOpen && css`
|
|
22
13
|
background-color: rgba(${theme['100-rgb']}, ${theme.cardBackgroundOpacity});
|
|
23
14
|
`;
|
|
24
15
|
}}
|
|
25
16
|
|
|
26
|
-
${
|
|
17
|
+
${_ref2 => {
|
|
27
18
|
let {
|
|
28
19
|
$isClickable,
|
|
29
20
|
theme
|
|
30
|
-
} =
|
|
21
|
+
} = _ref2;
|
|
31
22
|
return $isClickable && css`
|
|
32
23
|
&&:hover {
|
|
33
24
|
background-color: rgba(${theme['100-rgb']}, ${theme.cardBackgroundOpacity});
|
|
@@ -35,14 +26,14 @@ export const StyledMotionListItem = styled(motion.div)`
|
|
|
35
26
|
`;
|
|
36
27
|
}}
|
|
37
28
|
|
|
38
|
-
${
|
|
29
|
+
${_ref3 => {
|
|
39
30
|
let {
|
|
40
31
|
$isOpen,
|
|
41
32
|
$isParentAccordionWrapped,
|
|
42
33
|
$isWrapped,
|
|
43
34
|
$shouldShowSeparatorBelow,
|
|
44
35
|
theme
|
|
45
|
-
} =
|
|
36
|
+
} = _ref3;
|
|
46
37
|
return ($shouldShowSeparatorBelow || (!$isOpen || $isWrapped || $isParentAccordionWrapped) && theme.accordionLines) && css`
|
|
47
38
|
&&:not(:last-child) {
|
|
48
39
|
border-bottom: ${$shouldShowSeparatorBelow ? '4px' : '1px'} solid
|
|
@@ -51,10 +42,10 @@ export const StyledMotionListItem = styled(motion.div)`
|
|
|
51
42
|
`;
|
|
52
43
|
}}}
|
|
53
44
|
|
|
54
|
-
${
|
|
45
|
+
${_ref4 => {
|
|
55
46
|
let {
|
|
56
47
|
$isWrapped
|
|
57
|
-
} =
|
|
48
|
+
} = _ref4;
|
|
58
49
|
return $isWrapped && css`
|
|
59
50
|
padding-left: 26px;
|
|
60
51
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.styles.js","names":["motion","styled","css","StyledMotionListItem","div","_ref","$
|
|
1
|
+
{"version":3,"file":"ListItem.styles.js","names":["motion","styled","css","StyledMotionListItem","div","_ref","$isOpen","theme","cardBackgroundOpacity","_ref2","$isClickable","_ref3","$isParentAccordionWrapped","$isWrapped","$shouldShowSeparatorBelow","accordionLines","_ref4"],"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 ${({ $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,OAAO;IAAEC;EAAM,CAAC,GAAAF,IAAA;EAAA,OACjBC,OAAO,IACPJ,GAAG;AACX,qCAAqCK,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,IACZR,GAAG;AACX;AACA,yCAAyCK,KAAK,CAAC,SAAS,CAAC,KAAKA,KAAK,CAACC,qBAAqB;AACzF;AACA,SAAS;AAAA;AACT;AACA,MAAMG,KAAA;EAAA,IAAC;IACCL,OAAO;IACPM,yBAAyB;IACzBC,UAAU;IACVC,yBAAyB;IACzBP;EACiB,CAAC,GAAAI,KAAA;EAAA,OAClB,CAACG,yBAAyB,IACrB,CAAC,CAACR,OAAO,IAAIO,UAAU,IAAID,yBAAyB,KAAKL,KAAK,CAACQ,cAAe,KACnFb,GAAG;AACX;AACA,iCAAiCY,yBAAyB,GAAG,KAAK,GAAG,KAAK;AAC1E,2BAA2BP,KAAK,CAAC,cAAc,CAAC;AAChD;AACA,SAAS;AAAA;AACT;AACA,MAAMS,KAAA;EAAA,IAAC;IAAEH;EAAW,CAAC,GAAAG,KAAA;EAAA,OACbH,UAAU,IACVX,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.826",
|
|
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": "8292a03707d4fac5f7639650ec034c938a942692"
|
|
89
89
|
}
|