@campxdev/react-blueprint 1.8.4 → 1.8.5

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.8.4",
3
+ "version": "1.8.5",
4
4
  "main": "./export.ts",
5
5
  "dependencies": {
6
6
  "@emotion/react": "^11.13.3",
@@ -0,0 +1,36 @@
1
+ import { useTheme } from '@mui/material';
2
+
3
+ export const FeedbackStarIcon = ({ size = 16 }: { size: number }) => {
4
+ const theme = useTheme();
5
+ const color = theme.palette.text.primary;
6
+ return (
7
+ <svg
8
+ width={size}
9
+ height={size}
10
+ viewBox="0 0 20 20"
11
+ fill="none"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ style={{
14
+ fill: color,
15
+ stroke: color,
16
+ }}
17
+ >
18
+ <path
19
+ d="M7.9 17.2411C7.58329 17.2493 7.27276 17.1526 7.01666 16.9661C6.68333 16.7245 6.16666 16.0995 6.49166 14.6995L6.96666 12.6495C6.9933 12.4262 6.93037 12.2015 6.79166 12.0245L5.13083 10.3661C4.83482 10.1334 4.6127 9.81977 4.49141 9.46329C4.37011 9.10681 4.35486 8.72279 4.4475 8.35781C4.5821 8.00646 4.81612 7.70193 5.12099 7.48142C5.42585 7.26092 5.78834 7.13399 6.16416 7.11615L8.28916 6.76615C8.48892 6.71034 8.66104 6.58273 8.7725 6.40781L9.9475 4.05781C10.0739 3.69572 10.3045 3.37909 10.6104 3.14777C10.9163 2.91645 11.2838 2.78077 11.6667 2.75781C12.0486 2.78173 12.415 2.91785 12.7199 3.1491C13.0249 3.38036 13.2548 3.69647 13.3808 4.05781L14.5558 6.40781C14.6691 6.58104 14.8405 6.70812 15.0392 6.76615L17.1642 7.11615C17.5404 7.13241 17.9036 7.25872 18.2088 7.47944C18.5139 7.70015 18.7476 8.00556 18.8808 8.35781C18.9735 8.72279 18.9582 9.10681 18.8369 9.46329C18.7156 9.81977 18.4935 10.1334 18.1975 10.3661L16.5392 12.0245C16.47 12.1118 16.4189 12.2121 16.3889 12.3194C16.3588 12.4267 16.3504 12.5389 16.3642 12.6495L16.8392 14.6995C17.1642 16.1078 16.6475 16.7245 16.3142 16.9661C15.9808 17.2078 15.2392 17.5161 13.9892 16.7745L12 15.5911C11.8929 15.5417 11.7763 15.5162 11.6583 15.5162C11.5404 15.5162 11.4238 15.5417 11.3167 15.5911L9.325 16.7745C8.90157 17.0573 8.40872 17.2188 7.9 17.2411ZM11.6667 4.00781C11.5333 4.00781 11.2917 4.16615 11.0667 4.61615L9.89166 6.96615C9.7487 7.23078 9.5491 7.4606 9.3071 7.63921C9.0651 7.81783 8.78667 7.94085 8.49166 7.99948L6.36666 8.34948C5.89166 8.43281 5.675 8.60781 5.63333 8.74115C5.59166 8.87448 5.66666 9.14115 6.00833 9.48281L7.66666 11.1411C7.88442 11.3785 8.04436 11.6629 8.13399 11.9723C8.22362 12.2816 8.2405 12.6075 8.18333 12.9245L7.70833 14.9745C7.56666 15.5661 7.65833 15.8828 7.75 15.9578C7.84166 16.0328 8.175 16.0161 8.69166 15.6995L10.6917 14.5161C10.9905 14.3522 11.3258 14.2662 11.6667 14.2662C12.0075 14.2662 12.3429 14.3522 12.6417 14.5161L14.6333 15.6995C15.1583 16.0078 15.4917 16.0245 15.5833 15.9578C15.675 15.8911 15.7667 15.5745 15.625 14.9745L15.15 12.9245C15.0902 12.6075 15.1058 12.281 15.1955 11.9712C15.2853 11.6614 15.4467 11.377 15.6667 11.1411L17.325 9.48281C17.6667 9.14115 17.7417 8.86615 17.7 8.74115C17.6583 8.61615 17.4417 8.43281 16.9667 8.34948L14.8417 7.99948C14.5467 7.94085 14.2682 7.81783 14.0262 7.63921C13.7842 7.4606 13.5846 7.23078 13.4417 6.96615L12.2667 4.61615C12.0417 4.16615 11.7975 4.00781 11.6667 4.00781Z"
20
+ stroke-width="0.4"
21
+ />
22
+ <path
23
+ d="M6.66699 4.79102H1.66699C1.50157 4.78992 1.34323 4.72373 1.22626 4.60675C1.10928 4.48978 1.04308 4.33144 1.04199 4.16602C1.04308 4.00059 1.10928 3.84225 1.22626 3.72528C1.34323 3.60831 1.50157 3.54211 1.66699 3.54102H6.66699C6.83242 3.54211 6.99075 3.60831 7.10773 3.72528C7.2247 3.84225 7.2909 4.00059 7.29199 4.16602C7.2909 4.33144 7.2247 4.48978 7.10773 4.60675C6.99075 4.72373 6.83242 4.78992 6.66699 4.79102Z"
24
+ stroke-width="0.4"
25
+ />
26
+ <path
27
+ d="M4.16699 16.459H1.66699C1.50157 16.4579 1.34323 16.3917 1.22626 16.2747C1.10928 16.1577 1.04308 15.9994 1.04199 15.834C1.04308 15.6686 1.10928 15.5102 1.22626 15.3932C1.34323 15.2763 1.50157 15.2101 1.66699 15.209H4.16699C4.33242 15.2101 4.49075 15.2763 4.60773 15.3932C4.7247 15.5102 4.7909 15.6686 4.79199 15.834C4.7909 15.9994 4.7247 16.1577 4.60773 16.2747C4.49075 16.3917 4.33242 16.4579 4.16699 16.459Z"
28
+ stroke-width="0.4"
29
+ />
30
+ <path
31
+ d="M2.50033 10.625H1.66699C1.50157 10.6239 1.34323 10.5577 1.22626 10.4407C1.10928 10.3238 1.04308 10.1654 1.04199 10C1.04308 9.83458 1.10928 9.67624 1.22626 9.55926C1.34323 9.44229 1.50157 9.37609 1.66699 9.375H2.50033C2.66575 9.37609 2.82409 9.44229 2.94106 9.55926C3.05803 9.67624 3.12423 9.83458 3.12533 10C3.12423 10.1654 3.05803 10.3238 2.94106 10.4407C2.82409 10.5577 2.66575 10.6239 2.50033 10.625Z"
32
+ stroke-width="0.4"
33
+ />
34
+ </svg>
35
+ );
36
+ };
@@ -56,6 +56,7 @@ import { ExpandIcon } from './IconComponents/ExpandIcon';
56
56
  import { ExportIcon } from './IconComponents/ExportIcon';
57
57
  import { ExportMenuIcon } from './IconComponents/ExportMenuIcon';
58
58
  import { FeePaymentIcon } from './IconComponents/FeePaymentIcon';
59
+ import { FeedbackStarIcon } from './IconComponents/FeedbackStarIcon';
59
60
  import { FilterIcon } from './IconComponents/FilterIcon';
60
61
  import { HamburgerMenuIcon } from './IconComponents/HamburgerMenuIcon';
61
62
  import { HandoutsIcon } from './IconComponents/HandoutsIcon';
@@ -262,4 +263,5 @@ export const Icons = {
262
263
  WorkFlowDocsIcon,
263
264
  RaiseTicketIcon,
264
265
  HelpDocsIcon,
266
+ FeedbackStarIcon,
265
267
  };
@@ -2,22 +2,21 @@ import { Box, BoxProps, styled } from '@mui/material';
2
2
  import { ReactNode } from 'react';
3
3
  import { Typography } from '../../export';
4
4
 
5
- export type StepperTitleProps = {
5
+ export type FloatingContainerProps = {
6
6
  title?: string;
7
- isShowTitle?: boolean;
8
7
  content: ReactNode;
9
8
  contentProps?: BoxProps;
10
9
  titleProps?: BoxProps;
11
10
  };
12
11
 
13
- const StepperTitleContainer = styled(Box)(({ theme }) => ({
12
+ const FloatingContainer = styled(Box)(({ theme }) => ({
14
13
  borderRadius: '8px',
15
14
  minHeight: '100px',
16
15
  minWidth: '60%',
17
16
  backgroundColor: theme.palette.surface.paperBackground,
18
17
  }));
19
18
 
20
- const TitleContainer = styled(Box)(({ theme }) => ({
19
+ const Title = styled(Box)(({ theme }) => ({
21
20
  backgroundColor: theme.palette.surface.grey,
22
21
  height: '45px',
23
22
  display: 'flex',
@@ -25,15 +24,15 @@ const TitleContainer = styled(Box)(({ theme }) => ({
25
24
  paddingLeft: '16px',
26
25
  }));
27
26
 
28
- export const StepperTitle = (props: StepperTitleProps) => {
27
+ export const FloatingContent = (props: FloatingContainerProps) => {
29
28
  return (
30
- <StepperTitleContainer {...props.contentProps}>
31
- {props.isShowTitle && (
32
- <TitleContainer {...props.titleProps}>
29
+ <FloatingContainer {...props.contentProps}>
30
+ {props.title && (
31
+ <Title {...props.titleProps}>
33
32
  <Typography variant="subtitle3">{props.title}</Typography>
34
- </TitleContainer>
33
+ </Title>
35
34
  )}
36
35
  {props.content}
37
- </StepperTitleContainer>
36
+ </FloatingContainer>
38
37
  );
39
38
  };
@@ -1,6 +1,6 @@
1
1
  export * from './AppHeader/AppHeader';
2
+ export * from './FloatingContainer/FloatingContainer';
2
3
  export * from './PageContent/PageContent';
3
4
  export * from './PageHeader/components/DensitySelector/DensitySelector';
4
5
  export * from './PageHeader/PageHeader';
5
- export * from './StepperTitle/StepperTitle';
6
6
  export * from './TabsLayout/TabsLayout';