@indico-data/design-system 1.0.46 → 1.0.48
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/README.md +5 -0
- package/jest.config.js +15 -0
- package/lib/components/Accordion/Accordion.d.ts +1 -1
- package/lib/components/Accordion/Accordion.stories.d.ts +2 -2
- package/lib/components/Accordion/Accordion.styles.d.ts +1 -1
- package/lib/components/Icon/Icon.stories.d.ts +3 -4
- package/lib/components/Icon/indicons.d.ts +143 -124
- package/lib/components/Icon/storyHelpers.d.ts +3 -3
- package/lib/components/ListTable/Header/Header.d.ts +1 -1
- package/lib/components/ListTable/Header/Header.styles.d.ts +1 -1
- package/lib/components/ListTable/ListTable.d.ts +1 -1
- package/lib/components/ListTable/ListTable.stories.d.ts +1 -1
- package/lib/components/ListTable/ListTable.styles.d.ts +1 -1
- package/lib/components/LoadingAwareContainer/LoadingAwareContainer.d.ts +15 -0
- package/lib/components/LoadingAwareContainer/LoadingAwareContainer.stories.d.ts +22 -0
- package/lib/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +544 -0
- package/lib/components/LoadingAwareContainer/index.d.ts +1 -0
- package/lib/components/Navigation/Drawer/Drawer.d.ts +15 -0
- package/lib/components/Navigation/Drawer/Drawer.stories.d.ts +6 -0
- package/lib/components/Navigation/Drawer/Drawer.styles.d.ts +7 -0
- package/lib/components/Navigation/Drawer/DrawerLinkList.d.ts +9 -0
- package/lib/components/Navigation/Drawer/DrawerLinkList.styles.d.ts +273 -0
- package/lib/components/Navigation/Drawer/__mocks__/mocks.d.ts +3 -0
- package/lib/components/Navigation/Drawer/__tests__/Drawer.test.d.ts +1 -0
- package/lib/components/Navigation/Drawer/__tests__/DrawerLinkList.test.d.ts +1 -0
- package/lib/components/Navigation/Drawer/constants.d.ts +3 -0
- package/lib/components/Navigation/Drawer/index.d.ts +1 -0
- package/lib/components/Navigation/Drawer/types.d.ts +7 -0
- package/lib/components/Navigation/index.d.ts +1 -0
- package/lib/components/Pagination/Pagination.d.ts +1 -2
- package/lib/components/Pagination/Pagination.styles.d.ts +1 -1
- package/lib/components/Wizard/Wizard.d.ts +48 -0
- package/lib/components/Wizard/Wizard.stories.d.ts +29 -0
- package/lib/components/Wizard/Wizard.styles.d.ts +815 -0
- package/lib/components/Wizard/index.d.ts +2 -0
- package/lib/components/WizardWithSidebar/WizardWithSidebar.d.ts +58 -0
- package/lib/components/WizardWithSidebar/WizardWithSidebar.stories.d.ts +46 -0
- package/lib/components/WizardWithSidebar/WizardWithSidebar.styles.d.ts +9 -0
- package/lib/components/WizardWithSidebar/index.d.ts +2 -0
- package/lib/components/basic-section/Section/Section.d.ts +1 -1
- package/lib/components/basic-section/Section/Section.stories.d.ts +1 -1
- package/lib/components/basic-section/Section/Section.styles.d.ts +1 -1
- package/lib/components/basic-section/SectionBlock/SectionBlock.d.ts +1 -1
- package/lib/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +1 -1
- package/lib/components/basic-section/SectionBody/SectionBody.d.ts +1 -1
- package/lib/components/basic-section/SectionBody/SectionBody.stories.d.ts +1 -2
- package/lib/components/basic-section/SectionBody/SectionBody.styles.d.ts +1 -1
- package/lib/components/basic-section/SectionHeader/SectionHeader.d.ts +1 -1
- package/lib/components/basic-section/SectionHeader/SectionHeader.stories.d.ts +1 -1
- package/lib/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +1 -1
- package/lib/components/basic-section/SectionTable/SectionTable.d.ts +1 -2
- package/lib/components/basic-section/SectionTable/SectionTable.styles.d.ts +1 -1
- package/lib/components/buttons/Button/Button.styles.d.ts +1 -1
- package/lib/components/buttons/IconButton/IconButton.d.ts +4 -5
- package/lib/components/buttons/IconButton/IconButton.stories.d.ts +3 -3
- package/lib/components/buttons/IconButton/IconButton.styles.d.ts +5 -5
- package/lib/components/buttons/types.d.ts +2 -1
- package/lib/components/dropdowns/BorderSelect/BorderSelect.d.ts +1 -1
- package/lib/components/dropdowns/BorderSelect/BorderSelect.stories.d.ts +1 -1
- package/lib/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +2 -2
- package/lib/components/dropdowns/Select/Select.d.ts +1 -1
- package/lib/components/dropdowns/Select/Select.stories.d.ts +1 -1
- package/lib/components/dropdowns/Select/Select.styles.d.ts +1 -1
- package/lib/components/dropdowns/utils.d.ts +1 -2
- package/lib/components/index.d.ts +6 -1
- package/lib/components/inputs/EditableInput/EditableInput.d.ts +1 -1
- package/lib/components/inputs/EditableInput/EditableInput.stories.d.ts +1 -2
- package/lib/components/inputs/EditableInput/EditableInput.styles.d.ts +1 -1
- package/lib/components/inputs/NumberInput/NumberInput.styles.d.ts +1 -1
- package/lib/components/inputs/SearchInput/SearchInput.d.ts +1 -1
- package/lib/components/inputs/SearchInput/SearchInput.stories.d.ts +2 -1
- package/lib/components/inputs/SearchInput/SearchInput.styles.d.ts +272 -5
- package/lib/components/inputs/TextInput/TextInput.styles.d.ts +2 -2
- package/lib/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +1 -1
- package/lib/components/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +3 -3
- package/lib/components/loading-indicators/LoadingIndicator/LoadingIndicator.d.ts +10 -0
- package/lib/components/loading-indicators/LoadingIndicator/LoadingIndicator.stories.d.ts +11 -0
- package/lib/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +8 -0
- package/lib/components/loading-indicators/LoadingIndicator/index.d.ts +1 -0
- package/lib/components/loading-indicators/LoadingList/LoadingList.d.ts +1 -2
- package/lib/components/loading-indicators/LoadingList/LoadingList.stories.d.ts +1 -2
- package/lib/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +1 -1
- package/lib/components/loading-indicators/PercentageRing/PercentageRing.d.ts +1 -2
- package/lib/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +1 -1
- package/lib/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.d.ts +1 -2
- package/lib/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.stories.d.ts +1 -2
- package/lib/components/loading-indicators/index.d.ts +1 -0
- package/lib/components/modals/ConfirmModal/ConfirmModal.d.ts +17 -0
- package/lib/components/modals/ConfirmModal/ConfirmModal.stories.d.ts +44 -0
- package/lib/components/modals/ConfirmModal/ConfirmModal.styles.d.ts +273 -0
- package/lib/components/modals/ConfirmModal/index.d.ts +1 -0
- package/lib/components/modals/ModalBase/ModalBase.d.ts +27 -0
- package/lib/components/modals/ModalBase/ModalBase.stories.d.ts +9 -0
- package/lib/components/modals/ModalBase/ModalBase.styles.d.ts +6 -0
- package/lib/components/modals/ModalBase/index.d.ts +2 -0
- package/lib/components/modals/index.d.ts +2 -0
- package/lib/components/user-feedback/Shrug/Shrug.stories.d.ts +1 -1
- package/lib/components/user-feedback/Shrug/Shrug.styles.d.ts +1 -1
- package/lib/index.d.ts +1293 -269
- package/lib/index.esm.js +4082 -610
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4131 -649
- package/lib/index.js.map +1 -1
- package/lib/setupTests.d.ts +1 -0
- package/lib/styles/globals/index.d.ts +1 -2
- package/lib/tokens/colors.d.ts +7 -0
- package/lib/tokens/typography.d.ts +12 -0
- package/lib/types.d.ts +147 -124
- package/package.json +18 -3
- package/src/components/Icon/Icon.tsx +1 -0
- package/src/components/Icon/indicons.tsx +138 -15
- package/src/components/ListTable/ListTable.stories.tsx +1 -1
- package/src/components/LoadingAwareContainer/LoadingAwareContainer.stories.tsx +45 -0
- package/src/components/LoadingAwareContainer/LoadingAwareContainer.styles.ts +16 -0
- package/src/components/LoadingAwareContainer/LoadingAwareContainer.tsx +36 -0
- package/src/components/LoadingAwareContainer/index.ts +1 -0
- package/src/components/Navigation/Drawer/Drawer.stories.tsx +44 -0
- package/src/components/Navigation/Drawer/Drawer.styles.ts +75 -0
- package/src/components/Navigation/Drawer/Drawer.tsx +108 -0
- package/src/components/Navigation/Drawer/DrawerLinkList.styles.ts +66 -0
- package/src/components/Navigation/Drawer/DrawerLinkList.tsx +64 -0
- package/src/components/Navigation/Drawer/__mocks__/mocks.ts +49 -0
- package/src/components/Navigation/Drawer/__tests__/Drawer.test.tsx +175 -0
- package/src/components/Navigation/Drawer/__tests__/DrawerLinkList.test.tsx +66 -0
- package/src/components/Navigation/Drawer/index.ts +1 -0
- package/src/components/Navigation/Drawer/types.ts +8 -0
- package/src/components/Navigation/index.ts +1 -0
- package/src/components/Wizard/Wizard.stories.tsx +180 -0
- package/src/components/Wizard/Wizard.styles.ts +72 -0
- package/src/components/Wizard/Wizard.tsx +212 -0
- package/src/components/Wizard/index.ts +2 -0
- package/src/components/WizardWithSidebar/WizardWithSidebar.stories.tsx +143 -0
- package/src/components/WizardWithSidebar/WizardWithSidebar.styles.ts +123 -0
- package/src/components/WizardWithSidebar/WizardWithSidebar.tsx +261 -0
- package/src/components/WizardWithSidebar/index.ts +2 -0
- package/src/components/buttons/IconButton/IconButton.styles.ts +31 -0
- package/src/components/buttons/IconButton/IconButton.tsx +8 -6
- package/src/components/buttons/types.ts +2 -1
- package/src/components/index.ts +6 -0
- package/src/components/inputs/SearchInput/SearchInput.styles.ts +27 -41
- package/src/components/inputs/SearchInput/SearchInput.tsx +6 -4
- package/src/components/loading-indicators/CirclePulse/CirclePulse.styles.ts +7 -7
- package/src/components/loading-indicators/CirclePulse/CirclePulse.tsx +3 -3
- package/src/components/loading-indicators/LoadingIndicator/LoadingIndicator.stories.tsx +23 -0
- package/src/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.ts +81 -0
- package/src/components/loading-indicators/LoadingIndicator/LoadingIndicator.tsx +61 -0
- package/src/components/loading-indicators/LoadingIndicator/index.ts +1 -0
- package/src/components/loading-indicators/index.ts +1 -0
- package/src/components/modals/ConfirmModal/ConfirmModal.stories.tsx +76 -0
- package/src/components/modals/ConfirmModal/ConfirmModal.styles.ts +30 -0
- package/src/components/modals/ConfirmModal/ConfirmModal.tsx +84 -0
- package/src/components/modals/ConfirmModal/index.ts +1 -0
- package/src/components/modals/ModalBase/ModalBase.stories.tsx +47 -0
- package/src/components/modals/ModalBase/ModalBase.styles.tsx +73 -0
- package/src/components/modals/ModalBase/ModalBase.tsx +72 -0
- package/src/components/modals/ModalBase/index.ts +2 -0
- package/src/components/modals/index.ts +2 -0
- package/src/index.ts +9 -0
- package/src/setupTests.ts +4 -0
- package/src/tokens/colors.ts +7 -0
- package/src/tokens/typography.ts +7 -1
- package/src/types.ts +8 -0
- package/tsconfig.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,11 @@ Install dependencies with a simple `yarn` command.
|
|
|
12
12
|
|
|
13
13
|
`yarn dev` runs the command `storybook dev -p 6006` which should boot the dev server and open the local host in a browser window.
|
|
14
14
|
|
|
15
|
+
### Import Issues
|
|
16
|
+
|
|
17
|
+
When you first set this up, you might run into import issues due to Yarn 4. In order to resolve these, you need to run `yarn dlx @yarnpkg/sdks vscode` (assuming you are on vs code.)
|
|
18
|
+
more information available here(https://stackoverflow.com/questions/54954337/is-it-possible-to-use-yarn-pnp-with-typescript-vscode)
|
|
19
|
+
|
|
15
20
|
## Additional scripts
|
|
16
21
|
|
|
17
22
|
Run the below like `yarn <my command>`
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
preset: 'ts-jest',
|
|
4
|
+
testEnvironment: 'jest-environment-jsdom',
|
|
5
|
+
testPathIgnorePatterns: ['/node_modules/', '/lib/', '__mocks__'],
|
|
6
|
+
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
|
|
7
|
+
moduleNameMapper: {
|
|
8
|
+
'^@/(.*)$': '<rootDir>/src/$1',
|
|
9
|
+
},
|
|
10
|
+
transform: {
|
|
11
|
+
'^.+\\.(ts|tsx)?$': 'ts-jest',
|
|
12
|
+
'^.+\\.(js|jsx)$': 'babel-jest',
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
};
|
|
@@ -5,5 +5,5 @@ type Props = PermafrostComponent & {
|
|
|
5
5
|
header?: React.ReactNode | string;
|
|
6
6
|
open?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const Accordion: (props: Props) =>
|
|
8
|
+
export declare const Accordion: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -6,7 +6,7 @@ declare const meta: {
|
|
|
6
6
|
content: React.ReactNode;
|
|
7
7
|
header?: React.ReactNode;
|
|
8
8
|
open?: boolean | undefined;
|
|
9
|
-
}) =>
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
title: string;
|
|
11
11
|
argTypes: {};
|
|
12
12
|
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
@@ -17,7 +17,7 @@ declare const meta: {
|
|
|
17
17
|
content: React.ReactNode;
|
|
18
18
|
header?: React.ReactNode;
|
|
19
19
|
open?: boolean | undefined;
|
|
20
|
-
}>) =>
|
|
20
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
21
21
|
};
|
|
22
22
|
export default meta;
|
|
23
23
|
type Story = StoryObj<typeof Accordion>;
|
|
@@ -66,7 +66,7 @@ export declare const StyledAccordion: import("styled-components").IStyledCompone
|
|
|
66
66
|
"aria-colindextext"?: string | undefined;
|
|
67
67
|
"aria-colspan"?: number | undefined;
|
|
68
68
|
"aria-controls"?: string | undefined;
|
|
69
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "
|
|
69
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "date" | "location" | "time" | "step" | undefined;
|
|
70
70
|
"aria-describedby"?: string | undefined;
|
|
71
71
|
"aria-description"?: string | undefined;
|
|
72
72
|
"aria-details"?: string | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
2
|
import { Icon } from './Icon';
|
|
4
3
|
declare const meta: {
|
|
@@ -16,7 +15,7 @@ declare const meta: {
|
|
|
16
15
|
name: {
|
|
17
16
|
control: {
|
|
18
17
|
type: string;
|
|
19
|
-
options: ("checkbox" | "ellipsis" | "help" | "pointer" | "text" | "zoom-in" | "zoom-out" | "
|
|
18
|
+
options: ("checkbox" | "ellipsis" | "help" | "pointer" | "text" | "zoom-in" | "zoom-out" | "reset" | "menu" | "filter" | "search" | "split" | "indico-o-white" | "account" | "address" | "api-doc" | "arrow-dots" | "arrow-down" | "arrow-up-circle" | "arrows-cursor" | "bookmark" | "bookmarks" | "bookmark-saved" | "branch" | "check-circle" | "circle-help" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "classification-document" | "classification-image" | "classification-page" | "classify-and-unbundle" | "clipboard" | "coffee-1" | "coffee-2" | "coffee-fail" | "coffeecup" | "coffeesteam" | "cog" | "collection" | "compare" | "company-name" | "confidence-bar-1" | "confidence-bar-2" | "confidence-bar-3" | "confidence-bar-4" | "confidence-bars" | "configure" | "choose-library" | "crowdlabel" | "currency" | "dashboard" | "data-and-access" | "database" | "date" | "draggable" | "droplet" | "edit" | "education" | "elmos-fire" | "email" | "enterprise" | "exclamation-circle-stroke" | "extraction" | "eye" | "file" | "fileHappy" | "filter-outline" | "folder" | "form" | "gallery" | "find-documents" | "graphiql" | "grid-view" | "happy" | "help-solid" | "highlight" | "highlight-outline" | "indico-logo-white" | "indico-o" | "info" | "kabob" | "key" | "label" | "layout-complex" | "layout-simple" | "list-view" | "libraries" | "location" | "logout" | "lock" | "model-import" | "model-starter" | "moon" | "moonbow" | "no-collections" | "no-libraries" | "no_results" | "no-format" | "object-detection" | "organizations" | "output" | "page-thumbnail" | "pay-as-you-go" | "person" | "phone" | "pin" | "plus" | "popup" | "price" | "preview-view" | "radio-button" | "recruiter" | "regex" | "reject" | "repair" | "research" | "retrain" | "sad" | "search-thin" | "shrug" | "signature" | "sort-down" | "step-forward" | "sun" | "surround" | "surround-outline" | "thumbs-down" | "thumbs-up" | "time" | "trash" | "unlock" | "upload" | "url" | "user" | "wand" | "warning" | "warning-stroke" | "workflows" | "x-close" | "fa-dot-circle" | "fa-file" | "fa-file-alt" | "fa-file-pdf" | "fa-file-word" | "fa-check-square" | "fa-square" | "fa-angle-double-left" | "fa-arrow-circle-right" | "fa-arrow-down" | "fa-arrow-left" | "fa-arrow-right" | "fa-arrow-up" | "fa-ban" | "fa-caret-down" | "fa-caret-up" | "fa-chart-bar" | "fa-check" | "fa-check-circle" | "fa-circle-notch" | "fa-clipboard" | "fa-clock" | "fa-clone" | "fa-cloud" | "fa-cog" | "fa-cogs" | "fa-coins" | "fa-cube" | "fa-cut" | "fa-download" | "fa-exclamation-circle" | "fa-exclamation-triangle" | "fa-external-link-alt" | "fa-eye-dropper" | "fa-file-download" | "fa-file-export" | "fa-file-upload" | "fa-filter" | "fa-ghost" | "fa-hat-wizard" | "fa-info-circle" | "fa-key" | "fa-keyboard" | "fa-layer-group" | "fa-pencil-alt" | "fa-plus" | "fa-plus-square" | "fa-question-circle" | "fa-robot" | "fa-search" | "fa-sign-out-alt" | "fa-sliders-h" | "fa-sync-alt" | "fa-tag" | "fa-times" | "fa-times-circle" | "fa-tint" | "fa-toggle-off" | "fa-toggle-on" | "fa-trash" | "fa-trash-alt" | "fa-undo" | "fa-user" | "fa-users" | "fa-mouse-pointer" | "fa-step-forward" | "fa-search-minus" | "fa-search-plus" | "fa-table" | "fa-image" | "fa-link" | "fa-list")[];
|
|
20
19
|
};
|
|
21
20
|
};
|
|
22
21
|
};
|
|
@@ -27,11 +26,11 @@ declare const meta: {
|
|
|
27
26
|
'data-testid'?: string | undefined;
|
|
28
27
|
ariaLabel?: string | undefined;
|
|
29
28
|
fill?: string | undefined;
|
|
30
|
-
name: "checkbox" | "ellipsis" | "help" | "pointer" | "text" | "zoom-in" | "zoom-out" | "
|
|
29
|
+
name: "checkbox" | "ellipsis" | "help" | "pointer" | "text" | "zoom-in" | "zoom-out" | "reset" | "menu" | "filter" | "search" | "split" | "indico-o-white" | "account" | "address" | "api-doc" | "arrow-dots" | "arrow-down" | "arrow-up-circle" | "arrows-cursor" | "bookmark" | "bookmarks" | "bookmark-saved" | "branch" | "check-circle" | "circle-help" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "classification-document" | "classification-image" | "classification-page" | "classify-and-unbundle" | "clipboard" | "coffee-1" | "coffee-2" | "coffee-fail" | "coffeecup" | "coffeesteam" | "cog" | "collection" | "compare" | "company-name" | "confidence-bar-1" | "confidence-bar-2" | "confidence-bar-3" | "confidence-bar-4" | "confidence-bars" | "configure" | "choose-library" | "crowdlabel" | "currency" | "dashboard" | "data-and-access" | "database" | "date" | "draggable" | "droplet" | "edit" | "education" | "elmos-fire" | "email" | "enterprise" | "exclamation-circle-stroke" | "extraction" | "eye" | "file" | "fileHappy" | "filter-outline" | "folder" | "form" | "gallery" | "find-documents" | "graphiql" | "grid-view" | "happy" | "help-solid" | "highlight" | "highlight-outline" | "indico-logo-white" | "indico-o" | "info" | "kabob" | "key" | "label" | "layout-complex" | "layout-simple" | "list-view" | "libraries" | "location" | "logout" | "lock" | "model-import" | "model-starter" | "moon" | "moonbow" | "no-collections" | "no-libraries" | "no_results" | "no-format" | "object-detection" | "organizations" | "output" | "page-thumbnail" | "pay-as-you-go" | "person" | "phone" | "pin" | "plus" | "popup" | "price" | "preview-view" | "radio-button" | "recruiter" | "regex" | "reject" | "repair" | "research" | "retrain" | "sad" | "search-thin" | "shrug" | "signature" | "sort-down" | "step-forward" | "sun" | "surround" | "surround-outline" | "thumbs-down" | "thumbs-up" | "time" | "trash" | "unlock" | "upload" | "url" | "user" | "wand" | "warning" | "warning-stroke" | "workflows" | "x-close" | "fa-dot-circle" | "fa-file" | "fa-file-alt" | "fa-file-pdf" | "fa-file-word" | "fa-check-square" | "fa-square" | "fa-angle-double-left" | "fa-arrow-circle-right" | "fa-arrow-down" | "fa-arrow-left" | "fa-arrow-right" | "fa-arrow-up" | "fa-ban" | "fa-caret-down" | "fa-caret-up" | "fa-chart-bar" | "fa-check" | "fa-check-circle" | "fa-circle-notch" | "fa-clipboard" | "fa-clock" | "fa-clone" | "fa-cloud" | "fa-cog" | "fa-cogs" | "fa-coins" | "fa-cube" | "fa-cut" | "fa-download" | "fa-exclamation-circle" | "fa-exclamation-triangle" | "fa-external-link-alt" | "fa-eye-dropper" | "fa-file-download" | "fa-file-export" | "fa-file-upload" | "fa-filter" | "fa-ghost" | "fa-hat-wizard" | "fa-info-circle" | "fa-key" | "fa-keyboard" | "fa-layer-group" | "fa-pencil-alt" | "fa-plus" | "fa-plus-square" | "fa-question-circle" | "fa-robot" | "fa-search" | "fa-sign-out-alt" | "fa-sliders-h" | "fa-sync-alt" | "fa-tag" | "fa-times" | "fa-times-circle" | "fa-tint" | "fa-toggle-off" | "fa-toggle-on" | "fa-trash" | "fa-trash-alt" | "fa-undo" | "fa-user" | "fa-users" | "fa-mouse-pointer" | "fa-step-forward" | "fa-search-minus" | "fa-search-plus" | "fa-table" | "fa-image" | "fa-link" | "fa-list";
|
|
31
30
|
size?: [string | number] | [string | number, string | number] | undefined;
|
|
32
31
|
style?: any;
|
|
33
32
|
onClick?: (() => void) | undefined;
|
|
34
|
-
}>) =>
|
|
33
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
35
34
|
};
|
|
36
35
|
export default meta;
|
|
37
36
|
type Story = StoryObj<typeof Icon>;
|
|
@@ -1,127 +1,146 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const indicons: {
|
|
3
|
-
'indico-o-white':
|
|
4
|
-
account:
|
|
5
|
-
address:
|
|
6
|
-
'api-doc':
|
|
7
|
-
'arrow-dots':
|
|
8
|
-
'arrow-down':
|
|
9
|
-
'arrow-up-circle':
|
|
10
|
-
'arrows-cursor':
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
'
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
'
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
'
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
'
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
'
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
'
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
'
|
|
125
|
-
|
|
2
|
+
'indico-o-white': import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
account: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
address: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
'api-doc': import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
'arrow-dots': import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
'arrow-down': import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
'arrow-up-circle': import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
'arrows-cursor': import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
bookmark: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
bookmarks: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
'bookmark-saved': import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
branch: import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
'check-circle': import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
'circle-help': import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
check: import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
checkbox: import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
'chevron-down': import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
'chevron-left': import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
'chevron-right': import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
'chevron-up': import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
'classification-document': import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
'classification-image': import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
'classification-page': import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
'classify-and-unbundle': import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
clipboard: import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
'coffee-1': import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
'coffee-2': import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
'coffee-fail': import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
coffeecup: import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
coffeesteam: import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
cog: import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
collection: import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
compare: import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
'company-name': import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
'confidence-bar-1': import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
'confidence-bar-2': import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
'confidence-bar-3': import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
'confidence-bar-4': import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
'confidence-bars': import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
configure: import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
'choose-library': import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
crowdlabel: import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
currency: import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
dashboard: import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
'data-and-access': import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
database: import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
date: import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
draggable: import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
droplet: import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
edit: import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
education: import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
ellipsis: import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
'elmos-fire': import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
email: import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
enterprise: import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
'exclamation-circle-stroke': import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
extraction: import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
eye: import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
file: import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
fileHappy: import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
filter: import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
'filter-outline': import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
folder: import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
form: import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
gallery: import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
'find-documents': import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
graphiql: import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
'grid-view': import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
happy: import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
'help-solid': import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
help: import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
highlight: import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
'highlight-outline': import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
'indico-logo-white': import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
'indico-o': import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
info: import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
kabob: import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
key: import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
label: import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
'layout-complex': import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
'layout-simple': import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
'list-view': import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
libraries: import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
location: import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
logout: import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
lock: import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
menu: import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
'model-import': import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
'model-starter': import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
moon: import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
moonbow: import("react/jsx-runtime").JSX.Element;
|
|
93
|
+
'no-collections': import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
'no-libraries': import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
no_results: import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
'no-format': import("react/jsx-runtime").JSX.Element;
|
|
97
|
+
'object-detection': import("react/jsx-runtime").JSX.Element;
|
|
98
|
+
organizations: import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
output: import("react/jsx-runtime").JSX.Element;
|
|
100
|
+
'page-thumbnail': import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
'pay-as-you-go': import("react/jsx-runtime").JSX.Element;
|
|
102
|
+
person: import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
phone: import("react/jsx-runtime").JSX.Element;
|
|
104
|
+
pin: import("react/jsx-runtime").JSX.Element;
|
|
105
|
+
plus: import("react/jsx-runtime").JSX.Element;
|
|
106
|
+
pointer: import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
popup: import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
price: import("react/jsx-runtime").JSX.Element;
|
|
109
|
+
'preview-view': import("react/jsx-runtime").JSX.Element;
|
|
110
|
+
'radio-button': import("react/jsx-runtime").JSX.Element;
|
|
111
|
+
recruiter: import("react/jsx-runtime").JSX.Element;
|
|
112
|
+
regex: import("react/jsx-runtime").JSX.Element;
|
|
113
|
+
reject: import("react/jsx-runtime").JSX.Element;
|
|
114
|
+
repair: import("react/jsx-runtime").JSX.Element;
|
|
115
|
+
research: import("react/jsx-runtime").JSX.Element;
|
|
116
|
+
reset: import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
retrain: import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
sad: import("react/jsx-runtime").JSX.Element;
|
|
119
|
+
search: import("react/jsx-runtime").JSX.Element;
|
|
120
|
+
'search-thin': import("react/jsx-runtime").JSX.Element;
|
|
121
|
+
shrug: import("react/jsx-runtime").JSX.Element;
|
|
122
|
+
signature: import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
'sort-down': import("react/jsx-runtime").JSX.Element;
|
|
124
|
+
split: import("react/jsx-runtime").JSX.Element;
|
|
125
|
+
'step-forward': import("react/jsx-runtime").JSX.Element;
|
|
126
|
+
sun: import("react/jsx-runtime").JSX.Element;
|
|
127
|
+
surround: import("react/jsx-runtime").JSX.Element;
|
|
128
|
+
'surround-outline': import("react/jsx-runtime").JSX.Element;
|
|
129
|
+
text: import("react/jsx-runtime").JSX.Element;
|
|
130
|
+
'thumbs-down': import("react/jsx-runtime").JSX.Element;
|
|
131
|
+
'thumbs-up': import("react/jsx-runtime").JSX.Element;
|
|
132
|
+
time: import("react/jsx-runtime").JSX.Element;
|
|
133
|
+
trash: import("react/jsx-runtime").JSX.Element;
|
|
134
|
+
unlock: import("react/jsx-runtime").JSX.Element;
|
|
135
|
+
upload: import("react/jsx-runtime").JSX.Element;
|
|
136
|
+
url: import("react/jsx-runtime").JSX.Element;
|
|
137
|
+
user: import("react/jsx-runtime").JSX.Element;
|
|
138
|
+
wand: import("react/jsx-runtime").JSX.Element;
|
|
139
|
+
warning: import("react/jsx-runtime").JSX.Element;
|
|
140
|
+
'warning-stroke': import("react/jsx-runtime").JSX.Element;
|
|
141
|
+
workflows: import("react/jsx-runtime").JSX.Element;
|
|
142
|
+
'x-close': import("react/jsx-runtime").JSX.Element;
|
|
143
|
+
'zoom-in': import("react/jsx-runtime").JSX.Element;
|
|
144
|
+
'zoom-out': import("react/jsx-runtime").JSX.Element;
|
|
126
145
|
};
|
|
127
146
|
export { indicons };
|
|
@@ -66,7 +66,7 @@ export declare const IconContainer: import("styled-components").IStyledComponent
|
|
|
66
66
|
"aria-colindextext"?: string | undefined;
|
|
67
67
|
"aria-colspan"?: number | undefined;
|
|
68
68
|
"aria-controls"?: string | undefined;
|
|
69
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "
|
|
69
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "date" | "location" | "time" | "step" | undefined;
|
|
70
70
|
"aria-describedby"?: string | undefined;
|
|
71
71
|
"aria-description"?: string | undefined;
|
|
72
72
|
"aria-details"?: string | undefined;
|
|
@@ -337,7 +337,7 @@ export declare const IconGroupContainer: import("styled-components").IStyledComp
|
|
|
337
337
|
"aria-colindextext"?: string | undefined;
|
|
338
338
|
"aria-colspan"?: number | undefined;
|
|
339
339
|
"aria-controls"?: string | undefined;
|
|
340
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "
|
|
340
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "date" | "location" | "time" | "step" | undefined;
|
|
341
341
|
"aria-describedby"?: string | undefined;
|
|
342
342
|
"aria-description"?: string | undefined;
|
|
343
343
|
"aria-details"?: string | undefined;
|
|
@@ -608,7 +608,7 @@ export declare const SpecifiedSizeContainer: import("styled-components").IStyled
|
|
|
608
608
|
"aria-colindextext"?: string | undefined;
|
|
609
609
|
"aria-colspan"?: number | undefined;
|
|
610
610
|
"aria-controls"?: string | undefined;
|
|
611
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "
|
|
611
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "date" | "location" | "time" | "step" | undefined;
|
|
612
612
|
"aria-describedby"?: string | undefined;
|
|
613
613
|
"aria-description"?: string | undefined;
|
|
614
614
|
"aria-details"?: string | undefined;
|
|
@@ -63,7 +63,7 @@ export declare const StyledHeader: import("styled-components").IStyledComponent<
|
|
|
63
63
|
"aria-colindextext"?: string | undefined;
|
|
64
64
|
"aria-colspan"?: number | undefined;
|
|
65
65
|
"aria-controls"?: string | undefined;
|
|
66
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "
|
|
66
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "date" | "location" | "time" | "step" | undefined;
|
|
67
67
|
"aria-describedby"?: string | undefined;
|
|
68
68
|
"aria-description"?: string | undefined;
|
|
69
69
|
"aria-details"?: string | undefined;
|
|
@@ -37,5 +37,5 @@ type Props = PermafrostComponent & {
|
|
|
37
37
|
title: string;
|
|
38
38
|
totalCount?: number;
|
|
39
39
|
};
|
|
40
|
-
export declare const ListTable: (props: Props) =>
|
|
40
|
+
export declare const ListTable: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
export default ListTable;
|
|
@@ -63,7 +63,7 @@ export declare const StyledListTable: import("styled-components").IStyledCompone
|
|
|
63
63
|
"aria-colindextext"?: string | undefined;
|
|
64
64
|
"aria-colspan"?: number | undefined;
|
|
65
65
|
"aria-controls"?: string | undefined;
|
|
66
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "
|
|
66
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "date" | "location" | "time" | "step" | undefined;
|
|
67
67
|
"aria-describedby"?: string | undefined;
|
|
68
68
|
"aria-description"?: string | undefined;
|
|
69
69
|
"aria-details"?: string | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
children: React.ReactNode | React.ReactNode[];
|
|
4
|
+
className?: string;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* A functional container for content that is yet to load or will change; displays a loading indicator and announces
|
|
10
|
+
* to Assistive Technology as needed.
|
|
11
|
+
*
|
|
12
|
+
* todo: this is an extremely simple version of this component; as I get more familiar with LoadingIndicator use cases, this will be refactored. - jm 9/1/2020
|
|
13
|
+
*/
|
|
14
|
+
export declare function LoadingAwareContainer(props: Props): React.ReactElement;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { LoadingAwareContainer } from './LoadingAwareContainer';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof LoadingAwareContainer;
|
|
5
|
+
title: string;
|
|
6
|
+
argTypes: {
|
|
7
|
+
className: {
|
|
8
|
+
control: {
|
|
9
|
+
disable: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
style: {
|
|
13
|
+
control: {
|
|
14
|
+
disable: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof LoadingAwareContainer>;
|
|
21
|
+
export declare const Loading: Story;
|
|
22
|
+
export declare const Complete: Story;
|