-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(js,react): move options to be first class citizens on the inbox…
… component (#6279)
- Loading branch information
Showing
37 changed files
with
242 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
packages/js/src/ui/components/elements/InboxStatus/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/js/src/ui/components/primitives/Dropdown/DropdownContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/js/src/ui/components/primitives/Dropdown/DropdownItem.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/js/src/ui/components/primitives/Dropdown/DropdownTrigger.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/js/src/ui/components/primitives/Popover/PopoverContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/js/src/ui/components/primitives/Popover/PopoverTrigger.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/js/src/ui/components/primitives/Tabs/TabsTrigger.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/js/src/ui/components/primitives/Tooltip/TooltipContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/js/src/ui/components/primitives/Tooltip/TooltipTrigger.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
/* | ||
* The double underscore signals that entire key extends the right part of the key | ||
* i.e. foo__bar means that foo_bar is an extension of bar. Both keys will be applied when foo_bar is used | ||
* meaning you would have `bar foo__bar` in the dom | ||
*/ | ||
export const appearanceKeys = [ | ||
//Primitives | ||
'button', | ||
|
||
'popoverContent', | ||
'popoverTrigger', | ||
|
||
'dropdownContent', | ||
'dropdownTrigger', | ||
'dropdownItem', | ||
'dropdownItemLabel', | ||
'dropdownItemLabelContainer', | ||
'dropdownItemLeftIcon', | ||
'dropdownItemRightIcon', | ||
|
||
'tooltipContent', | ||
'tooltipTrigger', | ||
|
||
'back__button', | ||
|
||
'skeletonText', | ||
'skeletonAvatar', | ||
'tabsRoot', | ||
'tabsList', | ||
'tabsContent', | ||
'tabsTrigger', | ||
'dots', | ||
|
||
//General | ||
'root', | ||
'bellIcon', | ||
'bellContainer', | ||
'bellDot', | ||
'preferences__button', | ||
'preferencesContainer', | ||
'inboxHeader', | ||
'loading', | ||
|
||
//Inbox | ||
'inbox__popoverTrigger', | ||
'inbox__popoverContent', | ||
|
||
//Notifications | ||
'notificationList', | ||
'notificationListEmptyNoticeContainer', | ||
'notificationListEmptyNotice', | ||
'notificationListEmptyNoticeIcon', | ||
'notificationListNewNotificationsNoticeContainer', | ||
'notificationListNewNotificationsNotice__button', | ||
|
||
'notification', | ||
'notificationDot', | ||
'notificationSubject', | ||
'notificationBody', | ||
'notificationBodyContainer', | ||
'notificationImage', | ||
'notificationDate', | ||
'notificationDefaultActions', | ||
'notificationCustomActions', | ||
'notificationPrimaryAction__button', | ||
'notificationSecondaryAction__button', | ||
'notificationRead__button', | ||
'notificationUnread__button', | ||
'notificationArchive__button', | ||
'notificationUnarchive__button', | ||
|
||
// Notifications tabs | ||
'notificationsTabs__tabsRoot', | ||
'notificationsTabs__tabsList', | ||
'notificationsTabs__tabsContent', | ||
'notificationsTabs__tabsTrigger', | ||
'notificationsTabsTriggerLabel', | ||
'notificationsTabsTriggerCount', | ||
|
||
//Inbox status | ||
'inboxStatus__title', | ||
'inboxStatus__dropdownTrigger', | ||
'inboxStatus__dropdownContent', | ||
'inboxStatus__dropdownItem', | ||
'inboxStatus__dropdownItemLabel', | ||
'inboxStatus__dropdownItemLabelContainer', | ||
'inboxStatus__dropdownItemLeftIcon', | ||
'inboxStatus__dropdownItemRightIcon', | ||
|
||
// More actions | ||
'moreActionsContainer', | ||
'moreActions__dropdownTrigger', | ||
'moreActions__dropdownContent', | ||
'moreActions__dropdownItem', | ||
'moreActions__dropdownItemLabel', | ||
'moreActions__dropdownItemLeftIcon', | ||
|
||
// More tabs | ||
'moreTabs__button', | ||
'moreTabs__dots', | ||
'moreTabs__dropdownTrigger', | ||
'moreTabs__dropdownContent', | ||
'moreTabs__dropdownItem', | ||
'moreTabs__dropdownItemLabel', | ||
'moreTabs__dropdownItemRightIcon', | ||
|
||
//workflow | ||
'workflowContainer', | ||
'workflowLabel', | ||
'workflowLabelContainer', | ||
|
||
// channel | ||
'channelContainer', | ||
'channelsContainer', | ||
'channelLabel', | ||
'channelLabelContainer', | ||
'channelDescription', | ||
'channelSwitchContainer', | ||
'channelSwitch', | ||
'channelSwitchThumb', | ||
|
||
//Preferences Header | ||
'preferencesHeader', | ||
'preferencesHeader__back__button', | ||
'preferencesHeader__title', | ||
|
||
//Preferences Loading | ||
'preferencesLoadingContainer', | ||
] as const; |
2 changes: 1 addition & 1 deletion
2
...ges/js/src/ui/config/defaultAppearance.ts → ...ages/js/src/ui/config/defaultVariables.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export * from './defaultAppearance'; | ||
export * from './defaultVariables'; | ||
export * from './defaultLocalization'; | ||
export * from './appearanceKeys'; |
Oops, something went wrong.