@bynder/compact-view 3.4.0 → 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 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,12 +29,13 @@ 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;
36
36
  height?: number;
37
37
  fileSize?: number;
38
+ isFakeOriginal?: boolean;
38
39
  }
39
40
  interface Derivatives {
40
41
  thumbnail?: string;
@@ -71,7 +72,7 @@ interface Props {
71
72
  isOutlined: boolean;
72
73
  children?: React.ReactNode;
73
74
  }
74
- 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;
75
76
  interface Theme {
76
77
  colorPrimary?: string;
77
78
  colorButtonPrimary?: string;
@@ -102,14 +103,14 @@ interface Props$0 {
102
103
  theme?: Theme;
103
104
  children?: React.ReactNode;
104
105
  }
105
- 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;
106
107
  interface Props$1 {
107
108
  className?: string;
108
109
  onClick?: () => void;
109
110
  children: React.ReactNode;
110
111
  ["data-testid"]?: string;
111
112
  }
112
- declare function Chip(props: Props$1): JSX.Element;
113
+ declare function Chip(props: Props$1): React.JSX.Element;
113
114
  interface Props$2 {
114
115
  className?: string;
115
116
  fadeIn?: boolean;
@@ -121,14 +122,14 @@ interface Props$2 {
121
122
  disabled?: boolean;
122
123
  children: (toggle: () => void) => React.ReactNode;
123
124
  }
124
- 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;
125
126
  interface ListItemProps {
126
127
  className?: string;
127
128
  onClick?: () => void;
128
129
  selected?: boolean;
129
130
  children: React.ReactNode;
130
131
  }
131
- declare function DropdownListItem({ selected, ...props }: ListItemProps): JSX.Element;
132
+ declare function DropdownListItem({ selected, ...props }: ListItemProps): React.JSX.Element;
132
133
  interface SmartfilterType {
133
134
  __typename: "Smartfilter";
134
135
  id: string;
@@ -144,37 +145,37 @@ interface SmartfilterProps {
144
145
  onAddOption: (metapropertyOption: MetapropertyOptionType) => void;
145
146
  onRemoveOption: (metapropertyOption: MetapropertyOptionType) => void;
146
147
  }
147
- declare function SmartFilterContent(props: SmartfilterProps): JSX.Element;
148
+ declare function SmartFilterContent(props: SmartfilterProps): React.JSX.Element;
148
149
  interface Props$3 {
149
150
  static?: React.ReactNode;
150
151
  className: string;
151
152
  children: React.ReactNode;
152
153
  }
153
- declare function HorizontalScroll(props: Props$3): JSX.Element;
154
+ declare function HorizontalScroll(props: Props$3): React.JSX.Element;
154
155
  interface Props$4 {
155
156
  isLoading: boolean;
156
157
  hasNextPage: boolean;
157
158
  loadMore: () => void;
158
159
  children: React.ReactNode;
159
160
  }
160
- declare function InfiniteScroll(props: Props$4): JSX.Element;
161
+ declare function InfiniteScroll(props: Props$4): React.JSX.Element;
161
162
  interface Props$5 {
162
163
  children: React.ReactNode;
163
164
  isOpen?: boolean;
164
165
  style?: React.CSSProperties;
165
166
  onClose?: () => void;
166
167
  }
167
- 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;
168
169
  interface Props$6 {
169
170
  onReset: () => void;
170
171
  }
171
- declare function NoResults(props: Props$6): JSX.Element;
172
+ declare function NoResults(props: Props$6): React.JSX.Element;
172
173
  interface Props$7 {
173
174
  error: Error;
174
175
  onRetry: () => void;
175
176
  sentryClient?: BrowserClient;
176
177
  }
177
- declare function Oops({ error, onRetry, sentryClient }: Props$7): JSX.Element;
178
+ declare function Oops({ error, onRetry, sentryClient }: Props$7): React.JSX.Element;
178
179
  interface ShadowRootProps {
179
180
  children: React.ReactNode;
180
181
  isContainerMode?: boolean;
@@ -185,15 +186,15 @@ interface ShadowRootProps {
185
186
  * which component will be first in the tree, especially when the components are used
186
187
  * externally from the npm package.
187
188
  */
188
- declare function ShadowRoot({ children, isContainerMode }: ShadowRootProps): JSX.Element;
189
+ declare function ShadowRoot({ children, isContainerMode }: ShadowRootProps): React.JSX.Element;
189
190
  interface Props$8 {
190
191
  width?: number;
191
192
  className?: string;
192
193
  }
193
- declare function Skeleton({ width, className }: Props$8): JSX.Element;
194
+ declare function Skeleton({ width, className }: Props$8): React.JSX.Element;
194
195
  interface Props$9 {
195
196
  className?: string;
196
197
  }
197
- declare function Spinner(props: Props$9): JSX.Element;
198
+ declare function Spinner(props: Props$9): React.JSX.Element;
198
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 };
199
200
  export { Button, Card, Checkbox } from '@bynder/design-system';