@hellobetterdigitalnz/betterui 0.0.0 → 0.0.1
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/README.md +23 -30
- package/package.json +48 -45
- package/src/App.tsx +30 -30
- package/src/Components/DataDisplay/Accordion/Accordion.stories.tsx +57 -57
- package/src/Components/DataDisplay/Accordion/Accordion.tsx +14 -14
- package/src/Components/DataDisplay/Accordion/AccordionContext.tsx +11 -11
- package/src/Components/DataDisplay/Accordion/AccordionContextInterface.tsx +8 -8
- package/src/Components/DataDisplay/Accordion/AccordionItem.tsx +62 -62
- package/src/Components/DataDisplay/Accordion/AccordionItemProps.tsx +12 -12
- package/src/Components/DataDisplay/Accordion/AccordionProps.tsx +8 -8
- package/src/Components/DataDisplay/Accordion/AccordionProvider.tsx +65 -65
- package/src/Components/DataDisplay/Accordion/AccordionProviderInterface.tsx +8 -8
- package/src/Components/DataDisplay/Accordion/accordion.module.scss +56 -56
- package/src/Components/DataDisplay/Badge/Badge.stories.tsx +44 -44
- package/src/Components/DataDisplay/Badge/Badge.tsx +32 -32
- package/src/Components/DataDisplay/Badge/BadgeProps.tsx +6 -6
- package/src/Components/DataDisplay/Badge/badge.module.scss +42 -42
- package/src/Components/DataDisplay/Cards/BannerCard/BannerCard.stories.tsx +26 -26
- package/src/Components/DataDisplay/Cards/BannerCard/BannerCard.tsx +47 -47
- package/src/Components/DataDisplay/Cards/BannerCard/BannerCardInterface.tsx +15 -15
- package/src/Components/DataDisplay/Cards/BannerCard/banner-card.scss +54 -54
- package/src/Components/DataDisplay/Cards/PathwayCard/PathwayCard.stories.tsx +31 -31
- package/src/Components/DataDisplay/Cards/PathwayCard/PathwayCard.tsx +53 -53
- package/src/Components/DataDisplay/Cards/PathwayCard/PathwayCardInterface.tsx +17 -17
- package/src/Components/DataDisplay/Cards/PathwayCard/pathway-card-stories.scss +3 -3
- package/src/Components/DataDisplay/Cards/PathwayCard/pathway-card.scss +62 -62
- package/src/Components/DataDisplay/Media/Media.stories.tsx +30 -0
- package/src/Components/DataDisplay/Media/Media.tsx +28 -7
- package/src/Components/DataDisplay/Media/media.module.scss +8 -0
- package/src/Components/DataDisplay/Modal/Modal.stories.tsx +27 -0
- package/src/Components/DataDisplay/Modal/Modal.tsx +16 -5
- package/src/Components/DataDisplay/Modal/ModalActions.tsx +5 -5
- package/src/Components/DataDisplay/Modal/ModalActionsLeft.tsx +5 -5
- package/src/Components/DataDisplay/Modal/ModalActionsRight.tsx +5 -5
- package/src/Components/DataDisplay/Modal/ModalBody.tsx +15 -5
- package/src/Components/DataDisplay/Modal/ModalBodyProps.tsx +7 -0
- package/src/Components/DataDisplay/Modal/ModalCurtain.tsx +5 -5
- package/src/Components/DataDisplay/Modal/ModalHeader.tsx +32 -5
- package/src/Components/DataDisplay/Modal/ModalHeaderProps.tsx +8 -0
- package/src/Components/DataDisplay/Modal/ModalProps.tsx +8 -0
- package/src/Components/DataDisplay/Modal/modal.module.scss +58 -0
- package/src/Components/DataDisplay/NotificationsBell/NotificationBell.stories.tsx +27 -27
- package/src/Components/DataDisplay/NotificationsBell/NotificationsBell.tsx +51 -51
- package/src/Components/DataDisplay/NotificationsBell/notificationBell.module.scss +47 -47
- package/src/Components/DataDisplay/NotificationsPanel/Notification.stories.tsx +128 -128
- package/src/Components/DataDisplay/NotificationsPanel/Notification.tsx +59 -59
- package/src/Components/DataDisplay/NotificationsPanel/NotificationProps.tsx +11 -11
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsGroup.tsx +17 -17
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsGroupProps.tsx +8 -8
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsGroups.tsx +42 -42
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsGroupsProps.tsx +7 -7
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsHeader.tsx +27 -27
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsHeaderProps.tsx +7 -9
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsNone.tsx +11 -11
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsPanel.tsx +8 -8
- package/src/Components/DataDisplay/NotificationsPanel/NotificationsPanelProps.tsx +6 -6
- package/src/Components/DataDisplay/NotificationsPanel/notificationPanel.module.scss +196 -196
- package/src/Components/DataDisplay/Tab/Tab.stories.tsx +72 -72
- package/src/Components/DataDisplay/Tab/Tab.tsx +20 -20
- package/src/Components/DataDisplay/Tab/TabBody.tsx +6 -6
- package/src/Components/DataDisplay/Tab/TabBodyContent.tsx +15 -15
- package/src/Components/DataDisplay/Tab/TabBodyContentProps.tsx +9 -9
- package/src/Components/DataDisplay/Tab/TabBodyProps.tsx +8 -8
- package/src/Components/DataDisplay/Tab/TabContext.tsx +9 -9
- package/src/Components/DataDisplay/Tab/TabContextProps.tsx +6 -6
- package/src/Components/DataDisplay/Tab/TabNav.tsx +6 -6
- package/src/Components/DataDisplay/Tab/TabNavItem.tsx +49 -49
- package/src/Components/DataDisplay/Tab/TabNavItemProps.tsx +9 -9
- package/src/Components/DataDisplay/Tab/TabNavProps.tsx +8 -8
- package/src/Components/DataDisplay/Tab/TabProps.tsx +8 -8
- package/src/Components/DataDisplay/Tab/tab.module.scss +35 -35
- package/src/Components/DataDisplay/Tab/tab.stories.scss +3 -3
- package/src/Components/DataDisplay/Table/Table.stories.tsx +64 -64
- package/src/Components/DataDisplay/Table/Table.tsx +10 -10
- package/src/Components/DataDisplay/Table/TableBody.tsx +13 -13
- package/src/Components/DataDisplay/Table/TableBodyProps.tsx +8 -8
- package/src/Components/DataDisplay/Table/TableCell.tsx +30 -30
- package/src/Components/DataDisplay/Table/TableCellAction.tsx +27 -27
- package/src/Components/DataDisplay/Table/TableCellActionProps.tsx +11 -11
- package/src/Components/DataDisplay/Table/TableCellProps.tsx +11 -11
- package/src/Components/DataDisplay/Table/TableCellWithDesc.tsx +21 -21
- package/src/Components/DataDisplay/Table/TableCellWithDescProps.tsx +9 -9
- package/src/Components/DataDisplay/Table/TableCellWithImage.tsx +39 -39
- package/src/Components/DataDisplay/Table/TableCellWithImageProps.tsx +10 -10
- package/src/Components/DataDisplay/Table/TableFooter.tsx +5 -5
- package/src/Components/DataDisplay/Table/TableHead.tsx +11 -11
- package/src/Components/DataDisplay/Table/TableHeadProps.tsx +8 -8
- package/src/Components/DataDisplay/Table/TableHeaderCell.tsx +17 -17
- package/src/Components/DataDisplay/Table/TableHeaderCellProps.tsx +10 -10
- package/src/Components/DataDisplay/Table/TableProps.tsx +8 -8
- package/src/Components/DataDisplay/Table/TableRow.tsx +9 -9
- package/src/Components/DataDisplay/Table/TableRowProps.tsx +8 -8
- package/src/Components/DataDisplay/Table/table.module.scss +103 -103
- package/src/Components/Form/Button/Button.stories.tsx +63 -66
- package/src/Components/Form/Button/Button.tsx +64 -64
- package/src/Components/Form/Button/ButtonProps.tsx +18 -18
- package/src/Components/Form/Button/button.module.scss +142 -142
- package/src/Components/Form/Checkbox/Checkbox.stories.tsx +49 -49
- package/src/Components/Form/Checkbox/Checkbox.tsx +85 -85
- package/src/Components/Form/Checkbox/CheckboxProps.tsx +22 -22
- package/src/Components/Form/Checkbox/checkbox.module.scss +63 -63
- package/src/Components/Form/CheckboxSelect/CheckboxSelect.tsx +5 -5
- package/src/Components/Form/CheckboxSelect/CheckboxSelectItem.tsx +5 -5
- package/src/Components/Form/CheckboxSet/CheckboxSet.stories.tsx +93 -93
- package/src/Components/Form/CheckboxSet/CheckboxSet.tsx +14 -14
- package/src/Components/Form/CheckboxSet/CheckboxSetItem.tsx +88 -88
- package/src/Components/Form/CheckboxSet/CheckboxSetProps.tsx +9 -9
- package/src/Components/Form/CheckboxSet/checkboxSet.module.scss +13 -13
- package/src/Components/Form/CurrencyField/CurrenctField.stories.tsx +22 -22
- package/src/Components/Form/CurrencyField/CurrencyField.tsx +59 -59
- package/src/Components/Form/CurrencyField/CurrencyFieldProps.tsx +8 -8
- package/src/Components/Form/DateField/DateField.stories.tsx +22 -22
- package/src/Components/Form/DateField/DateField.tsx +58 -58
- package/src/Components/Form/DropdownBadge/DropdownBadge.stories.tsx +49 -49
- package/src/Components/Form/DropdownBadge/DropdownBadge.tsx +160 -160
- package/src/Components/Form/DropdownBadge/DropdownBadgeItem.tsx +40 -40
- package/src/Components/Form/DropdownBadge/DropdownBadgeItemProps.tsx +10 -10
- package/src/Components/Form/DropdownBadge/DropdownBadgeProps.tsx +31 -31
- package/src/Components/Form/DropdownBadge/DropdownBadgeSelector.tsx +11 -11
- package/src/Components/Form/DropdownBadge/DropdownBadgeSelectorProps.tsx +7 -7
- package/src/Components/Form/DropdownBadge/dropdownBadge.module.scss +105 -105
- package/src/Components/Form/DropdownField/DropdownField.stories.tsx +50 -50
- package/src/Components/Form/DropdownField/DropdownField.tsx +118 -118
- package/src/Components/Form/DropdownField/DropdownFieldItem.tsx +26 -26
- package/src/Components/Form/DropdownField/DropdownFieldItemProps.tsx +9 -9
- package/src/Components/Form/DropdownField/DropdownFieldProps.tsx +33 -33
- package/src/Components/Form/DropdownField/DropdownFieldSelector.tsx +15 -15
- package/src/Components/Form/DropdownField/DropdownFieldSelectorProps.tsx +7 -7
- package/src/Components/Form/DropdownField/dropdown.module.scss +79 -79
- package/src/Components/Form/EmailField/EmailField.stories.ts +23 -23
- package/src/Components/Form/EmailField/EmailField.tsx +51 -51
- package/src/Components/Form/ErrorMessage/ErrorMessage.tsx +5 -5
- package/src/Components/Form/FormFieldHolder/FormFieldHolder.tsx +5 -5
- package/src/Components/Form/IconButton/IconButton.stories.tsx +45 -45
- package/src/Components/Form/IconButton/IconButton.tsx +58 -58
- package/src/Components/Form/IconButton/IconButtonProps.tsx +15 -15
- package/src/Components/Form/IconButton/iconButton.module.scss +111 -111
- package/src/Components/Form/InputProps.tsx +25 -25
- package/src/Components/Form/MultiSelectField/MultiSelectField.tsx +5 -5
- package/src/Components/Form/MultiSelectField/MultiSelectFieldItem.tsx +5 -5
- package/src/Components/Form/MultiSelectField/MultiSelectFieldTag.tsx +5 -5
- package/src/Components/Form/PasswordField/PasswordField.stories.tsx +22 -22
- package/src/Components/Form/PasswordField/PasswordField.tsx +70 -70
- package/src/Components/Form/RadioButtons/RadioButton.tsx +70 -70
- package/src/Components/Form/RadioButtons/RadioButtonProps.tsx +22 -22
- package/src/Components/Form/RadioButtons/RadioButtons.stories.tsx +64 -64
- package/src/Components/Form/RadioButtons/RadioButtons.tsx +18 -18
- package/src/Components/Form/RadioButtons/RadioButtonsProps.tsx +10 -10
- package/src/Components/Form/RadioButtons/radioButton.stories.scss +3 -3
- package/src/Components/Form/RadioButtons/radiobutton.module.scss +63 -63
- package/src/Components/Form/TextField/TextField.stories.ts +22 -23
- package/src/Components/Form/TextField/TextField.tsx +56 -52
- package/src/Components/Form/TextField/TextFieldProps.tsx +8 -0
- package/src/Components/Form/Textarea/Textarea.stories.ts +31 -31
- package/src/Components/Form/Textarea/Textarea.tsx +71 -71
- package/src/Components/Form/Textarea/TextareaProps.tsx +27 -27
- package/src/Components/Form/Textarea/textarea.module.scss +49 -49
- package/src/Components/Form/TimeField/TimeField.stories.tsx +22 -22
- package/src/Components/Form/TimeField/TimeField.tsx +58 -58
- package/src/Components/Form/ToggleSwitch/ToggleSwitch.stories.tsx +49 -49
- package/src/Components/Form/ToggleSwitch/ToggleSwitch.tsx +87 -87
- package/src/Components/Form/ToggleSwitch/ToggleSwitchProps.tsx +22 -22
- package/src/Components/Form/ToggleSwitch/toggleSwitch.module.scss +82 -82
- package/src/Components/Form/inputs.module.scss +129 -121
- package/src/Components/Icons/Arrows/CaretDown/CaretDown.tsx +49 -49
- package/src/Components/Icons/Arrows/CaretLeft/CaretLeft.tsx +102 -0
- package/src/Components/Icons/Arrows/CaretRight/CaretRight.tsx +102 -0
- package/src/Components/Icons/Arrows/CaretUp/CaretUp.tsx +49 -49
- package/src/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.tsx +105 -105
- package/src/Components/Icons/Communication/AddressBook/AddressBook.stories.ts +28 -28
- package/src/Components/Icons/Communication/AddressBook/AddressBook.tsx +50 -50
- package/src/Components/Icons/Communication/Asterick/Asterisk.stories.ts +28 -28
- package/src/Components/Icons/Communication/Asterick/Asterisk.tsx +50 -50
- package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.ts +28 -28
- package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.tsx +49 -49
- package/src/Components/Icons/Communication/At/At.stories.ts +28 -28
- package/src/Components/Icons/Communication/At/At.tsx +49 -49
- package/src/Components/Icons/Communication/Broadcast/Broadcast.stories.ts +27 -27
- package/src/Components/Icons/Communication/Broadcast/Broadcast.tsx +49 -49
- package/src/Components/Icons/Communication/Chat/Chat.stories.ts +28 -28
- package/src/Components/Icons/Communication/Chat/Chat.tsx +49 -49
- package/src/Components/Icons/Design/Eye/Eye.tsx +105 -105
- package/src/Components/Icons/Design/EyeSlash/EyeSlash.tsx +105 -105
- package/src/Components/Icons/IconProps.tsx +5 -5
- package/src/Components/Icons/SystemAndDevice/Bell/Bell.tsx +49 -49
- package/src/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.tsx +105 -0
- package/src/Components/Icons/Time/CalendarBank/CalendarBank.tsx +105 -105
- package/src/Components/Icons/Time/Clock/Clock.tsx +105 -105
- package/src/Components/Layout/CalloutPopup/CalloutPopup.tsx +5 -5
- package/src/Components/Layout/Header/Header.tsx +5 -5
- package/src/Components/Layout/Header/HeaderLeft.tsx +5 -5
- package/src/Components/Layout/Header/HeaderRight.tsx +5 -5
- package/src/Components/Layout/Pagination/Pagination.tsx +5 -5
- package/src/Components/Layout/Pagination/PaginationFirst.tsx +5 -5
- package/src/Components/Layout/Pagination/PaginationLast.tsx +5 -5
- package/src/Components/Layout/Pagination/PaginationNext.tsx +5 -5
- package/src/Components/Layout/Pagination/PaginationNumber.tsx +5 -5
- package/src/Components/Layout/Pagination/PaginationPrevious.tsx +5 -5
- package/src/Components/Layout/ProfileAvatar/ProfileAvatar.stories.tsx +22 -0
- package/src/Components/Layout/ProfileAvatar/ProfileAvatar.tsx +31 -5
- package/src/Components/Layout/ProfileAvatar/ProfileAvatarProps.tsx +10 -4
- package/src/Components/Layout/ProfileAvatar/profileAvatar.module.scss +35 -0
- package/src/Components/Layout/ProfileDropdown/ProfileDropdown.stories.tsx +67 -0
- package/src/Components/Layout/ProfileDropdown/ProfileDropdown.tsx +12 -5
- package/src/Components/Layout/ProfileDropdown/ProfileDropdownProps.tsx +8 -0
- package/src/Components/Layout/ProfileDropdown/ProfileHeader.tsx +24 -5
- package/src/Components/Layout/ProfileDropdown/ProfileHeaderProps.tsx +8 -0
- package/src/Components/Layout/ProfileDropdown/ProfileLink.tsx +10 -5
- package/src/Components/Layout/ProfileDropdown/ProfileLinkProps.tsx +7 -0
- package/src/Components/Layout/ProfileDropdown/ProfileLinks.tsx +14 -5
- package/src/Components/Layout/ProfileDropdown/ProfileLinksProps.tsx +7 -0
- package/src/Components/Layout/ProfileDropdown/ProfileNavigationItem.tsx +29 -5
- package/src/Components/Layout/ProfileDropdown/ProfileNavigationItemProps.tsx +10 -0
- package/src/Components/Layout/ProfileDropdown/ProfileSwitchPanel.tsx +79 -5
- package/src/Components/Layout/ProfileDropdown/ProfileSwitchPanelProps.tsx +10 -0
- package/src/Components/Layout/ProfileDropdown/ProfileSwitchUser.tsx +22 -5
- package/src/Components/Layout/ProfileDropdown/ProfileSwitchUserProps.tsx +7 -0
- package/src/Components/Layout/ProfileDropdown/profileDropdown.module.scss +207 -0
- package/src/Components/Layout/Sidebar/Sidebar.tsx +5 -5
- package/src/Components/Layout/Sidebar/SidebarChevron.tsx +5 -5
- package/src/Components/Layout/Sidebar/SidebarNavigation.tsx +5 -5
- package/src/Components/Layout/Sidebar/SidebarNavigationItem.tsx +5 -5
- package/src/Components/Layout/Sidebar/SidebarSubNavigation.tsx +5 -5
- package/src/Notification/Notification.tsx +83 -83
- package/src/Notification/NotificationList.tsx +47 -22
- package/src/global.scss +224 -231
- package/src/main.tsx +10 -9
- package/src/variables.scss +2 -2
- package/.editorconfig +0 -17
- package/.eslintrc.cjs +0 -14
- package/.storybook/main.ts +0 -23
- package/.storybook/preview.ts +0 -17
- package/index.html +0 -13
- package/public/image/table-image.png +0 -0
- package/public/vite.svg +0 -1
- package/src/Components/DataDisplay/Media/media.scss +0 -0
- package/tokens/color/color.mdx +0 -82
- package/tokens/shadow/shadow-panel.scss +0 -12
- package/tokens/shadow/shadow.mdx +0 -34
- package/tokens/typography/typography.mdx +0 -31
- package/tsconfig.json +0 -25
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -7
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import {useState} from "react";
|
|
2
|
-
import AccordionContext from "./AccordionContext";
|
|
3
|
-
import AccordionProviderInterface from "./AccordionProviderInterface.tsx";
|
|
4
|
-
|
|
5
|
-
const AccordionProvider = (props: AccordionProviderInterface) => {
|
|
6
|
-
|
|
7
|
-
const {
|
|
8
|
-
children,
|
|
9
|
-
allowMultiple
|
|
10
|
-
} = props;
|
|
11
|
-
|
|
12
|
-
const [openedList, setOpenedList] = useState<any[]>([]);
|
|
13
|
-
|
|
14
|
-
const isOpened = (key: number|string) => {
|
|
15
|
-
return openedList.indexOf(key) >= 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const openItem = (key: number|string) => {
|
|
19
|
-
if (allowMultiple) {
|
|
20
|
-
const list = [...openedList];
|
|
21
|
-
list.push(key);
|
|
22
|
-
setOpenedList(list);
|
|
23
|
-
} else {
|
|
24
|
-
setOpenedList([key])
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const closeItem = (key: number|string) => {
|
|
29
|
-
if (allowMultiple) {
|
|
30
|
-
const list = [...openedList];
|
|
31
|
-
list.splice(list.indexOf(key), 1)
|
|
32
|
-
setOpenedList(list);
|
|
33
|
-
} else {
|
|
34
|
-
setOpenedList([]);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const openCloseItem = (key: number|string) => {
|
|
39
|
-
if (allowMultiple) {
|
|
40
|
-
if (isOpened(key)) {
|
|
41
|
-
closeItem(key);
|
|
42
|
-
} else {
|
|
43
|
-
openItem(key)
|
|
44
|
-
}
|
|
45
|
-
} else {
|
|
46
|
-
if (!isOpened(key)) {
|
|
47
|
-
openItem(key);
|
|
48
|
-
} else {
|
|
49
|
-
closeItem(key);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return <AccordionContext.Provider value={{
|
|
55
|
-
handleClick: openCloseItem,
|
|
56
|
-
isOpened: isOpened,
|
|
57
|
-
allowMultiple: allowMultiple ? allowMultiple : false,
|
|
58
|
-
openedList: openedList
|
|
59
|
-
}}>
|
|
60
|
-
{children}
|
|
61
|
-
</AccordionContext.Provider>
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export default AccordionProvider;
|
|
1
|
+
import {useState} from "react";
|
|
2
|
+
import AccordionContext from "./AccordionContext";
|
|
3
|
+
import AccordionProviderInterface from "./AccordionProviderInterface.tsx";
|
|
4
|
+
|
|
5
|
+
const AccordionProvider = (props: AccordionProviderInterface) => {
|
|
6
|
+
|
|
7
|
+
const {
|
|
8
|
+
children,
|
|
9
|
+
allowMultiple
|
|
10
|
+
} = props;
|
|
11
|
+
|
|
12
|
+
const [openedList, setOpenedList] = useState<any[]>([]);
|
|
13
|
+
|
|
14
|
+
const isOpened = (key: number|string) => {
|
|
15
|
+
return openedList.indexOf(key) >= 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const openItem = (key: number|string) => {
|
|
19
|
+
if (allowMultiple) {
|
|
20
|
+
const list = [...openedList];
|
|
21
|
+
list.push(key);
|
|
22
|
+
setOpenedList(list);
|
|
23
|
+
} else {
|
|
24
|
+
setOpenedList([key])
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const closeItem = (key: number|string) => {
|
|
29
|
+
if (allowMultiple) {
|
|
30
|
+
const list = [...openedList];
|
|
31
|
+
list.splice(list.indexOf(key), 1)
|
|
32
|
+
setOpenedList(list);
|
|
33
|
+
} else {
|
|
34
|
+
setOpenedList([]);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const openCloseItem = (key: number|string) => {
|
|
39
|
+
if (allowMultiple) {
|
|
40
|
+
if (isOpened(key)) {
|
|
41
|
+
closeItem(key);
|
|
42
|
+
} else {
|
|
43
|
+
openItem(key)
|
|
44
|
+
}
|
|
45
|
+
} else {
|
|
46
|
+
if (!isOpened(key)) {
|
|
47
|
+
openItem(key);
|
|
48
|
+
} else {
|
|
49
|
+
closeItem(key);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return <AccordionContext.Provider value={{
|
|
55
|
+
handleClick: openCloseItem,
|
|
56
|
+
isOpened: isOpened,
|
|
57
|
+
allowMultiple: allowMultiple ? allowMultiple : false,
|
|
58
|
+
openedList: openedList
|
|
59
|
+
}}>
|
|
60
|
+
{children}
|
|
61
|
+
</AccordionContext.Provider>
|
|
62
|
+
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export default AccordionProvider;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {ReactNode} from "react";
|
|
2
|
-
|
|
3
|
-
interface AccordionProviderInterface {
|
|
4
|
-
children: ReactNode,
|
|
5
|
-
allowMultiple?: boolean
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export default AccordionProviderInterface
|
|
1
|
+
import {ReactNode} from "react";
|
|
2
|
+
|
|
3
|
+
interface AccordionProviderInterface {
|
|
4
|
+
children: ReactNode,
|
|
5
|
+
allowMultiple?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default AccordionProviderInterface
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
.accordion {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
width: 100%;
|
|
5
|
-
border-bottom: 1px solid var(--color-gray-300);
|
|
6
|
-
|
|
7
|
-
.header {
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: space-between;
|
|
10
|
-
align-items: center;
|
|
11
|
-
min-height: 58px;
|
|
12
|
-
background-color: var(--color-white);
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
border-bottom: 1px solid var(--border);
|
|
15
|
-
padding: var(--spacing-1) var(--spacing-2);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.title {
|
|
19
|
-
h4 {
|
|
20
|
-
font-size: var(--font-size-h4);
|
|
21
|
-
line-height: var(--line-height-h4);
|
|
22
|
-
font-weight: var(--font-weight-h4);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.icon {
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
flex-shrink: 0;
|
|
31
|
-
padding-left: var(--spacing-1);
|
|
32
|
-
|
|
33
|
-
svg{
|
|
34
|
-
width: 24px;
|
|
35
|
-
height: 24px;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.body {
|
|
40
|
-
height: 0;
|
|
41
|
-
overflow: hidden;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.bodyOpened {
|
|
45
|
-
height: auto;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.bodyInner {
|
|
49
|
-
background: var(--color-white);
|
|
50
|
-
padding: var(--spacing-1\/2) var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
.accordion {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
border-bottom: 1px solid var(--color-gray-300);
|
|
6
|
+
|
|
7
|
+
.header {
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
align-items: center;
|
|
11
|
+
min-height: 58px;
|
|
12
|
+
background-color: var(--color-white);
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
border-bottom: 1px solid var(--border);
|
|
15
|
+
padding: var(--spacing-1) var(--spacing-2);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.title {
|
|
19
|
+
h4 {
|
|
20
|
+
font-size: var(--font-size-h4);
|
|
21
|
+
line-height: var(--line-height-h4);
|
|
22
|
+
font-weight: var(--font-weight-h4);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
.icon {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
padding-left: var(--spacing-1);
|
|
32
|
+
|
|
33
|
+
svg{
|
|
34
|
+
width: 24px;
|
|
35
|
+
height: 24px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.body {
|
|
40
|
+
height: 0;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.bodyOpened {
|
|
45
|
+
height: auto;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.bodyInner {
|
|
49
|
+
background: var(--color-white);
|
|
50
|
+
padding: var(--spacing-1\/2) var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
import Badge from './Badge';
|
|
4
|
-
|
|
5
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
6
|
-
const meta = {
|
|
7
|
-
title: 'Data Display / Badge',
|
|
8
|
-
component: Badge,
|
|
9
|
-
parameters: {
|
|
10
|
-
layout: 'centered',
|
|
11
|
-
},
|
|
12
|
-
argTypes: {
|
|
13
|
-
status: {
|
|
14
|
-
options: ["pending" , "inProgress" , "complete"],
|
|
15
|
-
control: { type: 'select' },
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
tags: ['autodocs'],
|
|
19
|
-
} satisfies Meta<typeof Badge>;
|
|
20
|
-
|
|
21
|
-
export default meta;
|
|
22
|
-
type Story = StoryObj<typeof Badge>;
|
|
23
|
-
|
|
24
|
-
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
25
|
-
export const Pending: Story = {
|
|
26
|
-
args: {
|
|
27
|
-
label: 'Pending',
|
|
28
|
-
status:'pending',
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const InProgress: Story = {
|
|
33
|
-
args: {
|
|
34
|
-
label: 'In Progress',
|
|
35
|
-
status:'inProgress',
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const Complete: Story = {
|
|
40
|
-
args: {
|
|
41
|
-
label: 'Complete',
|
|
42
|
-
status:'complete',
|
|
43
|
-
},
|
|
44
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import Badge from './Badge';
|
|
4
|
+
|
|
5
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Data Display / Badge',
|
|
8
|
+
component: Badge,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
},
|
|
12
|
+
argTypes: {
|
|
13
|
+
status: {
|
|
14
|
+
options: ["pending" , "inProgress" , "complete"],
|
|
15
|
+
control: { type: 'select' },
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
tags: ['autodocs'],
|
|
19
|
+
} satisfies Meta<typeof Badge>;
|
|
20
|
+
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof Badge>;
|
|
23
|
+
|
|
24
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
25
|
+
export const Pending: Story = {
|
|
26
|
+
args: {
|
|
27
|
+
label: 'Pending',
|
|
28
|
+
status:'pending',
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const InProgress: Story = {
|
|
33
|
+
args: {
|
|
34
|
+
label: 'In Progress',
|
|
35
|
+
status:'inProgress',
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const Complete: Story = {
|
|
40
|
+
args: {
|
|
41
|
+
label: 'Complete',
|
|
42
|
+
status:'complete',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import BadgeProps from "./BadgeProps.tsx";
|
|
2
|
-
import cx from 'classnames';
|
|
3
|
-
import styles from './badge.module.scss';
|
|
4
|
-
|
|
5
|
-
const Badge = (props : BadgeProps) => {
|
|
6
|
-
|
|
7
|
-
const {
|
|
8
|
-
status,
|
|
9
|
-
label
|
|
10
|
-
} = props;
|
|
11
|
-
|
|
12
|
-
let statusClass = styles.circlePending;
|
|
13
|
-
if (status === 'inProgress') {
|
|
14
|
-
statusClass = styles.circleInProgress;
|
|
15
|
-
} if (status === 'complete') {
|
|
16
|
-
statusClass = styles.circleComplete;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return <div className={styles.badge}>
|
|
20
|
-
<div className={styles.wrapper}>
|
|
21
|
-
{!!label && <div className={cx(
|
|
22
|
-
styles.circle,
|
|
23
|
-
statusClass
|
|
24
|
-
)}></div>}
|
|
25
|
-
<div className={styles.title}>
|
|
26
|
-
<span>{label}</span>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default Badge;
|
|
1
|
+
import BadgeProps from "./BadgeProps.tsx";
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import styles from './badge.module.scss';
|
|
4
|
+
|
|
5
|
+
const Badge = (props : BadgeProps) => {
|
|
6
|
+
|
|
7
|
+
const {
|
|
8
|
+
status,
|
|
9
|
+
label
|
|
10
|
+
} = props;
|
|
11
|
+
|
|
12
|
+
let statusClass = styles.circlePending;
|
|
13
|
+
if (status === 'inProgress') {
|
|
14
|
+
statusClass = styles.circleInProgress;
|
|
15
|
+
} if (status === 'complete') {
|
|
16
|
+
statusClass = styles.circleComplete;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return <div className={styles.badge}>
|
|
20
|
+
<div className={styles.wrapper}>
|
|
21
|
+
{!!label && <div className={cx(
|
|
22
|
+
styles.circle,
|
|
23
|
+
statusClass
|
|
24
|
+
)}></div>}
|
|
25
|
+
<div className={styles.title}>
|
|
26
|
+
<span>{label}</span>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default Badge;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface BadgeProps {
|
|
2
|
-
status?: "pending" | "inProgress" | "complete";
|
|
3
|
-
label: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export default BadgeProps
|
|
1
|
+
interface BadgeProps {
|
|
2
|
+
status?: "pending" | "inProgress" | "complete";
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export default BadgeProps
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
.badge {
|
|
2
|
-
min-height: 24px;
|
|
3
|
-
border-radius: 4px;
|
|
4
|
-
border: 1px solid var(--color-gray-200);
|
|
5
|
-
background: var(--color-lite);
|
|
6
|
-
|
|
7
|
-
.wrapper {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
padding:0 var(--spacing-1\/2) ;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.circle{
|
|
14
|
-
width: 12px;
|
|
15
|
-
height: 12px;
|
|
16
|
-
border-radius: 100%;
|
|
17
|
-
flex-shrink: 1;
|
|
18
|
-
margin-right: 6px;
|
|
19
|
-
|
|
20
|
-
&Pending{
|
|
21
|
-
background: var(--color-gray-300);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&InProgress{
|
|
25
|
-
background: var(--color-inprogress);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&Complete{
|
|
29
|
-
background: var(--color-success);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.title{
|
|
35
|
-
span{
|
|
36
|
-
color: var(--color-gray-900);
|
|
37
|
-
font-size: var(--font-size-body-sm);
|
|
38
|
-
font-weight:var(--font-weight-body-sm) ;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
}
|
|
1
|
+
.badge {
|
|
2
|
+
min-height: 24px;
|
|
3
|
+
border-radius: 4px;
|
|
4
|
+
border: 1px solid var(--color-gray-200);
|
|
5
|
+
background: var(--color-lite);
|
|
6
|
+
|
|
7
|
+
.wrapper {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
padding:0 var(--spacing-1\/2) ;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.circle{
|
|
14
|
+
width: 12px;
|
|
15
|
+
height: 12px;
|
|
16
|
+
border-radius: 100%;
|
|
17
|
+
flex-shrink: 1;
|
|
18
|
+
margin-right: 6px;
|
|
19
|
+
|
|
20
|
+
&Pending{
|
|
21
|
+
background: var(--color-gray-300);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&InProgress{
|
|
25
|
+
background: var(--color-inprogress);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&Complete{
|
|
29
|
+
background: var(--color-success);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.title{
|
|
35
|
+
span{
|
|
36
|
+
color: var(--color-gray-900);
|
|
37
|
+
font-size: var(--font-size-body-sm);
|
|
38
|
+
font-weight:var(--font-weight-body-sm) ;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
import { BannerCard } from './BannerCard.tsx';
|
|
4
|
-
|
|
5
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
6
|
-
const meta = {
|
|
7
|
-
title: 'Data Display / Card',
|
|
8
|
-
component: BannerCard,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
} satisfies Meta<typeof BannerCard>;
|
|
11
|
-
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof BannerCard>;
|
|
14
|
-
|
|
15
|
-
export const Example: Story = {
|
|
16
|
-
args: {
|
|
17
|
-
title:'Lorem ipsum',
|
|
18
|
-
description:'Sed fringilla magna facilisis auctor venenatis. Duis ut vestibulum risus. Nunc a finibus dui. Donec hendrerit tristique odio, ac porta dui maximus et. ',
|
|
19
|
-
image:'',
|
|
20
|
-
btnTitle:'Button text',
|
|
21
|
-
btnScheme:'primary',
|
|
22
|
-
btnSize:'default',
|
|
23
|
-
btnStyle:'solid',
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import { BannerCard } from './BannerCard.tsx';
|
|
4
|
+
|
|
5
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Data Display / Card',
|
|
8
|
+
component: BannerCard,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
} satisfies Meta<typeof BannerCard>;
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof BannerCard>;
|
|
14
|
+
|
|
15
|
+
export const Example: Story = {
|
|
16
|
+
args: {
|
|
17
|
+
title:'Lorem ipsum',
|
|
18
|
+
description:'Sed fringilla magna facilisis auctor venenatis. Duis ut vestibulum risus. Nunc a finibus dui. Donec hendrerit tristique odio, ac porta dui maximus et. ',
|
|
19
|
+
image:'',
|
|
20
|
+
btnTitle:'Button text',
|
|
21
|
+
btnScheme:'primary',
|
|
22
|
+
btnSize:'default',
|
|
23
|
+
btnStyle:'solid',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import BannerCardInterface from "./BannerCardInterface.tsx";
|
|
2
|
-
import './banner-card.scss'
|
|
3
|
-
import Button from "../../../Form/Button/Button";
|
|
4
|
-
|
|
5
|
-
export const BannerCard = (props: BannerCardInterface) => {
|
|
6
|
-
const {
|
|
7
|
-
title,
|
|
8
|
-
btnTitle,
|
|
9
|
-
description,
|
|
10
|
-
image,
|
|
11
|
-
btnType,
|
|
12
|
-
btnScheme,
|
|
13
|
-
btnSize,
|
|
14
|
-
btnStyle,
|
|
15
|
-
extraClass='',
|
|
16
|
-
btnOnClick
|
|
17
|
-
} = props;
|
|
18
|
-
|
|
19
|
-
const imageType = typeof image;
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<div
|
|
23
|
-
className={`banner-card ${extraClass}`}>
|
|
24
|
-
<div className={'banner-card__wrapper'}>
|
|
25
|
-
{imageType === "string" && (
|
|
26
|
-
<div
|
|
27
|
-
className={'banner-card__picture'}
|
|
28
|
-
style={{backgroundImage: image ? `url(${image})` : ""}}></div>
|
|
29
|
-
)}
|
|
30
|
-
{imageType !== "string" && <div className={'banner-card__picture'}>{image}</div>}
|
|
31
|
-
<div className={'banner-card__inner'}>
|
|
32
|
-
<div className={'banner-card__content'}>
|
|
33
|
-
{!!title && <h2 className={'banner-card__title'}>{title}</h2>}
|
|
34
|
-
{!!description && <p className={'banner-card__desc'}>{description}</p>}
|
|
35
|
-
</div>
|
|
36
|
-
<Button
|
|
37
|
-
label={btnTitle}
|
|
38
|
-
type={btnType}
|
|
39
|
-
style={btnStyle}
|
|
40
|
-
size={btnSize}
|
|
41
|
-
scheme={btnScheme}
|
|
42
|
-
onClick={btnOnClick}/>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
);
|
|
47
|
-
};
|
|
1
|
+
import BannerCardInterface from "./BannerCardInterface.tsx";
|
|
2
|
+
import './banner-card.scss'
|
|
3
|
+
import Button from "../../../Form/Button/Button";
|
|
4
|
+
|
|
5
|
+
export const BannerCard = (props: BannerCardInterface) => {
|
|
6
|
+
const {
|
|
7
|
+
title,
|
|
8
|
+
btnTitle,
|
|
9
|
+
description,
|
|
10
|
+
image,
|
|
11
|
+
btnType,
|
|
12
|
+
btnScheme,
|
|
13
|
+
btnSize,
|
|
14
|
+
btnStyle,
|
|
15
|
+
extraClass='',
|
|
16
|
+
btnOnClick
|
|
17
|
+
} = props;
|
|
18
|
+
|
|
19
|
+
const imageType = typeof image;
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<div
|
|
23
|
+
className={`banner-card ${extraClass}`}>
|
|
24
|
+
<div className={'banner-card__wrapper'}>
|
|
25
|
+
{imageType === "string" && (
|
|
26
|
+
<div
|
|
27
|
+
className={'banner-card__picture'}
|
|
28
|
+
style={{backgroundImage: image ? `url(${image})` : ""}}></div>
|
|
29
|
+
)}
|
|
30
|
+
{imageType !== "string" && <div className={'banner-card__picture'}>{image}</div>}
|
|
31
|
+
<div className={'banner-card__inner'}>
|
|
32
|
+
<div className={'banner-card__content'}>
|
|
33
|
+
{!!title && <h2 className={'banner-card__title'}>{title}</h2>}
|
|
34
|
+
{!!description && <p className={'banner-card__desc'}>{description}</p>}
|
|
35
|
+
</div>
|
|
36
|
+
<Button
|
|
37
|
+
label={btnTitle}
|
|
38
|
+
type={btnType}
|
|
39
|
+
style={btnStyle}
|
|
40
|
+
size={btnSize}
|
|
41
|
+
scheme={btnScheme}
|
|
42
|
+
onClick={btnOnClick}/>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
47
|
+
};
|