@indico-data/design-system 1.0.47 → 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 -125
- 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 +1 -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 -270
- package/lib/index.esm.js +4082 -622
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4131 -661
- 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 -125
- 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 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const GlobalStyles: () => React.JSX.Element;
|
|
1
|
+
export declare const GlobalStyles: () => import("react/jsx-runtime").JSX.Element;
|
package/lib/tokens/colors.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const allColors: {
|
|
2
2
|
readonly akaroa: "#cbc98f";
|
|
3
|
+
readonly alizarin: "#E72326";
|
|
3
4
|
readonly amber: "#f4c401";
|
|
4
5
|
readonly amethyst: "#8e57b3";
|
|
5
6
|
readonly aqua: "#10e4fe";
|
|
@@ -33,17 +34,20 @@ export declare const allColors: {
|
|
|
33
34
|
readonly crimson: "#e53126";
|
|
34
35
|
readonly curiousBlue: "#178ee0";
|
|
35
36
|
readonly cyan: "#0cf";
|
|
37
|
+
readonly daisyBush: "#431B92";
|
|
36
38
|
readonly darkFontColor: "#0d151d";
|
|
37
39
|
readonly darkGray: "#333";
|
|
38
40
|
readonly darkPurple: "#6f3eae";
|
|
39
41
|
readonly darkRed: "#b30000";
|
|
40
42
|
readonly defaultFontColor: "#bbbfc5";
|
|
41
43
|
readonly dodgerBlue: "#1774ff";
|
|
44
|
+
readonly dusty: "#999999";
|
|
42
45
|
readonly eagleGreen: "#005557";
|
|
43
46
|
readonly ebony: "#101a26";
|
|
44
47
|
readonly eggplant: "#7a0074";
|
|
45
48
|
readonly electricGreen: "#00ff0a";
|
|
46
49
|
readonly emerald: "#09c199";
|
|
50
|
+
readonly endeavor: "#0055B9";
|
|
47
51
|
readonly espresso: "#5a3627";
|
|
48
52
|
readonly fieldPromptError: "#fd9693";
|
|
49
53
|
readonly fieldPromptInfo: "#00bfff";
|
|
@@ -55,6 +59,7 @@ export declare const allColors: {
|
|
|
55
59
|
readonly green: "#4caf50";
|
|
56
60
|
readonly harlequin: "#20cb00";
|
|
57
61
|
readonly harvestGold: "#e6c079";
|
|
62
|
+
readonly hawkes: "#DCEAFD";
|
|
58
63
|
readonly hemlock: "#626740";
|
|
59
64
|
readonly imperial: "#4b0134";
|
|
60
65
|
readonly iron: "#d9dee0";
|
|
@@ -100,12 +105,14 @@ export declare const allColors: {
|
|
|
100
105
|
readonly seaGreen: "#0b8a51";
|
|
101
106
|
readonly seance: "#7f1f82";
|
|
102
107
|
readonly shiraz: "#c61021";
|
|
108
|
+
readonly silverChalice: "#aaaaaa";
|
|
103
109
|
readonly sinopia: "#D14200";
|
|
104
110
|
readonly slaaneshGrey: "#dbd5e6";
|
|
105
111
|
readonly tangerine: "#ff9900";
|
|
106
112
|
readonly teal: "#008285";
|
|
107
113
|
readonly toast: "#997862";
|
|
108
114
|
readonly trueBlue: "#066CC6";
|
|
115
|
+
readonly tundora: "#444444";
|
|
109
116
|
readonly turquoise: "#00b5b6";
|
|
110
117
|
readonly vermilion: "#b95555";
|
|
111
118
|
readonly viking: "#59cfe0";
|
|
@@ -21,6 +21,12 @@ export declare const spacing: {
|
|
|
21
21
|
quarter: string;
|
|
22
22
|
third: string;
|
|
23
23
|
};
|
|
24
|
+
export declare const weight: {
|
|
25
|
+
light: number;
|
|
26
|
+
regular: number;
|
|
27
|
+
semibold: number;
|
|
28
|
+
bold: number;
|
|
29
|
+
};
|
|
24
30
|
export declare const ellipsis: import("styled-components").RuleSet<object>;
|
|
25
31
|
export declare const typography: {
|
|
26
32
|
fontFamily: {
|
|
@@ -46,4 +52,10 @@ export declare const typography: {
|
|
|
46
52
|
third: string;
|
|
47
53
|
};
|
|
48
54
|
ellipsis: import("styled-components").RuleSet<object>;
|
|
55
|
+
weight: {
|
|
56
|
+
light: number;
|
|
57
|
+
regular: number;
|
|
58
|
+
semibold: number;
|
|
59
|
+
bold: number;
|
|
60
|
+
};
|
|
49
61
|
};
|
package/lib/types.d.ts
CHANGED
|
@@ -1,129 +1,148 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const allIcons: {
|
|
3
|
-
readonly 'indico-o-white': import("react").JSX.Element;
|
|
4
|
-
readonly account: import("react").JSX.Element;
|
|
5
|
-
readonly address: import("react").JSX.Element;
|
|
6
|
-
readonly 'api-doc': import("react").JSX.Element;
|
|
7
|
-
readonly 'arrow-dots': import("react").JSX.Element;
|
|
8
|
-
readonly 'arrow-down': import("react").JSX.Element;
|
|
9
|
-
readonly 'arrow-up-circle': import("react").JSX.Element;
|
|
10
|
-
readonly 'arrows-cursor': import("react").JSX.Element;
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly '
|
|
16
|
-
readonly '
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly '
|
|
20
|
-
readonly '
|
|
21
|
-
readonly '
|
|
22
|
-
readonly '
|
|
23
|
-
readonly
|
|
24
|
-
readonly '
|
|
25
|
-
readonly '
|
|
26
|
-
readonly '
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly '
|
|
30
|
-
readonly '
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly '
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly '
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
61
|
-
readonly
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly '
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly '
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly '
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
94
|
-
readonly '
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
109
|
-
readonly
|
|
110
|
-
readonly '
|
|
111
|
-
readonly
|
|
112
|
-
readonly
|
|
113
|
-
readonly
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
124
|
-
readonly '
|
|
125
|
-
readonly
|
|
126
|
-
readonly '
|
|
3
|
+
readonly 'indico-o-white': import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
readonly account: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
readonly address: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
readonly 'api-doc': import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
readonly 'arrow-dots': import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
readonly 'arrow-down': import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
readonly 'arrow-up-circle': import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
readonly 'arrows-cursor': import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
readonly bookmark: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
readonly bookmarks: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
readonly 'bookmark-saved': import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
readonly branch: import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
readonly 'check-circle': import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
readonly 'circle-help': import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
readonly check: import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
readonly checkbox: import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
readonly 'chevron-down': import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
readonly 'chevron-left': import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
readonly 'chevron-right': import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
readonly 'chevron-up': import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
readonly 'classification-document': import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
readonly 'classification-image': import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
readonly 'classification-page': import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
readonly 'classify-and-unbundle': import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
readonly clipboard: import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
readonly 'coffee-1': import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
readonly 'coffee-2': import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
readonly 'coffee-fail': import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
readonly coffeecup: import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
readonly coffeesteam: import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
readonly cog: import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
readonly collection: import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
readonly compare: import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
readonly 'company-name': import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
readonly 'confidence-bar-1': import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
readonly 'confidence-bar-2': import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
readonly 'confidence-bar-3': import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
readonly 'confidence-bar-4': import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
readonly 'confidence-bars': import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
readonly configure: import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
readonly 'choose-library': import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
readonly crowdlabel: import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
readonly currency: import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
readonly dashboard: import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
readonly 'data-and-access': import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
readonly database: import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
readonly date: import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
readonly draggable: import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
readonly droplet: import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
readonly edit: import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
readonly education: import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
readonly ellipsis: import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
readonly 'elmos-fire': import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
readonly email: import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
readonly enterprise: import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
readonly 'exclamation-circle-stroke': import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
readonly extraction: import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
readonly eye: import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
readonly file: import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
readonly fileHappy: import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
readonly filter: import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
readonly 'filter-outline': import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
readonly folder: import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
readonly form: import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
readonly gallery: import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
readonly 'find-documents': import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
readonly graphiql: import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
readonly 'grid-view': import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
readonly happy: import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
readonly 'help-solid': import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
readonly help: import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
readonly highlight: import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
readonly 'highlight-outline': import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
readonly 'indico-logo-white': import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
readonly 'indico-o': import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
readonly info: import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
readonly kabob: import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
readonly key: import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
readonly label: import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
readonly 'layout-complex': import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
readonly 'layout-simple': import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
readonly 'list-view': import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
readonly libraries: import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
readonly location: import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
readonly logout: import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
readonly lock: import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
readonly menu: import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
readonly 'model-import': import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
readonly 'model-starter': import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
readonly moon: import("react/jsx-runtime").JSX.Element;
|
|
93
|
+
readonly moonbow: import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
readonly 'no-collections': import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
readonly 'no-libraries': import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
readonly no_results: import("react/jsx-runtime").JSX.Element;
|
|
97
|
+
readonly 'no-format': import("react/jsx-runtime").JSX.Element;
|
|
98
|
+
readonly 'object-detection': import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
readonly organizations: import("react/jsx-runtime").JSX.Element;
|
|
100
|
+
readonly output: import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
readonly 'page-thumbnail': import("react/jsx-runtime").JSX.Element;
|
|
102
|
+
readonly 'pay-as-you-go': import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
readonly person: import("react/jsx-runtime").JSX.Element;
|
|
104
|
+
readonly phone: import("react/jsx-runtime").JSX.Element;
|
|
105
|
+
readonly pin: import("react/jsx-runtime").JSX.Element;
|
|
106
|
+
readonly plus: import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
readonly pointer: import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
readonly popup: import("react/jsx-runtime").JSX.Element;
|
|
109
|
+
readonly price: import("react/jsx-runtime").JSX.Element;
|
|
110
|
+
readonly 'preview-view': import("react/jsx-runtime").JSX.Element;
|
|
111
|
+
readonly 'radio-button': import("react/jsx-runtime").JSX.Element;
|
|
112
|
+
readonly recruiter: import("react/jsx-runtime").JSX.Element;
|
|
113
|
+
readonly regex: import("react/jsx-runtime").JSX.Element;
|
|
114
|
+
readonly reject: import("react/jsx-runtime").JSX.Element;
|
|
115
|
+
readonly repair: import("react/jsx-runtime").JSX.Element;
|
|
116
|
+
readonly research: import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
readonly reset: import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
readonly retrain: import("react/jsx-runtime").JSX.Element;
|
|
119
|
+
readonly sad: import("react/jsx-runtime").JSX.Element;
|
|
120
|
+
readonly search: import("react/jsx-runtime").JSX.Element;
|
|
121
|
+
readonly 'search-thin': import("react/jsx-runtime").JSX.Element;
|
|
122
|
+
readonly shrug: import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
readonly signature: import("react/jsx-runtime").JSX.Element;
|
|
124
|
+
readonly 'sort-down': import("react/jsx-runtime").JSX.Element;
|
|
125
|
+
readonly split: import("react/jsx-runtime").JSX.Element;
|
|
126
|
+
readonly 'step-forward': import("react/jsx-runtime").JSX.Element;
|
|
127
|
+
readonly sun: import("react/jsx-runtime").JSX.Element;
|
|
128
|
+
readonly surround: import("react/jsx-runtime").JSX.Element;
|
|
129
|
+
readonly 'surround-outline': import("react/jsx-runtime").JSX.Element;
|
|
130
|
+
readonly text: import("react/jsx-runtime").JSX.Element;
|
|
131
|
+
readonly 'thumbs-down': import("react/jsx-runtime").JSX.Element;
|
|
132
|
+
readonly 'thumbs-up': import("react/jsx-runtime").JSX.Element;
|
|
133
|
+
readonly time: import("react/jsx-runtime").JSX.Element;
|
|
134
|
+
readonly trash: import("react/jsx-runtime").JSX.Element;
|
|
135
|
+
readonly unlock: import("react/jsx-runtime").JSX.Element;
|
|
136
|
+
readonly upload: import("react/jsx-runtime").JSX.Element;
|
|
137
|
+
readonly url: import("react/jsx-runtime").JSX.Element;
|
|
138
|
+
readonly user: import("react/jsx-runtime").JSX.Element;
|
|
139
|
+
readonly wand: import("react/jsx-runtime").JSX.Element;
|
|
140
|
+
readonly warning: import("react/jsx-runtime").JSX.Element;
|
|
141
|
+
readonly 'warning-stroke': import("react/jsx-runtime").JSX.Element;
|
|
142
|
+
readonly workflows: import("react/jsx-runtime").JSX.Element;
|
|
143
|
+
readonly 'x-close': import("react/jsx-runtime").JSX.Element;
|
|
144
|
+
readonly 'zoom-in': import("react/jsx-runtime").JSX.Element;
|
|
145
|
+
readonly 'zoom-out': import("react/jsx-runtime").JSX.Element;
|
|
127
146
|
readonly 'fa-dot-circle': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
128
147
|
readonly 'fa-file': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
129
148
|
readonly 'fa-file-alt': import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -204,4 +223,7 @@ export type PermafrostComponent = {
|
|
|
204
223
|
'data-cy'?: string;
|
|
205
224
|
'data-testid'?: string;
|
|
206
225
|
};
|
|
207
|
-
export
|
|
226
|
+
export type ButtonVariant = 'default' | 'primary' | 'destructive';
|
|
227
|
+
export type ButtonSize = 'normal' | 'large';
|
|
228
|
+
import { ListItem } from './components/Navigation/Drawer/types';
|
|
229
|
+
export type { ListItem };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indico-data/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"lint": "yarn eslint src --ext ts,js,tsx,jsx",
|
|
12
12
|
"build": "rollup -c",
|
|
13
13
|
"build storybook": "storybook build",
|
|
14
|
-
"test-storybook": "test-storybook"
|
|
14
|
+
"test-storybook": "test-storybook",
|
|
15
|
+
"test": "jest",
|
|
16
|
+
"test:watch": "jest --watch"
|
|
15
17
|
},
|
|
16
18
|
"lint-staged": {
|
|
17
19
|
"**/*": "prettier --write --ignore-unknown"
|
|
@@ -21,9 +23,13 @@
|
|
|
21
23
|
"@fortawesome/free-regular-svg-icons": "^6.4.2",
|
|
22
24
|
"@fortawesome/free-solid-svg-icons": "^6.4.2",
|
|
23
25
|
"@indico-data/utils": "^0.0.5",
|
|
26
|
+
"@react-types/button": "^3.9.1",
|
|
27
|
+
"@react-types/checkbox": "^3.6.0",
|
|
28
|
+
"@react-types/radio": "^3.7.0",
|
|
24
29
|
"classnames": "^2.3.2",
|
|
25
30
|
"date-fns": "^2.30.0",
|
|
26
31
|
"html-webpack-plugin": "^5.5.3",
|
|
32
|
+
"react-modal": "^3.16.1",
|
|
27
33
|
"simple-zustand-devtools": "^1.1.0",
|
|
28
34
|
"svgo": "^3.0.3",
|
|
29
35
|
"tslib": "^2.6.2",
|
|
@@ -58,9 +64,15 @@
|
|
|
58
64
|
"@storybook/react": "^7.5.3",
|
|
59
65
|
"@storybook/react-webpack5": "^7.5.3",
|
|
60
66
|
"@storybook/test": "^7.6.0-alpha.4",
|
|
61
|
-
"@storybook/test-runner": "^0.
|
|
67
|
+
"@storybook/test-runner": "^0.16.0",
|
|
68
|
+
"@testing-library/dom": "^9.3.4",
|
|
69
|
+
"@testing-library/jest-dom": "^6.2.1",
|
|
70
|
+
"@testing-library/react": "^14.1.2",
|
|
71
|
+
"@testing-library/user-event": "^14.5.2",
|
|
72
|
+
"@types/jest": "^29.5.11",
|
|
62
73
|
"@types/react": "^18",
|
|
63
74
|
"@types/react-dom": "^18",
|
|
75
|
+
"@types/react-modal": "^3",
|
|
64
76
|
"@types/styled-components": "^5.1.30",
|
|
65
77
|
"@types/uuid": "^9.0.7",
|
|
66
78
|
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
@@ -71,6 +83,8 @@
|
|
|
71
83
|
"eslint": "^8.53.0",
|
|
72
84
|
"eslint-plugin-react": "^7.33.2",
|
|
73
85
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
86
|
+
"jest": "^29.7.0",
|
|
87
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
74
88
|
"lint-staged": "^15.2.0",
|
|
75
89
|
"postcss": "^8.4.31",
|
|
76
90
|
"prettier": "3.1.0",
|
|
@@ -84,6 +98,7 @@
|
|
|
84
98
|
"rollup-plugin-postcss": "^4.0.2",
|
|
85
99
|
"storybook": "^7.5.3",
|
|
86
100
|
"styled-components": "^6.1.1",
|
|
101
|
+
"ts-jest": "^29.1.2",
|
|
87
102
|
"ts-loader": "^9.5.1",
|
|
88
103
|
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
|
89
104
|
"typescript": "^5.2.2"
|
|
@@ -56,6 +56,7 @@ export function Icon({ style = {}, ...props }: Props): React.ReactElement | null
|
|
|
56
56
|
role="img"
|
|
57
57
|
className={props.className}
|
|
58
58
|
data-cy={props['data-cy']}
|
|
59
|
+
data-testid={props['data-testid']}
|
|
59
60
|
fill={props.fill || 'currentColor'}
|
|
60
61
|
id={props.id}
|
|
61
62
|
style={style}
|