@bynder/compact-view 3.4.1 → 4.0.0
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/components.d.ts +16 -16
- package/components.js +29 -88
- package/index.d.ts +3 -3
- package/index.js +29 -88
- package/package.json +1 -1
package/components.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface MetapropertyOptionProps {
|
|
|
13
13
|
onAddOption: () => void;
|
|
14
14
|
onRemoveOption: () => void;
|
|
15
15
|
}
|
|
16
|
-
declare function MetapropertyOptionComponent(props: MetapropertyOptionProps): JSX.Element;
|
|
16
|
+
declare function MetapropertyOptionComponent(props: MetapropertyOptionProps): React.JSX.Element;
|
|
17
17
|
interface MetapropertyType {
|
|
18
18
|
__typename: "Metaproperty";
|
|
19
19
|
id: string;
|
|
@@ -29,7 +29,7 @@ interface MetapropertyProps {
|
|
|
29
29
|
onAddOption: (metapropertyOption: MetapropertyOptionType) => void;
|
|
30
30
|
onRemoveOption: (metapropertyOption: MetapropertyOptionType) => void;
|
|
31
31
|
}
|
|
32
|
-
declare function MetaPropertyFilterContent(props: MetapropertyProps): JSX.Element;
|
|
32
|
+
declare function MetaPropertyFilterContent(props: MetapropertyProps): React.JSX.Element;
|
|
33
33
|
interface File {
|
|
34
34
|
url: string;
|
|
35
35
|
width?: number;
|
|
@@ -72,7 +72,7 @@ interface Props {
|
|
|
72
72
|
isOutlined: boolean;
|
|
73
73
|
children?: React.ReactNode;
|
|
74
74
|
}
|
|
75
|
-
declare function AssetCard({ className, fadeIn, asset, isSelected, isOutlined, onClick, children }: Props): JSX.Element;
|
|
75
|
+
declare function AssetCard({ className, fadeIn, asset, isSelected, isOutlined, onClick, children }: Props): React.JSX.Element;
|
|
76
76
|
interface Theme {
|
|
77
77
|
colorPrimary?: string;
|
|
78
78
|
colorButtonPrimary?: string;
|
|
@@ -103,14 +103,14 @@ interface Props$0 {
|
|
|
103
103
|
theme?: Theme;
|
|
104
104
|
children?: React.ReactNode;
|
|
105
105
|
}
|
|
106
|
-
declare function AssetList({ assets, count, hasNextPage, isLoading, loadMore, onSelect, onToggle, emptyStateElement, selectedAssetIds, selectionMode, theme, children }: Props$0): JSX.Element;
|
|
106
|
+
declare function AssetList({ assets, count, hasNextPage, isLoading, loadMore, onSelect, onToggle, emptyStateElement, selectedAssetIds, selectionMode, theme, children }: Props$0): React.JSX.Element;
|
|
107
107
|
interface Props$1 {
|
|
108
108
|
className?: string;
|
|
109
109
|
onClick?: () => void;
|
|
110
110
|
children: React.ReactNode;
|
|
111
111
|
["data-testid"]?: string;
|
|
112
112
|
}
|
|
113
|
-
declare function Chip(props: Props$1): JSX.Element;
|
|
113
|
+
declare function Chip(props: Props$1): React.JSX.Element;
|
|
114
114
|
interface Props$2 {
|
|
115
115
|
className?: string;
|
|
116
116
|
fadeIn?: boolean;
|
|
@@ -122,14 +122,14 @@ interface Props$2 {
|
|
|
122
122
|
disabled?: boolean;
|
|
123
123
|
children: (toggle: () => void) => React.ReactNode;
|
|
124
124
|
}
|
|
125
|
-
declare function Dropdown({ buttonKind, direction, isSmall, fadeIn, ...props }: Props$2): JSX.Element;
|
|
125
|
+
declare function Dropdown({ buttonKind, direction, isSmall, fadeIn, ...props }: Props$2): React.JSX.Element;
|
|
126
126
|
interface ListItemProps {
|
|
127
127
|
className?: string;
|
|
128
128
|
onClick?: () => void;
|
|
129
129
|
selected?: boolean;
|
|
130
130
|
children: React.ReactNode;
|
|
131
131
|
}
|
|
132
|
-
declare function DropdownListItem({ selected, ...props }: ListItemProps): JSX.Element;
|
|
132
|
+
declare function DropdownListItem({ selected, ...props }: ListItemProps): React.JSX.Element;
|
|
133
133
|
interface SmartfilterType {
|
|
134
134
|
__typename: "Smartfilter";
|
|
135
135
|
id: string;
|
|
@@ -145,37 +145,37 @@ interface SmartfilterProps {
|
|
|
145
145
|
onAddOption: (metapropertyOption: MetapropertyOptionType) => void;
|
|
146
146
|
onRemoveOption: (metapropertyOption: MetapropertyOptionType) => void;
|
|
147
147
|
}
|
|
148
|
-
declare function SmartFilterContent(props: SmartfilterProps): JSX.Element;
|
|
148
|
+
declare function SmartFilterContent(props: SmartfilterProps): React.JSX.Element;
|
|
149
149
|
interface Props$3 {
|
|
150
150
|
static?: React.ReactNode;
|
|
151
151
|
className: string;
|
|
152
152
|
children: React.ReactNode;
|
|
153
153
|
}
|
|
154
|
-
declare function HorizontalScroll(props: Props$3): JSX.Element;
|
|
154
|
+
declare function HorizontalScroll(props: Props$3): React.JSX.Element;
|
|
155
155
|
interface Props$4 {
|
|
156
156
|
isLoading: boolean;
|
|
157
157
|
hasNextPage: boolean;
|
|
158
158
|
loadMore: () => void;
|
|
159
159
|
children: React.ReactNode;
|
|
160
160
|
}
|
|
161
|
-
declare function InfiniteScroll(props: Props$4): JSX.Element;
|
|
161
|
+
declare function InfiniteScroll(props: Props$4): React.JSX.Element;
|
|
162
162
|
interface Props$5 {
|
|
163
163
|
children: React.ReactNode;
|
|
164
164
|
isOpen?: boolean;
|
|
165
165
|
style?: React.CSSProperties;
|
|
166
166
|
onClose?: () => void;
|
|
167
167
|
}
|
|
168
|
-
declare function Modal({ children, isOpen, style, onClose }: Props$5): JSX.Element | null;
|
|
168
|
+
declare function Modal({ children, isOpen, style, onClose }: Props$5): React.JSX.Element | null;
|
|
169
169
|
interface Props$6 {
|
|
170
170
|
onReset: () => void;
|
|
171
171
|
}
|
|
172
|
-
declare function NoResults(props: Props$6): JSX.Element;
|
|
172
|
+
declare function NoResults(props: Props$6): React.JSX.Element;
|
|
173
173
|
interface Props$7 {
|
|
174
174
|
error: Error;
|
|
175
175
|
onRetry: () => void;
|
|
176
176
|
sentryClient?: BrowserClient;
|
|
177
177
|
}
|
|
178
|
-
declare function Oops({ error, onRetry, sentryClient }: Props$7): JSX.Element;
|
|
178
|
+
declare function Oops({ error, onRetry, sentryClient }: Props$7): React.JSX.Element;
|
|
179
179
|
interface ShadowRootProps {
|
|
180
180
|
children: React.ReactNode;
|
|
181
181
|
isContainerMode?: boolean;
|
|
@@ -186,15 +186,15 @@ interface ShadowRootProps {
|
|
|
186
186
|
* which component will be first in the tree, especially when the components are used
|
|
187
187
|
* externally from the npm package.
|
|
188
188
|
*/
|
|
189
|
-
declare function ShadowRoot({ children, isContainerMode }: ShadowRootProps): JSX.Element;
|
|
189
|
+
declare function ShadowRoot({ children, isContainerMode }: ShadowRootProps): React.JSX.Element;
|
|
190
190
|
interface Props$8 {
|
|
191
191
|
width?: number;
|
|
192
192
|
className?: string;
|
|
193
193
|
}
|
|
194
|
-
declare function Skeleton({ width, className }: Props$8): JSX.Element;
|
|
194
|
+
declare function Skeleton({ width, className }: Props$8): React.JSX.Element;
|
|
195
195
|
interface Props$9 {
|
|
196
196
|
className?: string;
|
|
197
197
|
}
|
|
198
|
-
declare function Spinner(props: Props$9): JSX.Element;
|
|
198
|
+
declare function Spinner(props: Props$9): React.JSX.Element;
|
|
199
199
|
export { AssetCard as Asset, Asset as displayAsset, AssetList, Chip, Dropdown, DropdownListItem, MetaPropertyFilterContent as Metaproperty, MetapropertyType as metaproperty, MetapropertyOptionComponent as MetapropertyOption, MetapropertyOptionType as metapropertyOption, SmartFilterContent as Smartfilter, SmartfilterType as smartfilter, HorizontalScroll, InfiniteScroll, Modal, NoResults, Oops, ShadowRoot, Skeleton, Spinner };
|
|
200
200
|
export { Button, Card, Checkbox } from '@bynder/design-system';
|