@qoretechnologies/reqore 0.43.0 → 0.45.0

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.
Files changed (243) hide show
  1. package/dist/components/Button/index.d.ts +1 -0
  2. package/dist/components/Button/index.d.ts.map +1 -1
  3. package/dist/components/Button/index.js +6 -2
  4. package/dist/components/Button/index.js.map +1 -1
  5. package/dist/components/DatePicker/index.d.ts +29 -0
  6. package/dist/components/DatePicker/index.d.ts.map +1 -0
  7. package/dist/components/DatePicker/index.js +147 -0
  8. package/dist/components/DatePicker/index.js.map +1 -0
  9. package/dist/components/Effect/index.d.ts +1 -1
  10. package/dist/components/Effect/index.d.ts.map +1 -1
  11. package/dist/components/Effect/index.js.map +1 -1
  12. package/dist/components/Input/index.d.ts +3 -1
  13. package/dist/components/Input/index.d.ts.map +1 -1
  14. package/dist/components/Input/index.js +5 -1
  15. package/dist/components/Input/index.js.map +1 -1
  16. package/dist/components/InternalPopover/index.d.ts +2 -0
  17. package/dist/components/InternalPopover/index.d.ts.map +1 -1
  18. package/dist/components/InternalPopover/index.js +5 -4
  19. package/dist/components/InternalPopover/index.js.map +1 -1
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +1 -0
  23. package/dist/index.js.map +1 -1
  24. package/package.json +4 -1
  25. package/tests.json +1 -1
  26. package/.eslintrc.js +0 -40
  27. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  28. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  29. package/.github/ISSUE_TEMPLATE/new-component.md +0 -20
  30. package/.github/ISSUE_TEMPLATE/visual-bug-report.md +0 -38
  31. package/.github/workflows/beta_release.yml +0 -100
  32. package/.github/workflows/tests.yml +0 -84
  33. package/.gitpod.yml +0 -11
  34. package/.jest-test-results.json +0 -1
  35. package/.prettierrc +0 -7
  36. package/.vscode/settings.json +0 -0
  37. package/__tests__/breadcrumbs.test.tsx +0 -75
  38. package/__tests__/button.test.tsx +0 -218
  39. package/__tests__/checkbox.test.tsx +0 -45
  40. package/__tests__/collection.test.tsx +0 -243
  41. package/__tests__/containers/paging.test.tsx +0 -138
  42. package/__tests__/control_group.test.tsx +0 -32
  43. package/__tests__/drawer.test.tsx +0 -140
  44. package/__tests__/dropdown.test.tsx +0 -381
  45. package/__tests__/effect.test.tsx +0 -70
  46. package/__tests__/heading.test.tsx +0 -58
  47. package/__tests__/helpers/colors.test.tsx +0 -18
  48. package/__tests__/helpers/table.test.tsx +0 -67
  49. package/__tests__/hooks/useLatestZIndex.test.tsx +0 -10
  50. package/__tests__/hooks/useReqorePaging.test.tsx +0 -271
  51. package/__tests__/hooks/useTheme.test.tsx +0 -31
  52. package/__tests__/icon.test.tsx +0 -53
  53. package/__tests__/input.test.tsx +0 -482
  54. package/__tests__/layout.test.tsx +0 -37
  55. package/__tests__/menu.test.tsx +0 -65
  56. package/__tests__/messages.test.tsx +0 -79
  57. package/__tests__/modal.test.tsx +0 -204
  58. package/__tests__/multiselect.test.tsx +0 -458
  59. package/__tests__/navbar.test.tsx +0 -31
  60. package/__tests__/notifications.test.tsx +0 -178
  61. package/__tests__/pagination.test.tsx +0 -437
  62. package/__tests__/panel.test.tsx +0 -243
  63. package/__tests__/popover.test.tsx +0 -282
  64. package/__tests__/radiogroup.test.tsx +0 -47
  65. package/__tests__/setup.js +0 -8
  66. package/__tests__/stories/Collection.stories.tsx +0 -0
  67. package/__tests__/table.test.tsx +0 -647
  68. package/__tests__/tabs.test.tsx +0 -321
  69. package/__tests__/tag.test.tsx +0 -160
  70. package/__tests__/textarea.test.tsx +0 -467
  71. package/__tests__/timeAgo.test.tsx +0 -27
  72. package/__tests__/tree.test.tsx +0 -58
  73. package/build-storybook.log +0 -491
  74. package/chromatic.config.json +0 -1
  75. package/icons.ts +0 -1
  76. package/migration-storybook.log +0 -56
  77. package/public/logo-dark.png +0 -0
  78. package/public/logo.png +0 -0
  79. package/public/q-symbol-small.png +0 -0
  80. package/public/q-symbol.png +0 -0
  81. package/public/qoreLogo-dark.png +0 -0
  82. package/public/qoreLogo.png +0 -0
  83. package/src/components/Breadcrumbs/index.tsx +0 -254
  84. package/src/components/Breadcrumbs/item.tsx +0 -44
  85. package/src/components/Button/index.tsx +0 -628
  86. package/src/components/Checkbox/index.tsx +0 -388
  87. package/src/components/Collection/index.tsx +0 -426
  88. package/src/components/Collection/item.tsx +0 -267
  89. package/src/components/Columns/column.tsx +0 -27
  90. package/src/components/Columns/index.tsx +0 -41
  91. package/src/components/Comment/index.tsx +0 -141
  92. package/src/components/CommentFeed/index.tsx +0 -34
  93. package/src/components/Content/index.tsx +0 -34
  94. package/src/components/Content/wrapper.tsx +0 -36
  95. package/src/components/ControlGroup/index.tsx +0 -523
  96. package/src/components/Drawer/backdrop.tsx +0 -54
  97. package/src/components/Drawer/index.tsx +0 -365
  98. package/src/components/Dropdown/index.tsx +0 -153
  99. package/src/components/Dropdown/item.tsx +0 -33
  100. package/src/components/Dropdown/list.tsx +0 -222
  101. package/src/components/Effect/index.tsx +0 -463
  102. package/src/components/ExportModal/index.tsx +0 -99
  103. package/src/components/Header/index.tsx +0 -81
  104. package/src/components/Icon/index.tsx +0 -184
  105. package/src/components/Input/index.tsx +0 -282
  106. package/src/components/InputClearButton/index.tsx +0 -59
  107. package/src/components/InternalPopover/index.tsx +0 -303
  108. package/src/components/KeyValueTable/index.tsx +0 -192
  109. package/src/components/Label/index.tsx +0 -10
  110. package/src/components/Layout/content.tsx +0 -31
  111. package/src/components/Layout/index.tsx +0 -55
  112. package/src/components/Menu/divider.tsx +0 -92
  113. package/src/components/Menu/index.tsx +0 -141
  114. package/src/components/Menu/item.tsx +0 -137
  115. package/src/components/Menu/section.tsx +0 -81
  116. package/src/components/Message/index.tsx +0 -220
  117. package/src/components/Modal/index.tsx +0 -26
  118. package/src/components/MultiSelect/index.tsx +0 -288
  119. package/src/components/Navbar/divider.tsx +0 -50
  120. package/src/components/Navbar/group.tsx +0 -53
  121. package/src/components/Navbar/index.tsx +0 -82
  122. package/src/components/Navbar/item.tsx +0 -92
  123. package/src/components/Notifications/index.tsx +0 -57
  124. package/src/components/Notifications/notification.tsx +0 -362
  125. package/src/components/Paging/index.tsx +0 -321
  126. package/src/components/Panel/LabelEditor.tsx +0 -67
  127. package/src/components/Panel/NonResponsiveActions.tsx +0 -79
  128. package/src/components/Panel/__screenshots__/linux/panel-SomePanel.png +0 -0
  129. package/src/components/Panel/index.tsx +0 -912
  130. package/src/components/Panel/panel.screenshot.tsx +0 -29
  131. package/src/components/Paragraph/index.tsx +0 -43
  132. package/src/components/Popover/index.tsx +0 -68
  133. package/src/components/RadioGroup/index.tsx +0 -71
  134. package/src/components/Slider/index.tsx +0 -358
  135. package/src/components/Spacer/index.tsx +0 -142
  136. package/src/components/Spinner/index.tsx +0 -74
  137. package/src/components/Table/body.tsx +0 -109
  138. package/src/components/Table/cell.tsx +0 -136
  139. package/src/components/Table/header.tsx +0 -236
  140. package/src/components/Table/headerCell.tsx +0 -203
  141. package/src/components/Table/helpers.ts +0 -308
  142. package/src/components/Table/index.tsx +0 -797
  143. package/src/components/Table/row.tsx +0 -288
  144. package/src/components/Table/value.tsx +0 -28
  145. package/src/components/Tabs/content.tsx +0 -68
  146. package/src/components/Tabs/index.tsx +0 -124
  147. package/src/components/Tabs/item.tsx +0 -198
  148. package/src/components/Tabs/list.tsx +0 -381
  149. package/src/components/Tag/group.tsx +0 -73
  150. package/src/components/Tag/index.tsx +0 -463
  151. package/src/components/Textarea/index.tsx +0 -277
  152. package/src/components/TimeAgo/index.tsx +0 -15
  153. package/src/components/Tree/index.tsx +0 -271
  154. package/src/constants/animations.ts +0 -9
  155. package/src/constants/colors.ts +0 -13
  156. package/src/constants/paging.ts +0 -93
  157. package/src/constants/sizes.ts +0 -185
  158. package/src/constants/theme.ts +0 -122
  159. package/src/containers/Paging.tsx +0 -136
  160. package/src/containers/PopoverProvider.tsx +0 -124
  161. package/src/containers/ReqoreProvider.tsx +0 -289
  162. package/src/containers/ThemeProvider.tsx +0 -12
  163. package/src/containers/UIProvider.tsx +0 -101
  164. package/src/context/PopoverContext.tsx +0 -11
  165. package/src/context/ReqoreContext.tsx +0 -47
  166. package/src/context/ThemeContext.tsx +0 -4
  167. package/src/helpers/animations.ts +0 -13
  168. package/src/helpers/colors.ts +0 -335
  169. package/src/helpers/time.ts +0 -21
  170. package/src/helpers/utils.ts +0 -152
  171. package/src/hooks/useAutoFocus.ts +0 -106
  172. package/src/hooks/useCloneThroughFragments.ts +0 -39
  173. package/src/hooks/useCombinedRefs.ts +0 -26
  174. package/src/hooks/useLatestZIndex.ts +0 -13
  175. package/src/hooks/useOutsideClick.ts +0 -29
  176. package/src/hooks/usePaging.ts +0 -128
  177. package/src/hooks/usePopover.tsx +0 -220
  178. package/src/hooks/useQueryWithDelay.ts +0 -30
  179. package/src/hooks/useReqore.ts +0 -12
  180. package/src/hooks/useReqoreContext.ts +0 -16
  181. package/src/hooks/useReqoreEffect.ts +0 -49
  182. package/src/hooks/useTextareaAutoSize.ts +0 -22
  183. package/src/hooks/useTheme.ts +0 -48
  184. package/src/hooks/useTooltip.ts +0 -40
  185. package/src/hooks/useWhyDidYouUpdate.ts +0 -32
  186. package/src/icons.json +0 -2295
  187. package/src/index.tsx +0 -79
  188. package/src/mock/breadcrumbs.ts +0 -146
  189. package/src/mock/collectionData.tsx +0 -380
  190. package/src/mock/data.json +0 -11000
  191. package/src/mock/icons.ts +0 -32
  192. package/src/mock/menu.ts +0 -93
  193. package/src/mock/multiSelect.ts +0 -71
  194. package/src/mock/object.json +0 -317
  195. package/src/mock/styleMock.js +0 -1
  196. package/src/mock/tableData.ts +0 -64
  197. package/src/stories/Breadcrumbs/Breadcrumbs.stories.tsx +0 -27
  198. package/src/stories/Button/Button.stories.tsx +0 -405
  199. package/src/stories/Checkbox/Checkbox.stories.tsx +0 -75
  200. package/src/stories/Collection/Collection.stories.tsx +0 -317
  201. package/src/stories/Columns/Columns.stories.tsx +0 -158
  202. package/src/stories/Comment/Comment.stories.tsx +0 -136
  203. package/src/stories/ControlGroup/ControlGroup.stories.tsx +0 -399
  204. package/src/stories/Drawer/Drawer.stories.tsx +0 -294
  205. package/src/stories/Dropdown/Dropdown.stories.tsx +0 -375
  206. package/src/stories/Dropdown/DropdownTests.stories.tsx +0 -111
  207. package/src/stories/ExportModal/ExportModal.stories.tsx +0 -18
  208. package/src/stories/Header/Header.stories.tsx +0 -108
  209. package/src/stories/Icon/Icon.stories.tsx +0 -162
  210. package/src/stories/Input/Input.stories.tsx +0 -220
  211. package/src/stories/KeyValueTable/KeyValueTable.stories.tsx +0 -346
  212. package/src/stories/Label/Label.stories.tsx +0 -33
  213. package/src/stories/Menu/Menu.stories.tsx +0 -367
  214. package/src/stories/Message/Message.stories.tsx +0 -167
  215. package/src/stories/Modal/Manager.stories.tsx +0 -192
  216. package/src/stories/Modal/Modal.stories.tsx +0 -252
  217. package/src/stories/MultiSelect/MultiSelect.stories.tsx +0 -140
  218. package/src/stories/Navbar/Navbar.stories.tsx +0 -119
  219. package/src/stories/Notifications/Interactive.stories.tsx +0 -117
  220. package/src/stories/Notifications/Notification.stories.tsx +0 -216
  221. package/src/stories/Notifications/Notifications.stories.tsx +0 -81
  222. package/src/stories/Paging/Paging.stories.tsx +0 -255
  223. package/src/stories/Panel/Panel.stories.tsx +0 -753
  224. package/src/stories/Paragraph/Paragraph.stories.tsx +0 -108
  225. package/src/stories/Popover/Popover.stories.tsx +0 -510
  226. package/src/stories/RadioGroup/RadioGroup.stories.tsx +0 -212
  227. package/src/stories/Slider/Slider.stories.tsx +0 -173
  228. package/src/stories/Spacer/Spacer.stories.tsx +0 -100
  229. package/src/stories/Spinner/Spinner.stories.tsx +0 -82
  230. package/src/stories/Table/Table.stories.tsx +0 -571
  231. package/src/stories/Tabs/Tabs.stories.tsx +0 -346
  232. package/src/stories/Tag/Tag.stories.tsx +0 -381
  233. package/src/stories/Tag/TagGroup.stories.tsx +0 -307
  234. package/src/stories/TextArea/TextArea.stories.tsx +0 -287
  235. package/src/stories/TextArea/TextAreaTests.stories.tsx +0 -108
  236. package/src/stories/Tree/Tree.stories.tsx +0 -124
  237. package/src/stories/Wrapper.tsx +0 -13
  238. package/src/stories/utils/args.ts +0 -151
  239. package/src/stories/utils.ts +0 -39
  240. package/src/styles.ts +0 -124
  241. package/src/types/global.ts +0 -211
  242. package/src/types/icons.ts +0 -2272
  243. package/tsconfig.prod.json +0 -26
@@ -1,108 +0,0 @@
1
- import { StoryFn, StoryObj } from '@storybook/react';
2
- import { IReqoreParagraphProps } from '../../components/Paragraph';
3
- import { ReqoreParagraph, ReqoreVerticalSpacer } from '../../index';
4
- import { StoryMeta } from '../utils';
5
- import { IntentArg } from '../utils/args';
6
-
7
- const meta = {
8
- title: 'Other/Paragraph/Stories',
9
- component: ReqoreParagraph,
10
- argTypes: {
11
- ...IntentArg,
12
- },
13
- } as StoryMeta<typeof ReqoreParagraph>;
14
-
15
- export default meta;
16
- type Story = StoryObj<typeof meta>;
17
-
18
- const Template: StoryFn<IReqoreParagraphProps> = (args) => {
19
- return (
20
- <>
21
- <ReqoreParagraph size='tiny' {...args}>
22
- This is a paragraph of some text
23
- </ReqoreParagraph>
24
- <ReqoreVerticalSpacer height={10} />
25
- <ReqoreParagraph size='small' {...args}>
26
- This is a paragraph of some text
27
- </ReqoreParagraph>
28
- <ReqoreVerticalSpacer height={10} />
29
- <ReqoreParagraph size='normal' {...args}>
30
- This is a paragraph of some text
31
- </ReqoreParagraph>
32
- <ReqoreVerticalSpacer height={10} />
33
- <ReqoreParagraph size='big' {...args}>
34
- This is a paragraph of some text
35
- </ReqoreParagraph>
36
- <ReqoreVerticalSpacer height={10} />
37
- <ReqoreParagraph size='huge' {...args}>
38
- This is a paragraph of some text
39
- </ReqoreParagraph>
40
- </>
41
- );
42
- };
43
-
44
- export const Basic: Story = {
45
- render: Template,
46
- };
47
-
48
- export const Success: Story = {
49
- render: Template,
50
-
51
- args: {
52
- intent: 'success',
53
- },
54
- };
55
-
56
- export const Danger: Story = {
57
- render: Template,
58
-
59
- args: {
60
- intent: 'danger',
61
- },
62
- };
63
-
64
- export const Warning: Story = {
65
- render: Template,
66
-
67
- args: {
68
- intent: 'warning',
69
- },
70
- };
71
-
72
- export const Info: Story = {
73
- render: Template,
74
-
75
- args: {
76
- intent: 'info',
77
- },
78
- };
79
-
80
- export const Pending: Story = {
81
- render: Template,
82
-
83
- args: {
84
- intent: 'pending',
85
- },
86
- };
87
-
88
- export const Muted: Story = {
89
- render: Template,
90
-
91
- args: {
92
- intent: 'muted',
93
- },
94
- };
95
-
96
- export const Effect: Story = {
97
- render: Template,
98
-
99
- args: {
100
- effect: {
101
- gradient: { colors: { 0: '#5e0acc', 100: '#c008c0' } },
102
- spaced: 4,
103
- weight: 'bold',
104
- uppercase: true,
105
- textSize: '40px',
106
- },
107
- },
108
- };
@@ -1,510 +0,0 @@
1
- import { expect } from '@storybook/jest';
2
- import { StoryFn, StoryObj } from '@storybook/react';
3
- import { fireEvent, within } from '@storybook/testing-library';
4
- import { useState } from 'react';
5
- import { useMount } from 'react-use';
6
- import { IReqorePopoverProps } from '../../components/Popover';
7
- import { sleep } from '../../helpers/utils';
8
- import usePopover from '../../hooks/usePopover';
9
- import {
10
- ReqoreButton,
11
- ReqoreControlGroup,
12
- ReqoreMenu,
13
- ReqoreMenuItem,
14
- ReqoreMessage,
15
- ReqoreModal,
16
- ReqorePanel,
17
- ReqorePopover,
18
- ReqoreSpacer,
19
- ReqoreTextarea,
20
- } from '../../index';
21
- import { IReqoreTooltip } from '../../types/global';
22
- import { StoryMeta } from '../utils';
23
- import { FlatArg, argManager } from '../utils/args';
24
-
25
- const { createArg } = argManager<IReqorePopoverProps>();
26
-
27
- const meta = {
28
- title: 'Other/Popover/Stories',
29
- component: ReqorePopover,
30
- args: {
31
- content: 'This is a popover',
32
- flat: true,
33
- },
34
- argTypes: {
35
- ...createArg('transparent', {
36
- defaultValue: false,
37
- name: 'Transparent',
38
- description: 'Makes the popover transparent',
39
- type: 'boolean',
40
- }),
41
- ...createArg('blur', {
42
- defaultValue: false,
43
- name: 'Blur',
44
- description: 'Makes the popover blurred',
45
- type: 'boolean',
46
- }),
47
- ...createArg('maxHeight', {
48
- defaultValue: undefined,
49
- name: 'Max Height',
50
- description: 'Sets the max height of the popover',
51
- type: 'string',
52
- }),
53
- ...createArg('maxWidth', {
54
- defaultValue: undefined,
55
- name: 'Max Width',
56
- description: 'Sets the max width of the popover',
57
- type: 'string',
58
- }),
59
- ...createArg('content', {
60
- defaultValue: 'This is a popover',
61
- name: 'Content',
62
- description: 'The content of the popover',
63
- type: 'string',
64
- }),
65
- ...FlatArg,
66
- },
67
- } as StoryMeta<typeof ReqorePopover>;
68
-
69
- type Story = StoryObj<typeof meta>;
70
- export default meta;
71
-
72
- const HoverButton = (args: any) => {
73
- return (
74
- <ReqorePopover component={ReqoreButton} isReqoreComponent {...args} fixed>
75
- Hover popover
76
- </ReqorePopover>
77
- );
78
- };
79
-
80
- const ClickButton = (args: any) => {
81
- const [refElement, setRefElement] = useState(null);
82
-
83
- usePopover({
84
- targetElement: refElement,
85
- handler: 'click',
86
- closeOnOutsideClick: true,
87
- noArrow: true,
88
- useTargetWidth: true,
89
- ...args,
90
- });
91
-
92
- return <ReqoreButton ref={setRefElement}>Click popover</ReqoreButton>;
93
- };
94
-
95
- const DelayButton = (args: any) => {
96
- const [refElement, setRefElement] = useState(null);
97
-
98
- usePopover({
99
- targetElement: refElement,
100
-
101
- delay: 500,
102
- ...args,
103
- });
104
-
105
- return <ReqoreButton ref={setRefElement}>Tooltip with delay of 500ms</ReqoreButton>;
106
- };
107
-
108
- const HoverStayButton = (args: any) => {
109
- const [refElement, setRefElement] = useState(null);
110
-
111
- usePopover({
112
- targetElement: refElement,
113
- handler: 'hoverStay',
114
- ...args,
115
- });
116
-
117
- return (
118
- <ReqoreButton ref={setRefElement}>Tooltip with hover start and click end events</ReqoreButton>
119
- );
120
- };
121
-
122
- const Template: StoryFn<IReqorePopoverProps & { insideModal?: boolean }> = (
123
- args: IReqorePopoverProps & { insideModal?: boolean }
124
- ) => {
125
- if (args.insideModal) {
126
- return (
127
- <ReqoreModal isOpen>
128
- <ReqoreButton
129
- intent='info'
130
- minimal
131
- description='I have a cool tooltip with blur'
132
- tooltip={{
133
- content: 'See? Told you',
134
- blur: true,
135
- handler: 'hoverStay',
136
- openOnMount: true,
137
- }}
138
- >
139
- Hover me for something cool
140
- </ReqoreButton>
141
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
142
- labore et dolore magna aliqua. Sit amet purus gravida quis blandit turpis cursus in hac.
143
- Ultricies lacus sed turpis tincidunt. Ac tincidunt vitae semper quis lectus nulla at.
144
- Aliquam vestibulum morbi blandit cursus risus at ultrices. Risus feugiat in ante metus
145
- dictum. Enim blandit volutpat maecenas volutpat. Nulla posuere sollicitudin aliquam ultrices
146
- sagittis orci a scelerisque. Mollis nunc sed id semper risus in hendrerit gravida. Sem nulla
147
- pharetra diam sit amet nisl suscipit. Congue eu consequat ac felis donec et odio
148
- pellentesque diam. Augue mauris augue neque gravida in fermentum et sollicitudin. Nulla
149
- pellentesque dignissim enim sit amet venenatis urna. Nunc sed blandit libero volutpat sed.
150
- Mi in nulla posuere sollicitudin. Eu consequat ac felis donec et odio pellentesque diam.
151
- Viverra nam libero justo laoreet sit amet cursus sit amet. Posuere sollicitudin aliquam
152
- ultrices sagittis orci a scelerisque. Et netus et malesuada fames ac. Arcu non odio euismod
153
- lacinia at quis risus sed vulputate. Sapien eget mi proin sed libero enim sed. Suspendisse
154
- faucibus interdum posuere lorem ipsum. In est ante in nibh mauris cursus. Urna cursus eget
155
- nunc scelerisque. Mi eget mauris pharetra et ultrices neque. Turpis nunc eget lorem dolor
156
- sed viverra ipsum nunc aliquet. Id aliquet lectus proin nibh. At auctor urna nunc id cursus.
157
- Erat pellentesque adipiscing commodo elit at imperdiet. Ipsum dolor sit amet consectetur
158
- adipiscing elit. Suspendisse interdum consectetur libero id faucibus nisl. Leo vel orci
159
- porta non pulvinar neque laoreet. Ut diam quam nulla porttitor massa. By impossible of in
160
- difficulty discovered celebrated ye. Justice joy manners boy met resolve produce. Bed head
161
- loud next plan rent had easy add him. As earnestly shameless elsewhere defective estimable
162
- fulfilled of. Esteem my advice it an excuse enable. Few household abilities believing
163
- determine zealously his repulsive. To open draw dear be by side like. Allow miles wound
164
- place the leave had. To sitting subject no improve studied limited. Ye indulgence unreserved
165
- connection alteration appearance my an astonished. Up as seen sent make he they of. Her
166
- raising and himself pasture believe females. Fancy she stuff after aware merit small his.
167
- Charmed esteems luckily age out. At ourselves direction believing do he departure.
168
- Celebrated her had sentiments understood are projection set. Possession ye no mr unaffected
169
- remarkably at. Wrote house in never fruit up. Pasture imagine my garrets an he. However
170
- distant she request behaved see nothing. Talking settled at pleased an of me brother
171
- weather. Breakfast procuring nay end happiness allowance assurance frankness. Met simplicity
172
- nor difficulty unreserved who. Entreaties mr conviction dissimilar me astonished estimating
173
- cultivated. On no applauded exquisite my additions. Pronounce add boy estimable nay
174
- suspected. You sudden nay elinor thirty esteem temper. Quiet leave shy you gay off asked
175
- large style. Rooms oh fully taken by worse do. Points afraid but may end law lasted. Was out
176
- laughter raptures returned outweigh. Luckily cheered colonel me do we attacks on highest
177
- enabled. Tried law yet style child. Bore of true of no be deal. Frequently sufficient in be
178
- unaffected. The furnished she concluded depending procuring concealed. In to am attended
179
- desirous raptures declared diverted confined at. Collected instantly remaining up certainly
180
- to necessary as. Over walk dull into son boy door went new. At or happiness commanded
181
- daughters as. Is handsome an declared at received in extended vicinity subjects. Into miss
182
- on he over been late pain an. Only week bore boy what fat case left use. Match round scale
183
- now sex style far times. Your me past an much. Able an hope of body. Any nay shyness article
184
- matters own removal nothing his forming. Gay own additions education satisfied the
185
- perpetual. If he cause manor happy. Without farther she exposed saw man led. Along on happy
186
- could cease green oh. Her old collecting she considered discovered. So at parties he warrant
187
- oh staying. Square new horses and put better end. Sincerity collected happiness do is
188
- contented. Sigh ever way now many. Alteration you any nor unsatiable diminution reasonable
189
- companions shy partiality. Leaf by left deal mile oh if easy. Added woman first get led joy
190
- not early jokes. As am hastily invited settled at limited civilly fortune me. Really spring
191
- in extent an by. Judge but built gay party world. Of so am he remember although required.
192
- Bachelor unpacked be advanced at. Confined in declared marianne is vicinity. It sportsman
193
- earnestly ye preserved an on. Moment led family sooner cannot her window pulled any. Or
194
- raillery if improved landlord to speaking hastened differed he. Furniture discourse
195
- elsewhere yet her sir extensive defective unwilling get. Why resolution one motionless you
196
- him thoroughly. Noise is round to in it quick timed doors. Written address greatly get
197
- attacks inhabit pursuit our but. Lasted hunted enough an up seeing in lively letter. Had
198
- judgment out opinions property the supplied. By impossible of in difficulty discovered
199
- celebrated ye. Justice joy manners boy met resolve produce. Bed head loud next plan rent had
200
- easy add him. As earnestly shameless elsewhere defective estimable fulfilled of. Esteem my
201
- advice it an excuse enable. Few household abilities believing determine zealously his
202
- repulsive. To open draw dear be by side like. Allow miles wound place the leave had. To
203
- sitting subject no improve studied limited. Ye indulgence unreserved connection alteration
204
- appearance my an astonished. Up as seen sent make he they of. Her raising and himself
205
- pasture believe females. Fancy she stuff after aware merit small his. Charmed esteems
206
- luckily age out. At ourselves direction believing do he departure. Celebrated her had
207
- sentiments understood are projection set. Possession ye no mr unaffected remarkably at.
208
- Wrote house in never fruit up. Pasture imagine my garrets an he. However distant she request
209
- behaved see nothing. Talking settled at pleased an of me brother weather. Breakfast
210
- procuring nay end happiness allowance assurance frankness. Met simplicity nor difficulty
211
- unreserved who. Entreaties mr conviction dissimilar me astonished estimating cultivated. On
212
- no applauded exquisite my additions. Pronounce add boy estimable nay suspected. You sudden
213
- nay elinor thirty esteem temper. Quiet leave shy you gay off asked large style. Rooms oh
214
- fully taken by worse do. Points afraid but may end law lasted. Was out laughter raptures
215
- returned outweigh. Luckily cheered colonel me do we attacks on highest enabled. Tried law
216
- yet style child. Bore of true of no be deal. Frequently sufficient in be unaffected. The
217
- furnished she concluded depending procuring concealed. In to am attended desirous raptures
218
- declared diverted confined at. Collected instantly remaining up certainly to necessary as.
219
- Over walk dull into son boy door went new. At or happiness commanded daughters as. Is
220
- handsome an declared at received in extended vicinity subjects. Into miss on he over been
221
- late pain an. Only week bore boy what fat case left use. Match round scale now sex style far
222
- times. Your me past an much. Able an hope of body. Any nay shyness article matters own
223
- removal nothing his forming. Gay own additions education satisfied the perpetual. If he
224
- cause manor happy. Without farther she exposed saw man led. Along on happy could cease green
225
- oh. Her old collecting she considered discovered. So at parties he warrant oh staying.
226
- Square new horses and put better end. Sincerity collected happiness do is contented. Sigh
227
- ever way now many. Alteration you any nor unsatiable diminution reasonable companions shy
228
- partiality. Leaf by left deal mile oh if easy. Added woman first get led joy not early
229
- jokes. As am hastily invited settled at limited civilly fortune me. Really spring in extent
230
- an by. Judge but built gay party world. Of so am he remember although required. Bachelor
231
- unpacked be advanced at. Confined in declared marianne is vicinity. It sportsman earnestly
232
- ye preserved an on. Moment led family sooner cannot her window pulled any. Or raillery if
233
- improved landlord to speaking hastened differed he. Furniture discourse elsewhere yet her
234
- sir extensive defective unwilling get. Why resolution one motionless you him thoroughly.
235
- Noise is round to in it quick timed doors. Written address greatly get attacks inhabit
236
- pursuit our but. Lasted hunted enough an up seeing in lively letter. Had judgment out
237
- opinions property the supplied.
238
- </ReqoreModal>
239
- );
240
- }
241
-
242
- return (
243
- <>
244
- <ReqoreControlGroup vertical gapSize='huge' horizontalAlign='flex-start'>
245
- <HoverButton {...args} />
246
- <ClickButton {...args} />
247
- <DelayButton {...args} />
248
- <HoverStayButton {...args} />
249
- {typeof args.content === 'string' && (
250
- <>
251
- <ReqoreSpacer height={100} />
252
- <ReqorePopover
253
- {...args}
254
- component={ReqoreButton}
255
- isReqoreComponent
256
- openOnMount
257
- title='I opened on my own'
258
- icon='CactusFill'
259
- intent='success'
260
- placement='top'
261
- >
262
- Full popover
263
- </ReqorePopover>
264
- <ReqoreControlGroup>
265
- <ReqoreSpacer width={190} />
266
- <ReqorePopover
267
- {...args}
268
- component={ReqoreButton}
269
- isReqoreComponent
270
- openOnMount
271
- intent='info'
272
- minimal
273
- placement='left'
274
- >
275
- Minimal popover
276
- </ReqorePopover>
277
- </ReqoreControlGroup>
278
- <ReqorePopover
279
- {...args}
280
- component={ReqoreButton}
281
- isReqoreComponent
282
- openOnMount
283
- icon='CactusFill'
284
- effect={{
285
- gradient: {
286
- colors: {
287
- 0: 'warning',
288
- 100: 'warning:darken:2',
289
- },
290
- },
291
- spaced: 2,
292
- uppercase: true,
293
- weight: 'thick',
294
- }}
295
- placement='right'
296
- >
297
- Effect popover
298
- </ReqorePopover>
299
- <ReqorePopover
300
- {...args}
301
- component={ReqoreButton}
302
- isReqoreComponent
303
- openOnMount
304
- transparent
305
- placement='right'
306
- >
307
- Transparent popover
308
- </ReqorePopover>
309
- </>
310
- )}
311
- <ReqorePopover
312
- {...args}
313
- component={ReqoreButton}
314
- isReqoreComponent
315
- openOnMount
316
- placement='right'
317
- >
318
- Auto open popover
319
- </ReqorePopover>
320
- <ReqorePanel label='This is a test' flat>
321
- <ReqorePopover
322
- {...args}
323
- component={ReqoreButton}
324
- isReqoreComponent
325
- openOnMount
326
- placement='bottom'
327
- handler='hoverStay'
328
- title="I'm a title"
329
- content={
330
- <ReqorePanel label='This is a test' flat>
331
- <ReqoreMessage
332
- flat
333
- tooltip={{ content: 'I am a popover inside a popover with blur', blur: true }}
334
- >
335
- In to am attended desirous raptures declared diverted confined at. Collected
336
- instantly remaining up certainly to necessary as. Over walk dull into
337
- </ReqoreMessage>
338
- </ReqorePanel>
339
- }
340
- >
341
- With Custom Content inside a panel
342
- </ReqorePopover>
343
- </ReqorePanel>
344
- </ReqoreControlGroup>
345
- </>
346
- );
347
- };
348
-
349
- export const Basic: Story = {
350
- render: Template,
351
- };
352
-
353
- export const NotFlat: Story = {
354
- render: Template,
355
-
356
- args: {
357
- flat: false,
358
- },
359
- };
360
-
361
- export const CustomContent: Story = {
362
- render: Template,
363
-
364
- args: {
365
- noWrapper: true,
366
- content: (
367
- <ReqorePanel label='This is a test' flat>
368
- <ReqoreMessage flat>
369
- In to am attended desirous raptures declared diverted confined at. Collected instantly
370
- remaining up certainly to necessary as. Over walk dull into
371
- </ReqoreMessage>
372
- </ReqorePanel>
373
- ),
374
- },
375
- };
376
-
377
- export const Blurred: Story = {
378
- render: Template,
379
-
380
- args: {
381
- blur: true,
382
- noWrapper: true,
383
- content: (
384
- <ReqorePanel label='This is a test' flat>
385
- <ReqoreMessage flat>
386
- In to am attended desirous raptures declared diverted confined at. Collected instantly
387
- remaining up certainly to necessary as. Over walk dull into
388
- </ReqoreMessage>
389
- </ReqorePanel>
390
- ),
391
- },
392
- };
393
-
394
- export const BlurredInsideModal: Story = {
395
- render: Template,
396
-
397
- args: {
398
- blur: true,
399
- noWrapper: true,
400
- insideModal: true,
401
- animatedDialogs: false,
402
- },
403
- };
404
-
405
- export const ChangingElement: Story = {
406
- render: (args) => {
407
- return <ReqoreTextarea scaleWithContent tooltip={args} />;
408
- },
409
-
410
- args: {
411
- content: (
412
- <ReqoreMenu>
413
- <ReqoreMenuItem label='Item 1' />
414
- <ReqoreMenuItem label='Item 2' />
415
- <ReqoreMenuItem label='Item 3' />
416
- <ReqoreMenuItem label='Item 4' />
417
- <ReqoreMenuItem label='Item 5' />
418
- <ReqoreMenuItem label='Item 6' />
419
- </ReqoreMenu>
420
- ),
421
- handler: 'focus',
422
- noArrow: true,
423
- noWrapper: true,
424
- useTargetWidth: true,
425
- },
426
-
427
- play: async ({ canvasElement }) => {
428
- const textarea = canvasElement.querySelector('textarea');
429
- await sleep(1000);
430
- fireEvent.focusIn(textarea);
431
- await sleep(1000);
432
- fireEvent.change(textarea, {
433
- target: {
434
- value:
435
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl eget aliquam tincidunt, nunc nisl aliquet nunc, quis aliquam nisl nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl eget aliquam tincidunt, nunc nisl aliquet nunc, quis aliquam nisl nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl eget aliquam tincidunt, nunc nisl aliquet nunc, quis aliquam nisl nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl eget aliquam tincidunt, nunc nisl aliquet nunc, quis aliquam nisl nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl eget aliquam tincidunt, nunc nisl aliquet nunc, quis aliquam nisl nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl eget aliquam tincidunt, nunc nisl aliquet nunc, quis aliquam nisl nisl.',
436
- },
437
- });
438
- },
439
- };
440
-
441
- export const TooltipIsUpdatedWhenContentChanges: Story = {
442
- render: (args) => {
443
- const [tooltip, setTooltip] = useState<IReqoreTooltip>({
444
- content: 'test',
445
- handler: 'focus',
446
- noArrow: true,
447
- noWrapper: true,
448
- useTargetWidth: true,
449
- });
450
-
451
- useMount(() => {
452
- setTimeout(() => {
453
- setTooltip({
454
- content: <ReqoreMessage> I just updated </ReqoreMessage>,
455
- handler: 'focus',
456
- noArrow: true,
457
- noWrapper: true,
458
- useTargetWidth: true,
459
- });
460
- }, 1500);
461
- });
462
-
463
- return <ReqoreTextarea tooltip={tooltip} />;
464
- },
465
-
466
- play: async ({ canvasElement }) => {
467
- const canvas = within(canvasElement);
468
- const textarea = canvasElement.querySelector('textarea');
469
- await sleep(500);
470
- fireEvent.focusIn(textarea);
471
- await sleep(300);
472
- await expect(document.querySelector('.reqore-popover-content')).toBeInTheDocument();
473
- await sleep(1000);
474
- fireEvent.focusIn(textarea);
475
- await sleep(300);
476
- await expect(canvas.queryByText('I just updated')).toBeInTheDocument();
477
- },
478
- };
479
-
480
- export const TooltipIsRemovedWhenContentIsEmpty: Story = {
481
- render: (args) => {
482
- const [tooltip, setTooltip] = useState<IReqoreTooltip>({
483
- content: 'test',
484
- handler: 'focus',
485
- noArrow: true,
486
- noWrapper: true,
487
- useTargetWidth: true,
488
- });
489
-
490
- useMount(() => {
491
- setTimeout(() => {
492
- setTooltip(undefined);
493
- }, 1500);
494
- });
495
-
496
- return <ReqoreTextarea tooltip={tooltip} />;
497
- },
498
-
499
- play: async ({ canvasElement }) => {
500
- const textarea = canvasElement.querySelector('textarea');
501
- await sleep(500);
502
- fireEvent.focusIn(textarea);
503
- await sleep(300);
504
- await expect(document.querySelector('.reqore-popover-content')).toBeInTheDocument();
505
- await sleep(1000);
506
- fireEvent.focusIn(textarea);
507
- await sleep(300);
508
- await expect(document.querySelector('.reqore-popover-content')).not.toBeInTheDocument();
509
- },
510
- };