@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.
|
@@ -973,8 +973,10 @@ type Props = {
|
|
|
973
973
|
imageLogoLightSmall: string;
|
|
974
974
|
handleOpen: () => void;
|
|
975
975
|
LeftDrawer: ReactNode;
|
|
976
|
+
leftSection?: ReactNode;
|
|
977
|
+
rightSection?: ReactNode;
|
|
976
978
|
};
|
|
977
|
-
declare const _default$1: React.MemoExoticComponent<({ imageLogoDarkSmall, imageLogoLightSmall, handleOpen, LeftDrawer, }: Props) => react_jsx_runtime.JSX.Element>;
|
|
979
|
+
declare const _default$1: React.MemoExoticComponent<({ imageLogoDarkSmall, imageLogoLightSmall, handleOpen, LeftDrawer, leftSection, rightSection, }: Props) => react_jsx_runtime.JSX.Element>;
|
|
978
980
|
|
|
979
981
|
type IToastMessage = {
|
|
980
982
|
toastType: 'success' | 'info' | 'warning' | 'error';
|
|
@@ -973,8 +973,10 @@ type Props = {
|
|
|
973
973
|
imageLogoLightSmall: string;
|
|
974
974
|
handleOpen: () => void;
|
|
975
975
|
LeftDrawer: ReactNode;
|
|
976
|
+
leftSection?: ReactNode;
|
|
977
|
+
rightSection?: ReactNode;
|
|
976
978
|
};
|
|
977
|
-
declare const _default$1: React.MemoExoticComponent<({ imageLogoDarkSmall, imageLogoLightSmall, handleOpen, LeftDrawer, }: Props) => react_jsx_runtime.JSX.Element>;
|
|
979
|
+
declare const _default$1: React.MemoExoticComponent<({ imageLogoDarkSmall, imageLogoLightSmall, handleOpen, LeftDrawer, leftSection, rightSection, }: Props) => react_jsx_runtime.JSX.Element>;
|
|
978
980
|
|
|
979
981
|
type IToastMessage = {
|
|
980
982
|
toastType: 'success' | 'info' | 'warning' | 'error';
|
package/dist/components/index.js
CHANGED
|
@@ -3444,7 +3444,7 @@ var ControlledValidTextInput = ({
|
|
|
3444
3444
|
value: controlledField?.value || "",
|
|
3445
3445
|
fullWidth: true,
|
|
3446
3446
|
id: fieldName,
|
|
3447
|
-
"data-testid": `${dataTestId}-input`
|
|
3447
|
+
"data-testid": dataTestId ? `${dataTestId}-input` : `${convertUnderscoreToHyphen2(fieldName)}-input`,
|
|
3448
3448
|
label,
|
|
3449
3449
|
error: !!fieldState.error,
|
|
3450
3450
|
multiline: true,
|
|
@@ -3459,7 +3459,7 @@ var ControlledValidTextInput = ({
|
|
|
3459
3459
|
className: classNames({
|
|
3460
3460
|
[classes.helperTextWrapper]: !!maxLength
|
|
3461
3461
|
}),
|
|
3462
|
-
"data-testid": `${dataTestId}-helper-text`
|
|
3462
|
+
"data-testid": dataTestId ? `${dataTestId}-helper-text` : `${convertUnderscoreToHyphen2(fieldName)}-helper-text`,
|
|
3463
3463
|
children: [
|
|
3464
3464
|
/* @__PURE__ */ jsx71(
|
|
3465
3465
|
Box10,
|
|
@@ -8097,38 +8097,19 @@ var useStyles52 = makeStyles52()((theme) => ({
|
|
|
8097
8097
|
menuButton: {
|
|
8098
8098
|
color: theme.palette.primary.contrastText
|
|
8099
8099
|
},
|
|
8100
|
-
searchNatoora: {
|
|
8101
|
-
width: "100%"
|
|
8102
|
-
},
|
|
8103
|
-
searchIcon: {
|
|
8104
|
-
opacity: ".5"
|
|
8105
|
-
},
|
|
8106
|
-
inputRoot: {
|
|
8107
|
-
color: "inherit"
|
|
8108
|
-
},
|
|
8109
|
-
inputInput: {
|
|
8110
|
-
transition: theme.transitions.create("width"),
|
|
8111
|
-
width: "100%"
|
|
8112
|
-
},
|
|
8113
8100
|
topBar: {
|
|
8114
8101
|
display: "flex",
|
|
8115
8102
|
gap: theme.spacing(1),
|
|
8116
8103
|
backgroundColor: colors.topBar
|
|
8117
|
-
}
|
|
8118
|
-
drawer: {
|
|
8119
|
-
backgroundColor: "black"
|
|
8120
|
-
},
|
|
8121
|
-
drawerItem: {
|
|
8122
|
-
maxWidth: "300px",
|
|
8123
|
-
width: "80vw"
|
|
8124
|
-
},
|
|
8125
|
-
offset: theme.mixins.toolbar
|
|
8104
|
+
}
|
|
8126
8105
|
}));
|
|
8127
8106
|
var TheToolbar = ({
|
|
8128
8107
|
imageLogoDarkSmall,
|
|
8129
8108
|
imageLogoLightSmall,
|
|
8130
8109
|
handleOpen,
|
|
8131
|
-
LeftDrawer: LeftDrawer2
|
|
8110
|
+
LeftDrawer: LeftDrawer2,
|
|
8111
|
+
leftSection,
|
|
8112
|
+
rightSection
|
|
8132
8113
|
}) => {
|
|
8133
8114
|
const { classes } = useStyles52();
|
|
8134
8115
|
return /* @__PURE__ */ jsxs80(Box32, { children: [
|
|
@@ -8150,9 +8131,10 @@ var TheToolbar = ({
|
|
|
8150
8131
|
imageLogoDarkSmall,
|
|
8151
8132
|
imageLogoLightSmall
|
|
8152
8133
|
}
|
|
8153
|
-
)
|
|
8134
|
+
),
|
|
8135
|
+
/* @__PURE__ */ jsx117(Box32, { ml: 2, children: leftSection }),
|
|
8136
|
+
/* @__PURE__ */ jsx117(Box32, { ml: "auto", children: rightSection })
|
|
8154
8137
|
] }) }),
|
|
8155
|
-
/* @__PURE__ */ jsx117(Box32, { className: classes.offset }),
|
|
8156
8138
|
LeftDrawer2
|
|
8157
8139
|
] });
|
|
8158
8140
|
};
|