@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.
- package/LICENSE +201 -0
- package/README.md +135 -0
- package/dist/assets/fonts/figtree/figtree-black.woff2 +0 -0
- package/dist/assets/fonts/figtree/figtree-bold.woff2 +0 -0
- package/dist/assets/fonts/figtree/figtree-extrabold.woff2 +0 -0
- package/dist/assets/fonts/figtree/figtree-light.woff2 +0 -0
- package/dist/assets/fonts/figtree/figtree-medium.woff2 +0 -0
- package/dist/assets/fonts/figtree/figtree-regular.woff2 +0 -0
- package/dist/assets/fonts/figtree/figtree-semibold.woff2 +0 -0
- package/dist/assets/fonts/fontawesome/css/all.min.css +9 -0
- package/dist/assets/fonts/fontawesome/css/svg-with-js.min.css +6 -0
- package/dist/assets/fonts/fontawesome/webfonts/fa-brands-400.ttf +0 -0
- package/dist/assets/fonts/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
- package/dist/assets/fonts/fontawesome/webfonts/fa-regular-400.ttf +0 -0
- package/dist/assets/fonts/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
- package/dist/assets/fonts/fontawesome/webfonts/fa-solid-900.ttf +0 -0
- package/dist/assets/fonts/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
- package/dist/assets/fonts/fontawesome/webfonts/fa-v4compatibility.ttf +0 -0
- package/dist/assets/fonts/fontawesome/webfonts/fa-v4compatibility.woff2 +0 -0
- package/dist/assets/fonts/remixicon/index.html +156 -0
- package/dist/assets/fonts/remixicon/remixicon.css +8640 -0
- package/dist/assets/fonts/remixicon/remixicon.eot +0 -0
- package/dist/assets/fonts/remixicon/remixicon.glyph.json +1 -0
- package/dist/assets/fonts/remixicon/remixicon.less +2898 -0
- package/dist/assets/fonts/remixicon/remixicon.module.less +2880 -0
- package/dist/assets/fonts/remixicon/remixicon.scss +5729 -0
- package/dist/assets/fonts/remixicon/remixicon.styl +2867 -0
- package/dist/assets/fonts/remixicon/remixicon.svg +8572 -0
- package/dist/assets/fonts/remixicon/remixicon.symbol.svg +11 -0
- package/dist/assets/fonts/remixicon/remixicon.ttf +0 -0
- package/dist/assets/fonts/remixicon/remixicon.woff +0 -0
- package/dist/assets/fonts/remixicon/remixicon.woff2 +0 -0
- package/dist/assets/fonts/remixicon/symbol.html +20104 -0
- package/dist/assets/fonts/remixicon/unicode.html +175 -0
- package/dist/assets/fonts/space-grotesk/space-grotesk-regular.woff2 +0 -0
- package/dist/ds.js +41259 -0
- package/dist/ds.umd.cjs +1047 -0
- package/dist/export.d.ts +1 -0
- package/dist/fontawesome.css +2 -0
- package/dist/src/components/AppSwitch/AppSwitch.d.ts +15 -0
- package/dist/src/components/AppSwitch/AppSwitch.stories.d.ts +15 -0
- package/dist/src/components/AppSwitch/AppSwitch.test.d.ts +1 -0
- package/dist/src/components/AppSwitch/appsArray.d.ts +8 -0
- package/dist/src/components/AppSwitch/styleLookup.d.ts +7 -0
- package/dist/src/components/DependenciesTable/DependenciesTable.d.ts +9 -0
- package/dist/src/components/DependenciesTable/DependenciesTable.stories.d.ts +6 -0
- package/dist/src/components/DependenciesTable/DependenciesTable.test.d.ts +1 -0
- package/dist/src/components/License/License.d.ts +25 -0
- package/dist/src/components/License/License.stories.d.ts +8 -0
- package/dist/src/components/License/License.test.d.ts +1 -0
- package/dist/src/components/OntologyClassMarker/OntologyClassMarker.d.ts +16 -0
- package/dist/src/components/OntologyClassMarker/OntologyClassMarker.stories.d.ts +18 -0
- package/dist/src/components/OntologyHierarchy/OntologyHierarchy.d.ts +22 -0
- package/dist/src/components/OntologyHierarchy/OntologyHierarchy.stories.d.ts +25 -0
- package/dist/src/components/OntologyHierarchy/OntologyHierarchyDisplay.d.ts +4 -0
- package/dist/src/components/OntologyHierarchy/OntologyHierarchyDisplay.test.d.ts +1 -0
- package/dist/src/components/OntologyHierarchy/OntologyHierarchyFunctions.d.ts +20 -0
- package/dist/src/components/OntologyHierarchy/OntologyHierarchyFunctions.test.d.ts +1 -0
- package/dist/src/components/OntologyHierarchy/data/hierarchy.d.ts +3 -0
- package/dist/src/components/SearchAutocomplete/SearchAutocomplete.d.ts +59 -0
- package/dist/src/components/SearchAutocomplete/SearchAutocomplete.stories.d.ts +48 -0
- package/dist/src/components/SearchAutocomplete/custom-options.d.ts +5 -0
- package/dist/src/components/SearchAutocompleteDialog/RecentSearches.d.ts +7 -0
- package/dist/src/components/SearchAutocompleteDialog/SearchAutocompleteDialog.d.ts +14 -0
- package/dist/src/components/SearchAutocompleteDialog/SearchAutocompleteDialog.stories.d.ts +78 -0
- package/dist/src/components/SearchAutocompleteDialog/SearchResults.d.ts +8 -0
- package/dist/src/components/SearchAutocompleteDialog/index.d.ts +3 -0
- package/dist/src/components/SearchAutocompleteDialog/sample-results.d.ts +6 -0
- package/dist/src/components/TeliAutocomplete/TeliAutocomplete.d.ts +24 -0
- package/dist/src/components/TeliAutocomplete/TeliAutocomplete.stories.d.ts +16 -0
- package/dist/src/components/TeliAutocomplete/stories/AsyncOnLoad.d.ts +3 -0
- package/dist/src/components/TeliAutocomplete/stories/ComboBox.d.ts +3 -0
- package/dist/src/components/TeliAutocomplete/stories/ComboBoxOptions.d.ts +3 -0
- package/dist/src/components/TeliAutocomplete/stories/Controlled.d.ts +3 -0
- package/dist/src/components/TeliAutocomplete/stories/CustomRenderOptions.d.ts +3 -0
- package/dist/src/components/TeliAutocomplete/stories/FreeSolo.d.ts +3 -0
- package/dist/src/components/TeliAutocomplete/stories/MultipleValues.d.ts +3 -0
- package/dist/src/components/TeliAutocomplete/stories/countries.d.ts +12 -0
- package/dist/src/components/TeliAutocomplete/stories/index.d.ts +7 -0
- package/dist/src/components/TeliAutocomplete/stories/options.d.ts +4 -0
- package/dist/src/components/TeliAutocomplete/stories/top100movies.d.ts +5 -0
- package/dist/src/components/TeliAvatar/TeliUserAvatar.d.ts +23 -0
- package/dist/src/components/TeliAvatar/TeliUserAvatar.stories.d.ts +17 -0
- package/dist/src/components/TeliBrand/TeliBrand.d.ts +27 -0
- package/dist/src/components/TeliBrand/TeliBrand.stories.d.ts +11 -0
- package/dist/src/components/TeliBrand/TeliBrand.test.d.ts +1 -0
- package/dist/src/components/TeliButton/TeliButton.d.ts +16 -0
- package/dist/src/components/TeliButton/TeliButton.stories.d.ts +23 -0
- package/dist/src/components/TeliButton/TeliButtonBase.d.ts +36 -0
- package/dist/src/components/TeliButton/stories/ButtonWithIcons.d.ts +3 -0
- package/dist/src/components/TeliButton/stories/ButtonWithTooltips.d.ts +3 -0
- package/dist/src/components/TeliButton/stories/DangerButtons.d.ts +3 -0
- package/dist/src/components/TeliButton/stories/IconButtons.d.ts +3 -0
- package/dist/src/components/TeliButton/stories/LinkButtons.d.ts +3 -0
- package/dist/src/components/TeliButton/stories/PrimaryButtons.d.ts +3 -0
- package/dist/src/components/TeliButton/stories/SecondaryButtons.d.ts +3 -0
- package/dist/src/components/TeliButton/stories/Sizes.d.ts +3 -0
- package/dist/src/components/TeliButton/stories/TertiaryButtons.d.ts +3 -0
- package/dist/src/components/TeliButton/stories/index.d.ts +9 -0
- package/dist/src/components/TeliCheckbox/TeliCheckbox.d.ts +13 -0
- package/dist/src/components/TeliCheckbox/TeliCheckbox.stories.d.ts +10 -0
- package/dist/src/components/TeliChip/TeliChip.d.ts +10 -0
- package/dist/src/components/TeliChip/TeliChip.stories.d.ts +16 -0
- package/dist/src/components/TeliChip/stories/BasicChips.d.ts +3 -0
- package/dist/src/components/TeliChip/stories/ChipsExample.d.ts +3 -0
- package/dist/src/components/TeliChip/stories/ClickableChips.d.ts +3 -0
- package/dist/src/components/TeliChip/stories/ClickableLinkChips.d.ts +3 -0
- package/dist/src/components/TeliChip/stories/ColorChips.d.ts +3 -0
- package/dist/src/components/TeliChip/stories/DeleteableChips.d.ts +3 -0
- package/dist/src/components/TeliChip/stories/IconChips.d.ts +3 -0
- package/dist/src/components/TeliChip/stories/SizeChips.d.ts +3 -0
- package/dist/src/components/TeliChip/stories/index.d.ts +8 -0
- package/dist/src/components/TeliDialog/TeliDialog.d.ts +15 -0
- package/dist/src/components/TeliDialog/TeliDialog.stories.d.ts +8 -0
- package/dist/src/components/TeliHeader/TeliHeader.d.ts +11 -0
- package/dist/src/components/TeliHeader/TeliHeader.stories.d.ts +8 -0
- package/dist/src/components/TeliHeader/TeliStandardLayoutHeader.d.ts +25 -0
- package/dist/src/components/TeliHeader/TeliStandardLayoutHeader.stories.d.ts +10 -0
- package/dist/src/components/TeliIcons/AllIcons.d.ts +2 -0
- package/dist/src/components/TeliIcons/AllIcons.stories.d.ts +6 -0
- package/dist/src/components/TeliIcons/ClockRotateLeft.d.ts +4 -0
- package/dist/src/components/TeliIcons/ClockRotateLeft.stories.d.ts +6 -0
- package/dist/src/components/TeliIcons/Icon.d.ts +13 -0
- package/dist/src/components/TeliIcons/TeliAddIcon.d.ts +4 -0
- package/dist/src/components/TeliIcons/TeliAddIcon.stories.d.ts +6 -0
- package/dist/src/components/TeliIcons/TeliCloseIcon.d.ts +4 -0
- package/dist/src/components/TeliIcons/TeliCloseIcon.stories.d.ts +6 -0
- package/dist/src/components/TeliIcons/TeliDeleteIcon.d.ts +4 -0
- package/dist/src/components/TeliIcons/TeliDeleteIcon.stories.d.ts +6 -0
- package/dist/src/components/TeliIcons/TeliEditIcon.d.ts +4 -0
- package/dist/src/components/TeliIcons/TeliEditIcon.stories.d.ts +6 -0
- package/dist/src/components/TeliIcons/TeliSearchIcon.d.ts +4 -0
- package/dist/src/components/TeliIcons/TeliSearchIcon.stories.d.ts +6 -0
- package/dist/src/components/TeliIcons/TeliSortIcon.stories.d.ts +7 -0
- package/dist/src/components/TeliIcons/TeliSortIcons.d.ts +5 -0
- package/dist/src/components/TeliIcons/index.d.ts +7 -0
- package/dist/src/components/TeliList/TeliList.d.ts +29 -0
- package/dist/src/components/TeliList/TeliList.stories.d.ts +8 -0
- package/dist/src/components/TeliMenu/BasicMenuContents.d.ts +14 -0
- package/dist/src/components/TeliMenu/TeliBasicMenu.d.ts +87 -0
- package/dist/src/components/TeliMenu/TeliBasicMenu.stories.d.ts +17 -0
- package/dist/src/components/TeliMenu/TeliMenu.d.ts +6 -0
- package/dist/src/components/TeliMenu/TeliMenu.stories.d.ts +9 -0
- package/dist/src/components/TeliMenu/stories/BasicMenu.d.ts +3 -0
- package/dist/src/components/TeliMenu/stories/ControlledBasicMenu.d.ts +3 -0
- package/dist/src/components/TeliMenu/stories/CustomMenuItems.d.ts +3 -0
- package/dist/src/components/TeliMenu/stories/PositionedMenu.d.ts +3 -0
- package/dist/src/components/TeliMenu/stories/SimpleMenu.d.ts +2 -0
- package/dist/src/components/TeliMenu/stories/WithIcon.d.ts +3 -0
- package/dist/src/components/TeliMenu/stories/index.d.ts +5 -0
- package/dist/src/components/TeliMenu/stories/menu-items.d.ts +10 -0
- package/dist/src/components/TeliSelect/TeliSelect.d.ts +129 -0
- package/dist/src/components/TeliSelect/TeliSelect.stories.d.ts +43 -0
- package/dist/src/components/TeliSelect/stories/BasicSelect.d.ts +3 -0
- package/dist/src/components/TeliSelect/stories/LabelsAndHelperText.d.ts +3 -0
- package/dist/src/components/TeliSelect/stories/MultiSelect.d.ts +3 -0
- package/dist/src/components/TeliSelect/stories/OtherStates.d.ts +3 -0
- package/dist/src/components/TeliSelect/stories/index.d.ts +4 -0
- package/dist/src/components/TeliSelect/stories/top-30-movies.d.ts +5 -0
- package/dist/src/components/TeliSpinner/TeliSpinner.d.ts +4 -0
- package/dist/src/components/TeliSpinner/TeliSpinner.stories.d.ts +9 -0
- package/dist/src/components/TeliSwitch/TeliSwitch.d.ts +74 -0
- package/dist/src/components/TeliSwitch/TeliSwitch.stories.d.ts +9 -0
- package/dist/src/components/TeliSwitch/stories/BasicSwitches.d.ts +3 -0
- package/dist/src/components/TeliSwitch/stories/ControlledSwitches.d.ts +3 -0
- package/dist/src/components/TeliSwitch/stories/LabelPlacement.d.ts +3 -0
- package/dist/src/components/TeliSwitch/stories/LabelledSwitches.d.ts +3 -0
- package/dist/src/components/TeliSwitch/stories/Sizes.d.ts +3 -0
- package/dist/src/components/TeliSwitch/stories/index.d.ts +5 -0
- package/dist/src/components/TeliTable/TeliBasicTable.d.ts +48 -0
- package/dist/src/components/TeliTable/TeliBasicTable.stories.d.ts +16 -0
- package/dist/src/components/TeliTable/TeliTable.d.ts +20 -0
- package/dist/src/components/TeliTable/TeliTable.stories.d.ts +19 -0
- package/dist/src/components/TeliTable/TeliTableBody.d.ts +6 -0
- package/dist/src/components/TeliTable/TeliTableBody.stories.d.ts +15 -0
- package/dist/src/components/TeliTable/TeliTableCell.d.ts +12 -0
- package/dist/src/components/TeliTable/TeliTableCell.stories.d.ts +8 -0
- package/dist/src/components/TeliTable/TeliTableContainer.d.ts +16 -0
- package/dist/src/components/TeliTable/TeliTableContainer.stories.d.ts +8 -0
- package/dist/src/components/TeliTable/TeliTableHead.d.ts +6 -0
- package/dist/src/components/TeliTable/TeliTableHead.stories.d.ts +15 -0
- package/dist/src/components/TeliTable/TeliTableRow.d.ts +13 -0
- package/dist/src/components/TeliTable/TeliTableRow.stories.d.ts +15 -0
- package/dist/src/components/TeliTable/index.d.ts +7 -0
- package/dist/src/components/TeliTable/stories/BasicTable.d.ts +3 -0
- package/dist/src/components/TeliTable/stories/Caption.d.ts +3 -0
- package/dist/src/components/TeliTable/stories/CustomColumns.d.ts +3 -0
- package/dist/src/components/TeliTable/stories/DenseTable.d.ts +3 -0
- package/dist/src/components/TeliTable/stories/StickyHeader.d.ts +3 -0
- package/dist/src/components/TeliTable/stories/TableExample.d.ts +3 -0
- package/dist/src/components/TeliTable/stories/index.d.ts +6 -0
- package/dist/src/components/TeliTable/stories/table-data.d.ts +4 -0
- package/dist/src/components/TeliTable/table-utils.d.ts +12 -0
- package/dist/src/components/TeliTabs/ExampleTeliTabs.stories.d.ts +8 -0
- package/dist/src/components/TeliTabs/TeliTab.d.ts +8 -0
- package/dist/src/components/TeliTabs/TeliTabPanel.d.ts +8 -0
- package/dist/src/components/TeliTabs/TeliTabs.d.ts +11 -0
- package/dist/src/components/TeliTabs/index.d.ts +3 -0
- package/dist/src/components/TeliTextField/TeliInput.d.ts +8 -0
- package/dist/src/components/TeliTextField/TeliTextField.d.ts +9 -0
- package/dist/src/components/TeliTextField/TeliTextField.stories.d.ts +10 -0
- package/dist/src/components/TeliTextField/TeliTextFieldProps.d.ts +74 -0
- package/dist/src/components/TeliTextField/stories/Adornments.d.ts +3 -0
- package/dist/src/components/TeliTextField/stories/Controlled.d.ts +3 -0
- package/dist/src/components/TeliTextField/stories/FormProps.d.ts +3 -0
- package/dist/src/components/TeliTextField/stories/Multiline.d.ts +3 -0
- package/dist/src/components/TeliTextField/stories/Validation.d.ts +3 -0
- package/dist/src/components/TeliTextField/stories/index.d.ts +5 -0
- package/dist/src/components/TeliToolbar/TeliToolbar.d.ts +19 -0
- package/dist/src/components/TeliToolbar/TeliToolbar.stories.d.ts +292 -0
- package/dist/src/components/TeliToolbar/stories/GroupedActions.d.ts +3 -0
- package/dist/src/components/TeliToolbar/stories/HorizontalAndVerticalToolbars.d.ts +3 -0
- package/dist/src/components/TeliToolbar/stories/PositionedToolbars.d.ts +3 -0
- package/dist/src/components/TeliToolbar/stories/index.d.ts +3 -0
- package/dist/src/components/TeliTypeIcon/TeliTypeIcon.d.ts +27 -0
- package/dist/src/components/TeliTypeIcon/TeliTypeIcon.stories.d.ts +48 -0
- package/dist/src/components/TeliTypeIcon/type-icon-utils.d.ts +10 -0
- package/dist/src/components/TeliTypeahead/TeliTypeahead.d.ts +9 -0
- package/dist/src/components/TeliTypeahead/TeliTypeahead.stories.d.ts +348 -0
- package/dist/src/components/TeliTypeahead/stories/FreeSolo.d.ts +3 -0
- package/dist/src/components/TeliTypeahead/stories/MultiSelect.d.ts +3 -0
- package/dist/src/components/TeliTypeahead/stories/index.d.ts +2 -0
- package/dist/src/components/TeliTypeahead/stories/utils.d.ts +10 -0
- package/dist/src/components/TeliUserProfile/TeliUserProfile.d.ts +9 -0
- package/dist/src/components/TeliUserProfile/TeliUserProfile.stories.d.ts +16 -0
- package/dist/src/components/TeliUserProfile/TeliUserProfileButton.d.ts +15 -0
- package/dist/src/components/TeliUserProfile/TeliUserProfileMenu.d.ts +17 -0
- package/dist/src/components/index.d.ts +30 -0
- package/dist/src/contexts/OntologyStyles.d.ts +48 -0
- package/dist/src/contexts/context-utils.d.ts +4 -0
- package/dist/src/export.d.ts +7 -0
- package/dist/src/hooks/query-utils.d.ts +5 -0
- package/dist/src/hooks/useDebounce.d.ts +2 -0
- package/dist/src/hooks/useTeliTheme.d.ts +10 -0
- package/dist/src/hooks/useTheme.d.ts +7 -0
- package/dist/src/hooks/useTypeahead.d.ts +2 -0
- package/dist/src/layouts/TeliBasicLayout/TeliBasicLayout.d.ts +6 -0
- package/dist/src/layouts/TeliBasicLayout/TeliBasicLayout.stories.d.ts +10 -0
- package/dist/src/layouts/TeliStandardLayout/TeliStandardLayout.d.ts +7 -0
- package/dist/src/layouts/TeliStandardLayout/TeliStandardLayout.stories.d.ts +8 -0
- package/dist/src/providers/LayoutProviders/DSProviders.d.ts +8 -0
- package/dist/src/providers/LayoutProviders/LayoutProviders.d.ts +5 -0
- package/dist/src/providers/LayoutProviders/index.d.ts +2 -0
- package/dist/src/providers/TeliStyledEngineProvider/TeliStyledEngineProvider.d.ts +6 -0
- package/dist/src/providers/TeliThemeProvider/TeliThemeProvider.d.ts +10 -0
- package/dist/src/providers/TeliThemeProvider/TeliThemeProvider.test.d.ts +1 -0
- package/dist/src/providers/TeliThemeProvider/components.d.ts +3 -0
- package/dist/src/providers/TeliThemeProvider/palette.d.ts +4 -0
- package/dist/src/providers/TeliThemeProvider/typography.d.ts +3 -0
- package/dist/src/providers/index.d.ts +3 -0
- package/dist/src/setupTests.d.ts +0 -0
- package/dist/src/stories/Branding/Favicons.d.ts +3 -0
- package/dist/src/stories/Branding/Figtree.d.ts +3 -0
- package/dist/src/stories/Branding/SpaceGrotesk.d.ts +3 -0
- package/dist/src/test-utils.d.ts +58 -0
- package/dist/src/types/layout.d.ts +11 -0
- package/dist/style.css +1 -0
- package/dist/telicent-favicon.svg +1 -0
- package/package.json +170 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: import("react").FC<Partial<import("./TeliUserAvatar").TeliUserAvatarProps>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
component: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
type TeliUserAvatarStory = StoryObj<typeof meta>;
|
|
15
|
+
export declare const BasicExample: TeliUserAvatarStory;
|
|
16
|
+
export declare const InitialsExample: TeliUserAvatarStory;
|
|
17
|
+
export declare const ImageExample: TeliUserAvatarStory;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StandardLayoutProps } from "../../types/layout";
|
|
3
|
+
import "./telibrand.css";
|
|
4
|
+
export interface TeliBrandProps extends StandardLayoutProps, React.HTMLAttributes<HTMLAnchorElement> {
|
|
5
|
+
/**
|
|
6
|
+
* How big should the brand component be?
|
|
7
|
+
* @default base
|
|
8
|
+
*/
|
|
9
|
+
size?: "base" | "jumbo";
|
|
10
|
+
/**
|
|
11
|
+
* URL
|
|
12
|
+
*/
|
|
13
|
+
href?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Where to display the linked URL, as the name for a browsing context (a tab, window, or <iframe>).
|
|
16
|
+
*/
|
|
17
|
+
target?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The relationship of the linked URL as space-separated link types
|
|
20
|
+
*/
|
|
21
|
+
rel?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Note: The application color is taken from index.css
|
|
25
|
+
*/
|
|
26
|
+
declare const TeliBrand: React.FC<TeliBrandProps>;
|
|
27
|
+
export default TeliBrand;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
import TeliBrand from "./TeliBrand";
|
|
4
|
+
declare const meta: {
|
|
5
|
+
component: React.FC<import("./TeliBrand").TeliBrandProps>;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof TeliBrand>;
|
|
9
|
+
export declare const WithAppName: Story;
|
|
10
|
+
export declare const WithBetaAppName: Story;
|
|
11
|
+
export declare const ClickableExample: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TeliButtonBaseProps } from "./TeliButtonBase";
|
|
3
|
+
import "./teliButton.css";
|
|
4
|
+
export interface TeliButtonProps extends TeliButtonBaseProps {
|
|
5
|
+
/**
|
|
6
|
+
* Tooltip contents
|
|
7
|
+
*/
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Tooltip placement.
|
|
11
|
+
* @default bottom
|
|
12
|
+
*/
|
|
13
|
+
tooltipPlacement?: "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top-start" | "top";
|
|
14
|
+
}
|
|
15
|
+
declare const TeliButton: React.FC<TeliButtonProps>;
|
|
16
|
+
export default TeliButton;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: import("react").FC<import("./TeliButton").TeliButtonProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
source: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export type Story = StoryObj<typeof meta>;
|
|
15
|
+
/**
|
|
16
|
+
* The TeliButton comes with four variants: primary, secondary,
|
|
17
|
+
* tertiary and link.
|
|
18
|
+
* All components accept an onClick handler that is applied to the root DOM element.
|
|
19
|
+
* **Note**: The documentation avoids mentioning native props (there are a lot)
|
|
20
|
+
* refer to the MUI and MDN documentation for a full list of props
|
|
21
|
+
*/
|
|
22
|
+
export declare const Basic: Story;
|
|
23
|
+
export { PrimaryButtons, SecondaryButtons, TertiaryButtons, LinkButtons, DangerButtons, ButtonsWithIcons, IconButtons, Sizes, ButtonsWithTooltips, } from "./stories";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ButtonBaseProps } from "@mui/material";
|
|
3
|
+
type MUIButtonBaseProps = Omit<ButtonBaseProps, "centerRipple" | "classes" | "action" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "sx">;
|
|
4
|
+
export interface TeliButtonBaseProps extends MUIButtonBaseProps {
|
|
5
|
+
/**
|
|
6
|
+
* The variant to use.**Note**: Use primary instead of contained, secondary
|
|
7
|
+
* instead of outline and tertiary instead of text. These variants will be
|
|
8
|
+
* removed in the next version
|
|
9
|
+
* @default primary
|
|
10
|
+
*/
|
|
11
|
+
variant?: "primary" | "secondary" | "tertiary" | "link" | "basic";
|
|
12
|
+
linePosition?: "left" | "right" | "center";
|
|
13
|
+
/**
|
|
14
|
+
* The color of the component.
|
|
15
|
+
*/
|
|
16
|
+
color?: "danger";
|
|
17
|
+
/**
|
|
18
|
+
* The URL to link to when the button is clicked. If defined, an a element
|
|
19
|
+
* will be used as the root node.
|
|
20
|
+
*/
|
|
21
|
+
href?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Element placed before the children.
|
|
24
|
+
*/
|
|
25
|
+
startIcon?: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Element placed after the children.
|
|
28
|
+
*/
|
|
29
|
+
endIcon?: React.ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* The size of the component.
|
|
32
|
+
*/
|
|
33
|
+
size?: "small" | "medium" | "large";
|
|
34
|
+
}
|
|
35
|
+
declare const TeliButtonBase: React.FC<TeliButtonBaseProps>;
|
|
36
|
+
export default TeliButtonBase;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as ButtonsWithIcons } from "./ButtonWithIcons";
|
|
2
|
+
export { default as Sizes } from "./Sizes";
|
|
3
|
+
export { default as IconButtons } from "./IconButtons";
|
|
4
|
+
export { default as DangerButtons } from "./DangerButtons";
|
|
5
|
+
export { default as LinkButtons } from "./LinkButtons";
|
|
6
|
+
export { default as TertiaryButtons } from "./TertiaryButtons";
|
|
7
|
+
export { default as SecondaryButtons } from "./SecondaryButtons";
|
|
8
|
+
export { default as PrimaryButtons } from "./PrimaryButtons";
|
|
9
|
+
export { default as ButtonsWithTooltips } from "./ButtonWithTooltips";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FC } from "react";
|
|
2
|
+
import { type CheckboxProps } from "@mui/material";
|
|
3
|
+
export interface TeliCheckboxProps extends CheckboxProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Checkboxes can be used to turn one or more options on or off.
|
|
8
|
+
* If you have multiple options appearing in a list, you can preserve space by using checkboxes instead of on/off switches.
|
|
9
|
+
* If you have a single option, avoid using a checkbox and use an on/off switch instead.
|
|
10
|
+
* More information about this component can be found [here](https://mui.com/material-ui/react-checkbox/)
|
|
11
|
+
*/
|
|
12
|
+
declare const TeliCheckbox: FC<TeliCheckboxProps>;
|
|
13
|
+
export default TeliCheckbox;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: import("react").FC<import("./TeliCheckbox").TeliCheckboxProps>;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Basic: Story;
|
|
9
|
+
export declare const WithoutLabel: Story;
|
|
10
|
+
export declare const CheckboxIcon: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChipProps } from "@mui/material";
|
|
3
|
+
import "./telichip.css";
|
|
4
|
+
type MUIChipProps = Omit<ChipProps, "variant" | "color" | "avatar" | "classes">;
|
|
5
|
+
export interface TeliChipProps extends MUIChipProps {
|
|
6
|
+
href?: string;
|
|
7
|
+
variant?: "primary" | "secondary" | "tertiary" | "basic";
|
|
8
|
+
}
|
|
9
|
+
declare const TeliChip: React.FC<TeliChipProps>;
|
|
10
|
+
export default TeliChip;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
import { BasicChips, ChipsExample, ClickableChips, ClickableLinkChips, ColorChips, DeleteableChips, IconChips, SizeChips } from "./stories";
|
|
4
|
+
declare const meta: {
|
|
5
|
+
component: import("react").FC<import("./TeliChip").TeliChipProps>;
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
export type TeliChipStory = StoryObj<typeof meta>;
|
|
16
|
+
export { BasicChips, ClickableChips, DeleteableChips, ClickableLinkChips, IconChips, ColorChips, SizeChips, ChipsExample, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as BasicChips } from "./BasicChips";
|
|
2
|
+
export { default as ChipsExample } from "./ChipsExample";
|
|
3
|
+
export { default as ClickableChips } from "./ClickableChips";
|
|
4
|
+
export { default as ClickableLinkChips } from "./ClickableLinkChips";
|
|
5
|
+
export { default as ColorChips } from "./ColorChips";
|
|
6
|
+
export { default as DeleteableChips } from "./DeleteableChips";
|
|
7
|
+
export { default as IconChips } from "./IconChips";
|
|
8
|
+
export { default as SizeChips } from "./SizeChips";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { DialogActionsProps, DialogContentProps, DialogProps, DialogTitleProps } from "@mui/material";
|
|
3
|
+
import "./telidialog.css";
|
|
4
|
+
/**
|
|
5
|
+
* A Dialog is a type of modal window that appears in front of app content to provide critical information or ask for a decision.
|
|
6
|
+
* They can also be used to inform users about a task and can contain critical information, require decisions, or involve multiple tasks.
|
|
7
|
+
* Dialogs disable all app functionality when they appear, and remain on screen until confirmed, dismissed, or a required action has been taken.
|
|
8
|
+
* Dialogs are purposefully interruptive, so they should be used sparingly.
|
|
9
|
+
* More information about how this component can be used can be found [here](https://mui.com/material-ui/react-dialog/#scrolling-long-content)
|
|
10
|
+
*/
|
|
11
|
+
declare const TeliDialog: FC<DialogProps>;
|
|
12
|
+
declare const TeliDialogContent: FC<DialogContentProps>;
|
|
13
|
+
declare const TeliDialogActions: FC<DialogActionsProps>;
|
|
14
|
+
declare const TeliDialogTitle: FC<DialogTitleProps>;
|
|
15
|
+
export { TeliDialog, TeliDialogContent, TeliDialogActions, TeliDialogTitle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: React.FC<import("@mui/material").DialogProps>;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const BasicDialog: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type NavProps = JSX.IntrinsicElements["nav"];
|
|
3
|
+
export interface TeliHeaderProps extends React.HTMLAttributes<HTMLHeadElement> {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Attributes to add to the nav component
|
|
7
|
+
*/
|
|
8
|
+
navProps?: NavProps;
|
|
9
|
+
}
|
|
10
|
+
declare const TeliHeader: React.FC<TeliHeaderProps>;
|
|
11
|
+
export default TeliHeader;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: import("react").FC<import("./TeliHeader").TeliHeaderProps>;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const CustomHeader: Story;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TeliBrandProps } from "../TeliBrand/TeliBrand";
|
|
3
|
+
import { AppSwitchProps } from "../AppSwitch/AppSwitch";
|
|
4
|
+
import "./standard-layout-header.css";
|
|
5
|
+
export interface TeliStandardLayoutHeaderProps {
|
|
6
|
+
/**
|
|
7
|
+
* The list of applications to include in the app switcher
|
|
8
|
+
*/
|
|
9
|
+
apps?: AppSwitchProps["apps"];
|
|
10
|
+
/**
|
|
11
|
+
* The telicent application name
|
|
12
|
+
*/
|
|
13
|
+
appName: TeliBrandProps["appName"];
|
|
14
|
+
/**
|
|
15
|
+
* Has the application moved into its second phase of testing and is ready for external use by customers or clients?
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
beta?: TeliBrandProps["beta"];
|
|
19
|
+
/**
|
|
20
|
+
* TeliUserProfile component
|
|
21
|
+
*/
|
|
22
|
+
userProfile?: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
declare const TeliStandardLayoutHeader: React.FC<TeliStandardLayoutHeaderProps>;
|
|
25
|
+
export default TeliStandardLayoutHeader;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: import("react").FC<import("./TeliStandardLayoutHeader").TeliStandardLayoutHeaderProps>;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type TeliStandardLayoutHeaderStory = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Basic: TeliStandardLayoutHeaderStory;
|
|
9
|
+
export declare const AppSwitcherExample: TeliStandardLayoutHeaderStory;
|
|
10
|
+
export declare const UserProfileExample: TeliStandardLayoutHeaderStory;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import ClockRotateLeft from "./ClockRotateLeft";
|
|
3
|
+
declare const meta: Meta<typeof ClockRotateLeft>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type ClockRotateLeftStory = StoryObj<typeof ClockRotateLeft>;
|
|
6
|
+
export declare const Example: ClockRotateLeftStory;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IconProp, SizeProp } from "@fortawesome/fontawesome-svg-core";
|
|
3
|
+
export type TeliIconProps = React.HTMLAttributes<SVGElement> & {
|
|
4
|
+
/**
|
|
5
|
+
* Can be used to control the size of the icon
|
|
6
|
+
*/
|
|
7
|
+
size: SizeProp;
|
|
8
|
+
};
|
|
9
|
+
interface IconProps extends Partial<TeliIconProps> {
|
|
10
|
+
faIcon: IconProp;
|
|
11
|
+
}
|
|
12
|
+
declare const Icon: React.FC<IconProps>;
|
|
13
|
+
export default Icon;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import TeliAddIcon from "./TeliAddIcon";
|
|
3
|
+
declare const meta: Meta<typeof TeliAddIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type TeliAddIconStory = StoryObj<typeof TeliAddIcon>;
|
|
6
|
+
export declare const Example: TeliAddIconStory;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import TeliCloseIcon from "./TeliCloseIcon";
|
|
3
|
+
declare const meta: Meta<typeof TeliCloseIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type TeliCloseIconStory = StoryObj<typeof TeliCloseIcon>;
|
|
6
|
+
export declare const Example: TeliCloseIconStory;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import TeliDeleteIcon from "./TeliDeleteIcon";
|
|
3
|
+
declare const meta: Meta<typeof TeliDeleteIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type TeliDeleteIconStory = StoryObj<typeof TeliDeleteIcon>;
|
|
6
|
+
export declare const Example: TeliDeleteIconStory;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import TeliEditIcon from "./TeliEditIcon";
|
|
3
|
+
declare const meta: Meta<typeof TeliEditIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type TeliEditIconStory = StoryObj<typeof TeliEditIcon>;
|
|
6
|
+
export declare const Example: TeliEditIconStory;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import TeliSearchIcon from "./TeliSearchIcon";
|
|
3
|
+
declare const meta: Meta<typeof TeliSearchIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type TeliSearchIconStory = StoryObj<typeof TeliSearchIcon>;
|
|
6
|
+
export declare const Example: TeliSearchIconStory;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { TeliSortAZIcon } from "./TeliSortIcons";
|
|
3
|
+
declare const meta: Meta<typeof TeliSortAZIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type TeliSortIconStory = StoryObj<typeof TeliSortAZIcon>;
|
|
6
|
+
export declare const SortAZ: TeliSortIconStory;
|
|
7
|
+
export declare const SortZA: TeliSortIconStory;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as ClockRotateLeft } from "./ClockRotateLeft";
|
|
2
|
+
export { default as TeliAddIcon } from "./TeliAddIcon";
|
|
3
|
+
export { default as TeliCloseIcon } from "./TeliCloseIcon";
|
|
4
|
+
export { default as TeliDeleteIcon } from "./TeliDeleteIcon";
|
|
5
|
+
export { default as TeliEditIcon } from "./TeliEditIcon";
|
|
6
|
+
export { default as TeliSearchIcon } from "./TeliSearchIcon";
|
|
7
|
+
export * from "./TeliSortIcons";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { type FC } from "react";
|
|
2
|
+
import { ListItemButtonProps, ListItemProps, ListProps } from "@mui/material";
|
|
3
|
+
export type TeliListProps = React.HTMLAttributes<HTMLUListElement> & Partial<{
|
|
4
|
+
dense: ListProps["dense"];
|
|
5
|
+
disablePadding: ListProps["disablePadding"];
|
|
6
|
+
subheader: ListProps["subheader"];
|
|
7
|
+
}>;
|
|
8
|
+
declare const TeliList: FC<TeliListProps>;
|
|
9
|
+
type TeliListItemButtonProps = React.HTMLAttributes<HTMLButtonElement> & Partial<{
|
|
10
|
+
alignItems: ListItemButtonProps["alignItems"];
|
|
11
|
+
autoFocus: ListItemButtonProps["autoFocus"];
|
|
12
|
+
dense: ListItemButtonProps["dense"];
|
|
13
|
+
disabled: ListItemButtonProps["disabled"];
|
|
14
|
+
disableGutters: ListItemButtonProps["disableGutters"];
|
|
15
|
+
divider: ListItemButtonProps["divider"];
|
|
16
|
+
selected: ListItemButtonProps["selected"];
|
|
17
|
+
}>;
|
|
18
|
+
declare const TeliListItemButton: FC<TeliListItemButtonProps>;
|
|
19
|
+
type TeliListItemProps = React.HTMLAttributes<HTMLLIElement> & Partial<{
|
|
20
|
+
alignItems: ListItemProps["alignItems"];
|
|
21
|
+
children: ListItemProps["children"];
|
|
22
|
+
dense: ListItemProps["dense"];
|
|
23
|
+
disableGutters: ListItemProps["disableGutters"];
|
|
24
|
+
disablePadding: ListItemProps["disablePadding"];
|
|
25
|
+
divider: ListItemProps["divider"];
|
|
26
|
+
secondaryAction: ListItemProps["secondaryAction"];
|
|
27
|
+
}>;
|
|
28
|
+
declare const TeliListItem: FC<TeliListItemProps>;
|
|
29
|
+
export { TeliList, TeliListItemButton, TeliListItem };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: import("react").FC<import("./TeliList").TeliListProps>;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Basic: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MenuItem } from "./TeliBasicMenu";
|
|
3
|
+
interface TeliMenuProps1 {
|
|
4
|
+
buttonId?: any;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
emptyMessage?: string;
|
|
7
|
+
listId?: any;
|
|
8
|
+
menuItems?: MenuItem[];
|
|
9
|
+
open?: boolean;
|
|
10
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLUListElement>;
|
|
11
|
+
onMenuItemClick: (onClick?: (event?: Event | React.SyntheticEvent) => void) => (event: Event | React.SyntheticEvent) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const BasicMenuContents: React.FC<TeliMenuProps1>;
|
|
14
|
+
export default BasicMenuContents;
|