@campxdev/react-blueprint 1.9.0 → 1.9.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "main": "./export.ts",
5
5
  "dependencies": {
6
6
  "@emotion/react": "^11.13.3",
@@ -26,6 +26,7 @@ export type TimelineProps = {
26
26
  } & MuiTimelineProps;
27
27
 
28
28
  export const Timeline = (props: TimelineProps) => {
29
+ const { timelineItems, ...otherProps } = props;
29
30
  const theme = useTheme();
30
31
  const hasOppositeContent = props.timelineItems.some(
31
32
  (item) => item.timelineOppositeContent,
@@ -47,7 +48,7 @@ export const Timeline = (props: TimelineProps) => {
47
48
  };
48
49
  return (
49
50
  <MuiTimeline
50
- {...props}
51
+ {...otherProps}
51
52
  sx={
52
53
  hasOppositeContent ||
53
54
  props.position === 'alternate' ||
@@ -118,18 +118,13 @@ export const PageHeader = ({
118
118
  direction="row"
119
119
  width="100%"
120
120
  alignItems="center"
121
- justifyContent="flex-end"
121
+ justifyContent="space-between"
122
122
  height="48px"
123
123
  >
124
124
  {isTableMode && viewsProps ? (
125
125
  <Views {...viewsProps} uniqueId={uniqueId} />
126
126
  ) : (
127
- <Stack
128
- direction="row"
129
- gap={2}
130
- justifyContent="flex-start"
131
- width="100%"
132
- >
127
+ <Stack direction="row" gap={2} justifyContent="flex-start">
133
128
  {viewsSlot}
134
129
  </Stack>
135
130
  )}
@@ -85,7 +85,7 @@ export const Views = ({ type, axios, uniqueId }: ViewsProps) => {
85
85
  if (isLoading) return <Spinner />;
86
86
 
87
87
  return (
88
- <Stack direction="row" gap={2} justifyContent="flex-start" width="100%">
88
+ <Stack direction="row" gap={2} justifyContent="flex-start">
89
89
  <ViewTab
90
90
  title="Default View"
91
91
  active={!viewId}