@prismicio/editor-ui 0.4.25 → 0.4.27
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/dist/components/Alert/Alert.d.ts +23 -4
- package/dist/components/Alert/Alert.stories.d.ts +25 -20
- package/dist/components/AnimatedElement/AnimatedElement.d.ts +4 -4
- package/dist/components/AnimatedElement/AnimatedElement.stories.d.ts +3 -13
- package/dist/components/AnimatedList/AnimatedList.d.ts +12 -7
- package/dist/components/AnimatedList/AnimatedList.stories.d.ts +41 -5
- package/dist/components/Avatar/Avatar.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +7 -3
- package/dist/components/Badge/Badge.stories.d.ts +1 -0
- package/dist/components/BaseInput/BaseInput.d.ts +24 -9
- package/dist/components/BaseInput/BaseInput.stories.d.ts +1 -0
- package/dist/components/Box/Box.d.ts +31 -32
- package/dist/components/Box/Box.stories.d.ts +147 -4
- package/dist/components/Button/Button.d.ts +11 -1
- package/dist/components/Button/Button.stories.d.ts +12 -5
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +3 -2
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +15 -3
- package/dist/components/Card/Card.stories.d.ts +45 -5
- package/dist/components/Card/PreviewCard.d.ts +23 -0
- package/dist/components/Card/PreviewCard.stories.d.ts +27 -0
- package/dist/components/Card/index.d.ts +2 -1
- package/dist/components/Carousel/Carousel.d.ts +7 -0
- package/dist/components/Carousel/CarouselItem.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -0
- package/dist/components/ComboBox/ComboBox.d.ts +41 -0
- package/dist/components/ComboBox/ComboBox.stories.d.ts +17 -0
- package/dist/components/ComboBox/ComboBoxConstants.d.ts +4 -0
- package/dist/components/ComboBox/index.d.ts +1 -0
- package/dist/components/ComboBox/useComboBox.d.ts +21 -0
- package/dist/components/ConjoinedIcons/ConjoinedIcons.d.ts +1 -1
- package/dist/components/ContentEditable/ContentEditable.d.ts +25 -5
- package/dist/components/ContentEditable/ContentEditable.stories.d.ts +5 -6
- package/dist/components/ContentEditable/index.d.ts +4 -0
- package/dist/components/ContentEditable/useEditor.d.ts +12 -0
- package/dist/components/DateInput/DateInput.d.ts +1 -1
- package/dist/components/DateInput/DateInput.stories.d.ts +3 -12
- package/dist/components/Dialog/Dialog.d.ts +8 -4
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +30 -0
- package/dist/components/EditableText/EditableText.d.ts +4 -4
- package/dist/components/Field/Field.stories.d.ts +1 -0
- package/dist/components/FieldSet/FieldSet.d.ts +2 -5
- package/dist/components/FieldSet/FieldSet.stories.d.ts +1 -0
- package/dist/components/FieldSet/index.d.ts +1 -2
- package/dist/components/FileUpload/{FileDropZone/FileDropZone.d.ts → FileDropZone.d.ts} +1 -2
- package/dist/components/FileUpload/FileDropZone.stories.d.ts +14 -0
- package/dist/components/FileUpload/FileUpload.utils.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts +2 -2
- package/dist/components/Form/Form.stories.d.ts +3 -6
- package/dist/components/Form/FormDateInput.d.ts +1 -1
- package/dist/components/Form/FormField.d.ts +1 -0
- package/dist/components/Form/FormInput.d.ts +6 -2
- package/dist/components/Form/FormSearchInput.d.ts +6 -1
- package/dist/components/HairlineButton/HairlineButton.stories.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.stories.d.ts +1 -0
- package/dist/components/Icon/PrismicLogo.d.ts +1 -0
- package/dist/components/Icon/iconNames.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +7 -7
- package/dist/components/IconButton/IconButton.stories.d.ts +1 -1
- package/dist/components/Image/Image.d.ts +2 -1
- package/dist/components/LazyRender/LazyRender.d.ts +9 -2
- package/dist/components/LinkDescriptionCard/LinkDescriptionCard.d.ts +1 -1
- package/dist/components/List/UnorderedList.stories.d.ts +1 -0
- package/dist/components/MediaCard/MediaCard.d.ts +12 -3
- package/dist/components/MediaCard/MediaCard.stories.d.ts +11 -25
- package/dist/components/OverflowContainer/OverflowContainer.d.ts +23 -0
- package/dist/components/OverflowContainer/OverflowContainer.stories.d.ts +23 -0
- package/dist/components/OverflowContainer/index.d.ts +1 -0
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +2 -2
- package/dist/components/ScrollArea/ScrollArea.d.ts +2 -2
- package/dist/components/ScrollArea/ScrollArea.stories.d.ts +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +12 -2
- package/dist/components/SearchInput/SearchInput.stories.d.ts +3 -2
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Separator/Separator.d.ts +1 -0
- package/dist/components/Separator/Separator.stories.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +16 -10
- package/dist/components/Skeleton/Skeleton.stories.d.ts +47 -4
- package/dist/components/Slice/SliceSelectCard.d.ts +1 -0
- package/dist/components/Suspense/AnimatedSuspense.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +2 -0
- package/dist/components/Text/Text.d.ts +23 -3
- package/dist/components/Text/Text.stories.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +2 -0
- package/dist/components/TextInput/TextInput.stories.d.ts +1 -0
- package/dist/components/TextOverflow/TextOverflow.d.ts +10 -0
- package/dist/components/TextOverflow/index.d.ts +1 -0
- package/dist/components/Toast/Toast.stories.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.d.ts +1 -0
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +3 -2
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +5 -4
- package/dist/components/Tooltip/Tooltip.d.ts +7 -2
- package/dist/components/Video/Video.d.ts +1 -1
- package/dist/components/Window/Window.d.ts +32 -0
- package/dist/components/Window/Window.stories.d.ts +53 -0
- package/dist/components/Window/index.d.ts +1 -0
- package/dist/index.cjs.js +234 -138
- package/dist/index.d.ts +9 -12
- package/dist/index.es.js +29391 -18658
- package/dist/style.css +1 -1
- package/dist/theme/colors.d.ts +8 -0
- package/dist/theme/new/sx.d.ts +1 -0
- package/dist/theme/new/theme.d.ts +12 -1
- package/dist/theme/new/useMediaQuery.d.ts +17 -0
- package/dist/theme/selectors.d.ts +20 -20
- package/dist/theme/sprinkles.css.d.ts +935 -192
- package/dist/theme/vars.css.d.ts +6 -0
- package/package.json +21 -7
- package/dist/components/Avatar/Avatar.css.d.ts +0 -3
- package/dist/components/Card/Card.css.d.ts +0 -17
- package/dist/components/Carousel/Carousel.css.d.ts +0 -4
- package/dist/components/Carousel/CarouselItem.css.d.ts +0 -4
- package/dist/components/CheckerBoard/CheckerBoard.css.d.ts +0 -1
- package/dist/components/CircledIcon/CircledIcon.d.ts +0 -9
- package/dist/components/CircledIcon/CircledIcon.stories.d.ts +0 -11
- package/dist/components/CircledIcon/CircledIconStyles.css.d.ts +0 -11
- package/dist/components/CircledIcon/index.d.ts +0 -1
- package/dist/components/ConjoinedIcons/ConjoinedIcons.css.d.ts +0 -2
- package/dist/components/ContentEditable/ContentEditable.css.d.ts +0 -1
- package/dist/components/Cropper/Cropper.css.d.ts +0 -4
- package/dist/components/DateInput/DateInput.css.d.ts +0 -2
- package/dist/components/DateInput/DateSegments.css.d.ts +0 -7
- package/dist/components/Dialog/FullscreenDialog.css.d.ts +0 -1
- package/dist/components/DocumentCard/DocumentCard.css.d.ts +0 -14
- package/dist/components/DocumentCard/DocumentCard.d.ts +0 -14
- package/dist/components/DocumentCard/DocumentCard.stories.d.ts +0 -40
- package/dist/components/DocumentCard/index.d.ts +0 -1
- package/dist/components/DragCard/DragCard.css.d.ts +0 -3
- package/dist/components/Embed/EmbedPreview.css.d.ts +0 -5
- package/dist/components/Embed/EmbedPreview.d.ts +0 -13
- package/dist/components/Embed/EmbedPreview.stories.d.ts +0 -25
- package/dist/components/Embed/EmptyEmbed.css.d.ts +0 -1
- package/dist/components/Embed/EmptyEmbed.d.ts +0 -5
- package/dist/components/Embed/EmptyEmbed.stories.d.ts +0 -10
- package/dist/components/Embed/Icon.d.ts +0 -5
- package/dist/components/Embed/index.d.ts +0 -2
- package/dist/components/FieldSet/FieldSet.css.d.ts +0 -6
- package/dist/components/FieldSet/FieldSet.utils.d.ts +0 -4
- package/dist/components/FileUpload/FileUpload.stories.d.ts +0 -31
- package/dist/components/FileUpload/UploadProgress/UploadProgress.css.d.ts +0 -8
- package/dist/components/FileUpload/UploadProgress/UploadProgress.d.ts +0 -7
- package/dist/components/FileUpload/UploadProgress/UploadProgress.utils.d.ts +0 -1
- package/dist/components/FileUploadButton/index.d.ts +0 -1
- package/dist/components/FilterField/FilterField.css.d.ts +0 -12
- package/dist/components/HairlineButton/HairlineButton.css.d.ts +0 -17
- package/dist/components/Icon/Icon.css.d.ts +0 -7
- package/dist/components/IconButton/IconButton.css.d.ts +0 -30
- package/dist/components/InvisibleButton/InvisibleButton.css.d.ts +0 -13
- package/dist/components/InvisibleButton/InvisibleButton.d.ts +0 -15
- package/dist/components/InvisibleButton/InvisibleButton.stories.d.ts +0 -12
- package/dist/components/InvisibleButton/index.d.ts +0 -1
- package/dist/components/LinkDescriptionCard/LinkDescriptionCard.css.d.ts +0 -2
- package/dist/components/Masonry/Masonry.css.d.ts +0 -2
- package/dist/components/Masonry/Masonry.d.ts +0 -12
- package/dist/components/Masonry/Masonry.stories.d.ts +0 -11
- package/dist/components/Masonry/MasonryFile.css.d.ts +0 -2
- package/dist/components/Masonry/MasonryFile.d.ts +0 -7
- package/dist/components/Masonry/MasonryMedia.css.d.ts +0 -1
- package/dist/components/Masonry/MasonryMedia.d.ts +0 -6
- package/dist/components/Masonry/MasonrySkeleton.d.ts +0 -2
- package/dist/components/Masonry/index.d.ts +0 -4
- package/dist/components/ProgressCircle/ProgressCircle.css.d.ts +0 -2
- package/dist/components/ScrollArea/ScrollArea.css.d.ts +0 -6
- package/dist/components/SelectButton/SelectButton.css.d.ts +0 -2
- package/dist/components/SelectCard/SelectCard.css.d.ts +0 -1
- package/dist/components/Slice/SliceCard.css.d.ts +0 -10
- package/dist/components/Slice/SliceSelectCard.css.d.ts +0 -7
- package/dist/components/Suspense/AnimatedSuspense.css.d.ts +0 -1
- package/dist/components/TagField/TagField.css.d.ts +0 -18
- package/dist/components/TagField/TagFieldHeader.css.d.ts +0 -6
- package/dist/components/TextLink/TextLink.css.d.ts +0 -8
- package/dist/components/TextLink/TextLink.d.ts +0 -12
- package/dist/components/TextLink/TextLink.stories.d.ts +0 -9
- package/dist/components/TextLink/index.d.ts +0 -1
- package/dist/components/Toolbar/Toolbar.css.d.ts +0 -1
- package/dist/theme/mediaQueries.d.ts +0 -5
- package/dist/theme/util.d.ts +0 -15
- /package/dist/components/{FileUploadButton → FileUpload}/FileUploadButton.d.ts +0 -0
- /package/dist/components/SelectCard/{SelectButton.stories.d.ts → SelectCard.stories.d.ts} +0 -0
package/dist/theme/vars.css.d.ts
CHANGED
|
@@ -64,10 +64,12 @@ export declare const tokens: {
|
|
|
64
64
|
readonly greyLight12: "hsl(261, 25%, 11%)";
|
|
65
65
|
readonly inherit: "inherit";
|
|
66
66
|
readonly indigoLight2: "hsl(223, 100%, 99%)";
|
|
67
|
+
readonly indigoLight4: "hsl(223, 92%, 95%)";
|
|
67
68
|
readonly indigoLight7: "hsl(225, 78%, 82%)";
|
|
68
69
|
readonly indigoLight10: "hsl(226, 59%, 51%)";
|
|
69
70
|
readonly indigoLight11: "hsl(226, 55%, 45%)";
|
|
70
71
|
readonly indigoDark2: "hsl(230, 36%, 13%)";
|
|
72
|
+
readonly indigoDark4: "hsl(227, 48%, 21%)";
|
|
71
73
|
readonly indigoDark7: "hsl(226, 56%, 35%)";
|
|
72
74
|
readonly indigoDark10: "hsl(227, 76%, 62%)";
|
|
73
75
|
readonly indigoDark11: "hsl(228, 100%, 76%)";
|
|
@@ -135,6 +137,7 @@ export declare const tokens: {
|
|
|
135
137
|
readonly purpleLight12: "hsl(254, 60%, 18%)";
|
|
136
138
|
readonly greyAlpha1: "hsla(0, 0%, 0%, 0.3)";
|
|
137
139
|
readonly transparent: "transparent";
|
|
140
|
+
readonly white: "white";
|
|
138
141
|
};
|
|
139
142
|
readonly cursor: {
|
|
140
143
|
readonly default: "default";
|
|
@@ -304,10 +307,12 @@ export declare const themeClass: string, vars: {
|
|
|
304
307
|
readonly greyLight12: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
305
308
|
readonly inherit: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
306
309
|
readonly indigoLight2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
310
|
+
readonly indigoLight4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
307
311
|
readonly indigoLight7: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
308
312
|
readonly indigoLight10: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
309
313
|
readonly indigoLight11: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
310
314
|
readonly indigoDark2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
315
|
+
readonly indigoDark4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
311
316
|
readonly indigoDark7: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
312
317
|
readonly indigoDark10: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
313
318
|
readonly indigoDark11: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -375,6 +380,7 @@ export declare const themeClass: string, vars: {
|
|
|
375
380
|
readonly purpleLight12: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
376
381
|
readonly greyAlpha1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
377
382
|
readonly transparent: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
383
|
+
readonly white: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
378
384
|
};
|
|
379
385
|
readonly cursor: {
|
|
380
386
|
readonly default: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@internationalized/date": "3.5.0",
|
|
4
|
-
"@prismicio/editor-support": "0.4.
|
|
4
|
+
"@prismicio/editor-support": "0.4.27",
|
|
5
5
|
"@radix-ui/react-avatar": "1.0.4",
|
|
6
6
|
"@radix-ui/react-checkbox": "1.0.4",
|
|
7
7
|
"@radix-ui/react-dialog": "1.0.5",
|
|
8
8
|
"@radix-ui/react-dismissable-layer": "1.0.5",
|
|
9
9
|
"@radix-ui/react-dropdown-menu": "2.0.6",
|
|
10
|
+
"@radix-ui/react-focus-scope": "1.0.4",
|
|
10
11
|
"@radix-ui/react-label": "2.0.0",
|
|
11
12
|
"@radix-ui/react-popover": "1.0.7",
|
|
12
13
|
"@radix-ui/react-portal": "1.0.4",
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
"@radix-ui/react-separator": "1.0.1",
|
|
17
18
|
"@radix-ui/react-slider": "1.1.0",
|
|
18
19
|
"@radix-ui/react-switch": "1.0.1",
|
|
20
|
+
"@radix-ui/react-tabs": "1.0.4",
|
|
19
21
|
"@radix-ui/react-toggle": "1.0.1",
|
|
20
22
|
"@radix-ui/react-toggle-group": "1.0.1",
|
|
21
23
|
"@radix-ui/react-toolbar": "1.0.1",
|
|
@@ -24,12 +26,21 @@
|
|
|
24
26
|
"@react-aria/calendar": "3.5.1",
|
|
25
27
|
"@react-aria/color": "3.0.0-beta.20",
|
|
26
28
|
"@react-aria/datepicker": "3.8.0",
|
|
27
|
-
"@react-aria/dnd": "3.3.0",
|
|
28
29
|
"@react-aria/focus": "3.12.0",
|
|
29
30
|
"@react-aria/i18n": "3.7.0",
|
|
30
31
|
"@react-stately/calendar": "3.4.1",
|
|
31
32
|
"@react-stately/color": "3.3.1",
|
|
32
33
|
"@react-stately/datepicker": "3.8.0",
|
|
34
|
+
"@tiptap/core": "2.3.0",
|
|
35
|
+
"@tiptap/extension-document": "2.3.0",
|
|
36
|
+
"@tiptap/extension-hard-break": "2.3.0",
|
|
37
|
+
"@tiptap/extension-history": "2.3.0",
|
|
38
|
+
"@tiptap/extension-italic": "2.3.0",
|
|
39
|
+
"@tiptap/extension-paragraph": "2.3.0",
|
|
40
|
+
"@tiptap/extension-placeholder": "2.3.0",
|
|
41
|
+
"@tiptap/extension-text": "2.3.0",
|
|
42
|
+
"@tiptap/pm": "2.3.0",
|
|
43
|
+
"@tiptap/react": "2.3.0",
|
|
33
44
|
"@vanilla-extract/css": "1.14.1",
|
|
34
45
|
"@vanilla-extract/css-utils": "0.1.2",
|
|
35
46
|
"@vanilla-extract/sprinkles": "1.5.0",
|
|
@@ -37,7 +48,8 @@
|
|
|
37
48
|
"csstype": "3.1.2",
|
|
38
49
|
"react-easy-crop": "4.6.1",
|
|
39
50
|
"react-remove-scroll": "2.5.6",
|
|
40
|
-
"tslib": "2.4.0"
|
|
51
|
+
"tslib": "2.4.0",
|
|
52
|
+
"uuid": "9.0.1"
|
|
41
53
|
},
|
|
42
54
|
"devDependencies": {
|
|
43
55
|
"@babel/core": "",
|
|
@@ -53,8 +65,10 @@
|
|
|
53
65
|
"@storybook/preview-web": "",
|
|
54
66
|
"@storybook/react": "7.4.2",
|
|
55
67
|
"@storybook/react-vite": "7.4.2",
|
|
68
|
+
"@testing-library/react": "14.2.1",
|
|
56
69
|
"@types/react": "18.0.18",
|
|
57
70
|
"@types/react-dom": "18.2.7",
|
|
71
|
+
"@types/uuid": "9.0.8",
|
|
58
72
|
"@vanilla-extract/vite-plugin": "4.0.4",
|
|
59
73
|
"@vitejs/plugin-react": "4.0.3",
|
|
60
74
|
"eslint": "8.50.0",
|
|
@@ -64,13 +78,13 @@
|
|
|
64
78
|
"eslint-plugin-react": "7.31.7",
|
|
65
79
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
66
80
|
"eslint-plugin-storybook": "0.6.13",
|
|
67
|
-
"happy-dom": "6.
|
|
81
|
+
"happy-dom": "13.6.2",
|
|
68
82
|
"react": "18.2.0",
|
|
69
83
|
"react-dom": "18.2.0",
|
|
70
84
|
"storybook": "7.4.2",
|
|
71
85
|
"typescript": "5.2.2",
|
|
72
|
-
"vite": "
|
|
73
|
-
"vitest": "
|
|
86
|
+
"vite": "5.1.5",
|
|
87
|
+
"vitest": "1.3.1"
|
|
74
88
|
},
|
|
75
89
|
"exports": {
|
|
76
90
|
"./src/index.ts": "./src/index.ts",
|
|
@@ -107,5 +121,5 @@
|
|
|
107
121
|
"sideEffects": false,
|
|
108
122
|
"stableVersion": "0.0.0",
|
|
109
123
|
"types": "./dist/index.d.ts",
|
|
110
|
-
"version": "0.4.
|
|
124
|
+
"version": "0.4.27"
|
|
111
125
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const root: string;
|
|
2
|
-
export declare const variant: {
|
|
3
|
-
dashed: string;
|
|
4
|
-
elevated: string;
|
|
5
|
-
outlined: string;
|
|
6
|
-
selected: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const color: {
|
|
9
|
-
grey1: string;
|
|
10
|
-
grey2: string;
|
|
11
|
-
grey3: string;
|
|
12
|
-
indigo2: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const header: string;
|
|
15
|
-
export declare const headerTitle: string;
|
|
16
|
-
export declare const headerActions: string;
|
|
17
|
-
export declare const content: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const checkerboard: string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type IconName } from "../Icon";
|
|
2
|
-
import * as styles from "./CircledIconStyles.css";
|
|
3
|
-
export interface CircledIconProps {
|
|
4
|
-
iconName: IconName;
|
|
5
|
-
color?: keyof typeof styles.iconColor;
|
|
6
|
-
size?: keyof typeof styles.size;
|
|
7
|
-
hasBorder?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function CircledIcon(props: CircledIconProps): JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./CircledIcon").CircledIconProps>;
|
|
2
|
-
export default _default;
|
|
3
|
-
export declare const Default: {
|
|
4
|
-
args: {
|
|
5
|
-
iconName: string;
|
|
6
|
-
color: string;
|
|
7
|
-
size: string;
|
|
8
|
-
hasBorder: boolean;
|
|
9
|
-
};
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const iconBorderContainer: string;
|
|
2
|
-
export declare const borderStyle: string;
|
|
3
|
-
export declare const size: {
|
|
4
|
-
medium: string;
|
|
5
|
-
extraSmall: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const iconColor: {
|
|
8
|
-
grey: string;
|
|
9
|
-
tomato: string;
|
|
10
|
-
purple: string;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CircledIcon } from "./CircledIcon";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const root: string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const root: string;
|
|
2
|
-
export declare const flexSpace: string;
|
|
3
|
-
export declare const segment: string;
|
|
4
|
-
export declare const segmentColor: string;
|
|
5
|
-
export declare const segmentDisabledColor: string;
|
|
6
|
-
export declare const segmentInlinePadding: string;
|
|
7
|
-
export declare const segmentLiteralInlinePadding: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const container: string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const root: {
|
|
2
|
-
normal: string;
|
|
3
|
-
loading: string;
|
|
4
|
-
};
|
|
5
|
-
export declare const badge: string;
|
|
6
|
-
export declare const body: string;
|
|
7
|
-
export declare const bodyText: string;
|
|
8
|
-
export declare const titleLoadingSkeleton: string;
|
|
9
|
-
export declare const docStatus: string;
|
|
10
|
-
export declare const footer: string;
|
|
11
|
-
export declare const previewImage: string;
|
|
12
|
-
export declare const tags: string;
|
|
13
|
-
export declare const tag: string;
|
|
14
|
-
export declare const descriptionLoadingSkeleton: string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FilterOption } from "../FilterField";
|
|
2
|
-
export interface DocumentCardProps {
|
|
3
|
-
documentType: string;
|
|
4
|
-
documentURL: string;
|
|
5
|
-
title: string;
|
|
6
|
-
statusColor: "grey" | "green" | "amber" | "purple";
|
|
7
|
-
previewImageUrl?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
tags: string[];
|
|
11
|
-
tagsFilter?: Set<FilterOption>;
|
|
12
|
-
onSelect: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function DocumentCard(props: DocumentCardProps): JSX.Element;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { DocumentCard } from "./DocumentCard";
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: typeof DocumentCard;
|
|
5
|
-
argTypes: {
|
|
6
|
-
statusColor: {
|
|
7
|
-
control: {
|
|
8
|
-
type: string;
|
|
9
|
-
};
|
|
10
|
-
options: string[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default meta;
|
|
15
|
-
export declare const Default: {
|
|
16
|
-
render: (args: {
|
|
17
|
-
documentType: string;
|
|
18
|
-
documentURL: string;
|
|
19
|
-
title: string;
|
|
20
|
-
statusColor: "green" | "grey" | "purple" | "amber";
|
|
21
|
-
previewImageUrl?: string | undefined;
|
|
22
|
-
description?: string | undefined;
|
|
23
|
-
loading?: boolean | undefined;
|
|
24
|
-
tags: string[];
|
|
25
|
-
tagsFilter?: Set<import("../FilterField").FilterOption> | undefined;
|
|
26
|
-
onSelect: () => void;
|
|
27
|
-
}) => JSX.Element;
|
|
28
|
-
args: {
|
|
29
|
-
documentType: string;
|
|
30
|
-
documentURL: string;
|
|
31
|
-
title: string;
|
|
32
|
-
description: string;
|
|
33
|
-
tags: string[];
|
|
34
|
-
previewImageUrl: string;
|
|
35
|
-
onSelect: () => undefined;
|
|
36
|
-
loading: false;
|
|
37
|
-
statusColor: "green";
|
|
38
|
-
};
|
|
39
|
-
name: string;
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DocumentCard } from "./DocumentCard";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
url: string;
|
|
3
|
-
thumbnail: {
|
|
4
|
-
url: string;
|
|
5
|
-
aspectRatio: "1:1" | "16:9";
|
|
6
|
-
};
|
|
7
|
-
provider: string;
|
|
8
|
-
author?: string;
|
|
9
|
-
subtitle: string;
|
|
10
|
-
selected?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const EmbedPreview: ({ url, thumbnail, provider, author, subtitle, selected }: Props) => JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
2
|
-
url: string;
|
|
3
|
-
thumbnail: {
|
|
4
|
-
url: string;
|
|
5
|
-
aspectRatio: "1:1" | "16:9";
|
|
6
|
-
};
|
|
7
|
-
provider: string;
|
|
8
|
-
author?: string | undefined;
|
|
9
|
-
subtitle: string;
|
|
10
|
-
selected?: boolean | undefined;
|
|
11
|
-
}>;
|
|
12
|
-
export default _default;
|
|
13
|
-
export declare const Default: {
|
|
14
|
-
args: {
|
|
15
|
-
url: string;
|
|
16
|
-
thumbnail: {
|
|
17
|
-
url: string;
|
|
18
|
-
aspectRatio: string;
|
|
19
|
-
};
|
|
20
|
-
provider: string;
|
|
21
|
-
author: string;
|
|
22
|
-
subtitle: string;
|
|
23
|
-
};
|
|
24
|
-
name: string;
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const root: string;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
2
|
-
title: string;
|
|
3
|
-
}>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Default: {
|
|
6
|
-
args: {
|
|
7
|
-
title: string;
|
|
8
|
-
};
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FileUploadButton } from "../FileUploadButton";
|
|
2
|
-
import { FileDropZone } from "./FileDropZone/FileDropZone";
|
|
3
|
-
import { UploadProgress } from "./UploadProgress/UploadProgress";
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
subcomponents: {
|
|
7
|
-
FileDropZone: typeof FileDropZone;
|
|
8
|
-
FileUploadButton: typeof FileUploadButton;
|
|
9
|
-
UploadProgress: typeof UploadProgress;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
13
|
-
export declare const UploadProgressStory: {
|
|
14
|
-
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./UploadProgress/UploadProgress").UploadProgressProps>;
|
|
15
|
-
args: {
|
|
16
|
-
status: string;
|
|
17
|
-
};
|
|
18
|
-
name: string;
|
|
19
|
-
argTypes: {
|
|
20
|
-
status: {
|
|
21
|
-
control: {
|
|
22
|
-
type: string;
|
|
23
|
-
};
|
|
24
|
-
options: string[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export declare const Default: {
|
|
29
|
-
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./FileDropZone/FileDropZone").FileDropZoneProps>;
|
|
30
|
-
name: string;
|
|
31
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getFileInfo(file: File): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FileUploadButton } from "./FileUploadButton";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const root: string;
|
|
2
|
-
export declare const shadow: {
|
|
3
|
-
open: string;
|
|
4
|
-
closed: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const inputContainer: string;
|
|
7
|
-
export declare const labelContainer: string;
|
|
8
|
-
export declare const tagsContainer: string;
|
|
9
|
-
export declare const input: string;
|
|
10
|
-
export declare const footerWrapper: string;
|
|
11
|
-
export declare const footer: string;
|
|
12
|
-
export declare const optionsContainer: string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const root: string;
|
|
2
|
-
export declare const rootMode: {
|
|
3
|
-
normal: string;
|
|
4
|
-
drop: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const lineMode: {
|
|
7
|
-
normal: string;
|
|
8
|
-
drop: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const firstLine: string;
|
|
11
|
-
export declare const secondLine: string;
|
|
12
|
-
export declare const icon: string;
|
|
13
|
-
export declare const iconMode: {
|
|
14
|
-
normal: string;
|
|
15
|
-
drop: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const iconChildren: string;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare const root: string;
|
|
2
|
-
export declare const cursor: {
|
|
3
|
-
default: string;
|
|
4
|
-
pointer: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const noPaddingSize: {
|
|
7
|
-
small: string;
|
|
8
|
-
medium: string;
|
|
9
|
-
large: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const radius: {
|
|
12
|
-
medium: string;
|
|
13
|
-
full: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const size: {
|
|
16
|
-
small: string;
|
|
17
|
-
medium: string;
|
|
18
|
-
large: string;
|
|
19
|
-
};
|
|
20
|
-
export declare const variant: {
|
|
21
|
-
ghost: string;
|
|
22
|
-
solid: string;
|
|
23
|
-
};
|
|
24
|
-
export declare const color: {
|
|
25
|
-
grey: string;
|
|
26
|
-
green: string;
|
|
27
|
-
amber: string;
|
|
28
|
-
purple: string;
|
|
29
|
-
tomato: string;
|
|
30
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const root: string;
|
|
2
|
-
export declare const color: {
|
|
3
|
-
grey: string;
|
|
4
|
-
tomato: string;
|
|
5
|
-
amber: string;
|
|
6
|
-
green: string;
|
|
7
|
-
purple: string;
|
|
8
|
-
black: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const dim: string;
|
|
11
|
-
export declare const hidden: string;
|
|
12
|
-
export declare const progressCircle: string;
|
|
13
|
-
export declare const inline: string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type MouseEvent } from "react";
|
|
2
|
-
import { type IconName } from "../Icon";
|
|
3
|
-
import { textVariantMapping } from "../Text";
|
|
4
|
-
import * as styles from "./InvisibleButton.css";
|
|
5
|
-
export interface InvisibleButtonProps {
|
|
6
|
-
buttonText: string;
|
|
7
|
-
color?: keyof typeof styles.color;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
endIcon?: IconName;
|
|
10
|
-
onClick?: (event: MouseEvent) => void;
|
|
11
|
-
startIcon?: IconName;
|
|
12
|
-
textVariant?: keyof typeof textVariantMapping;
|
|
13
|
-
inline?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const InvisibleButton: import("react").ForwardRefExoticComponent<InvisibleButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./InvisibleButton").InvisibleButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
2
|
-
export default _default;
|
|
3
|
-
export declare const Default: {
|
|
4
|
-
args: {
|
|
5
|
-
buttonText: string;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
color: string;
|
|
8
|
-
startIcon: string;
|
|
9
|
-
endIcon: string;
|
|
10
|
-
};
|
|
11
|
-
name: string;
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InvisibleButton } from "./InvisibleButton";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type CSSProperties, type Key, type ReactElement, type ReactNode } from "react";
|
|
2
|
-
export interface ItemInfo {
|
|
3
|
-
key: Key;
|
|
4
|
-
aspectRatio: number;
|
|
5
|
-
}
|
|
6
|
-
export interface MasonryProps<ITEM> {
|
|
7
|
-
items: readonly ITEM[];
|
|
8
|
-
getItemInfo: (item: ITEM) => ItemInfo;
|
|
9
|
-
children?: (item: ITEM) => ReactNode;
|
|
10
|
-
style?: CSSProperties;
|
|
11
|
-
}
|
|
12
|
-
export declare function Masonry<ITEM>(props: MasonryProps<ITEM>): ReactElement;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./Masonry").MasonryProps<unknown>>;
|
|
2
|
-
export default _default;
|
|
3
|
-
export declare const Default: {
|
|
4
|
-
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Masonry").MasonryProps<unknown>>;
|
|
5
|
-
args: {};
|
|
6
|
-
name: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const Skeleton: {
|
|
9
|
-
render: () => JSX.Element;
|
|
10
|
-
args: {};
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const root: string;
|