@pie-lib/correct-answer-toggle 2.3.31 → 2.3.32
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/CHANGELOG.md +8 -0
- package/lib/expander.js +10 -5
- package/lib/expander.js.map +1 -1
- package/package.json +3 -3
- package/src/expander.jsx +10 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.3.32](https://github.com/pie-framework/pie-lib/compare/@pie-lib/correct-answer-toggle@2.3.31...@pie-lib/correct-answer-toggle@2.3.32) (2021-11-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-lib/correct-answer-toggle
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.3.31](https://github.com/pie-framework/pie-lib/compare/@pie-lib/correct-answer-toggle@2.3.30...@pie-lib/correct-answer-toggle@2.3.31) (2021-09-08)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @pie-lib/correct-answer-toggle
|
package/lib/expander.js
CHANGED
|
@@ -51,28 +51,33 @@ var _default = (0, _styles.withStyles)(function () {
|
|
|
51
51
|
height: 0,
|
|
52
52
|
overflow: 'hidden',
|
|
53
53
|
display: 'flex',
|
|
54
|
-
visibility: 'hidden'
|
|
54
|
+
visibility: 'hidden',
|
|
55
|
+
width: 0
|
|
55
56
|
},
|
|
56
57
|
enter: {
|
|
57
58
|
transition: transition,
|
|
58
59
|
opacity: 1,
|
|
59
60
|
height: '25px',
|
|
61
|
+
width: 'auto',
|
|
60
62
|
visibility: 'visible'
|
|
61
63
|
},
|
|
62
64
|
enterDone: {
|
|
63
65
|
height: '25px',
|
|
64
|
-
visibility: 'visible'
|
|
66
|
+
visibility: 'visible',
|
|
67
|
+
width: 'auto'
|
|
65
68
|
},
|
|
66
69
|
exit: {
|
|
67
70
|
transition: transition,
|
|
68
71
|
opacity: 0,
|
|
69
|
-
height:
|
|
70
|
-
visibility: 'visible'
|
|
72
|
+
height: 0,
|
|
73
|
+
visibility: 'visible',
|
|
74
|
+
width: 0
|
|
71
75
|
},
|
|
72
76
|
exitDone: {
|
|
73
77
|
opacity: 0,
|
|
74
78
|
visibility: 'hidden',
|
|
75
|
-
height:
|
|
79
|
+
height: 0,
|
|
80
|
+
width: 0
|
|
76
81
|
}
|
|
77
82
|
};
|
|
78
83
|
})(Expander);
|
package/lib/expander.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/expander.jsx"],"names":["Expander","props","classes","show","children","expander","propTypes","PropTypes","bool","isRequired","className","string","object","oneOfType","arrayOf","node","transition","position","height","overflow","display","visibility","enter","opacity","enterDone","exit","exitDone"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,QAAQ,GAAG,SAAXA,QAAW,CAAAC,KAAK,EAAI;AAAA,MAChBC,OADgB,GACYD,KADZ,CAChBC,OADgB;AAAA,MACPC,IADO,GACYF,KADZ,CACPE,IADO;AAAA,MACDC,QADC,GACYH,KADZ,CACDG,QADC;AAGxB,SACE,gCAAC,mCAAD;AACE,UAAID,IADN;AAEE,IAAA,MAAM,EAAE,IAFV;AAGE,IAAA,YAAY,EAAE,KAHhB;AAIE,IAAA,OAAO,EAAE,GAJX;AAKE,IAAA,UAAU,oBAAOD,OAAP;AALZ,KAOE;AAAK,IAAA,SAAS,EAAEA,OAAO,CAACG;AAAxB,KAAmCD,QAAnC,CAPF,CADF;AAWD,CAdD;;AAgBAJ,QAAQ,CAACM,SAAT,GAAqB;AACnBH,EAAAA,IAAI,EAAEI,sBAAUC,IAAV,CAAeC,UADF;AAEnBC,EAAAA,SAAS,EAAEH,sBAAUI,MAFF;AAGnBT,EAAAA,OAAO,EAAEK,sBAAUK,MAHA;AAInBR,EAAAA,QAAQ,EAAEG,sBAAUM,SAAV,CAAoB,CAACN,sBAAUO,OAAV,CAAkBP,sBAAUQ,IAA5B,CAAD,EAAoCR,sBAAUQ,IAA9C,CAApB,EAAyEN;AAJhE,CAArB;AAOA,IAAMO,UAAU,GAAG,6CAAnB;;eAEe,wBAAW;AAAA,SAAO;AAC/BX,IAAAA,QAAQ,EAAE;AACRY,MAAAA,QAAQ,EAAE,UADF;AAERC,MAAAA,MAAM,EAAE,CAFA;AAGRC,MAAAA,QAAQ,EAAE,QAHF;AAIRC,MAAAA,OAAO,EAAE,MAJD;AAKRC,MAAAA,UAAU,EAAE;
|
|
1
|
+
{"version":3,"sources":["../src/expander.jsx"],"names":["Expander","props","classes","show","children","expander","propTypes","PropTypes","bool","isRequired","className","string","object","oneOfType","arrayOf","node","transition","position","height","overflow","display","visibility","width","enter","opacity","enterDone","exit","exitDone"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,QAAQ,GAAG,SAAXA,QAAW,CAAAC,KAAK,EAAI;AAAA,MAChBC,OADgB,GACYD,KADZ,CAChBC,OADgB;AAAA,MACPC,IADO,GACYF,KADZ,CACPE,IADO;AAAA,MACDC,QADC,GACYH,KADZ,CACDG,QADC;AAGxB,SACE,gCAAC,mCAAD;AACE,UAAID,IADN;AAEE,IAAA,MAAM,EAAE,IAFV;AAGE,IAAA,YAAY,EAAE,KAHhB;AAIE,IAAA,OAAO,EAAE,GAJX;AAKE,IAAA,UAAU,oBAAOD,OAAP;AALZ,KAOE;AAAK,IAAA,SAAS,EAAEA,OAAO,CAACG;AAAxB,KAAmCD,QAAnC,CAPF,CADF;AAWD,CAdD;;AAgBAJ,QAAQ,CAACM,SAAT,GAAqB;AACnBH,EAAAA,IAAI,EAAEI,sBAAUC,IAAV,CAAeC,UADF;AAEnBC,EAAAA,SAAS,EAAEH,sBAAUI,MAFF;AAGnBT,EAAAA,OAAO,EAAEK,sBAAUK,MAHA;AAIn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nimport { CSSTransition } from 'react-transition-group';\n\nconst Expander = props => {\n const { classes, show, children } = props;\n\n return (\n <CSSTransition\n in={show}\n appear={true}\n mountOnEnter={false}\n timeout={300}\n classNames={{ ...classes }}\n >\n <div className={classes.expander}>{children}</div>\n </CSSTransition>\n );\n};\n\nExpander.propTypes = {\n show: PropTypes.bool.isRequired,\n className: PropTypes.string,\n classes: PropTypes.object,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nconst transition = 'height ease-in 300ms, opacity ease-in 300ms';\n\nexport default withStyles(() => ({\n expander: {\n position: 'relative',\n height: 0,\n overflow: 'hidden',\n display: 'flex',\n visibility: 'hidden',\n width: 0\n },\n enter: {\n transition,\n opacity: 1,\n height: '25px',\n width: 'auto',\n visibility: 'visible'\n },\n enterDone: {\n height: '25px',\n visibility: 'visible',\n width: 'auto'\n },\n exit: {\n transition,\n opacity: 0,\n height: 0,\n visibility: 'visible',\n width: 0\n },\n exitDone: {\n opacity: 0,\n visibility: 'hidden',\n height: 0,\n width: 0\n }\n}))(Expander);\n"],"file":"expander.js"}
|
package/package.json
CHANGED
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
|
-
"version": "2.3.
|
|
14
|
+
"version": "2.3.32",
|
|
15
15
|
"main": "lib/index.js",
|
|
16
16
|
"module": "src/index.jsx",
|
|
17
17
|
"scripts": {},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@material-ui/core": "^3.8.3",
|
|
20
20
|
"@pie-lib/icons": "^2.4.25",
|
|
21
|
-
"@pie-lib/render-ui": "^4.12.
|
|
21
|
+
"@pie-lib/render-ui": "^4.12.3",
|
|
22
22
|
"classnames": "^2.2.6",
|
|
23
23
|
"lodash": "^4.17.11",
|
|
24
24
|
"prop-types": "^15.6.2",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"react": "^16.8.1",
|
|
33
33
|
"react-dom": "^16.8.1"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "3575de076034eb451b0a66b2f3fd3d29802983ec"
|
|
36
36
|
}
|
package/src/expander.jsx
CHANGED
|
@@ -34,27 +34,32 @@ export default withStyles(() => ({
|
|
|
34
34
|
height: 0,
|
|
35
35
|
overflow: 'hidden',
|
|
36
36
|
display: 'flex',
|
|
37
|
-
visibility: 'hidden'
|
|
37
|
+
visibility: 'hidden',
|
|
38
|
+
width: 0
|
|
38
39
|
},
|
|
39
40
|
enter: {
|
|
40
41
|
transition,
|
|
41
42
|
opacity: 1,
|
|
42
43
|
height: '25px',
|
|
44
|
+
width: 'auto',
|
|
43
45
|
visibility: 'visible'
|
|
44
46
|
},
|
|
45
47
|
enterDone: {
|
|
46
48
|
height: '25px',
|
|
47
|
-
visibility: 'visible'
|
|
49
|
+
visibility: 'visible',
|
|
50
|
+
width: 'auto'
|
|
48
51
|
},
|
|
49
52
|
exit: {
|
|
50
53
|
transition,
|
|
51
54
|
opacity: 0,
|
|
52
|
-
height:
|
|
53
|
-
visibility: 'visible'
|
|
55
|
+
height: 0,
|
|
56
|
+
visibility: 'visible',
|
|
57
|
+
width: 0
|
|
54
58
|
},
|
|
55
59
|
exitDone: {
|
|
56
60
|
opacity: 0,
|
|
57
61
|
visibility: 'hidden',
|
|
58
|
-
height:
|
|
62
|
+
height: 0,
|
|
63
|
+
width: 0
|
|
59
64
|
}
|
|
60
65
|
}))(Expander);
|