@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,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: import("react").FC<import("./TeliTableCell").TeliTableCellProps>;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type TeliTableCellStory = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Example: TeliTableCellStory;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableContainerProps as MUITableContainerProps } from "@mui/material";
|
|
3
|
+
import "./table.css";
|
|
4
|
+
type TableContainerProps = Omit<MUITableContainerProps, "sx" | "classes">;
|
|
5
|
+
export interface TeliTableContainerProps extends TableContainerProps {
|
|
6
|
+
/**
|
|
7
|
+
* If true, the table element will be bordered
|
|
8
|
+
*/
|
|
9
|
+
bordered?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Maximum height of the component
|
|
12
|
+
*/
|
|
13
|
+
maxHeight?: number;
|
|
14
|
+
}
|
|
15
|
+
declare const TeliTableContainer: React.FC<TeliTableContainerProps>;
|
|
16
|
+
export default TeliTableContainer;
|
|
@@ -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("./TeliTableContainer").TeliTableContainerProps>;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type TeliTableContainerStory = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Example: TeliTableContainerStory;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableHeadProps as MUITableHeadProps } from "@mui/material";
|
|
3
|
+
import "./table.css";
|
|
4
|
+
export type TeliTableHeadProps = Omit<MUITableHeadProps, "sx" | "classes">;
|
|
5
|
+
declare const TeliTableHead: React.FC<TeliTableHeadProps>;
|
|
6
|
+
export default TeliTableHead;
|
|
@@ -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("./TeliTableHead").TeliTableHeadProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
story: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export type TeliTableHeadStory = StoryObj<typeof meta>;
|
|
15
|
+
export declare const Example: TeliTableHeadStory;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableRowProps as MUITableRowProps } from "@mui/material";
|
|
3
|
+
import "./table.css";
|
|
4
|
+
type TableRowProps = Omit<MUITableRowProps, "sx" | "classes">;
|
|
5
|
+
export interface TeliTableRowProps extends TableRowProps {
|
|
6
|
+
/**
|
|
7
|
+
* If true, the last table row will have a bottom border added to the table
|
|
8
|
+
* cell element
|
|
9
|
+
*/
|
|
10
|
+
addBorderToLastRow?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const TeliTableRow: React.FC<TeliTableRowProps>;
|
|
13
|
+
export default TeliTableRow;
|
|
@@ -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("./TeliTableRow").TeliTableRowProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
story: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
type TeliTableRowStory = StoryObj<typeof meta>;
|
|
15
|
+
export declare const Example: TeliTableRowStory;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as TeliTable } from "./TeliTable";
|
|
2
|
+
export { default as TeliTableBody } from "./TeliTableBody";
|
|
3
|
+
export { default as TeliTableCell } from "./TeliTableCell";
|
|
4
|
+
export { default as TeliTableContainer } from "./TeliTableContainer";
|
|
5
|
+
export { default as TeliTableHead } from "./TeliTableHead";
|
|
6
|
+
export { default as TeliTableRow } from "./TeliTableRow";
|
|
7
|
+
export { default as TeliBasicTable } from "./TeliBasicTable";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as BasicTable } from "./BasicTable";
|
|
2
|
+
export { default as DenseTable } from "./DenseTable";
|
|
3
|
+
export { default as StickyHeader } from "./StickyHeader";
|
|
4
|
+
export { default as CaptionedTable } from "./Caption";
|
|
5
|
+
export { default as CustomColumns } from "./CustomColumns";
|
|
6
|
+
export { default as TableExample } from "./TableExample";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TableCellProps } from "@mui/material";
|
|
2
|
+
import { TeliBasicTableProps } from "./TeliBasicTable";
|
|
3
|
+
interface RowHeaderProps {
|
|
4
|
+
component?: TableCellProps["component"];
|
|
5
|
+
scope?: TableCellProps["scope"];
|
|
6
|
+
}
|
|
7
|
+
export declare const getAlignmentProp: (index: number, align: TeliBasicTableProps["align"]) => "inherit" | "right" | "left" | "center" | "justify" | undefined;
|
|
8
|
+
export declare const getRowHeaderProps: (index: number, isHeader: boolean) => RowHeaderProps | undefined;
|
|
9
|
+
export declare const createRows: (rows: Array<Array<string>>, numberRows: boolean) => string[][];
|
|
10
|
+
export declare const createColumns: <TCol>(columns: TCol[], numberRows: boolean, numberColumnHeading?: string) => (string | TCol)[];
|
|
11
|
+
export declare const createTableKey: (cellType: "column" | "row", data: string) => string;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TabsProps } from "@mui/material";
|
|
3
|
+
import "./telitabs.css";
|
|
4
|
+
export interface TeliTabsProps extends Omit<TabsProps, "value"> {
|
|
5
|
+
/**
|
|
6
|
+
* The value of the currently selected `Tab`.
|
|
7
|
+
*/
|
|
8
|
+
selectedTabIndex: number;
|
|
9
|
+
}
|
|
10
|
+
declare const TeliTabs: React.FC<TeliTabsProps>;
|
|
11
|
+
export default TeliTabs;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InputProps } from "@mui/material";
|
|
3
|
+
type TeliInputProps = Omit<InputProps, "classes" | "color" | "components" | "componentsProps" | "disableUnderline" | "inputComponent" | "inputProps" | "slotProps" | "slots" | "sx"> & Partial<{
|
|
4
|
+
cursor: React.CSSProperties["cursor"];
|
|
5
|
+
textAlign: React.CSSProperties["textAlign"];
|
|
6
|
+
}>;
|
|
7
|
+
declare const TeliInput: React.FC<TeliInputProps>;
|
|
8
|
+
export default TeliInput;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FC } from "react";
|
|
2
|
+
import TeliTextFieldProps from "./TeliTextFieldProps";
|
|
3
|
+
import "./textfield.css";
|
|
4
|
+
/**
|
|
5
|
+
* Text Fields let users enter and edit text. They typically appear in forms and dialogs.
|
|
6
|
+
* More information about this component can be used can be found [here](https://mui.com/material-ui/react-text-field/)
|
|
7
|
+
*/
|
|
8
|
+
declare const TeliTextField: FC<TeliTextFieldProps>;
|
|
9
|
+
export default TeliTextField;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
import { AdornmentExamples, Controlled, FormProps, MultilineExamples, ValidationExamples } from "./stories";
|
|
4
|
+
declare const meta: {
|
|
5
|
+
component: import("react").FC<import("./TeliTextFieldProps").default>;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export type TeliTextFieldStory = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Basic: TeliTextFieldStory;
|
|
10
|
+
export { FormProps, ValidationExamples, MultilineExamples, AdornmentExamples, Controlled, };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextFieldProps } from "@mui/material";
|
|
3
|
+
interface TeliTextFieldProps {
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
/** This prop helps users to fill forms faster, especially on mobile devices.
|
|
6
|
+
* The name can be confusing, as it's more like an autofill. You can learn
|
|
7
|
+
* more about it [following the
|
|
8
|
+
* specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
9
|
+
* */
|
|
10
|
+
autoComplete?: TextFieldProps["autoComplete"];
|
|
11
|
+
/** If true, the input element is focused during the first mount.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
autoFocus?: TextFieldProps["autoFocus"];
|
|
15
|
+
/** The default value. Use when the component is not controlled. */
|
|
16
|
+
defaultValue?: TextFieldProps["defaultValue"];
|
|
17
|
+
/** If true, the component is disabled.
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
disabled?: TextFieldProps["disabled"];
|
|
21
|
+
/** If true, the label is displayed in an error state.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
error?: TextFieldProps["error"];
|
|
25
|
+
/** End InputAdornment for this component. */
|
|
26
|
+
endAdornment?: React.ReactNode | string;
|
|
27
|
+
/** If true, the input will take up the full width of its container.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
fullWidth?: TextFieldProps["fullWidth"];
|
|
31
|
+
/** The helper text content. */
|
|
32
|
+
helperText?: TextFieldProps["helperText"];
|
|
33
|
+
/** The id of the input element. Use this prop to make label and helperText
|
|
34
|
+
* accessible for screen readers. */
|
|
35
|
+
id?: TextFieldProps["id"];
|
|
36
|
+
/** Pass a ref to the input element. */
|
|
37
|
+
inputRef?: TextFieldProps["inputRef"];
|
|
38
|
+
/** The label content. */
|
|
39
|
+
label?: TextFieldProps["label"];
|
|
40
|
+
/** Maximum number of rows to display when multiline option is set to true. */
|
|
41
|
+
maxRows?: TextFieldProps["maxRows"];
|
|
42
|
+
/** Minimum number of rows to display when multiline option is set to true. */
|
|
43
|
+
minRows?: TextFieldProps["minRows"];
|
|
44
|
+
/** If true, a textarea element is rendered instead of an input. */
|
|
45
|
+
multiline?: TextFieldProps["multiline"];
|
|
46
|
+
/** Name attribute of the input element. */
|
|
47
|
+
name?: TextFieldProps["name"];
|
|
48
|
+
/** Callback fired when the value is changed.
|
|
49
|
+
* (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void
|
|
50
|
+
* @param event The event source of the callback. You can pull out the new
|
|
51
|
+
* value by accessing event.target.value (string).
|
|
52
|
+
* @returns void
|
|
53
|
+
*/
|
|
54
|
+
onChange?: TextFieldProps["onChange"];
|
|
55
|
+
/** The short hint displayed in the input before the user enters a value. */
|
|
56
|
+
placeholder?: TextFieldProps["placeholder"];
|
|
57
|
+
/** If true, the label is displayed as required and the input element is required. */
|
|
58
|
+
required?: TextFieldProps["required"];
|
|
59
|
+
/** Number of rows to display when multiline option is set to true. */
|
|
60
|
+
rows?: TextFieldProps["rows"];
|
|
61
|
+
/** Start InputAdornment for this component. */
|
|
62
|
+
startAdornment?: React.ReactNode | string;
|
|
63
|
+
/** If true, pointer events like onClick are enabled */
|
|
64
|
+
pointerEvents?: boolean;
|
|
65
|
+
/** If true, the input value cannot be changed */
|
|
66
|
+
readOnly?: boolean;
|
|
67
|
+
/** Type of the input element. It should be a [valid HTML5 input
|
|
68
|
+
* type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
69
|
+
* */
|
|
70
|
+
type?: TextFieldProps["type"];
|
|
71
|
+
/** The value of the input element, required for a controlled component. */
|
|
72
|
+
value?: TextFieldProps["value"];
|
|
73
|
+
}
|
|
74
|
+
export default TeliTextFieldProps;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as AdornmentExamples } from "./Adornments";
|
|
2
|
+
export { default as Controlled } from "./Controlled";
|
|
3
|
+
export { default as FormProps } from "./FormProps";
|
|
4
|
+
export { default as MultilineExamples } from "./Multiline";
|
|
5
|
+
export { default as ValidationExamples } from "./Validation";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from "react";
|
|
2
|
+
import "./telitoolbar.css";
|
|
3
|
+
export interface TeliToolbarProps extends HTMLAttributes<HTMLUListElement> {
|
|
4
|
+
/**
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
7
|
+
defaultControls?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
vertical?: boolean;
|
|
12
|
+
position?: "bottom-start" | "bottom-end" | "top-start" | "top-end";
|
|
13
|
+
variant?: "tertiary" | "basic";
|
|
14
|
+
onZoomIn?: () => void;
|
|
15
|
+
onZoomOut?: () => void;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
declare const TeliToolbar: React.FC<TeliToolbarProps>;
|
|
19
|
+
export default TeliToolbar;
|