@natoora-libs/core 0.1.0 → 0.1.2-dev0.1

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.
@@ -3728,7 +3728,7 @@ var ControlledValidTextInput = ({
3728
3728
  value: controlledField?.value || "",
3729
3729
  fullWidth: true,
3730
3730
  id: fieldName,
3731
- "data-testid": `${dataTestId}-input` || `${convertUnderscoreToHyphen2(fieldName)}-input`,
3731
+ "data-testid": dataTestId ? `${dataTestId}-input` : `${convertUnderscoreToHyphen2(fieldName)}-input`,
3732
3732
  label,
3733
3733
  error: !!fieldState.error,
3734
3734
  multiline: true,
@@ -3743,7 +3743,7 @@ var ControlledValidTextInput = ({
3743
3743
  className: (0, import_classnames.default)({
3744
3744
  [classes.helperTextWrapper]: !!maxLength
3745
3745
  }),
3746
- "data-testid": `${dataTestId}-helper-text` || `${convertUnderscoreToHyphen2(fieldName)}-helper-text`,
3746
+ "data-testid": dataTestId ? `${dataTestId}-helper-text` : `${convertUnderscoreToHyphen2(fieldName)}-helper-text`,
3747
3747
  children: [
3748
3748
  /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3749
3749
  import_material23.Box,
@@ -8338,38 +8338,19 @@ var useStyles53 = (0, import_mui59.makeStyles)()((theme) => ({
8338
8338
  menuButton: {
8339
8339
  color: theme.palette.primary.contrastText
8340
8340
  },
8341
- searchNatoora: {
8342
- width: "100%"
8343
- },
8344
- searchIcon: {
8345
- opacity: ".5"
8346
- },
8347
- inputRoot: {
8348
- color: "inherit"
8349
- },
8350
- inputInput: {
8351
- transition: theme.transitions.create("width"),
8352
- width: "100%"
8353
- },
8354
8341
  topBar: {
8355
8342
  display: "flex",
8356
8343
  gap: theme.spacing(1),
8357
8344
  backgroundColor: colors.topBar
8358
- },
8359
- drawer: {
8360
- backgroundColor: "black"
8361
- },
8362
- drawerItem: {
8363
- maxWidth: "300px",
8364
- width: "80vw"
8365
- },
8366
- offset: theme.mixins.toolbar
8345
+ }
8367
8346
  }));
8368
8347
  var TheToolbar = ({
8369
8348
  imageLogoDarkSmall,
8370
8349
  imageLogoLightSmall,
8371
8350
  handleOpen,
8372
- LeftDrawer: LeftDrawer2
8351
+ LeftDrawer: LeftDrawer2,
8352
+ leftSection,
8353
+ rightSection
8373
8354
  }) => {
8374
8355
  const { classes } = useStyles53();
8375
8356
  return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material66.Box, { children: [
@@ -8391,9 +8372,10 @@ var TheToolbar = ({
8391
8372
  imageLogoDarkSmall,
8392
8373
  imageLogoLightSmall
8393
8374
  }
8394
- )
8375
+ ),
8376
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material66.Box, { ml: 2, children: leftSection }),
8377
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material66.Box, { ml: "auto", children: rightSection })
8395
8378
  ] }) }),
8396
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material66.Box, { className: classes.offset }),
8397
8379
  LeftDrawer2
8398
8380
  ] });
8399
8381
  };