@hellobetterdigitalnz/betterui 0.0.0 → 0.0.2
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 +66 -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.stories.tsx +30 -0
- package/src/Components/Form/FormFieldHolder/FormFieldHolder.tsx +40 -5
- package/src/Components/Form/FormFieldHolder/FormFieldHolderProps.tsx +12 -0
- package/src/Components/Form/FormFieldHolder/formHolder.module.scss +56 -0
- 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/Brand/WindowLogo/WindowLogo.tsx +105 -0
- 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/SecurityAndWarnings/WarningCircle/WarningCircle.tsx +105 -0
- 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
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
.profileDropdown {
|
|
2
|
+
background: white;
|
|
3
|
+
border-radius: 8px;
|
|
4
|
+
box-shadow: var(--drop-shadow-default);
|
|
5
|
+
min-width: 320px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.profileHeader {
|
|
9
|
+
padding: calc(var(--space-unit) * 6) calc(var(--space-unit) * 8);
|
|
10
|
+
margin-bottom: calc(var(--space-unit) * 2);
|
|
11
|
+
border-bottom: 1px solid var(--color-gray-200);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.profileHeaderWrapper,
|
|
15
|
+
.profileSwitchUserWrapper {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
|
|
19
|
+
.avatar {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
width: 40px;
|
|
25
|
+
height: 40px;
|
|
26
|
+
margin-right: calc(var(--space-unit) * 3);
|
|
27
|
+
background: var(--color-primary-600);
|
|
28
|
+
color: white;
|
|
29
|
+
border-radius: 100%;
|
|
30
|
+
|
|
31
|
+
h3 {
|
|
32
|
+
font-size: var(--font-size-large);
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
line-height: var(--line-height-body-regular);
|
|
35
|
+
text-transform: uppercase;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.content {
|
|
40
|
+
.name {
|
|
41
|
+
font-size: var(--font-size-h5);
|
|
42
|
+
font-weight: var(--font-weight-h5);
|
|
43
|
+
line-height: var(--line-height-h5);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.role {
|
|
47
|
+
font-size: var(--font-size-body-xsm);
|
|
48
|
+
font-weight: var(--font-weight-body-xsm);
|
|
49
|
+
line-height: var(--line-height-body-xsm);
|
|
50
|
+
color: var(--color-gray-600);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.content,
|
|
56
|
+
.profileSwitchUserContent {
|
|
57
|
+
.name {
|
|
58
|
+
font-size: var(--font-size-h5);
|
|
59
|
+
font-weight: var(--font-weight-h5);
|
|
60
|
+
line-height: var(--line-height-h5);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.role {
|
|
64
|
+
font-size: var(--font-size-body-xsm);
|
|
65
|
+
font-weight: var(--font-weight-body-xsm);
|
|
66
|
+
line-height: var(--line-height-body-xsm);
|
|
67
|
+
color: var(--color-gray-600);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.profileNavigationItem {
|
|
72
|
+
padding: calc(var(--space-unit) * 2) 0px;
|
|
73
|
+
border-bottom: 1px solid var(--color-gray-200);
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
transition: linear 0.3s;
|
|
76
|
+
|
|
77
|
+
&:hover {
|
|
78
|
+
background: var(--color-gray-200);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.profileNavigationItemWrapper {
|
|
83
|
+
display: flex;
|
|
84
|
+
padding: calc(var(--space-unit) * 3) calc(var(--space-unit) * 8);
|
|
85
|
+
justify-content: space-between;
|
|
86
|
+
align-items: center;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.profileNavigationItemLeft {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: flex-end;
|
|
92
|
+
|
|
93
|
+
.profileNavigationItemIcon {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
flex-shrink: 0;
|
|
97
|
+
padding-right: calc(var(--space-unit) * 3);
|
|
98
|
+
|
|
99
|
+
svg {
|
|
100
|
+
width: 24px;
|
|
101
|
+
height: 24px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.profileNavigationItemContent {
|
|
106
|
+
h5 {
|
|
107
|
+
font-size: var(--font-size-body-regular);
|
|
108
|
+
font-weight: var(--font-weight-body-regular);
|
|
109
|
+
line-height: var(--line-height-body-regular);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.profileNavigationItemRight {
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
|
|
118
|
+
svg {
|
|
119
|
+
width: 24px;
|
|
120
|
+
height: 24px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.profileLinks {
|
|
125
|
+
padding: calc(var(--space-unit) * 4) 0px;
|
|
126
|
+
|
|
127
|
+
ul {
|
|
128
|
+
list-style: none;
|
|
129
|
+
|
|
130
|
+
li {
|
|
131
|
+
padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 8);
|
|
132
|
+
font-size: var(--font-size-body-sm);
|
|
133
|
+
font-weight: var(--font-weight-body-sm);
|
|
134
|
+
line-height: var(--line-height-body-sm);
|
|
135
|
+
transition: all 0.3;
|
|
136
|
+
|
|
137
|
+
* {
|
|
138
|
+
font-size: inherit;
|
|
139
|
+
font-weight: inherit;
|
|
140
|
+
line-height: inherit;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:hover {
|
|
144
|
+
text-decoration: underline;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.profileSwitchPanel {
|
|
151
|
+
background: #ffffff;
|
|
152
|
+
border-radius: 8px;
|
|
153
|
+
border: 1px solid var(--color-gray-300);
|
|
154
|
+
min-width: 320px;
|
|
155
|
+
|
|
156
|
+
.usersHolder {
|
|
157
|
+
padding-bottom: calc(var(--space-unit) * 3);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.profileSwitchPanelHeader {
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: space-between;
|
|
165
|
+
padding: calc(var(--space-unit) * 4) calc(var(--space-unit) * 6);
|
|
166
|
+
border-bottom: 1px solid var(--color-gray-200);
|
|
167
|
+
|
|
168
|
+
.caretLeft,
|
|
169
|
+
.closeIcon {
|
|
170
|
+
display: flex;
|
|
171
|
+
align-items: center;
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
|
|
174
|
+
svg {
|
|
175
|
+
width: 20px;
|
|
176
|
+
height: 20px;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.headerTitle,
|
|
182
|
+
.initialsTile {
|
|
183
|
+
font-size: var(--font-size-h5);
|
|
184
|
+
font-weight: var(--font-weight-h5);
|
|
185
|
+
line-height: var(--line-height-h5);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.fieldWrapper {
|
|
189
|
+
padding: calc(var(--space-unit) * 4) calc(var(--space-unit) * 8);
|
|
190
|
+
border-bottom: 1px solid var(--color-gray-200);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.profileSwitchUser {
|
|
194
|
+
padding: calc(var(--space-unit) * 3) calc(var(--space-unit) * 8);
|
|
195
|
+
border-bottom: 1px solid var(--color-gray-200);
|
|
196
|
+
transition: all 0.3s;
|
|
197
|
+
|
|
198
|
+
&:hover {
|
|
199
|
+
background: var(--color-gray-200);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.profileSwitchUserWrapper {
|
|
204
|
+
.profileSwitchUserAvatar {
|
|
205
|
+
margin-right: calc(var(--space-unit) * 3);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const Sidebar = () => {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export default Sidebar;
|
|
1
|
+
const Sidebar = () => {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export default Sidebar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const SidebarChevron = () => {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export default SidebarChevron;
|
|
1
|
+
const SidebarChevron = () => {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export default SidebarChevron;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const SidebarNavigation = () => {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export default SidebarNavigation;
|
|
1
|
+
const SidebarNavigation = () => {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export default SidebarNavigation;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const SidebarNavigationItem = () => {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export default SidebarNavigationItem;
|
|
1
|
+
const SidebarNavigationItem = () => {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export default SidebarNavigationItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const SidebarSubNavigation = () => {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export default SidebarSubNavigation;
|
|
1
|
+
const SidebarSubNavigation = () => {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export default SidebarSubNavigation;
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { useState, useEffect, useRef } from "react";
|
|
2
|
-
import NotificationInterface from "./NotificationInterface.tsx";
|
|
3
|
-
import './notification.scss'
|
|
4
|
-
import Bell from "../Components/Icons/SystemAndDevice/Bell/Bell.tsx";
|
|
5
|
-
export const Notification = ({ children, extraClass = '',markAllAsReadOnClick }: NotificationInterface) => {
|
|
6
|
-
const [dropdown, setDropdown] = useState(false);
|
|
7
|
-
const notificationRef = useRef(null);
|
|
8
|
-
const [isScrollbarVisible, setIsScrollbarVisible] = useState(false);
|
|
9
|
-
|
|
10
|
-
const handleOutsideClick = (event:any) => {
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
if (notificationRef.current && !notificationRef.current.contains(event.target)) {
|
|
13
|
-
setDropdown(false);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
if (dropdown) {
|
|
19
|
-
document.addEventListener('mousedown', handleOutsideClick);
|
|
20
|
-
} else {
|
|
21
|
-
document.removeEventListener('mousedown', handleOutsideClick);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return () => {
|
|
25
|
-
document.removeEventListener('mousedown', handleOutsideClick);
|
|
26
|
-
};
|
|
27
|
-
}, [dropdown]);
|
|
28
|
-
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
const listContainer = document.getElementById('listContainer');
|
|
31
|
-
|
|
32
|
-
if (listContainer) {
|
|
33
|
-
const handleResize = () => {
|
|
34
|
-
const updatedScrollbarVisible = listContainer.scrollHeight > listContainer.clientHeight;
|
|
35
|
-
setIsScrollbarVisible(updatedScrollbarVisible);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
window.addEventListener('resize', handleResize);
|
|
39
|
-
|
|
40
|
-
handleResize();
|
|
41
|
-
|
|
42
|
-
// Cleanup the event listener on component unmount
|
|
43
|
-
return () => {
|
|
44
|
-
window.removeEventListener('resize', handleResize);
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
}, []);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<div
|
|
52
|
-
className={`notification ${extraClass}`}
|
|
53
|
-
onClick={() => setDropdown(!dropdown)}
|
|
54
|
-
ref={notificationRef}
|
|
55
|
-
>
|
|
56
|
-
<div className={`notification-icon ${dropdown ? 'noti-active': '' }`}>
|
|
57
|
-
<Bell />
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
{(children && dropdown) && (
|
|
61
|
-
<div className={`notification-dropdown`}>
|
|
62
|
-
<div className={`notification-dropdown__inner`}>
|
|
63
|
-
<div className={`notification-dropdown__header`}>
|
|
64
|
-
<div className={`notification-dropdown__header-wrapper`}>
|
|
65
|
-
<div>
|
|
66
|
-
<h5>Notifications</h5>
|
|
67
|
-
</div>
|
|
68
|
-
<div onClick={markAllAsReadOnClick} className={'mark-all-action'}>
|
|
69
|
-
<h6>Mark all as Read</h6>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
<div id={'listContainer'} className={`notification-dropdown__container-list ${isScrollbarVisible ? 'spacing' : '' }`}>
|
|
74
|
-
<ul className={`notification-dropdown__list`}>
|
|
75
|
-
{children}
|
|
76
|
-
</ul>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
)}
|
|
81
|
-
</div>
|
|
82
|
-
);
|
|
83
|
-
};
|
|
1
|
+
import { useState, useEffect, useRef } from "react";
|
|
2
|
+
import NotificationInterface from "./NotificationInterface.tsx";
|
|
3
|
+
import './notification.scss'
|
|
4
|
+
import Bell from "../Components/Icons/SystemAndDevice/Bell/Bell.tsx";
|
|
5
|
+
export const Notification = ({ children, extraClass = '',markAllAsReadOnClick }: NotificationInterface) => {
|
|
6
|
+
const [dropdown, setDropdown] = useState(false);
|
|
7
|
+
const notificationRef = useRef(null);
|
|
8
|
+
const [isScrollbarVisible, setIsScrollbarVisible] = useState(false);
|
|
9
|
+
|
|
10
|
+
const handleOutsideClick = (event:any) => {
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
if (notificationRef.current && !notificationRef.current.contains(event.target)) {
|
|
13
|
+
setDropdown(false);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
if (dropdown) {
|
|
19
|
+
document.addEventListener('mousedown', handleOutsideClick);
|
|
20
|
+
} else {
|
|
21
|
+
document.removeEventListener('mousedown', handleOutsideClick);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return () => {
|
|
25
|
+
document.removeEventListener('mousedown', handleOutsideClick);
|
|
26
|
+
};
|
|
27
|
+
}, [dropdown]);
|
|
28
|
+
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
const listContainer = document.getElementById('listContainer');
|
|
31
|
+
|
|
32
|
+
if (listContainer) {
|
|
33
|
+
const handleResize = () => {
|
|
34
|
+
const updatedScrollbarVisible = listContainer.scrollHeight > listContainer.clientHeight;
|
|
35
|
+
setIsScrollbarVisible(updatedScrollbarVisible);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
window.addEventListener('resize', handleResize);
|
|
39
|
+
|
|
40
|
+
handleResize();
|
|
41
|
+
|
|
42
|
+
// Cleanup the event listener on component unmount
|
|
43
|
+
return () => {
|
|
44
|
+
window.removeEventListener('resize', handleResize);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}, []);
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<div
|
|
52
|
+
className={`notification ${extraClass}`}
|
|
53
|
+
onClick={() => setDropdown(!dropdown)}
|
|
54
|
+
ref={notificationRef}
|
|
55
|
+
>
|
|
56
|
+
<div className={`notification-icon ${dropdown ? 'noti-active': '' }`}>
|
|
57
|
+
<Bell />
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
{(children && dropdown) && (
|
|
61
|
+
<div className={`notification-dropdown`}>
|
|
62
|
+
<div className={`notification-dropdown__inner`}>
|
|
63
|
+
<div className={`notification-dropdown__header`}>
|
|
64
|
+
<div className={`notification-dropdown__header-wrapper`}>
|
|
65
|
+
<div>
|
|
66
|
+
<h5>Notifications</h5>
|
|
67
|
+
</div>
|
|
68
|
+
<div onClick={markAllAsReadOnClick} className={'mark-all-action'}>
|
|
69
|
+
<h6>Mark all as Read</h6>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<div id={'listContainer'} className={`notification-dropdown__container-list ${isScrollbarVisible ? 'spacing' : '' }`}>
|
|
74
|
+
<ul className={`notification-dropdown__list`}>
|
|
75
|
+
{children}
|
|
76
|
+
</ul>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
)}
|
|
81
|
+
</div>
|
|
82
|
+
);
|
|
83
|
+
};
|
|
@@ -1,29 +1,54 @@
|
|
|
1
|
-
import
|
|
1
|
+
import XIcon from "../Components/Icons/MathAndFinance/XIcon/XIcon.tsx";
|
|
2
|
+
import "./notification.scss";
|
|
2
3
|
import NotificationListInterface from "./NotificationListInterface.tsx";
|
|
3
|
-
import {XIcon} from "../../tokens/icons/MathAndFinance/XIcon.tsx";
|
|
4
4
|
|
|
5
|
-
export const NotificationList = ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
export const NotificationList = ({
|
|
6
|
+
notificationInitials,
|
|
7
|
+
boldText,
|
|
8
|
+
summaryText,
|
|
9
|
+
notificatonItemOnClick,
|
|
10
|
+
regularText,
|
|
11
|
+
extraClass,
|
|
12
|
+
closeOnClick,
|
|
13
|
+
}: NotificationListInterface) => {
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
<li
|
|
17
|
+
onClick={notificatonItemOnClick}
|
|
18
|
+
className={`notification-list ${extraClass}`}
|
|
19
|
+
>
|
|
20
|
+
<div className={`notification-list__wrapper`}>
|
|
21
|
+
<div className={`notification-list__icon`}>
|
|
22
|
+
<div className={"notification-list-pip"}></div>
|
|
23
|
+
<div
|
|
24
|
+
onClick={closeOnClick}
|
|
25
|
+
className={"notification-list-close-icon"}
|
|
26
|
+
>
|
|
27
|
+
<XIcon />
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<div className={`notification-list__content`}>
|
|
31
|
+
{notificationInitials && (
|
|
32
|
+
<div className={`notification-list__initial`}>
|
|
33
|
+
<div className={`notification-list__initial-wrapper`}>
|
|
34
|
+
{notificationInitials}
|
|
35
|
+
</div>
|
|
19
36
|
</div>
|
|
37
|
+
)}
|
|
38
|
+
<div className={`notification-list__desc`}>
|
|
39
|
+
<p>
|
|
40
|
+
{boldText && <span className={"bold-text"}>{boldText}</span>}
|
|
41
|
+
{regularText && (
|
|
42
|
+
<span className={"regular-text"}>{regularText}</span>
|
|
43
|
+
)}
|
|
44
|
+
{summaryText && (
|
|
45
|
+
<span className={"summary-text"}>{summaryText}</span>
|
|
46
|
+
)}
|
|
47
|
+
</p>
|
|
20
48
|
</div>
|
|
21
|
-
)}
|
|
22
|
-
<div className={`notification-list__desc`}>
|
|
23
|
-
<p>{boldText && (<span className={'bold-text'}>{boldText}</span>)}{regularText && ( <span className={'regular-text'}>{regularText}</span>)}{summaryText && ( <span className={'summary-text'}>{summaryText}</span>)}</p>
|
|
24
49
|
</div>
|
|
25
50
|
</div>
|
|
26
|
-
</
|
|
27
|
-
|
|
28
|
-
|
|
51
|
+
</li>
|
|
52
|
+
</>
|
|
53
|
+
);
|
|
29
54
|
};
|