fui-material 0.2.60 → 0.2.61
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/bundle.css +1980 -0
- package/dist/bundle.esm.css +1980 -0
- package/dist/bundle.esm.js +1341 -0
- package/dist/bundle.js +1398 -0
- package/dist/function-elements/fAlert/fAlert.d.ts +8 -0
- package/dist/function-elements/fAlert/index.d.ts +1 -0
- package/dist/function-elements/fConfirm/fConfirm.d.ts +7 -0
- package/dist/function-elements/fConfirm/index.d.ts +1 -0
- package/dist/function-elements/fPrompt/fPrompt.d.ts +8 -0
- package/dist/function-elements/fPrompt/index.d.ts +1 -0
- package/dist/function-elements/index.d.ts +3 -0
- package/dist/icons/FArrowIcon/FArrowIcon.d.ts +13 -0
- package/dist/icons/FArrowIcon/index.d.ts +1 -0
- package/dist/icons/FCheckIcon/FCheckIcon.d.ts +12 -0
- package/dist/icons/FCheckIcon/index.d.ts +1 -0
- package/dist/icons/FCloseIcon/FCloseIcon.d.ts +12 -0
- package/dist/icons/FCloseIcon/index.d.ts +1 -0
- package/dist/icons/FCopyAddIcon/FCopyAdd.d.ts +12 -0
- package/dist/icons/FDownloadIcon/FDownloadIcon.d.ts +11 -0
- package/dist/icons/FDownloadIcon/index.d.ts +1 -0
- package/dist/icons/FFilterIcon/FFilterIcon.d.ts +11 -0
- package/dist/icons/FFilterIcon/index.d.ts +1 -0
- package/dist/icons/FListIcon/FListIcon.d.ts +12 -0
- package/dist/icons/FListIcon/index.d.ts +1 -0
- package/dist/icons/FLoadIcon/FLoadIcon.d.ts +12 -0
- package/dist/icons/FLoadIcon/index.d.ts +1 -0
- package/dist/icons/FPenIcon/FPenIcon.d.ts +12 -0
- package/dist/icons/FPenIcon/index.d.ts +1 -0
- package/dist/icons/FPlusIcon/FPlusIcon.d.ts +12 -0
- package/dist/icons/FPlusIcon/index.d.ts +1 -0
- package/dist/icons/FTrashIcon/FTrashIcon.d.ts +12 -0
- package/dist/icons/FTrashIcon/index.d.ts +1 -0
- package/dist/icons/FUnlinkIcon/FUnlinkIcon.d.ts +12 -0
- package/dist/icons/index.d.ts +12 -0
- package/dist/material/Dialog/FDialog/FDialog.d.ts +14 -0
- package/dist/material/Dialog/FDialog/index.d.ts +1 -0
- package/dist/material/Dialog/FDialogBody/FDialogBody.d.ts +8 -0
- package/dist/material/Dialog/FDialogBody/index.d.ts +1 -0
- package/dist/material/Dialog/FDialogFooter/FDialogFooter.d.ts +6 -0
- package/dist/material/Dialog/FDialogFooter/index.d.ts +1 -0
- package/dist/material/Dialog/FDialogHeader/FDialogHeader.d.ts +7 -0
- package/dist/material/Dialog/FDialogHeader/index.d.ts +1 -0
- package/dist/material/Dropdown/FDropdown/FDropdown.d.ts +15 -0
- package/dist/material/Dropdown/FDropdownItem/FDropdownItem.d.ts +11 -0
- package/dist/material/FAccordion/FAccordion.d.ts +13 -0
- package/dist/material/FAccordion/index.d.ts +1 -0
- package/dist/material/FAlert/FAlert.d.ts +18 -0
- package/dist/material/FAlert/index.d.ts +1 -0
- package/dist/material/FButton/FButton.d.ts +18 -0
- package/dist/material/FButton/index.d.ts +1 -0
- package/dist/material/FButtonFile/FButtonFile.d.ts +21 -0
- package/dist/material/FButtonFile/index.d.ts +1 -0
- package/dist/material/FCheckbox/FCheckbox.d.ts +14 -0
- package/dist/material/FCheckbox/index.d.ts +1 -0
- package/dist/material/FContainer/FContainer.d.ts +11 -0
- package/dist/material/FContainer/index.d.ts +1 -0
- package/dist/material/FFile/FFile.d.ts +10 -0
- package/dist/material/FFile/index.d.ts +1 -0
- package/dist/material/FFullDateField/FFullDateField.d.ts +24 -0
- package/dist/material/FFullDateField/index.d.ts +1 -0
- package/dist/material/FGrid/FGrid.d.ts +17 -0
- package/dist/material/FGrid/index.d.ts +1 -0
- package/dist/material/FInputFileForm/FInputFileForm.d.ts +20 -0
- package/dist/material/FInputFileForm/index.d.ts +1 -0
- package/dist/material/FNative/FNative.d.ts +19 -0
- package/dist/material/FNative/index.d.ts +1 -0
- package/dist/material/FOpenImgFull/FOpenImgFull.d.ts +14 -0
- package/dist/material/FOpenImgFull/index.d.ts +1 -0
- package/dist/material/FPagination/FPagination.d.ts +14 -0
- package/dist/material/FPagination/hooks/usePagination.d.ts +9 -0
- package/dist/material/FPagination/index.d.ts +1 -0
- package/dist/material/FPaper/FPaper.d.ts +18 -0
- package/dist/material/FPaper/index.d.ts +1 -0
- package/dist/material/FPreloader/FPreloader.d.ts +10 -0
- package/dist/material/FPreloader/index.d.ts +1 -0
- package/dist/material/FProgress/FProgress.d.ts +8 -0
- package/dist/material/FProgress/index.d.ts +1 -0
- package/dist/material/FRadioButton/FRadioButton.d.ts +13 -0
- package/dist/material/FRadioButton/index.d.ts +1 -0
- package/dist/material/FSearchBox/FSearchBox.d.ts +32 -0
- package/dist/material/FSelectSearchDb/FSelectSearchDb.d.ts +21 -0
- package/dist/material/FSelectSearchDb/index.d.ts +1 -0
- package/dist/material/FStack/FStack.d.ts +14 -0
- package/dist/material/FStack/index.d.ts +1 -0
- package/dist/material/FTextArea/FTextArea.d.ts +23 -0
- package/dist/material/FTextArea/index.d.ts +1 -0
- package/dist/material/FTextField/FTextField.d.ts +26 -0
- package/dist/material/FTextField/index.d.ts +1 -0
- package/dist/material/FTimelineComponents/FTimeline/FTimeline.d.ts +10 -0
- package/dist/material/FTimelineComponents/FTimeline/index.d.ts +1 -0
- package/dist/material/FTimelineComponents/FTimelineCard/FTimelineCard.d.ts +10 -0
- package/dist/material/FTimelineComponents/FTimelineCard/index.d.ts +1 -0
- package/dist/material/SelectComponents/FSelect/FSelect.d.ts +21 -0
- package/dist/material/SelectComponents/FSelect/index.d.ts +1 -0
- package/dist/material/SelectComponents/FSelectItem/FSelectItem.d.ts +13 -0
- package/dist/material/SelectComponents/FSelectItem/index.d.ts +1 -0
- package/dist/material/TableComponents/FTable/FTable.d.ts +12 -0
- package/dist/material/TableComponents/FTable/index.d.ts +1 -0
- package/dist/material/TableComponents/FTableBody/FTableBody.d.ts +10 -0
- package/dist/material/TableComponents/FTableBody/index.d.ts +1 -0
- package/dist/material/TableComponents/FTableDataCell/FTableDataCell.d.ts +14 -0
- package/dist/material/TableComponents/FTableDataCell/index.d.ts +1 -0
- package/dist/material/TableComponents/FTableFooter/FTableFooter.d.ts +10 -0
- package/dist/material/TableComponents/FTableFooter/index.d.ts +1 -0
- package/dist/material/TableComponents/FTableHead/FTableHead.d.ts +10 -0
- package/dist/material/TableComponents/FTableHead/index.d.ts +1 -0
- package/dist/material/TableComponents/FTableHeaderCell/FTableHeaderCell.d.ts +12 -0
- package/dist/material/TableComponents/FTableHeaderCell/index.d.ts +1 -0
- package/dist/material/TableComponents/FTableRow/FTableRow.d.ts +10 -0
- package/dist/material/TableComponents/FTableRow/index.d.ts +1 -0
- package/dist/material/Tabs/FTab/FTab.d.ts +13 -0
- package/dist/material/Tabs/FTabs/FTabs.d.ts +10 -0
- package/dist/material/index.d.ts +41 -0
- package/package.json +7 -2
- package/.storybook/main.ts +0 -19
- package/.storybook/preview.ts +0 -15
- package/bun.lockb +0 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/rollup.config.js +0 -33
- package/src/function-elements/fAlert/fAlert.css +0 -99
- package/src/function-elements/fAlert/fAlert.ts +0 -66
- package/src/function-elements/fAlert/index.tsx +0 -1
- package/src/function-elements/fConfirm/fConfirm.css +0 -80
- package/src/function-elements/fConfirm/fConfirm.ts +0 -66
- package/src/function-elements/fConfirm/index.tsx +0 -1
- package/src/function-elements/fPrompt/fPrompt.css +0 -85
- package/src/function-elements/fPrompt/fPrompt.ts +0 -77
- package/src/function-elements/fPrompt/index.tsx +0 -1
- package/src/function-elements/index.ts +0 -3
- package/src/icons/FArrowIcon/FArrowIcon.tsx +0 -50
- package/src/icons/FArrowIcon/index.ts +0 -1
- package/src/icons/FCheckIcon/FCheckIcon.tsx +0 -37
- package/src/icons/FCheckIcon/index.ts +0 -1
- package/src/icons/FCloseIcon/FCloseIcon.tsx +0 -28
- package/src/icons/FCloseIcon/index.ts +0 -1
- package/src/icons/FCopyAddIcon/FCopyAdd.tsx +0 -30
- package/src/icons/FDownloadIcon/FDownloadIcon.tsx +0 -29
- package/src/icons/FDownloadIcon/index.ts +0 -1
- package/src/icons/FFilterIcon/FFilterIcon.tsx +0 -28
- package/src/icons/FFilterIcon/index.ts +0 -1
- package/src/icons/FListIcon/FListIcon.tsx +0 -38
- package/src/icons/FListIcon/index.ts +0 -1
- package/src/icons/FLoadIcon/FLoadIcon.tsx +0 -61
- package/src/icons/FLoadIcon/FLoadIconCss.css +0 -48
- package/src/icons/FLoadIcon/index.ts +0 -1
- package/src/icons/FPenIcon/FPenIcon.tsx +0 -29
- package/src/icons/FPenIcon/index.ts +0 -1
- package/src/icons/FPlusIcon/FPlusIcon.tsx +0 -39
- package/src/icons/FPlusIcon/index.ts +0 -1
- package/src/icons/FTrashIcon/FTrashIcon.tsx +0 -40
- package/src/icons/FTrashIcon/index.ts +0 -1
- package/src/icons/FUnlinkIcon/FUnlinkIcon.tsx +0 -38
- package/src/icons/index.ts +0 -12
- package/src/material/Dialog/FDialog/FDialog.tsx +0 -61
- package/src/material/Dialog/FDialog/index.ts +0 -1
- package/src/material/Dialog/FDialogBody/FDialogBody.tsx +0 -43
- package/src/material/Dialog/FDialogBody/index.ts +0 -1
- package/src/material/Dialog/FDialogFooter/FDialogFooter.tsx +0 -26
- package/src/material/Dialog/FDialogFooter/index.ts +0 -1
- package/src/material/Dialog/FDialogHeader/FDialogHeader.tsx +0 -40
- package/src/material/Dialog/FDialogHeader/index.ts +0 -1
- package/src/material/Dialog/style/style.css +0 -73
- package/src/material/Dropdown/FDropdown/FDropdown.tsx +0 -60
- package/src/material/Dropdown/FDropdownItem/FDropdownItem.tsx +0 -35
- package/src/material/Dropdown/statick/FDropdown.css +0 -68
- package/src/material/Dropdown/statick/down-arrow.png +0 -0
- package/src/material/FAccordion/FAccordion.css +0 -80
- package/src/material/FAccordion/FAccordion.tsx +0 -37
- package/src/material/FAccordion/index.ts +0 -1
- package/src/material/FAlert/FAlert.css +0 -153
- package/src/material/FAlert/FAlert.tsx +0 -226
- package/src/material/FAlert/index.ts +0 -1
- package/src/material/FButton/FButton.css +0 -50
- package/src/material/FButton/FButton.tsx +0 -69
- package/src/material/FButton/index.ts +0 -1
- package/src/material/FButtonFile/FButtonFile.css +0 -180
- package/src/material/FButtonFile/FButtonFile.tsx +0 -157
- package/src/material/FButtonFile/index.ts +0 -1
- package/src/material/FCheckbox/Checkbox.css +0 -57
- package/src/material/FCheckbox/FCheckbox.tsx +0 -45
- package/src/material/FCheckbox/index.ts +0 -1
- package/src/material/FContainer/FContainer.css +0 -165
- package/src/material/FContainer/FContainer.tsx +0 -33
- package/src/material/FContainer/index.ts +0 -1
- package/src/material/FFile/FFile.css +0 -0
- package/src/material/FFile/FFile.tsx +0 -46
- package/src/material/FFile/index.ts +0 -1
- package/src/material/FFullDateField/FFullDateField.tsx +0 -137
- package/src/material/FFullDateField/index.ts +0 -1
- package/src/material/FGrid/FGrid.css +0 -179
- package/src/material/FGrid/FGrid.tsx +0 -76
- package/src/material/FGrid/css/bootstrap-theme.css +0 -589
- package/src/material/FGrid/css/bootstrap-theme.min.css +0 -7
- package/src/material/FGrid/css/bootstrap.css +0 -1020
- package/src/material/FGrid/css/bootstrap.min.css +0 -7
- package/src/material/FGrid/index.ts +0 -1
- package/src/material/FInputFileForm/FInputFileForm.css +0 -95
- package/src/material/FInputFileForm/FInputFileForm.tsx +0 -147
- package/src/material/FInputFileForm/index.ts +0 -1
- package/src/material/FNative/FNative.css +0 -41
- package/src/material/FNative/FNative.tsx +0 -97
- package/src/material/FNative/index.ts +0 -1
- package/src/material/FOpenImgFull/FOpenImgFull.css +0 -10
- package/src/material/FOpenImgFull/FOpenImgFull.tsx +0 -109
- package/src/material/FOpenImgFull/index.ts +0 -1
- package/src/material/FOpenImgFull/statick/1.png +0 -0
- package/src/material/FOpenImgFull/statick/3.png +0 -0
- package/src/material/FOpenImgFull/statick/OKrG1rmJMps.jpg +0 -0
- package/src/material/FPagination/FPagination.css +0 -59
- package/src/material/FPagination/FPagination.tsx +0 -90
- package/src/material/FPagination/hooks/usePagination.tsx +0 -69
- package/src/material/FPagination/index.ts +0 -1
- package/src/material/FPaper/FPaper.css +0 -61
- package/src/material/FPaper/FPaper.tsx +0 -62
- package/src/material/FPaper/index.ts +0 -1
- package/src/material/FPreloader/FPreloader.css +0 -21
- package/src/material/FPreloader/FPreloader.tsx +0 -49
- package/src/material/FPreloader/index.ts +0 -1
- package/src/material/FProgress/FProgress.css +0 -9
- package/src/material/FProgress/FProgress.tsx +0 -41
- package/src/material/FProgress/index.ts +0 -1
- package/src/material/FRadioButton/FRadioButton.tsx +0 -43
- package/src/material/FRadioButton/RadioButton.css +0 -58
- package/src/material/FRadioButton/index.ts +0 -1
- package/src/material/FSearchBox/FSearchBox.css +0 -11
- package/src/material/FSearchBox/FSearchBox.tsx +0 -184
- package/src/material/FSelectSearchDb/FSelectSearchDb.css +0 -83
- package/src/material/FSelectSearchDb/FSelectSearchDb.tsx +0 -196
- package/src/material/FSelectSearchDb/index.ts +0 -1
- package/src/material/FStack/FStack.css +0 -3
- package/src/material/FStack/FStack.tsx +0 -55
- package/src/material/FStack/index.ts +0 -1
- package/src/material/FTextArea/FTextArea.tsx +0 -124
- package/src/material/FTextArea/index.ts +0 -1
- package/src/material/FTextField/FTextField.css +0 -95
- package/src/material/FTextField/FTextField.tsx +0 -163
- package/src/material/FTextField/index.ts +0 -1
- package/src/material/FTimelineComponents/FTimeline/FTimeline.css +0 -82
- package/src/material/FTimelineComponents/FTimeline/FTimeline.tsx +0 -28
- package/src/material/FTimelineComponents/FTimeline/index.ts +0 -1
- package/src/material/FTimelineComponents/FTimelineCard/FTimelineCard.tsx +0 -31
- package/src/material/FTimelineComponents/FTimelineCard/index.ts +0 -1
- package/src/material/SelectComponents/FSelect/FSelect.css +0 -0
- package/src/material/SelectComponents/FSelect/FSelect.tsx +0 -121
- package/src/material/SelectComponents/FSelect/index.ts +0 -1
- package/src/material/SelectComponents/FSelectItem/FSelectItem.tsx +0 -42
- package/src/material/SelectComponents/FSelectItem/index.ts +0 -1
- package/src/material/TableComponents/FTable/FTable.css +0 -62
- package/src/material/TableComponents/FTable/FTable.tsx +0 -39
- package/src/material/TableComponents/FTable/index.ts +0 -1
- package/src/material/TableComponents/FTableBody/FTableBody.tsx +0 -28
- package/src/material/TableComponents/FTableBody/index.ts +0 -1
- package/src/material/TableComponents/FTableDataCell/FTableDataCell.tsx +0 -45
- package/src/material/TableComponents/FTableDataCell/index.ts +0 -1
- package/src/material/TableComponents/FTableFooter/FTableFooter.tsx +0 -29
- package/src/material/TableComponents/FTableFooter/index.ts +0 -1
- package/src/material/TableComponents/FTableHead/FTableHead.tsx +0 -28
- package/src/material/TableComponents/FTableHead/index.ts +0 -1
- package/src/material/TableComponents/FTableHeaderCell/FTableHeaderCell.tsx +0 -39
- package/src/material/TableComponents/FTableHeaderCell/index.ts +0 -1
- package/src/material/TableComponents/FTableRow/FTableRow.tsx +0 -28
- package/src/material/TableComponents/FTableRow/index.ts +0 -1
- package/src/material/Tabs/FTab/FTab.tsx +0 -39
- package/src/material/Tabs/FTabs/FTabs.tsx +0 -27
- package/src/material/Tabs/styles/FTabs.css +0 -49
- package/src/material/index.ts +0 -60
- package/src/material/statick/Colors.css +0 -87
- package/src/material/statick/index.css +0 -7
- package/tsconfig.json +0 -21
- /package/{src/icons/FCopyAddIcon/index.ts → dist/icons/FCopyAddIcon/index.d.ts} +0 -0
- /package/{src/icons/FUnlinkIcon/index.ts → dist/icons/FUnlinkIcon/index.d.ts} +0 -0
- /package/{src/index.ts → dist/index.d.ts} +0 -0
- /package/{src/material/Dropdown/FDropdown/index.ts → dist/material/Dropdown/FDropdown/index.d.ts} +0 -0
- /package/{src/material/Dropdown/FDropdownItem/index.ts → dist/material/Dropdown/FDropdownItem/index.d.ts} +0 -0
- /package/{src/material/FSearchBox/index.ts → dist/material/FSearchBox/index.d.ts} +0 -0
- /package/{src/material/Tabs/FTab/index.ts → dist/material/Tabs/FTab/index.d.ts} +0 -0
- /package/{src/material/Tabs/FTabs/index.ts → dist/material/Tabs/FTabs/index.d.ts} +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export interface IFFilterIcon {
|
|
4
|
-
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link'
|
|
5
|
-
size?: number
|
|
6
|
-
st?: React.CSSProperties,
|
|
7
|
-
id?: string,
|
|
8
|
-
className?: string,
|
|
9
|
-
handleClick?: () => void,
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const FFilterIcon = ({color = 'dark', size = 30, st, id, className, handleClick}: IFFilterIcon) => {
|
|
13
|
-
return (
|
|
14
|
-
<svg
|
|
15
|
-
width={size}
|
|
16
|
-
viewBox="0 0 24 24"
|
|
17
|
-
className={`${color} ${className !== undefined ? className : ''}`}
|
|
18
|
-
id={id}
|
|
19
|
-
onClick={handleClick}
|
|
20
|
-
style={st}
|
|
21
|
-
>
|
|
22
|
-
<path fill="none" d="M0 0h24v24H0z"/>
|
|
23
|
-
<path fillRule="nonzero" d="M14 14v6l-4 2v-8L4 5V3h16v2l-6 9zM6.404 5L12 13.394 17.596 5H6.404z"/>
|
|
24
|
-
</svg>
|
|
25
|
-
);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export default FFilterIcon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FFilterIcon";
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import "../../material/statick/Colors.css"
|
|
3
|
-
|
|
4
|
-
export interface IFListIcon {
|
|
5
|
-
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link'
|
|
6
|
-
size?: number
|
|
7
|
-
st?: React.CSSProperties,
|
|
8
|
-
id?: string,
|
|
9
|
-
className?: string,
|
|
10
|
-
handleClick?: () => void,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const FListIcon = ({
|
|
14
|
-
color = 'dark',
|
|
15
|
-
size = 32,
|
|
16
|
-
st,
|
|
17
|
-
id,
|
|
18
|
-
className,
|
|
19
|
-
handleClick
|
|
20
|
-
}: IFListIcon) => {
|
|
21
|
-
return (
|
|
22
|
-
<svg
|
|
23
|
-
width={size}
|
|
24
|
-
style={st}
|
|
25
|
-
className={`bi bi-card-list ${color} ${className !== undefined ? className : ''}`}
|
|
26
|
-
viewBox="0 0 16 16"
|
|
27
|
-
id={id}
|
|
28
|
-
onClick={handleClick}
|
|
29
|
-
>
|
|
30
|
-
<path
|
|
31
|
-
d="M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z"/>
|
|
32
|
-
<path
|
|
33
|
-
d="M5 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 5 8zm0-2.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0 5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-1-5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM4 8a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm0 2.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0z"/>
|
|
34
|
-
</svg>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default FListIcon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FListIcon";
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import React, {useRef} from 'react';
|
|
2
|
-
import './FLoadIconCss.css'
|
|
3
|
-
export interface IFLoadIcon {
|
|
4
|
-
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link'
|
|
5
|
-
size?: number
|
|
6
|
-
st?: React.CSSProperties,
|
|
7
|
-
id?: string,
|
|
8
|
-
className?: string,
|
|
9
|
-
handleClick?: () => void,
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const FLoadIcon = ({size = 35, st, id, className, color = 'primary'}: IFLoadIcon) => {
|
|
13
|
-
|
|
14
|
-
const randomId= useRef<string>((Math.random() + 1).toString(36).substring(2))
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<div style={{margin: 0, padding: 0}}>
|
|
18
|
-
<style>
|
|
19
|
-
{
|
|
20
|
-
`
|
|
21
|
-
.f-load-icon-${randomId.current} {
|
|
22
|
-
width: ${size}px;
|
|
23
|
-
height: ${size * 2.25}px;
|
|
24
|
-
-webkit-animation: anim-f-load-icon-${randomId.current} 2s linear infinite alternate;
|
|
25
|
-
animation: anim-f-load-icon-${randomId.current} 2s linear infinite alternate;
|
|
26
|
-
transform: perspective(${size * 2.5}px) rotateX(-45deg);
|
|
27
|
-
border-width: ${size/10}px !important;
|
|
28
|
-
}
|
|
29
|
-
`
|
|
30
|
-
}
|
|
31
|
-
{
|
|
32
|
-
`@-webkit-keyframes anim-f-load-icon-${randomId.current} {
|
|
33
|
-
0% {
|
|
34
|
-
box-shadow: 0 0 inset;
|
|
35
|
-
}
|
|
36
|
-
100% {
|
|
37
|
-
box-shadow: 0 calc((${size * 2.25}px - 2px) * -1) inset;
|
|
38
|
-
}
|
|
39
|
-
}`
|
|
40
|
-
}
|
|
41
|
-
{
|
|
42
|
-
`@keyframes anim-f-load-icon-${randomId.current} {
|
|
43
|
-
0% {
|
|
44
|
-
box-shadow: 0 0 inset;
|
|
45
|
-
}
|
|
46
|
-
100% {
|
|
47
|
-
box-shadow: 0 calc((${size * 2.25}px - 2px) * -1) inset;
|
|
48
|
-
}
|
|
49
|
-
}`
|
|
50
|
-
}
|
|
51
|
-
</style>
|
|
52
|
-
<span
|
|
53
|
-
className={`f-load-icon f-load-icon-${randomId.current} ${color} ${className !== undefined ? className : ''}`}
|
|
54
|
-
style={st}
|
|
55
|
-
id={id}
|
|
56
|
-
/>
|
|
57
|
-
</div>
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export default FLoadIcon;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
.f-load-icon {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.f-load-icon.primary {
|
|
6
|
-
border: 2px solid #2F80ED;
|
|
7
|
-
color: rgba(47, 128, 237, 0.5);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.f-load-icon.secondary {
|
|
11
|
-
border: 2px solid #6c757d;
|
|
12
|
-
color: rgba(108, 117, 125, 0.5);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.f-load-icon.success {
|
|
16
|
-
border: 2px solid #198754;
|
|
17
|
-
color: rgba(25, 135, 84, 0.5);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.f-load-icon.danger {
|
|
21
|
-
border: 2px solid #dc3545;
|
|
22
|
-
color: rgba(220, 53, 69, 0.5);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.f-load-icon.warning {
|
|
26
|
-
border: 2px solid #ffc107;
|
|
27
|
-
color: rgba(255, 193, 7, 0.5);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.f-load-icon.info {
|
|
31
|
-
border: 2px solid #0dcaf0;
|
|
32
|
-
color: rgba(13, 202, 240, 0.5);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.f-load-icon.light {
|
|
36
|
-
border: 2px solid #f8f9fa;
|
|
37
|
-
color: rgba(248, 249, 250, 0.5);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.f-load-icon.dark {
|
|
41
|
-
border: 2px solid #212529;
|
|
42
|
-
color: rgba(33, 37, 41, 0.5);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.f-load-icon.link {
|
|
46
|
-
border: 2px solid #0a58ca;
|
|
47
|
-
color: rgba(10, 88, 202, 0.5);
|
|
48
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FLoadIcon";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import "../../material/statick/Colors.css"
|
|
3
|
-
|
|
4
|
-
export interface IFPenIcon {
|
|
5
|
-
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link'
|
|
6
|
-
size?: number
|
|
7
|
-
st?: React.CSSProperties,
|
|
8
|
-
id?: string,
|
|
9
|
-
className?: string,
|
|
10
|
-
handleClick?: () => void,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const FPenIcon = ({color = 'dark', size = 30, st, id, className, handleClick}: IFPenIcon) => {
|
|
14
|
-
return (
|
|
15
|
-
<svg
|
|
16
|
-
width={size}
|
|
17
|
-
style={st}
|
|
18
|
-
className={`bi bi-pencil ${color} ${className !== undefined ? className : ''}`}
|
|
19
|
-
viewBox="0 0 16 16"
|
|
20
|
-
onClick={handleClick}
|
|
21
|
-
id={id}
|
|
22
|
-
>
|
|
23
|
-
<path
|
|
24
|
-
d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z"/>
|
|
25
|
-
</svg>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default FPenIcon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FPenIcon";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import "../../material/statick/Colors.css"
|
|
3
|
-
|
|
4
|
-
export interface IFPlusIcon {
|
|
5
|
-
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link'
|
|
6
|
-
size?: number
|
|
7
|
-
st?: React.CSSProperties,
|
|
8
|
-
id?: string,
|
|
9
|
-
className?: string,
|
|
10
|
-
handleClick?: () => void,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const FPlusIcon = ({
|
|
14
|
-
color = 'primary',
|
|
15
|
-
size = 32,
|
|
16
|
-
st,
|
|
17
|
-
className,
|
|
18
|
-
id,
|
|
19
|
-
handleClick
|
|
20
|
-
}: IFPlusIcon) => {
|
|
21
|
-
return (
|
|
22
|
-
<svg
|
|
23
|
-
onClick={handleClick}
|
|
24
|
-
className={`MuiSvgIcon-root MuiSvgIcon-fontSizeMedium ${color} ${className !== undefined ? className : ''}`}
|
|
25
|
-
id={id}
|
|
26
|
-
width={size}
|
|
27
|
-
style={st}
|
|
28
|
-
focusable="false"
|
|
29
|
-
aria-hidden="true"
|
|
30
|
-
viewBox="0 0 24 24"
|
|
31
|
-
data-testid="AddCircleOutlineOutlinedIcon"
|
|
32
|
-
>
|
|
33
|
-
<path
|
|
34
|
-
d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
|
|
35
|
-
</svg>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export default FPlusIcon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FPlusIcon";
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import "../../material/statick/Colors.css"
|
|
3
|
-
export interface IFTrashIcon {
|
|
4
|
-
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link'
|
|
5
|
-
size?: number
|
|
6
|
-
st?: React.CSSProperties,
|
|
7
|
-
id?: string,
|
|
8
|
-
className?: string,
|
|
9
|
-
handleClick?: () => void,
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const FTrashIcon = ({
|
|
14
|
-
color = "primary",
|
|
15
|
-
size = 32,
|
|
16
|
-
st,
|
|
17
|
-
id,
|
|
18
|
-
className,
|
|
19
|
-
handleClick,
|
|
20
|
-
}: IFTrashIcon
|
|
21
|
-
) => {
|
|
22
|
-
return (
|
|
23
|
-
<svg
|
|
24
|
-
onClick={handleClick}
|
|
25
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
-
width={size}
|
|
27
|
-
style={st}
|
|
28
|
-
className={`bi bi-trash ${color} ${className !== undefined ? className : ''}`}
|
|
29
|
-
viewBox="0 0 16 16"
|
|
30
|
-
id={id}
|
|
31
|
-
>
|
|
32
|
-
<path
|
|
33
|
-
d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>
|
|
34
|
-
<path fillRule="evenodd"
|
|
35
|
-
d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>
|
|
36
|
-
</svg>
|
|
37
|
-
);
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export default FTrashIcon;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FTrashIcon";
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import "../../material/statick/Colors.css"
|
|
3
|
-
|
|
4
|
-
export interface IFUnlinkIcon {
|
|
5
|
-
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link'
|
|
6
|
-
size?: number
|
|
7
|
-
st?: React.CSSProperties,
|
|
8
|
-
id?: string,
|
|
9
|
-
className?: string,
|
|
10
|
-
handleClick?: () => void,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const FUnlinkIcon = ({color = 'dark', size = 30, st, id, className, handleClick}: IFUnlinkIcon) => {
|
|
14
|
-
return (
|
|
15
|
-
<svg
|
|
16
|
-
width={size}
|
|
17
|
-
style={st}
|
|
18
|
-
className={`bi bi-pencil ${color} ${className !== undefined ? className : ''}`}
|
|
19
|
-
viewBox="-0.5 0 25 25"
|
|
20
|
-
onClick={handleClick}
|
|
21
|
-
id={id}
|
|
22
|
-
fill={'none'}
|
|
23
|
-
>
|
|
24
|
-
<path d="M9.23993 17.55L7.95993 18.84C7.33993 19.47 6.51992 19.79 5.69992 19.79C4.87992 19.79 4.05994 19.47 3.43994 18.84C2.18994 17.58 2.18994 15.54 3.43994 14.29L4.70993 13.02L6.11993 11.6L8.82993 8.86" stroke="#0F0F0F" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
25
|
-
<path d="M8.82996 3.86V6.86" stroke="#0F0F0F" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
26
|
-
<path d="M5.32996 5.22L6.82996 7.81" stroke="#0F0F0F" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
27
|
-
<path d="M9.23993 17.55L7.95993 18.84C7.33993 19.47 6.51992 19.79 5.69992 19.79C4.87992 19.79 4.05994 19.47 3.43994 18.84C2.18994 17.58 2.18994 15.54 3.43994 14.29L4.70993 13.02L6.11993 11.6L8.82993 8.86" stroke="#0F0F0F" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
28
|
-
<path d="M14.7599 7.45L16.0399 6.16C16.6599 5.53 17.4799 5.21 18.2999 5.21C19.1199 5.21 19.9399 5.53 20.5599 6.16C21.8099 7.42 21.8099 9.46 20.5599 10.71L19.2899 11.98L17.8799 13.4L15.1699 16.14" stroke="#0F0F0F" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
29
|
-
<path d="M12.33 5.22L10.83 7.81" stroke="#0F0F0F" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
30
|
-
<path d="M15.1699 21.14V18.14" stroke="#0F0F0F" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
31
|
-
<path d="M18.6699 19.79L17.1699 17.19" stroke="#0F0F0F" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
32
|
-
<path d="M11.6699 19.79L13.1699 17.19" stroke="#0F0F0F" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
33
|
-
|
|
34
|
-
</svg>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default FUnlinkIcon;
|
package/src/icons/index.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export {default as FCloseIcon} from "./FCloseIcon"
|
|
2
|
-
export {default as FArrowIcon} from "./FArrowIcon"
|
|
3
|
-
export {default as FPlusIcon} from "./FPlusIcon"
|
|
4
|
-
export {default as FTrashIcon} from "./FTrashIcon"
|
|
5
|
-
export {default as FCheckIcon} from "./FCheckIcon"
|
|
6
|
-
export {default as FListIcon} from "./FListIcon"
|
|
7
|
-
export {default as FPenIcon} from "./FPenIcon"
|
|
8
|
-
export {default as FDownloadIcon} from "./FDownloadIcon"
|
|
9
|
-
export {default as FCopyAddIcon} from "./FCopyAddIcon"
|
|
10
|
-
export {default as FUnlinkIcon} from "./FUnlinkIcon"
|
|
11
|
-
export {default as FFilterIcon} from "./FFilterIcon"
|
|
12
|
-
export {default as FLoadIcon} from "./FLoadIcon"
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// *********************************************************************************************************************
|
|
2
|
-
// Родительский компонет диалогового окна
|
|
3
|
-
// *********************************************************************************************************************
|
|
4
|
-
|
|
5
|
-
import React, {FC, useEffect} from "react";
|
|
6
|
-
import "../style/style.css"
|
|
7
|
-
|
|
8
|
-
export interface IFDialog {
|
|
9
|
-
openAndClose: boolean
|
|
10
|
-
id?: string,
|
|
11
|
-
className?: string
|
|
12
|
-
st?: React.CSSProperties,
|
|
13
|
-
children?: React.ReactChild | React.ReactNode,
|
|
14
|
-
hide?: boolean
|
|
15
|
-
closeButtonBackPage?: React.Dispatch<React.SetStateAction<boolean>>,
|
|
16
|
-
width?: 'xs' | 'md' | 'lg' | 'xxl' | 'adaptive'
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const FDialog: FC<IFDialog> = ({
|
|
21
|
-
openAndClose,
|
|
22
|
-
closeButtonBackPage,
|
|
23
|
-
hide,
|
|
24
|
-
children,
|
|
25
|
-
id,
|
|
26
|
-
className,
|
|
27
|
-
st,
|
|
28
|
-
width = 'lg'
|
|
29
|
-
}) => {
|
|
30
|
-
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
if (document.getElementsByClassName("active-dialog").length > 0) {
|
|
33
|
-
document.body.classList.add('open-dialog')
|
|
34
|
-
} else {
|
|
35
|
-
document.body.classList.remove('open-dialog')
|
|
36
|
-
}
|
|
37
|
-
}, [openAndClose])
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<React.Fragment>
|
|
41
|
-
<div
|
|
42
|
-
className={`${openAndClose ? 'f-dialog active-dialog' : 'f-dialog'} ${className !== undefined ? className : ''}`}
|
|
43
|
-
onClick={() => closeButtonBackPage && closeButtonBackPage(false)}
|
|
44
|
-
id={id}
|
|
45
|
-
style={st}
|
|
46
|
-
>
|
|
47
|
-
<div
|
|
48
|
-
className={`${openAndClose ? 'f-dialog-content active' : 'f-dialog-content'} ${hide ? 'hide' : ''}`}
|
|
49
|
-
style={{
|
|
50
|
-
width: width === 'xxl' ? '95vw' : width === 'lg' ? '80vw' : width === 'md' ? '65vw' : width === 'xs' ? '50vw' : 'fit-content'
|
|
51
|
-
}}
|
|
52
|
-
onClick={(e) => e.stopPropagation()}
|
|
53
|
-
>
|
|
54
|
-
{children}
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</React.Fragment>
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export default FDialog
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FDialog";
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// *********************************************************************************************************************
|
|
2
|
-
// Основная часть компонента диалогового окна
|
|
3
|
-
// *********************************************************************************************************************
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import React, {FC} from "react";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export interface IFDialogBody {
|
|
10
|
-
st?: React.CSSProperties
|
|
11
|
-
children?: React.ReactChild | React.ReactNode
|
|
12
|
-
scroll?: boolean
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const FDialogBody: FC<IFDialogBody> = ({
|
|
17
|
-
st,
|
|
18
|
-
children,
|
|
19
|
-
scroll
|
|
20
|
-
}) => {
|
|
21
|
-
|
|
22
|
-
let style: React.CSSProperties = {
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
if (scroll) {
|
|
27
|
-
style['overflowY'] = 'auto'
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (st !== undefined) {
|
|
31
|
-
style = Object.assign(style, st)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<React.Fragment>
|
|
36
|
-
<div className="dialog-body" style={style}>
|
|
37
|
-
{children}
|
|
38
|
-
</div>
|
|
39
|
-
</React.Fragment>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export default FDialogBody
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FDialogBody";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// *********************************************************************************************************************
|
|
2
|
-
// Нижняя часть компонента диалогового окна
|
|
3
|
-
// *********************************************************************************************************************
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import React, {FC} from "react";
|
|
7
|
-
|
|
8
|
-
export interface IFDialogFooter {
|
|
9
|
-
children?: React.ReactChild | React.ReactNode
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const FDialogFooter: FC<IFDialogFooter> = ({
|
|
14
|
-
children
|
|
15
|
-
}) => {
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<React.Fragment>
|
|
19
|
-
<div className={'dialog-footer'}>
|
|
20
|
-
{children}
|
|
21
|
-
</div>
|
|
22
|
-
</React.Fragment>
|
|
23
|
-
)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default FDialogFooter
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FDialogFooter";
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// *********************************************************************************************************************
|
|
2
|
-
// Головная часть компонента диалогового окна
|
|
3
|
-
// *********************************************************************************************************************
|
|
4
|
-
|
|
5
|
-
import React, {FC} from "react";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export interface IFDialogHeader {
|
|
9
|
-
title?: string
|
|
10
|
-
handleClose?: () => void
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const FDialogHeader: FC<IFDialogHeader> = ({
|
|
15
|
-
title,
|
|
16
|
-
handleClose,
|
|
17
|
-
}) => {
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<React.Fragment>
|
|
21
|
-
<div className="dialog-header">
|
|
22
|
-
<div>
|
|
23
|
-
<h3 className="dialog-title" style={{margin: 0}}>
|
|
24
|
-
{title === undefined ? '' : title}
|
|
25
|
-
</h3>
|
|
26
|
-
</div>
|
|
27
|
-
{handleClose !== undefined &&
|
|
28
|
-
<div>
|
|
29
|
-
<div className="cl-btn-3" onClick={handleClose}>
|
|
30
|
-
<span className="top"></span>
|
|
31
|
-
<span className="bot"></span>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
}
|
|
35
|
-
</div>
|
|
36
|
-
</React.Fragment>
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export default FDialogHeader
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FDialogHeader";
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
.f-dialog {
|
|
2
|
-
z-index: 999999;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100vw;
|
|
5
|
-
background-color: rgba(0,0,0,0.4);
|
|
6
|
-
position: fixed;
|
|
7
|
-
top: 0;
|
|
8
|
-
left: 0;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
opacity: 0;
|
|
13
|
-
pointer-events: none;
|
|
14
|
-
transition: 1s;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.f-dialog.active-dialog {
|
|
18
|
-
opacity: 1;
|
|
19
|
-
pointer-events: all;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.f-dialog-content {
|
|
23
|
-
padding: 20px;
|
|
24
|
-
border-radius: 12px;
|
|
25
|
-
background-color: white;
|
|
26
|
-
transform: scale(0.5);
|
|
27
|
-
transition: 1s;
|
|
28
|
-
display: flex;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
align-items: center;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
/* максимально возможная ширина */
|
|
33
|
-
max-width: 80vw;
|
|
34
|
-
max-height: 95vh;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.dialog-body {
|
|
38
|
-
width: 100%;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.f-dialog-content.active {
|
|
42
|
-
transform: scale(1);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.f-dialog-content.hide {
|
|
46
|
-
opacity: 0;
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.f-dialog-content.hide {
|
|
51
|
-
opacity: 0;
|
|
52
|
-
pointer-events: none;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* Заголовок с кнопкой закрытия */
|
|
56
|
-
.dialog-header {
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-direction: row;
|
|
59
|
-
justify-content: space-between;
|
|
60
|
-
align-items: center;
|
|
61
|
-
width: 100%;
|
|
62
|
-
padding: 8px 16px 8px 16px;
|
|
63
|
-
gap: 24px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* Заголовок с кнопкой закрытия */
|
|
67
|
-
.dialog-footer {
|
|
68
|
-
padding: 16px 8px 8px 8px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
body.open-dialog {
|
|
72
|
-
overflow: hidden;
|
|
73
|
-
}
|