kelt-ui-kit-react 2.0.8 → 2.0.9
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/.github/workflows/publish.yml +40 -31
- package/README.md +124 -72
- package/dist/App.d.ts +2 -3
- package/dist/App.menu.d.ts +10 -10
- package/dist/App.routes.d.ts +1 -1
- package/dist/_core/hooks/HistoryProvider.d.ts +5 -5
- package/dist/_core/hooks/ImageChecker.d.ts +5 -6
- package/dist/_core/hooks/imageExist.d.ts +5 -6
- package/dist/_core/hooks/isEAN13.d.ts +1 -1
- package/dist/_core/hooks/objectToQueryParams.d.ts +1 -1
- package/dist/_core/hooks/useCurrency.d.ts +3 -3
- package/dist/_core/hooks/useDateutils.d.ts +4 -4
- package/dist/_core/hooks/useIsMobile.d.ts +1 -1
- package/dist/_core/hooks/useToken.d.ts +3 -3
- package/dist/_core/hooks/useValidate.d.ts +5 -5
- package/dist/_core/hooks/widgetSupport.d.ts +1 -1
- package/dist/_core/type/generiqueType.d.ts +4 -0
- package/dist/action/Action.view.d.ts +1 -1
- package/dist/action/ButtonAction.d.ts +8 -9
- package/dist/addressSearch/AddressSearch.d.ts +18 -19
- package/dist/addressSearch/AddressSearch.view.d.ts +1 -1
- package/dist/badge/Badge.d.ts +10 -9
- package/dist/badge/Badge.view.d.ts +1 -1
- package/dist/button/Button.d.ts +1 -2
- package/dist/button/Button.view.d.ts +1 -1
- package/dist/button/button.interface.d.ts +19 -20
- package/dist/button/buttonActions/ButtonActions.d.ts +11 -12
- package/dist/button/buttonFile/ButtonFile.d.ts +9 -9
- package/dist/button/buttonFile/ButtonFile.view.d.ts +1 -1
- package/dist/button/buttonFilters/ButtonFilters.d.ts +16 -17
- package/dist/card/Card.d.ts +14 -15
- package/dist/card/Card.view.d.ts +1 -1
- package/dist/card/card.interface.d.ts +10 -10
- package/dist/card/cardAction/CardAction.d.ts +13 -14
- package/dist/card/cardAction.interface.d.ts +8 -9
- package/dist/card/hook/useCardInteractions.d.ts +8 -8
- package/dist/carousel/Carousel.d.ts +14 -15
- package/dist/carousel/Carousel.view.d.ts +1 -1
- package/dist/damier/Damier.d.ts +9 -10
- package/dist/damier/Damier.view.d.ts +1 -1
- package/dist/damier/damierCell/DamierCell.d.ts +6 -7
- package/dist/damier/damierCell/damierCell.interface.d.ts +6 -6
- package/dist/dataTable/DataTable.d.ts +37 -33
- package/dist/dataTable/DataTable.view.d.ts +1 -1
- package/dist/dataTable/dataTable.interface.d.ts +70 -47
- package/dist/dataTable/dataTable.utils.d.ts +17 -0
- package/dist/dataTable/dataTableActions/DataTableAction.d.ts +9 -10
- package/dist/dataTable/dataTableColumn/DataTableColumn.d.ts +14 -8
- package/dist/dataTable/dataTableColumn/dataTableColumnFilter/DataTableColumnFilter.d.ts +9 -0
- package/dist/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterDate/DataTableColumnFilterDate.d.ts +9 -0
- package/dist/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterDateRange/dataTableColumnFilterDateRange.d.ts +9 -0
- package/dist/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterEnum/DataTableColumnFilterEnum.d.ts +12 -0
- package/dist/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterString/DataTableColumnFilterString.d.ts +9 -0
- package/dist/dataTable/dataTableColumn/dataTableColumnSort/DataTableColumnSort.d.ts +10 -0
- package/dist/dataTable/dataTableFilters/DataTableFilters.d.ts +6 -0
- package/dist/dataTable/dataTableLoading/DataTableLoading.d.ts +8 -7
- package/dist/dataTable/dataTableRow/DataTableRow.d.ts +12 -11
- package/dist/dataTable/useDataTableState.d.ts +13 -0
- package/dist/datePicker/DatePicker.d.ts +7 -8
- package/dist/datePicker/DatePicker.view.d.ts +1 -1
- package/dist/docs/ComponentDocs.d.ts +6 -0
- package/dist/docs/catalog.d.ts +8 -0
- package/dist/docs/documentation.types.d.ts +21 -0
- package/dist/expands/Expands.d.ts +11 -12
- package/dist/expands/Expands.view.d.ts +1 -1
- package/dist/expands/expand/expand.d.ts +10 -11
- package/dist/expands/expand/expand.interface.d.ts +9 -9
- package/dist/filAriane/FilAriane.d.ts +8 -9
- package/dist/filAriane/FilAriane.view.d.ts +1 -1
- package/dist/filAriane/filAriane.interface.d.ts +6 -6
- package/dist/form/Form.d.ts +35 -36
- package/dist/form/Form.view.d.ts +1 -1
- package/dist/form/form.enum.d.ts +16 -15
- package/dist/form/form.interface.d.ts +53 -54
- package/dist/form/input/Input.d.ts +27 -25
- package/dist/form/inputNumber/InputNumber.d.ts +21 -22
- package/dist/form/inputNumber/InputNumber.view.d.ts +1 -1
- package/dist/form/inputPrice/InputPrice.d.ts +14 -15
- package/dist/form/inputPrice/InputPrice.view.d.ts +1 -1
- package/dist/form/textArea/TextArea.d.ts +14 -15
- package/dist/form/textArea/TextArea.view.d.ts +1 -1
- package/dist/geocoding/GeocodingService.d.ts +11 -12
- package/dist/geocoding/geocoding.interface.d.ts +20 -20
- package/dist/grid/Grid.d.ts +9 -10
- package/dist/grid/Grid.view.d.ts +1 -1
- package/dist/grid/col/Col.d.ts +5 -6
- package/dist/grid/col/colStyled/ColStyled.d.ts +10 -11
- package/dist/grid/container/Container.d.ts +5 -6
- package/dist/grid/grid.interface.d.ts +23 -23
- package/dist/grid/row/Row.d.ts +13 -14
- package/dist/header/Header.d.ts +1 -2
- package/dist/header/Header.view.d.ts +1 -1
- package/dist/header/header.interface.d.ts +12 -12
- package/dist/home/Home.d.ts +1 -1
- package/dist/icon/Icon.d.ts +1 -2
- package/dist/icon/Icons.view.d.ts +1 -1
- package/dist/icon/icon.interface.d.ts +5 -5
- package/dist/icon/iconSize.enum.d.ts +7 -7
- package/dist/index.d.ts +56 -54
- package/dist/index.html +18 -18
- package/dist/index.js +4001 -3510
- package/dist/loader/Loader.d.ts +7 -8
- package/dist/loader/Loader.view.d.ts +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/manifest.json +25 -25
- package/dist/menus/Menus.d.ts +5 -6
- package/dist/menus/Menus.view.d.ts +1 -1
- package/dist/menus/menu/Menu.d.ts +7 -8
- package/dist/menus/menu/menu.interface.d.ts +10 -10
- package/dist/message/Message.d.ts +6 -7
- package/dist/message/Message.view.d.ts +1 -1
- package/dist/modal/Modal.d.ts +13 -14
- package/dist/modal/Modal.view.d.ts +1 -1
- package/dist/notFound/NotFound.d.ts +1 -1
- package/dist/overlayPanel/OverlayPanel.d.ts +22 -23
- package/dist/overlayPanel/OverlayPanel.view.d.ts +1 -1
- package/dist/overlayPanel/overlay.context.d.ts +9 -10
- package/dist/overlayPanel/overlayPanelStyled/OverlayPanelStyled.d.ts +9 -9
- package/dist/pdfViewer/PdfViewer.d.ts +12 -12
- package/dist/pdfViewer/PdfViewer.view.d.ts +1 -1
- package/dist/quantity/Quantity.d.ts +10 -11
- package/dist/robots.txt +3 -3
- package/dist/search/Search.d.ts +21 -22
- package/dist/search/Search.view.d.ts +1 -1
- package/dist/select/Select.d.ts +23 -24
- package/dist/select/Select.view.d.ts +1 -1
- package/dist/select/selectOption.interface.d.ts +5 -5
- package/dist/sidebar/Sidebar.d.ts +12 -13
- package/dist/sidebar/Sidebar.view.d.ts +1 -1
- package/dist/sidebarData/SidebarData.d.ts +6 -7
- package/dist/sidebarData/SidebarData.view.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tabs/Tabs.d.ts +17 -17
- package/dist/tabs/Tabs.view.d.ts +1 -1
- package/dist/toaster/Toaster.d.ts +1 -2
- package/dist/toaster/Toaster.view.d.ts +1 -1
- package/dist/toaster/store/useToasterStore.d.ts +24 -24
- package/docs.plugin.ts +223 -0
- package/index.html +20 -18
- package/package.json +64 -56
- package/public/index.html +18 -18
- package/public/manifest.json +25 -25
- package/public/robots.txt +3 -3
- package/src/App.css +178 -11
- package/src/App.menu.tsx +277 -257
- package/src/App.routes.tsx +21 -16
- package/src/App.tsx +31 -30
- package/src/_core/hooks/HistoryProvider.tsx +25 -25
- package/src/_core/hooks/ImageChecker.tsx +26 -26
- package/src/_core/hooks/imageExist.tsx +9 -9
- package/src/_core/hooks/isEAN13.tsx +16 -16
- package/src/_core/hooks/objectToQueryParams.tsx +32 -32
- package/src/_core/hooks/useCurrency.tsx +18 -18
- package/src/_core/hooks/useDateutils.ts +64 -64
- package/src/_core/hooks/useIsMobile.ts +18 -18
- package/src/_core/hooks/useToken.tsx +19 -19
- package/src/_core/hooks/useValidate.tsx +18 -18
- package/src/_core/hooks/widgetSupport.tsx +39 -39
- package/src/_core/type/generiqueType.tsx +4 -0
- package/src/action/Action.view.tsx +21 -21
- package/src/action/ButtonAction.tsx +32 -32
- package/src/action/action.css +20 -20
- package/src/addressSearch/AddressSearch.tsx +246 -246
- package/src/addressSearch/AddressSearch.view.tsx +52 -52
- package/src/addressSearch/addressSearch.css +132 -132
- package/src/badge/Badge.tsx +41 -34
- package/src/badge/Badge.view.tsx +15 -15
- package/src/badge/badge.css +63 -55
- package/src/button/Button.tsx +48 -48
- package/src/button/Button.view.tsx +85 -85
- package/src/button/button.css +53 -53
- package/src/button/button.interface.tsx +22 -22
- package/src/button/buttonActions/ButtonActions.tsx +104 -104
- package/src/button/buttonFile/ButtonFile.tsx +59 -59
- package/src/button/buttonFile/ButtonFile.view.tsx +70 -70
- package/src/button/buttonFilters/ButtonFilters.tsx +102 -102
- package/src/button/buttonFilters/buttonFilters.css +22 -22
- package/src/card/Card.tsx +151 -151
- package/src/card/Card.view.tsx +73 -73
- package/src/card/card.css +144 -144
- package/src/card/card.interface.tsx +9 -9
- package/src/card/cardAction/CardAction.tsx +135 -135
- package/src/card/cardAction/cardAction.css +10 -10
- package/src/card/cardAction.interface.tsx +10 -10
- package/src/card/hook/useCardInteractions.tsx +30 -30
- package/src/carousel/Carousel.css +44 -44
- package/src/carousel/Carousel.tsx +115 -115
- package/src/carousel/Carousel.view.tsx +13 -13
- package/src/damier/Damier.tsx +64 -64
- package/src/damier/Damier.view.tsx +31 -31
- package/src/damier/damier.css +50 -50
- package/src/damier/damierCell/DamierCell.tsx +18 -18
- package/src/damier/damierCell/damierCell.interface.tsx +5 -5
- package/src/dataTable/DataTable.tsx +840 -746
- package/src/dataTable/DataTable.view.tsx +105 -71
- package/src/dataTable/dataTable.css +233 -208
- package/src/dataTable/dataTable.interface.ts +66 -45
- package/src/dataTable/dataTable.utils.ts +45 -0
- package/src/dataTable/dataTableActions/DataTableAction.tsx +82 -65
- package/src/dataTable/dataTableColumn/DataTableColumn.tsx +48 -27
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/DataTableColumnFilter.tsx +36 -0
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilter.css +0 -0
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterDate/DataTableColumnFilterDate.tsx +39 -0
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterDateRange/dataTableColumnFilterDateRange.tsx +80 -0
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterEnum/DataTableColumnFilterEnum.tsx +89 -0
- package/src/dataTable/dataTableColumn/dataTableColumnFilter/dataTableColumnFilterString/DataTableColumnFilterString.tsx +37 -0
- package/src/dataTable/dataTableColumn/dataTableColumnSort/DataTableColumnSort.tsx +42 -0
- package/src/dataTable/dataTableFilters/DataTableFilters.tsx +91 -0
- package/src/dataTable/dataTableFilters/dataTableFilters.css +16 -0
- package/src/dataTable/dataTableLoading/DataTableLoading.tsx +23 -21
- package/src/dataTable/dataTableRow/DataTableRow.tsx +155 -208
- package/src/dataTable/useDataTableState.tsx +89 -0
- package/src/datePicker/DatePicker.tsx +110 -110
- package/src/datePicker/DatePicker.view.tsx +9 -9
- package/src/datePicker/datePicker.css +77 -77
- package/src/docs/ComponentDocs.tsx +156 -0
- package/src/docs/catalog.ts +40 -0
- package/src/docs/documentation.types.ts +20 -0
- package/src/docs/virtual.d.ts +7 -0
- package/src/expands/Expands.tsx +46 -46
- package/src/expands/Expands.view.tsx +90 -90
- package/src/expands/expand/expand.interface.tsx +8 -8
- package/src/expands/expand/expand.tsx +191 -191
- package/src/expands/expands.css +101 -101
- package/src/filAriane/FilAriane.tsx +57 -57
- package/src/filAriane/FilAriane.view.tsx +28 -28
- package/src/filAriane/filAriane.css +23 -23
- package/src/filAriane/filAriane.interface.tsx +6 -6
- package/src/form/Form.tsx +477 -477
- package/src/form/Form.view.tsx +67 -67
- package/src/form/form.css +135 -135
- package/src/form/form.enum.ts +16 -15
- package/src/form/form.interface.tsx +67 -67
- package/src/form/input/Input.tsx +146 -106
- package/src/form/input/input.css +39 -29
- package/src/form/inputNumber/InputNumber.tsx +132 -132
- package/src/form/inputNumber/InputNumber.view.tsx +15 -15
- package/src/form/inputPrice/InputPrice.tsx +42 -42
- package/src/form/inputPrice/InputPrice.view.tsx +15 -15
- package/src/form/textArea/TextArea.tsx +59 -59
- package/src/form/textArea/TextArea.view.tsx +34 -34
- package/src/form/textArea/textArea.css +9 -9
- package/src/geocoding/GeocodingService.ts +89 -89
- package/src/geocoding/geocoding.interface.ts +25 -25
- package/src/grid/Grid.tsx +34 -34
- package/src/grid/Grid.view.tsx +24 -24
- package/src/grid/col/Col.tsx +24 -24
- package/src/grid/col/col.css +3 -3
- package/src/grid/col/colStyled/ColStyled.tsx +59 -59
- package/src/grid/container/Container.tsx +8 -8
- package/src/grid/container/container.css +4 -4
- package/src/grid/grid.interface.tsx +27 -27
- package/src/grid/row/Row.tsx +49 -49
- package/src/grid/row/row.css +25 -25
- package/src/header/Header.tsx +64 -64
- package/src/header/Header.view.tsx +5 -5
- package/src/header/header.css +43 -43
- package/src/header/header.interface.tsx +11 -11
- package/src/home/Home.tsx +40 -3
- package/src/icon/Icon.tsx +6 -6
- package/src/icon/Icons.view.tsx +29 -29
- package/src/icon/icon.css +20 -20
- package/src/icon/icon.interface.tsx +7 -6
- package/src/icon/iconSize.enum.ts +7 -7
- package/src/index.css +547 -547
- package/src/index.ts +76 -70
- package/src/loader/Loader.tsx +37 -37
- package/src/loader/Loader.view.tsx +20 -20
- package/src/loader/loader.css +30 -30
- package/src/main.tsx +10 -10
- package/src/menus/Menus.tsx +43 -43
- package/src/menus/Menus.view.tsx +39 -39
- package/src/menus/menu/Menu.tsx +18 -18
- package/src/menus/menu/menu.interface.tsx +9 -9
- package/src/menus/menus.css +47 -47
- package/src/message/Message.tsx +30 -30
- package/src/message/Message.view.tsx +22 -22
- package/src/message/message.css +29 -29
- package/src/modal/Modal.tsx +59 -59
- package/src/modal/Modal.view.tsx +26 -26
- package/src/modal/modal.css +71 -71
- package/src/notFound/NotFound.tsx +3 -3
- package/src/overlayPanel/OverlayPanel.tsx +260 -255
- package/src/overlayPanel/OverlayPanel.view.tsx +25 -25
- package/src/overlayPanel/overlay.context.tsx +30 -30
- package/src/overlayPanel/overlayPanel.css +43 -43
- package/src/overlayPanel/overlayPanelStyled/OverlayPanelStyled.tsx +23 -23
- package/src/pdfViewer/PdfViewer.tsx +73 -73
- package/src/pdfViewer/PdfViewer.view.tsx +5 -5
- package/src/quantity/Quantity.tsx +103 -103
- package/src/quantity/quantity.css +26 -26
- package/src/search/Search.tsx +161 -161
- package/src/search/Search.view.tsx +14 -14
- package/src/search/search.css +59 -59
- package/src/select/Select.tsx +245 -245
- package/src/select/Select.view.tsx +71 -71
- package/src/select/select.css +150 -150
- package/src/select/selectOption.interface.ts +5 -5
- package/src/sidebar/Sidebar.tsx +213 -213
- package/src/sidebar/Sidebar.view.tsx +17 -17
- package/src/sidebar/sidebar.css +103 -103
- package/src/sidebarData/SidebarData.tsx +19 -19
- package/src/sidebarData/SidebarData.view.tsx +19 -19
- package/src/sidebarData/sidebarData.css +27 -27
- package/src/tabs/Tabs.tsx +101 -90
- package/src/tabs/Tabs.view.tsx +20 -20
- package/src/tabs/tabs.css +29 -29
- package/src/toaster/Toaster.tsx +61 -61
- package/src/toaster/Toaster.view.tsx +25 -25
- package/src/toaster/store/useToasterStore.tsx +54 -54
- package/src/toaster/toaster.css +105 -105
- package/tests/dataTable.test.mjs +93 -0
- package/tests/documentation.test.mjs +75 -0
- package/tsconfig.docs.json +10 -0
- package/tsconfig.json +28 -28
- package/vite.config.ts +26 -20
- package/vite.config.ts.timestamp-1733262892554-a13dfef6e8a29.mjs +24 -24
- package/vite.config.ts.timestamp-1757847121745-e5a5bf54b81b.mjs +28 -28
- package/vite.config.ts.timestamp-1759742478362-4ac5c5a7db34b.mjs +28 -28
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { Badge, BadgeInterface } from "../badge/Badge";
|
|
2
|
-
import { Icon } from "../icon/Icon";
|
|
3
|
-
import { IconSizeEnum } from "../icon/iconSize.enum";
|
|
4
|
-
import "./action.css";
|
|
5
|
-
|
|
6
|
-
export type ButtonActionProps = {
|
|
7
|
-
className?: string;
|
|
8
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
9
|
-
title?: string;
|
|
10
|
-
classIcon?: string;
|
|
11
|
-
badge?: BadgeInterface;
|
|
12
|
-
};
|
|
13
|
-
export const ButtonAction = ({
|
|
14
|
-
className,
|
|
15
|
-
onClick,
|
|
16
|
-
title,
|
|
17
|
-
classIcon,
|
|
18
|
-
badge,
|
|
19
|
-
}: ButtonActionProps) => {
|
|
20
|
-
const handleClick = (e: React.MouseEvent) => {
|
|
21
|
-
if (onClick) {
|
|
22
|
-
onClick(e);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
return (
|
|
26
|
-
<div className={`action ${className}`} onClick={handleClick}>
|
|
27
|
-
{badge && <Badge {...badge} />}
|
|
28
|
-
{classIcon && <Icon classIcon={classIcon} size={IconSizeEnum.LARGE} />}
|
|
29
|
-
<small>{title}</small>
|
|
30
|
-
</div>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
1
|
+
import { Badge, BadgeInterface } from "../badge/Badge";
|
|
2
|
+
import { Icon } from "../icon/Icon";
|
|
3
|
+
import { IconSizeEnum } from "../icon/iconSize.enum";
|
|
4
|
+
import "./action.css";
|
|
5
|
+
|
|
6
|
+
export type ButtonActionProps = {
|
|
7
|
+
className?: string;
|
|
8
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
9
|
+
title?: string;
|
|
10
|
+
classIcon?: string;
|
|
11
|
+
badge?: BadgeInterface;
|
|
12
|
+
};
|
|
13
|
+
export const ButtonAction = ({
|
|
14
|
+
className,
|
|
15
|
+
onClick,
|
|
16
|
+
title,
|
|
17
|
+
classIcon,
|
|
18
|
+
badge,
|
|
19
|
+
}: ButtonActionProps) => {
|
|
20
|
+
const handleClick = (e: React.MouseEvent) => {
|
|
21
|
+
if (onClick) {
|
|
22
|
+
onClick(e);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return (
|
|
26
|
+
<div className={`action ${className}`} onClick={handleClick}>
|
|
27
|
+
{badge && <Badge {...badge} />}
|
|
28
|
+
{classIcon && <Icon classIcon={classIcon} size={IconSizeEnum.LARGE} />}
|
|
29
|
+
<small>{title}</small>
|
|
30
|
+
</div>
|
|
31
|
+
);
|
|
32
|
+
};
|
package/src/action/action.css
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
.action {
|
|
2
|
-
background-color: var(--tertiary-color);
|
|
3
|
-
color: #fff;
|
|
4
|
-
position: relative;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
padding: 0.5rem 0.5rem;
|
|
10
|
-
min-width: 120px;
|
|
11
|
-
text-align: center;
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
border-radius: 4px;
|
|
14
|
-
height: 100%;
|
|
15
|
-
.badge {
|
|
16
|
-
position: absolute;
|
|
17
|
-
right: 10px;
|
|
18
|
-
top: -10px;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
.action {
|
|
2
|
+
background-color: var(--tertiary-color);
|
|
3
|
+
color: #fff;
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
padding: 0.5rem 0.5rem;
|
|
10
|
+
min-width: 120px;
|
|
11
|
+
text-align: center;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
height: 100%;
|
|
15
|
+
.badge {
|
|
16
|
+
position: absolute;
|
|
17
|
+
right: 10px;
|
|
18
|
+
top: -10px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,246 +1,246 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useCallback,
|
|
3
|
-
useEffect,
|
|
4
|
-
useId,
|
|
5
|
-
useRef,
|
|
6
|
-
useState,
|
|
7
|
-
} from "react";
|
|
8
|
-
import { Icon } from "../icon/Icon";
|
|
9
|
-
import {
|
|
10
|
-
GeocodedAddress,
|
|
11
|
-
GeocodingProvider,
|
|
12
|
-
} from "../geocoding/geocoding.interface";
|
|
13
|
-
import { geocodingService } from "../geocoding/GeocodingService";
|
|
14
|
-
import "./addressSearch.css";
|
|
15
|
-
|
|
16
|
-
export interface AddressSearchProps {
|
|
17
|
-
id?: string;
|
|
18
|
-
className?: string;
|
|
19
|
-
label?: string;
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
value?: string;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
minimumQueryLength?: number;
|
|
24
|
-
debounceTime?: number;
|
|
25
|
-
limit?: number;
|
|
26
|
-
provider?: GeocodingProvider;
|
|
27
|
-
allowManualEntry?: boolean;
|
|
28
|
-
manualEntryLabel?: string;
|
|
29
|
-
onChange?: (value: string) => void;
|
|
30
|
-
onManualEntry?: (addressLine: string) => void;
|
|
31
|
-
onSelect: (address: GeocodedAddress) => void;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const AddressSearch = ({
|
|
35
|
-
id,
|
|
36
|
-
className,
|
|
37
|
-
label = "Rechercher une adresse",
|
|
38
|
-
placeholder = "Numéro, rue, code postal, ville",
|
|
39
|
-
value,
|
|
40
|
-
disabled = false,
|
|
41
|
-
minimumQueryLength = 3,
|
|
42
|
-
debounceTime = 300,
|
|
43
|
-
limit = 5,
|
|
44
|
-
provider = geocodingService,
|
|
45
|
-
allowManualEntry = true,
|
|
46
|
-
manualEntryLabel = "Je ne trouve pas mon adresse",
|
|
47
|
-
onChange,
|
|
48
|
-
onManualEntry,
|
|
49
|
-
onSelect,
|
|
50
|
-
}: AddressSearchProps) => {
|
|
51
|
-
const generatedId = useId();
|
|
52
|
-
const inputId = id ?? `address-search-${generatedId}`;
|
|
53
|
-
const listboxId = `${inputId}-results`;
|
|
54
|
-
const [query, setQuery] = useState(value ?? "");
|
|
55
|
-
const [results, setResults] = useState<GeocodedAddress[]>([]);
|
|
56
|
-
const [loading, setLoading] = useState(false);
|
|
57
|
-
const [error, setError] = useState(false);
|
|
58
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
59
|
-
const [activeIndex, setActiveIndex] = useState(-1);
|
|
60
|
-
const containerRef = useRef<HTMLDivElement>(null);
|
|
61
|
-
const requestRef = useRef<AbortController>();
|
|
62
|
-
const skipNextSearchRef = useRef(false);
|
|
63
|
-
|
|
64
|
-
useEffect(() => {
|
|
65
|
-
if (value !== undefined) setQuery(value);
|
|
66
|
-
}, [value]);
|
|
67
|
-
|
|
68
|
-
useEffect(() => {
|
|
69
|
-
const handlePointerDown = (event: PointerEvent) => {
|
|
70
|
-
if (!containerRef.current?.contains(event.target as Node)) {
|
|
71
|
-
setIsOpen(false);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
document.addEventListener("pointerdown", handlePointerDown);
|
|
76
|
-
return () => document.removeEventListener("pointerdown", handlePointerDown);
|
|
77
|
-
}, []);
|
|
78
|
-
|
|
79
|
-
useEffect(() => {
|
|
80
|
-
if (skipNextSearchRef.current) {
|
|
81
|
-
skipNextSearchRef.current = false;
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
const normalizedQuery = query.trim();
|
|
86
|
-
if (normalizedQuery.length < minimumQueryLength || disabled) {
|
|
87
|
-
requestRef.current?.abort();
|
|
88
|
-
setResults([]);
|
|
89
|
-
setLoading(false);
|
|
90
|
-
setError(false);
|
|
91
|
-
setIsOpen(false);
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
const timeout = window.setTimeout(async () => {
|
|
96
|
-
requestRef.current?.abort();
|
|
97
|
-
const controller = new AbortController();
|
|
98
|
-
requestRef.current = controller;
|
|
99
|
-
setLoading(true);
|
|
100
|
-
setError(false);
|
|
101
|
-
|
|
102
|
-
try {
|
|
103
|
-
const addresses = await provider.search(normalizedQuery, {
|
|
104
|
-
limit,
|
|
105
|
-
signal: controller.signal,
|
|
106
|
-
});
|
|
107
|
-
setResults(addresses);
|
|
108
|
-
setActiveIndex(-1);
|
|
109
|
-
setIsOpen(true);
|
|
110
|
-
} catch (requestError) {
|
|
111
|
-
if ((requestError as Error).name !== "AbortError") {
|
|
112
|
-
setResults([]);
|
|
113
|
-
setError(true);
|
|
114
|
-
setIsOpen(true);
|
|
115
|
-
}
|
|
116
|
-
} finally {
|
|
117
|
-
if (!controller.signal.aborted) setLoading(false);
|
|
118
|
-
}
|
|
119
|
-
}, debounceTime);
|
|
120
|
-
|
|
121
|
-
return () => {
|
|
122
|
-
window.clearTimeout(timeout);
|
|
123
|
-
requestRef.current?.abort();
|
|
124
|
-
};
|
|
125
|
-
}, [debounceTime, disabled, limit, minimumQueryLength, provider, query]);
|
|
126
|
-
|
|
127
|
-
const selectAddress = useCallback(
|
|
128
|
-
(address: GeocodedAddress) => {
|
|
129
|
-
requestRef.current?.abort();
|
|
130
|
-
skipNextSearchRef.current = true;
|
|
131
|
-
setQuery(address.addressLine);
|
|
132
|
-
setResults([]);
|
|
133
|
-
setIsOpen(false);
|
|
134
|
-
setActiveIndex(-1);
|
|
135
|
-
onChange?.(address.addressLine);
|
|
136
|
-
onSelect(address);
|
|
137
|
-
},
|
|
138
|
-
[onChange, onSelect],
|
|
139
|
-
);
|
|
140
|
-
|
|
141
|
-
const selectManualAddress = useCallback(() => {
|
|
142
|
-
const addressLine = query.trim();
|
|
143
|
-
if (!addressLine) return;
|
|
144
|
-
|
|
145
|
-
requestRef.current?.abort();
|
|
146
|
-
skipNextSearchRef.current = true;
|
|
147
|
-
setQuery(addressLine);
|
|
148
|
-
setResults([]);
|
|
149
|
-
setIsOpen(false);
|
|
150
|
-
setActiveIndex(-1);
|
|
151
|
-
onChange?.(addressLine);
|
|
152
|
-
onManualEntry?.(addressLine);
|
|
153
|
-
}, [onChange, onManualEntry, query]);
|
|
154
|
-
|
|
155
|
-
const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {
|
|
156
|
-
if (!isOpen || results.length === 0) return;
|
|
157
|
-
|
|
158
|
-
if (event.key === "ArrowDown") {
|
|
159
|
-
event.preventDefault();
|
|
160
|
-
setActiveIndex((index) => (index + 1) % results.length);
|
|
161
|
-
} else if (event.key === "ArrowUp") {
|
|
162
|
-
event.preventDefault();
|
|
163
|
-
setActiveIndex((index) => (index <= 0 ? results.length - 1 : index - 1));
|
|
164
|
-
} else if (event.key === "Enter" && activeIndex >= 0) {
|
|
165
|
-
event.preventDefault();
|
|
166
|
-
selectAddress(results[activeIndex]);
|
|
167
|
-
} else if (event.key === "Escape") {
|
|
168
|
-
setIsOpen(false);
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
return (
|
|
173
|
-
<div ref={containerRef} className={`address-search ${className ?? ""}`}>
|
|
174
|
-
{label && <label htmlFor={inputId}>{label}</label>}
|
|
175
|
-
<div className="address-search-input">
|
|
176
|
-
<Icon classIcon="bi-geo-alt" />
|
|
177
|
-
<input
|
|
178
|
-
id={inputId}
|
|
179
|
-
type="search"
|
|
180
|
-
role="combobox"
|
|
181
|
-
aria-autocomplete="list"
|
|
182
|
-
aria-expanded={isOpen}
|
|
183
|
-
aria-controls={listboxId}
|
|
184
|
-
aria-activedescendant={
|
|
185
|
-
activeIndex >= 0 ? `${inputId}-option-${activeIndex}` : undefined
|
|
186
|
-
}
|
|
187
|
-
autoComplete="off"
|
|
188
|
-
disabled={disabled}
|
|
189
|
-
value={query}
|
|
190
|
-
placeholder={placeholder}
|
|
191
|
-
onChange={(event) => {
|
|
192
|
-
setQuery(event.target.value);
|
|
193
|
-
onChange?.(event.target.value);
|
|
194
|
-
}}
|
|
195
|
-
onFocus={() => results.length > 0 && setIsOpen(true)}
|
|
196
|
-
onKeyDown={handleKeyDown}
|
|
197
|
-
/>
|
|
198
|
-
{loading && <span className="address-search-spinner" aria-hidden />}
|
|
199
|
-
</div>
|
|
200
|
-
|
|
201
|
-
{isOpen && (
|
|
202
|
-
<div className="address-search-results">
|
|
203
|
-
<div id={listboxId} role="listbox">
|
|
204
|
-
{error ? (
|
|
205
|
-
<div className="address-search-status" role="alert">
|
|
206
|
-
La recherche d'adresse est indisponible.
|
|
207
|
-
</div>
|
|
208
|
-
) : results.length === 0 && !loading ? (
|
|
209
|
-
<div className="address-search-status">Aucune adresse trouvée.</div>
|
|
210
|
-
) : (
|
|
211
|
-
results.map((address, index) => (
|
|
212
|
-
<button
|
|
213
|
-
id={`${inputId}-option-${index}`}
|
|
214
|
-
key={`${address.id}-${index}`}
|
|
215
|
-
type="button"
|
|
216
|
-
role="option"
|
|
217
|
-
aria-selected={activeIndex === index}
|
|
218
|
-
className={activeIndex === index ? "active" : ""}
|
|
219
|
-
onMouseDown={(event) => event.preventDefault()}
|
|
220
|
-
onMouseEnter={() => setActiveIndex(index)}
|
|
221
|
-
onClick={() => selectAddress(address)}
|
|
222
|
-
>
|
|
223
|
-
<span>{address.addressLine}</span>
|
|
224
|
-
<small>
|
|
225
|
-
{address.postalCode} {address.city}
|
|
226
|
-
</small>
|
|
227
|
-
</button>
|
|
228
|
-
))
|
|
229
|
-
)}
|
|
230
|
-
</div>
|
|
231
|
-
{allowManualEntry && query.trim() && !loading && (
|
|
232
|
-
<button
|
|
233
|
-
type="button"
|
|
234
|
-
className="address-search-manual"
|
|
235
|
-
onMouseDown={(event) => event.preventDefault()}
|
|
236
|
-
onClick={selectManualAddress}
|
|
237
|
-
>
|
|
238
|
-
<Icon classIcon="bi-pencil" />
|
|
239
|
-
{manualEntryLabel}
|
|
240
|
-
</button>
|
|
241
|
-
)}
|
|
242
|
-
</div>
|
|
243
|
-
)}
|
|
244
|
-
</div>
|
|
245
|
-
);
|
|
246
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
useCallback,
|
|
3
|
+
useEffect,
|
|
4
|
+
useId,
|
|
5
|
+
useRef,
|
|
6
|
+
useState,
|
|
7
|
+
} from "react";
|
|
8
|
+
import { Icon } from "../icon/Icon";
|
|
9
|
+
import {
|
|
10
|
+
GeocodedAddress,
|
|
11
|
+
GeocodingProvider,
|
|
12
|
+
} from "../geocoding/geocoding.interface";
|
|
13
|
+
import { geocodingService } from "../geocoding/GeocodingService";
|
|
14
|
+
import "./addressSearch.css";
|
|
15
|
+
|
|
16
|
+
export interface AddressSearchProps {
|
|
17
|
+
id?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
label?: string;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
value?: string;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
minimumQueryLength?: number;
|
|
24
|
+
debounceTime?: number;
|
|
25
|
+
limit?: number;
|
|
26
|
+
provider?: GeocodingProvider;
|
|
27
|
+
allowManualEntry?: boolean;
|
|
28
|
+
manualEntryLabel?: string;
|
|
29
|
+
onChange?: (value: string) => void;
|
|
30
|
+
onManualEntry?: (addressLine: string) => void;
|
|
31
|
+
onSelect: (address: GeocodedAddress) => void;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const AddressSearch = ({
|
|
35
|
+
id,
|
|
36
|
+
className,
|
|
37
|
+
label = "Rechercher une adresse",
|
|
38
|
+
placeholder = "Numéro, rue, code postal, ville",
|
|
39
|
+
value,
|
|
40
|
+
disabled = false,
|
|
41
|
+
minimumQueryLength = 3,
|
|
42
|
+
debounceTime = 300,
|
|
43
|
+
limit = 5,
|
|
44
|
+
provider = geocodingService,
|
|
45
|
+
allowManualEntry = true,
|
|
46
|
+
manualEntryLabel = "Je ne trouve pas mon adresse",
|
|
47
|
+
onChange,
|
|
48
|
+
onManualEntry,
|
|
49
|
+
onSelect,
|
|
50
|
+
}: AddressSearchProps) => {
|
|
51
|
+
const generatedId = useId();
|
|
52
|
+
const inputId = id ?? `address-search-${generatedId}`;
|
|
53
|
+
const listboxId = `${inputId}-results`;
|
|
54
|
+
const [query, setQuery] = useState(value ?? "");
|
|
55
|
+
const [results, setResults] = useState<GeocodedAddress[]>([]);
|
|
56
|
+
const [loading, setLoading] = useState(false);
|
|
57
|
+
const [error, setError] = useState(false);
|
|
58
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
59
|
+
const [activeIndex, setActiveIndex] = useState(-1);
|
|
60
|
+
const containerRef = useRef<HTMLDivElement>(null);
|
|
61
|
+
const requestRef = useRef<AbortController>();
|
|
62
|
+
const skipNextSearchRef = useRef(false);
|
|
63
|
+
|
|
64
|
+
useEffect(() => {
|
|
65
|
+
if (value !== undefined) setQuery(value);
|
|
66
|
+
}, [value]);
|
|
67
|
+
|
|
68
|
+
useEffect(() => {
|
|
69
|
+
const handlePointerDown = (event: PointerEvent) => {
|
|
70
|
+
if (!containerRef.current?.contains(event.target as Node)) {
|
|
71
|
+
setIsOpen(false);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
document.addEventListener("pointerdown", handlePointerDown);
|
|
76
|
+
return () => document.removeEventListener("pointerdown", handlePointerDown);
|
|
77
|
+
}, []);
|
|
78
|
+
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
if (skipNextSearchRef.current) {
|
|
81
|
+
skipNextSearchRef.current = false;
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const normalizedQuery = query.trim();
|
|
86
|
+
if (normalizedQuery.length < minimumQueryLength || disabled) {
|
|
87
|
+
requestRef.current?.abort();
|
|
88
|
+
setResults([]);
|
|
89
|
+
setLoading(false);
|
|
90
|
+
setError(false);
|
|
91
|
+
setIsOpen(false);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const timeout = window.setTimeout(async () => {
|
|
96
|
+
requestRef.current?.abort();
|
|
97
|
+
const controller = new AbortController();
|
|
98
|
+
requestRef.current = controller;
|
|
99
|
+
setLoading(true);
|
|
100
|
+
setError(false);
|
|
101
|
+
|
|
102
|
+
try {
|
|
103
|
+
const addresses = await provider.search(normalizedQuery, {
|
|
104
|
+
limit,
|
|
105
|
+
signal: controller.signal,
|
|
106
|
+
});
|
|
107
|
+
setResults(addresses);
|
|
108
|
+
setActiveIndex(-1);
|
|
109
|
+
setIsOpen(true);
|
|
110
|
+
} catch (requestError) {
|
|
111
|
+
if ((requestError as Error).name !== "AbortError") {
|
|
112
|
+
setResults([]);
|
|
113
|
+
setError(true);
|
|
114
|
+
setIsOpen(true);
|
|
115
|
+
}
|
|
116
|
+
} finally {
|
|
117
|
+
if (!controller.signal.aborted) setLoading(false);
|
|
118
|
+
}
|
|
119
|
+
}, debounceTime);
|
|
120
|
+
|
|
121
|
+
return () => {
|
|
122
|
+
window.clearTimeout(timeout);
|
|
123
|
+
requestRef.current?.abort();
|
|
124
|
+
};
|
|
125
|
+
}, [debounceTime, disabled, limit, minimumQueryLength, provider, query]);
|
|
126
|
+
|
|
127
|
+
const selectAddress = useCallback(
|
|
128
|
+
(address: GeocodedAddress) => {
|
|
129
|
+
requestRef.current?.abort();
|
|
130
|
+
skipNextSearchRef.current = true;
|
|
131
|
+
setQuery(address.addressLine);
|
|
132
|
+
setResults([]);
|
|
133
|
+
setIsOpen(false);
|
|
134
|
+
setActiveIndex(-1);
|
|
135
|
+
onChange?.(address.addressLine);
|
|
136
|
+
onSelect(address);
|
|
137
|
+
},
|
|
138
|
+
[onChange, onSelect],
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
const selectManualAddress = useCallback(() => {
|
|
142
|
+
const addressLine = query.trim();
|
|
143
|
+
if (!addressLine) return;
|
|
144
|
+
|
|
145
|
+
requestRef.current?.abort();
|
|
146
|
+
skipNextSearchRef.current = true;
|
|
147
|
+
setQuery(addressLine);
|
|
148
|
+
setResults([]);
|
|
149
|
+
setIsOpen(false);
|
|
150
|
+
setActiveIndex(-1);
|
|
151
|
+
onChange?.(addressLine);
|
|
152
|
+
onManualEntry?.(addressLine);
|
|
153
|
+
}, [onChange, onManualEntry, query]);
|
|
154
|
+
|
|
155
|
+
const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {
|
|
156
|
+
if (!isOpen || results.length === 0) return;
|
|
157
|
+
|
|
158
|
+
if (event.key === "ArrowDown") {
|
|
159
|
+
event.preventDefault();
|
|
160
|
+
setActiveIndex((index) => (index + 1) % results.length);
|
|
161
|
+
} else if (event.key === "ArrowUp") {
|
|
162
|
+
event.preventDefault();
|
|
163
|
+
setActiveIndex((index) => (index <= 0 ? results.length - 1 : index - 1));
|
|
164
|
+
} else if (event.key === "Enter" && activeIndex >= 0) {
|
|
165
|
+
event.preventDefault();
|
|
166
|
+
selectAddress(results[activeIndex]);
|
|
167
|
+
} else if (event.key === "Escape") {
|
|
168
|
+
setIsOpen(false);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
return (
|
|
173
|
+
<div ref={containerRef} className={`address-search ${className ?? ""}`}>
|
|
174
|
+
{label && <label htmlFor={inputId}>{label}</label>}
|
|
175
|
+
<div className="address-search-input">
|
|
176
|
+
<Icon classIcon="bi-geo-alt" />
|
|
177
|
+
<input
|
|
178
|
+
id={inputId}
|
|
179
|
+
type="search"
|
|
180
|
+
role="combobox"
|
|
181
|
+
aria-autocomplete="list"
|
|
182
|
+
aria-expanded={isOpen}
|
|
183
|
+
aria-controls={listboxId}
|
|
184
|
+
aria-activedescendant={
|
|
185
|
+
activeIndex >= 0 ? `${inputId}-option-${activeIndex}` : undefined
|
|
186
|
+
}
|
|
187
|
+
autoComplete="off"
|
|
188
|
+
disabled={disabled}
|
|
189
|
+
value={query}
|
|
190
|
+
placeholder={placeholder}
|
|
191
|
+
onChange={(event) => {
|
|
192
|
+
setQuery(event.target.value);
|
|
193
|
+
onChange?.(event.target.value);
|
|
194
|
+
}}
|
|
195
|
+
onFocus={() => results.length > 0 && setIsOpen(true)}
|
|
196
|
+
onKeyDown={handleKeyDown}
|
|
197
|
+
/>
|
|
198
|
+
{loading && <span className="address-search-spinner" aria-hidden />}
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
{isOpen && (
|
|
202
|
+
<div className="address-search-results">
|
|
203
|
+
<div id={listboxId} role="listbox">
|
|
204
|
+
{error ? (
|
|
205
|
+
<div className="address-search-status" role="alert">
|
|
206
|
+
La recherche d'adresse est indisponible.
|
|
207
|
+
</div>
|
|
208
|
+
) : results.length === 0 && !loading ? (
|
|
209
|
+
<div className="address-search-status">Aucune adresse trouvée.</div>
|
|
210
|
+
) : (
|
|
211
|
+
results.map((address, index) => (
|
|
212
|
+
<button
|
|
213
|
+
id={`${inputId}-option-${index}`}
|
|
214
|
+
key={`${address.id}-${index}`}
|
|
215
|
+
type="button"
|
|
216
|
+
role="option"
|
|
217
|
+
aria-selected={activeIndex === index}
|
|
218
|
+
className={activeIndex === index ? "active" : ""}
|
|
219
|
+
onMouseDown={(event) => event.preventDefault()}
|
|
220
|
+
onMouseEnter={() => setActiveIndex(index)}
|
|
221
|
+
onClick={() => selectAddress(address)}
|
|
222
|
+
>
|
|
223
|
+
<span>{address.addressLine}</span>
|
|
224
|
+
<small>
|
|
225
|
+
{address.postalCode} {address.city}
|
|
226
|
+
</small>
|
|
227
|
+
</button>
|
|
228
|
+
))
|
|
229
|
+
)}
|
|
230
|
+
</div>
|
|
231
|
+
{allowManualEntry && query.trim() && !loading && (
|
|
232
|
+
<button
|
|
233
|
+
type="button"
|
|
234
|
+
className="address-search-manual"
|
|
235
|
+
onMouseDown={(event) => event.preventDefault()}
|
|
236
|
+
onClick={selectManualAddress}
|
|
237
|
+
>
|
|
238
|
+
<Icon classIcon="bi-pencil" />
|
|
239
|
+
{manualEntryLabel}
|
|
240
|
+
</button>
|
|
241
|
+
)}
|
|
242
|
+
</div>
|
|
243
|
+
)}
|
|
244
|
+
</div>
|
|
245
|
+
);
|
|
246
|
+
};
|