@data-c/ui 0.2.95 → 0.2.97

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 CHANGED
@@ -1499,6 +1499,44 @@ var themeOptions = {
1499
1499
  }
1500
1500
  }
1501
1501
  },
1502
+ MuiPickersTextField: {
1503
+ defaultProps: {
1504
+ size: "small",
1505
+ fullWidth: true,
1506
+ InputLabelProps: {
1507
+ shrink: true
1508
+ }
1509
+ },
1510
+ styleOverrides: {
1511
+ root: ({ theme: theme2 }) => ({
1512
+ "& .MuiInputLabel-root": {
1513
+ color: theme2.palette.grey[500],
1514
+ fontSize: "13px"
1515
+ },
1516
+ "& .MuiInputBase-root": {
1517
+ backgroundColor: "#fff",
1518
+ fontSize: "0.75rem",
1519
+ minHeight: "28px"
1520
+ },
1521
+ "& .MuiInputBase-input[readonly]": {
1522
+ backgroundColor: theme2.palette.grey[200],
1523
+ color: theme2.palette.grey[700]
1524
+ }
1525
+ })
1526
+ }
1527
+ },
1528
+ MuiPickersOutlinedInput: {
1529
+ styleOverrides: {
1530
+ root: {
1531
+ "&.MuiInputBase-sizeSmall .MuiPickersSectionList-root": {
1532
+ padding: "3.5px 14px"
1533
+ },
1534
+ "& .MuiPickersSectionList-section": {
1535
+ fontSize: "0.75rem"
1536
+ }
1537
+ }
1538
+ }
1539
+ },
1502
1540
  MuiSvgIcon: {
1503
1541
  defaultProps: {
1504
1542
  fontSize: "small",
@@ -9324,7 +9362,7 @@ function TransporterTextField(props) {
9324
9362
  ...rest
9325
9363
  } = props;
9326
9364
  const scope = useTransporterScope();
9327
- const { openTransporter, triggerOnChange, value } = useTransporter(scope);
9365
+ const { openTransporter, triggerOnChange, value = "" } = useTransporter(scope);
9328
9366
  const defaultEndAdornment = endAdornment ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Stack, { direction: "row", spacing: 0, alignItems: "center", mr: 1, children: [
9329
9367
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Tooltip, { title: "Clique no \xEDcone ou d\xEA dois cliques no campo para abrir a busca avan\xE7ada", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9330
9368
  _material.IconButton,
@@ -9350,7 +9388,7 @@ function TransporterTextField(props) {
9350
9388
  Autocomplete,
9351
9389
  {
9352
9390
  onDoubleClick: () => openTransporter(),
9353
- value,
9391
+ value: value || "",
9354
9392
  onChange: (value2) => {
9355
9393
  triggerOnChange(value2);
9356
9394
  },