Commit 61397f8 1 parent 13a2bef commit 61397f8 Copy full SHA for 61397f8
File tree 4 files changed +45
-0
lines changed
packages/fuselage/src/components/States
4 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
StatesSuggestionText ,
12
12
StatesActions ,
13
13
StatesAction ,
14
+ StatesLink ,
14
15
} from '.' ;
15
16
import { Box , Icon } from '..' ;
16
17
@@ -94,6 +95,25 @@ export const ActionButtonWithNoSuggestions = () => (
94
95
</ Box >
95
96
) ;
96
97
98
+ export const Link = ( ) => (
99
+ < Box >
100
+ < States >
101
+ < StatesIcon name = 'magnifier' />
102
+ < StatesTitle > No app matches</ StatesTitle >
103
+ < StatesSubtitle >
104
+ No app matches for ”search term here” Try searching in the Marketplace
105
+ instead.
106
+ </ StatesSubtitle >
107
+ < StatesActions >
108
+ < StatesAction > Reload</ StatesAction >
109
+ </ StatesActions >
110
+ < StatesLink target = '_blank' href = 'https://go.rocket.chat' >
111
+ Link to another page
112
+ </ StatesLink >
113
+ </ States >
114
+ </ Box >
115
+ ) ;
116
+
97
117
export const Variations = ( ) => (
98
118
< Box >
99
119
< States >
Original file line number Diff line number Diff line change @@ -93,4 +93,14 @@ $variants: (
93
93
}
94
94
}
95
95
}
96
+
97
+ & __link {
98
+ @include typography .use-font-scale (p2);
99
+ margin-block : lengths .margin (16 );
100
+
101
+ text-decoration : none ;
102
+
103
+ color : colors .font (info );
104
+ @extend %--with-inline-elements ;
105
+ }
96
106
}
Original file line number Diff line number Diff line change
1
+ import type { AllHTMLAttributes , ComponentProps } from 'react' ;
2
+ import React from 'react' ;
3
+
4
+ import Box from '../Box/Box' ;
5
+
6
+ type StatesLinkProps = ComponentProps < typeof Box > &
7
+ AllHTMLAttributes < HTMLAnchorElement > ;
8
+
9
+ const StatesLink = ( props : StatesLinkProps ) => (
10
+ < Box is = 'a' rcx-states__link { ...props } />
11
+ ) ;
12
+
13
+ export default StatesLink ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import States from './States';
2
2
import StatesAction from './StatesAction' ;
3
3
import StatesActions from './StatesActions' ;
4
4
import StatesIcon from './StatesIcon' ;
5
+ import StatesLink from './StatesLink' ;
5
6
import StatesSubtitle from './StatesSubtitle' ;
6
7
import StatesSuggestion from './StatesSuggestion' ;
7
8
import StatesSuggestionList from './StatesSuggestionList' ;
@@ -14,6 +15,7 @@ export {
14
15
StatesAction ,
15
16
StatesActions ,
16
17
StatesIcon ,
18
+ StatesLink ,
17
19
StatesSubtitle ,
18
20
StatesSuggestion ,
19
21
StatesSuggestionList ,
You can’t perform that action at this time.
0 commit comments