@box/activity-feed 3.1.29 → 3.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/chunks/header.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ACTIVITY_FEED_RESIN_COMPONENTS,ACTIVITY_FEED_RESIN_FEATURE,ACTIVITY_FEED_RESIN_TARGETS}from"../esm/lib/resin-targets.js";import{messages}from"../esm/lib/components/header/messages.js";import{HeaderMentionMeOption,HeaderShowResolvedOption}from"../esm/lib/components/header/header-filter-options.js";import{t as TaskButton}from"./task-button.js";import{useState}from"react";import{DropdownMenu,IconButton,IconToggleButton,Text}from"@box/blueprint-web";import{useIntl}from"react-intl";import{jsx,jsxs}from"react/jsx-runtime";import{Funnel,XMark}from"@box/blueprint-web-assets/icons/Medium";import '../styles/header.css';var header_module_default={header:`_header_1pzc9_27`,title:`_title_1pzc9_37`,actions:`_actions_1pzc9_45`,filterMenuContent:`_filterMenuContent_1pzc9_52`,filtersTitle:`_filtersTitle_1pzc9_56`,filterTrigger:`_filterTrigger_1pzc9_60`},Header=Object.assign(({children,title})=>jsxs(`div`,{className:header_module_default.header,"data-resin-component":ACTIVITY_FEED_RESIN_COMPONENTS.HEADER,children:[jsx(Text,{as:`h2`,className:header_module_default.title,variant:`titleLarge`,children:title}),children]}),{Actions:({children})=>jsx(`div`,{className:header_module_default.actions,children}),CloseButton:({onClick})=>{let{formatMessage}=useIntl();return jsx(IconButton,{"aria-label":formatMessage(messages.closeAriaLabel),icon:XMark,onClick,size:`small`})},FilterMenu:({children,hasActiveFilters=!1})=>{let{formatMessage}=useIntl(),[isFilterOpen,setIsFilterOpen]=useState(!1);return jsxs(DropdownMenu.Root,{modal:!1,onOpenChange:setIsFilterOpen,open:isFilterOpen,children:[jsx(DropdownMenu.Trigger,{children:jsx(IconToggleButton,{"aria-label":formatMessage(messages.filterAriaLabel),className:header_module_default.filterTrigger,"data-resin-target":ACTIVITY_FEED_RESIN_TARGETS.FILTER_MENU_TRIGGER,icon:Funnel,pressed:
|
|
1
|
+
import{ACTIVITY_FEED_RESIN_COMPONENTS,ACTIVITY_FEED_RESIN_FEATURE,ACTIVITY_FEED_RESIN_TARGETS}from"../esm/lib/resin-targets.js";import{messages}from"../esm/lib/components/header/messages.js";import{HeaderMentionMeOption,HeaderShowResolvedOption}from"../esm/lib/components/header/header-filter-options.js";import{t as TaskButton}from"./task-button.js";import{useState}from"react";import{DropdownMenu,IconButton,IconToggleButton,Text}from"@box/blueprint-web";import{useIntl}from"react-intl";import{jsx,jsxs}from"react/jsx-runtime";import{Funnel,XMark}from"@box/blueprint-web-assets/icons/Medium";import '../styles/header.css';var header_module_default={header:`_header_1pzc9_27`,title:`_title_1pzc9_37`,actions:`_actions_1pzc9_45`,filterMenuContent:`_filterMenuContent_1pzc9_52`,filtersTitle:`_filtersTitle_1pzc9_56`,filterTrigger:`_filterTrigger_1pzc9_60`},Header=Object.assign(({children,title})=>jsxs(`div`,{className:header_module_default.header,"data-resin-component":ACTIVITY_FEED_RESIN_COMPONENTS.HEADER,children:[jsx(Text,{as:`h2`,className:header_module_default.title,variant:`titleLarge`,children:title}),children]}),{Actions:({children})=>jsx(`div`,{className:header_module_default.actions,children}),CloseButton:({onClick})=>{let{formatMessage}=useIntl();return jsx(IconButton,{"aria-label":formatMessage(messages.closeAriaLabel),icon:XMark,onClick,size:`small`})},FilterMenu:({children,hasActiveFilters=!1})=>{let{formatMessage}=useIntl(),[isFilterOpen,setIsFilterOpen]=useState(!1);return jsxs(DropdownMenu.Root,{modal:!1,onOpenChange:setIsFilterOpen,open:isFilterOpen,children:[jsx(DropdownMenu.Trigger,{children:jsx(IconToggleButton,{"aria-label":formatMessage(messages.filterAriaLabel),className:header_module_default.filterTrigger,"data-resin-target":ACTIVITY_FEED_RESIN_TARGETS.FILTER_MENU_TRIGGER,icon:Funnel,pressed:hasActiveFilters,size:`small`})}),jsxs(DropdownMenu.Content,{align:`end`,className:header_module_default.filterMenuContent,"data-resin-component":ACTIVITY_FEED_RESIN_COMPONENTS.HEADER,"data-resin-feature":ACTIVITY_FEED_RESIN_FEATURE,children:[jsx(Text,{as:`p`,className:header_module_default.filtersTitle,color:`textOnLightSecondary`,variant:`bodyDefaultBold`,children:formatMessage(messages.filtersTitle)}),children]})]})},MentionMeOption:HeaderMentionMeOption,ShowResolvedOption:HeaderShowResolvedOption,TaskButton});export{Header as t};
|
|
@@ -16,8 +16,8 @@ export interface HeaderFilterMenuProps {
|
|
|
16
16
|
/** Filter option nodes (`Header.ShowResolvedOption`, `Header.MentionMeOption`, etc.). */
|
|
17
17
|
children: ReactNode;
|
|
18
18
|
/**
|
|
19
|
-
* Whether any filter option is active.
|
|
20
|
-
* (blue) state
|
|
19
|
+
* Whether any filter option is active. The filter trigger shows a pressed
|
|
20
|
+
* (blue) state only while this is true.
|
|
21
21
|
*/
|
|
22
22
|
hasActiveFilters?: boolean;
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/activity-feed",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.31",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@box/blueprint-web": "^18.
|
|
7
|
-
"@box/blueprint-web-assets": "^5.13.
|
|
8
|
-
"@box/collaboration-popover": "^2.3.
|
|
9
|
-
"@box/readable-time": "^2.3.
|
|
10
|
-
"@box/threaded-annotations": "^4.15.
|
|
11
|
-
"@box/user-selector": "^3.1.
|
|
6
|
+
"@box/blueprint-web": "^18.7.0",
|
|
7
|
+
"@box/blueprint-web-assets": "^5.13.5",
|
|
8
|
+
"@box/collaboration-popover": "^2.3.30",
|
|
9
|
+
"@box/readable-time": "^2.3.30",
|
|
10
|
+
"@box/threaded-annotations": "^4.15.30",
|
|
11
|
+
"@box/user-selector": "^3.1.29",
|
|
12
12
|
"clsx": "^1.2.1",
|
|
13
13
|
"react": "^18.0.0",
|
|
14
14
|
"react-dom": "^18.0.0",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@box/blueprint-web": "^18.
|
|
22
|
-
"@box/blueprint-web-assets": "^5.13.
|
|
23
|
-
"@box/collaboration-popover": "^2.3.
|
|
21
|
+
"@box/blueprint-web": "^18.7.0",
|
|
22
|
+
"@box/blueprint-web-assets": "^5.13.5",
|
|
23
|
+
"@box/collaboration-popover": "^2.3.30",
|
|
24
24
|
"@box/eslint-plugin-blueprint": "2.3.1",
|
|
25
|
-
"@box/readable-time": "^2.3.
|
|
26
|
-
"@box/storybook-utils": "1.4.
|
|
27
|
-
"@box/threaded-annotations": "^4.15.
|
|
28
|
-
"@box/user-selector": "^3.1.
|
|
25
|
+
"@box/readable-time": "^2.3.30",
|
|
26
|
+
"@box/storybook-utils": "1.4.24",
|
|
27
|
+
"@box/threaded-annotations": "^4.15.30",
|
|
28
|
+
"@box/user-selector": "^3.1.29",
|
|
29
29
|
"react-intl": "^6.4.2"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|