frst-components 0.20.65 → 0.20.66
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 +58 -21
- package/dist/src/components/DS/scroll-container-v2/ButtonControl/buttonControlStyles.d.ts.map +1 -1
- package/dist/src/components/DS/scroll-container-v2/ButtonControl/index.d.ts.map +1 -1
- package/dist/src/components/DS/scroll-container-v2/ButtonControl/useLongPress.d.ts.map +1 -1
- package/dist/src/components/DS/select/styles/StylesSelect.d.ts.map +1 -1
- package/dist/src/components/IJ/learningCycleCard/components/menu/index.d.ts.map +1 -1
- package/dist/src/components/IJ/learningCycleCard/components/menu/menuStyle.d.ts.map +1 -1
- package/dist/src/components/LXP/extraContent/richTextEditor/components.d.ts.map +1 -1
- package/dist/src/components/LXP/extraContent/richTextEditor/index.d.ts.map +1 -1
- package/dist/src/components/audio-player/audioPlayerStyles.d.ts +1 -0
- package/dist/src/components/audio-player/audioPlayerStyles.d.ts.map +1 -1
- package/dist/src/components/audio-player/index.d.ts +1 -0
- package/dist/src/components/audio-player/index.d.ts.map +1 -1
- package/dist/src/components/cardLT/MessageBox/icons/errorIcon.d.ts.map +1 -1
- package/dist/src/components/cardLT/MessageBox/icons/successIcon.d.ts.map +1 -1
- package/dist/src/components/cardLT/MessageBox/icons/warningIcon.d.ts.map +1 -1
- package/dist/src/components/global-menu/components/customMenu/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -818,6 +818,36 @@ const container$1 = styled__default["default"].div `
|
|
|
818
818
|
background-size: cover;
|
|
819
819
|
background-repeat: no-repeat;
|
|
820
820
|
`;
|
|
821
|
+
styled.keyframes `
|
|
822
|
+
0% { background-position: -468px 0;}
|
|
823
|
+
100% { background-position: 468px 0;}
|
|
824
|
+
`;
|
|
825
|
+
const loadingContent$1 = styled__default["default"].div `
|
|
826
|
+
background: linear-gradient(90deg, rgba(123, 129, 136, 0) 6.43%, rgba(123, 129, 136, 0.2) 22.38%), #d9d9d9;
|
|
827
|
+
color: transparent;
|
|
828
|
+
border-radius: 16px;
|
|
829
|
+
width: 100%;
|
|
830
|
+
/* height: 0.45em; */
|
|
831
|
+
position: absolute;
|
|
832
|
+
z-index: 9;
|
|
833
|
+
width: 814px;
|
|
834
|
+
height: 240px;
|
|
835
|
+
border-radius: 8px;
|
|
836
|
+
|
|
837
|
+
-webkit-animation-duration: 1s;
|
|
838
|
+
-webkit-animation-fill-mode: forwards;
|
|
839
|
+
-webkit-animation-iteration-count: infinite;
|
|
840
|
+
-webkit-animation-name: placeholderShimmer;
|
|
841
|
+
-webkit-animation-timing-function: linear;
|
|
842
|
+
|
|
843
|
+
&:first-child {
|
|
844
|
+
width: 50%;
|
|
845
|
+
margin-bottom: 8px;
|
|
846
|
+
}
|
|
847
|
+
&:last-child {
|
|
848
|
+
width: 30%;
|
|
849
|
+
}
|
|
850
|
+
`;
|
|
821
851
|
const containerMask = styled__default["default"].div `
|
|
822
852
|
width: 100%;
|
|
823
853
|
height: 100%;
|
|
@@ -1118,6 +1148,7 @@ function AudioPlayer(props) {
|
|
|
1118
1148
|
setIsPlaying(false);
|
|
1119
1149
|
props.onEnded();
|
|
1120
1150
|
} });
|
|
1151
|
+
const [Loading, setLoading] = React.useState(true);
|
|
1121
1152
|
//porcentagem percorrida da musica
|
|
1122
1153
|
const [percentagePlaytime, setPercentagePlaytime] = React.useState(0);
|
|
1123
1154
|
const defaultThumb = 'https://i.gyazo.com/f201e5ef302347108c31a2129104adc1.png';
|
|
@@ -1128,6 +1159,11 @@ function AudioPlayer(props) {
|
|
|
1128
1159
|
setIsPlaying(false);
|
|
1129
1160
|
pause();
|
|
1130
1161
|
}, [props.exitSound]);
|
|
1162
|
+
React.useEffect(() => {
|
|
1163
|
+
setTimeout(() => {
|
|
1164
|
+
setLoading(false);
|
|
1165
|
+
}, 8000);
|
|
1166
|
+
}, []);
|
|
1131
1167
|
React.useEffect(() => {
|
|
1132
1168
|
if (props.onProgress) {
|
|
1133
1169
|
if (isPlaying) {
|
|
@@ -1184,25 +1220,26 @@ function AudioPlayer(props) {
|
|
|
1184
1220
|
let result = (val - min) * 100 / (max - min);
|
|
1185
1221
|
return result;
|
|
1186
1222
|
};
|
|
1187
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1223
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [Loading &&
|
|
1224
|
+
jsxRuntime.jsx(loadingContent$1, {}), jsxRuntime.jsxs(container$1, { style: { ...props.style, backgroundImage: props.coverImage ? `url(${props.coverImage})` : '' }, children: [jsxRuntime.jsx(containerMask, {}), jsxRuntime.jsx(thumb, { style: { ...props.style, backgroundImage: props.coverImage ? `url(${props.coverImage})` : `url(${defaultThumb})` } }), jsxRuntime.jsxs(content, { style: { width: '100%' }, children: [jsxRuntime.jsxs(title, { children: [" ", props.title, " "] }), jsxRuntime.jsxs(description, { children: [" ", props.description, " "] }), jsxRuntime.jsxs(date, { children: [" ", props.date, " "] }), jsxRuntime.jsxs(controls, { children: [jsxRuntime.jsx(navigationButton, { onClick: () => {
|
|
1225
|
+
sound.seek([seconds ? seconds - 15 : 0]);
|
|
1226
|
+
}, children: jsxRuntime.jsx(Back15, { fill: 'currentColor' }) }), !isPlaying ?
|
|
1227
|
+
jsxRuntime.jsx(playButton, { onClick: playingButton, children: jsxRuntime.jsx(PlayIcon, { customColor_1: 'currentColor' }) })
|
|
1228
|
+
:
|
|
1229
|
+
jsxRuntime.jsx(playButton, { onClick: playingButton, children: jsxRuntime.jsx(PauseIcon, { customColor_1: 'currentColor' }) }), jsxRuntime.jsx(navigationButton, { onClick: () => {
|
|
1230
|
+
sound.seek([seconds ? seconds + 15 : 15]);
|
|
1231
|
+
}, children: jsxRuntime.jsx(Foward15, { fill: 'currentColor' }) }), jsxRuntime.jsx(volumeControl, { children: audioVolume === 0 ?
|
|
1232
|
+
jsxRuntime.jsx(volume, { onClick: () => {
|
|
1233
|
+
setAudioVolume(0.1);
|
|
1234
|
+
}, children: jsxRuntime.jsx(MuteIcon, {}) })
|
|
1235
|
+
:
|
|
1236
|
+
jsxRuntime.jsxs(volume, { children: [jsxRuntime.jsx("div", { onClick: () => {
|
|
1237
|
+
setAudioVolume(0);
|
|
1238
|
+
}, children: jsxRuntime.jsx(VolumeIcon, {}) }), jsxRuntime.jsx(volumeBar, { type: 'range', min: '0', max: '1', value: audioVolume, className: 'volumeBar', step: '0.1', onChange: (e) => {
|
|
1239
|
+
setAudioVolume(Number(e.target.value));
|
|
1240
|
+
}, currentInputValue: calcCurrentInputPercentage(0, 1, audioVolume) })] }) })] }), jsxRuntime.jsxs(audioTimeline, { children: [jsxRuntime.jsxs(timeText, { children: [currTime.min.toString().padStart(2, '0'), ":", currTime.sec.toString().padStart(2, '0')] }), jsxRuntime.jsx(timeline, { type: "range", min: "0", max: duration / 1000, value: seconds, className: "timeline", onChange: (e) => {
|
|
1241
|
+
sound.seek([e.target.value]);
|
|
1242
|
+
}, currentInputValue: percentagePlaytime }), jsxRuntime.jsxs(timeText, { children: [time.min.toString().padStart(2, '0'), ":", time.sec.toString().padStart(2, '0')] })] })] })] })] }) }));
|
|
1206
1243
|
}
|
|
1207
1244
|
|
|
1208
1245
|
const ContainerDesafios = styled__default["default"].div `
|
|
@@ -4720,7 +4757,7 @@ function SearchField({ label, hasSearchIcon, placeholder, value, onChange, textB
|
|
|
4720
4757
|
if (event.key === 'Enter') {
|
|
4721
4758
|
handleClickButton(event);
|
|
4722
4759
|
}
|
|
4723
|
-
} }), !isButton && jsxRuntime.jsx(ButtonAction$1, { onClick: (
|
|
4760
|
+
} }), !isButton && jsxRuntime.jsx(ButtonAction$1, { onClick: (event) => handleClickButton(event), children: textButton })] })] }) }));
|
|
4724
4761
|
}
|
|
4725
4762
|
|
|
4726
4763
|
function randID() {
|
|
@@ -11815,7 +11852,7 @@ const CardThumbnails = styled__default["default"].div `
|
|
|
11815
11852
|
height: 140px;
|
|
11816
11853
|
border-radius: 8px;
|
|
11817
11854
|
object-fit: cover;
|
|
11818
|
-
object-position:
|
|
11855
|
+
object-position: top;
|
|
11819
11856
|
border: 2px solid transparent;
|
|
11820
11857
|
transition: all 0.3s;
|
|
11821
11858
|
cursor: pointer;
|
package/dist/src/components/DS/scroll-container-v2/ButtonControl/buttonControlStyles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonControlStyles.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"buttonControlStyles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DS/scroll-container-v2/ButtonControl/buttonControlStyles.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAGD,eAAO,MAAM,oBAAoB,gFAmChC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DS/scroll-container-v2/ButtonControl/index.tsx"],"names":[],"mappings":";AAMA,wBAAgB,cAAc,CAAC,EACvB,OAAO,EACP,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,WAAW,EACX,UAAU,EACV,MAAM,EACT;;;;;;;;CAAA,eAuBF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLongPress.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"useLongPress.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DS/scroll-container-v2/ButtonControl/useLongPress.tsx"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,QAAQ,aAAW,EAAE,EAAE,SAAO;;;;;;EAsB1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StylesSelect.d.ts","sourceRoot":"","sources":["
|
|
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":["
|
|
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":["
|
|
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":["
|
|
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":["
|
|
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,4 +1,5 @@
|
|
|
1
1
|
export declare const container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const loadingContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
3
|
export declare const containerMask: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
4
|
export declare const thumb: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
5
|
export declare const content: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audioPlayerStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/audio-player/audioPlayerStyles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,oEAcrB,CAAA;AAED,eAAO,MAAM,aAAa,oEAUzB,CAAA;AAED,eAAO,MAAM,KAAK,oEAWjB,CAAA;AAED,eAAO,MAAM,OAAO,oEAKnB,CAAA;AAED,eAAO,MAAM,KAAK,kEAQjB,CAAA;AAED,eAAO,MAAM,WAAW,kEAMvB,CAAA;AAED,eAAO,MAAM,IAAI,kEAMhB,CAAA;AAED,eAAO,MAAM,QAAQ,oEASpB,CAAA;AAED,eAAO,MAAM,gBAAgB,uEAY5B,CAAA;AAED,eAAO,MAAM,UAAU,uEAWtB,CAAA;AAED,eAAO,MAAM,aAAa,oEAGzB,CAAA;AAED,eAAO,MAAM,MAAM,oEAMlB,CAAA;AAED,eAAO,MAAM,SAAS;uBAAoC,MAAM;SAmF/D,CAAA;AAED,eAAO,MAAM,aAAa,oEAMzB,CAAA;AAED,eAAO,MAAM,QAAQ,kEAOpB,CAAA;AAED,eAAO,MAAM,QAAQ;uBAAoC,MAAM;SAmF9D,CAAA"}
|
|
1
|
+
{"version":3,"file":"audioPlayerStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/audio-player/audioPlayerStyles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,oEAcrB,CAAA;AAOD,eAAO,MAAM,cAAc,oEAyB1B,CAAA;AAED,eAAO,MAAM,aAAa,oEAUzB,CAAA;AAED,eAAO,MAAM,KAAK,oEAWjB,CAAA;AAED,eAAO,MAAM,OAAO,oEAKnB,CAAA;AAED,eAAO,MAAM,KAAK,kEAQjB,CAAA;AAED,eAAO,MAAM,WAAW,kEAMvB,CAAA;AAED,eAAO,MAAM,IAAI,kEAMhB,CAAA;AAED,eAAO,MAAM,QAAQ,oEASpB,CAAA;AAED,eAAO,MAAM,gBAAgB,uEAY5B,CAAA;AAED,eAAO,MAAM,UAAU,uEAWtB,CAAA;AAED,eAAO,MAAM,aAAa,oEAGzB,CAAA;AAED,eAAO,MAAM,MAAM,oEAMlB,CAAA;AAED,eAAO,MAAM,SAAS;uBAAoC,MAAM;SAmF/D,CAAA;AAED,eAAO,MAAM,aAAa,oEAMzB,CAAA;AAED,eAAO,MAAM,QAAQ,kEAOpB,CAAA;AAED,eAAO,MAAM,QAAQ;uBAAoC,MAAM;SAmF9D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/audio-player/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/audio-player/index.tsx"],"names":[],"mappings":";AAAA,OAAO,yBAAyB,CAAA;AAShC,UAAU,YAAY;IAClB,KAAK,EAAE,GAAG,CAAA;IACV;;MAEE;IACF,OAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAK,CAAC,EAAE,MAAM,CAAA;IACd;;MAEE;IACF,MAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAW,CAAC,EAAE,CAAC,IAAI,KAAA,KAAK,IAAI,CAAA;IAC5B,OAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,SAAS,CAAC,EAAG,MAAM,CAAA;IACnB,KAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAG,KAAK,EAAG,YAAY,eAmMzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorIcon.d.ts","sourceRoot":"","sources":["
|
|
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":["
|
|
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":["
|
|
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":["
|
|
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"}
|