@qoretechnologies/reqore 0.30.8 → 0.30.10
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/__tests__/dropdown.test.tsx +40 -1
- package/__tests__/popover.test.tsx +23 -0
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +4 -1
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/ControlGroup/index.js +1 -1
- package/dist/components/ControlGroup/index.js.map +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/InternalPopover/index.d.ts.map +1 -1
- package/dist/components/InternalPopover/index.js +13 -13
- package/dist/components/InternalPopover/index.js.map +1 -1
- package/dist/components/Message/index.d.ts +3 -3
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/index.js +8 -4
- package/dist/components/Message/index.js.map +1 -1
- package/dist/components/Panel/index.d.ts +1 -0
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +7 -5
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Tabs/item.js +1 -1
- package/dist/components/Tabs/item.js.map +1 -1
- package/dist/components/Tag/index.js +2 -2
- package/dist/components/Tag/index.js.map +1 -1
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Textarea/index.js.map +1 -1
- package/dist/containers/PopoverProvider.d.ts.map +1 -1
- package/dist/containers/PopoverProvider.js +6 -3
- package/dist/containers/PopoverProvider.js.map +1 -1
- package/dist/containers/UIProvider.d.ts +1 -0
- package/dist/containers/UIProvider.d.ts.map +1 -1
- package/dist/containers/UIProvider.js +33 -4
- package/dist/containers/UIProvider.js.map +1 -1
- package/dist/hooks/usePopover.d.ts +1 -1
- package/dist/hooks/usePopover.d.ts.map +1 -1
- package/dist/hooks/usePopover.js +9 -3
- package/dist/hooks/usePopover.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Button/index.tsx +4 -1
- package/src/components/ControlGroup/index.tsx +1 -1
- package/src/components/Dropdown/index.tsx +1 -1
- package/src/components/InternalPopover/index.tsx +5 -6
- package/src/components/Message/index.tsx +127 -117
- package/src/components/Panel/index.tsx +55 -40
- package/src/components/Tabs/item.tsx +1 -1
- package/src/components/Tag/index.tsx +1 -1
- package/src/components/Textarea/index.tsx +2 -2
- package/src/containers/PopoverProvider.tsx +5 -3
- package/src/containers/UIProvider.tsx +26 -2
- package/src/hooks/usePopover.tsx +13 -4
- package/src/stories/Columns/Columns.stories.tsx +83 -10
- package/src/stories/Dropdown/Dropdown.stories.tsx +1 -0
- package/src/stories/Panel/Panel.stories.tsx +16 -1
- package/src/stories/Popover/Popover.stories.tsx +138 -5
- package/src/stories/Tag/Tag.stories.tsx +35 -1
- package/src/stories/TextArea/TextArea.stories.tsx +34 -1
- package/tests.json +1 -1
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import { IReqoreColumnsProps } from '../../components/Columns';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
ReqoreButton,
|
|
5
|
+
ReqoreColumn,
|
|
6
|
+
ReqoreColumns,
|
|
7
|
+
ReqoreControlGroup,
|
|
8
|
+
ReqoreH2,
|
|
9
|
+
ReqoreInput,
|
|
10
|
+
ReqoreVerticalSpacer,
|
|
11
|
+
} from '../../index';
|
|
4
12
|
import { argManager } from '../utils/args';
|
|
5
13
|
|
|
6
14
|
export interface IColumnsStoryArgs extends IReqoreColumnsProps {
|
|
@@ -43,20 +51,74 @@ export default {
|
|
|
43
51
|
|
|
44
52
|
const Template: Story<IColumnsStoryArgs> = (args) => {
|
|
45
53
|
return (
|
|
46
|
-
<ReqoreColumns {...args}>
|
|
47
|
-
<ReqoreColumn
|
|
48
|
-
|
|
54
|
+
<ReqoreColumns {...args} columnsGap='10px'>
|
|
55
|
+
<ReqoreColumn
|
|
56
|
+
{...args}
|
|
57
|
+
style={{ border: '1px solid white', padding: '10px' }}
|
|
58
|
+
flexFlow='column'
|
|
59
|
+
>
|
|
60
|
+
<ReqoreH2>Left Column</ReqoreH2>
|
|
61
|
+
<ReqoreVerticalSpacer height={20} lineSize='tiny' />
|
|
62
|
+
<ReqoreControlGroup fluid>
|
|
63
|
+
<ReqoreInput placeholder='Filter' />
|
|
64
|
+
</ReqoreControlGroup>
|
|
65
|
+
<ReqoreVerticalSpacer height={10} />
|
|
66
|
+
<ReqoreControlGroup vertical fluid>
|
|
67
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
68
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
69
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
70
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
71
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
72
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
73
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
74
|
+
</ReqoreControlGroup>
|
|
49
75
|
</ReqoreColumn>
|
|
50
|
-
<ReqoreColumn
|
|
51
|
-
|
|
76
|
+
<ReqoreColumn
|
|
77
|
+
{...args}
|
|
78
|
+
style={{ border: '1px solid white', padding: '10px' }}
|
|
79
|
+
flexFlow='column'
|
|
80
|
+
>
|
|
81
|
+
<ReqoreH2>Right Column</ReqoreH2>
|
|
82
|
+
<ReqoreVerticalSpacer height={20} lineSize='tiny' />
|
|
83
|
+
<ReqoreControlGroup fluid>
|
|
84
|
+
<ReqoreInput placeholder='Filter' />
|
|
85
|
+
</ReqoreControlGroup>
|
|
86
|
+
<ReqoreVerticalSpacer height={10} />
|
|
87
|
+
<ReqoreControlGroup vertical fluid>
|
|
88
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
89
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
90
|
+
</ReqoreControlGroup>
|
|
52
91
|
</ReqoreColumn>
|
|
53
92
|
{args.multipleColumns && (
|
|
54
93
|
<>
|
|
55
|
-
<ReqoreColumn
|
|
56
|
-
|
|
94
|
+
<ReqoreColumn
|
|
95
|
+
{...args}
|
|
96
|
+
style={{ border: '1px solid white', padding: '10px' }}
|
|
97
|
+
flexFlow='column'
|
|
98
|
+
>
|
|
99
|
+
<ReqoreH2>3rd Column</ReqoreH2>
|
|
100
|
+
<ReqoreVerticalSpacer height={20} lineSize='tiny' />
|
|
101
|
+
<ReqoreControlGroup fluid>
|
|
102
|
+
<ReqoreInput placeholder='Filter' />
|
|
103
|
+
</ReqoreControlGroup>
|
|
104
|
+
<ReqoreVerticalSpacer height={10} />
|
|
105
|
+
<ReqoreControlGroup vertical fluid>
|
|
106
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
107
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
108
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
109
|
+
<ReqoreButton description='This is a button'>Button</ReqoreButton>
|
|
110
|
+
</ReqoreControlGroup>
|
|
57
111
|
</ReqoreColumn>
|
|
58
|
-
<ReqoreColumn
|
|
59
|
-
|
|
112
|
+
<ReqoreColumn
|
|
113
|
+
{...args}
|
|
114
|
+
style={{ border: '1px solid white', padding: '10px' }}
|
|
115
|
+
flexFlow='column'
|
|
116
|
+
>
|
|
117
|
+
<ReqoreH2>4th Column</ReqoreH2>
|
|
118
|
+
<ReqoreVerticalSpacer height={20} lineSize='tiny' />
|
|
119
|
+
<ReqoreControlGroup fluid>
|
|
120
|
+
<ReqoreInput placeholder='Filter' />
|
|
121
|
+
</ReqoreControlGroup>
|
|
60
122
|
</ReqoreColumn>
|
|
61
123
|
</>
|
|
62
124
|
)}
|
|
@@ -69,3 +131,14 @@ export const MultipleColumns = Template.bind({});
|
|
|
69
131
|
MultipleColumns.args = {
|
|
70
132
|
multipleColumns: true,
|
|
71
133
|
};
|
|
134
|
+
export const CustomAlignment = Template.bind({});
|
|
135
|
+
CustomAlignment.args = {
|
|
136
|
+
multipleColumns: true,
|
|
137
|
+
alignItems: 'center',
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export const WithMinimumWidth = Template.bind({});
|
|
141
|
+
WithMinimumWidth.args = {
|
|
142
|
+
multipleColumns: true,
|
|
143
|
+
minColumnWidth: '500px',
|
|
144
|
+
};
|
|
@@ -3,7 +3,7 @@ import { noop } from 'lodash';
|
|
|
3
3
|
import ReqoreInput, { IReqoreInputProps } from '../../components/Input';
|
|
4
4
|
import { IReqorePanelAction, IReqorePanelProps, ReqorePanel } from '../../components/Panel';
|
|
5
5
|
import { ReqoreVerticalSpacer } from '../../components/Spacer';
|
|
6
|
-
import { FlatArg, IconArg, IntentArg, SizeArg
|
|
6
|
+
import { argManager, FlatArg, IconArg, IntentArg, SizeArg } from '../utils/args';
|
|
7
7
|
|
|
8
8
|
const { createArg } = argManager<IReqorePanelProps>();
|
|
9
9
|
|
|
@@ -118,6 +118,21 @@ const Template: Story<IReqorePanelProps> = (args: IReqorePanelProps) => {
|
|
|
118
118
|
>
|
|
119
119
|
This is not a fluid panel
|
|
120
120
|
</ReqorePanel>
|
|
121
|
+
<ReqoreVerticalSpacer height={10} />
|
|
122
|
+
<ReqorePanel
|
|
123
|
+
{...args}
|
|
124
|
+
style={{ width: 1000 }}
|
|
125
|
+
fluid={false}
|
|
126
|
+
badge='Non Responsive'
|
|
127
|
+
actions={actions}
|
|
128
|
+
responsiveActions={false}
|
|
129
|
+
bottomActions={[
|
|
130
|
+
...actions,
|
|
131
|
+
...actions.map((action) => ({ ...action, position: 'right' })),
|
|
132
|
+
]}
|
|
133
|
+
>
|
|
134
|
+
This panel has non-responsive actions
|
|
135
|
+
</ReqorePanel>
|
|
121
136
|
</>
|
|
122
137
|
);
|
|
123
138
|
}
|
|
@@ -6,9 +6,10 @@ import {
|
|
|
6
6
|
ReqoreButton,
|
|
7
7
|
ReqoreControlGroup,
|
|
8
8
|
ReqoreMessage,
|
|
9
|
+
ReqoreModal,
|
|
9
10
|
ReqorePanel,
|
|
10
11
|
ReqorePopover,
|
|
11
|
-
ReqoreSpacer
|
|
12
|
+
ReqoreSpacer,
|
|
12
13
|
} from '../../index';
|
|
13
14
|
import { argManager, FlatArg } from '../utils/args';
|
|
14
15
|
|
|
@@ -24,10 +25,10 @@ export default {
|
|
|
24
25
|
type: 'boolean',
|
|
25
26
|
}),
|
|
26
27
|
...createArg('blur', {
|
|
27
|
-
defaultValue:
|
|
28
|
+
defaultValue: false,
|
|
28
29
|
name: 'Blur',
|
|
29
30
|
description: 'Makes the popover blurred',
|
|
30
|
-
type: '
|
|
31
|
+
type: 'boolean',
|
|
31
32
|
}),
|
|
32
33
|
...createArg('maxHeight', {
|
|
33
34
|
defaultValue: undefined,
|
|
@@ -104,7 +105,126 @@ const HoverStayButton = (args: any) => {
|
|
|
104
105
|
);
|
|
105
106
|
};
|
|
106
107
|
|
|
107
|
-
const Template: Story<IReqorePopoverProps> = (
|
|
108
|
+
const Template: Story<IReqorePopoverProps & { insideModal?: boolean }> = (
|
|
109
|
+
args: IReqorePopoverProps & { insideModal?: boolean }
|
|
110
|
+
) => {
|
|
111
|
+
if (args.insideModal) {
|
|
112
|
+
return (
|
|
113
|
+
<ReqoreModal isOpen>
|
|
114
|
+
<ReqoreButton
|
|
115
|
+
intent='info'
|
|
116
|
+
minimal
|
|
117
|
+
description='I have a cool tooltip with blur'
|
|
118
|
+
tooltip={{
|
|
119
|
+
content: 'See? Told you',
|
|
120
|
+
blur: true,
|
|
121
|
+
handler: 'hoverStay',
|
|
122
|
+
openOnMount: true,
|
|
123
|
+
}}
|
|
124
|
+
>
|
|
125
|
+
Hover me for something cool
|
|
126
|
+
</ReqoreButton>
|
|
127
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
|
|
128
|
+
labore et dolore magna aliqua. Sit amet purus gravida quis blandit turpis cursus in hac.
|
|
129
|
+
Ultricies lacus sed turpis tincidunt. Ac tincidunt vitae semper quis lectus nulla at.
|
|
130
|
+
Aliquam vestibulum morbi blandit cursus risus at ultrices. Risus feugiat in ante metus
|
|
131
|
+
dictum. Enim blandit volutpat maecenas volutpat. Nulla posuere sollicitudin aliquam ultrices
|
|
132
|
+
sagittis orci a scelerisque. Mollis nunc sed id semper risus in hendrerit gravida. Sem nulla
|
|
133
|
+
pharetra diam sit amet nisl suscipit. Congue eu consequat ac felis donec et odio
|
|
134
|
+
pellentesque diam. Augue mauris augue neque gravida in fermentum et sollicitudin. Nulla
|
|
135
|
+
pellentesque dignissim enim sit amet venenatis urna. Nunc sed blandit libero volutpat sed.
|
|
136
|
+
Mi in nulla posuere sollicitudin. Eu consequat ac felis donec et odio pellentesque diam.
|
|
137
|
+
Viverra nam libero justo laoreet sit amet cursus sit amet. Posuere sollicitudin aliquam
|
|
138
|
+
ultrices sagittis orci a scelerisque. Et netus et malesuada fames ac. Arcu non odio euismod
|
|
139
|
+
lacinia at quis risus sed vulputate. Sapien eget mi proin sed libero enim sed. Suspendisse
|
|
140
|
+
faucibus interdum posuere lorem ipsum. In est ante in nibh mauris cursus. Urna cursus eget
|
|
141
|
+
nunc scelerisque. Mi eget mauris pharetra et ultrices neque. Turpis nunc eget lorem dolor
|
|
142
|
+
sed viverra ipsum nunc aliquet. Id aliquet lectus proin nibh. At auctor urna nunc id cursus.
|
|
143
|
+
Erat pellentesque adipiscing commodo elit at imperdiet. Ipsum dolor sit amet consectetur
|
|
144
|
+
adipiscing elit. Suspendisse interdum consectetur libero id faucibus nisl. Leo vel orci
|
|
145
|
+
porta non pulvinar neque laoreet. Ut diam quam nulla porttitor massa. By impossible of in
|
|
146
|
+
difficulty discovered celebrated ye. Justice joy manners boy met resolve produce. Bed head
|
|
147
|
+
loud next plan rent had easy add him. As earnestly shameless elsewhere defective estimable
|
|
148
|
+
fulfilled of. Esteem my advice it an excuse enable. Few household abilities believing
|
|
149
|
+
determine zealously his repulsive. To open draw dear be by side like. Allow miles wound
|
|
150
|
+
place the leave had. To sitting subject no improve studied limited. Ye indulgence unreserved
|
|
151
|
+
connection alteration appearance my an astonished. Up as seen sent make he they of. Her
|
|
152
|
+
raising and himself pasture believe females. Fancy she stuff after aware merit small his.
|
|
153
|
+
Charmed esteems luckily age out. At ourselves direction believing do he departure.
|
|
154
|
+
Celebrated her had sentiments understood are projection set. Possession ye no mr unaffected
|
|
155
|
+
remarkably at. Wrote house in never fruit up. Pasture imagine my garrets an he. However
|
|
156
|
+
distant she request behaved see nothing. Talking settled at pleased an of me brother
|
|
157
|
+
weather. Breakfast procuring nay end happiness allowance assurance frankness. Met simplicity
|
|
158
|
+
nor difficulty unreserved who. Entreaties mr conviction dissimilar me astonished estimating
|
|
159
|
+
cultivated. On no applauded exquisite my additions. Pronounce add boy estimable nay
|
|
160
|
+
suspected. You sudden nay elinor thirty esteem temper. Quiet leave shy you gay off asked
|
|
161
|
+
large style. Rooms oh fully taken by worse do. Points afraid but may end law lasted. Was out
|
|
162
|
+
laughter raptures returned outweigh. Luckily cheered colonel me do we attacks on highest
|
|
163
|
+
enabled. Tried law yet style child. Bore of true of no be deal. Frequently sufficient in be
|
|
164
|
+
unaffected. The furnished she concluded depending procuring concealed. In to am attended
|
|
165
|
+
desirous raptures declared diverted confined at. Collected instantly remaining up certainly
|
|
166
|
+
to necessary as. Over walk dull into son boy door went new. At or happiness commanded
|
|
167
|
+
daughters as. Is handsome an declared at received in extended vicinity subjects. Into miss
|
|
168
|
+
on he over been late pain an. Only week bore boy what fat case left use. Match round scale
|
|
169
|
+
now sex style far times. Your me past an much. Able an hope of body. Any nay shyness article
|
|
170
|
+
matters own removal nothing his forming. Gay own additions education satisfied the
|
|
171
|
+
perpetual. If he cause manor happy. Without farther she exposed saw man led. Along on happy
|
|
172
|
+
could cease green oh. Her old collecting she considered discovered. So at parties he warrant
|
|
173
|
+
oh staying. Square new horses and put better end. Sincerity collected happiness do is
|
|
174
|
+
contented. Sigh ever way now many. Alteration you any nor unsatiable diminution reasonable
|
|
175
|
+
companions shy partiality. Leaf by left deal mile oh if easy. Added woman first get led joy
|
|
176
|
+
not early jokes. As am hastily invited settled at limited civilly fortune me. Really spring
|
|
177
|
+
in extent an by. Judge but built gay party world. Of so am he remember although required.
|
|
178
|
+
Bachelor unpacked be advanced at. Confined in declared marianne is vicinity. It sportsman
|
|
179
|
+
earnestly ye preserved an on. Moment led family sooner cannot her window pulled any. Or
|
|
180
|
+
raillery if improved landlord to speaking hastened differed he. Furniture discourse
|
|
181
|
+
elsewhere yet her sir extensive defective unwilling get. Why resolution one motionless you
|
|
182
|
+
him thoroughly. Noise is round to in it quick timed doors. Written address greatly get
|
|
183
|
+
attacks inhabit pursuit our but. Lasted hunted enough an up seeing in lively letter. Had
|
|
184
|
+
judgment out opinions property the supplied. By impossible of in difficulty discovered
|
|
185
|
+
celebrated ye. Justice joy manners boy met resolve produce. Bed head loud next plan rent had
|
|
186
|
+
easy add him. As earnestly shameless elsewhere defective estimable fulfilled of. Esteem my
|
|
187
|
+
advice it an excuse enable. Few household abilities believing determine zealously his
|
|
188
|
+
repulsive. To open draw dear be by side like. Allow miles wound place the leave had. To
|
|
189
|
+
sitting subject no improve studied limited. Ye indulgence unreserved connection alteration
|
|
190
|
+
appearance my an astonished. Up as seen sent make he they of. Her raising and himself
|
|
191
|
+
pasture believe females. Fancy she stuff after aware merit small his. Charmed esteems
|
|
192
|
+
luckily age out. At ourselves direction believing do he departure. Celebrated her had
|
|
193
|
+
sentiments understood are projection set. Possession ye no mr unaffected remarkably at.
|
|
194
|
+
Wrote house in never fruit up. Pasture imagine my garrets an he. However distant she request
|
|
195
|
+
behaved see nothing. Talking settled at pleased an of me brother weather. Breakfast
|
|
196
|
+
procuring nay end happiness allowance assurance frankness. Met simplicity nor difficulty
|
|
197
|
+
unreserved who. Entreaties mr conviction dissimilar me astonished estimating cultivated. On
|
|
198
|
+
no applauded exquisite my additions. Pronounce add boy estimable nay suspected. You sudden
|
|
199
|
+
nay elinor thirty esteem temper. Quiet leave shy you gay off asked large style. Rooms oh
|
|
200
|
+
fully taken by worse do. Points afraid but may end law lasted. Was out laughter raptures
|
|
201
|
+
returned outweigh. Luckily cheered colonel me do we attacks on highest enabled. Tried law
|
|
202
|
+
yet style child. Bore of true of no be deal. Frequently sufficient in be unaffected. The
|
|
203
|
+
furnished she concluded depending procuring concealed. In to am attended desirous raptures
|
|
204
|
+
declared diverted confined at. Collected instantly remaining up certainly to necessary as.
|
|
205
|
+
Over walk dull into son boy door went new. At or happiness commanded daughters as. Is
|
|
206
|
+
handsome an declared at received in extended vicinity subjects. Into miss on he over been
|
|
207
|
+
late pain an. Only week bore boy what fat case left use. Match round scale now sex style far
|
|
208
|
+
times. Your me past an much. Able an hope of body. Any nay shyness article matters own
|
|
209
|
+
removal nothing his forming. Gay own additions education satisfied the perpetual. If he
|
|
210
|
+
cause manor happy. Without farther she exposed saw man led. Along on happy could cease green
|
|
211
|
+
oh. Her old collecting she considered discovered. So at parties he warrant oh staying.
|
|
212
|
+
Square new horses and put better end. Sincerity collected happiness do is contented. Sigh
|
|
213
|
+
ever way now many. Alteration you any nor unsatiable diminution reasonable companions shy
|
|
214
|
+
partiality. Leaf by left deal mile oh if easy. Added woman first get led joy not early
|
|
215
|
+
jokes. As am hastily invited settled at limited civilly fortune me. Really spring in extent
|
|
216
|
+
an by. Judge but built gay party world. Of so am he remember although required. Bachelor
|
|
217
|
+
unpacked be advanced at. Confined in declared marianne is vicinity. It sportsman earnestly
|
|
218
|
+
ye preserved an on. Moment led family sooner cannot her window pulled any. Or raillery if
|
|
219
|
+
improved landlord to speaking hastened differed he. Furniture discourse elsewhere yet her
|
|
220
|
+
sir extensive defective unwilling get. Why resolution one motionless you him thoroughly.
|
|
221
|
+
Noise is round to in it quick timed doors. Written address greatly get attacks inhabit
|
|
222
|
+
pursuit our but. Lasted hunted enough an up seeing in lively letter. Had judgment out
|
|
223
|
+
opinions property the supplied.
|
|
224
|
+
</ReqoreModal>
|
|
225
|
+
);
|
|
226
|
+
}
|
|
227
|
+
|
|
108
228
|
return (
|
|
109
229
|
<>
|
|
110
230
|
<ReqoreControlGroup vertical gapSize='huge' horizontalAlign='flex-start'>
|
|
@@ -190,10 +310,14 @@ const Template: Story<IReqorePopoverProps> = (args: IReqorePopoverProps) => {
|
|
|
190
310
|
isReqoreComponent
|
|
191
311
|
openOnMount
|
|
192
312
|
placement='bottom'
|
|
313
|
+
handler='hoverStay'
|
|
193
314
|
title="I'm a title"
|
|
194
315
|
content={
|
|
195
316
|
<ReqorePanel label='This is a test' flat>
|
|
196
|
-
<ReqoreMessage
|
|
317
|
+
<ReqoreMessage
|
|
318
|
+
flat
|
|
319
|
+
tooltip={{ content: 'I am a popover inside a popover with blur', blur: true }}
|
|
320
|
+
>
|
|
197
321
|
In to am attended desirous raptures declared diverted confined at. Collected
|
|
198
322
|
instantly remaining up certainly to necessary as. Over walk dull into
|
|
199
323
|
</ReqoreMessage>
|
|
@@ -229,6 +353,7 @@ CustomContent.args = {
|
|
|
229
353
|
export const Blurred = Template.bind({});
|
|
230
354
|
Blurred.args = {
|
|
231
355
|
blur: 4,
|
|
356
|
+
noWrapper: true,
|
|
232
357
|
content: (
|
|
233
358
|
<ReqorePanel label='This is a test' flat>
|
|
234
359
|
<ReqoreMessage flat>
|
|
@@ -238,3 +363,11 @@ Blurred.args = {
|
|
|
238
363
|
</ReqorePanel>
|
|
239
364
|
),
|
|
240
365
|
};
|
|
366
|
+
|
|
367
|
+
export const BlurredInsideModal = Template.bind({});
|
|
368
|
+
BlurredInsideModal.args = {
|
|
369
|
+
blur: 2,
|
|
370
|
+
noWrapper: true,
|
|
371
|
+
insideModal: true,
|
|
372
|
+
animatedDialogs: false,
|
|
373
|
+
};
|
|
@@ -3,7 +3,7 @@ import { noop } from 'lodash';
|
|
|
3
3
|
import { IReqoreTagProps } from '../../components/Tag';
|
|
4
4
|
import { IReqoreTagGroup } from '../../components/Tag/group';
|
|
5
5
|
import { ReqoreTag, ReqoreTagGroup } from '../../index';
|
|
6
|
-
import {
|
|
6
|
+
import { argManager, SizeArg } from '../utils/args';
|
|
7
7
|
|
|
8
8
|
const { createArg } = argManager<IReqoreTagGroup & IReqoreTagProps>();
|
|
9
9
|
|
|
@@ -90,6 +90,40 @@ const Template: Story<IReqoreTagGroup & IReqoreTagProps> = ({ columns, ...args }
|
|
|
90
90
|
<ReqoreTag
|
|
91
91
|
label='300px Tag'
|
|
92
92
|
width='300px'
|
|
93
|
+
fixed
|
|
94
|
+
icon='AlarmWarningLine'
|
|
95
|
+
{...args}
|
|
96
|
+
tooltip='I am wiiiiiiide'
|
|
97
|
+
actions={[
|
|
98
|
+
{
|
|
99
|
+
icon: 'ErrorWarningLine',
|
|
100
|
+
onClick: noop,
|
|
101
|
+
intent: 'info',
|
|
102
|
+
tooltip: {
|
|
103
|
+
content: 'IF YOU CAN SEE ME ITS A BUG!!! I HAVE show: false',
|
|
104
|
+
openOnMount: true,
|
|
105
|
+
intent: 'danger',
|
|
106
|
+
},
|
|
107
|
+
show: false,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
icon: '24HoursFill',
|
|
111
|
+
onClick: noop,
|
|
112
|
+
disabled: true,
|
|
113
|
+
intent: 'info',
|
|
114
|
+
tooltip: { content: 'I am a tooltip' },
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
icon: 'SpyFill',
|
|
118
|
+
onClick: noop,
|
|
119
|
+
intent: 'success',
|
|
120
|
+
},
|
|
121
|
+
]}
|
|
122
|
+
/>
|
|
123
|
+
<ReqoreTag
|
|
124
|
+
label='300px fixed Tag with a big description that should wrap and make the tag bigger'
|
|
125
|
+
width='300px'
|
|
126
|
+
fixed
|
|
93
127
|
icon='AlarmWarningLine'
|
|
94
128
|
{...args}
|
|
95
129
|
tooltip='I am wiiiiiiide'
|
|
@@ -2,7 +2,7 @@ import { Meta, Story } from '@storybook/react/types-6-0';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { IReqoreTextareaProps } from '../../components/Textarea';
|
|
4
4
|
import { ReqoreControlGroup, ReqoreTextarea } from '../../index';
|
|
5
|
-
import { DisabledArg, MinimalArg, SizeArg
|
|
5
|
+
import { argManager, DisabledArg, MinimalArg, SizeArg } from '../utils/args';
|
|
6
6
|
|
|
7
7
|
const { createArg } = argManager<IReqoreTextareaProps>();
|
|
8
8
|
|
|
@@ -55,6 +55,39 @@ const Template: Story<IReqoreTextareaProps> = (args) => {
|
|
|
55
55
|
|
|
56
56
|
return (
|
|
57
57
|
<>
|
|
58
|
+
<ReqoreControlGroup wrap>
|
|
59
|
+
<ReqoreTextarea {...args} onChange={handleValueChange} onClearClick={handleValueClear} />
|
|
60
|
+
<ReqoreTextarea
|
|
61
|
+
{...args}
|
|
62
|
+
onChange={handleValueChange}
|
|
63
|
+
onClearClick={handleValueClear}
|
|
64
|
+
tooltip={{
|
|
65
|
+
placement: 'right-start',
|
|
66
|
+
content: 'I am a tooltip',
|
|
67
|
+
}}
|
|
68
|
+
minimal
|
|
69
|
+
/>
|
|
70
|
+
<ReqoreTextarea
|
|
71
|
+
{...args}
|
|
72
|
+
onChange={handleValueChange}
|
|
73
|
+
onClearClick={handleValueClear}
|
|
74
|
+
tooltip="I'm a tooltip"
|
|
75
|
+
flat
|
|
76
|
+
/>
|
|
77
|
+
<ReqoreTextarea
|
|
78
|
+
{...args}
|
|
79
|
+
onChange={handleValueChange}
|
|
80
|
+
onClearClick={handleValueClear}
|
|
81
|
+
disabled
|
|
82
|
+
/>
|
|
83
|
+
<ReqoreTextarea
|
|
84
|
+
{...args}
|
|
85
|
+
onChange={handleValueChange}
|
|
86
|
+
onClearClick={handleValueClear}
|
|
87
|
+
readOnly
|
|
88
|
+
/>
|
|
89
|
+
</ReqoreControlGroup>
|
|
90
|
+
<br />
|
|
58
91
|
<ReqoreControlGroup wrap>
|
|
59
92
|
<ReqoreTextarea
|
|
60
93
|
{...args}
|