@qoretechnologies/reqore 0.44.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 (222) hide show
  1. package/package.json +1 -1
  2. package/tests.json +1 -1
  3. package/.eslintrc.js +0 -40
  4. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  5. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  6. package/.github/ISSUE_TEMPLATE/new-component.md +0 -20
  7. package/.github/ISSUE_TEMPLATE/visual-bug-report.md +0 -38
  8. package/.github/workflows/beta_release.yml +0 -100
  9. package/.github/workflows/tests.yml +0 -84
  10. package/.gitpod.yml +0 -11
  11. package/.jest-test-results.json +0 -1
  12. package/.prettierrc +0 -7
  13. package/.vscode/settings.json +0 -0
  14. package/__tests__/breadcrumbs.test.tsx +0 -75
  15. package/__tests__/button.test.tsx +0 -218
  16. package/__tests__/checkbox.test.tsx +0 -45
  17. package/__tests__/collection.test.tsx +0 -243
  18. package/__tests__/containers/paging.test.tsx +0 -138
  19. package/__tests__/control_group.test.tsx +0 -32
  20. package/__tests__/drawer.test.tsx +0 -140
  21. package/__tests__/dropdown.test.tsx +0 -381
  22. package/__tests__/effect.test.tsx +0 -70
  23. package/__tests__/heading.test.tsx +0 -58
  24. package/__tests__/helpers/colors.test.tsx +0 -18
  25. package/__tests__/helpers/table.test.tsx +0 -67
  26. package/__tests__/hooks/useLatestZIndex.test.tsx +0 -10
  27. package/__tests__/hooks/useReqorePaging.test.tsx +0 -271
  28. package/__tests__/hooks/useTheme.test.tsx +0 -31
  29. package/__tests__/icon.test.tsx +0 -53
  30. package/__tests__/input.test.tsx +0 -482
  31. package/__tests__/layout.test.tsx +0 -37
  32. package/__tests__/menu.test.tsx +0 -65
  33. package/__tests__/messages.test.tsx +0 -79
  34. package/__tests__/modal.test.tsx +0 -204
  35. package/__tests__/multiselect.test.tsx +0 -458
  36. package/__tests__/navbar.test.tsx +0 -31
  37. package/__tests__/notifications.test.tsx +0 -178
  38. package/__tests__/pagination.test.tsx +0 -437
  39. package/__tests__/panel.test.tsx +0 -243
  40. package/__tests__/popover.test.tsx +0 -282
  41. package/__tests__/radiogroup.test.tsx +0 -47
  42. package/__tests__/setup.js +0 -8
  43. package/__tests__/stories/Collection.stories.tsx +0 -0
  44. package/__tests__/table.test.tsx +0 -647
  45. package/__tests__/tabs.test.tsx +0 -321
  46. package/__tests__/tag.test.tsx +0 -160
  47. package/__tests__/textarea.test.tsx +0 -467
  48. package/__tests__/timeAgo.test.tsx +0 -27
  49. package/__tests__/tree.test.tsx +0 -58
  50. package/build-storybook.log +0 -491
  51. package/chromatic.config.json +0 -1
  52. package/icons.ts +0 -1
  53. package/migration-storybook.log +0 -56
  54. package/public/logo-dark.png +0 -0
  55. package/public/logo.png +0 -0
  56. package/public/q-symbol-small.png +0 -0
  57. package/public/q-symbol.png +0 -0
  58. package/public/qoreLogo-dark.png +0 -0
  59. package/public/qoreLogo.png +0 -0
  60. package/src/components/Breadcrumbs/index.tsx +0 -254
  61. package/src/components/Breadcrumbs/item.tsx +0 -44
  62. package/src/components/Button/index.tsx +0 -633
  63. package/src/components/Checkbox/index.tsx +0 -388
  64. package/src/components/Collection/index.tsx +0 -426
  65. package/src/components/Collection/item.tsx +0 -267
  66. package/src/components/Columns/column.tsx +0 -27
  67. package/src/components/Columns/index.tsx +0 -41
  68. package/src/components/Comment/index.tsx +0 -141
  69. package/src/components/CommentFeed/index.tsx +0 -34
  70. package/src/components/Content/index.tsx +0 -34
  71. package/src/components/Content/wrapper.tsx +0 -36
  72. package/src/components/ControlGroup/index.tsx +0 -523
  73. package/src/components/DatePicker/index.tsx +0 -347
  74. package/src/components/Drawer/backdrop.tsx +0 -54
  75. package/src/components/Drawer/index.tsx +0 -365
  76. package/src/components/Dropdown/index.tsx +0 -153
  77. package/src/components/Dropdown/item.tsx +0 -33
  78. package/src/components/Dropdown/list.tsx +0 -222
  79. package/src/components/Effect/index.tsx +0 -464
  80. package/src/components/ExportModal/index.tsx +0 -99
  81. package/src/components/Header/index.tsx +0 -81
  82. package/src/components/Icon/index.tsx +0 -184
  83. package/src/components/Input/index.tsx +0 -295
  84. package/src/components/InputClearButton/index.tsx +0 -59
  85. package/src/components/InternalPopover/index.tsx +0 -303
  86. package/src/components/KeyValueTable/index.tsx +0 -192
  87. package/src/components/Label/index.tsx +0 -10
  88. package/src/components/Layout/content.tsx +0 -31
  89. package/src/components/Layout/index.tsx +0 -55
  90. package/src/components/Menu/divider.tsx +0 -92
  91. package/src/components/Menu/index.tsx +0 -141
  92. package/src/components/Menu/item.tsx +0 -137
  93. package/src/components/Menu/section.tsx +0 -81
  94. package/src/components/Message/index.tsx +0 -220
  95. package/src/components/Modal/index.tsx +0 -26
  96. package/src/components/MultiSelect/index.tsx +0 -288
  97. package/src/components/Navbar/divider.tsx +0 -50
  98. package/src/components/Navbar/group.tsx +0 -53
  99. package/src/components/Navbar/index.tsx +0 -82
  100. package/src/components/Navbar/item.tsx +0 -92
  101. package/src/components/Notifications/index.tsx +0 -57
  102. package/src/components/Notifications/notification.tsx +0 -362
  103. package/src/components/Paging/index.tsx +0 -321
  104. package/src/components/Panel/LabelEditor.tsx +0 -67
  105. package/src/components/Panel/NonResponsiveActions.tsx +0 -79
  106. package/src/components/Panel/__screenshots__/linux/panel-SomePanel.png +0 -0
  107. package/src/components/Panel/index.tsx +0 -912
  108. package/src/components/Panel/panel.screenshot.tsx +0 -29
  109. package/src/components/Paragraph/index.tsx +0 -43
  110. package/src/components/Popover/index.tsx +0 -68
  111. package/src/components/RadioGroup/index.tsx +0 -71
  112. package/src/components/Slider/index.tsx +0 -358
  113. package/src/components/Spacer/index.tsx +0 -142
  114. package/src/components/Spinner/index.tsx +0 -74
  115. package/src/components/Table/body.tsx +0 -109
  116. package/src/components/Table/cell.tsx +0 -136
  117. package/src/components/Table/header.tsx +0 -236
  118. package/src/components/Table/headerCell.tsx +0 -203
  119. package/src/components/Table/helpers.ts +0 -308
  120. package/src/components/Table/index.tsx +0 -797
  121. package/src/components/Table/row.tsx +0 -288
  122. package/src/components/Table/value.tsx +0 -28
  123. package/src/components/Tabs/content.tsx +0 -68
  124. package/src/components/Tabs/index.tsx +0 -124
  125. package/src/components/Tabs/item.tsx +0 -198
  126. package/src/components/Tabs/list.tsx +0 -381
  127. package/src/components/Tag/group.tsx +0 -73
  128. package/src/components/Tag/index.tsx +0 -463
  129. package/src/components/Textarea/index.tsx +0 -277
  130. package/src/components/TimeAgo/index.tsx +0 -15
  131. package/src/components/Tree/index.tsx +0 -271
  132. package/src/constants/animations.ts +0 -9
  133. package/src/constants/colors.ts +0 -13
  134. package/src/constants/paging.ts +0 -93
  135. package/src/constants/sizes.ts +0 -185
  136. package/src/constants/theme.ts +0 -122
  137. package/src/containers/Paging.tsx +0 -136
  138. package/src/containers/PopoverProvider.tsx +0 -124
  139. package/src/containers/ReqoreProvider.tsx +0 -289
  140. package/src/containers/ThemeProvider.tsx +0 -12
  141. package/src/containers/UIProvider.tsx +0 -101
  142. package/src/context/PopoverContext.tsx +0 -11
  143. package/src/context/ReqoreContext.tsx +0 -47
  144. package/src/context/ThemeContext.tsx +0 -4
  145. package/src/helpers/animations.ts +0 -13
  146. package/src/helpers/colors.ts +0 -335
  147. package/src/helpers/time.ts +0 -21
  148. package/src/helpers/utils.ts +0 -152
  149. package/src/hooks/useAutoFocus.ts +0 -106
  150. package/src/hooks/useCloneThroughFragments.ts +0 -39
  151. package/src/hooks/useCombinedRefs.ts +0 -26
  152. package/src/hooks/useLatestZIndex.ts +0 -13
  153. package/src/hooks/useOutsideClick.ts +0 -29
  154. package/src/hooks/usePaging.ts +0 -128
  155. package/src/hooks/usePopover.tsx +0 -220
  156. package/src/hooks/useQueryWithDelay.ts +0 -30
  157. package/src/hooks/useReqore.ts +0 -12
  158. package/src/hooks/useReqoreContext.ts +0 -16
  159. package/src/hooks/useReqoreEffect.ts +0 -49
  160. package/src/hooks/useTextareaAutoSize.ts +0 -22
  161. package/src/hooks/useTheme.ts +0 -48
  162. package/src/hooks/useTooltip.ts +0 -40
  163. package/src/hooks/useWhyDidYouUpdate.ts +0 -32
  164. package/src/icons.json +0 -2295
  165. package/src/index.tsx +0 -80
  166. package/src/mock/breadcrumbs.ts +0 -146
  167. package/src/mock/collectionData.tsx +0 -380
  168. package/src/mock/data.json +0 -11000
  169. package/src/mock/icons.ts +0 -32
  170. package/src/mock/menu.ts +0 -93
  171. package/src/mock/multiSelect.ts +0 -71
  172. package/src/mock/object.json +0 -317
  173. package/src/mock/styleMock.js +0 -1
  174. package/src/mock/tableData.ts +0 -64
  175. package/src/stories/Breadcrumbs/Breadcrumbs.stories.tsx +0 -27
  176. package/src/stories/Button/Button.stories.tsx +0 -405
  177. package/src/stories/Checkbox/Checkbox.stories.tsx +0 -75
  178. package/src/stories/Collection/Collection.stories.tsx +0 -317
  179. package/src/stories/Columns/Columns.stories.tsx +0 -158
  180. package/src/stories/Comment/Comment.stories.tsx +0 -136
  181. package/src/stories/ControlGroup/ControlGroup.stories.tsx +0 -399
  182. package/src/stories/DatePicker/DatePicker.stories.tsx +0 -348
  183. package/src/stories/Drawer/Drawer.stories.tsx +0 -294
  184. package/src/stories/Dropdown/Dropdown.stories.tsx +0 -375
  185. package/src/stories/Dropdown/DropdownTests.stories.tsx +0 -111
  186. package/src/stories/ExportModal/ExportModal.stories.tsx +0 -18
  187. package/src/stories/Header/Header.stories.tsx +0 -108
  188. package/src/stories/Icon/Icon.stories.tsx +0 -162
  189. package/src/stories/Input/Input.stories.tsx +0 -220
  190. package/src/stories/KeyValueTable/KeyValueTable.stories.tsx +0 -346
  191. package/src/stories/Label/Label.stories.tsx +0 -33
  192. package/src/stories/Menu/Menu.stories.tsx +0 -367
  193. package/src/stories/Message/Message.stories.tsx +0 -167
  194. package/src/stories/Modal/Manager.stories.tsx +0 -192
  195. package/src/stories/Modal/Modal.stories.tsx +0 -252
  196. package/src/stories/MultiSelect/MultiSelect.stories.tsx +0 -140
  197. package/src/stories/Navbar/Navbar.stories.tsx +0 -119
  198. package/src/stories/Notifications/Interactive.stories.tsx +0 -117
  199. package/src/stories/Notifications/Notification.stories.tsx +0 -216
  200. package/src/stories/Notifications/Notifications.stories.tsx +0 -81
  201. package/src/stories/Paging/Paging.stories.tsx +0 -255
  202. package/src/stories/Panel/Panel.stories.tsx +0 -753
  203. package/src/stories/Paragraph/Paragraph.stories.tsx +0 -108
  204. package/src/stories/Popover/Popover.stories.tsx +0 -510
  205. package/src/stories/RadioGroup/RadioGroup.stories.tsx +0 -212
  206. package/src/stories/Slider/Slider.stories.tsx +0 -173
  207. package/src/stories/Spacer/Spacer.stories.tsx +0 -100
  208. package/src/stories/Spinner/Spinner.stories.tsx +0 -82
  209. package/src/stories/Table/Table.stories.tsx +0 -571
  210. package/src/stories/Tabs/Tabs.stories.tsx +0 -346
  211. package/src/stories/Tag/Tag.stories.tsx +0 -381
  212. package/src/stories/Tag/TagGroup.stories.tsx +0 -307
  213. package/src/stories/TextArea/TextArea.stories.tsx +0 -287
  214. package/src/stories/TextArea/TextAreaTests.stories.tsx +0 -108
  215. package/src/stories/Tree/Tree.stories.tsx +0 -124
  216. package/src/stories/Wrapper.tsx +0 -13
  217. package/src/stories/utils/args.ts +0 -151
  218. package/src/stories/utils.ts +0 -39
  219. package/src/styles.ts +0 -124
  220. package/src/types/global.ts +0 -211
  221. package/src/types/icons.ts +0 -2272
  222. package/tsconfig.prod.json +0 -26
package/src/mock/icons.ts DELETED
@@ -1,32 +0,0 @@
1
- import { IReqoreIconName } from '../types/icons';
2
-
3
- export const Icons: { [key: string]: IReqoreIconName } = {
4
- Dashboard: 'Home2Fill',
5
- Workflow: 'ExchangeLine',
6
- Services: 'GitMergeLine',
7
- Jobs: 'CalendarLine',
8
- Groups: 'BubbleChartFill',
9
- Connections: 'StackshareLine',
10
- Search: 'SearchLine',
11
- Global: 'LayoutGridFill',
12
- RBAC: 'GroupLine',
13
- Valuemaps: 'MapLine',
14
- SLAs: 'TimeLine',
15
- Releases: 'InstallLine',
16
- Errors: 'ErrorWarningLine',
17
- Types: 'Key2Fill',
18
- System: 'Settings2Line',
19
- Alerts: 'AlarmWarningLine',
20
- Cluster: 'GridFill',
21
- OrderStats: 'PieChartLine',
22
- Options: 'SettingsLine',
23
- Properties: 'StackLine',
24
- Cache: 'DatabaseLine',
25
- HTTPServices: 'GlobeLine',
26
- ConfigItems: 'Settings6Line',
27
- More: 'MoreFill',
28
- Library: 'Book3Line',
29
- Extensions: 'AppsLine',
30
- Logs: 'FileTextLine',
31
- Info: 'InformationLine',
32
- };
package/src/mock/menu.ts DELETED
@@ -1,93 +0,0 @@
1
- export const qorusSidebarItems = {
2
- Menu: {
3
- title: 'Menu',
4
- items: [
5
- {
6
- name: 'Menu item 1',
7
- as: 'a',
8
- props: {
9
- href: '/item-1',
10
- },
11
- icon: 'Home3Line',
12
- id: 'menu-item-1',
13
- },
14
- {
15
- name: 'Menu item 2',
16
- as: 'a',
17
- props: {
18
- href: '/item-2',
19
- },
20
- icon: 'Settings4Fill',
21
- id: 'menu-item-2',
22
- },
23
- {
24
- name: 'Menu item 3',
25
- icon: 'File3Line',
26
- id: 'menu-item-3',
27
- activePaths: ['/item-3'],
28
- submenu: [
29
- {
30
- name: 'Submenu item 1',
31
- as: 'a',
32
- props: {
33
- href: '/item-3/item-1',
34
- },
35
- icon: 'NodeTree',
36
- id: 'submenu-item-1',
37
- },
38
- {
39
- name: 'Submenu item 2',
40
- as: 'a',
41
- props: {
42
- href: '/item-3/item-2',
43
- },
44
- icon: 'Chat3Fill',
45
- id: 'submenu-item-2',
46
- },
47
- {
48
- name: 'Super really long Submenu item 3',
49
- as: 'a',
50
- props: {
51
- href: '/item-3/item-3',
52
- },
53
- icon: 'DatabaseFill',
54
- id: 'submenu-item-3',
55
- },
56
- ],
57
- },
58
- ],
59
- },
60
- Menu2: {
61
- items: [
62
- {
63
- name: 'Super Long Really Another item 1',
64
- as: 'a',
65
- props: {
66
- href: '/another-item-1',
67
- },
68
- icon: 'Home6Line',
69
- id: 'another-item-1',
70
- },
71
- {
72
- name: 'Another item 2',
73
- as: 'a',
74
- props: {
75
- href: '/another-item-2',
76
- },
77
- icon: 'TableFill',
78
- id: 'another-item-2',
79
- },
80
- {
81
- name: 'Another item 3',
82
- as: 'a',
83
- props: {
84
- onClick: () => {
85
- alert('Click');
86
- },
87
- },
88
- icon: 'BellLine',
89
- id: 'another-item-3',
90
- },
91
- ],
92
- },
93
- };
@@ -1,71 +0,0 @@
1
- import { TReqoreMultiSelectItem } from '../components/MultiSelect';
2
-
3
- export const MultiSelectItems: TReqoreMultiSelectItem[] = [
4
- {
5
- label: 'Existing item 1',
6
- value: 'Existing item 1',
7
- icon: 'SunCloudyLine',
8
- },
9
- {
10
- label:
11
- 'Existing item 2 this is a really long item that needs to wrap and if it does not wrap then its bugged because we supplied the wrap prop so it should wrap',
12
- wrap: true,
13
- value: 'Existing item 2',
14
- icon: 'BatteryChargeFill',
15
- },
16
- {
17
- label: 'Existing item 3',
18
- value: 'Existing item 3',
19
- icon: 'DropboxFill',
20
- intent: 'info',
21
- rightIcon: 'ArrowRightLine',
22
- },
23
- {
24
- label: 'Existing item 4',
25
- value: 'Existing item 4',
26
- icon: 'PagesLine',
27
- effect: { gradient: { colors: { 0: 'success', 100: 'info:darken:1' } } },
28
- },
29
- {
30
- disabled: true,
31
- label: 'Disabled item',
32
- value: 'Disabled item',
33
- icon: 'StopCircleLine',
34
- },
35
- {
36
- minimal: true,
37
- label: 'Minimal item',
38
- value: 'Minimal item',
39
- icon: 'StopCircleLine',
40
- },
41
- {
42
- divider: true,
43
- icon: 'CheckDoubleLine',
44
- },
45
- {
46
- value: 'itemWithNoLabel',
47
- icon: 'TakeawayLine',
48
- actions: [
49
- {
50
- icon: 'ArrowLeftUpFill',
51
- onClick: () => console.log('clicked'),
52
- intent: 'pending',
53
- },
54
- ],
55
- },
56
- {
57
- label: 'Other Item 1',
58
- value: 'Other Item 1',
59
- icon: 'MapFill',
60
- },
61
- {
62
- label: 'Other Item 2',
63
- value: 'Other Item 2',
64
- icon: 'ArrowLeftUpFill',
65
- },
66
- {
67
- label: 'Other Item 3',
68
- value: 'Other Item 3',
69
- icon: 'MicLine',
70
- },
71
- ];
@@ -1,317 +0,0 @@
1
- [
2
- {
3
- "_id": "606d4c955f96372fd1b8bcd1",
4
- "index": 0,
5
- "guid": "d08cde5f-e18e-4d7f-80a9-6541848ab830",
6
- "isActive": false,
7
- "balance": "$3,219.32",
8
- "picture": "http://placehold.it/32x32",
9
- "age": 25,
10
- "eyeColor": "brown",
11
- "name": "Zelma Short",
12
- "gender": "female",
13
- "company": "LINGOAGE",
14
- "email": "zelmashort@lingoage.com",
15
- "phone": "+1 (840) 429-2274",
16
- "address": "757 Woodside Avenue, Winchester, Marshall Islands, 2032",
17
- "about": "Ipsum est ex nisi veniam proident adipisicing. Occaecat Lorem minim amet aliqua laboris excepteur sint eu mollit laborum sunt. Duis aliquip nulla cillum labore culpa ullamco labore non in nostrud. Cupidatat nisi enim ullamco quis voluptate Lorem voluptate minim dolore esse irure eiusmod aliquip amet. Dolore laboris Lorem laboris irure magna sint dolor. In irure adipisicing minim ullamco commodo ad dolore elit occaecat dolor. Cillum commodo est commodo dolor enim velit.\r\n",
18
- "registered": "2015-03-19T05:00:22 -01:00",
19
- "latitude": -8.97737,
20
- "longitude": 110.576471,
21
- "tags": [
22
- "aute",
23
- "qui",
24
- "ut",
25
- "mollit",
26
- "culpa",
27
- "qui",
28
- "irure"
29
- ],
30
- "friends": [
31
- {
32
- "id": 0,
33
- "name": "Angel Gallagher"
34
- },
35
- {
36
- "id": 1,
37
- "name": "Rose Farmer"
38
- },
39
- {
40
- "id": 2,
41
- "name": "Jaclyn Keith"
42
- }
43
- ],
44
- "greeting": "Hello, Zelma Short! You have 5 unread messages.",
45
- "favoriteFruit": "banana"
46
- },
47
- {
48
- "_id": "606d4c957cc794c26ad703f6",
49
- "index": 1,
50
- "guid": "366ccd74-64e4-4336-a660-78b55cccd653",
51
- "isActive": true,
52
- "balance": "$3,464.91",
53
- "picture": "http://placehold.it/32x32",
54
- "age": 32,
55
- "eyeColor": "green",
56
- "name": "Jennings Briggs",
57
- "gender": "male",
58
- "company": "FROSNEX",
59
- "email": "jenningsbriggs@frosnex.com",
60
- "phone": "+1 (821) 563-3061",
61
- "address": "485 Auburn Place, Toftrees, North Carolina, 3460",
62
- "about": "Sit voluptate ut ipsum aliquip officia eiusmod esse sint exercitation officia. Velit ex ex mollit ad enim voluptate Lorem nisi minim. Sit officia sit eu est anim Lorem aute anim nulla officia.\r\n",
63
- "registered": "2014-11-25T11:58:45 -01:00",
64
- "latitude": 32.968241,
65
- "longitude": 21.905937,
66
- "tags": [
67
- "occaecat",
68
- "id",
69
- "sit",
70
- "eiusmod",
71
- "tempor",
72
- "adipisicing",
73
- "sint"
74
- ],
75
- "friends": [
76
- {
77
- "id": 0,
78
- "name": "Buck Watts"
79
- },
80
- {
81
- "id": 1,
82
- "name": "Barr Hull"
83
- },
84
- {
85
- "id": 2,
86
- "name": "Muriel Lowery"
87
- }
88
- ],
89
- "greeting": "Hello, Jennings Briggs! You have 8 unread messages.",
90
- "favoriteFruit": "banana"
91
- },
92
- {
93
- "_id": "606d4c953ed5ee3081404d98",
94
- "index": 2,
95
- "guid": "ed26f92f-26a7-492f-b3c8-a6767297526c",
96
- "isActive": false,
97
- "balance": "$3,974.33",
98
- "picture": "http://placehold.it/32x32",
99
- "age": 35,
100
- "eyeColor": "green",
101
- "name": "Stephenson Dunlap",
102
- "gender": "male",
103
- "company": "PLASMOS",
104
- "email": "stephensondunlap@plasmos.com",
105
- "phone": "+1 (809) 545-2664",
106
- "address": "463 Cambridge Place, Cloverdale, South Dakota, 8144",
107
- "about": "Laboris sit tempor laborum cupidatat ea quis commodo ut incididunt. Commodo dolor irure sit non. Enim pariatur sunt cupidatat enim aliquip velit laboris eiusmod sint. Esse eiusmod minim dolore sint. Quis duis id ut tempor tempor laboris fugiat quis proident. Irure proident deserunt consequat voluptate labore irure eu nulla commodo incididunt nisi officia amet est.\r\n",
108
- "registered": "2019-06-05T08:58:50 -02:00",
109
- "latitude": -41.239498,
110
- "longitude": 11.237437,
111
- "tags": [
112
- "ut",
113
- "consectetur",
114
- "enim",
115
- "deserunt",
116
- "anim",
117
- "adipisicing",
118
- "irure"
119
- ],
120
- "friends": [
121
- {
122
- "id": 0,
123
- "name": "Cora Hobbs"
124
- },
125
- {
126
- "id": 1,
127
- "name": "Smith Gray"
128
- },
129
- {
130
- "id": 2,
131
- "name": "Rosanne Winters"
132
- }
133
- ],
134
- "greeting": "Hello, Stephenson Dunlap! You have 9 unread messages.",
135
- "favoriteFruit": "strawberry"
136
- },
137
- {
138
- "_id": "606d4c95cc5c1b49eaf17919",
139
- "index": 3,
140
- "guid": "904ad88c-c754-4575-b626-202d2b6324c7",
141
- "isActive": true,
142
- "balance": "$2,267.87",
143
- "picture": "http://placehold.it/32x32",
144
- "age": 21,
145
- "eyeColor": "blue",
146
- "name": "Sheryl Barton",
147
- "gender": "female",
148
- "company": "NAMEGEN",
149
- "email": "sherylbarton@namegen.com",
150
- "phone": "+1 (974) 505-2024",
151
- "address": "524 Shale Street, Wauhillau, Idaho, 4275",
152
- "about": "Enim aute ea anim sunt occaecat pariatur nisi excepteur eiusmod. Proident labore dolore elit veniam incididunt. Ad deserunt ipsum deserunt ad id.\r\n",
153
- "registered": "2020-02-24T06:26:21 -01:00",
154
- "latitude": -79.669108,
155
- "longitude": 19.666959,
156
- "tags": [
157
- "magna",
158
- "nisi",
159
- "eiusmod",
160
- "elit",
161
- "eu",
162
- "in",
163
- "anim"
164
- ],
165
- "friends": [
166
- {
167
- "id": 0,
168
- "name": "Lowery Lucas"
169
- },
170
- {
171
- "id": 1,
172
- "name": "Lilia Mendoza"
173
- },
174
- {
175
- "id": 2,
176
- "name": "Frieda Valenzuela"
177
- }
178
- ],
179
- "greeting": "Hello, Sheryl Barton! You have 8 unread messages.",
180
- "favoriteFruit": "strawberry"
181
- },
182
- {
183
- "_id": "606d4c95dcb57310a73b8feb",
184
- "index": 4,
185
- "guid": "eaf6380a-7fb7-4924-b09f-5b37ed134f57",
186
- "isActive": true,
187
- "balance": "$3,578.40",
188
- "picture": "http://placehold.it/32x32",
189
- "age": 30,
190
- "eyeColor": "brown",
191
- "name": "Hahn Stanley",
192
- "gender": "male",
193
- "company": "GOGOL",
194
- "email": "hahnstanley@gogol.com",
195
- "phone": "+1 (948) 430-2371",
196
- "address": "569 Bushwick Court, Jamestown, Tennessee, 3203",
197
- "about": "Est ipsum enim occaecat dolor nisi excepteur. Officia magna veniam occaecat velit consectetur reprehenderit. Ut exercitation laboris est deserunt anim dolor sint pariatur. Commodo ut ex culpa incididunt irure cupidatat irure deserunt. Cillum excepteur quis sunt sunt in ex consectetur adipisicing incididunt labore adipisicing laboris sint.\r\n",
198
- "registered": "2018-05-30T10:39:01 -02:00",
199
- "latitude": 39.987328,
200
- "longitude": -18.121186,
201
- "tags": [
202
- "amet",
203
- "reprehenderit",
204
- "elit",
205
- "nostrud",
206
- "sunt",
207
- "consequat",
208
- "fugiat"
209
- ],
210
- "friends": [
211
- {
212
- "id": 0,
213
- "name": "Mclaughlin Melendez"
214
- },
215
- {
216
- "id": 1,
217
- "name": "Freeman Barber"
218
- },
219
- {
220
- "id": 2,
221
- "name": "Acevedo Newton"
222
- }
223
- ],
224
- "greeting": "Hello, Hahn Stanley! You have 5 unread messages.",
225
- "favoriteFruit": "banana"
226
- },
227
- {
228
- "_id": "606d4c95769391999f8151f4",
229
- "index": 5,
230
- "guid": "eaa5653d-7576-4663-a2d9-58083caeb4df",
231
- "isActive": true,
232
- "balance": "$1,380.84",
233
- "picture": "http://placehold.it/32x32",
234
- "age": 38,
235
- "eyeColor": "brown",
236
- "name": "Paulette Perez",
237
- "gender": "female",
238
- "company": "VELOS",
239
- "email": "pauletteperez@velos.com",
240
- "phone": "+1 (861) 551-3633",
241
- "address": "732 Bridgewater Street, Welch, Florida, 989",
242
- "about": "Cupidatat veniam occaecat magna anim officia Lorem. Commodo amet pariatur deserunt consectetur excepteur dolor dolore ipsum enim duis dolor est. Et ad amet enim esse deserunt cupidatat qui esse. Enim ad sit Lorem sit voluptate dolore sit nisi aliqua sint exercitation. Commodo non ex adipisicing magna. Occaecat consequat minim sunt sint duis veniam mollit ullamco dolor in dolore.\r\n",
243
- "registered": "2015-09-29T09:39:54 -02:00",
244
- "latitude": -18.968669,
245
- "longitude": -33.485271,
246
- "tags": [
247
- "mollit",
248
- "officia",
249
- "ipsum",
250
- "veniam",
251
- "laborum",
252
- "laboris",
253
- "consectetur"
254
- ],
255
- "friends": [
256
- {
257
- "id": 0,
258
- "name": "Young Bolton"
259
- },
260
- {
261
- "id": 1,
262
- "name": "Terrie Burke"
263
- },
264
- {
265
- "id": 2,
266
- "name": "Hill Adams"
267
- }
268
- ],
269
- "greeting": "Hello, Paulette Perez! You have 9 unread messages.",
270
- "favoriteFruit": "banana"
271
- },
272
- {
273
- "_id": "606d4c9524bd1bd2d57b00c2",
274
- "index": 6,
275
- "guid": "e4c19c95-0d20-4919-80c6-7bf05b80b66a",
276
- "isActive": true,
277
- "balance": "$3,334.46",
278
- "picture": "http://placehold.it/32x32",
279
- "age": 22,
280
- "eyeColor": "blue",
281
- "name": "Levine Bray",
282
- "gender": "male",
283
- "company": "AUSTEX",
284
- "email": "levinebray@austex.com",
285
- "phone": "+1 (968) 524-2455",
286
- "address": "932 Debevoise Street, Wolcott, Palau, 8906",
287
- "about": "Qui excepteur deserunt nulla tempor do tempor occaecat commodo et ipsum velit quis adipisicing id. Ullamco ad pariatur excepteur consectetur sit sit. Aute id anim id proident sint est irure culpa amet aute ex. Sint adipisicing aliqua velit nostrud elit aliquip voluptate occaecat duis voluptate occaecat reprehenderit et. Aliquip aute cillum ex cillum officia aliquip. Commodo enim ex aute elit consequat esse eiusmod. Eu cillum officia culpa in eiusmod non.\r\n",
288
- "registered": "2014-12-29T03:11:31 -01:00",
289
- "latitude": 55.032528,
290
- "longitude": 178.669012,
291
- "tags": [
292
- "sit",
293
- "non",
294
- "et",
295
- "labore",
296
- "consectetur",
297
- "voluptate",
298
- "ea"
299
- ],
300
- "friends": [
301
- {
302
- "id": 0,
303
- "name": "Delores Clay"
304
- },
305
- {
306
- "id": 1,
307
- "name": "Tanner Elliott"
308
- },
309
- {
310
- "id": 2,
311
- "name": "Jeanne Randall"
312
- }
313
- ],
314
- "greeting": "Hello, Levine Bray! You have 5 unread messages.",
315
- "favoriteFruit": "strawberry"
316
- }
317
- ]
@@ -1 +0,0 @@
1
- module.exports = {};
@@ -1,64 +0,0 @@
1
- import { IReqoreTableProps } from '../components/Table';
2
- import data from './data.json';
3
-
4
- export type TestTableItem = {
5
- id: number;
6
- firstName: string;
7
- lastName: string;
8
- address: string;
9
- age: number;
10
- occupation: string;
11
- group: string;
12
- _selectId: number;
13
- _disabled: boolean;
14
- };
15
-
16
- export const tableData = data;
17
- export const testColumns: IReqoreTableProps['columns'] = [
18
- {
19
- dataId: 'id',
20
- header: { label: 'ID' },
21
- width: 50,
22
- align: 'center',
23
- },
24
- {
25
- dataId: 'name',
26
- header: {
27
- label: 'Name',
28
- columns: [
29
- { dataId: 'firstName', header: { label: 'First Name' }, width: 150 },
30
- { dataId: 'lastName', header: { label: 'Last Name' }, width: 150 },
31
- ],
32
- },
33
- },
34
- { dataId: 'address', header: { label: 'Address' }, width: 300, grow: 2 },
35
- {
36
- dataId: 'age',
37
- header: { label: 'Really long age header' },
38
- width: 50,
39
- align: 'center',
40
- cell: {
41
- intent: 'success',
42
- },
43
- },
44
- {
45
- dataId: 'data',
46
- header: {
47
- label: 'Data',
48
- columns: [
49
- { dataId: 'occupation', header: { label: 'Ocuppation' }, width: 200 },
50
- { dataId: 'group', header: { label: 'Group' }, width: 150, intent: 'muted' },
51
- ],
52
- },
53
- },
54
- { dataId: 'date', header: { label: 'Date' }, width: 150, cell: { content: 'time-ago' } },
55
- ];
56
-
57
- export default {
58
- columns: testColumns,
59
- data: data.map((datum) => ({
60
- ...datum,
61
- date: Date.now(),
62
- })),
63
- height: 300,
64
- };
@@ -1,27 +0,0 @@
1
- import { StoryObj } from '@storybook/react';
2
- import { ReqoreBreadcrumbs } from '../../index';
3
- import breadcrumbs, { breadcrumbsTabs, specialbreadcrumbs } from '../../mock/breadcrumbs';
4
- import { StoryMeta } from '../utils';
5
- import { SizeArg } from '../utils/args';
6
-
7
- const meta = {
8
- title: 'Navigation/Breadcrumbs/Stories',
9
- component: ReqoreBreadcrumbs,
10
- argTypes: {
11
- withTabs: {
12
- name: 'With tabs',
13
- description: 'Whether tabs should be shown alongside the breadcrumbs',
14
- control: 'boolean',
15
- },
16
- ...SizeArg,
17
- },
18
- args: { items: breadcrumbs },
19
- } as StoryMeta<typeof ReqoreBreadcrumbs>;
20
-
21
- export default meta;
22
- type Story = StoryObj<typeof meta>;
23
-
24
- export const Default: Story = {};
25
- export const WithTabs: Story = { args: { items: [...breadcrumbs, breadcrumbsTabs] } };
26
- export const Flat: Story = { args: { flat: true } };
27
- export const Special: Story = { args: { items: specialbreadcrumbs } };