@box/activity-feed 3.1.6 → 3.1.8
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 +1 -1
- package/dist/styles/header.css +1 -1
- package/package.json +14 -14
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:`
|
|
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:isFilterOpen||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};
|
package/dist/styles/header.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_1pzc9_27{background:var(--bp-surface-surface);box-sizing:border-box;padding:var(--space-3) var(--space-5) 0;justify-content:space-between;align-items:center;width:100%;display:flex}._title_1pzc9_37{-webkit-line-clamp:1;-webkit-box-orient:vertical;min-width:0;display:-webkit-box;overflow:hidden}._actions_1pzc9_45{align-items:center;gap:var(--space-2);flex-shrink:0;display:flex}._filterMenuContent_1pzc9_52{--blueprint-web-dropdown-content-max-width:18rem}._filtersTitle_1pzc9_56{padding:var(--space-2)}._filterTrigger_1pzc9_60{--icon-toggle-button-off-background:transparent}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/activity-feed",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.8",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@box/blueprint-web": "^17.
|
|
7
|
-
"@box/blueprint-web-assets": "^5.11.
|
|
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": "^17.21.0",
|
|
7
|
+
"@box/blueprint-web-assets": "^5.11.8",
|
|
8
|
+
"@box/collaboration-popover": "^2.3.8",
|
|
9
|
+
"@box/readable-time": "^2.3.8",
|
|
10
|
+
"@box/threaded-annotations": "^4.15.8",
|
|
11
|
+
"@box/user-selector": "^3.1.8",
|
|
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": "^17.
|
|
22
|
-
"@box/blueprint-web-assets": "^5.11.
|
|
23
|
-
"@box/collaboration-popover": "^2.3.
|
|
21
|
+
"@box/blueprint-web": "^17.21.0",
|
|
22
|
+
"@box/blueprint-web-assets": "^5.11.8",
|
|
23
|
+
"@box/collaboration-popover": "^2.3.8",
|
|
24
24
|
"@box/eslint-plugin-blueprint": "2.2.27",
|
|
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.8",
|
|
26
|
+
"@box/storybook-utils": "1.4.3",
|
|
27
|
+
"@box/threaded-annotations": "^4.15.8",
|
|
28
|
+
"@box/user-selector": "^3.1.8",
|
|
29
29
|
"react-intl": "^6.4.2"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|