odaptos_design_system 1.4.159 → 1.4.161
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/odaptos_design_system.cjs.development.js +18 -16
- 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 +18 -16
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/DatePicker/DatePicker.tsx +25 -26
- package/src/Tooltip/Layout/TooltipCustomLayout.module.scss +4 -0
- package/src/Tooltip/Layout/TooltipCustomLayout.tsx +12 -1
|
@@ -8620,6 +8620,16 @@ const CssTextField = /*#__PURE__*/styles$U.styled(material.TextField)({
|
|
|
8620
8620
|
}
|
|
8621
8621
|
}
|
|
8622
8622
|
});
|
|
8623
|
+
const DatePickerStyledComponent = params => /*#__PURE__*/React__default.createElement(CssTextField, Object.assign({}, params, {
|
|
8624
|
+
variant: "outlined",
|
|
8625
|
+
fullWidth: true,
|
|
8626
|
+
label: `${params.label && params.topLabel === undefined ? params.label : ''}`,
|
|
8627
|
+
placeholder: params.placeholder,
|
|
8628
|
+
size: "small",
|
|
8629
|
+
required: params.required,
|
|
8630
|
+
error: params.error,
|
|
8631
|
+
onBlur: params.onBlur
|
|
8632
|
+
}));
|
|
8623
8633
|
const DatePicker = ({
|
|
8624
8634
|
className,
|
|
8625
8635
|
label,
|
|
@@ -8636,9 +8646,7 @@ const DatePicker = ({
|
|
|
8636
8646
|
locale = 'enUS',
|
|
8637
8647
|
maxDate,
|
|
8638
8648
|
minDate,
|
|
8639
|
-
placeholder,
|
|
8640
8649
|
required,
|
|
8641
|
-
error,
|
|
8642
8650
|
errorText,
|
|
8643
8651
|
helperText,
|
|
8644
8652
|
views = ['day', 'month', 'year'],
|
|
@@ -8674,20 +8682,13 @@ const DatePicker = ({
|
|
|
8674
8682
|
clearIcon: () => /*#__PURE__*/React__default.createElement(RemoveCircledIcon, {
|
|
8675
8683
|
fill: disabled ? colors.neutral_500 : colors.black
|
|
8676
8684
|
}),
|
|
8677
|
-
textField:
|
|
8678
|
-
variant: "outlined",
|
|
8679
|
-
fullWidth: true,
|
|
8680
|
-
label: `${label && topLabel === undefined ? label : ''}`,
|
|
8681
|
-
placeholder: placeholder,
|
|
8682
|
-
size: "small",
|
|
8683
|
-
required: required,
|
|
8684
|
-
error: error,
|
|
8685
|
-
onBlur: onBlur
|
|
8686
|
-
}))
|
|
8685
|
+
textField: DatePickerStyledComponent
|
|
8687
8686
|
},
|
|
8688
8687
|
slotProps: {
|
|
8689
8688
|
field: {
|
|
8690
|
-
clearable: true
|
|
8689
|
+
clearable: true,
|
|
8690
|
+
label,
|
|
8691
|
+
onBlur
|
|
8691
8692
|
}
|
|
8692
8693
|
},
|
|
8693
8694
|
disabled: disabled,
|
|
@@ -8909,8 +8910,8 @@ const RowCell = ({
|
|
|
8909
8910
|
}));
|
|
8910
8911
|
};
|
|
8911
8912
|
|
|
8912
|
-
var css_248z$c = ".TooltipCustomLayout-module_tooltip_layout__o1GBH{align-items:flex-start;background:var(--color-neutral-basics-white,#fff);border-radius:.25rem;display:flex;flex-direction:column;gap:1rem;padding:1rem}.TooltipCustomLayout-module_tooltip_layout_header__v6S3f{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.TooltipCustomLayout-module_tooltip_layout_optional_url__MR5aM{color:var(--Color-Primary-500,#07f);font-family:OpenSans;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;text-decoration-line:underline}.TooltipCustomLayout-module_tooltip_layout_optional_url__MR5aM:visited{color:var(--Color-Primary-500,#07f)}.TooltipCustomLayout-module_tooltip_layout_actions__CMSoi{align-items:flex-start;align-self:stretch;display:flex;gap:.5rem;justify-content:flex-end}";
|
|
8913
|
-
var styles$c = {"tooltip_layout":"TooltipCustomLayout-module_tooltip_layout__o1GBH","tooltip_layout_header":"TooltipCustomLayout-module_tooltip_layout_header__v6S3f","tooltip_layout_optional_url":"TooltipCustomLayout-module_tooltip_layout_optional_url__MR5aM","tooltip_layout_actions":"TooltipCustomLayout-module_tooltip_layout_actions__CMSoi"};
|
|
8913
|
+
var css_248z$c = ".TooltipCustomLayout-module_tooltip_layout__o1GBH{align-items:flex-start;background:var(--color-neutral-basics-white,#fff);border-radius:.25rem;display:flex;flex-direction:column;gap:1rem;padding:1rem}.TooltipCustomLayout-module_tooltip_layout_header__v6S3f{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.TooltipCustomLayout-module_tooltip_layout_optional_url__MR5aM{color:var(--Color-Primary-500,#07f);font-family:OpenSans;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;text-decoration-line:underline}.TooltipCustomLayout-module_tooltip_layout_optional_url__MR5aM:visited{color:var(--Color-Primary-500,#07f)}.TooltipCustomLayout-module_tooltip_layout_actions__CMSoi{align-items:flex-start;align-self:stretch;display:flex;gap:.5rem;justify-content:flex-end}.TooltipCustomLayout-module_tooltip_simplified__EZJQv{padding:.25rem .5rem}";
|
|
8914
|
+
var styles$c = {"tooltip_layout":"TooltipCustomLayout-module_tooltip_layout__o1GBH","tooltip_layout_header":"TooltipCustomLayout-module_tooltip_layout_header__v6S3f","tooltip_layout_optional_url":"TooltipCustomLayout-module_tooltip_layout_optional_url__MR5aM","tooltip_layout_actions":"TooltipCustomLayout-module_tooltip_layout_actions__CMSoi","tooltip_simplified":"TooltipCustomLayout-module_tooltip_simplified__EZJQv"};
|
|
8914
8915
|
styleInject(css_248z$c);
|
|
8915
8916
|
|
|
8916
8917
|
const TooltipLayout = ({
|
|
@@ -8932,8 +8933,9 @@ const TooltipLayout = ({
|
|
|
8932
8933
|
buttonOneOnClick,
|
|
8933
8934
|
buttonTwoOnClick
|
|
8934
8935
|
}) => {
|
|
8936
|
+
const tooltipSimplified = !tooltipTitle && !closeButton && !(buttonOneText || buttonTwoText) && !customContent;
|
|
8935
8937
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
8936
|
-
className: styles$c.tooltip_layout
|
|
8938
|
+
className: `${styles$c.tooltip_layout} ${tooltipSimplified ? styles$c.tooltip_simplified : ''}`
|
|
8937
8939
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
8938
8940
|
className: styles$c.tooltip_layout_header
|
|
8939
8941
|
}, tooltipTitle && /*#__PURE__*/React__default.createElement(Title, {
|