fui-material 0.2.60 → 0.2.62
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 +10 -3
- 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,50 +0,0 @@
|
|
|
1
|
-
.btn {
|
|
2
|
-
height: min-content;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.btn-default-primary {
|
|
6
|
-
color: #2F80ED !important;
|
|
7
|
-
background-color: #fff !important;
|
|
8
|
-
border-color: #2F80ED !important;
|
|
9
|
-
}
|
|
10
|
-
.btn-default-secondary {
|
|
11
|
-
color: #6c757d !important;
|
|
12
|
-
background-color: #fff !important;
|
|
13
|
-
border-color: #6c757d !important;
|
|
14
|
-
}
|
|
15
|
-
.btn-default-success {
|
|
16
|
-
color: #2E7D32 !important;
|
|
17
|
-
background-color: #EFF5F0 !important;
|
|
18
|
-
border-color: #2E7D32 !important;
|
|
19
|
-
}
|
|
20
|
-
.btn-default-danger {
|
|
21
|
-
color: #dc3545 !important;
|
|
22
|
-
background-color: #fff !important;
|
|
23
|
-
border-color: #dc3545 !important;
|
|
24
|
-
}
|
|
25
|
-
.btn-default-warning {
|
|
26
|
-
color: #ffc107 !important;
|
|
27
|
-
background-color: #fff !important;
|
|
28
|
-
border-color: #ffc107 !important;
|
|
29
|
-
}
|
|
30
|
-
.btn-default-info {
|
|
31
|
-
color: #0dcaf0 !important;
|
|
32
|
-
background-color: #fff !important;
|
|
33
|
-
border-color: #0dcaf0 !important;
|
|
34
|
-
}
|
|
35
|
-
.btn-default-light {
|
|
36
|
-
color: #f8f9fa !important;
|
|
37
|
-
background-color: #fff !important;
|
|
38
|
-
border-color: #f8f9fa !important;
|
|
39
|
-
}
|
|
40
|
-
.btn-default-dark {
|
|
41
|
-
color: #212529 !important;
|
|
42
|
-
background-color: #fff !important;
|
|
43
|
-
border-color: #212529 !important;
|
|
44
|
-
}
|
|
45
|
-
.btn-default-link {
|
|
46
|
-
color: #0a58ca !important;
|
|
47
|
-
background-color: #fff !important;
|
|
48
|
-
border-color: #0a58ca !important;
|
|
49
|
-
text-decoration: underline !important;
|
|
50
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import './FButton.css'
|
|
3
|
-
import "../statick/Colors.css"
|
|
4
|
-
|
|
5
|
-
export interface IFButton {
|
|
6
|
-
children?: React.ReactChild | React.ReactNode,
|
|
7
|
-
variant?: 'contained' | 'default'
|
|
8
|
-
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link'
|
|
9
|
-
size?: 'btn-lg' | 'btn-sm' | 'btn-xs'
|
|
10
|
-
disabled?: boolean
|
|
11
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined
|
|
12
|
-
st?: React.CSSProperties,
|
|
13
|
-
className?: string
|
|
14
|
-
fullWidth?: boolean
|
|
15
|
-
id?: string,
|
|
16
|
-
type?: "button" | "submit" | "reset" | undefined
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const FButton = (
|
|
20
|
-
{
|
|
21
|
-
children,
|
|
22
|
-
variant = 'contained',
|
|
23
|
-
color = 'primary',
|
|
24
|
-
size = 'btn-sm',
|
|
25
|
-
disabled,
|
|
26
|
-
onClick,
|
|
27
|
-
st,
|
|
28
|
-
className,
|
|
29
|
-
fullWidth,
|
|
30
|
-
id,
|
|
31
|
-
type = 'button'
|
|
32
|
-
}: IFButton
|
|
33
|
-
) => {
|
|
34
|
-
|
|
35
|
-
if (fullWidth) {
|
|
36
|
-
if (st === undefined) {
|
|
37
|
-
st = {
|
|
38
|
-
width: '100%'
|
|
39
|
-
}
|
|
40
|
-
} else {
|
|
41
|
-
st.width = '100%'
|
|
42
|
-
}
|
|
43
|
-
} else {
|
|
44
|
-
if (st === undefined) {
|
|
45
|
-
st = {
|
|
46
|
-
width: "fit-content"
|
|
47
|
-
}
|
|
48
|
-
} else {
|
|
49
|
-
st.width = "fit-content"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return (
|
|
54
|
-
<React.Fragment>
|
|
55
|
-
<button
|
|
56
|
-
disabled={disabled}
|
|
57
|
-
type={type}
|
|
58
|
-
className={`btn ${variant === 'contained' ? 'btn' : 'btn-default'}-${color} ${size} ${className !== undefined ? className : ''}`}
|
|
59
|
-
onClick={onClick}
|
|
60
|
-
style={st}
|
|
61
|
-
id={id}
|
|
62
|
-
>
|
|
63
|
-
{children}
|
|
64
|
-
</button>
|
|
65
|
-
</React.Fragment>
|
|
66
|
-
)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export default FButton
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FButton";
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
.btn-default-primary {
|
|
2
|
-
color: #2F80ED !important;
|
|
3
|
-
background-color: #fff !important;
|
|
4
|
-
border-color: #2F80ED !important;
|
|
5
|
-
}
|
|
6
|
-
.btn-default-secondary {
|
|
7
|
-
color: #6c757d !important;
|
|
8
|
-
background-color: #fff !important;
|
|
9
|
-
border-color: #6c757d !important;
|
|
10
|
-
}
|
|
11
|
-
.btn-default-success {
|
|
12
|
-
color: #198754 !important;
|
|
13
|
-
background-color: #fff !important;
|
|
14
|
-
border-color: #198754 !important;
|
|
15
|
-
}
|
|
16
|
-
.btn-default-danger {
|
|
17
|
-
color: #dc3545 !important;
|
|
18
|
-
background-color: #fff !important;
|
|
19
|
-
border-color: #dc3545 !important;
|
|
20
|
-
}
|
|
21
|
-
.btn-default-warning {
|
|
22
|
-
color: #ffc107 !important;
|
|
23
|
-
background-color: #fff !important;
|
|
24
|
-
border-color: #ffc107 !important;
|
|
25
|
-
}
|
|
26
|
-
.btn-default-info {
|
|
27
|
-
color: #0dcaf0 !important;
|
|
28
|
-
background-color: #fff !important;
|
|
29
|
-
border-color: #0dcaf0 !important;
|
|
30
|
-
}
|
|
31
|
-
.btn-default-light {
|
|
32
|
-
color: #f8f9fa !important;
|
|
33
|
-
background-color: #fff !important;
|
|
34
|
-
border-color: #f8f9fa !important;
|
|
35
|
-
}
|
|
36
|
-
.btn-default-dark {
|
|
37
|
-
color: #212529 !important;
|
|
38
|
-
background-color: #fff !important;
|
|
39
|
-
border-color: #212529 !important;
|
|
40
|
-
}
|
|
41
|
-
.btn-default-link {
|
|
42
|
-
color: #0a58ca !important;
|
|
43
|
-
background-color: #fff !important;
|
|
44
|
-
border-color: #0a58ca !important;
|
|
45
|
-
text-decoration: underline !important;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.cl-btn-3 {
|
|
49
|
-
width: 10px;
|
|
50
|
-
height: 10px;
|
|
51
|
-
position: relative;
|
|
52
|
-
transform: rotate(45deg) scale(2);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.cl-btn-3 .top,
|
|
56
|
-
.cl-btn-3 .bot {
|
|
57
|
-
display: block;
|
|
58
|
-
background: #337AB7;
|
|
59
|
-
position: absolute;
|
|
60
|
-
top: 50%;
|
|
61
|
-
left: 50%;
|
|
62
|
-
animation-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
63
|
-
animation-iteration-count: 1;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.cl-btn-3 .top {
|
|
67
|
-
height: 100%;
|
|
68
|
-
width: 2px;
|
|
69
|
-
margin-left: -1px;
|
|
70
|
-
transform: skewY(45deg);
|
|
71
|
-
top: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.cl-btn-3 .bot {
|
|
75
|
-
width: 100%;
|
|
76
|
-
height: 2px;
|
|
77
|
-
margin-top: -1px;
|
|
78
|
-
transform: skewX(-45deg);
|
|
79
|
-
left: 0;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.cl-btn-3:hover {
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.cl-btn-3:hover .top {
|
|
87
|
-
animation: top-out 0.25s forwards, top-in 0.25s forwards 0.25s;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.cl-btn-3:hover .bot {
|
|
91
|
-
animation: bot-out 0.25s forwards 0.1s, bot-in 0.25s forwards 0.35s;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@-webkit-keyframes top-out {
|
|
95
|
-
from {
|
|
96
|
-
top: 0%;
|
|
97
|
-
height: 100%;
|
|
98
|
-
}
|
|
99
|
-
to {
|
|
100
|
-
top: 100%;
|
|
101
|
-
height: 0%;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@keyframes top-out {
|
|
106
|
-
from {
|
|
107
|
-
top: 0%;
|
|
108
|
-
height: 100%;
|
|
109
|
-
}
|
|
110
|
-
to {
|
|
111
|
-
top: 100%;
|
|
112
|
-
height: 0%;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@-webkit-keyframes top-in {
|
|
117
|
-
from {
|
|
118
|
-
top: -100%;
|
|
119
|
-
height: 0%;
|
|
120
|
-
}
|
|
121
|
-
to {
|
|
122
|
-
top: 0%;
|
|
123
|
-
height: 100%;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
@keyframes top-in {
|
|
128
|
-
from {
|
|
129
|
-
top: -100%;
|
|
130
|
-
height: 0%;
|
|
131
|
-
}
|
|
132
|
-
to {
|
|
133
|
-
top: 0%;
|
|
134
|
-
height: 100%;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@-webkit-keyframes bot-out {
|
|
139
|
-
from {
|
|
140
|
-
left: 0%;
|
|
141
|
-
width: 100%;
|
|
142
|
-
}
|
|
143
|
-
to {
|
|
144
|
-
left: 100%;
|
|
145
|
-
width: 0%;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@keyframes bot-out {
|
|
150
|
-
from {
|
|
151
|
-
left: 0%;
|
|
152
|
-
width: 100%;
|
|
153
|
-
}
|
|
154
|
-
to {
|
|
155
|
-
left: 100%;
|
|
156
|
-
width: 0%;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
@-webkit-keyframes bot-in {
|
|
161
|
-
from {
|
|
162
|
-
left: -100%;
|
|
163
|
-
width: 0%;
|
|
164
|
-
}
|
|
165
|
-
to {
|
|
166
|
-
left: 0%;
|
|
167
|
-
width: 100%;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@keyframes bot-in {
|
|
172
|
-
from {
|
|
173
|
-
left: -100%;
|
|
174
|
-
width: 0%;
|
|
175
|
-
}
|
|
176
|
-
to {
|
|
177
|
-
left: 0%;
|
|
178
|
-
width: 100%;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import React, {useRef, useState} from "react";
|
|
2
|
-
import './FButtonFile.css'
|
|
3
|
-
import {FStack} from "../index";
|
|
4
|
-
|
|
5
|
-
export interface IFButtonFile {
|
|
6
|
-
children?: React.ReactChild | React.ReactNode,
|
|
7
|
-
variant?: 'contained' | 'default'
|
|
8
|
-
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link'
|
|
9
|
-
size?: 'btn-lg' | 'btn-sm' | 'btn-xs'
|
|
10
|
-
disabled?: boolean
|
|
11
|
-
st?: React.CSSProperties,
|
|
12
|
-
className?: string
|
|
13
|
-
fullWidth?: boolean
|
|
14
|
-
id?: string,
|
|
15
|
-
onChange: (file: FileList | null) => void,
|
|
16
|
-
multiple?: boolean,
|
|
17
|
-
maxCount?: number,
|
|
18
|
-
accept?: string
|
|
19
|
-
spacing?: 0 | 0.5 | 1 | 2 | 3 | 4 | 8 | 12 | undefined,
|
|
20
|
-
direction?: "row" | "row-reverse" | "column" | "column-reverse" | undefined
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const FButtonFile = (
|
|
24
|
-
{
|
|
25
|
-
children,
|
|
26
|
-
variant = 'contained',
|
|
27
|
-
color = 'primary',
|
|
28
|
-
size = 'btn-sm',
|
|
29
|
-
disabled,
|
|
30
|
-
st,
|
|
31
|
-
className,
|
|
32
|
-
fullWidth,
|
|
33
|
-
id,
|
|
34
|
-
onChange,
|
|
35
|
-
multiple = false,
|
|
36
|
-
maxCount,
|
|
37
|
-
accept,
|
|
38
|
-
spacing,
|
|
39
|
-
direction
|
|
40
|
-
}: IFButtonFile
|
|
41
|
-
) => {
|
|
42
|
-
|
|
43
|
-
const fileRef = useRef();
|
|
44
|
-
const [files, setFiles] = useState<[]>([]);
|
|
45
|
-
|
|
46
|
-
if (fullWidth) {
|
|
47
|
-
if (st === undefined) {
|
|
48
|
-
st = {
|
|
49
|
-
width: '100%'
|
|
50
|
-
}
|
|
51
|
-
} else {
|
|
52
|
-
st.width = '100%'
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return (
|
|
57
|
-
<React.Fragment>
|
|
58
|
-
<button
|
|
59
|
-
disabled={disabled}
|
|
60
|
-
className={`btn ${variant === 'contained' ? 'btn' : 'btn-default'}-${color} ${size} ${className !== undefined ? className : ''}`}
|
|
61
|
-
style={st}
|
|
62
|
-
id={id}
|
|
63
|
-
//@ts-ignore
|
|
64
|
-
onClick={() => fileRef.current.click()}
|
|
65
|
-
>
|
|
66
|
-
{children}
|
|
67
|
-
</button>
|
|
68
|
-
<input
|
|
69
|
-
style={{display: 'none'}}
|
|
70
|
-
//@ts-ignore
|
|
71
|
-
ref={fileRef}
|
|
72
|
-
onChange={(e) => {
|
|
73
|
-
|
|
74
|
-
const newFiles = [...files]
|
|
75
|
-
|
|
76
|
-
//@ts-ignore
|
|
77
|
-
Object.values(e.target.files).map((opt) => {
|
|
78
|
-
//@ts-ignore
|
|
79
|
-
newFiles.push(opt)
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
// @ts-ignore
|
|
83
|
-
setFiles(newFiles)
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
onChange(newFiles)
|
|
86
|
-
}}
|
|
87
|
-
multiple={multiple}
|
|
88
|
-
type="file"
|
|
89
|
-
hidden
|
|
90
|
-
maxCount={maxCount}
|
|
91
|
-
accept={accept}
|
|
92
|
-
/>
|
|
93
|
-
<div className="custom-files-preview" id="files" style={{marginTop: '16px'}}>
|
|
94
|
-
<FStack direction={direction} spacing={spacing}>
|
|
95
|
-
{files !== undefined &&
|
|
96
|
-
files.map((opt, index) => {
|
|
97
|
-
return (
|
|
98
|
-
<span
|
|
99
|
-
// @ts-ignore
|
|
100
|
-
key={`file-${opt.name}-${Math.round(+opt.size / 1024)}}`}
|
|
101
|
-
className="tag tag-default tag-file tag-block"
|
|
102
|
-
style={{
|
|
103
|
-
width: 'fit-content',
|
|
104
|
-
display: 'flex',
|
|
105
|
-
justifyContent: 'flex-end',
|
|
106
|
-
}}
|
|
107
|
-
>
|
|
108
|
-
<span className="tag-file-name">
|
|
109
|
-
{/*@ts-ignore*/}
|
|
110
|
-
{opt.name}
|
|
111
|
-
</span>
|
|
112
|
-
<span className="tag-file-size">
|
|
113
|
-
{/*@ts-ignore*/}
|
|
114
|
-
({Math.round(+opt.size / 1024)} КБ)
|
|
115
|
-
</span>
|
|
116
|
-
<div
|
|
117
|
-
className="cl-btn-3"
|
|
118
|
-
style={{
|
|
119
|
-
marginLeft: '16px',
|
|
120
|
-
marginTop: '2px',
|
|
121
|
-
width: '10px',
|
|
122
|
-
height: '10px',
|
|
123
|
-
}}
|
|
124
|
-
onClick={() => {
|
|
125
|
-
let arFiles = [...files]
|
|
126
|
-
|
|
127
|
-
arFiles.splice(index, 1)
|
|
128
|
-
|
|
129
|
-
//@ts-ignore
|
|
130
|
-
setFiles(arFiles)
|
|
131
|
-
|
|
132
|
-
if (arFiles.length === 0) {
|
|
133
|
-
// @ts-ignore
|
|
134
|
-
fileRef.current.value = null;
|
|
135
|
-
// @ts-ignore
|
|
136
|
-
onChange(null)
|
|
137
|
-
} else {
|
|
138
|
-
// @ts-ignore
|
|
139
|
-
onChange(arFiles)
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
}}
|
|
143
|
-
>
|
|
144
|
-
<span className="top"></span>
|
|
145
|
-
<span className="bot"></span>
|
|
146
|
-
</div>
|
|
147
|
-
</span>
|
|
148
|
-
)
|
|
149
|
-
})
|
|
150
|
-
}
|
|
151
|
-
</FStack>
|
|
152
|
-
</div>
|
|
153
|
-
</React.Fragment>
|
|
154
|
-
)
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export default FButtonFile
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FButtonFile";
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
.f-checkbox label {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
gap: 8px;
|
|
5
|
-
color: #656565;
|
|
6
|
-
font-family: "SF UI Display", sans-serif;
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
font-weight: 500;
|
|
9
|
-
align-items: center;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.f-checkbox label input[type=checkbox] {
|
|
13
|
-
-webkit-appearance: none;
|
|
14
|
-
-moz-appearance: none;
|
|
15
|
-
appearance: none;
|
|
16
|
-
background-color: #fff;
|
|
17
|
-
margin: 0;
|
|
18
|
-
font: inherit;
|
|
19
|
-
color: #fff;
|
|
20
|
-
width: 1.15em;
|
|
21
|
-
height: 1.15em;
|
|
22
|
-
border: 1px solid #C4C4C4;
|
|
23
|
-
border-radius: 0.15em;
|
|
24
|
-
display: grid;
|
|
25
|
-
place-content: center;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.f-checkbox label input[type=checkbox]::before {
|
|
29
|
-
content: "";
|
|
30
|
-
width: 10px;
|
|
31
|
-
height: 10px;
|
|
32
|
-
-webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
|
|
33
|
-
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
|
|
34
|
-
transform: scale(0);
|
|
35
|
-
transform-origin: bottom left;
|
|
36
|
-
transition: 120ms transform ease-in-out;
|
|
37
|
-
background-color: #fff;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.f-checkbox label input[type=checkbox]:checked::before {
|
|
41
|
-
transform: scale(1);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.f-checkbox label input[type=checkbox]:checked {
|
|
45
|
-
transform: scale(1);
|
|
46
|
-
border: 1px solid #2F80ED;
|
|
47
|
-
background-color: #2F80ED;
|
|
48
|
-
color: #fff;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.f-checkbox label input[type=checkbox]:focus {
|
|
52
|
-
outline: none !important;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.f-checkbox label input[type=checkbox]:disabled {
|
|
56
|
-
cursor: not-allowed;
|
|
57
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React, {FC} from "react";
|
|
2
|
-
import "./Checkbox.css"
|
|
3
|
-
|
|
4
|
-
export interface IFCheckbox {
|
|
5
|
-
label?: React.ReactChild | React.ReactNode,
|
|
6
|
-
onChange: React.ChangeEventHandler<HTMLInputElement> | undefined
|
|
7
|
-
defaultChecked?: boolean | undefined
|
|
8
|
-
className?: string
|
|
9
|
-
id?: string
|
|
10
|
-
st?: React.CSSProperties | undefined,
|
|
11
|
-
checked?: boolean | undefined,
|
|
12
|
-
disabled?: boolean
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const FCheckbox: FC<IFCheckbox> = ({
|
|
17
|
-
label,
|
|
18
|
-
onChange,
|
|
19
|
-
defaultChecked,
|
|
20
|
-
className,
|
|
21
|
-
id,
|
|
22
|
-
st,
|
|
23
|
-
checked,
|
|
24
|
-
disabled
|
|
25
|
-
}) => {
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<React.Fragment>
|
|
29
|
-
<div className={`f-checkbox ${className !== undefined ? className : ''}`} id={id} style={st}>
|
|
30
|
-
<label>
|
|
31
|
-
<input
|
|
32
|
-
defaultChecked={defaultChecked}
|
|
33
|
-
type="checkbox"
|
|
34
|
-
onChange={onChange}
|
|
35
|
-
checked={checked}
|
|
36
|
-
disabled={disabled}
|
|
37
|
-
/>
|
|
38
|
-
{label}
|
|
39
|
-
</label>
|
|
40
|
-
</div>
|
|
41
|
-
</React.Fragment>
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export default FCheckbox;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FCheckbox";
|