@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
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PermafrostComponent } from '@/types';
|
|
3
|
+
export type CancelText = {
|
|
4
|
+
confirmText: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
rejectText: string;
|
|
7
|
+
title: string;
|
|
8
|
+
};
|
|
9
|
+
type Props = PermafrostComponent & {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* text for the cancel confirmation modal
|
|
13
|
+
*/
|
|
14
|
+
confirmCancel: CancelText;
|
|
15
|
+
disableNextStep?: boolean;
|
|
16
|
+
disablePrevStep?: boolean;
|
|
17
|
+
disableSubmit?: boolean;
|
|
18
|
+
isLastStep?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* for testing/mocking purposes
|
|
21
|
+
*/
|
|
22
|
+
startingStep?: string;
|
|
23
|
+
stepSchema: {
|
|
24
|
+
[key: string]: {
|
|
25
|
+
inputsRequiringValidation: string[];
|
|
26
|
+
description: string[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* the text to appear on the submit button
|
|
31
|
+
*/
|
|
32
|
+
submitButtonLabel: string;
|
|
33
|
+
/**
|
|
34
|
+
* Puts button in "busy" mode, and replaces button label with this text
|
|
35
|
+
*/
|
|
36
|
+
submitProcessing?: string;
|
|
37
|
+
wizardTitle: string;
|
|
38
|
+
onCancel?(): void;
|
|
39
|
+
onNextPress?(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* returns the current step name to the parent component
|
|
42
|
+
*/
|
|
43
|
+
onStepChange(stepName: string): void;
|
|
44
|
+
onSubmit(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Allows for any custom attribute to be added directly to "next button" in wizard
|
|
47
|
+
*/
|
|
48
|
+
nextButtonProps?: {
|
|
49
|
+
'data-cy': string;
|
|
50
|
+
};
|
|
51
|
+
bottomNav?: boolean;
|
|
52
|
+
validationErrors?: any;
|
|
53
|
+
backgroundColor?: string;
|
|
54
|
+
color?: string;
|
|
55
|
+
buttonColor?: string;
|
|
56
|
+
};
|
|
57
|
+
export declare function WizardWithSidebar(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { WizardWithSidebar } from './WizardWithSidebar';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof WizardWithSidebar;
|
|
5
|
+
title: string;
|
|
6
|
+
args: {
|
|
7
|
+
buttonColor: string;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
color: string;
|
|
10
|
+
stepSchema: {
|
|
11
|
+
'Library Details': {
|
|
12
|
+
inputsRequiringValidation: string[];
|
|
13
|
+
description: never[];
|
|
14
|
+
};
|
|
15
|
+
'Configure Source': {
|
|
16
|
+
inputsRequiringValidation: never[];
|
|
17
|
+
description: string[];
|
|
18
|
+
};
|
|
19
|
+
Summary: {
|
|
20
|
+
inputsRequiringValidation: never[];
|
|
21
|
+
description: never[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
onCancel: () => void;
|
|
25
|
+
onSubmit: () => void;
|
|
26
|
+
wizardTitle: string;
|
|
27
|
+
confirmCancel: {
|
|
28
|
+
title: string;
|
|
29
|
+
message: string;
|
|
30
|
+
confirmText: string;
|
|
31
|
+
rejectText: string;
|
|
32
|
+
};
|
|
33
|
+
submitButtonLabel: string;
|
|
34
|
+
onNextPress: () => true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default meta;
|
|
38
|
+
type Story = StoryObj<typeof WizardWithSidebar>;
|
|
39
|
+
export declare const FirstStep: Story;
|
|
40
|
+
export declare const SecondStep: Story;
|
|
41
|
+
export declare const LastStep: Story;
|
|
42
|
+
export declare const DisabledNextStep: Story;
|
|
43
|
+
export declare const DisabledPreviousStep: Story;
|
|
44
|
+
export declare const SubmitProcessing: Story;
|
|
45
|
+
export declare const LastStepOverride: Story;
|
|
46
|
+
export declare const WithValidationErrors: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledWizardWithSidebar: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
backgroundcolor?: string | undefined;
|
|
4
|
+
color?: string | undefined;
|
|
5
|
+
buttoncolor?: string | undefined;
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
"data-cy"?: string | undefined;
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
}>>;
|
|
@@ -5,7 +5,7 @@ declare const meta: {
|
|
|
5
5
|
component: (props: import("../../../types").PermafrostComponent & {
|
|
6
6
|
style?: object | undefined;
|
|
7
7
|
children: import("react").ReactNode;
|
|
8
|
-
}) => import("react").JSX.Element;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
title: string;
|
|
10
10
|
argTypes: {};
|
|
11
11
|
};
|
|
@@ -63,7 +63,7 @@ export declare const StyledSection: 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;
|
|
@@ -63,7 +63,7 @@ export declare const StyledSectionBlock: import("styled-components").IStyledComp
|
|
|
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;
|
|
@@ -4,4 +4,4 @@ export type SectionBodyProps = PermafrostComponent & {
|
|
|
4
4
|
style?: object;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
};
|
|
7
|
-
export declare const SectionBody: (props: SectionBodyProps) =>
|
|
7
|
+
export declare const SectionBody: (props: SectionBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { StoryObj } from '@storybook/react';
|
|
3
2
|
import { SectionBody } from './SectionBody';
|
|
4
3
|
declare const meta: {
|
|
5
|
-
component: (props: import("./SectionBody").SectionBodyProps) => import("react").JSX.Element;
|
|
4
|
+
component: (props: import("./SectionBody").SectionBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
title: string;
|
|
7
6
|
argTypes: {};
|
|
8
7
|
};
|
|
@@ -63,7 +63,7 @@ export declare const StyledSectionBody: import("styled-components").IStyledCompo
|
|
|
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;
|
|
@@ -6,7 +6,7 @@ declare const meta: {
|
|
|
6
6
|
(props: import("../../../types").PermafrostComponent & {
|
|
7
7
|
style?: object | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
|
-
}):
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
defaultProps: {
|
|
11
11
|
className: string;
|
|
12
12
|
style: {};
|
|
@@ -63,7 +63,7 @@ export declare const StyledSectionHeader: import("styled-components").IStyledCom
|
|
|
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;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const SectionTable: (props: any) => React.JSX.Element;
|
|
1
|
+
export declare const SectionTable: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -63,7 +63,7 @@ export declare const StyledSectionTable: import("styled-components").IStyledComp
|
|
|
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;
|
|
@@ -73,7 +73,7 @@ export declare const StyledButton: import("styled-components").IStyledComponent<
|
|
|
73
73
|
"aria-colindextext"?: string | undefined;
|
|
74
74
|
"aria-colspan"?: number | undefined;
|
|
75
75
|
"aria-controls"?: string | undefined;
|
|
76
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "
|
|
76
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "date" | "location" | "time" | "step" | undefined;
|
|
77
77
|
"aria-describedby"?: string | undefined;
|
|
78
78
|
"aria-description"?: string | undefined;
|
|
79
79
|
"aria-details"?: string | undefined;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AriaButtonProps } from '@react-types/button';
|
|
3
|
-
import { IconName } from '@/types';
|
|
4
|
-
import {
|
|
5
|
-
import { ButtonSize, ButtonVariant } from '../types';
|
|
3
|
+
import { IconName, PermafrostComponent } from '@/types';
|
|
4
|
+
import { ButtonSize, IconButtonVariant } from '../types';
|
|
6
5
|
type Props = PermafrostComponent & {
|
|
7
6
|
/**
|
|
8
7
|
* Adjusts vertical alignment of the text label, in relation to the icon
|
|
@@ -19,7 +18,7 @@ type Props = PermafrostComponent & {
|
|
|
19
18
|
label?: string;
|
|
20
19
|
size?: ButtonSize;
|
|
21
20
|
style?: React.CSSProperties;
|
|
22
|
-
variant?:
|
|
21
|
+
variant?: IconButtonVariant;
|
|
23
22
|
} & AriaButtonProps;
|
|
24
23
|
/**
|
|
25
24
|
* General utility “button with an icon” component. May also be used for links that _look_
|
|
@@ -29,5 +28,5 @@ type Props = PermafrostComponent & {
|
|
|
29
28
|
*
|
|
30
29
|
* @see {@link https://react-spectrum.adobe.com/blog/building-a-button-part-1.html}
|
|
31
30
|
*/
|
|
32
|
-
export declare function IconButton(props: Props):
|
|
31
|
+
export declare function IconButton(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
33
32
|
export {};
|
|
@@ -74,7 +74,7 @@ export declare const StyledIconButton: import("styled-components").IStyledCompon
|
|
|
74
74
|
"aria-colindextext"?: string | undefined;
|
|
75
75
|
"aria-colspan"?: number | undefined;
|
|
76
76
|
"aria-controls"?: string | undefined;
|
|
77
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "
|
|
77
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "date" | "location" | "time" | "step" | undefined;
|
|
78
78
|
"aria-describedby"?: string | undefined;
|
|
79
79
|
"aria-description"?: string | undefined;
|
|
80
80
|
"aria-details"?: string | undefined;
|
|
@@ -295,8 +295,7 @@ export declare const StyledIconButtonLink: import("styled-components").IStyledCo
|
|
|
295
295
|
content?: string | undefined;
|
|
296
296
|
style?: import("react").CSSProperties | undefined;
|
|
297
297
|
translate?: "yes" | "no" | undefined;
|
|
298
|
-
|
|
299
|
-
title?: string | undefined;
|
|
298
|
+
children?: import("react").ReactNode;
|
|
300
299
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
301
300
|
id?: string | undefined;
|
|
302
301
|
className?: string | undefined;
|
|
@@ -314,8 +313,10 @@ export declare const StyledIconButtonLink: import("styled-components").IStyledCo
|
|
|
314
313
|
dir?: string | undefined;
|
|
315
314
|
lang?: string | undefined;
|
|
316
315
|
nonce?: string | undefined;
|
|
316
|
+
slot?: string | undefined;
|
|
317
317
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
318
318
|
tabIndex?: number | undefined;
|
|
319
|
+
title?: string | undefined;
|
|
319
320
|
radioGroup?: string | undefined;
|
|
320
321
|
role?: import("react").AriaRole | undefined;
|
|
321
322
|
about?: string | undefined;
|
|
@@ -353,7 +354,7 @@ export declare const StyledIconButtonLink: import("styled-components").IStyledCo
|
|
|
353
354
|
"aria-colindextext"?: string | undefined;
|
|
354
355
|
"aria-colspan"?: number | undefined;
|
|
355
356
|
"aria-controls"?: string | undefined;
|
|
356
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "
|
|
357
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "date" | "location" | "time" | "step" | undefined;
|
|
357
358
|
"aria-describedby"?: string | undefined;
|
|
358
359
|
"aria-description"?: string | undefined;
|
|
359
360
|
"aria-details"?: string | undefined;
|
|
@@ -392,7 +393,6 @@ export declare const StyledIconButtonLink: import("styled-components").IStyledCo
|
|
|
392
393
|
"aria-valuemin"?: number | undefined;
|
|
393
394
|
"aria-valuenow"?: number | undefined;
|
|
394
395
|
"aria-valuetext"?: string | undefined;
|
|
395
|
-
children?: import("react").ReactNode;
|
|
396
396
|
dangerouslySetInnerHTML?: {
|
|
397
397
|
__html: string | TrustedHTML;
|
|
398
398
|
} | undefined;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export type ButtonVariant = '
|
|
1
|
+
export type ButtonVariant = 'primary' | 'cta' | 'normal' | 'link-style' | 'no-style' | 'outline';
|
|
2
|
+
export type IconButtonVariant = 'default' | 'primary' | 'destructive' | 'outline';
|
|
2
3
|
export type ButtonSize = 'normal' | 'large';
|
|
@@ -15,5 +15,5 @@ type Props = PermafrostComponent & {
|
|
|
15
15
|
value?: string | number;
|
|
16
16
|
validationErrors?: string[];
|
|
17
17
|
};
|
|
18
|
-
export declare const BorderSelect: (props: Props) =>
|
|
18
|
+
export declare const BorderSelect: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -16,7 +16,7 @@ declare const meta: {
|
|
|
16
16
|
style?: object | undefined;
|
|
17
17
|
value?: string | number | undefined;
|
|
18
18
|
validationErrors?: string[] | undefined;
|
|
19
|
-
}) => import("react").JSX.Element;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
title: string;
|
|
21
21
|
argTypes: {};
|
|
22
22
|
args: {
|
|
@@ -63,7 +63,7 @@ export declare const StyledSelect: 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;
|
|
@@ -334,7 +334,7 @@ export declare const StyledValidationError: import("styled-components").IStyledC
|
|
|
334
334
|
"aria-colindextext"?: string | undefined;
|
|
335
335
|
"aria-colspan"?: number | undefined;
|
|
336
336
|
"aria-controls"?: string | undefined;
|
|
337
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "
|
|
337
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "date" | "location" | "time" | "step" | undefined;
|
|
338
338
|
"aria-describedby"?: string | undefined;
|
|
339
339
|
"aria-description"?: string | undefined;
|
|
340
340
|
"aria-details"?: string | undefined;
|
|
@@ -15,5 +15,5 @@ type Props = PermafrostComponent & {
|
|
|
15
15
|
onChange(e: React.ChangeEvent<HTMLSelectElement>): void;
|
|
16
16
|
onClick?(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
17
17
|
};
|
|
18
|
-
export declare const Select: (props: Props) =>
|
|
18
|
+
export declare const Select: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -15,7 +15,7 @@ declare const meta: {
|
|
|
15
15
|
variant?: import("../types").ComboboxVariant | undefined;
|
|
16
16
|
onChange(e: import("react").ChangeEvent<HTMLSelectElement>): void;
|
|
17
17
|
onClick?(e: import("react").MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
18
|
-
}) => import("react").JSX.Element;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
title: string;
|
|
20
20
|
argTypes: {};
|
|
21
21
|
args: {
|
|
@@ -63,7 +63,7 @@ export declare const StyledSelect: 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;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
/**
|
|
3
2
|
* Adds custom props to a react-select component
|
|
4
3
|
*
|
|
@@ -18,4 +17,4 @@ import React from 'react';
|
|
|
18
17
|
*/
|
|
19
18
|
export declare const addCustomProps: (Component: any, customProps: {
|
|
20
19
|
[key: string]: string;
|
|
21
|
-
}) => (props: any) =>
|
|
20
|
+
}) => (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,12 @@ export { Button, IconButton } from './buttons';
|
|
|
4
4
|
export { BorderSelect, MultiCombobox, Select, SingleCombobox } from './dropdowns';
|
|
5
5
|
export { Icon, faIcons, indicons } from './Icon';
|
|
6
6
|
export { EditableInput, NumberInput, SearchInput, TextInput } from './inputs';
|
|
7
|
-
export { BarSpinner, CirclePulse, CircleSpinner, LoadingList, PercentageRing, RandomLoadingMessage, } from './loading-indicators';
|
|
7
|
+
export { BarSpinner, CirclePulse, CircleSpinner, LoadingList, PercentageRing, RandomLoadingMessage, LoadingIndicator, } from './loading-indicators';
|
|
8
8
|
export { ListTable } from './ListTable';
|
|
9
9
|
export { Pagination } from './Pagination';
|
|
10
10
|
export { Shrug } from './user-feedback';
|
|
11
|
+
export { ConfirmModal, ModalBase } from './modals';
|
|
12
|
+
export { LoadingAwareContainer } from './LoadingAwareContainer';
|
|
13
|
+
export { Wizard, WizardCard, WizardSection, StyledWizard } from './Wizard';
|
|
14
|
+
export { WizardWithSidebar } from './WizardWithSidebar';
|
|
15
|
+
export { Drawer } from './Navigation/Drawer';
|
|
@@ -9,5 +9,5 @@ type Props = PermafrostComponent & {
|
|
|
9
9
|
* Wrapper component which enables text editing in place directly on a child component,
|
|
10
10
|
* element, or plain text.
|
|
11
11
|
*/
|
|
12
|
-
export declare function EditableInput(props: Props):
|
|
12
|
+
export declare function EditableInput(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
2
|
import { EditableInput } from './EditableInput';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
component: typeof EditableInput;
|
|
6
5
|
title: string;
|
|
7
6
|
args: {
|
|
8
|
-
children:
|
|
7
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
};
|
|
10
9
|
argTypes: {};
|
|
11
10
|
};
|
|
@@ -63,7 +63,7 @@ export declare const StyledEditableInput: import("styled-components").IStyledCom
|
|
|
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;
|
|
@@ -63,7 +63,7 @@ export declare const StyledNumberField: import("styled-components").IStyledCompo
|
|
|
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;
|
|
@@ -15,7 +15,7 @@ declare const meta: {
|
|
|
15
15
|
onKeyUp?: ((e: import("react").KeyboardEvent<HTMLInputElement>) => void) | undefined;
|
|
16
16
|
placeholder?: string | undefined;
|
|
17
17
|
value?: string | undefined;
|
|
18
|
-
}): import("react").JSX.Element;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
defaultProps: {
|
|
20
20
|
className: string;
|
|
21
21
|
};
|
|
@@ -31,5 +31,6 @@ type Story = StoryObj<typeof SearchInput>;
|
|
|
31
31
|
export declare const Base: Story;
|
|
32
32
|
export declare const Border: Story;
|
|
33
33
|
export declare const SearchIcon: Story;
|
|
34
|
+
export declare const BorderAndSearchIcon: Story;
|
|
34
35
|
export declare const ClearInputIcon: Story;
|
|
35
36
|
export declare const ClearInputIconWithBorder: Story;
|