odaptos_design_system 2.0.246 → 2.0.248
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/Atoms/TimeInterval/TimeInterval.d.ts +1 -1
- package/dist/odaptos_design_system.cjs.development.js +10 -5
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +10 -5
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Atoms/TimeInterval/TimeInterval.tsx +5 -1
- package/src/Molecules/ChatMessage/ChatMessage.tsx +2 -2
- package/src/Molecules/Interviews/Task.modules.scss +1 -1
- package/src/Molecules/Interviews/Task.tsx +1 -0
- package/src/Molecules/Interviews/WelcomeMessage.modules.scss +22 -0
|
@@ -6,4 +6,4 @@ export interface TimeIntervalProps {
|
|
|
6
6
|
onClick: (nb: number) => void;
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const TimeInterval: ({ id, startTime, endTime, onClick, className, }: TimeIntervalProps) => React.JSX.Element;
|
|
9
|
+
export declare const TimeInterval: ({ id, startTime, endTime, onClick, className, }: TimeIntervalProps) => React.JSX.Element | null;
|
|
@@ -19075,6 +19075,10 @@ const TimeInterval = ({
|
|
|
19075
19075
|
const secondsStr = Math.round(secs).toString().padStart(2, '0');
|
|
19076
19076
|
if (hours !== 0) return `${hoursStr}:${minutesStr}:${secondsStr}`;else return `${minutesStr}:${secondsStr}`;
|
|
19077
19077
|
};
|
|
19078
|
+
// Ne pas afficher le composant si startTime est 0 (considéré comme invalide)
|
|
19079
|
+
if (startTime === 0) {
|
|
19080
|
+
return null;
|
|
19081
|
+
}
|
|
19078
19082
|
let displayFormattedTime = formatTime(startTime);
|
|
19079
19083
|
if (endTime) {
|
|
19080
19084
|
displayFormattedTime += ` - ${formatTime(endTime)}`;
|
|
@@ -91416,7 +91420,7 @@ const ChatMessage = ({
|
|
|
91416
91420
|
__html: replaceURLs(message.body) ?? ''
|
|
91417
91421
|
},
|
|
91418
91422
|
className: styles$r.user_text
|
|
91419
|
-
})), startTime && /*#__PURE__*/React__default.createElement(TimeInterval, {
|
|
91423
|
+
})), startTime !== undefined && startTime !== null && startTime >= 0 && /*#__PURE__*/React__default.createElement(TimeInterval, {
|
|
91420
91424
|
onClick: onClickTime,
|
|
91421
91425
|
className: classNameTime,
|
|
91422
91426
|
startTime: startTime,
|
|
@@ -91434,7 +91438,7 @@ const ChatMessage = ({
|
|
|
91434
91438
|
__html: replaceURLs(message.body) ?? ''
|
|
91435
91439
|
},
|
|
91436
91440
|
className: styles$r.user_text
|
|
91437
|
-
})), startTime && /*#__PURE__*/React__default.createElement("div", {
|
|
91441
|
+
})), startTime !== undefined && startTime !== null && startTime >= 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
91438
91442
|
className: styles$r.time_interval_container_me
|
|
91439
91443
|
}, /*#__PURE__*/React__default.createElement(TimeInterval, {
|
|
91440
91444
|
onClick: onClickTime,
|
|
@@ -92497,7 +92501,7 @@ const SusExplanation = ({
|
|
|
92497
92501
|
}));
|
|
92498
92502
|
};
|
|
92499
92503
|
|
|
92500
|
-
var css_248z$D = ".Task-modules_scenarioContainer__Sc-3y{align-items:flex-start;background:var(--Color-Neutral-Basics-White,#fff);border:1px solid var(--Color-Neutral-Clear-Shades-200,#e1e1e2);border-radius:.5rem;display:flex;flex-direction:column;gap:.5rem;justify-content:center;padding:.75rem;width:100%}.Task-modules_fullWidthButton__vgFPq{width:100%}.Task-modules_scenarioNumberContainer__f0dGn{align-items:center;display:flex;gap:.5rem;justify-content:flex-start;width:100%}.Task-modules_scenarioNumberContainer__f0dGn p{text-transform:capitalize}.Task-modules_goToPageContainer__6M-mo{align-items:center;flex-direction:row;justify-content:space-between;padding:.25rem .25rem .25rem .5rem}.Task-modules_goToPageContainer__6M-mo,.Task-modules_notesContainer__yBLT7{align-self:stretch;background:var(--Color-Neutral-Background,#f9fafc);border-radius:.5rem;display:flex;gap:.5rem}.Task-modules_notesContainer__yBLT7{align-items:flex-start;flex-direction:column;max-height:-moz-fit-content;max-height:fit-content;max-width:100%;overflow:hidden;padding:.5rem;transition:max-height .5s cubic-bezier(.4,0,.2,1)}.Task-modules_notesContainer__yBLT7.Task-modules_collapsed__hyuhO{max-height:1rem}.Task-modules_notesContainer__yBLT7 .Task-modules_notesContainerHeader__pW4uS{align-items:center;display:flex;justify-content:space-between;width:100%}.Task-modules_notesContainer__yBLT7 .Task-modules_link_text__Xgw6d{cursor:pointer!important}.Task-modules_notesContainer__yBLT7 .Task-modules_notesText__-WIMg{opacity:1;transform:translateY(0);transition:all .5s cubic-bezier(.4,0,.2,1)}.Task-modules_notesContainer__yBLT7 .Task-modules_notesText__-WIMg.Task-modules_hidden__U8qgs{opacity:0;transform:translateY(-10px)}.Task-modules_actionBtnsContainer__HysFr{align-items:flex-start;align-self:stretch;display:flex;gap:.5rem;justify-content:flex-end;padding-top:8px}.Task-modules_scenarioContainerTooltip__7djqD{align-items:flex-start;background:var(--Color-Neutral-Basics-White,#fff);border:1px solid var(--Color-Neutral-Dark-Shades-950,#26292e);border-radius:.25rem;box-shadow:0 4px 4px 0 rgba(0,0,0,.25);display:flex;flex-direction:column;gap:.5rem;padding:1rem;width:27.75rem}.Task-modules_done_task__96o0g{align-items:flex-start;background:#f7fcf7;border-radius:.5rem;cursor:not-allowed;display:flex;flex-direction:row;justify-content:center;max-width:100%;padding:0}.Task-modules_done_task__96o0g .Task-modules_header_left__dKFvw{align-items:flex-start;align-self:stretch;border:1px solid var(--Color-Extended-Green-300,#9dd6a3);border-radius:.5rem 0 0 .5rem;border-right:none;display:flex;flex-direction:column;gap:.5rem;padding:.3125rem 0 .3125rem .625rem;width:calc(100% - 2.9rem)}.Task-modules_done_task__96o0g .Task-modules_header_left__dKFvw p{max-width:97%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Task-modules_done_task__96o0g .Task-modules_header_right__FDtFs{align-items:center;background:var(--Color-Extended-Green-100,#e8f5ea);border:1px solid var(--Color-Extended-Green-300,#9dd6a3);border-radius:0 .5rem .5rem 0;display:flex;gap:.5rem;justify-content:center;padding:1.
|
|
92504
|
+
var css_248z$D = ".Task-modules_scenarioContainer__Sc-3y{align-items:flex-start;background:var(--Color-Neutral-Basics-White,#fff);border:1px solid var(--Color-Neutral-Clear-Shades-200,#e1e1e2);border-radius:.5rem;display:flex;flex-direction:column;gap:.5rem;justify-content:center;padding:.75rem;width:100%}.Task-modules_fullWidthButton__vgFPq{width:100%}.Task-modules_scenarioNumberContainer__f0dGn{align-items:center;display:flex;gap:.5rem;justify-content:flex-start;width:100%}.Task-modules_scenarioNumberContainer__f0dGn p{text-transform:capitalize}.Task-modules_goToPageContainer__6M-mo{align-items:center;flex-direction:row;justify-content:space-between;padding:.25rem .25rem .25rem .5rem}.Task-modules_goToPageContainer__6M-mo,.Task-modules_notesContainer__yBLT7{align-self:stretch;background:var(--Color-Neutral-Background,#f9fafc);border-radius:.5rem;display:flex;gap:.5rem}.Task-modules_notesContainer__yBLT7{align-items:flex-start;flex-direction:column;max-height:-moz-fit-content;max-height:fit-content;max-width:100%;overflow:hidden;padding:.5rem;transition:max-height .5s cubic-bezier(.4,0,.2,1)}.Task-modules_notesContainer__yBLT7.Task-modules_collapsed__hyuhO{max-height:1rem}.Task-modules_notesContainer__yBLT7 .Task-modules_notesContainerHeader__pW4uS{align-items:center;display:flex;justify-content:space-between;width:100%}.Task-modules_notesContainer__yBLT7 .Task-modules_link_text__Xgw6d{cursor:pointer!important}.Task-modules_notesContainer__yBLT7 .Task-modules_notesText__-WIMg{opacity:1;transform:translateY(0);transition:all .5s cubic-bezier(.4,0,.2,1)}.Task-modules_notesContainer__yBLT7 .Task-modules_notesText__-WIMg.Task-modules_hidden__U8qgs{opacity:0;transform:translateY(-10px)}.Task-modules_actionBtnsContainer__HysFr{align-items:flex-start;align-self:stretch;display:flex;gap:.5rem;justify-content:flex-end;padding-top:8px}.Task-modules_scenarioContainerTooltip__7djqD{align-items:flex-start;background:var(--Color-Neutral-Basics-White,#fff);border:1px solid var(--Color-Neutral-Dark-Shades-950,#26292e);border-radius:.25rem;box-shadow:0 4px 4px 0 rgba(0,0,0,.25);display:flex;flex-direction:column;gap:.5rem;padding:1rem;width:27.75rem}.Task-modules_done_task__96o0g{align-items:flex-start;background:#f7fcf7;border-radius:.5rem;cursor:not-allowed;display:flex;flex-direction:row;justify-content:center;max-width:100%;padding:0}.Task-modules_done_task__96o0g .Task-modules_header_left__dKFvw{align-items:flex-start;align-self:stretch;border:1px solid var(--Color-Extended-Green-300,#9dd6a3);border-radius:.5rem 0 0 .5rem;border-right:none;display:flex;flex-direction:column;gap:.5rem;padding:.3125rem 0 .3125rem .625rem;width:calc(100% - 2.9rem)}.Task-modules_done_task__96o0g .Task-modules_header_left__dKFvw p{max-width:97%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Task-modules_done_task__96o0g .Task-modules_header_right__FDtFs{align-items:center;background:var(--Color-Extended-Green-100,#e8f5ea);border:1px solid var(--Color-Extended-Green-300,#9dd6a3);border-radius:0 .5rem .5rem 0;display:flex;gap:.5rem;justify-content:center;padding:1.4rem .75rem}.Task-modules_done_task__96o0g .Task-modules_header_right__FDtFs svg{fill:#5cbb65;height:1rem;width:1rem}.Task-modules_not_started_task__f2C-B{align-items:flex-start;background:#fff;border-radius:.5rem;display:flex;flex-direction:row;justify-content:center;max-width:100%;padding:0}.Task-modules_not_started_task__f2C-B .Task-modules_header_left__dKFvw{align-items:flex-start;align-self:stretch;border:1px solid var(--Color-Neutral-Dark-Shades-950,#26292e);border-radius:.5rem 0 0 .5rem;border-right:none;display:flex;flex-direction:column;gap:.5rem;padding:.3125rem 0 .3125rem .625rem;width:calc(100% - 2.9rem)}.Task-modules_not_started_task__f2C-B .Task-modules_header_left__dKFvw p{max-width:97%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Task-modules_not_started_task__f2C-B .Task-modules_header_right__FDtFs{align-items:center;background:#fff;border:1px solid var(--Color-Neutral-Dark-Shades-950,#26292e);border-radius:0 .5rem .5rem 0;cursor:pointer;display:flex;gap:.5rem;justify-content:center;padding:1.3rem .75rem}.Task-modules_not_started_task__f2C-B .Task-modules_header_right__FDtFs:hover{background:#f0f0f0}.Task-modules_not_started_task__f2C-B .Task-modules_header_right__FDtFs svg{fill:#000;height:1rem;width:1rem}.Task-modules_disabled__JLrwv{cursor:not-allowed;opacity:.5;pointer-events:none}.Task-modules_disabled__JLrwv:hover{background:#fff}.Task-modules_taskContainerDone__1iJ0D{align-items:flex-start;align-self:stretch;background:var(--Color-Neutral-Basics-White,#fff);border:1px solid var(--Color-Neutral-Clear-Shades-200,#e1e1e2);border-radius:.5rem;display:flex;flex-direction:column;gap:.5rem;justify-content:center;min-width:8rem;padding:.75rem}.Task-modules_taskContainerDone__1iJ0D .Task-modules_scenarioNumberContainer__f0dGn{align-items:center;display:flex;gap:.5rem;justify-content:flex-start;width:100%}.Task-modules_taskContainerDone__1iJ0D .Task-modules_scenarioNumberContainer__f0dGn .Task-modules_scenarioNumberContainer_left__2ItSZ{align-items:space-between;display:flex;gap:.5rem;justify-content:flex-start;width:100%}.Task-modules_taskContainerDone__1iJ0D .Task-modules_scenarioNumberContainer__f0dGn p{text-transform:capitalize}";
|
|
92501
92505
|
var styles$D = {"scenarioContainer":"Task-modules_scenarioContainer__Sc-3y","fullWidthButton":"Task-modules_fullWidthButton__vgFPq","scenarioNumberContainer":"Task-modules_scenarioNumberContainer__f0dGn","goToPageContainer":"Task-modules_goToPageContainer__6M-mo","notesContainer":"Task-modules_notesContainer__yBLT7","collapsed":"Task-modules_collapsed__hyuhO","notesContainerHeader":"Task-modules_notesContainerHeader__pW4uS","link_text":"Task-modules_link_text__Xgw6d","notesText":"Task-modules_notesText__-WIMg","hidden":"Task-modules_hidden__U8qgs","actionBtnsContainer":"Task-modules_actionBtnsContainer__HysFr","scenarioContainerTooltip":"Task-modules_scenarioContainerTooltip__7djqD","done_task":"Task-modules_done_task__96o0g","header_left":"Task-modules_header_left__dKFvw","header_right":"Task-modules_header_right__FDtFs","not_started_task":"Task-modules_not_started_task__f2C-B","disabled":"Task-modules_disabled__JLrwv","taskContainerDone":"Task-modules_taskContainerDone__1iJ0D","scenarioNumberContainer_left":"Task-modules_scenarioNumberContainer_left__2ItSZ"};
|
|
92502
92506
|
styleInject(css_248z$D);
|
|
92503
92507
|
|
|
@@ -92580,7 +92584,8 @@ const TaskContent = ({
|
|
|
92580
92584
|
variant: "secondary",
|
|
92581
92585
|
iconLeft: /*#__PURE__*/React__default.createElement(SendIcon, null),
|
|
92582
92586
|
text: contentFunc('sendTask'),
|
|
92583
|
-
onClick: () => sendTask(task._id)
|
|
92587
|
+
onClick: () => sendTask(task._id),
|
|
92588
|
+
className: styles$D.fullWidthButton
|
|
92584
92589
|
}));
|
|
92585
92590
|
};
|
|
92586
92591
|
const Task = ({
|
|
@@ -92851,7 +92856,7 @@ const Task = ({
|
|
|
92851
92856
|
}
|
|
92852
92857
|
};
|
|
92853
92858
|
|
|
92854
|
-
var css_248z$E = ".WelcomeMessage-modules_welcome_container__oKUiD{align-items:flex-start;align-self:stretch;background:var(--color-extended-green-100,#e8f5ea);border:1px solid var(--color-extended-green-300,#9dd6a3);border-radius:.5rem;display:flex;flex-direction:column;padding:.5rem .75rem .75rem}.WelcomeMessage-modules_welcome_container__oKUiD .WelcomeMessage-modules_welcome_title__QRJ1P{border-bottom:1px solid var(--color-extended-green-300,#9dd6a3);margin-bottom:.5rem;padding-bottom:.35rem;width:100%}.WelcomeMessage-modules_welcome_container__oKUiD .WelcomeMessage-modules_welcome_description__YmSMU{color:#26292e;font-family:Open Sans;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.225rem}.WelcomeMessage-modules_welcome_container__oKUiD .WelcomeMessage-modules_welcome_description__YmSMU ol{letter-spacing:-.0019rem;margin:unset;margin-top:.5625rem;padding-inline-start:1.5rem}";
|
|
92859
|
+
var css_248z$E = ".WelcomeMessage-modules_welcome_container__oKUiD{align-items:flex-start;align-self:stretch;background:var(--color-extended-green-100,#e8f5ea);border:1px solid var(--color-extended-green-300,#9dd6a3);border-radius:.5rem;display:flex;flex-direction:column;padding:.5rem .75rem .75rem}.WelcomeMessage-modules_welcome_container__oKUiD .WelcomeMessage-modules_welcome_title__QRJ1P{border-bottom:1px solid var(--color-extended-green-300,#9dd6a3);margin-bottom:.5rem;padding-bottom:.35rem;width:100%}.WelcomeMessage-modules_welcome_container__oKUiD .WelcomeMessage-modules_welcome_description__YmSMU{color:#26292e;font-family:Open Sans;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.225rem}.WelcomeMessage-modules_welcome_container__oKUiD .WelcomeMessage-modules_welcome_description__YmSMU ol{letter-spacing:-.0019rem;margin:unset;margin-top:.5625rem;padding-inline-start:1.5rem}.WelcomeMessage-modules_welcome_container__oKUiD .WelcomeMessage-modules_welcome_description__YmSMU ol li{line-height:1.5!important;margin-bottom:0!important;white-space:normal!important}.WelcomeMessage-modules_welcome_container__oKUiD .WelcomeMessage-modules_welcome_description__YmSMU ol li:last-child{margin-bottom:0!important}.WelcomeMessage-modules_welcome_container__oKUiD .WelcomeMessage-modules_welcome_description__YmSMU ul{list-style-type:disc;margin:0;padding-left:1.5rem;white-space:normal!important}.WelcomeMessage-modules_welcome_container__oKUiD .WelcomeMessage-modules_welcome_description__YmSMU ul li{line-height:1.5!important;margin-bottom:0!important;white-space:normal!important}.WelcomeMessage-modules_welcome_container__oKUiD .WelcomeMessage-modules_welcome_description__YmSMU ul li:last-child{margin-bottom:0!important}";
|
|
92855
92860
|
var styles$E = {"welcome_container":"WelcomeMessage-modules_welcome_container__oKUiD","welcome_title":"WelcomeMessage-modules_welcome_title__QRJ1P","welcome_description":"WelcomeMessage-modules_welcome_description__YmSMU"};
|
|
92856
92861
|
styleInject(css_248z$E);
|
|
92857
92862
|
|