frst-components 0.20.3 → 0.20.4

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.js CHANGED
@@ -41,8 +41,8 @@ var slateHistory = require('slate-history');
41
41
  require('react-dom');
42
42
  var css = require('@emotion/css');
43
43
  var iconsMaterial = require('@mui/icons-material');
44
- var Tooltip$3 = require('@mui/material/Tooltip');
45
44
  var Switch = require('react-switch');
45
+ var Tooltip$3 = require('@mui/material/Tooltip');
46
46
  var core = require('@material-ui/core');
47
47
  var moment = require('moment');
48
48
  var _ = require('@mui/material/');
@@ -110,8 +110,8 @@ var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography$4);
110
110
  var Avatar__default = /*#__PURE__*/_interopDefaultLegacy(Avatar$1);
111
111
  var Markdown__default = /*#__PURE__*/_interopDefaultLegacy(Markdown);
112
112
  var isHotkey__default = /*#__PURE__*/_interopDefaultLegacy(isHotkey);
113
- var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip$3);
114
113
  var Switch__default = /*#__PURE__*/_interopDefaultLegacy(Switch);
114
+ var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip$3);
115
115
  var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
116
116
  var Slider__default = /*#__PURE__*/_interopDefaultLegacy(Slider);
117
117
  var IconButton__default = /*#__PURE__*/_interopDefaultLegacy(IconButton);
@@ -10387,6 +10387,10 @@ function Thumbnails({ variant, src, showSwitch, handleClickCourse, handleClickNe
10387
10387
  React.useEffect(() => {
10388
10388
  setLoading(isLoading);
10389
10389
  }, [isLoading]);
10390
+ const handleChangeCheck = (checkedValue) => {
10391
+ setAtivo(checkedValue);
10392
+ handleSwitchAtivar(checkedValue);
10393
+ };
10390
10394
  const handleHoverImage = () => {
10391
10395
  if (!showModules) {
10392
10396
  setShowModules(true);
@@ -10407,7 +10411,7 @@ function Thumbnails({ variant, src, showSwitch, handleClickCourse, handleClickNe
10407
10411
  jsxRuntime.jsxs(ContainerThumbnails, { showSwitchIndividual: showSwitch, className: variant = 'default', ref: provided ? provided.innerRef : null, ...provided ? provided.draggableProps : null, children: [jsxRuntime.jsxs(GeralThumbnails, { ref: provided ? provided.innerRef : null, ...provided ? provided.dragHandleProps : null, children: [jsxRuntime.jsxs(Thumbnails$1, { children: [jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {})] }), jsxRuntime.jsxs(Thumbnails$1, { children: [jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {})] }), jsxRuntime.jsxs(Thumbnails$1, { children: [jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {}), jsxRuntime.jsx(VectorEllipse, {})] })] }), jsxRuntime.jsx(Image, { onMouseEnter: handleHoverImage, className: 'imageHover', src: src || defaultImg, active: ativo }), jsxRuntime.jsxs(ContainerMain, { children: [jsxRuntime.jsx(LightTooltip, { title: title, children: jsxRuntime.jsx(Typography$2, { style: { color: ativo ? '#000000' : '#bdbdbd' }, children: title && title?.length > 17 ? `${title.substring(0, 17)}...` : title }) }), jsxRuntime.jsx(IconVertical, { onClick: (element) => {
10408
10412
  setElementPopover(element.currentTarget);
10409
10413
  }, children: jsxRuntime.jsx(MoreVertical, { fill: ativo ? '#000000' : '#bdbdbd' }) })] }), showSwitch &&
10410
- jsxRuntime.jsx(ContainerAtivar, { children: jsxRuntime.jsx(TypographyAtivar, { active: ativo, style: { fontWeight: ativo ? 700 : 400 }, children: txtAtivarCurso ? txtAtivarCurso : 'Ativar Curso' }) })] }) })
10414
+ jsxRuntime.jsxs(ContainerAtivar, { children: [jsxRuntime.jsx(TypographyAtivar, { active: ativo, style: { fontWeight: ativo ? 700 : 400 }, children: txtAtivarCurso ? txtAtivarCurso : 'Ativar Curso' }), jsxRuntime.jsx(Switch__default["default"], { onChange: handleChangeCheck, checked: ativo, height: 16, width: 35, checkedIcon: false, uncheckedIcon: false, handleDiameter: 20, onHandleColor: '#ffffff', offHandleColor: '#ffffff', onColor: '#FF4D0D', offColor: '#ebebeb', activeBoxShadow: ativo ? '0 0 2px 2px #FF4D0D' : '0 0 2px 2px #757575', boxShadow: ativo ? '0 0 2px 2px #FF4D0D' : '0 0 2px 2px #757575' })] })] }) })
10411
10415
  : variant === 'add' ?
10412
10416
  jsxRuntime.jsx(jsxRuntime.Fragment, { children: Loading ?
10413
10417
  jsxRuntime.jsxs(LoadingContainer, { children: [jsxRuntime.jsx(LoadingImage, {}), jsxRuntime.jsx(LoadingContent, {}), jsxRuntime.jsx(LoadingContent, { style: { width: '50%' } })] })
@@ -1 +1 @@
1
- {"version":3,"file":"StylesSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/select/styles/StylesSelect.tsx"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,iBAAiB,6EAa7B,CAAA;AACD,eAAO,MAAM,YAAY,oEASxB,CAAA;AACD,eAAO,MAAM,cAAc,6EA4B1B,CAAA;AACD,eAAO,MAAM,qBAAqB,oEAAkB,CAAA;AAEpD,eAAO,MAAM,YAAY,mEAgBxB,CAAA;AACD,eAAO,MAAM,kBAAkB;UAAyB,OAAO;SAa9D,CAAA;AACD,eAAO,MAAM,cAAc,kEAO1B,CAAA"}
1
+ {"version":3,"file":"StylesSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DS/select/styles/StylesSelect.tsx"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,iBAAiB,6EAa7B,CAAA;AACD,eAAO,MAAM,YAAY,oEASxB,CAAA;AACD,eAAO,MAAM,cAAc,6EA4B1B,CAAA;AACD,eAAO,MAAM,qBAAqB,oEAAkB,CAAA;AAEpD,eAAO,MAAM,YAAY,mEAgBxB,CAAA;AACD,eAAO,MAAM,kBAAkB;UAAyB,OAAO;SAa9D,CAAA;AACD,eAAO,MAAM,cAAc,kEAO1B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/IJ/learningCycleCard/components/menu/index.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE;;;CAAA,eAiFnD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IJ/learningCycleCard/components/menu/index.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE;;;CAAA,eAiFnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"menuStyle.d.ts","sourceRoot":"","sources":["../../../../../src/components/IJ/learningCycleCard/components/menu/menuStyle.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,oEAuBxB,CAAA"}
1
+ {"version":3,"file":"menuStyle.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IJ/learningCycleCard/components/menu/menuStyle.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,oEAuBxB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/extraContent/richTextEditor/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAA;AAIrD,UAAU,SAAS;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAGD,eAAO,MAAM,MAAM;YASH,OAAO;cACL,OAAO;uEAuBxB,CAAA;AAED,eAAO,MAAM,WAAW;WAQT,GAAG;4DA+CjB,CAAA;AAED,eAAO,MAAM,IAAI,0GAkBhB,CAAA;AAED,eAAO,MAAM,WAAW,yGAoBvB,CAAA;AAED,eAAO,MAAM,IAAI,yGAsBhB,CAAA;AAED,eAAO,MAAM,MAAM;;SAIlB,CAAA;AAED,eAAO,MAAM,OAAO,yGAmBnB,CAAA"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../../src/components/LXP/extraContent/richTextEditor/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAA;AAIrD,UAAU,SAAS;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAGD,eAAO,MAAM,MAAM;YASH,OAAO;cACL,OAAO;uEAuBxB,CAAA;AAED,eAAO,MAAM,WAAW;WAQT,GAAG;4DA+CjB,CAAA;AAED,eAAO,MAAM,IAAI,0GAkBhB,CAAA;AAED,eAAO,MAAM,WAAW,yGAoBvB,CAAA;AAED,eAAO,MAAM,IAAI,yGAsBhB,CAAA;AAED,eAAO,MAAM,MAAM;;SAIlB,CAAA;AAED,eAAO,MAAM,OAAO,yGAmBnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/extraContent/richTextEditor/index.tsx"],"names":[],"mappings":";AAuCA,QAAA,MAAM,eAAe,mBAwCpB,CAAA;AAsLD,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/LXP/extraContent/richTextEditor/index.tsx"],"names":[],"mappings":";AAuCA,QAAA,MAAM,eAAe,mBAwCpB,CAAA;AAsLD,eAAe,eAAe,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"thumbnails.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/thumbnails/thumbnails.tsx"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AAInC,OAAO,EAAe,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAYlE,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,OAAO,EACP,GAAG,EACH,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,8BAA8B,EAC9B,6BAA6B,EAC7B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,QAAQ,EACR,OAAO,EACP,qBAAqB,EACrB,6BAA6B,EAC9B,EAAE,oBAAoB,eAmNtB"}
1
+ {"version":3,"file":"thumbnails.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/thumbnails/thumbnails.tsx"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AAInC,OAAO,EAAe,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAYlE,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,OAAO,EACP,GAAG,EACH,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,8BAA8B,EAC9B,6BAA6B,EAC7B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,QAAQ,EACR,OAAO,EACP,qBAAqB,EACrB,6BAA6B,EAC9B,EAAE,oBAAoB,eAkOtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"errorIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/cardLT/MessageBox/icons/errorIcon.tsx"],"names":[],"mappings":";AAIE;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,gBAUhC"}
1
+ {"version":3,"file":"errorIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/cardLT/MessageBox/icons/errorIcon.tsx"],"names":[],"mappings":";AAIE;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,gBAUhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"successIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/cardLT/MessageBox/icons/successIcon.tsx"],"names":[],"mappings":";AAIE;;;GAGG;AACF,MAAM,CAAC,OAAO,UAAU,WAAW,gBASnC"}
1
+ {"version":3,"file":"successIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/cardLT/MessageBox/icons/successIcon.tsx"],"names":[],"mappings":";AAIE;;;GAGG;AACF,MAAM,CAAC,OAAO,UAAU,WAAW,gBASnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"warningIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/cardLT/MessageBox/icons/warningIcon.tsx"],"names":[],"mappings":";AAIE;;;GAGG;AACF,MAAM,CAAC,OAAO,UAAU,WAAW,gBAWnC"}
1
+ {"version":3,"file":"warningIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/cardLT/MessageBox/icons/warningIcon.tsx"],"names":[],"mappings":";AAIE;;;GAGG;AACF,MAAM,CAAC,OAAO,UAAU,WAAW,gBAWnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/global-menu/components/customMenu/index.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,UAAU,SAAK"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/global-menu/components/customMenu/index.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,UAAU,SAAK"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frst-components",
3
3
  "homepage": "http://FRST-Falconi.github.io/storybook.frstfalconi.com",
4
- "version": "0.20.3",
4
+ "version": "0.20.4",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",