@mailstep/design-system 0.8.31-beta.2 → 0.8.31-beta.3
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/package.json
CHANGED
|
@@ -27,5 +27,5 @@ export var DateRepeater = function (_a) {
|
|
|
27
27
|
}
|
|
28
28
|
onChangeOthers === null || onChangeOthers === void 0 ? void 0 : onChangeOthers(__assign(__assign({}, others), { dateTypeRepeater: dateTypeRepeater }));
|
|
29
29
|
}, [onChangeOthers, reset, others]);
|
|
30
|
-
return (_jsx(x.div, { borderTop: "1px solid", borderColor: "lightGray2", mt: "8px", pt: "8px", mb: "8px", children: _jsxs(FooterRow, { children: [_jsxs(x.div, { display: "flex", alignItems: "center", flex: "1", children: [_jsx(Icon, { icon: "calendar" }), _jsx(FooterRowLabel, { children: i18n._({ id: 'dataGrid.repeat', message: 'Repeat' }) })] }), _jsxs(x.select, { textAlign: "right", onChange: handleChange, value: others === null || others === void 0 ? void 0 : others.dateTypeRepeater, background: "
|
|
30
|
+
return (_jsx(x.div, { borderTop: "1px solid", borderColor: "lightGray2", mt: "8px", pt: "8px", mb: "8px", children: _jsxs(FooterRow, { children: [_jsxs(x.div, { display: "flex", alignItems: "center", flex: "1", children: [_jsx(Icon, { icon: "calendar" }), _jsx(FooterRowLabel, { children: i18n._({ id: 'dataGrid.repeat', message: 'Repeat' }) })] }), _jsxs(x.select, { textAlign: "right", onChange: handleChange, value: others === null || others === void 0 ? void 0 : others.dateTypeRepeater, background: "#fff", cursor: "pointer", border: "none", children: [_jsx("option", { value: "", children: i18n._({ id: 'dataGrid.noRepeat', message: 'No repeat' }) }), _jsx("option", { value: DatePickerRepeat.EVERY_TODAY, children: DatePickerRepeatTrans[DatePickerRepeat.EVERY_TODAY] }), _jsx("option", { value: DatePickerRepeat.EVERY_YESTERDAY, children: DatePickerRepeatTrans[DatePickerRepeat.EVERY_YESTERDAY] })] })] }) }));
|
|
31
31
|
};
|
|
@@ -12,8 +12,8 @@ import { FooterRow } from './FooterRow';
|
|
|
12
12
|
import { FooterRowLabel } from './FooterRowLabel';
|
|
13
13
|
var Btn = styled.button(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transform: rotate(90deg);\n font-size: 18px;\n margin: -4px 0;\n background-color: transparent !important;\n border: none;\n color: ", ";\n &:disabled:hover {\n color: ", ";\n cursor: default;\n }\n &:hover {\n color: ", ";\n background-color: transparent !important;\n }\n"], ["\n transform: rotate(90deg);\n font-size: 18px;\n margin: -4px 0;\n background-color: transparent !important;\n border: none;\n color: ", ";\n &:disabled:hover {\n color: ", ";\n cursor: default;\n }\n &:hover {\n color: ", ";\n background-color: transparent !important;\n }\n"])), th('colors.lightGray4'), th('colors.lightGray4'), th('colors.red2'));
|
|
14
14
|
var TimeWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: baseline;\n justify-content: center;\n border: 1px solid ", ";\n border-radius: 6px;\n padding: 0 4px;\n margin: 0 4px;\n"], ["\n display: flex;\n align-items: baseline;\n justify-content: center;\n border: 1px solid ", ";\n border-radius: 6px;\n padding: 0 4px;\n margin: 0 4px;\n"])), th('colors.lightGray2'));
|
|
15
|
-
var Hours = styled.input(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: 14px;\n font-weight: 600;\n width: 17px;\n margin: 0;\n padding: 0;\n border: none;\n outline: none;\n background-color:
|
|
16
|
-
var Minutes = styled.input(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-weight: 600;\n font-size: 14px;\n width: 18px;\n margin: 0;\n padding: 0;\n border: none;\n outline: none;\n background-color:
|
|
15
|
+
var Hours = styled.input(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: 14px;\n font-weight: 600;\n width: 17px;\n margin: 0;\n padding: 0;\n border: none;\n outline: none;\n background-color: #fff;\n &:disabled {\n opacity: 0.5;\n }\n"], ["\n font-size: 14px;\n font-weight: 600;\n width: 17px;\n margin: 0;\n padding: 0;\n border: none;\n outline: none;\n background-color: #fff;\n &:disabled {\n opacity: 0.5;\n }\n"])));
|
|
16
|
+
var Minutes = styled.input(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-weight: 600;\n font-size: 14px;\n width: 18px;\n margin: 0;\n padding: 0;\n border: none;\n outline: none;\n background-color: #fff;\n &:disabled {\n opacity: 0.5;\n }\n"], ["\n font-weight: 600;\n font-size: 14px;\n width: 18px;\n margin: 0;\n padding: 0;\n border: none;\n outline: none;\n background-color: #fff;\n &:disabled {\n opacity: 0.5;\n }\n"])));
|
|
17
17
|
var regExp = '^[0-9]*$';
|
|
18
18
|
export var Timepicker = function (_a) {
|
|
19
19
|
var _b, _c, _d, _e;
|
package/ui/index.es.js
CHANGED
|
@@ -27564,7 +27564,7 @@ const Qm = {
|
|
|
27564
27564
|
message: "Repeat"
|
|
27565
27565
|
}) })
|
|
27566
27566
|
] }),
|
|
27567
|
-
/* @__PURE__ */ h.jsxs(Be.select, { textAlign: "right", onChange: r, value: t == null ? void 0 : t.dateTypeRepeater, background: "
|
|
27567
|
+
/* @__PURE__ */ h.jsxs(Be.select, { textAlign: "right", onChange: r, value: t == null ? void 0 : t.dateTypeRepeater, background: "#fff", cursor: "pointer", border: "none", children: [
|
|
27568
27568
|
/* @__PURE__ */ h.jsx("option", { value: "", children: We._({
|
|
27569
27569
|
id: "dataGrid.noRepeat",
|
|
27570
27570
|
message: "No repeat"
|
|
@@ -27604,7 +27604,7 @@ const Qm = {
|
|
|
27604
27604
|
padding: 0;
|
|
27605
27605
|
border: none;
|
|
27606
27606
|
outline: none;
|
|
27607
|
-
background-color:
|
|
27607
|
+
background-color: #fff;
|
|
27608
27608
|
&:disabled {
|
|
27609
27609
|
opacity: 0.5;
|
|
27610
27610
|
}
|
|
@@ -27616,7 +27616,7 @@ const Qm = {
|
|
|
27616
27616
|
padding: 0;
|
|
27617
27617
|
border: none;
|
|
27618
27618
|
outline: none;
|
|
27619
|
-
background-color:
|
|
27619
|
+
background-color: #fff;
|
|
27620
27620
|
&:disabled {
|
|
27621
27621
|
opacity: 0.5;
|
|
27622
27622
|
}
|
package/ui/index.umd.js
CHANGED
|
@@ -1695,7 +1695,7 @@ Me.version="2.30.1",bAe(Kt),Me.fn=Ee,Me.min=l4e,Me.max=c4e,Me.now=u4e,Me.utc=qa,
|
|
|
1695
1695
|
font-weight: 500;
|
|
1696
1696
|
}
|
|
1697
1697
|
}
|
|
1698
|
-
`,W6e=({onChangeOthers:e,others:t,reset:n})=>{const r=b.useCallback(i=>{const o=i.target.value;o||n(),e==null||e({...t,dateTypeRepeater:o})},[e,n,t]);return h.jsx(Be.div,{borderTop:"1px solid",borderColor:"lightGray2",mt:"8px",pt:"8px",mb:"8px",children:h.jsxs(YD,{children:[h.jsxs(Be.div,{display:"flex",alignItems:"center",flex:"1",children:[h.jsx(st,{icon:"calendar"}),h.jsx(JD,{children:Ne._({id:"dataGrid.repeat",message:"Repeat"})})]}),h.jsxs(Be.select,{textAlign:"right",onChange:r,value:t==null?void 0:t.dateTypeRepeater,background:"
|
|
1698
|
+
`,W6e=({onChangeOthers:e,others:t,reset:n})=>{const r=b.useCallback(i=>{const o=i.target.value;o||n(),e==null||e({...t,dateTypeRepeater:o})},[e,n,t]);return h.jsx(Be.div,{borderTop:"1px solid",borderColor:"lightGray2",mt:"8px",pt:"8px",mb:"8px",children:h.jsxs(YD,{children:[h.jsxs(Be.div,{display:"flex",alignItems:"center",flex:"1",children:[h.jsx(st,{icon:"calendar"}),h.jsx(JD,{children:Ne._({id:"dataGrid.repeat",message:"Repeat"})})]}),h.jsxs(Be.select,{textAlign:"right",onChange:r,value:t==null?void 0:t.dateTypeRepeater,background:"#fff",cursor:"pointer",border:"none",children:[h.jsx("option",{value:"",children:Ne._({id:"dataGrid.noRepeat",message:"No repeat"})}),h.jsx("option",{value:Ms.EVERY_TODAY,children:E7[Ms.EVERY_TODAY]}),h.jsx("option",{value:Ms.EVERY_YESTERDAY,children:E7[Ms.EVERY_YESTERDAY]})]})]})})},UA=Y.button`
|
|
1699
1699
|
transform: rotate(90deg);
|
|
1700
1700
|
font-size: 18px;
|
|
1701
1701
|
margin: -4px 0;
|
|
@@ -1726,7 +1726,7 @@ Me.version="2.30.1",bAe(Kt),Me.fn=Ee,Me.min=l4e,Me.max=c4e,Me.now=u4e,Me.utc=qa,
|
|
|
1726
1726
|
padding: 0;
|
|
1727
1727
|
border: none;
|
|
1728
1728
|
outline: none;
|
|
1729
|
-
background-color:
|
|
1729
|
+
background-color: #fff;
|
|
1730
1730
|
&:disabled {
|
|
1731
1731
|
opacity: 0.5;
|
|
1732
1732
|
}
|
|
@@ -1738,7 +1738,7 @@ Me.version="2.30.1",bAe(Kt),Me.fn=Ee,Me.min=l4e,Me.max=c4e,Me.now=u4e,Me.utc=qa,
|
|
|
1738
1738
|
padding: 0;
|
|
1739
1739
|
border: none;
|
|
1740
1740
|
outline: none;
|
|
1741
|
-
background-color:
|
|
1741
|
+
background-color: #fff;
|
|
1742
1742
|
&:disabled {
|
|
1743
1743
|
opacity: 0.5;
|
|
1744
1744
|
}
|