mui-design-system 0.0.21 → 0.0.23
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/components/custom-auto-complete/CustomAutoComplete.d.ts +1 -1
- package/dist/components/custom-auto-complete/components/AutoCompleteInput.d.ts +1 -1
- package/dist/components/custom-date-picker/CustomComponent.d.ts +1 -1
- package/dist/components/custom-date-picker/CustomDatePicker.d.ts +1 -1
- package/dist/components/custom-date-picker/CustomDatePicker.js +16 -11
- package/dist/components/custom-pagination/custom-pagination-1/CustomPagination1.d.ts +1 -1
- package/dist/components/custom-pagination/custom-pagination-2/CustomPagination2.d.ts +1 -1
- package/dist/components/custom-table/CustomTable.d.ts +2 -53
- package/dist/components/custom-table/CustomTable.js +7 -13
- package/dist/components/custom-table/components/CustomTableBody.d.ts +5 -4
- package/dist/components/custom-table/components/CustomTableBody.js +22 -4
- package/dist/components/custom-table/components/CustomTableCell.d.ts +2 -2
- package/dist/components/custom-table/components/CustomTableCell.js +16 -14
- package/dist/components/custom-table/components/CustomTableHead.d.ts +5 -3
- package/dist/components/custom-table/components/CustomTableHead.js +14 -13
- package/dist/components/custom-table/components/CustomTableRow.d.ts +5 -9
- package/dist/components/custom-table/components/CustomTableRow.js +17 -14
- package/dist/components/custom-table/components/useTable.d.ts +4 -16
- package/dist/components/custom-table/components/useTable.js +5 -5
- package/dist/components/custom-table/types.d.ts +77 -0
- package/dist/components/{input-list → form}/UseFormInput.js +1 -4
- package/dist/components/{input-list → form}/type.d.ts +1 -5
- package/dist/components/form/type.js +1 -0
- package/dist/components/index.d.ts +42 -98
- package/dist/components/index.js +55 -69
- package/dist/context/FormContext.d.ts +1 -1
- package/dist/mui/Button/MuiButton.js +13 -12
- package/dist/mui/Typography/index.js +13 -13
- package/dist/mui/palette/dark/darkPalette.js +47 -86
- package/dist/mui/palette/light/lightPalette.js +48 -87
- package/package.json +1 -1
- package/dist/components/checkbox-list/CheckboxList.d.ts +0 -21
- package/dist/components/checkbox-list/CheckboxList.js +0 -31
- package/dist/components/custom-auto-complete-advanced/CustomAutoComplete.d.ts +0 -28
- package/dist/components/custom-auto-complete-advanced/CustomAutoComplete.js +0 -92
- package/dist/components/custom-auto-complete-advanced/components/ListBox.d.ts +0 -6
- package/dist/components/custom-auto-complete-advanced/components/ListBox.js +0 -76
- package/dist/components/custom-auto-complete-advanced/components/ListRow.d.ts +0 -2
- package/dist/components/custom-auto-complete-advanced/components/ListRow.js +0 -17
- package/dist/components/custom-auto-complete-advanced/components/RenderInput.d.ts +0 -23
- package/dist/components/custom-auto-complete-advanced/components/RenderInput.js +0 -51
- package/dist/components/custom-auto-complete-advanced/components/RenderTags.d.ts +0 -9
- package/dist/components/custom-auto-complete-advanced/components/RenderTags.js +0 -22
- package/dist/components/custom-breadcrumbs/CustomBreadcrumbs.d.ts +0 -17
- package/dist/components/custom-breadcrumbs/CustomBreadcrumbs.js +0 -11
- package/dist/components/custom-card/CustomHorizontalCard.d.ts +0 -3
- package/dist/components/custom-card/CustomHorizontalCard.js +0 -9
- package/dist/components/custom-card/CustomVerticalCard.d.ts +0 -3
- package/dist/components/custom-card/CustomVerticalCard.js +0 -9
- package/dist/components/custom-dialog/CustomDialog.d.ts +0 -41
- package/dist/components/custom-dialog/CustomDialog.js +0 -38
- package/dist/components/custom-mobile-date-picker/CustomBottomSheet.d.ts +0 -9
- package/dist/components/custom-mobile-date-picker/CustomBottomSheet.js +0 -29
- package/dist/components/custom-mobile-date-picker/CustomMobileDatePicker.d.ts +0 -19
- package/dist/components/custom-mobile-date-picker/CustomMobileDatePicker.js +0 -98
- package/dist/components/custom-mobile-date-picker/DatePickerBottomSheet.d.ts +0 -19
- package/dist/components/custom-mobile-date-picker/DatePickerBottomSheet.js +0 -40
- package/dist/components/custom-mobile-date-picker/ItemPicker.d.ts +0 -10
- package/dist/components/custom-mobile-date-picker/ItemPicker.js +0 -72
- package/dist/components/custom-modal/CustomModal.d.ts +0 -21
- package/dist/components/custom-modal/CustomModal.js +0 -38
- package/dist/components/custom-stepper/CustomStepper.d.ts +0 -31
- package/dist/components/custom-stepper/CustomStepper.js +0 -170
- package/dist/components/custom-tabs/CustomTabs.d.ts +0 -22
- package/dist/components/custom-tabs/CustomTabs.js +0 -70
- package/dist/components/input-list/InputListWithUseForm.d.ts +0 -22
- package/dist/components/input-list/InputListWithUseForm.js +0 -22
- package/dist/components/input-list/components/UFDatePickerMobile.d.ts +0 -9
- package/dist/components/input-list/components/UFDatePickerMobile.js +0 -6
- package/dist/components/otp-input/OTPInput.d.ts +0 -19
- package/dist/components/otp-input/OTPInput.js +0 -161
- package/dist/components/rich-tooltip/RichTooltip.d.ts +0 -18
- package/dist/components/rich-tooltip/RichTooltip.js +0 -32
- package/dist/icons/Add.d.ts +0 -7
- package/dist/icons/Add.js +0 -3
- package/dist/icons/EyeSlash.d.ts +0 -7
- package/dist/icons/EyeSlash.js +0 -3
- package/dist/icons/Tick.d.ts +0 -7
- package/dist/icons/Tick.js +0 -3
- package/dist/icons/Warning2.d.ts +0 -7
- package/dist/icons/Warning2.js +0 -3
- /package/dist/components/{input-list/type.js → custom-table/types.js} +0 -0
- /package/dist/components/{input-list → form}/Form.d.ts +0 -0
- /package/dist/components/{input-list → form}/Form.js +0 -0
- /package/dist/components/{input-list → form}/UseFormInput.d.ts +0 -0
- /package/dist/components/{input-list → form}/checkbox-list/CheckboxList.d.ts +0 -0
- /package/dist/components/{input-list → form}/checkbox-list/CheckboxList.js +0 -0
- /package/dist/components/{input-list → form}/components/UFAutoComplete.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFAutoComplete.js +0 -0
- /package/dist/components/{input-list → form}/components/UFCheckbox.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFCheckbox.js +0 -0
- /package/dist/components/{input-list → form}/components/UFCurrency.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFCurrency.js +0 -0
- /package/dist/components/{input-list → form}/components/UFDatePicker.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFDatePicker.js +0 -0
- /package/dist/components/{input-list → form}/components/UFMultiCheckbox.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFMultiCheckbox.js +0 -0
- /package/dist/components/{input-list → form}/components/UFMultiSelect.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFMultiSelect.js +0 -0
- /package/dist/components/{input-list → form}/components/UFRadio.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFRadio.js +0 -0
- /package/dist/components/{input-list → form}/components/UFSelect.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFSelect.js +0 -0
- /package/dist/components/{input-list → form}/components/UFSwitch.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFSwitch.js +0 -0
- /package/dist/components/{input-list → form}/components/UFTextArea.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFTextArea.js +0 -0
- /package/dist/components/{input-list → form}/components/UFTextField.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFTextField.js +0 -0
- /package/dist/components/{input-list → form}/components/UFTime.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFTime.js +0 -0
- /package/dist/components/{input-list → form}/components/UFUploader.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFUploader.js +0 -0
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Button, Step, StepConnector, StepLabel, Stepper, Typography, } from "@mui/material";
|
|
3
|
-
import SvgTick from "../../icons/Tick";
|
|
4
|
-
import SvgWarning2 from "../../icons/Warning2";
|
|
5
|
-
const CustomStepper = ({ steps, activeStep, orientation = "horizontal", alternativeLabel = false, nonLinear, clickableItem, errorTypographyProps, completedIconComponent, activeIconComponent, errorIconComponent, defaultIconComponent, stepperProps, stepConnectorProps, stepLabelProps, stepButtonProps, onClickItem, }) => {
|
|
6
|
-
const defaultStylesStepperConnectorHorizontal = {
|
|
7
|
-
backgroundColor: "text.5",
|
|
8
|
-
left: "calc(-50% + 10px)",
|
|
9
|
-
right: "calc(50% + 10px)",
|
|
10
|
-
"& .MuiStepConnector-line": {
|
|
11
|
-
borderColor: "text.9",
|
|
12
|
-
borderWidth: 2,
|
|
13
|
-
borderTopStyle: "dashed",
|
|
14
|
-
},
|
|
15
|
-
"&.Mui-completed": {
|
|
16
|
-
"& .MuiStepConnector-line": {
|
|
17
|
-
borderColor: "primary.5",
|
|
18
|
-
borderTopStyle: "solid",
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
"&.Mui-active": {
|
|
22
|
-
"& .MuiStepConnector-line": {
|
|
23
|
-
borderColor: "primary.5",
|
|
24
|
-
borderTopStyle: "solid",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const defaultStylesStepperConnectorVertical = {
|
|
29
|
-
backgroundColor: "text.5",
|
|
30
|
-
width: 2,
|
|
31
|
-
"& .MuiStepConnector-line": {
|
|
32
|
-
borderColor: "text.9",
|
|
33
|
-
borderWidth: 2,
|
|
34
|
-
borderLeftStyle: "dashed",
|
|
35
|
-
},
|
|
36
|
-
"&.Mui-completed": {
|
|
37
|
-
"& .MuiStepConnector-line": {
|
|
38
|
-
borderColor: "primary.5",
|
|
39
|
-
borderLeftStyle: "solid",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
"&.Mui-active": {
|
|
43
|
-
"& .MuiStepConnector-line": {
|
|
44
|
-
borderColor: "primary.5",
|
|
45
|
-
borderLeftStyle: "solid",
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
const defaultLabelStylesAlternative = {
|
|
50
|
-
"& .MuiStepLabel-label": {
|
|
51
|
-
fontSize: "12px",
|
|
52
|
-
fontWeight: "400 !important",
|
|
53
|
-
lineHeight: "21px",
|
|
54
|
-
marginTop: "8px !important",
|
|
55
|
-
color: "text.12",
|
|
56
|
-
},
|
|
57
|
-
"& .Mui-active": {
|
|
58
|
-
color: "gray.16",
|
|
59
|
-
},
|
|
60
|
-
"& .Mui-completed": {
|
|
61
|
-
color: "gray.16",
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
const defaultLabelStyles = {
|
|
65
|
-
"& .MuiStepLabel-label": {
|
|
66
|
-
fontSize: "12px",
|
|
67
|
-
fontWeight: "400 !important",
|
|
68
|
-
lineHeight: "21px",
|
|
69
|
-
color: "text.12",
|
|
70
|
-
},
|
|
71
|
-
"& .Mui-active": {
|
|
72
|
-
color: "gray.16",
|
|
73
|
-
},
|
|
74
|
-
"& .Mui-completed": {
|
|
75
|
-
color: "gray.16",
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
function StepIcons(props) {
|
|
79
|
-
const { completed, active, error, icon } = props;
|
|
80
|
-
return (_jsx(_Fragment, { children: completed ? (completedIconComponent ? (completedIconComponent(props)) : (_jsx(Box, { sx: {
|
|
81
|
-
width: 24,
|
|
82
|
-
height: 24,
|
|
83
|
-
display: "flex",
|
|
84
|
-
justifyContent: "center",
|
|
85
|
-
alignItems: "center",
|
|
86
|
-
backgroundColor: "primary.5",
|
|
87
|
-
borderRadius: "100%",
|
|
88
|
-
zIndex: 2,
|
|
89
|
-
}, children: _jsx(SvgTick, { primarycolor: "#fff", width: 24, height: 24 }) }))) : error ? (errorIconComponent ? (errorIconComponent(props)) : (_jsx(SvgWarning2, { primarycolor: "red", width: 24, height: 24 }))) : active ? (activeIconComponent ? (activeIconComponent(props)) : (_jsxs(Box, { sx: {
|
|
90
|
-
width: 24,
|
|
91
|
-
height: 24,
|
|
92
|
-
display: "flex",
|
|
93
|
-
justifyContent: "center",
|
|
94
|
-
alignItems: "center",
|
|
95
|
-
position: "relative",
|
|
96
|
-
backgroundColor: "text.5",
|
|
97
|
-
borderRadius: "100%",
|
|
98
|
-
zIndex: 2,
|
|
99
|
-
}, children: [_jsx(Typography, { variant: "caption2", color: "text.11", children: icon }), _jsx(Box, { sx: {
|
|
100
|
-
width: 34,
|
|
101
|
-
height: 34,
|
|
102
|
-
position: "absolute",
|
|
103
|
-
top: "50%",
|
|
104
|
-
left: "50%",
|
|
105
|
-
transform: "translate(-50%,-50%)",
|
|
106
|
-
borderRadius: "100%",
|
|
107
|
-
opacity: 0.3,
|
|
108
|
-
backgroundColor: "primary.3",
|
|
109
|
-
}, children: _jsx(Box, { sx: {
|
|
110
|
-
width: 12,
|
|
111
|
-
height: 12,
|
|
112
|
-
position: "absolute",
|
|
113
|
-
top: "50%",
|
|
114
|
-
left: "50%",
|
|
115
|
-
transform: "translate(-50%,-50%)",
|
|
116
|
-
backgroundColor: "primary.1",
|
|
117
|
-
borderRadius: "100%",
|
|
118
|
-
} }) })] }))) : defaultIconComponent ? (defaultIconComponent(props)) : (_jsx(Box, { sx: {
|
|
119
|
-
width: 24,
|
|
120
|
-
height: 24,
|
|
121
|
-
display: "flex",
|
|
122
|
-
justifyContent: "center",
|
|
123
|
-
alignItems: "center",
|
|
124
|
-
backgroundColor: "text.5",
|
|
125
|
-
borderRadius: "100%",
|
|
126
|
-
zIndex: 2,
|
|
127
|
-
}, children: _jsx(Typography, { variant: "caption2", color: "text.11", children: icon }) })) }));
|
|
128
|
-
}
|
|
129
|
-
return (_jsx(Stepper, { alternativeLabel: alternativeLabel, activeStep: activeStep, orientation: orientation, nonLinear: nonLinear, connector: _jsx(StepConnector, { ...stepConnectorProps, sx: [
|
|
130
|
-
orientation === "horizontal"
|
|
131
|
-
? defaultStylesStepperConnectorHorizontal
|
|
132
|
-
: defaultStylesStepperConnectorVertical,
|
|
133
|
-
...(Array.isArray(stepConnectorProps?.sx)
|
|
134
|
-
? stepConnectorProps.sx
|
|
135
|
-
: [stepConnectorProps?.sx]),
|
|
136
|
-
] }), ...stepperProps, children: steps.map((item, index) => {
|
|
137
|
-
return (_jsx(Step, { ...(nonLinear && {
|
|
138
|
-
completed: item.completed,
|
|
139
|
-
}), sx: {
|
|
140
|
-
display: "flex",
|
|
141
|
-
justifyContent: orientation === "horizontal" ? "center" : "flex-start",
|
|
142
|
-
}, children: nonLinear && clickableItem ? (_jsx(Button, { ...stepButtonProps, sx: [
|
|
143
|
-
{
|
|
144
|
-
width: "fit-content",
|
|
145
|
-
backgroundColor: "transparent",
|
|
146
|
-
"&:hover": {
|
|
147
|
-
backgroundColor: "transparent",
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
...(Array.isArray(stepButtonProps?.sx)
|
|
151
|
-
? stepButtonProps.sx
|
|
152
|
-
: [stepButtonProps?.sx]),
|
|
153
|
-
], onClick: (e) => onClickItem?.(index, e), children: _jsx(StepLabel, { StepIconComponent: StepIcons, error: item.error?.hasError, optional: item.error && (_jsx(Typography, { variant: "caption3", color: "error", ...errorTypographyProps, children: item.error?.errorMessage })), ...stepLabelProps, sx: [
|
|
154
|
-
alternativeLabel
|
|
155
|
-
? defaultLabelStylesAlternative
|
|
156
|
-
: defaultLabelStyles,
|
|
157
|
-
...(Array.isArray(stepLabelProps?.sx)
|
|
158
|
-
? stepLabelProps.sx
|
|
159
|
-
: [stepLabelProps?.sx]),
|
|
160
|
-
], children: item?.label }) })) : (_jsx(StepLabel, { StepIconComponent: StepIcons, error: item.error?.hasError, optional: item.error && (_jsx(Typography, { variant: "caption3", color: "error", ...errorTypographyProps, children: item.error.errorMessage })), ...stepLabelProps, sx: [
|
|
161
|
-
alternativeLabel
|
|
162
|
-
? defaultLabelStylesAlternative
|
|
163
|
-
: defaultLabelStyles,
|
|
164
|
-
...(Array.isArray(stepLabelProps?.sx)
|
|
165
|
-
? stepLabelProps.sx
|
|
166
|
-
: [stepLabelProps?.sx]),
|
|
167
|
-
], children: item?.label })) }, item.label));
|
|
168
|
-
}) }));
|
|
169
|
-
};
|
|
170
|
-
export default CustomStepper;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { TabProps, TabsProps } from '@mui/material';
|
|
3
|
-
import { BoxProps } from '@mui/material/Box';
|
|
4
|
-
interface ITabProps {
|
|
5
|
-
label: ReactNode;
|
|
6
|
-
icon?: string | ReactElement;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface CustomTabsProps extends TabsProps {
|
|
10
|
-
indicator?: 'line' | 'fullHeight' | 'none';
|
|
11
|
-
tabs: ITabProps[];
|
|
12
|
-
tabPanels?: {
|
|
13
|
-
component: ReactNode;
|
|
14
|
-
}[];
|
|
15
|
-
color?: string;
|
|
16
|
-
withoutDivider?: boolean;
|
|
17
|
-
tabProps?: TabProps;
|
|
18
|
-
wrapperProps?: BoxProps;
|
|
19
|
-
tabOrientation?: 'horizontal' | 'vertical';
|
|
20
|
-
}
|
|
21
|
-
declare const CustomTabs: ({ tabs, tabPanels, indicator, orientation, color, withoutDivider, tabProps, wrapperProps, tabOrientation, ...props }: CustomTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export default CustomTabs;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { Tab as MuiTab, Tabs as MuiTabs, useTheme, } from '@mui/material';
|
|
4
|
-
import Box from '@mui/material/Box';
|
|
5
|
-
const CustomTabs = ({ tabs, tabPanels, indicator = 'none', orientation = 'horizontal', color, withoutDivider, tabProps, wrapperProps, tabOrientation = 'horizontal', ...props }) => {
|
|
6
|
-
const theme = useTheme();
|
|
7
|
-
const [value, setValue] = useState(0);
|
|
8
|
-
const handleChange = (event, newValue) => {
|
|
9
|
-
setValue(newValue);
|
|
10
|
-
};
|
|
11
|
-
return (_jsxs(Box, { width: '100%', display: 'flex', height: '100%', flexDirection: orientation === 'vertical' ? 'row' : 'column', ...wrapperProps, children: [_jsx(MuiTabs, { centered: props?.centered, orientation: orientation, variant: props?.variant, value: value, onChange: handleChange, "aria-label": 'basic tabs', TabIndicatorProps: {
|
|
12
|
-
style: {
|
|
13
|
-
background: color || theme.palette.primary.main,
|
|
14
|
-
...(indicator === 'fullHeight'
|
|
15
|
-
? {
|
|
16
|
-
...(orientation === 'horizontal' && {
|
|
17
|
-
height: 'calc(100% - 4px)',
|
|
18
|
-
}),
|
|
19
|
-
...(orientation === 'vertical' && {
|
|
20
|
-
width: 'calc(100% - 4px)',
|
|
21
|
-
marginLeft: '4px',
|
|
22
|
-
}),
|
|
23
|
-
borderRadius: 8,
|
|
24
|
-
marginBottom: '4px',
|
|
25
|
-
}
|
|
26
|
-
: {}),
|
|
27
|
-
},
|
|
28
|
-
hidden: indicator === 'none',
|
|
29
|
-
}, style: { borderBottom: withoutDivider ? 'none' : '' }, ...props, children: tabs?.map(({ label, icon, disabled }, index) => (_jsx(MuiTab, { disabled: disabled, label: label, id: `tab-${index}`, "aria-controls": `tabPanel-${index}`, icon: icon ? icon : undefined, ...tabProps, sx: [
|
|
30
|
-
{
|
|
31
|
-
...theme.typography.caption2,
|
|
32
|
-
...(tabOrientation === 'vertical'
|
|
33
|
-
? { writingMode: 'tb-rl' }
|
|
34
|
-
: {}),
|
|
35
|
-
'&.Mui-selected': {
|
|
36
|
-
...theme.typography['caption2.medium'],
|
|
37
|
-
...(indicator === 'fullHeight'
|
|
38
|
-
? {
|
|
39
|
-
backgroundColor: 'transparent',
|
|
40
|
-
zIndex: 10,
|
|
41
|
-
color: (theme) => theme.palette.mode === 'light'
|
|
42
|
-
? theme.palette.text.secondary
|
|
43
|
-
: theme.palette.text.primary,
|
|
44
|
-
stroke: (theme) => theme.palette.mode === 'light'
|
|
45
|
-
? theme.palette.text.secondary
|
|
46
|
-
: theme.palette.text.primary,
|
|
47
|
-
}
|
|
48
|
-
: indicator === 'line'
|
|
49
|
-
? {
|
|
50
|
-
backgroundColor: 'transparent',
|
|
51
|
-
color: (theme) => color || theme.palette.primary.main,
|
|
52
|
-
stroke: (theme) => theme.palette.primary.main,
|
|
53
|
-
}
|
|
54
|
-
: {
|
|
55
|
-
backgroundColor: 'transparent',
|
|
56
|
-
...(orientation === 'vertical' && {
|
|
57
|
-
width: '100%',
|
|
58
|
-
justifyContent: 'flex-start',
|
|
59
|
-
}),
|
|
60
|
-
}),
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
...(Array.isArray(tabProps?.sx) ? tabProps.sx : [tabProps?.sx]),
|
|
64
|
-
] }, index))) }), tabPanels?.map((children, index) => (_jsx(CustomTabPanel, { value: value, index: index, children: children.component }, index)))] }));
|
|
65
|
-
};
|
|
66
|
-
export default CustomTabs;
|
|
67
|
-
function CustomTabPanel(props) {
|
|
68
|
-
const { children, value, index, ...other } = props;
|
|
69
|
-
return (_jsx("div", { role: 'tabpanel', hidden: value !== index, id: `tabPanel-${index}`, "aria-labelledby": `tab-${index}`, ...other, children: value === index && children }));
|
|
70
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { UseFormReturn } from 'react-hook-form';
|
|
3
|
-
import { BoxProps } from '@mui/material/Box';
|
|
4
|
-
import { GridProps } from '@mui/material/Grid';
|
|
5
|
-
import { TypographyProps } from '@mui/material/Typography';
|
|
6
|
-
import { IUseFormInput, TInputLabelMode } from './type';
|
|
7
|
-
import { TextFieldProps } from '@mui/material/TextField';
|
|
8
|
-
export interface InputListWithUseFormProps {
|
|
9
|
-
inputList: IUseFormInput[];
|
|
10
|
-
form: UseFormReturn<any, any, any>;
|
|
11
|
-
gridContainerProps?: GridProps;
|
|
12
|
-
gridItemProps?: GridProps;
|
|
13
|
-
itemProps?: any;
|
|
14
|
-
labelsProps?: Partial<TypographyProps<'label', {}>> | undefined;
|
|
15
|
-
errorProps?: BoxProps;
|
|
16
|
-
hideRequiredStar?: boolean;
|
|
17
|
-
inputLabelMode?: TInputLabelMode;
|
|
18
|
-
inputVariants?: TextFieldProps['variant'];
|
|
19
|
-
withoutHelperText?: boolean;
|
|
20
|
-
}
|
|
21
|
-
declare const InputListWithUseForm: FC<InputListWithUseFormProps>;
|
|
22
|
-
export default InputListWithUseForm;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { isValidElement } from 'react';
|
|
3
|
-
//@3rd Party
|
|
4
|
-
import lodash from 'lodash';
|
|
5
|
-
//------------------------------------------------------------------------
|
|
6
|
-
//@Mui
|
|
7
|
-
import Box from '@mui/material/Box';
|
|
8
|
-
import Grid from '@mui/material/Grid';
|
|
9
|
-
import Stack from '@mui/material/Stack';
|
|
10
|
-
import Typography from '@mui/material/Typography';
|
|
11
|
-
import UseFormInput from './UseFormInput';
|
|
12
|
-
import { deepMerge } from "../../methods/general";
|
|
13
|
-
const InputListWithUseForm = ({ inputList, form, gridItemProps, gridContainerProps, labelsProps, errorProps, itemProps, hideRequiredStar = false, inputLabelMode = 'static', inputVariants = 'outlined', withoutHelperText, }) => {
|
|
14
|
-
return (_jsx(Grid, { container: true, columnSpacing: 4, rowSpacing: 0, rowGap: 2, alignItems: 'flex-start', ...gridContainerProps, children: inputList?.map((inputProp) => (_jsxs(Grid, { item: true, width: '100%', position: 'relative', height: '100%', xs: 4, ...deepMerge(gridItemProps, inputProp.gridItemProp), children: [inputLabelMode === 'static' &&
|
|
15
|
-
inputProp.type !== 'checkbox' &&
|
|
16
|
-
inputProp.type !== 'switch' && (_jsx(Box, { display: 'flex', children: _jsx(Typography, { variant: 'caption3', flexGrow: 1, width: 0, component: 'label', display: 'inline-block', mb: 2, htmlFor: inputProp.name, color: lodash.result(form?.formState?.errors, `${inputProp.name}`)
|
|
17
|
-
? 'error'
|
|
18
|
-
: 'text.16', noWrap: true, title: !isValidElement(inputProp?.label)
|
|
19
|
-
? inputProp?.label?.toString() || ''
|
|
20
|
-
: '', ...labelsProps, ...inputProp.labelProps, children: _jsxs(Stack, { direction: 'row', children: [inputProp.label, inputProp.rules?.required && !hideRequiredStar && (_jsx(Typography, { variant: 'caption3.bold', component: 'span', color: 'error', fontSize: 12, children: "*" }))] }) }) })), _jsx(UseFormInput, { ...inputProp, form: form, itemProps: itemProps, error: lodash.result(form?.formState?.errors, `${inputProp.name}`), inputLabelMode: inputLabelMode, inputVariants: inputVariants, withoutHelperText: withoutHelperText || inputProp.withoutHelperText })] }, inputProp.name))) }));
|
|
21
|
-
};
|
|
22
|
-
export default InputListWithUseForm;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IDatePickerMobileForm } from '../type';
|
|
3
|
-
import { UseFormReturn } from 'react-hook-form';
|
|
4
|
-
type Props = IDatePickerMobileForm & {
|
|
5
|
-
form: UseFormReturn<any>;
|
|
6
|
-
error: any;
|
|
7
|
-
};
|
|
8
|
-
declare const UFDatePickerMobile: FC<Props>;
|
|
9
|
-
export default UFDatePickerMobile;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { CustomDatePickerMobile } from '../../index';
|
|
3
|
-
const UFDatePickerMobile = (props) => {
|
|
4
|
-
return (_jsx(CustomDatePickerMobile, { ...props, defaultValue: props.form.getValues(props.name) || props.defaultValue }));
|
|
5
|
-
};
|
|
6
|
-
export default UFDatePickerMobile;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, FC } from 'react';
|
|
2
|
-
import { BoxProps } from '@mui/material/Box';
|
|
3
|
-
export interface OTPInputProps {
|
|
4
|
-
value?: string;
|
|
5
|
-
valueLength: number;
|
|
6
|
-
onChange: (value: string) => void;
|
|
7
|
-
size?: number | 'auto';
|
|
8
|
-
gap?: number;
|
|
9
|
-
inputStyle?: CSSProperties;
|
|
10
|
-
activeInputStyle?: CSSProperties;
|
|
11
|
-
onFinish?: (value: string, target: HTMLInputElement) => void;
|
|
12
|
-
containerProp?: BoxProps;
|
|
13
|
-
onBack?: (target: HTMLElement) => void;
|
|
14
|
-
readonly?: boolean;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
isError?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const OTPInput: FC<OTPInputProps>;
|
|
19
|
-
export default OTPInput;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo, useState } from 'react';
|
|
3
|
-
//@3rd Party
|
|
4
|
-
//---------------------------------------------------------------------------
|
|
5
|
-
//@Mui
|
|
6
|
-
import Box from '@mui/material/Box';
|
|
7
|
-
import { useTheme } from '@mui/material/styles';
|
|
8
|
-
import Divider from '@mui/material/Divider';
|
|
9
|
-
import { ClickAwayListener } from '@mui/material';
|
|
10
|
-
const OTPInput = ({ valueLength, value, onChange, size = 'auto', gap = 2, inputStyle, activeInputStyle, onFinish = () => { }, onBack, containerProp, readonly = false, disabled = false, isError, }) => {
|
|
11
|
-
const theme = useTheme();
|
|
12
|
-
const RE_DIGIT = new RegExp(/^\d+$/);
|
|
13
|
-
const [activeInput, setActiveInput] = useState();
|
|
14
|
-
const valueItems = useMemo(() => {
|
|
15
|
-
const valueArray = value ? value.split('') : [];
|
|
16
|
-
const items = [];
|
|
17
|
-
for (let i = 0; i < valueLength; i++) {
|
|
18
|
-
const char = valueArray[i];
|
|
19
|
-
if (RE_DIGIT.test(char)) {
|
|
20
|
-
items.push(char);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
items.push('');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return items;
|
|
27
|
-
}, [value, valueLength]);
|
|
28
|
-
const focusToNextInput = (target, newValue) => {
|
|
29
|
-
const nextElementSibling = target?.parentElement?.nextElementSibling
|
|
30
|
-
?.children[0];
|
|
31
|
-
if (nextElementSibling) {
|
|
32
|
-
nextElementSibling.focus();
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
if (newValue) {
|
|
36
|
-
onFinish(newValue || '', target);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const focusToPrevInput = (target) => {
|
|
41
|
-
const previousElementSibling = target?.parentElement?.previousElementSibling
|
|
42
|
-
?.children[0];
|
|
43
|
-
if (previousElementSibling) {
|
|
44
|
-
previousElementSibling.focus();
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
if (onBack) {
|
|
48
|
-
onBack(target);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const inputOnChange = (e, idx) => {
|
|
53
|
-
const target = e.target;
|
|
54
|
-
let targetValue = target.value;
|
|
55
|
-
const isTargetValueDigit = RE_DIGIT.test(targetValue);
|
|
56
|
-
if (!isTargetValueDigit && targetValue !== '') {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
const nextInputEl = target?.parentElement?.nextElementSibling
|
|
60
|
-
?.children[0];
|
|
61
|
-
// only delete digit if next input element has no value
|
|
62
|
-
if (!isTargetValueDigit && nextInputEl && nextInputEl.value !== '') {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
targetValue = isTargetValueDigit ? targetValue : ' ';
|
|
66
|
-
const targetValueLength = targetValue.length;
|
|
67
|
-
if (targetValueLength === 1) {
|
|
68
|
-
const newValue = value?.substring(0, idx) + targetValue + value?.substring(idx + 1);
|
|
69
|
-
onChange(newValue);
|
|
70
|
-
if (!isTargetValueDigit) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
focusToNextInput(target, newValue);
|
|
74
|
-
}
|
|
75
|
-
else if (targetValueLength === valueLength) {
|
|
76
|
-
onChange(targetValue);
|
|
77
|
-
target.blur();
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
const inputOnKeyDown = (e) => {
|
|
81
|
-
const { key } = e;
|
|
82
|
-
const target = e.target;
|
|
83
|
-
if (key === 'ArrowRight' || key === 'ArrowDown') {
|
|
84
|
-
e.preventDefault();
|
|
85
|
-
return focusToNextInput(target, '');
|
|
86
|
-
}
|
|
87
|
-
if (key === 'ArrowLeft' || key === 'ArrowUp') {
|
|
88
|
-
e.preventDefault();
|
|
89
|
-
return focusToPrevInput(target);
|
|
90
|
-
}
|
|
91
|
-
const targetValue = target.value;
|
|
92
|
-
// keep the selection range position
|
|
93
|
-
// if the same digit was typed
|
|
94
|
-
target.setSelectionRange(0, targetValue.length);
|
|
95
|
-
if (e.key !== 'Backspace' || target.value !== '') {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
focusToPrevInput(target);
|
|
99
|
-
};
|
|
100
|
-
const inputOnFocus = (e, idx) => {
|
|
101
|
-
const { target } = e;
|
|
102
|
-
setActiveInput(idx);
|
|
103
|
-
// keep focusing back until previous input
|
|
104
|
-
// element has value
|
|
105
|
-
const prevInputEl = target?.parentElement?.previousElementSibling
|
|
106
|
-
?.children[0];
|
|
107
|
-
if (prevInputEl && prevInputEl.value === '') {
|
|
108
|
-
return prevInputEl.focus();
|
|
109
|
-
}
|
|
110
|
-
target.setSelectionRange(0, target.value.length);
|
|
111
|
-
};
|
|
112
|
-
return (_jsx(Box, { id: 'otp-box-input', display: 'flex', flexDirection: 'row-reverse', gap: gap, borderColor: isError ? 'red' : theme.palette.background['1'], ...containerProp, children: valueItems.map((digit, idx) => (_jsx(ClickAwayListener, {
|
|
113
|
-
// sx={{ border: "1px solid" }}
|
|
114
|
-
onClickAway: (e) => {
|
|
115
|
-
if (idx === activeInput) {
|
|
116
|
-
// @ts-expect-error
|
|
117
|
-
if (e?.target?.tagName !== 'INPUT') {
|
|
118
|
-
setActiveInput(undefined);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}, children: _jsxs(Box, { position: 'relative', width: size === 'auto' ? '100%' : size, height: size === 'auto' ? '100%' : size, display: 'flex', borderColor: 'inherit', sx: {
|
|
122
|
-
'& input:focus-visible': {
|
|
123
|
-
outline: 'none',
|
|
124
|
-
},
|
|
125
|
-
}, children: [_jsx("input", { disabled: disabled, readOnly: readonly, type: 'text', inputMode: 'numeric', autoComplete: 'one-time-code', pattern: '\\d{1}', maxLength: valueLength, style: activeInput === idx
|
|
126
|
-
? {
|
|
127
|
-
width: '100%',
|
|
128
|
-
height: '100%',
|
|
129
|
-
borderColor: 'inherit',
|
|
130
|
-
borderRadius: 6,
|
|
131
|
-
fontFamily: 'inherit',
|
|
132
|
-
border: '1px solid',
|
|
133
|
-
textAlign: 'center',
|
|
134
|
-
fontWeight: 500,
|
|
135
|
-
color: theme.palette.text.primary,
|
|
136
|
-
backgroundColor: theme.palette.background['paper'],
|
|
137
|
-
...inputStyle,
|
|
138
|
-
...activeInputStyle,
|
|
139
|
-
}
|
|
140
|
-
: {
|
|
141
|
-
width: '100%',
|
|
142
|
-
height: '100%',
|
|
143
|
-
border: '1px solid',
|
|
144
|
-
textAlign: 'center',
|
|
145
|
-
borderColor: 'inherit',
|
|
146
|
-
borderRadius: 6,
|
|
147
|
-
fontFamily: 'inherit',
|
|
148
|
-
fontWeight: 500,
|
|
149
|
-
color: theme.palette.text.primary,
|
|
150
|
-
backgroundColor: theme.palette.background['paper'],
|
|
151
|
-
...inputStyle,
|
|
152
|
-
}, value: digit, onChange: (e) => inputOnChange(e, idx), onKeyDown: inputOnKeyDown, onFocus: (e) => inputOnFocus(e, idx) }), _jsx(Divider, { sx: {
|
|
153
|
-
width: '40%',
|
|
154
|
-
position: 'absolute',
|
|
155
|
-
bottom: '20%',
|
|
156
|
-
left: '50%',
|
|
157
|
-
transform: 'translate(-50%, 50%)',
|
|
158
|
-
// borderColor: (theme) => theme.palette.primary.back,
|
|
159
|
-
} })] }, idx) }, idx))) }));
|
|
160
|
-
};
|
|
161
|
-
export default OTPInput;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
import { TypographyProps } from "@mui/material/Typography";
|
|
3
|
-
import { StackProps } from "@mui/material/Stack";
|
|
4
|
-
import { BoxProps, ButtonProps } from "@mui/material";
|
|
5
|
-
export interface IRichTooltipProps {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
title: string;
|
|
8
|
-
titleProps?: TypographyProps;
|
|
9
|
-
description: string;
|
|
10
|
-
descriptionProps?: TypographyProps;
|
|
11
|
-
containerProps?: StackProps;
|
|
12
|
-
actionProps?: BoxProps;
|
|
13
|
-
confirmProps?: ButtonProps;
|
|
14
|
-
cancelProps?: ButtonProps;
|
|
15
|
-
withoutAction?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const RichTooltip: FC<IRichTooltipProps>;
|
|
18
|
-
export default RichTooltip;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import Box from "@mui/material/Box";
|
|
3
|
-
import Typography from "@mui/material/Typography";
|
|
4
|
-
import Stack from "@mui/material/Stack";
|
|
5
|
-
import { Button, useTheme } from "@mui/material";
|
|
6
|
-
const RichTooltip = ({ children, title, titleProps, description, descriptionProps, withoutAction = false, containerProps, actionProps, confirmProps, cancelProps,
|
|
7
|
-
// onConfirmButton,
|
|
8
|
-
// onCancelButton,
|
|
9
|
-
}) => {
|
|
10
|
-
const { sx, ...rest } = containerProps || {};
|
|
11
|
-
const theme = useTheme();
|
|
12
|
-
return (_jsx(_Fragment, { children: _jsxs(Stack, { gap: 2, justifyContent: "start", alignItems: "start", sx: {
|
|
13
|
-
boxShadow: "0px 2px 6px 2px rgba(0, 0, 0, 0.10), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)",
|
|
14
|
-
backgroundColor: theme.palette.background.paper,
|
|
15
|
-
width: 300,
|
|
16
|
-
px: 4,
|
|
17
|
-
py: 3,
|
|
18
|
-
borderRadius: 4,
|
|
19
|
-
...sx,
|
|
20
|
-
}, ...rest, children: [_jsxs(Stack, { width: "100%", children: [_jsx(Typography
|
|
21
|
-
// textAlign="start"
|
|
22
|
-
, {
|
|
23
|
-
// textAlign="start"
|
|
24
|
-
sx: { mb: 1 }, color: theme.palette.text.primary, fontSize: 14, fontWeight: 500, ...titleProps, children: title }), _jsx(Typography
|
|
25
|
-
// textAlign="left"
|
|
26
|
-
, {
|
|
27
|
-
// textAlign="left"
|
|
28
|
-
fontSize: 14, fontWeight: 400, color: theme.palette.text.primary, sx: { wordWrap: "break-word" }, ...descriptionProps, children: description })] }), !withoutAction && (_jsxs(Box, { display: "flex",
|
|
29
|
-
// flexDirection="row-reverse"
|
|
30
|
-
width: "100%", gap: 2, justifyContent: "left", ...actionProps, children: [confirmProps?.onClick && (_jsx(Button, { size: "small", ...confirmProps, children: confirmProps?.title ?? "تایید" })), cancelProps?.onClick && (_jsx(Button, { size: "small", variant: "outlined", ...cancelProps, children: cancelProps?.title ?? "لغو" })), !cancelProps?.onClick && !confirmProps?.onClick && children] }))] }) }));
|
|
31
|
-
};
|
|
32
|
-
export default RichTooltip;
|
package/dist/icons/Add.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SVGProps } from "react";
|
|
2
|
-
interface Props extends SVGProps<any> {
|
|
3
|
-
primarycolor?: string;
|
|
4
|
-
secondarycolor?: string;
|
|
5
|
-
}
|
|
6
|
-
declare const SvgAdd: ({ primarycolor, secondarycolor, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default SvgAdd;
|
package/dist/icons/Add.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgAdd = ({ primarycolor, secondarycolor, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: secondarycolor || "none", viewBox: "0 0 24 24", ...props, children: _jsx("path", { stroke: primarycolor || "#1A1A1A", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M6 12h12M12 18V6" }) }));
|
|
3
|
-
export default SvgAdd;
|
package/dist/icons/EyeSlash.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SVGProps } from "react";
|
|
2
|
-
interface Props extends SVGProps<any> {
|
|
3
|
-
primarycolor?: string;
|
|
4
|
-
secondarycolor?: string;
|
|
5
|
-
}
|
|
6
|
-
declare const SvgEyeSlash: ({ primarycolor, secondarycolor, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default SvgEyeSlash;
|
package/dist/icons/EyeSlash.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const SvgEyeSlash = ({ primarycolor, secondarycolor, ...props }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: secondarycolor || "none", viewBox: "0 0 24 24", ...props, children: [_jsx("path", { stroke: primarycolor || "#1A1A1A", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m14.53 9.47-5.06 5.06a3.576 3.576 0 1 1 5.06-5.06" }), _jsx("path", { stroke: primarycolor || "#1A1A1A", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M17.82 5.77C16.07 4.45 14.07 3.73 12 3.73c-3.53 0-6.82 2.08-9.11 5.68-.9 1.41-.9 3.78 0 5.19.79 1.24 1.71 2.31 2.71 3.17M8.42 19.53c1.14.48 2.35.74 3.58.74 3.53 0 6.82-2.08 9.11-5.68.9-1.41.9-3.78 0-5.19-.33-.52-.69-1.01-1.06-1.47" }), _jsx("path", { stroke: primarycolor || "#1A1A1A", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M15.51 12.7a3.565 3.565 0 0 1-2.82 2.82M9.47 14.53 2 22M22 2l-7.47 7.47" })] }));
|
|
3
|
-
export default SvgEyeSlash;
|
package/dist/icons/Tick.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SVGProps } from "react";
|
|
2
|
-
interface Props extends SVGProps<any> {
|
|
3
|
-
primarycolor?: string;
|
|
4
|
-
secondarycolor?: string;
|
|
5
|
-
}
|
|
6
|
-
declare const SvgTick: ({ primarycolor, secondarycolor, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default SvgTick;
|
package/dist/icons/Tick.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SvgTick = ({ primarycolor, secondarycolor, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: secondarycolor || "none", viewBox: "0 0 24 24", ...props, children: _jsx("path", { stroke: primarycolor || "#1A1A1A", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m7.75 12 2.83 2.83 5.67-5.66" }) }));
|
|
3
|
-
export default SvgTick;
|
package/dist/icons/Warning2.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SVGProps } from "react";
|
|
2
|
-
interface Props extends SVGProps<any> {
|
|
3
|
-
primarycolor?: string;
|
|
4
|
-
secondarycolor?: string;
|
|
5
|
-
}
|
|
6
|
-
declare const SvgWarning2: ({ primarycolor, secondarycolor, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default SvgWarning2;
|
package/dist/icons/Warning2.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const SvgWarning2 = ({ primarycolor, secondarycolor, ...props }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: secondarycolor || "none", viewBox: "0 0 24 24", ...props, children: [_jsx("path", { stroke: primarycolor || "#1A1A1A", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73" }), _jsx("path", { stroke: primarycolor || "#1A1A1A", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 16.2v.1" })] }));
|
|
3
|
-
export default SvgWarning2;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|