ublo-lib 1.42.25 → 1.42.27
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/es/common/components/collapsible/collapsible.d.ts.map +1 -1
- package/es/common/components/collapsible/collapsible.js +3 -2
- package/es/esf/components/period-picker/date-display.d.ts.map +1 -1
- package/es/esf/components/period-picker/date-display.js +1 -3
- package/es/esf/components/period-picker/date-display.module.css +0 -9
- package/es/esf/components/period-picker/days.module.css +1 -1
- package/es/esf/components/period-picker/extended-stay-picker.d.ts.map +1 -1
- package/es/esf/components/period-picker/extended-stay-picker.js +3 -3
- package/es/esf/components/period-picker/extended-stay-picker.module.css +8 -1
- package/es/esf/components/period-picker/period-picker.d.ts +1 -2
- package/es/esf/components/period-picker/period-picker.d.ts.map +1 -1
- package/es/esf/components/period-picker/period-picker.js +2 -2
- package/es/esf/components/period-picker/period-picker.module.css +0 -11
- package/es/esf/components/period-picker/popup.d.ts.map +1 -1
- package/es/esf/components/period-picker/popup.js +3 -3
- package/es/esf/components/period-picker/warning.d.ts.map +1 -1
- package/es/esf/components/period-picker/warning.js +3 -3
- package/es/esf/components/period-picker/weeks.d.ts.map +1 -1
- package/es/esf/components/period-picker/weeks.js +3 -13
- package/es/esf/components/period-picker/weeks.module.css +18 -14
- package/es/future/components/msem/account.d.ts +3 -1
- package/es/future/components/msem/account.d.ts.map +1 -1
- package/package.json +1 -1
- package/es/esf/components/period-picker/services/motions.d.ts +0 -51
- package/es/esf/components/period-picker/services/motions.d.ts.map +0 -1
- package/es/esf/components/period-picker/services/motions.js +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../src/common/components/collapsible/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAqBF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,aAAsB,EACtB,MAAY,EACZ,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../src/common/components/collapsible/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAqBF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,aAAsB,EACtB,MAAY,EACZ,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,EAAE,KAAK,2CAwDP"}
|
|
@@ -6,7 +6,7 @@ import * as Icons from "dt-design-system/es/icons";
|
|
|
6
6
|
import classnames from "classnames";
|
|
7
7
|
import * as Cms from "../../utils/cms";
|
|
8
8
|
import styles from "./collapsible.module.css";
|
|
9
|
-
const
|
|
9
|
+
const i18n = {
|
|
10
10
|
fr: {
|
|
11
11
|
open: "Afficher",
|
|
12
12
|
close: "Masquer",
|
|
@@ -37,7 +37,8 @@ export default function Collapsible({ gradientColor = "#fff", height = 150, lang
|
|
|
37
37
|
const toggleOpen = () => {
|
|
38
38
|
setOpened(!opened);
|
|
39
39
|
};
|
|
40
|
-
const
|
|
40
|
+
const messages = i18n[lang] || i18n.en;
|
|
41
|
+
const message = opened ? messages.close : messages.open;
|
|
41
42
|
const Icon = opened ? Icons.ChevronUp : Icons.ChevronDown;
|
|
42
43
|
React.useEffect(() => {
|
|
43
44
|
const parentHeight = parentRef.current?.offsetHeight;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-display.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/date-display.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date-display.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/date-display.js"],"names":[],"mappings":"AAOA;;4CAyCC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { motion } from "framer-motion";
|
|
5
4
|
import { useUbloContext } from "ublo/with-ublo";
|
|
6
5
|
import * as Messages from "./messages";
|
|
7
6
|
import * as Stay from "./services/stay";
|
|
8
|
-
import * as Motions from "./services/motions";
|
|
9
7
|
import css from "./date-display.module.css";
|
|
10
8
|
export default function DateDisplay({ className }) {
|
|
11
9
|
const [stay, setStay] = React.useState();
|
|
@@ -36,5 +34,5 @@ export default function DateDisplay({ className }) {
|
|
|
36
34
|
if (!extend || !stay || metadata?.disableWeekpicker)
|
|
37
35
|
return null;
|
|
38
36
|
const formattedStay = Stay.formatStay(lang, stay);
|
|
39
|
-
return (_jsxs("div", { className: classes, children: [Messages.get(lang, "offers"), " ", _jsx("span", { className: css.dates, children: formattedStay
|
|
37
|
+
return (_jsxs("div", { className: classes, children: [Messages.get(lang, "offers"), " ", _jsx("span", { className: css.dates, children: formattedStay })] }));
|
|
40
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extended-stay-picker.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/extended-stay-picker.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extended-stay-picker.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/extended-stay-picker.js"],"names":[],"mappings":"AAOA;;;;;;;;;;4CA2CC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
4
3
|
import Button from "dt-design-system/es/button";
|
|
5
4
|
import Days from "./days";
|
|
6
5
|
import * as Dates from "./services/dates";
|
|
7
|
-
import * as Motions from "./services/motions";
|
|
8
6
|
import * as Messages from "./messages";
|
|
9
7
|
import css from "./extended-stay-picker.module.css";
|
|
10
8
|
export default function ExtendedStayPicker({ lang, stay, extend, week, endWeek, forceSeasonSwitch, opened, setExtendedOpened, onChange, }) {
|
|
@@ -18,5 +16,7 @@ export default function ExtendedStayPicker({ lang, stay, extend, week, endWeek,
|
|
|
18
16
|
const close = () => {
|
|
19
17
|
setExtendedOpened(false);
|
|
20
18
|
};
|
|
21
|
-
|
|
19
|
+
if (!opened)
|
|
20
|
+
return null;
|
|
21
|
+
return (_jsxs("div", { className: css.picker, children: [_jsxs("div", { className: css.title, children: [Messages.get(lang, "extended-title"), _jsx(Button, { className: css.button, variant: "link", onClick: close, compact: true, children: Messages.get(lang, "update-period") })] }), _jsx(Days, { ref: barRef, lang: lang, fullStay: fullStay, interval: interval, onChange: onChange })] }));
|
|
22
22
|
}
|
|
@@ -10,9 +10,17 @@
|
|
|
10
10
|
gap: 16px;
|
|
11
11
|
padding: 24px 0;
|
|
12
12
|
background-color: var(--ds-grey-000, #ffffff);
|
|
13
|
+
animation: picker-appearance 320ms
|
|
14
|
+
var(--ds-transition-easing, cubic-bezier(0.4, 0, 0.2, 1));
|
|
13
15
|
z-index: 1;
|
|
14
16
|
}
|
|
15
17
|
|
|
18
|
+
@keyframes picker-appearance {
|
|
19
|
+
0% {
|
|
20
|
+
opacity: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
16
24
|
.title {
|
|
17
25
|
align-self: center;
|
|
18
26
|
position: relative;
|
|
@@ -23,7 +31,6 @@
|
|
|
23
31
|
gap: 6px;
|
|
24
32
|
padding: 0 20px;
|
|
25
33
|
font-size: 20px;
|
|
26
|
-
text-transform: uppercase;
|
|
27
34
|
font-weight: 700;
|
|
28
35
|
text-align: center;
|
|
29
36
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export default function PeriodPicker({ setClosed, force, onChange,
|
|
1
|
+
export default function PeriodPicker({ setClosed, force, onChange, ubloContext, }: {
|
|
2
2
|
setClosed?: any;
|
|
3
3
|
force?: boolean;
|
|
4
4
|
onChange?: any;
|
|
5
|
-
isPopup?: boolean;
|
|
6
5
|
ubloContext?: {};
|
|
7
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
//# sourceMappingURL=period-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"period-picker.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/period-picker.js"],"names":[],"mappings":"AA2BA
|
|
1
|
+
{"version":3,"file":"period-picker.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/period-picker.js"],"names":[],"mappings":"AA2BA;;;;;4CAyMC"}
|
|
@@ -18,7 +18,7 @@ const { publicRuntimeConfig } = getConfig();
|
|
|
18
18
|
const { start, end, forceSeasonSwitch = false, extend, } = publicRuntimeConfig.season;
|
|
19
19
|
const WEEK_STORAGE = "stayWeek";
|
|
20
20
|
const EXTEND_STAY_PICKER_APPEARANCE_DELAY = 1000;
|
|
21
|
-
export default function PeriodPicker({ setClosed = undefined, force = false, onChange = undefined,
|
|
21
|
+
export default function PeriodPicker({ setClosed = undefined, force = false, onChange = undefined, ubloContext = {}, }) {
|
|
22
22
|
const ref = React.useRef();
|
|
23
23
|
const { lang, cmsMode, metadata, path } = {
|
|
24
24
|
...ubloContext,
|
|
@@ -129,5 +129,5 @@ export default function PeriodPicker({ setClosed = undefined, force = false, onC
|
|
|
129
129
|
setOpened(false);
|
|
130
130
|
openExtendedPicker();
|
|
131
131
|
};
|
|
132
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { className: pickerClasses, children: _jsxs("div", { className: css.inner, children: [_jsxs("div", { className: css.header, children: [_jsx("div", { className: css.iconContainer, children: _jsx(Icons.Calendar, { className: css.icon }) }), _jsx(Title, { lang: lang, stay: stay }), _jsx(Controls, { barRef: ref, distance: 200 })] }), _jsx(Weeks, { ref: ref, lang: lang, weeks: weeks, beginWeek: beginWeek, endWeek: endWeek, selected: selected, select: select, forceSeasonSwitch: forceSeasonSwitch, openExtendedPicker: openExtendedPicker
|
|
132
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: pickerClasses, children: _jsxs("div", { className: css.inner, children: [_jsxs("div", { className: css.header, children: [_jsx("div", { className: css.iconContainer, children: _jsx(Icons.Calendar, { className: css.icon }) }), _jsx(Title, { lang: lang, stay: stay }), _jsx(Controls, { barRef: ref, distance: 200 })] }), _jsx(Weeks, { ref: ref, lang: lang, weeks: weeks, beginWeek: beginWeek, endWeek: endWeek, selected: selected, select: select, forceSeasonSwitch: forceSeasonSwitch, openExtendedPicker: openExtendedPicker }), _jsx(Warning, { lang: lang, warn: warn, setWarn: setWarn, selectWeek: selectWeek, chosenWeek: chosenWeek }), _jsx(ExtendedStayPicker, { lang: lang, stay: stay, extend: extend, week: selected, endWeek: endWeek, forceSeasonSwitch: forceSeasonSwitch, opened: extendedOpened, setExtendedOpened: setExtendedOpened, onChange: onChange })] }) }), _jsx(Popup, { mustFilterSections: mustFilterSections, showDialog: showDialog, opened: opened, selectAndClose: selectAndClose, onChange: onChange })] }));
|
|
133
133
|
}
|
|
@@ -8,17 +8,6 @@
|
|
|
8
8
|
animation: period-picker-appearance 320ms
|
|
9
9
|
var(--ds-transition-easing, cubic-bezier(0.4, 0, 0.2, 1));
|
|
10
10
|
overflow: hidden;
|
|
11
|
-
|
|
12
|
-
/* @media (prefers-color-scheme: dark) {
|
|
13
|
-
--ds-grey-000: #171e30;
|
|
14
|
-
--ds-grey-100: #2d303c;
|
|
15
|
-
--ds-grey-200: #484848;
|
|
16
|
-
--ds-grey-300: #d2d2d2;
|
|
17
|
-
--ds-grey-400: #d4d4d4;
|
|
18
|
-
--ds-grey-500: #efefef;
|
|
19
|
-
--ds-grey-600: #f5f5f5;
|
|
20
|
-
--ds-grey-700: #fff;
|
|
21
|
-
} */
|
|
22
11
|
}
|
|
23
12
|
|
|
24
13
|
@keyframes period-picker-appearance {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popup.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/popup.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"popup.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/popup.js"],"names":[],"mappings":"AAKA;;;;;;sBA2BC;uBAhCsB,OAAO"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as ReactDOM from "react-dom";
|
|
4
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
5
4
|
import PeriodPicker from "./period-picker";
|
|
6
|
-
import * as Motions from "./services/motions";
|
|
7
5
|
import css from "./popup.module.css";
|
|
8
6
|
export default function Popup({ mustFilterSections, showDialog, opened, onChange, selectAndClose, }) {
|
|
9
7
|
const [ready, setReady] = React.useState(false);
|
|
@@ -13,5 +11,7 @@ export default function Popup({ mustFilterSections, showDialog, opened, onChange
|
|
|
13
11
|
if (!ready)
|
|
14
12
|
return null;
|
|
15
13
|
const isVisible = mustFilterSections && showDialog && opened;
|
|
16
|
-
|
|
14
|
+
if (!isVisible)
|
|
15
|
+
return null;
|
|
16
|
+
return ReactDOM.createPortal(_jsx("div", { className: css.popup, children: _jsx("div", { className: css.inner, children: _jsx(PeriodPicker, { onChange: onChange, setClosed: selectAndClose }) }) }), document.body);
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warning.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/warning.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"warning.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/warning.js"],"names":[],"mappings":"AAMA;;;;;;4CAiCC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
4
3
|
import Button from "dt-design-system/es/button";
|
|
5
4
|
import * as Icons from "dt-design-system/es/icons";
|
|
6
5
|
import * as Messages from "./messages";
|
|
7
|
-
import * as Motions from "./services/motions";
|
|
8
6
|
import css from "./warning.module.css";
|
|
9
7
|
export default function Warning({ lang, warn, setWarn, selectWeek, chosenWeek, }) {
|
|
10
8
|
const cancel = () => {
|
|
@@ -13,5 +11,7 @@ export default function Warning({ lang, warn, setWarn, selectWeek, chosenWeek, }
|
|
|
13
11
|
const confirm = () => {
|
|
14
12
|
selectWeek(chosenWeek, true);
|
|
15
13
|
};
|
|
16
|
-
|
|
14
|
+
if (!warn)
|
|
15
|
+
return null;
|
|
16
|
+
return (_jsxs("div", { className: css.warn, children: [_jsxs("div", { className: css.text, children: [_jsx(Icons.AlertCircle, { className: css.icon }), Messages.get(lang, "warn")] }), _jsxs("div", { className: css.buttons, children: [_jsx(Button, { className: css.cancelButton, onClick: cancel, children: Messages.get(lang, "cancel") }), _jsx(Button, { className: css.button, onClick: confirm, children: Messages.get(lang, "ok") })] })] }));
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weeks.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/weeks.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"weeks.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/weeks.js"],"names":[],"mappings":";AAWA,+EA6CG;uBAxDoB,OAAO"}
|
|
@@ -2,9 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import getConfig from "next/config";
|
|
5
|
-
import { LayoutGroup, motion } from "framer-motion";
|
|
6
5
|
import Button from "dt-design-system/es/button";
|
|
7
|
-
import * as Icons from "dt-design-system/es/icons";
|
|
8
6
|
import * as Dates from "./services/dates";
|
|
9
7
|
import * as Messages from "./messages";
|
|
10
8
|
import css from "./weeks.module.css";
|
|
@@ -24,13 +22,11 @@ const Weeks = React.forwardRef(({ weeks, lang, ...props }, ref) => {
|
|
|
24
22
|
const classes = classNames(css.weeks, {
|
|
25
23
|
[css.withPeriods]: periods,
|
|
26
24
|
});
|
|
27
|
-
return (_jsxs(
|
|
25
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { ref: ref, className: classes, children: weeks.map((week) => (_jsx(Week, { lang: lang, week: week, ...props }, week))) }), periods && (_jsxs("div", { className: css.nomenclature, children: [periods.high?.length > 0 && (_jsxs("div", { className: css.period, "data-period": "high", children: [_jsx("div", { className: css.pill }), Messages.get(lang, "high-period")] })), periods.medium?.length > 0 && (_jsxs("div", { className: css.period, "data-period": "medium", children: [_jsx("div", { className: css.pill }), Messages.get(lang, "medium-period")] })), periods.low?.length > 0 && (_jsxs("div", { className: css.period, "data-period": "low", children: [_jsx("div", { className: css.pill }), Messages.get(lang, "low-period")] }))] }))] }));
|
|
28
26
|
});
|
|
29
27
|
Weeks.displayName = "Weeks";
|
|
30
28
|
export default Weeks;
|
|
31
|
-
function Week({ lang, week, beginWeek, endWeek, selected, select, forceSeasonSwitch, openExtendedPicker,
|
|
32
|
-
const [checkVisible, setCheckVisible] = React.useState(false);
|
|
33
|
-
const [checkTimeout, setCheckTimeout] = React.useState();
|
|
29
|
+
function Week({ lang, week, beginWeek, endWeek, selected, select, forceSeasonSwitch, openExtendedPicker, }) {
|
|
34
30
|
const now = new Date();
|
|
35
31
|
const prevDate = Dates.weekToDate(week - 1, endWeek, forceSeasonSwitch);
|
|
36
32
|
const currDate = Dates.weekToDate(week, endWeek, forceSeasonSwitch);
|
|
@@ -59,12 +55,6 @@ function Week({ lang, week, beginWeek, endWeek, selected, select, forceSeasonSwi
|
|
|
59
55
|
const selectWeek = () => {
|
|
60
56
|
select(week);
|
|
61
57
|
openExtendedPicker();
|
|
62
|
-
clearTimeout(checkTimeout);
|
|
63
|
-
setCheckVisible(true);
|
|
64
|
-
setCheckTimeout(setTimeout(() => {
|
|
65
|
-
setCheckVisible(false);
|
|
66
|
-
}, 1200));
|
|
67
58
|
};
|
|
68
|
-
|
|
69
|
-
return (_jsxs("div", { className: weekClasses, children: [_jsx(Button, { className: css.button, onClick: selectWeek, "aria-label": `${Dates.weekToLongDate(week)} - ${Dates.weekToLongDate(week + 1)}`, disabled: isPast, children: !periods && (_jsxs(_Fragment, { children: [isSelected && (_jsx(motion.div, { layoutId: layoutId, className: css.buttonFiller })), checkVisible && _jsx(Icons.CheckCircle, { className: css.check })] })) }), _jsxs("div", { className: css.date, children: [_jsx("div", { className: css.dateFrom, children: Dates.formatShort(currDate) }), isLast && (_jsx("div", { className: css.dateTo, children: Dates.formatShort(nextDate) }))] }), showMonth && (_jsxs("span", { className: css.month, children: [formattedMonth, " ", showYear && _jsx("b", { className: css.year, children: currYear })] }))] }));
|
|
59
|
+
return (_jsxs("div", { className: weekClasses, children: [_jsx(Button, { className: css.button, onClick: selectWeek, "aria-label": `${Dates.weekToLongDate(week)} - ${Dates.weekToLongDate(week + 1)}`, disabled: isPast }), _jsxs("div", { className: css.date, children: [_jsx("div", { className: css.dateFrom, children: Dates.formatShort(currDate) }), isLast && (_jsx("div", { className: css.dateTo, children: Dates.formatShort(nextDate) }))] }), showMonth && (_jsxs("span", { className: css.month, children: [formattedMonth, " ", showYear && _jsx("b", { className: css.year, children: currYear })] }))] }));
|
|
70
60
|
}
|
|
@@ -128,24 +128,12 @@ button.button {
|
|
|
128
128
|
background-color: var(--ds-grey-500, #484848);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.
|
|
132
|
-
outline: 2px solid var(--ds-primary, var(--ds-blue-500, #002dcc));
|
|
133
|
-
outline-offset: -1px;
|
|
134
|
-
border-radius: var(--ds-radius-100, 4px);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.buttonFiller {
|
|
131
|
+
.selected button.button {
|
|
138
132
|
position: relative;
|
|
139
|
-
width: calc(100% + var(--gap) * 2);
|
|
140
|
-
height: 100%;
|
|
141
|
-
margin-left: calc(0px - var(--gap));
|
|
142
133
|
background-color: var(--ds-secondary, var(--ds-blue-400, #4177f6));
|
|
143
|
-
pointer-events: none;
|
|
144
|
-
touch-action: none;
|
|
145
|
-
z-index: 1;
|
|
146
134
|
}
|
|
147
135
|
|
|
148
|
-
.
|
|
136
|
+
button.button::before {
|
|
149
137
|
--border-width: 8px;
|
|
150
138
|
|
|
151
139
|
content: "";
|
|
@@ -154,7 +142,23 @@ button.button {
|
|
|
154
142
|
height: 100%;
|
|
155
143
|
left: calc(0px - var(--border-width));
|
|
156
144
|
background-color: var(--ds-secondary, var(--ds-blue-400, #4177f6));
|
|
145
|
+
opacity: 0;
|
|
146
|
+
transform: scaleX(0.8);
|
|
147
|
+
transition: opacity 160ms
|
|
148
|
+
var(--ds-transition-easing, cubic-bezier(0.4, 0, 0.2, 1)),
|
|
149
|
+
transform 160ms var(--ds-transition-easing, cubic-bezier(0.4, 0, 0.2, 1));
|
|
150
|
+
pointer-events: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.selected button.button::before {
|
|
157
154
|
opacity: 0.5;
|
|
155
|
+
transform: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.weeks.withPeriods .selected button.button {
|
|
159
|
+
outline: 2px solid var(--ds-primary, var(--ds-blue-500, #002dcc));
|
|
160
|
+
outline-offset: -1px;
|
|
161
|
+
border-radius: var(--ds-radius-100, 4px);
|
|
158
162
|
}
|
|
159
163
|
|
|
160
164
|
.check {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/account.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,KAAK,OAAO,GAAG,aAAa,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/account.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,OAAO,GAAG,EAAE,CAAC;AAElB,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;;AAEF,wBAAmC;AAEnC,iBAAS,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,KAAK,mBAcrD"}
|
package/package.json
CHANGED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export namespace scaling {
|
|
2
|
-
namespace hidden {
|
|
3
|
-
export let opacity: number;
|
|
4
|
-
export let scale: number;
|
|
5
|
-
export { transition };
|
|
6
|
-
}
|
|
7
|
-
namespace visible {
|
|
8
|
-
let opacity_1: number;
|
|
9
|
-
export { opacity_1 as opacity };
|
|
10
|
-
let scale_1: number;
|
|
11
|
-
export { scale_1 as scale };
|
|
12
|
-
export { transition };
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export namespace fading {
|
|
16
|
-
export namespace hidden_1 {
|
|
17
|
-
let opacity_2: number;
|
|
18
|
-
export { opacity_2 as opacity };
|
|
19
|
-
export { transition };
|
|
20
|
-
}
|
|
21
|
-
export { hidden_1 as hidden };
|
|
22
|
-
export namespace visible_1 {
|
|
23
|
-
let opacity_3: number;
|
|
24
|
-
export { opacity_3 as opacity };
|
|
25
|
-
export { transition };
|
|
26
|
-
}
|
|
27
|
-
export { visible_1 as visible };
|
|
28
|
-
}
|
|
29
|
-
export namespace character {
|
|
30
|
-
export namespace hidden_2 {
|
|
31
|
-
let opacity_4: number;
|
|
32
|
-
export { opacity_4 as opacity };
|
|
33
|
-
export let y: string;
|
|
34
|
-
export { transition };
|
|
35
|
-
}
|
|
36
|
-
export { hidden_2 as hidden };
|
|
37
|
-
export namespace visible_2 {
|
|
38
|
-
let opacity_5: number;
|
|
39
|
-
export { opacity_5 as opacity };
|
|
40
|
-
let y_1: string;
|
|
41
|
-
export { y_1 as y };
|
|
42
|
-
export { transition };
|
|
43
|
-
}
|
|
44
|
-
export { visible_2 as visible };
|
|
45
|
-
}
|
|
46
|
-
declare namespace transition {
|
|
47
|
-
let duration: number;
|
|
48
|
-
let ease: string;
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
51
|
-
//# sourceMappingURL=motions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motions.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/period-picker/services/motions.js"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const transition = { duration: 0.64, ease: "easeInOut" };
|
|
2
|
-
export const scaling = {
|
|
3
|
-
hidden: { opacity: 0, scale: 1.1, transition },
|
|
4
|
-
visible: { opacity: 1, scale: 1, transition },
|
|
5
|
-
};
|
|
6
|
-
export const fading = {
|
|
7
|
-
hidden: { opacity: 0, transition },
|
|
8
|
-
visible: { opacity: 1, transition },
|
|
9
|
-
};
|
|
10
|
-
export const character = {
|
|
11
|
-
hidden: { opacity: 0, y: `0.15em`, transition },
|
|
12
|
-
visible: { opacity: 1, y: `0em`, transition },
|
|
13
|
-
};
|