@telicent-oss/ds 0.0.1

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 (259) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +135 -0
  3. package/dist/assets/fonts/figtree/figtree-black.woff2 +0 -0
  4. package/dist/assets/fonts/figtree/figtree-bold.woff2 +0 -0
  5. package/dist/assets/fonts/figtree/figtree-extrabold.woff2 +0 -0
  6. package/dist/assets/fonts/figtree/figtree-light.woff2 +0 -0
  7. package/dist/assets/fonts/figtree/figtree-medium.woff2 +0 -0
  8. package/dist/assets/fonts/figtree/figtree-regular.woff2 +0 -0
  9. package/dist/assets/fonts/figtree/figtree-semibold.woff2 +0 -0
  10. package/dist/assets/fonts/fontawesome/css/all.min.css +9 -0
  11. package/dist/assets/fonts/fontawesome/css/svg-with-js.min.css +6 -0
  12. package/dist/assets/fonts/fontawesome/webfonts/fa-brands-400.ttf +0 -0
  13. package/dist/assets/fonts/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
  14. package/dist/assets/fonts/fontawesome/webfonts/fa-regular-400.ttf +0 -0
  15. package/dist/assets/fonts/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
  16. package/dist/assets/fonts/fontawesome/webfonts/fa-solid-900.ttf +0 -0
  17. package/dist/assets/fonts/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
  18. package/dist/assets/fonts/fontawesome/webfonts/fa-v4compatibility.ttf +0 -0
  19. package/dist/assets/fonts/fontawesome/webfonts/fa-v4compatibility.woff2 +0 -0
  20. package/dist/assets/fonts/remixicon/index.html +156 -0
  21. package/dist/assets/fonts/remixicon/remixicon.css +8640 -0
  22. package/dist/assets/fonts/remixicon/remixicon.eot +0 -0
  23. package/dist/assets/fonts/remixicon/remixicon.glyph.json +1 -0
  24. package/dist/assets/fonts/remixicon/remixicon.less +2898 -0
  25. package/dist/assets/fonts/remixicon/remixicon.module.less +2880 -0
  26. package/dist/assets/fonts/remixicon/remixicon.scss +5729 -0
  27. package/dist/assets/fonts/remixicon/remixicon.styl +2867 -0
  28. package/dist/assets/fonts/remixicon/remixicon.svg +8572 -0
  29. package/dist/assets/fonts/remixicon/remixicon.symbol.svg +11 -0
  30. package/dist/assets/fonts/remixicon/remixicon.ttf +0 -0
  31. package/dist/assets/fonts/remixicon/remixicon.woff +0 -0
  32. package/dist/assets/fonts/remixicon/remixicon.woff2 +0 -0
  33. package/dist/assets/fonts/remixicon/symbol.html +20104 -0
  34. package/dist/assets/fonts/remixicon/unicode.html +175 -0
  35. package/dist/assets/fonts/space-grotesk/space-grotesk-regular.woff2 +0 -0
  36. package/dist/ds.js +41259 -0
  37. package/dist/ds.umd.cjs +1047 -0
  38. package/dist/export.d.ts +1 -0
  39. package/dist/fontawesome.css +2 -0
  40. package/dist/src/components/AppSwitch/AppSwitch.d.ts +15 -0
  41. package/dist/src/components/AppSwitch/AppSwitch.stories.d.ts +15 -0
  42. package/dist/src/components/AppSwitch/AppSwitch.test.d.ts +1 -0
  43. package/dist/src/components/AppSwitch/appsArray.d.ts +8 -0
  44. package/dist/src/components/AppSwitch/styleLookup.d.ts +7 -0
  45. package/dist/src/components/DependenciesTable/DependenciesTable.d.ts +9 -0
  46. package/dist/src/components/DependenciesTable/DependenciesTable.stories.d.ts +6 -0
  47. package/dist/src/components/DependenciesTable/DependenciesTable.test.d.ts +1 -0
  48. package/dist/src/components/License/License.d.ts +25 -0
  49. package/dist/src/components/License/License.stories.d.ts +8 -0
  50. package/dist/src/components/License/License.test.d.ts +1 -0
  51. package/dist/src/components/OntologyClassMarker/OntologyClassMarker.d.ts +16 -0
  52. package/dist/src/components/OntologyClassMarker/OntologyClassMarker.stories.d.ts +18 -0
  53. package/dist/src/components/OntologyHierarchy/OntologyHierarchy.d.ts +22 -0
  54. package/dist/src/components/OntologyHierarchy/OntologyHierarchy.stories.d.ts +25 -0
  55. package/dist/src/components/OntologyHierarchy/OntologyHierarchyDisplay.d.ts +4 -0
  56. package/dist/src/components/OntologyHierarchy/OntologyHierarchyDisplay.test.d.ts +1 -0
  57. package/dist/src/components/OntologyHierarchy/OntologyHierarchyFunctions.d.ts +20 -0
  58. package/dist/src/components/OntologyHierarchy/OntologyHierarchyFunctions.test.d.ts +1 -0
  59. package/dist/src/components/OntologyHierarchy/data/hierarchy.d.ts +3 -0
  60. package/dist/src/components/SearchAutocomplete/SearchAutocomplete.d.ts +59 -0
  61. package/dist/src/components/SearchAutocomplete/SearchAutocomplete.stories.d.ts +48 -0
  62. package/dist/src/components/SearchAutocomplete/custom-options.d.ts +5 -0
  63. package/dist/src/components/SearchAutocompleteDialog/RecentSearches.d.ts +7 -0
  64. package/dist/src/components/SearchAutocompleteDialog/SearchAutocompleteDialog.d.ts +14 -0
  65. package/dist/src/components/SearchAutocompleteDialog/SearchAutocompleteDialog.stories.d.ts +78 -0
  66. package/dist/src/components/SearchAutocompleteDialog/SearchResults.d.ts +8 -0
  67. package/dist/src/components/SearchAutocompleteDialog/index.d.ts +3 -0
  68. package/dist/src/components/SearchAutocompleteDialog/sample-results.d.ts +6 -0
  69. package/dist/src/components/TeliAutocomplete/TeliAutocomplete.d.ts +24 -0
  70. package/dist/src/components/TeliAutocomplete/TeliAutocomplete.stories.d.ts +16 -0
  71. package/dist/src/components/TeliAutocomplete/stories/AsyncOnLoad.d.ts +3 -0
  72. package/dist/src/components/TeliAutocomplete/stories/ComboBox.d.ts +3 -0
  73. package/dist/src/components/TeliAutocomplete/stories/ComboBoxOptions.d.ts +3 -0
  74. package/dist/src/components/TeliAutocomplete/stories/Controlled.d.ts +3 -0
  75. package/dist/src/components/TeliAutocomplete/stories/CustomRenderOptions.d.ts +3 -0
  76. package/dist/src/components/TeliAutocomplete/stories/FreeSolo.d.ts +3 -0
  77. package/dist/src/components/TeliAutocomplete/stories/MultipleValues.d.ts +3 -0
  78. package/dist/src/components/TeliAutocomplete/stories/countries.d.ts +12 -0
  79. package/dist/src/components/TeliAutocomplete/stories/index.d.ts +7 -0
  80. package/dist/src/components/TeliAutocomplete/stories/options.d.ts +4 -0
  81. package/dist/src/components/TeliAutocomplete/stories/top100movies.d.ts +5 -0
  82. package/dist/src/components/TeliAvatar/TeliUserAvatar.d.ts +23 -0
  83. package/dist/src/components/TeliAvatar/TeliUserAvatar.stories.d.ts +17 -0
  84. package/dist/src/components/TeliBrand/TeliBrand.d.ts +27 -0
  85. package/dist/src/components/TeliBrand/TeliBrand.stories.d.ts +11 -0
  86. package/dist/src/components/TeliBrand/TeliBrand.test.d.ts +1 -0
  87. package/dist/src/components/TeliButton/TeliButton.d.ts +16 -0
  88. package/dist/src/components/TeliButton/TeliButton.stories.d.ts +23 -0
  89. package/dist/src/components/TeliButton/TeliButtonBase.d.ts +36 -0
  90. package/dist/src/components/TeliButton/stories/ButtonWithIcons.d.ts +3 -0
  91. package/dist/src/components/TeliButton/stories/ButtonWithTooltips.d.ts +3 -0
  92. package/dist/src/components/TeliButton/stories/DangerButtons.d.ts +3 -0
  93. package/dist/src/components/TeliButton/stories/IconButtons.d.ts +3 -0
  94. package/dist/src/components/TeliButton/stories/LinkButtons.d.ts +3 -0
  95. package/dist/src/components/TeliButton/stories/PrimaryButtons.d.ts +3 -0
  96. package/dist/src/components/TeliButton/stories/SecondaryButtons.d.ts +3 -0
  97. package/dist/src/components/TeliButton/stories/Sizes.d.ts +3 -0
  98. package/dist/src/components/TeliButton/stories/TertiaryButtons.d.ts +3 -0
  99. package/dist/src/components/TeliButton/stories/index.d.ts +9 -0
  100. package/dist/src/components/TeliCheckbox/TeliCheckbox.d.ts +13 -0
  101. package/dist/src/components/TeliCheckbox/TeliCheckbox.stories.d.ts +10 -0
  102. package/dist/src/components/TeliChip/TeliChip.d.ts +10 -0
  103. package/dist/src/components/TeliChip/TeliChip.stories.d.ts +16 -0
  104. package/dist/src/components/TeliChip/stories/BasicChips.d.ts +3 -0
  105. package/dist/src/components/TeliChip/stories/ChipsExample.d.ts +3 -0
  106. package/dist/src/components/TeliChip/stories/ClickableChips.d.ts +3 -0
  107. package/dist/src/components/TeliChip/stories/ClickableLinkChips.d.ts +3 -0
  108. package/dist/src/components/TeliChip/stories/ColorChips.d.ts +3 -0
  109. package/dist/src/components/TeliChip/stories/DeleteableChips.d.ts +3 -0
  110. package/dist/src/components/TeliChip/stories/IconChips.d.ts +3 -0
  111. package/dist/src/components/TeliChip/stories/SizeChips.d.ts +3 -0
  112. package/dist/src/components/TeliChip/stories/index.d.ts +8 -0
  113. package/dist/src/components/TeliDialog/TeliDialog.d.ts +15 -0
  114. package/dist/src/components/TeliDialog/TeliDialog.stories.d.ts +8 -0
  115. package/dist/src/components/TeliHeader/TeliHeader.d.ts +11 -0
  116. package/dist/src/components/TeliHeader/TeliHeader.stories.d.ts +8 -0
  117. package/dist/src/components/TeliHeader/TeliStandardLayoutHeader.d.ts +25 -0
  118. package/dist/src/components/TeliHeader/TeliStandardLayoutHeader.stories.d.ts +10 -0
  119. package/dist/src/components/TeliIcons/AllIcons.d.ts +2 -0
  120. package/dist/src/components/TeliIcons/AllIcons.stories.d.ts +6 -0
  121. package/dist/src/components/TeliIcons/ClockRotateLeft.d.ts +4 -0
  122. package/dist/src/components/TeliIcons/ClockRotateLeft.stories.d.ts +6 -0
  123. package/dist/src/components/TeliIcons/Icon.d.ts +13 -0
  124. package/dist/src/components/TeliIcons/TeliAddIcon.d.ts +4 -0
  125. package/dist/src/components/TeliIcons/TeliAddIcon.stories.d.ts +6 -0
  126. package/dist/src/components/TeliIcons/TeliCloseIcon.d.ts +4 -0
  127. package/dist/src/components/TeliIcons/TeliCloseIcon.stories.d.ts +6 -0
  128. package/dist/src/components/TeliIcons/TeliDeleteIcon.d.ts +4 -0
  129. package/dist/src/components/TeliIcons/TeliDeleteIcon.stories.d.ts +6 -0
  130. package/dist/src/components/TeliIcons/TeliEditIcon.d.ts +4 -0
  131. package/dist/src/components/TeliIcons/TeliEditIcon.stories.d.ts +6 -0
  132. package/dist/src/components/TeliIcons/TeliSearchIcon.d.ts +4 -0
  133. package/dist/src/components/TeliIcons/TeliSearchIcon.stories.d.ts +6 -0
  134. package/dist/src/components/TeliIcons/TeliSortIcon.stories.d.ts +7 -0
  135. package/dist/src/components/TeliIcons/TeliSortIcons.d.ts +5 -0
  136. package/dist/src/components/TeliIcons/index.d.ts +7 -0
  137. package/dist/src/components/TeliList/TeliList.d.ts +29 -0
  138. package/dist/src/components/TeliList/TeliList.stories.d.ts +8 -0
  139. package/dist/src/components/TeliMenu/BasicMenuContents.d.ts +14 -0
  140. package/dist/src/components/TeliMenu/TeliBasicMenu.d.ts +87 -0
  141. package/dist/src/components/TeliMenu/TeliBasicMenu.stories.d.ts +17 -0
  142. package/dist/src/components/TeliMenu/TeliMenu.d.ts +6 -0
  143. package/dist/src/components/TeliMenu/TeliMenu.stories.d.ts +9 -0
  144. package/dist/src/components/TeliMenu/stories/BasicMenu.d.ts +3 -0
  145. package/dist/src/components/TeliMenu/stories/ControlledBasicMenu.d.ts +3 -0
  146. package/dist/src/components/TeliMenu/stories/CustomMenuItems.d.ts +3 -0
  147. package/dist/src/components/TeliMenu/stories/PositionedMenu.d.ts +3 -0
  148. package/dist/src/components/TeliMenu/stories/SimpleMenu.d.ts +2 -0
  149. package/dist/src/components/TeliMenu/stories/WithIcon.d.ts +3 -0
  150. package/dist/src/components/TeliMenu/stories/index.d.ts +5 -0
  151. package/dist/src/components/TeliMenu/stories/menu-items.d.ts +10 -0
  152. package/dist/src/components/TeliSelect/TeliSelect.d.ts +129 -0
  153. package/dist/src/components/TeliSelect/TeliSelect.stories.d.ts +43 -0
  154. package/dist/src/components/TeliSelect/stories/BasicSelect.d.ts +3 -0
  155. package/dist/src/components/TeliSelect/stories/LabelsAndHelperText.d.ts +3 -0
  156. package/dist/src/components/TeliSelect/stories/MultiSelect.d.ts +3 -0
  157. package/dist/src/components/TeliSelect/stories/OtherStates.d.ts +3 -0
  158. package/dist/src/components/TeliSelect/stories/index.d.ts +4 -0
  159. package/dist/src/components/TeliSelect/stories/top-30-movies.d.ts +5 -0
  160. package/dist/src/components/TeliSpinner/TeliSpinner.d.ts +4 -0
  161. package/dist/src/components/TeliSpinner/TeliSpinner.stories.d.ts +9 -0
  162. package/dist/src/components/TeliSwitch/TeliSwitch.d.ts +74 -0
  163. package/dist/src/components/TeliSwitch/TeliSwitch.stories.d.ts +9 -0
  164. package/dist/src/components/TeliSwitch/stories/BasicSwitches.d.ts +3 -0
  165. package/dist/src/components/TeliSwitch/stories/ControlledSwitches.d.ts +3 -0
  166. package/dist/src/components/TeliSwitch/stories/LabelPlacement.d.ts +3 -0
  167. package/dist/src/components/TeliSwitch/stories/LabelledSwitches.d.ts +3 -0
  168. package/dist/src/components/TeliSwitch/stories/Sizes.d.ts +3 -0
  169. package/dist/src/components/TeliSwitch/stories/index.d.ts +5 -0
  170. package/dist/src/components/TeliTable/TeliBasicTable.d.ts +48 -0
  171. package/dist/src/components/TeliTable/TeliBasicTable.stories.d.ts +16 -0
  172. package/dist/src/components/TeliTable/TeliTable.d.ts +20 -0
  173. package/dist/src/components/TeliTable/TeliTable.stories.d.ts +19 -0
  174. package/dist/src/components/TeliTable/TeliTableBody.d.ts +6 -0
  175. package/dist/src/components/TeliTable/TeliTableBody.stories.d.ts +15 -0
  176. package/dist/src/components/TeliTable/TeliTableCell.d.ts +12 -0
  177. package/dist/src/components/TeliTable/TeliTableCell.stories.d.ts +8 -0
  178. package/dist/src/components/TeliTable/TeliTableContainer.d.ts +16 -0
  179. package/dist/src/components/TeliTable/TeliTableContainer.stories.d.ts +8 -0
  180. package/dist/src/components/TeliTable/TeliTableHead.d.ts +6 -0
  181. package/dist/src/components/TeliTable/TeliTableHead.stories.d.ts +15 -0
  182. package/dist/src/components/TeliTable/TeliTableRow.d.ts +13 -0
  183. package/dist/src/components/TeliTable/TeliTableRow.stories.d.ts +15 -0
  184. package/dist/src/components/TeliTable/index.d.ts +7 -0
  185. package/dist/src/components/TeliTable/stories/BasicTable.d.ts +3 -0
  186. package/dist/src/components/TeliTable/stories/Caption.d.ts +3 -0
  187. package/dist/src/components/TeliTable/stories/CustomColumns.d.ts +3 -0
  188. package/dist/src/components/TeliTable/stories/DenseTable.d.ts +3 -0
  189. package/dist/src/components/TeliTable/stories/StickyHeader.d.ts +3 -0
  190. package/dist/src/components/TeliTable/stories/TableExample.d.ts +3 -0
  191. package/dist/src/components/TeliTable/stories/index.d.ts +6 -0
  192. package/dist/src/components/TeliTable/stories/table-data.d.ts +4 -0
  193. package/dist/src/components/TeliTable/table-utils.d.ts +12 -0
  194. package/dist/src/components/TeliTabs/ExampleTeliTabs.stories.d.ts +8 -0
  195. package/dist/src/components/TeliTabs/TeliTab.d.ts +8 -0
  196. package/dist/src/components/TeliTabs/TeliTabPanel.d.ts +8 -0
  197. package/dist/src/components/TeliTabs/TeliTabs.d.ts +11 -0
  198. package/dist/src/components/TeliTabs/index.d.ts +3 -0
  199. package/dist/src/components/TeliTextField/TeliInput.d.ts +8 -0
  200. package/dist/src/components/TeliTextField/TeliTextField.d.ts +9 -0
  201. package/dist/src/components/TeliTextField/TeliTextField.stories.d.ts +10 -0
  202. package/dist/src/components/TeliTextField/TeliTextFieldProps.d.ts +74 -0
  203. package/dist/src/components/TeliTextField/stories/Adornments.d.ts +3 -0
  204. package/dist/src/components/TeliTextField/stories/Controlled.d.ts +3 -0
  205. package/dist/src/components/TeliTextField/stories/FormProps.d.ts +3 -0
  206. package/dist/src/components/TeliTextField/stories/Multiline.d.ts +3 -0
  207. package/dist/src/components/TeliTextField/stories/Validation.d.ts +3 -0
  208. package/dist/src/components/TeliTextField/stories/index.d.ts +5 -0
  209. package/dist/src/components/TeliToolbar/TeliToolbar.d.ts +19 -0
  210. package/dist/src/components/TeliToolbar/TeliToolbar.stories.d.ts +292 -0
  211. package/dist/src/components/TeliToolbar/stories/GroupedActions.d.ts +3 -0
  212. package/dist/src/components/TeliToolbar/stories/HorizontalAndVerticalToolbars.d.ts +3 -0
  213. package/dist/src/components/TeliToolbar/stories/PositionedToolbars.d.ts +3 -0
  214. package/dist/src/components/TeliToolbar/stories/index.d.ts +3 -0
  215. package/dist/src/components/TeliTypeIcon/TeliTypeIcon.d.ts +27 -0
  216. package/dist/src/components/TeliTypeIcon/TeliTypeIcon.stories.d.ts +48 -0
  217. package/dist/src/components/TeliTypeIcon/type-icon-utils.d.ts +10 -0
  218. package/dist/src/components/TeliTypeahead/TeliTypeahead.d.ts +9 -0
  219. package/dist/src/components/TeliTypeahead/TeliTypeahead.stories.d.ts +348 -0
  220. package/dist/src/components/TeliTypeahead/stories/FreeSolo.d.ts +3 -0
  221. package/dist/src/components/TeliTypeahead/stories/MultiSelect.d.ts +3 -0
  222. package/dist/src/components/TeliTypeahead/stories/index.d.ts +2 -0
  223. package/dist/src/components/TeliTypeahead/stories/utils.d.ts +10 -0
  224. package/dist/src/components/TeliUserProfile/TeliUserProfile.d.ts +9 -0
  225. package/dist/src/components/TeliUserProfile/TeliUserProfile.stories.d.ts +16 -0
  226. package/dist/src/components/TeliUserProfile/TeliUserProfileButton.d.ts +15 -0
  227. package/dist/src/components/TeliUserProfile/TeliUserProfileMenu.d.ts +17 -0
  228. package/dist/src/components/index.d.ts +30 -0
  229. package/dist/src/contexts/OntologyStyles.d.ts +48 -0
  230. package/dist/src/contexts/context-utils.d.ts +4 -0
  231. package/dist/src/export.d.ts +7 -0
  232. package/dist/src/hooks/query-utils.d.ts +5 -0
  233. package/dist/src/hooks/useDebounce.d.ts +2 -0
  234. package/dist/src/hooks/useTeliTheme.d.ts +10 -0
  235. package/dist/src/hooks/useTheme.d.ts +7 -0
  236. package/dist/src/hooks/useTypeahead.d.ts +2 -0
  237. package/dist/src/layouts/TeliBasicLayout/TeliBasicLayout.d.ts +6 -0
  238. package/dist/src/layouts/TeliBasicLayout/TeliBasicLayout.stories.d.ts +10 -0
  239. package/dist/src/layouts/TeliStandardLayout/TeliStandardLayout.d.ts +7 -0
  240. package/dist/src/layouts/TeliStandardLayout/TeliStandardLayout.stories.d.ts +8 -0
  241. package/dist/src/providers/LayoutProviders/DSProviders.d.ts +8 -0
  242. package/dist/src/providers/LayoutProviders/LayoutProviders.d.ts +5 -0
  243. package/dist/src/providers/LayoutProviders/index.d.ts +2 -0
  244. package/dist/src/providers/TeliStyledEngineProvider/TeliStyledEngineProvider.d.ts +6 -0
  245. package/dist/src/providers/TeliThemeProvider/TeliThemeProvider.d.ts +10 -0
  246. package/dist/src/providers/TeliThemeProvider/TeliThemeProvider.test.d.ts +1 -0
  247. package/dist/src/providers/TeliThemeProvider/components.d.ts +3 -0
  248. package/dist/src/providers/TeliThemeProvider/palette.d.ts +4 -0
  249. package/dist/src/providers/TeliThemeProvider/typography.d.ts +3 -0
  250. package/dist/src/providers/index.d.ts +3 -0
  251. package/dist/src/setupTests.d.ts +0 -0
  252. package/dist/src/stories/Branding/Favicons.d.ts +3 -0
  253. package/dist/src/stories/Branding/Figtree.d.ts +3 -0
  254. package/dist/src/stories/Branding/SpaceGrotesk.d.ts +3 -0
  255. package/dist/src/test-utils.d.ts +58 -0
  256. package/dist/src/types/layout.d.ts +11 -0
  257. package/dist/style.css +1 -0
  258. package/dist/telicent-favicon.svg +1 -0
  259. package/package.json +170 -0
@@ -0,0 +1,87 @@
1
+ import React from "react";
2
+ import { PopperPlacementType } from "@mui/base";
3
+ import "./telibasicmenu.css";
4
+ export interface MenuItem {
5
+ id: string;
6
+ onClick?: (event?: Event | React.SyntheticEvent) => void;
7
+ label?: string | React.ReactNode;
8
+ startIcon?: React.ReactNode;
9
+ endIcon?: React.ReactNode;
10
+ }
11
+ export interface TeliBasicMenuProps {
12
+ /**
13
+ * The id of the Button element.
14
+ */
15
+ buttonId?: string;
16
+ /**
17
+ * The menu contents.
18
+ */
19
+ children?: React.ReactNode;
20
+ /**
21
+ * If true, the component is initially open. Use when the component open state
22
+ * is not controlled (i.e. the open prop is not defined).
23
+ */
24
+ defaultOpen?: boolean;
25
+ /** If true, the component will be displayed in a disabled state */
26
+ disabled?: boolean;
27
+ /**
28
+ * The message to be displayed when menu items are empty.
29
+ */
30
+ emptyMessage?: string;
31
+ /**
32
+ * Element placed after the children.
33
+ */
34
+ endIcon?: React.ReactNode;
35
+ /**
36
+ * The id of the MenuList component.
37
+ */
38
+ listId?: string;
39
+ /**
40
+ * The content of the Button component.
41
+ */
42
+ label: string | React.ReactNode;
43
+ /**
44
+ * Menu content items.
45
+ */
46
+ menuItems?: MenuItem[];
47
+ /**
48
+ * If true, the menu component will be shown.
49
+ */
50
+ open?: boolean;
51
+ /**
52
+ * Callback fired when the component requests to be opened. Use it for
53
+ * controlled mode.
54
+ */
55
+ onOpen?: React.MouseEventHandler<HTMLButtonElement>;
56
+ /**
57
+ * Callback fired when the component requests to be closed. Use it for
58
+ * controlled mode.
59
+ */
60
+ onClose?: (event: MouseEvent | TouchEvent) => void;
61
+ /**
62
+ * Element placed before the children.
63
+ */
64
+ startIcon?: React.ReactNode;
65
+ /**
66
+ * Tooltip contents refer to [Button component](/?path=/docs/components-telibutton--docs).
67
+ */
68
+ tooltip?: string;
69
+ /**
70
+ * The variant to use.
71
+ */
72
+ variant?: "tertiary" | "basic";
73
+ /**
74
+ * Width of the menu component.
75
+ */
76
+ width?: number;
77
+ /**
78
+ * Vertical menu placement.
79
+ */
80
+ xPlacement?: PopperPlacementType;
81
+ /**
82
+ * Horizontal menu placement.
83
+ */
84
+ yPlacement?: PopperPlacementType;
85
+ }
86
+ declare const TeliBasicMenu: React.FC<TeliBasicMenuProps>;
87
+ export default TeliBasicMenu;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from "@storybook/react";
3
+ import { BasicMenu, ControlledBasicMenu, CustomMenuItems, PositionedMenu, WithIcon } from "./stories";
4
+ declare const meta: {
5
+ component: import("react").FC<import("./TeliBasicMenu").TeliBasicMenuProps>;
6
+ title: string;
7
+ parameters: {
8
+ docs: {
9
+ description: {
10
+ component: string;
11
+ };
12
+ };
13
+ };
14
+ };
15
+ export type TeliBasicMenuStory = StoryObj<typeof meta>;
16
+ export default meta;
17
+ export { BasicMenu, CustomMenuItems, WithIcon, ControlledBasicMenu, PositionedMenu, };
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ import { MenuItemProps, MenuProps } from "@mui/material";
3
+ import "./telimenu.css";
4
+ declare const TeliMenu: FC<MenuProps>;
5
+ declare const TeliMenuItem: FC<MenuItemProps>;
6
+ export { TeliMenu, TeliMenuItem };
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import type { StoryObj } from "@storybook/react";
3
+ declare const meta: {
4
+ component: React.FC<import("@mui/material").MenuProps>;
5
+ title: string;
6
+ };
7
+ export default meta;
8
+ type Story = StoryObj<typeof meta>;
9
+ export declare const SimpleMenuExample: Story;
@@ -0,0 +1,3 @@
1
+ import { TeliBasicMenuStory } from "../TeliBasicMenu.stories";
2
+ declare const BasicMenu: TeliBasicMenuStory;
3
+ export default BasicMenu;
@@ -0,0 +1,3 @@
1
+ import { TeliBasicMenuStory } from "../TeliBasicMenu.stories";
2
+ declare const ControlledBasicMenu: TeliBasicMenuStory;
3
+ export default ControlledBasicMenu;
@@ -0,0 +1,3 @@
1
+ import { TeliBasicMenuStory } from "../TeliBasicMenu.stories";
2
+ declare const CustomMenuItems: TeliBasicMenuStory;
3
+ export default CustomMenuItems;
@@ -0,0 +1,3 @@
1
+ import { TeliBasicMenuStory } from "../TeliBasicMenu.stories";
2
+ declare const PositionedMenu: TeliBasicMenuStory;
3
+ export default PositionedMenu;
@@ -0,0 +1,2 @@
1
+ declare const SimpleMenu: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SimpleMenu;
@@ -0,0 +1,3 @@
1
+ import { TeliBasicMenuStory } from "../TeliBasicMenu.stories";
2
+ declare const WithIcon: TeliBasicMenuStory;
3
+ export default WithIcon;
@@ -0,0 +1,5 @@
1
+ export { default as BasicMenu } from "./BasicMenu";
2
+ export { default as ControlledBasicMenu } from "./ControlledBasicMenu";
3
+ export { default as CustomMenuItems } from "./CustomMenuItems";
4
+ export { default as PositionedMenu } from "./PositionedMenu";
5
+ export { default as WithIcon } from "./WithIcon";
@@ -0,0 +1,10 @@
1
+ declare const MENU_ITEMS: ({
2
+ id: string;
3
+ onClick: import("@storybook/addon-actions").HandlerFunction;
4
+ label: string;
5
+ } | {
6
+ id: string;
7
+ label: string;
8
+ onClick?: undefined;
9
+ })[];
10
+ export default MENU_ITEMS;
@@ -0,0 +1,129 @@
1
+ import React from "react";
2
+ import { SelectChangeEvent } from "@mui/material";
3
+ import "./teliselect.css";
4
+ import "../TeliTextField/textfield.css";
5
+ import "../TeliMenu/telibasicmenu.css";
6
+ type TeliSelectOption = {
7
+ id?: any;
8
+ value?: any;
9
+ label: React.ReactNode | string;
10
+ };
11
+ export interface TeliSelectProps {
12
+ /**
13
+ * If true, the component is initially open. Use when the component open state
14
+ * is not controlled (i.e. the open prop is not defined). You can only use it
15
+ * when the native prop is false (default).
16
+ * @default false
17
+ */
18
+ defaultOpen?: boolean;
19
+ /**
20
+ * The default value. Use when the component is not controlled.
21
+ */
22
+ defaultValue?: any;
23
+ /**
24
+ * If true, the label, input and helper text should be displayed in a disabled
25
+ * state.
26
+ */
27
+ disabled?: boolean;
28
+ /**
29
+ * If true, the label is displayed in an error state.
30
+ */
31
+ error?: boolean;
32
+ /**
33
+ * If true, the component is displayed in focused state.
34
+ */
35
+ focused?: boolean;
36
+ /**
37
+ * If true, the component will take up the full width of its container.
38
+ */
39
+ fullWidth?: boolean;
40
+ /**
41
+ * If true, the label is hidden. Be sure to add aria-label to the input
42
+ * element.
43
+ */
44
+ hiddenLabel?: boolean;
45
+ /**
46
+ * The id of the input element.
47
+ */
48
+ id?: string;
49
+ /**
50
+ * The label of the input.
51
+ */
52
+ label?: string;
53
+ /**
54
+ * Text which will be displayed below the component. If ' ' is provided, the
55
+ * component reserves one line height for displaying a future message.
56
+ */
57
+ helperText?: string;
58
+ /**
59
+ * If true, value must be an array and the menu will support multiple
60
+ * selections.
61
+ */
62
+ multiple?: boolean;
63
+ /**
64
+ * Callback fired when a menu item is selected.
65
+ * @param event The event source of the callback. You can pull out the new
66
+ * value by accessing event.target.value (any). Warning: This is a generic
67
+ * event, not a change event, unless the change event is caused by browser
68
+ * autofill.
69
+ * @returns void
70
+ */
71
+ onChange?: (event: SelectChangeEvent) => void;
72
+ /**
73
+ * Callback fired when the component requests to be closed. Use it in either
74
+ * controlled (see the open prop), or uncontrolled mode (to detect when the
75
+ * Select collapses).
76
+ * @param event The event source of the callback.
77
+ * @returns void
78
+ */
79
+ onClose?: (event: object) => void;
80
+ /**
81
+ * Callback fired when the component requests to be opened. Use it in either
82
+ * controlled (see the open prop), or uncontrolled mode (to detect when the
83
+ * Select expands).
84
+ * @param event The event source of the callback.
85
+ * @returns void
86
+ */
87
+ onOpen?: (event: object) => void;
88
+ /**
89
+ * If true, the component is shown.
90
+ */
91
+ open?: boolean;
92
+ /**
93
+ * The option elements to populate the select with
94
+ * type TeliSelectOption = {
95
+ id?: any;
96
+ value?: any;
97
+ label: React.ReactNode | string;
98
+ };
99
+ */
100
+ options?: TeliSelectOption[];
101
+ /**
102
+ * If true, the selected option(s) cannot be changed
103
+ */
104
+ readOnly?: boolean;
105
+ /**
106
+ * If true, the label will indicate that the input is required.
107
+ */
108
+ required?: boolean;
109
+ /**
110
+ * The id of the select wrapper element
111
+ */
112
+ selectId?: string;
113
+ /**
114
+ * The width of the component
115
+ */
116
+ width?: number;
117
+ /**
118
+ * The input value. Providing an empty string will select no options. Set to
119
+ * an empty string '' if you don't want any of the available options to be
120
+ * selected. If the value is an object it must have reference equality with
121
+ * the option in order to be selected. If the value is not an object, the
122
+ * string representation must match with the string representation of the
123
+ * option in order to be selected.
124
+ */
125
+ value?: any;
126
+ }
127
+ declare const TeliSelect: React.FC<TeliSelectProps>;
128
+ export default TeliSelect;
129
+ export type { SelectChangeEvent };
@@ -0,0 +1,43 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from "@storybook/react";
3
+ import { BasicSelect, LabelsAndHelperText, MultiSelect, OtherStates } from "./stories";
4
+ declare const meta: {
5
+ component: import("react").FC<import("./TeliSelect").TeliSelectProps>;
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: string;
10
+ };
11
+ };
12
+ };
13
+ decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
14
+ defaultOpen?: boolean | undefined;
15
+ defaultValue?: any;
16
+ disabled?: boolean | undefined;
17
+ error?: boolean | undefined;
18
+ focused?: boolean | undefined;
19
+ fullWidth?: boolean | undefined;
20
+ hiddenLabel?: boolean | undefined;
21
+ id?: string | undefined;
22
+ label?: string | undefined;
23
+ helperText?: string | undefined;
24
+ multiple?: boolean | undefined;
25
+ onChange?: ((event: import("@mui/material/Select/SelectInput").SelectChangeEvent) => void) | undefined;
26
+ onClose?: ((event: object) => void) | undefined;
27
+ onOpen?: ((event: object) => void) | undefined;
28
+ open?: boolean | undefined;
29
+ options?: {
30
+ id?: any;
31
+ value?: any;
32
+ label: import("react").ReactNode;
33
+ }[] | undefined;
34
+ readOnly?: boolean | undefined;
35
+ required?: boolean | undefined;
36
+ selectId?: string | undefined;
37
+ width?: number | undefined;
38
+ value?: any;
39
+ }>) => import("react/jsx-runtime").JSX.Element)[];
40
+ };
41
+ export default meta;
42
+ export type TeliSelectStory = StoryObj<typeof meta>;
43
+ export { BasicSelect, LabelsAndHelperText, OtherStates, MultiSelect };
@@ -0,0 +1,3 @@
1
+ import { TeliSelectStory } from "../TeliSelect.stories";
2
+ declare const BasicSelect: TeliSelectStory;
3
+ export default BasicSelect;
@@ -0,0 +1,3 @@
1
+ import { TeliSelectStory } from "../TeliSelect.stories";
2
+ declare const LabelsAndHelperText: TeliSelectStory;
3
+ export default LabelsAndHelperText;
@@ -0,0 +1,3 @@
1
+ import { TeliSelectStory } from "../TeliSelect.stories";
2
+ declare const MultiSelect: TeliSelectStory;
3
+ export default MultiSelect;
@@ -0,0 +1,3 @@
1
+ import { TeliSelectStory } from "../TeliSelect.stories";
2
+ declare const OtherStates: TeliSelectStory;
3
+ export default OtherStates;
@@ -0,0 +1,4 @@
1
+ export { default as BasicSelect } from "./BasicSelect";
2
+ export { default as LabelsAndHelperText } from "./LabelsAndHelperText";
3
+ export { default as MultiSelect } from "./MultiSelect";
4
+ export { default as OtherStates } from "./OtherStates";
@@ -0,0 +1,5 @@
1
+ declare const TOP_30_MOVIES: {
2
+ label: string;
3
+ id: string;
4
+ }[];
5
+ export default TOP_30_MOVIES;
@@ -0,0 +1,4 @@
1
+ import { type FC } from "react";
2
+ import { CircularProgressProps } from "@mui/material";
3
+ declare const TeliSpinner: FC<CircularProgressProps>;
4
+ export default TeliSpinner;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from "@storybook/react";
3
+ declare const meta: {
4
+ component: import("react").FC<import("@mui/material").CircularProgressProps>;
5
+ };
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Basic: Story;
9
+ export declare const Secondary: Story;
@@ -0,0 +1,74 @@
1
+ import React, { FC, HTMLAttributes } from "react";
2
+ import "./teliswitch.css";
3
+ export interface TeliSwitchProps {
4
+ /**
5
+ * If true, the component is checked.
6
+ */
7
+ checked?: boolean;
8
+ /**
9
+ * The default checked state. Use when the component is not controlled.
10
+ */
11
+ defaultChecked?: boolean;
12
+ /**
13
+ * If true, the component is disabled.
14
+ */
15
+ disabled?: boolean;
16
+ /**
17
+ * If given, uses a negative margin to counteract the padding on one side
18
+ * (this is often helpful for aligning the left or right side of the icon with
19
+ * content above or below, without ruining the border size and shape).
20
+ */
21
+ edge?: "end" | "start";
22
+ /**
23
+ * The id of the input element.
24
+ */
25
+ id?: string;
26
+ /**
27
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes)
28
+ * applied to the input element.
29
+ */
30
+ inputProps?: HTMLAttributes<HTMLInputElement>;
31
+ /**
32
+ * Pass a ref to the input element.
33
+ */
34
+ inputRef?: React.RefObject<HTMLInputElement> | null;
35
+ /**
36
+ * Text to be used in an enclosing label element.
37
+ */
38
+ label?: string;
39
+ /**
40
+ * The position of the label.
41
+ * @default end
42
+ */
43
+ labelPlacement?: "start" | "end";
44
+ /**
45
+ * Callback fired when the state is changed. <code>event</code> The event
46
+ * source of the callback. You can pull out the new value by accessing
47
+ * event.target.value (string). You can pull out the new checked state by
48
+ * accessing event.target.checked (boolean)
49
+ */
50
+ onChange?: (event: React.ChangeEvent) => void;
51
+ /**
52
+ * If true, the input element is required.
53
+ */
54
+ required?: boolean;
55
+ /**
56
+ * The size of the component. small is equivalent to the dense switch styling.
57
+ * @default small
58
+ */
59
+ size?: "small" | "medium";
60
+ /**
61
+ * The value of the component. The DOM API casts this to a string. The browser
62
+ * uses "on" as the default value.
63
+ */
64
+ value?: any;
65
+ }
66
+ /**
67
+ * Switches toggle the state of a single setting on or off. The option that the
68
+ * switch controls, as well as the state it's in, should be made clear from the
69
+ * corresponding inline label. If unsure when to use toggle switch or checkbox,
70
+ * refer to [Checkbox vs Toggle
71
+ * Switch](https://uxplanet.org/checkbox-vs-toggle-switch-7fc6e83f10b8)
72
+ */
73
+ declare const TeliSwitch: FC<TeliSwitchProps>;
74
+ export default TeliSwitch;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from "@storybook/react";
3
+ import { BasicSwitches, ControlledSwitches, LabelledSwitches, Sizes, LabelPlacement } from "./stories";
4
+ declare const meta: {
5
+ component: import("react").FC<import("./TeliSwitch").TeliSwitchProps>;
6
+ };
7
+ export default meta;
8
+ export type TeliSwitchStory = StoryObj<typeof meta>;
9
+ export { BasicSwitches, LabelledSwitches, ControlledSwitches, Sizes, LabelPlacement, };
@@ -0,0 +1,3 @@
1
+ import { TeliSwitchStory } from "../TeliSwitch.stories";
2
+ declare const BasicSwitches: TeliSwitchStory;
3
+ export default BasicSwitches;
@@ -0,0 +1,3 @@
1
+ import { TeliSwitchStory } from "../TeliSwitch.stories";
2
+ declare const ControlledSwitches: TeliSwitchStory;
3
+ export default ControlledSwitches;
@@ -0,0 +1,3 @@
1
+ import { TeliSwitchStory } from "../TeliSwitch.stories";
2
+ declare const LabelPlacement: TeliSwitchStory;
3
+ export default LabelPlacement;
@@ -0,0 +1,3 @@
1
+ import { TeliSwitchStory } from "../TeliSwitch.stories";
2
+ declare const LabelledSwitches: TeliSwitchStory;
3
+ export default LabelledSwitches;
@@ -0,0 +1,3 @@
1
+ import { TeliSwitchStory } from "../TeliSwitch.stories";
2
+ declare const Sizes: TeliSwitchStory;
3
+ export default Sizes;
@@ -0,0 +1,5 @@
1
+ export { default as BasicSwitches } from "./BasicSwitches";
2
+ export { default as ControlledSwitches } from "./ControlledSwitches";
3
+ export { default as LabelledSwitches } from "./LabelledSwitches";
4
+ export { default as LabelPlacement } from "./LabelPlacement";
5
+ export { default as Sizes } from "./Sizes";
@@ -0,0 +1,48 @@
1
+ import React from "react";
2
+ import { TeliTableContainerProps } from "./TeliTableContainer";
3
+ import { TeliTableProps } from "./TeliTable";
4
+ import { TeliTableRowProps } from "./TeliTableRow";
5
+ import { TeliTableCellProps } from "./TeliTableCell";
6
+ export interface TeliBasicTableProps {
7
+ /**
8
+ * Table column headers
9
+ */
10
+ columns?: Array<string | Record<string, string>>;
11
+ /**
12
+ * Table body rows
13
+ */
14
+ rows?: Array<Array<string>>;
15
+ name?: TeliTableProps["name"];
16
+ addBorderToLastRow?: TeliTableRowProps["addBorderToLastRow"];
17
+ align?: TeliTableCellProps["align"];
18
+ bordered?: TeliTableContainerProps["bordered"];
19
+ /**
20
+ * A short heading for the table content
21
+ */
22
+ caption?: string;
23
+ compact?: TeliTableProps["compact"];
24
+ maxHeight?: TeliTableContainerProps["maxHeight"];
25
+ minWidth?: TeliTableProps["minWidth"];
26
+ /**
27
+ * If true, a column of numbered rows will be added at the start of table
28
+ */
29
+ numberRows?: boolean;
30
+ /**
31
+ * The heading for the numbered rows column
32
+ */
33
+ numberColumnHeading?: string;
34
+ /**
35
+ * Render column cell
36
+ * @param column Column data
37
+ * @param index
38
+ * @returns JSX.Element
39
+ */
40
+ renderColumnCell?: (column: any, index?: number) => JSX.Element;
41
+ stickyHeader?: TeliTableProps["stickyHeader"];
42
+ /**
43
+ * If true, the first column will be rendered as a table header
44
+ */
45
+ verticalHeader?: boolean;
46
+ }
47
+ declare const TeliBasicTable: React.FC<TeliBasicTableProps>;
48
+ export default TeliBasicTable;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from "@storybook/react";
3
+ import { BasicTable, CaptionedTable, CustomColumns, DenseTable, StickyHeader } from "./stories";
4
+ declare const meta: {
5
+ component: import("react").FC<import("./TeliBasicTable").TeliBasicTableProps>;
6
+ parameters: {
7
+ docs: {
8
+ source: {
9
+ type: string;
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default meta;
15
+ export type TeliBasicTableStory = StoryObj<typeof meta>;
16
+ export { BasicTable, DenseTable, StickyHeader, CaptionedTable, CustomColumns };
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { TableProps as MUITableProps } from "@mui/material";
3
+ import "./table.css";
4
+ type TableProps = Omit<MUITableProps, "sx" | "classes" | "size">;
5
+ export interface TeliTableProps extends TableProps {
6
+ /**
7
+ * If true, the table will be compact (smaller)
8
+ */
9
+ compact?: boolean;
10
+ /**
11
+ * Minimum width of the table
12
+ */
13
+ minWidth?: number;
14
+ /**
15
+ * The name of the table element
16
+ */
17
+ name?: string;
18
+ }
19
+ declare const TeliTable: React.FC<TeliTableProps>;
20
+ export default TeliTable;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from "@storybook/react";
3
+ import { TableExample } from "./stories";
4
+ declare const meta: {
5
+ component: import("react").FC<import("./TeliTable").TeliTableProps>;
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ story: string;
10
+ };
11
+ source: {
12
+ type: string;
13
+ };
14
+ };
15
+ };
16
+ };
17
+ export default meta;
18
+ export type TeliTableStory = StoryObj<typeof meta>;
19
+ export { TableExample };
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { TableBodyProps } from "@mui/material";
3
+ import "./table.css";
4
+ export type TeliTableBody = Omit<TableBodyProps, "sx" | "classes">;
5
+ declare const TeliTableBody: React.FC<TeliTableBody>;
6
+ export default TeliTableBody;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from "@storybook/react";
3
+ declare const meta: {
4
+ component: import("react").FC<import("./TeliTableBody").TeliTableBody>;
5
+ parameters: {
6
+ docs: {
7
+ description: {
8
+ story: string;
9
+ };
10
+ };
11
+ };
12
+ };
13
+ export default meta;
14
+ export type TeliTableBodyStory = StoryObj<typeof meta>;
15
+ export declare const Example: TeliTableBodyStory;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { TableCellProps as MUITableCellProps } from "@mui/material";
3
+ import "./table.css";
4
+ type TableCellProps = Omit<MUITableCellProps, "sx" | "classes">;
5
+ export interface TeliTableCellProps extends TableCellProps {
6
+ /**
7
+ * Minimum width of the table
8
+ */
9
+ minWidth?: number;
10
+ }
11
+ declare const TeliTableCell: React.FC<TeliTableCellProps>;
12
+ export default TeliTableCell;