@indico-data/design-system 1.0.47 → 1.0.49
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 -275
- 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 -813
- package/lib/components/ListTable/Header/Header.d.ts +1 -1
- package/lib/components/ListTable/Header/Header.styles.d.ts +1 -272
- 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 -272
- 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 +3 -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 +2 -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/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 -272
- 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 +4 -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 -272
- package/lib/components/basic-section/SectionBlock/SectionBlock.d.ts +1 -1
- package/lib/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +1 -272
- 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 -272
- 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 -272
- package/lib/components/basic-section/SectionTable/SectionTable.d.ts +1 -2
- package/lib/components/basic-section/SectionTable/SectionTable.styles.d.ts +1 -272
- package/lib/components/buttons/Button/Button.styles.d.ts +1 -282
- 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 +2 -567
- 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 -543
- package/lib/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +1 -84
- 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 -272
- package/lib/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +1 -84
- package/lib/components/dropdowns/utils.d.ts +1 -2
- package/lib/components/index.d.ts +7 -2
- 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 -272
- package/lib/components/inputs/NumberInput/NumberInput.styles.d.ts +1 -272
- package/lib/components/inputs/RadioButtons/RadioButtons.d.ts +24 -0
- package/lib/components/inputs/RadioButtons/RadioButtons.stories.d.ts +15 -0
- package/lib/components/inputs/RadioButtons/RadioButtons.styles.d.ts +14 -0
- package/lib/components/inputs/RadioButtons/index.d.ts +1 -0
- package/lib/components/inputs/RadioGroup/RadioGroup.d.ts +27 -0
- package/lib/components/inputs/RadioGroup/RadioGroup.stories.d.ts +16 -0
- package/lib/components/inputs/RadioGroup/RadioGroup.styles.d.ts +2 -0
- package/lib/components/inputs/RadioGroup/index.d.ts +1 -0
- 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 +1 -5
- package/lib/components/inputs/TextInput/TextInput.styles.d.ts +2 -543
- package/lib/components/inputs/index.d.ts +2 -0
- package/lib/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +1 -272
- 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 -272
- package/lib/components/loading-indicators/PercentageRing/PercentageRing.d.ts +1 -2
- package/lib/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +1 -272
- 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 +2 -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 +4 -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 -272
- package/lib/index.d.ts +531 -270
- package/lib/index.esm.js +5722 -824
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +5779 -867
- 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 +9 -0
- package/lib/tokens/typography.d.ts +12 -0
- package/lib/types.d.ts +147 -125
- package/package.json +60 -42
- 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 +211 -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 +262 -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 +16 -1
- package/src/components/inputs/RadioButtons/RadioButtons.stories.tsx +84 -0
- package/src/components/inputs/RadioButtons/RadioButtons.styles.ts +82 -0
- package/src/components/inputs/RadioButtons/RadioButtons.tsx +61 -0
- package/src/components/inputs/RadioButtons/index.tsx +1 -0
- package/src/components/inputs/RadioGroup/RadioGroup.stories.tsx +66 -0
- package/src/components/inputs/RadioGroup/RadioGroup.styles.ts +11 -0
- package/src/components/inputs/RadioGroup/RadioGroup.tsx +120 -0
- package/src/components/inputs/RadioGroup/index.ts +1 -0
- package/src/components/inputs/SearchInput/SearchInput.styles.ts +28 -42
- package/src/components/inputs/SearchInput/SearchInput.tsx +6 -4
- package/src/components/inputs/index.ts +2 -0
- 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 +22 -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 +13 -0
- package/src/setupTests.ts +4 -0
- package/src/tokens/colors.ts +9 -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";
|
|
@@ -17,6 +18,7 @@ export declare const allColors: {
|
|
|
17
18
|
readonly bouqet: "#a35c9a";
|
|
18
19
|
readonly brick: "#c62828";
|
|
19
20
|
readonly brightDusk: "#efebf7";
|
|
21
|
+
readonly britishShorthair: "#4b94eb";
|
|
20
22
|
readonly brown: "#785349";
|
|
21
23
|
readonly candyCorn: "#fcef4d";
|
|
22
24
|
readonly carnation: "#ff8adf";
|
|
@@ -27,23 +29,27 @@ export declare const allColors: {
|
|
|
27
29
|
readonly charcoal: "#474b4b";
|
|
28
30
|
readonly chartreuse: "#34ff01";
|
|
29
31
|
readonly clay: "#283243";
|
|
32
|
+
readonly clementine: "#F16E00";
|
|
30
33
|
readonly cocoaBean: "#5c1200";
|
|
31
34
|
readonly comet: "#5a6982";
|
|
32
35
|
readonly cornflower: "#2060ff";
|
|
33
36
|
readonly crimson: "#e53126";
|
|
34
37
|
readonly curiousBlue: "#178ee0";
|
|
35
38
|
readonly cyan: "#0cf";
|
|
39
|
+
readonly daisyBush: "#431B92";
|
|
36
40
|
readonly darkFontColor: "#0d151d";
|
|
37
41
|
readonly darkGray: "#333";
|
|
38
42
|
readonly darkPurple: "#6f3eae";
|
|
39
43
|
readonly darkRed: "#b30000";
|
|
40
44
|
readonly defaultFontColor: "#bbbfc5";
|
|
41
45
|
readonly dodgerBlue: "#1774ff";
|
|
46
|
+
readonly dusty: "#999999";
|
|
42
47
|
readonly eagleGreen: "#005557";
|
|
43
48
|
readonly ebony: "#101a26";
|
|
44
49
|
readonly eggplant: "#7a0074";
|
|
45
50
|
readonly electricGreen: "#00ff0a";
|
|
46
51
|
readonly emerald: "#09c199";
|
|
52
|
+
readonly endeavor: "#0055B9";
|
|
47
53
|
readonly espresso: "#5a3627";
|
|
48
54
|
readonly fieldPromptError: "#fd9693";
|
|
49
55
|
readonly fieldPromptInfo: "#00bfff";
|
|
@@ -55,6 +61,7 @@ export declare const allColors: {
|
|
|
55
61
|
readonly green: "#4caf50";
|
|
56
62
|
readonly harlequin: "#20cb00";
|
|
57
63
|
readonly harvestGold: "#e6c079";
|
|
64
|
+
readonly hawkes: "#DCEAFD";
|
|
58
65
|
readonly hemlock: "#626740";
|
|
59
66
|
readonly imperial: "#4b0134";
|
|
60
67
|
readonly iron: "#d9dee0";
|
|
@@ -100,12 +107,14 @@ export declare const allColors: {
|
|
|
100
107
|
readonly seaGreen: "#0b8a51";
|
|
101
108
|
readonly seance: "#7f1f82";
|
|
102
109
|
readonly shiraz: "#c61021";
|
|
110
|
+
readonly silverChalice: "#aaaaaa";
|
|
103
111
|
readonly sinopia: "#D14200";
|
|
104
112
|
readonly slaaneshGrey: "#dbd5e6";
|
|
105
113
|
readonly tangerine: "#ff9900";
|
|
106
114
|
readonly teal: "#008285";
|
|
107
115
|
readonly toast: "#997862";
|
|
108
116
|
readonly trueBlue: "#066CC6";
|
|
117
|
+
readonly tundora: "#444444";
|
|
109
118
|
readonly turquoise: "#00b5b6";
|
|
110
119
|
readonly vermilion: "#b95555";
|
|
111
120
|
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.49",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -11,82 +11,100 @@
|
|
|
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"
|
|
18
20
|
},
|
|
19
21
|
"dependencies": {
|
|
20
|
-
"@fortawesome/fontawesome-svg-core": "^6.
|
|
21
|
-
"@fortawesome/free-regular-svg-icons": "^6.
|
|
22
|
-
"@fortawesome/free-solid-svg-icons": "^6.
|
|
22
|
+
"@fortawesome/fontawesome-svg-core": "^6.5.1",
|
|
23
|
+
"@fortawesome/free-regular-svg-icons": "^6.5.1",
|
|
24
|
+
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
|
23
25
|
"@indico-data/utils": "^0.0.5",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
26
|
+
"@react-aria/radio": "^3.10.0",
|
|
27
|
+
"@react-aria/visually-hidden": "^3.8.8",
|
|
28
|
+
"@react-types/button": "^3.9.1",
|
|
29
|
+
"@react-types/checkbox": "^3.6.0",
|
|
30
|
+
"@react-types/radio": "^3.7.0",
|
|
31
|
+
"classnames": "^2.5.1",
|
|
32
|
+
"date-fns": "^3.3.1",
|
|
33
|
+
"html-webpack-plugin": "^5.6.0",
|
|
34
|
+
"react-aria-components": "^1.0.1",
|
|
35
|
+
"react-modal": "^3.16.1",
|
|
36
|
+
"react-stately": "^3.29.1",
|
|
27
37
|
"simple-zustand-devtools": "^1.1.0",
|
|
28
|
-
"svgo": "^3.0
|
|
38
|
+
"svgo": "^3.2.0",
|
|
29
39
|
"tslib": "^2.6.2",
|
|
30
40
|
"uuid": "^9.0.1",
|
|
31
|
-
"webpack": "^5",
|
|
41
|
+
"webpack": "^5.89.0",
|
|
32
42
|
"webpack-cli": "^5.1.4",
|
|
33
43
|
"webpack-dev-server": "^4.15.1"
|
|
34
44
|
},
|
|
35
45
|
"devDependencies": {
|
|
36
|
-
"@babel/core": "^7.23.
|
|
46
|
+
"@babel/core": "^7.23.7",
|
|
37
47
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
38
|
-
"@babel/preset-env": "^7.23.
|
|
48
|
+
"@babel/preset-env": "^7.23.8",
|
|
39
49
|
"@babel/preset-react": "^7.23.3",
|
|
40
50
|
"@babel/preset-typescript": "^7.23.3",
|
|
41
|
-
"@react-aria/button": "^3.9.
|
|
42
|
-
"@react-aria/focus": "^3.
|
|
51
|
+
"@react-aria/button": "^3.9.1",
|
|
52
|
+
"@react-aria/focus": "^3.16.0",
|
|
43
53
|
"@rollup/plugin-babel": "^6.0.4",
|
|
44
54
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
45
55
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
46
56
|
"@rollup/plugin-terser": "^0.4.4",
|
|
47
|
-
"@rollup/plugin-typescript": "^11.1.
|
|
48
|
-
"@storybook/addon-a11y": "^7.
|
|
49
|
-
"@storybook/addon-docs": "^7.
|
|
50
|
-
"@storybook/addon-essentials": "^7.
|
|
51
|
-
"@storybook/addon-interactions": "^7.
|
|
52
|
-
"@storybook/addon-links": "^7.
|
|
53
|
-
"@storybook/addon-onboarding": "^1.0.
|
|
54
|
-
"@storybook/addon-styling": "^
|
|
55
|
-
"@storybook/addon-styling-webpack": "^0.0.
|
|
56
|
-
"@storybook/addon-themes": "^7.
|
|
57
|
-
"@storybook/blocks": "^7.
|
|
58
|
-
"@storybook/react": "^7.
|
|
59
|
-
"@storybook/react-webpack5": "^7.
|
|
60
|
-
"@storybook/test": "^7.6.
|
|
61
|
-
"@storybook/test-runner": "^0.
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
57
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
58
|
+
"@storybook/addon-a11y": "^7.6.10",
|
|
59
|
+
"@storybook/addon-docs": "^7.6.10",
|
|
60
|
+
"@storybook/addon-essentials": "^7.6.10",
|
|
61
|
+
"@storybook/addon-interactions": "^7.6.10",
|
|
62
|
+
"@storybook/addon-links": "^7.6.10",
|
|
63
|
+
"@storybook/addon-onboarding": "^1.0.10",
|
|
64
|
+
"@storybook/addon-styling": "^1.3.7",
|
|
65
|
+
"@storybook/addon-styling-webpack": "^0.0.6",
|
|
66
|
+
"@storybook/addon-themes": "^7.6.10",
|
|
67
|
+
"@storybook/blocks": "^7.6.10",
|
|
68
|
+
"@storybook/react": "^7.6.10",
|
|
69
|
+
"@storybook/react-webpack5": "^7.6.10",
|
|
70
|
+
"@storybook/test": "^7.6.10",
|
|
71
|
+
"@storybook/test-runner": "^0.16.0",
|
|
72
|
+
"@testing-library/dom": "^9.3.4",
|
|
73
|
+
"@testing-library/jest-dom": "^6.2.1",
|
|
74
|
+
"@testing-library/react": "^14.1.2",
|
|
75
|
+
"@testing-library/user-event": "^14.5.2",
|
|
76
|
+
"@types/jest": "^29.5.11",
|
|
77
|
+
"@types/react": "^18.2.48",
|
|
78
|
+
"@types/react-dom": "^18.2.18",
|
|
79
|
+
"@types/react-modal": "^3.16.3",
|
|
80
|
+
"@types/styled-components": "^5.1.34",
|
|
65
81
|
"@types/uuid": "^9.0.7",
|
|
66
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
67
|
-
"@typescript-eslint/parser": "^6.
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
83
|
+
"@typescript-eslint/parser": "^6.19.1",
|
|
68
84
|
"babel-loader": "^9.1.3",
|
|
69
85
|
"babel-plugin-styled-components": "^2.1.4",
|
|
70
86
|
"babel-preset-react-app": "^10.0.1",
|
|
71
|
-
"eslint": "^8.
|
|
87
|
+
"eslint": "^8.56.0",
|
|
72
88
|
"eslint-plugin-react": "^7.33.2",
|
|
73
89
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
90
|
+
"jest": "^29.7.0",
|
|
91
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
74
92
|
"lint-staged": "^15.2.0",
|
|
75
|
-
"postcss": "^8.4.
|
|
76
|
-
"prettier": "3.
|
|
93
|
+
"postcss": "^8.4.33",
|
|
94
|
+
"prettier": "3.2.4",
|
|
77
95
|
"react": "^18.2.0",
|
|
78
96
|
"react-dom": "^18.2.0",
|
|
79
|
-
"react-router-dom": "^6.
|
|
97
|
+
"react-router-dom": "^6.21.3",
|
|
80
98
|
"react-select": "^5.8.0",
|
|
81
|
-
"rollup": "^4.6
|
|
99
|
+
"rollup": "^4.9.6",
|
|
82
100
|
"rollup-plugin-dts": "^6.1.0",
|
|
83
101
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
84
102
|
"rollup-plugin-postcss": "^4.0.2",
|
|
85
|
-
"storybook": "^7.
|
|
86
|
-
"styled-components": "^6.1.
|
|
103
|
+
"storybook": "^7.6.10",
|
|
104
|
+
"styled-components": "^6.1.8",
|
|
87
105
|
"ts-loader": "^9.5.1",
|
|
88
106
|
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
|
89
|
-
"typescript": "^5.
|
|
107
|
+
"typescript": "^5.3.3"
|
|
90
108
|
},
|
|
91
109
|
"resolutions": {
|
|
92
110
|
"jackspeak": "2.1.1"
|
|
@@ -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}
|