@bynder/compact-view 2.6.0 → 3.1.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
@@ -40,6 +40,7 @@ interface Asset {
40
40
  url: string;
41
41
  isArchived: boolean;
42
42
  isWatermarked: boolean;
43
+ isLimitedUse: boolean;
43
44
  metaproperties?: {
44
45
  nodes: MetapropertyType[];
45
46
  };
@@ -54,7 +55,6 @@ interface Props {
54
55
  children?: React.ReactNode;
55
56
  }
56
57
  declare function AssetCard({ className, fadeIn, asset, isSelected, isOutlined, onClick, children }: Props): JSX.Element;
57
- type Kind = "Flat" | "Primary" | "Secondary" | "FlatSm" | "PrimarySm" | "SecondarySm";
58
58
  interface Theme {
59
59
  colorPrimary?: string;
60
60
  colorButtonPrimary?: string;
@@ -87,66 +87,24 @@ interface Props$0 {
87
87
  }
88
88
  declare function AssetList({ assets, count, hasNextPage, isLoading, loadMore, onSelect, onToggle, emptyStateElement, selectedAssetIds, selectionMode, theme, children }: Props$0): JSX.Element;
89
89
  interface Props$1 {
90
- className?: string;
91
- title?: string;
92
- isDisabled?: boolean;
93
- onClick?: React.MouseEventHandler;
94
- kind?: Kind;
95
- testId?: string;
96
- children: React.ReactNode;
97
- }
98
- declare const Button: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<HTMLButtonElement>>;
99
- interface CardProps {
100
- alt?: string;
101
- className?: string;
102
- fadeIn?: boolean;
103
- id?: string;
104
- style?: React.CSSProperties;
105
- stacked?: boolean;
106
- title: React.ReactNode;
107
- onClick?: (e: React.MouseEvent) => void;
108
- children?: React.ReactNode;
109
- ["aria-selected"]?: boolean;
110
- metaproperties?: MetapropertyType[];
111
- }
112
- declare function Card({ alt, className, fadeIn, id, style, stacked, title, onClick, children, metaproperties, ...props }: CardProps): JSX.Element;
113
- interface CardImagesProps {
114
- urls: string[];
115
- totalCount: number;
116
- alt: string;
117
- }
118
- declare function CardImages({ urls, totalCount, alt }: CardImagesProps): JSX.Element;
119
- interface ImageProps {
120
- url?: string;
121
- cover?: boolean;
122
- alt?: string;
123
- }
124
- declare function CardImage({ url, cover, alt }: ImageProps): JSX.Element;
125
- interface Props$2 {
126
- className?: string;
127
- onClick?: () => void;
128
- isChecked?: boolean;
129
- title?: string;
130
- }
131
- declare function Checkbox({ className, onClick, isChecked, title }: Props$2): JSX.Element;
132
- interface Props$3 {
133
90
  className?: string;
134
91
  onClick?: () => void;
135
92
  children: React.ReactNode;
136
93
  ["data-testid"]?: string;
137
94
  }
138
- declare function Chip(props: Props$3): JSX.Element;
139
- interface Props$4 {
95
+ declare function Chip(props: Props$1): JSX.Element;
96
+ interface Props$2 {
140
97
  className?: string;
141
- buttonClassName?: string;
142
- buttonKind?: Kind;
98
+ fadeIn?: boolean;
99
+ buttonKind?: "clean" | "secondary";
100
+ isSmall?: boolean;
143
101
  direction?: "Down" | "Up";
144
102
  title: React.ReactNode;
145
103
  alt?: string;
146
104
  disabled?: boolean;
147
105
  children: (toggle: () => void) => React.ReactNode;
148
106
  }
149
- declare function Dropdown({ buttonKind, direction, ...props }: Props$4): JSX.Element;
107
+ declare function Dropdown({ buttonKind, direction, isSmall, fadeIn, ...props }: Props$2): JSX.Element;
150
108
  interface ListItemProps {
151
109
  className?: string;
152
110
  onClick?: () => void;
@@ -170,43 +128,35 @@ interface SmartfilterProps {
170
128
  onRemoveOption: (metapropertyOption: MetapropertyOptionType) => void;
171
129
  }
172
130
  declare function SmartFilterContent(props: SmartfilterProps): JSX.Element;
173
- interface Props$5 {
131
+ interface Props$3 {
174
132
  static?: React.ReactNode;
175
133
  className: string;
176
134
  children: React.ReactNode;
177
135
  }
178
- declare function HorizontalScroll(props: Props$5): JSX.Element;
179
- interface Props$6 {
136
+ declare function HorizontalScroll(props: Props$3): JSX.Element;
137
+ interface Props$4 {
180
138
  isLoading: boolean;
181
139
  hasNextPage: boolean;
182
140
  loadMore: () => void;
183
141
  children: React.ReactNode;
184
142
  }
185
- declare function InfiniteScroll(props: Props$6): JSX.Element;
186
- interface Props$7 {
143
+ declare function InfiniteScroll(props: Props$4): JSX.Element;
144
+ interface Props$5 {
187
145
  children: React.ReactNode;
188
146
  isOpen?: boolean;
189
147
  style?: React.CSSProperties;
190
148
  onClose?: () => void;
191
149
  }
192
- declare function Modal({ children, isOpen, style, onClose }: Props$7): JSX.Element | null;
193
- interface Props$8 {
150
+ declare function Modal({ children, isOpen, style, onClose }: Props$5): JSX.Element | null;
151
+ interface Props$6 {
194
152
  onReset: () => void;
195
153
  }
196
- declare function NoResults(props: Props$8): JSX.Element;
197
- interface Props$9 {
154
+ declare function NoResults(props: Props$6): JSX.Element;
155
+ interface Props$7 {
198
156
  error: Error;
199
157
  onRetry: () => void;
200
158
  }
201
- declare function Oops({ error, onRetry }: Props$9): JSX.Element;
202
- interface Props$10 {
203
- className?: string;
204
- active?: boolean;
205
- onClick?: (e: React.MouseEvent) => void;
206
- title?: string;
207
- children: React.ReactNode;
208
- }
209
- declare function OverlayButton(props: Props$10): JSX.Element;
159
+ declare function Oops({ error, onRetry }: Props$7): JSX.Element;
210
160
  /**
211
161
  * This component will create a shadow root if it is the first ShadowRoot in the tree.
212
162
  * Otherwise it will just render it's childred. This is useful as we don't always know
@@ -216,13 +166,14 @@ declare function OverlayButton(props: Props$10): JSX.Element;
216
166
  declare function ShadowRoot(props: {
217
167
  children: React.ReactNode;
218
168
  }): JSX.Element;
219
- interface Props$11 {
169
+ interface Props$8 {
220
170
  width?: number;
221
171
  className?: string;
222
172
  }
223
- declare function Skeleton({ width, className }: Props$11): JSX.Element;
224
- interface Props$12 {
173
+ declare function Skeleton({ width, className }: Props$8): JSX.Element;
174
+ interface Props$9 {
225
175
  className?: string;
226
176
  }
227
- declare function Spinner(props: Props$12): JSX.Element;
228
- export { AssetCard as Asset, Asset as displayAsset, AssetList, Button, Card, CardImages, CardImage, Checkbox, 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, OverlayButton, ShadowRoot, Skeleton, Spinner };
177
+ declare function Spinner(props: Props$9): JSX.Element;
178
+ 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 };
179
+ export { Button, Card, Checkbox } from '@bynder/design-system';