@instructure/platform-institutional-tagging 2.0.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 (228) hide show
  1. package/README.md +86 -0
  2. package/dist/App.d.ts +3 -0
  3. package/dist/App.d.ts.map +1 -0
  4. package/dist/__tests__/helpers.d.ts +7 -0
  5. package/dist/__tests__/helpers.d.ts.map +1 -0
  6. package/dist/__tests__/i18n.test.d.ts +2 -0
  7. package/dist/__tests__/i18n.test.d.ts.map +1 -0
  8. package/dist/__tests__/layout.test.d.ts +2 -0
  9. package/dist/__tests__/layout.test.d.ts.map +1 -0
  10. package/dist/__tests__/server.d.ts +10 -0
  11. package/dist/__tests__/server.d.ts.map +1 -0
  12. package/dist/__tests__/setup.d.ts +1 -0
  13. package/dist/__tests__/setup.d.ts.map +1 -0
  14. package/dist/__tests__/useArchiveTag.test.d.ts +2 -0
  15. package/dist/__tests__/useArchiveTag.test.d.ts.map +1 -0
  16. package/dist/__tests__/useMoveTag.test.d.ts +2 -0
  17. package/dist/__tests__/useMoveTag.test.d.ts.map +1 -0
  18. package/dist/__tests__/usePagination.test.d.ts +2 -0
  19. package/dist/__tests__/usePagination.test.d.ts.map +1 -0
  20. package/dist/__tests__/useSkeletons.test.d.ts +2 -0
  21. package/dist/__tests__/useSkeletons.test.d.ts.map +1 -0
  22. package/dist/__tests__/utils.test.d.ts +2 -0
  23. package/dist/__tests__/utils.test.d.ts.map +1 -0
  24. package/dist/api/client.d.ts +9 -0
  25. package/dist/api/client.d.ts.map +1 -0
  26. package/dist/api/constants.d.ts +4 -0
  27. package/dist/api/constants.d.ts.map +1 -0
  28. package/dist/api/index.d.ts +5 -0
  29. package/dist/api/index.d.ts.map +1 -0
  30. package/dist/api/types.d.ts +18 -0
  31. package/dist/api/types.d.ts.map +1 -0
  32. package/dist/api/utils.d.ts +2 -0
  33. package/dist/api/utils.d.ts.map +1 -0
  34. package/dist/components/Alert/AlertProvider.d.ts +5 -0
  35. package/dist/components/Alert/AlertProvider.d.ts.map +1 -0
  36. package/dist/components/Alert/index.d.ts +2 -0
  37. package/dist/components/Alert/index.d.ts.map +1 -0
  38. package/dist/components/Alert/styles.d.ts +3 -0
  39. package/dist/components/Alert/styles.d.ts.map +1 -0
  40. package/dist/components/AppContainer/AppContainerProvider.d.ts +4 -0
  41. package/dist/components/AppContainer/AppContainerProvider.d.ts.map +1 -0
  42. package/dist/components/AppContainer/GenericStoryWrapper.d.ts +8 -0
  43. package/dist/components/AppContainer/GenericStoryWrapper.d.ts.map +1 -0
  44. package/dist/components/AppContainer/index.d.ts +2 -0
  45. package/dist/components/AppContainer/index.d.ts.map +1 -0
  46. package/dist/components/AppContainer/styles.d.ts +2 -0
  47. package/dist/components/AppContainer/styles.d.ts.map +1 -0
  48. package/dist/components/Category/BottomSection.d.ts +4 -0
  49. package/dist/components/Category/BottomSection.d.ts.map +1 -0
  50. package/dist/components/Category/Category.d.ts +4 -0
  51. package/dist/components/Category/Category.d.ts.map +1 -0
  52. package/dist/components/Category/CategoryInfoPills.d.ts +4 -0
  53. package/dist/components/Category/CategoryInfoPills.d.ts.map +1 -0
  54. package/dist/components/Category/CategoryList.d.ts +4 -0
  55. package/dist/components/Category/CategoryList.d.ts.map +1 -0
  56. package/dist/components/Category/CategoryListItem.d.ts +4 -0
  57. package/dist/components/Category/CategoryListItem.d.ts.map +1 -0
  58. package/dist/components/Category/TagArea.d.ts +4 -0
  59. package/dist/components/Category/TagArea.d.ts.map +1 -0
  60. package/dist/components/Category/TopSection.d.ts +5 -0
  61. package/dist/components/Category/TopSection.d.ts.map +1 -0
  62. package/dist/components/Category/constants.d.ts +3 -0
  63. package/dist/components/Category/constants.d.ts.map +1 -0
  64. package/dist/components/Category/index.d.ts +4 -0
  65. package/dist/components/Category/index.d.ts.map +1 -0
  66. package/dist/components/Category/styles.d.ts +30 -0
  67. package/dist/components/Category/styles.d.ts.map +1 -0
  68. package/dist/components/Category/types.d.ts +55 -0
  69. package/dist/components/Category/types.d.ts.map +1 -0
  70. package/dist/components/Layout/Layout.d.ts +2 -0
  71. package/dist/components/Layout/Layout.d.ts.map +1 -0
  72. package/dist/components/Layout/index.d.ts +2 -0
  73. package/dist/components/Layout/index.d.ts.map +1 -0
  74. package/dist/components/Layout/styles.d.ts +2 -0
  75. package/dist/components/Layout/styles.d.ts.map +1 -0
  76. package/dist/components/SearchAndFilterSection/SearchAndFilterSection.d.ts +8 -0
  77. package/dist/components/SearchAndFilterSection/SearchAndFilterSection.d.ts.map +1 -0
  78. package/dist/components/SearchAndFilterSection/index.d.ts +2 -0
  79. package/dist/components/SearchAndFilterSection/index.d.ts.map +1 -0
  80. package/dist/components/SearchAndFilterSection/styles.d.ts +6 -0
  81. package/dist/components/SearchAndFilterSection/styles.d.ts.map +1 -0
  82. package/dist/components/Select/Select.d.ts +19 -0
  83. package/dist/components/Select/Select.d.ts.map +1 -0
  84. package/dist/components/Select/index.d.ts +3 -0
  85. package/dist/components/Select/index.d.ts.map +1 -0
  86. package/dist/components/Tag/Tag.d.ts +14 -0
  87. package/dist/components/Tag/Tag.d.ts.map +1 -0
  88. package/dist/components/Tag/index.d.ts +2 -0
  89. package/dist/components/Tag/index.d.ts.map +1 -0
  90. package/dist/components/Tag/styles.d.ts +15 -0
  91. package/dist/components/Tag/styles.d.ts.map +1 -0
  92. package/dist/components/index.d.ts +2 -0
  93. package/dist/components/index.d.ts.map +1 -0
  94. package/dist/constants/app.d.ts +2 -0
  95. package/dist/constants/app.d.ts.map +1 -0
  96. package/dist/constants/i18n.d.ts +84 -0
  97. package/dist/constants/i18n.d.ts.map +1 -0
  98. package/dist/constants/index.d.ts +5 -0
  99. package/dist/constants/index.d.ts.map +1 -0
  100. package/dist/constants/layout.d.ts +2 -0
  101. package/dist/constants/layout.d.ts.map +1 -0
  102. package/dist/constants/pagination.d.ts +2 -0
  103. package/dist/constants/pagination.d.ts.map +1 -0
  104. package/dist/constants/viewport.d.ts +4 -0
  105. package/dist/constants/viewport.d.ts.map +1 -0
  106. package/dist/contexts/AlertContext.d.ts +14 -0
  107. package/dist/contexts/AlertContext.d.ts.map +1 -0
  108. package/dist/contexts/AppContainerContext.d.ts +5 -0
  109. package/dist/contexts/AppContainerContext.d.ts.map +1 -0
  110. package/dist/contexts/CategoryContext.d.ts +12 -0
  111. package/dist/contexts/CategoryContext.d.ts.map +1 -0
  112. package/dist/contexts/ModalContext.d.ts +10 -0
  113. package/dist/contexts/ModalContext.d.ts.map +1 -0
  114. package/dist/contexts/index.d.ts +2 -0
  115. package/dist/contexts/index.d.ts.map +1 -0
  116. package/dist/hooks/useAccountTagsScreen.d.ts +12 -0
  117. package/dist/hooks/useAccountTagsScreen.d.ts.map +1 -0
  118. package/dist/hooks/useArchiveTag.d.ts +4 -0
  119. package/dist/hooks/useArchiveTag.d.ts.map +1 -0
  120. package/dist/hooks/useFetchTagsForCategory.d.ts +8 -0
  121. package/dist/hooks/useFetchTagsForCategory.d.ts.map +1 -0
  122. package/dist/hooks/useMoveTag.d.ts +10 -0
  123. package/dist/hooks/useMoveTag.d.ts.map +1 -0
  124. package/dist/hooks/usePagination.d.ts +15 -0
  125. package/dist/hooks/usePagination.d.ts.map +1 -0
  126. package/dist/hooks/useSkeletons.d.ts +2 -0
  127. package/dist/hooks/useSkeletons.d.ts.map +1 -0
  128. package/dist/index.d.ts +3 -0
  129. package/dist/index.d.ts.map +1 -0
  130. package/dist/index.js +16757 -0
  131. package/dist/main.d.ts +2 -0
  132. package/dist/main.d.ts.map +1 -0
  133. package/dist/modals/GenericModal/GenericModal.d.ts +27 -0
  134. package/dist/modals/GenericModal/GenericModal.d.ts.map +1 -0
  135. package/dist/modals/GenericModal/ModalProvider.d.ts +5 -0
  136. package/dist/modals/GenericModal/ModalProvider.d.ts.map +1 -0
  137. package/dist/modals/GenericModal/styles.d.ts +3 -0
  138. package/dist/modals/GenericModal/styles.d.ts.map +1 -0
  139. package/dist/modals/MoveTagModal/MoveTagModal.d.ts +12 -0
  140. package/dist/modals/MoveTagModal/MoveTagModal.d.ts.map +1 -0
  141. package/dist/modals/MoveTagModal/index.d.ts +2 -0
  142. package/dist/modals/MoveTagModal/index.d.ts.map +1 -0
  143. package/dist/modals/MoveTagModal/styles.d.ts +2 -0
  144. package/dist/modals/MoveTagModal/styles.d.ts.map +1 -0
  145. package/dist/modals/TagModal/CreateTagModal.d.ts +10 -0
  146. package/dist/modals/TagModal/CreateTagModal.d.ts.map +1 -0
  147. package/dist/modals/TagModal/EditTagModal.d.ts +11 -0
  148. package/dist/modals/TagModal/EditTagModal.d.ts.map +1 -0
  149. package/dist/modals/TagModal/fields/CategoryField.d.ts +16 -0
  150. package/dist/modals/TagModal/fields/CategoryField.d.ts.map +1 -0
  151. package/dist/modals/TagModal/fields/TagDetailsFields.d.ts +12 -0
  152. package/dist/modals/TagModal/fields/TagDetailsFields.d.ts.map +1 -0
  153. package/dist/modals/TagModal/fields/index.d.ts +3 -0
  154. package/dist/modals/TagModal/fields/index.d.ts.map +1 -0
  155. package/dist/modals/TagModal/hooks/index.d.ts +5 -0
  156. package/dist/modals/TagModal/hooks/index.d.ts.map +1 -0
  157. package/dist/modals/TagModal/hooks/useCategoryFormFields.d.ts +21 -0
  158. package/dist/modals/TagModal/hooks/useCategoryFormFields.d.ts.map +1 -0
  159. package/dist/modals/TagModal/hooks/useCreateTagForm.d.ts +23 -0
  160. package/dist/modals/TagModal/hooks/useCreateTagForm.d.ts.map +1 -0
  161. package/dist/modals/TagModal/hooks/useEditTagForm.d.ts +25 -0
  162. package/dist/modals/TagModal/hooks/useEditTagForm.d.ts.map +1 -0
  163. package/dist/modals/TagModal/hooks/useTagFormFields.d.ts +16 -0
  164. package/dist/modals/TagModal/hooks/useTagFormFields.d.ts.map +1 -0
  165. package/dist/modals/TagModal/styles.d.ts +4 -0
  166. package/dist/modals/TagModal/styles.d.ts.map +1 -0
  167. package/dist/screens/AccountTags/AccountTags.d.ts +3 -0
  168. package/dist/screens/AccountTags/AccountTags.d.ts.map +1 -0
  169. package/dist/screens/AccountTags/index.d.ts +2 -0
  170. package/dist/screens/AccountTags/index.d.ts.map +1 -0
  171. package/dist/screens/AccountTags/styles.d.ts +2 -0
  172. package/dist/screens/AccountTags/styles.d.ts.map +1 -0
  173. package/dist/screens/Home.d.ts +3 -0
  174. package/dist/screens/Home.d.ts.map +1 -0
  175. package/dist/services/association.d.ts +6 -0
  176. package/dist/services/association.d.ts.map +1 -0
  177. package/dist/services/category.d.ts +14 -0
  178. package/dist/services/category.d.ts.map +1 -0
  179. package/dist/services/tag.d.ts +24 -0
  180. package/dist/services/tag.d.ts.map +1 -0
  181. package/dist/services/users.d.ts +12 -0
  182. package/dist/services/users.d.ts.map +1 -0
  183. package/dist/skeletons/CategorySkeleton.d.ts +3 -0
  184. package/dist/skeletons/CategorySkeleton.d.ts.map +1 -0
  185. package/dist/skeletons/TagSkeleton.d.ts +3 -0
  186. package/dist/skeletons/TagSkeleton.d.ts.map +1 -0
  187. package/dist/skeletons/styles.d.ts +17 -0
  188. package/dist/skeletons/styles.d.ts.map +1 -0
  189. package/dist/stories/Category.stories.d.ts +12 -0
  190. package/dist/stories/Category.stories.d.ts.map +1 -0
  191. package/dist/stories/Tag.stories.d.ts +10 -0
  192. package/dist/stories/Tag.stories.d.ts.map +1 -0
  193. package/dist/stories/mocks/application.d.ts +3 -0
  194. package/dist/stories/mocks/application.d.ts.map +1 -0
  195. package/dist/stories/mocks/category.d.ts +3 -0
  196. package/dist/stories/mocks/category.d.ts.map +1 -0
  197. package/dist/stories/mocks/tag.d.ts +4 -0
  198. package/dist/stories/mocks/tag.d.ts.map +1 -0
  199. package/dist/types/application.d.ts +13 -0
  200. package/dist/types/application.d.ts.map +1 -0
  201. package/dist/types/category.d.ts +14 -0
  202. package/dist/types/category.d.ts.map +1 -0
  203. package/dist/types/context.d.ts +16 -0
  204. package/dist/types/context.d.ts.map +1 -0
  205. package/dist/types/i18n.d.ts +54 -0
  206. package/dist/types/i18n.d.ts.map +1 -0
  207. package/dist/types/index.d.ts +8 -0
  208. package/dist/types/index.d.ts.map +1 -0
  209. package/dist/types/layout.d.ts +6 -0
  210. package/dist/types/layout.d.ts.map +1 -0
  211. package/dist/types/state.d.ts +9 -0
  212. package/dist/types/state.d.ts.map +1 -0
  213. package/dist/types/tag.d.ts +15 -0
  214. package/dist/types/tag.d.ts.map +1 -0
  215. package/dist/types/viewport.d.ts +21 -0
  216. package/dist/types/viewport.d.ts.map +1 -0
  217. package/dist/utils/category.d.ts +4 -0
  218. package/dist/utils/category.d.ts.map +1 -0
  219. package/dist/utils/i18n.d.ts +6 -0
  220. package/dist/utils/i18n.d.ts.map +1 -0
  221. package/dist/utils/index.d.ts +2 -0
  222. package/dist/utils/index.d.ts.map +1 -0
  223. package/dist/utils/layout.d.ts +3 -0
  224. package/dist/utils/layout.d.ts.map +1 -0
  225. package/dist/utils/skeleton.d.ts +6 -0
  226. package/dist/utils/skeleton.d.ts.map +1 -0
  227. package/locales/en.json +83 -0
  228. package/package.json +96 -0
package/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # @instructure/platform-institutional-tagging
2
+
3
+ Institutions need a flexible system for categorizing and tracking users, courses and other resources beyond Canvas’s built-in organizational structures.
4
+
5
+ ## Installation
6
+
7
+ ```shell
8
+ # ./canvas-lms
9
+ yarn add -W @instructure/platform-institutional-tagging
10
+ ```
11
+
12
+ `-W` _flag to add to the root workspace_
13
+
14
+ ### Peer Dependencies
15
+
16
+ ```json
17
+ {
18
+ "react": "^18.0.0",
19
+ "@instructure/ui-*": "^10.0.0",
20
+ "@instructure/emotion": "^10.0.0"
21
+ }
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ ```tsx
27
+ <AccountTags />
28
+ ```
29
+
30
+ ## Development
31
+
32
+ ```shell
33
+ # Start Storybook sandbox
34
+ pnpm storybook
35
+
36
+ # Run tests
37
+ pnpm test
38
+
39
+ # Run tests with coverage
40
+ pnpm test --coverage
41
+
42
+ # Build
43
+ pnpm build
44
+
45
+ # Type check
46
+ pnpm type-check
47
+ ```
48
+
49
+ ### Mock server
50
+
51
+ ```shell
52
+ # Start the app with a local mock API, hot-reloading locales, and console labels per process
53
+ pnpm dev:mock
54
+ ```
55
+
56
+ This runs three processes concurrently:
57
+ - `web-app` — Vite dev server
58
+ - `mock-server` — local API mock (see `scripts/mock-server.mjs`)
59
+ - `locales` — watches `src/constants/i18n.ts` and regenerates + validates locales on change
60
+
61
+ ### Locales
62
+
63
+ Translations are defined in `src/constants/i18n.ts` and generated into `locales/en.json`.
64
+
65
+ ```shell
66
+ # Regenerate locales/en.json from src/constants/i18n.ts and validate
67
+ pnpm locales:generate
68
+
69
+ # Watch src/constants/i18n.ts and regenerate + validate on every change
70
+ pnpm locales:watch
71
+ ```
72
+
73
+ Validation enforces two rules:
74
+
75
+ | Rule | Behaviour |
76
+ |---|---|
77
+ | Keys must be alphabetically sorted within each object | Exits with error — run `pnpm locales:sort` to fix |
78
+ | No unused keys | Prints a warning — does not fail the process |
79
+
80
+ ```shell
81
+ # Auto-sort keys in src/constants/i18n.ts alphabetically
82
+ pnpm locales:sort
83
+
84
+ # Validate only (sort check + unused key warning)
85
+ pnpm locales:validate
86
+ ```
package/dist/App.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export declare const App: React.FC;
3
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAkBvB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { QueryClient } from '@tanstack/react-query';
2
+ import { AlertConfig } from '../contexts/AlertContext';
3
+ import { default as React } from 'react';
4
+ export declare const createWrapper: (queryClient: QueryClient, showAlert?: (config: AlertConfig) => void) => ({ children }: {
5
+ children: React.ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/__tests__/helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAA;AAExE,OAAO,EAAE,WAAW,EAAgB,MAAM,wBAAwB,CAAA;AAElE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,aAAa,GACvB,aAAa,WAAW,EAAE,YAAW,CAAC,MAAM,EAAE,WAAW,KAAK,IAAe,MAC7E,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4CAM3C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=i18n.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/i18n.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=layout.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/layout.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Shared MSW server instance. Import this in tests to add per-test handlers:
3
+ *
4
+ * import { server } from '_tests_/server'
5
+ * server.use(http.get('/api/...', () => HttpResponse.json({...})))
6
+ *
7
+ * The server lifecycle (listen/resetHandlers/close) is managed in setup.ts.
8
+ */
9
+ export declare const server: import('msw/node').SetupServerApi;
10
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/__tests__/server.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,mCAAgB,CAAA"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/__tests__/setup.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useArchiveTag.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useArchiveTag.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useArchiveTag.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useMoveTag.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMoveTag.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useMoveTag.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=usePagination.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePagination.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/usePagination.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useSkeletons.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSkeletons.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/useSkeletons.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/utils.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * TODO: implement suggestions:
3
+ * - Missing CSRF protection setup
4
+ * - No request timeout configured
5
+ * - No retry logic for failed requests
6
+ */
7
+ declare const client: import('axios').AxiosInstance;
8
+ export { client };
9
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,QAAA,MAAM,MAAM,+BAKV,CAAA;AAwDF,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare const ACCOUNT_ID = 1;
2
+ export declare const accountBase = "/v1/accounts/1";
3
+ export declare const baseURL = "http://localhost:3100/api";
4
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/api/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU,IAAI,CAAA;AAC3B,eAAO,MAAM,WAAW,mBAA+B,CAAA;AACvD,eAAO,MAAM,OAAO,8BAA8B,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { ACCOUNT_ID, accountBase } from './constants';
2
+ export { HttpStatus } from './types';
3
+ export { isApiError } from './utils';
4
+ export * from './client';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,cAAc,UAAU,CAAA"}
@@ -0,0 +1,18 @@
1
+ export interface PaginatedResponse<T> {
2
+ data: T[];
3
+ meta: {
4
+ page: number;
5
+ per_page: number;
6
+ total: number;
7
+ total_pages: number;
8
+ };
9
+ }
10
+ export declare enum HttpStatus {
11
+ BadRequest = 400,
12
+ Unauthorized = 401,
13
+ Forbidden = 403,
14
+ NotFound = 404,
15
+ Conflict = 409,
16
+ UnprocessableEntity = 422
17
+ }
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,IAAI,EAAE,CAAC,EAAE,CAAA;IACT,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;CAC7E;AAED,oBAAY,UAAU;IACpB,UAAU,MAAM;IAChB,YAAY,MAAM;IAClB,SAAS,MAAM;IACf,QAAQ,MAAM;IACd,QAAQ,MAAM;IACd,mBAAmB,MAAM;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export declare const isApiError: (error: unknown, status: number) => boolean;
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/api/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,EAAE,QAAQ,MAAM,KAAG,OACI,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export declare const AlertProvider: React.FC<{
3
+ children: React.ReactNode;
4
+ }>;
5
+ //# sourceMappingURL=AlertProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/AlertProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAmCjE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { AlertProvider } from './AlertProvider';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const AlertStackWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const AlertItemWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,6NAM7B,CAAA;AAED,eAAO,MAAM,gBAAgB,6NAO5B,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { AppContainerProviderProps } from '../../types/viewport';
2
+ import { default as React } from 'react';
3
+ export declare const AppContainerProvider: React.FC<React.PropsWithChildren<AppContainerProviderProps>>;
4
+ //# sourceMappingURL=AppContainerProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppContainerProvider.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainerProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAS,MAAM,iBAAiB,CAAA;AAElE,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,CAmD7F,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface GenericStoryWrapperProps {
3
+ children: React.ReactNode;
4
+ width?: '50%' | '100%';
5
+ }
6
+ export declare const GenericStoryWrapper: React.FC<GenericStoryWrapperProps>;
7
+ export {};
8
+ //# sourceMappingURL=GenericStoryWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericStoryWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/GenericStoryWrapper.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,wBAAwB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAYlE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { AppContainerProvider } from './AppContainerProvider';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const AppContainerWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,6NAG/B,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { BottomBarProps } from './types';
3
+ export declare const BottomSection: React.FC<BottomBarProps>;
4
+ //# sourceMappingURL=BottomSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomSection.d.ts","sourceRoot":"","sources":["../../../src/components/Category/BottomSection.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA2GlD,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CategoryProps } from './types';
3
+ export declare const Category: React.FC<CategoryProps>;
4
+ //# sourceMappingURL=Category.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Category.d.ts","sourceRoot":"","sources":["../../../src/components/Category/Category.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsD5C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CategoryInfoPillsProps } from './types';
3
+ export declare const CategoryInfoPills: React.FC<CategoryInfoPillsProps>;
4
+ //# sourceMappingURL=CategoryInfoPills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryInfoPills.d.ts","sourceRoot":"","sources":["../../../src/components/Category/CategoryInfoPills.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAEhD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAoC9D,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CategoryListProps } from './types';
3
+ export declare const CategoryList: React.FC<CategoryListProps>;
4
+ //# sourceMappingURL=CategoryList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryList.d.ts","sourceRoot":"","sources":["../../../src/components/Category/CategoryList.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmDpD,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CategoryListItemProps } from './types';
3
+ export declare const CategoryListItem: React.FC<CategoryListItemProps>;
4
+ //# sourceMappingURL=CategoryListItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryListItem.d.ts","sourceRoot":"","sources":["../../../src/components/Category/CategoryListItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE/C,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAgB5D,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { TagAreaProps } from './types';
3
+ export declare const TagArea: React.FC<TagAreaProps>;
4
+ //# sourceMappingURL=TagArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagArea.d.ts","sourceRoot":"","sources":["../../../src/components/Category/TagArea.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAsJ1C,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { CategoryActionButtonsProps, TopBarProps } from './types';
3
+ export declare const CategoryActionButtons: React.FC<CategoryActionButtonsProps>;
4
+ export declare const TopSection: React.FC<TopBarProps>;
5
+ //# sourceMappingURL=TopSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopSection.d.ts","sourceRoot":"","sources":["../../../src/components/Category/TopSection.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,EAAE,0BAA0B,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEjE,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA6DtE,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAmC5C,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { IconButtonProps } from '@instructure/ui-buttons';
2
+ export declare const commonIconButtonProps: Partial<IconButtonProps>;
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/Category/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAEzD,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,eAAe,CAG1D,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { Category } from './Category';
2
+ export { CategoryList } from './CategoryList';
3
+ export { CategoryListItem } from './CategoryListItem';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Category/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,30 @@
1
+ export declare const CategoryWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const CategoryContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ interface CategoryInfoWrapperProps {
4
+ $isExpanded: boolean;
5
+ }
6
+ export declare const CategoryInfoWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CategoryInfoWrapperProps>> & string;
7
+ interface CategoryTopBarWrapperProps {
8
+ $isMobile?: boolean;
9
+ }
10
+ export declare const CategoryTopBarWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CategoryTopBarWrapperProps>> & string;
11
+ export declare const CategoryTextWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
+ export declare const CategoryNameWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
+ export declare const CategoryTopBarActionsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
14
+ export declare const CategoryBottomBarWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
15
+ export declare const CategoryBottomBarActionsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
16
+ export declare const CategoryBottomBarSelectInfoWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
17
+ export declare const CategoryBottomBarSelectGeneralWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
18
+ interface CategoryBottomBarInfoWrapperProps {
19
+ $withInlineSpacing?: boolean;
20
+ }
21
+ export declare const CategoryBottomBarInfoWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CategoryBottomBarInfoWrapperProps>> & string;
22
+ export declare const TagAreaContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
23
+ export declare const TagListWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
24
+ interface TagListItemWrapperProps {
25
+ $columns: number;
26
+ }
27
+ export declare const TagListItemWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TagListItemWrapperProps>> & string;
28
+ export declare const TagAreaEmptyStateWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
29
+ export {};
30
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Category/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,6NAQ3B,CAAA;AACD,eAAO,MAAM,iBAAiB,6NAU7B,CAAA;AAED,UAAU,wBAAwB;IAChC,WAAW,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,6PAO/B,CAAA;AACD,UAAU,0BAA0B;IAClC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,qBAAqB,+PAMjC,CAAA;AACD,eAAO,MAAM,mBAAmB,6NAS/B,CAAA;AAED,eAAO,MAAM,mBAAmB,6NAG/B,CAAA;AACD,eAAO,MAAM,4BAA4B,6NAIxC,CAAA;AACD,eAAO,MAAM,wBAAwB,6NAKpC,CAAA;AACD,eAAO,MAAM,+BAA+B,6NAK3C,CAAA;AACD,eAAO,MAAM,kCAAkC,6NAK9C,CAAA;AAED,eAAO,MAAM,qCAAqC,6NAKjD,CAAA;AAED,UAAU,iCAAiC;IACzC,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,eAAO,MAAM,4BAA4B,sQAOxC,CAAA;AACD,eAAO,MAAM,gBAAgB,6NAE5B,CAAA;AACD,eAAO,MAAM,cAAc,6NAK1B,CAAA;AACD,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,kBAAkB,4PAI9B,CAAA;AACD,eAAO,MAAM,wBAAwB,6NAKpC,CAAA"}
@@ -0,0 +1,55 @@
1
+ import { CategoryType } from '../../types/category';
2
+ import { TagType } from '../../types/tag';
3
+ export interface BottomBarProps {
4
+ category: CategoryType;
5
+ allCategories: CategoryType[];
6
+ isExpanded: boolean;
7
+ }
8
+ export interface CategoryActionButtonsProps {
9
+ category: CategoryType;
10
+ allCategories: CategoryType[];
11
+ }
12
+ export interface CategoryInfoPillsProps {
13
+ category: CategoryType;
14
+ withInlineSpacing?: boolean;
15
+ }
16
+ export interface CategoryListItemProps {
17
+ category: CategoryType;
18
+ allCategories: CategoryType[];
19
+ }
20
+ export interface CategoryListProps {
21
+ categories: CategoryType[];
22
+ isPending: boolean;
23
+ isError: boolean;
24
+ error: Error | null;
25
+ currentPage: number;
26
+ totalPages: number;
27
+ onPageChange: (page: number) => void;
28
+ }
29
+ export interface CategoryProps {
30
+ category: CategoryType;
31
+ allCategories: CategoryType[];
32
+ tags?: TagType[];
33
+ isLoadingTags?: boolean;
34
+ currentPage?: number;
35
+ totalPages?: number;
36
+ onPageChange?: (page: number) => void;
37
+ editHandler?: (categoryId: number) => void;
38
+ viewAllPeopleHandler?: (categoryId: number) => void;
39
+ archiveHandler?: (categoryId: number) => void;
40
+ }
41
+ export interface TagAreaProps {
42
+ categoryId: number;
43
+ tags?: TagType[];
44
+ isLoadingTags?: boolean;
45
+ currentPage?: number;
46
+ totalPages?: number;
47
+ onPageChange?: (page: number) => void;
48
+ allCategories: CategoryType[];
49
+ }
50
+ export interface TopBarProps {
51
+ category: CategoryType;
52
+ allCategories: CategoryType[];
53
+ isExpanded: boolean;
54
+ }
55
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Category/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,YAAY,CAAA;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,YAAY,EAAE,CAAA;IAC1B,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACrC;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,oBAAoB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9C;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,YAAY,CAAA;IACtB,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,UAAU,EAAE,OAAO,CAAA;CACpB"}
@@ -0,0 +1,2 @@
1
+ export declare const Layout: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=Layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/Layout.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,MAAM,+CA+ClB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { Layout } from './Layout';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const LayoutWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,6NAKzB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ type SearchAndFilterSectionProps = {
3
+ searchResultCount: number;
4
+ handleSearchQueryChange: (query: string) => void;
5
+ };
6
+ export declare const SearchAndFilterSection: React.FC<SearchAndFilterSectionProps>;
7
+ export {};
8
+ //# sourceMappingURL=SearchAndFilterSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchAndFilterSection.d.ts","sourceRoot":"","sources":["../../../src/components/SearchAndFilterSection/SearchAndFilterSection.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAA;IACzB,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACjD,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAmDxE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { SearchAndFilterSection } from './SearchAndFilterSection';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SearchAndFilterSection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const SearchAndFilterSectionWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const SelectWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const SearchBarWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const SearchBarSeparator: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>> & string;
5
+ export declare const SearchBarButtonsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/SearchAndFilterSection/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,6BAA6B,6NAazC,CAAA;AAED,eAAO,MAAM,aAAa,6NAczB,CAAA;AAED,eAAO,MAAM,gBAAgB,6NAa5B,CAAA;AACD,eAAO,MAAM,kBAAkB,2NAI9B,CAAA;AACD,eAAO,MAAM,uBAAuB,6NASnC,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { SimpleSelect } from '@instructure/ui-simple-select';
2
+ import { I18nToken } from '../../types/i18n';
3
+ import { default as React } from 'react';
4
+ type SimpleSelectProps = React.ComponentProps<typeof SimpleSelect>;
5
+ export interface SelectOption<T extends string | number = string | number> {
6
+ id: T;
7
+ label: string;
8
+ renderBeforeLabel?: React.ReactNode;
9
+ }
10
+ interface SelectProps<T extends string | number> extends Omit<SimpleSelectProps, 'renderLabel' | 'placeholder' | 'onChange' | 'children' | 'defaultValue'> {
11
+ options: SelectOption<T>[];
12
+ onChange: (id: T) => void;
13
+ label: I18nToken;
14
+ placeholder?: I18nToken;
15
+ defaultValue?: T;
16
+ }
17
+ export declare const Select: <T extends string | number>({ options, onChange, label, placeholder, isRequired, defaultValue, ...rest }: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;
18
+ export {};
19
+ //# sourceMappingURL=Select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,CAAA;AAGlE,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM;IACvE,EAAE,EAAE,CAAC,CAAA;IACL,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACpC;AAED,UAAU,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAC7C,SAAQ,IAAI,CACV,iBAAiB,EACjB,aAAa,GAAG,aAAa,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,CACzE;IACD,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAA;IAC1B,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,CAAA;IACzB,KAAK,EAAE,SAAS,CAAA;IAChB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,YAAY,CAAC,EAAE,CAAC,CAAA;CACjB;AAED,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,8EAQ/C,WAAW,CAAC,CAAC,CAAC,4CA6BhB,CAAA"}