@bynder/compact-view 2.6.1 → 3.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 +22 -73
- package/components.js +47 -4
- package/index.d.ts +26 -0
- package/index.js +77 -4
- package/package.json +1 -1
package/components.d.ts
CHANGED
|
@@ -54,7 +54,6 @@ interface Props {
|
|
|
54
54
|
children?: React.ReactNode;
|
|
55
55
|
}
|
|
56
56
|
declare function AssetCard({ className, fadeIn, asset, isSelected, isOutlined, onClick, children }: Props): JSX.Element;
|
|
57
|
-
type Kind = "Flat" | "Primary" | "Secondary" | "FlatSm" | "PrimarySm" | "SecondarySm";
|
|
58
57
|
interface Theme {
|
|
59
58
|
colorPrimary?: string;
|
|
60
59
|
colorButtonPrimary?: string;
|
|
@@ -87,66 +86,24 @@ interface Props$0 {
|
|
|
87
86
|
}
|
|
88
87
|
declare function AssetList({ assets, count, hasNextPage, isLoading, loadMore, onSelect, onToggle, emptyStateElement, selectedAssetIds, selectionMode, theme, children }: Props$0): JSX.Element;
|
|
89
88
|
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
89
|
className?: string;
|
|
134
90
|
onClick?: () => void;
|
|
135
91
|
children: React.ReactNode;
|
|
136
92
|
["data-testid"]?: string;
|
|
137
93
|
}
|
|
138
|
-
declare function Chip(props: Props$
|
|
139
|
-
interface Props$
|
|
94
|
+
declare function Chip(props: Props$1): JSX.Element;
|
|
95
|
+
interface Props$2 {
|
|
140
96
|
className?: string;
|
|
141
|
-
|
|
142
|
-
buttonKind?:
|
|
97
|
+
fadeIn?: boolean;
|
|
98
|
+
buttonKind?: "clean" | "secondary";
|
|
99
|
+
isSmall?: boolean;
|
|
143
100
|
direction?: "Down" | "Up";
|
|
144
101
|
title: React.ReactNode;
|
|
145
102
|
alt?: string;
|
|
146
103
|
disabled?: boolean;
|
|
147
104
|
children: (toggle: () => void) => React.ReactNode;
|
|
148
105
|
}
|
|
149
|
-
declare function Dropdown({ buttonKind, direction, ...props }: Props$
|
|
106
|
+
declare function Dropdown({ buttonKind, direction, isSmall, fadeIn, ...props }: Props$2): JSX.Element;
|
|
150
107
|
interface ListItemProps {
|
|
151
108
|
className?: string;
|
|
152
109
|
onClick?: () => void;
|
|
@@ -170,44 +127,35 @@ interface SmartfilterProps {
|
|
|
170
127
|
onRemoveOption: (metapropertyOption: MetapropertyOptionType) => void;
|
|
171
128
|
}
|
|
172
129
|
declare function SmartFilterContent(props: SmartfilterProps): JSX.Element;
|
|
173
|
-
interface Props$
|
|
130
|
+
interface Props$3 {
|
|
174
131
|
static?: React.ReactNode;
|
|
175
132
|
className: string;
|
|
176
133
|
children: React.ReactNode;
|
|
177
134
|
}
|
|
178
|
-
declare function HorizontalScroll(props: Props$
|
|
179
|
-
interface Props$
|
|
135
|
+
declare function HorizontalScroll(props: Props$3): JSX.Element;
|
|
136
|
+
interface Props$4 {
|
|
180
137
|
isLoading: boolean;
|
|
181
138
|
hasNextPage: boolean;
|
|
182
139
|
loadMore: () => void;
|
|
183
140
|
children: React.ReactNode;
|
|
184
141
|
}
|
|
185
|
-
declare function InfiniteScroll(props: Props$
|
|
186
|
-
interface Props$
|
|
142
|
+
declare function InfiniteScroll(props: Props$4): JSX.Element;
|
|
143
|
+
interface Props$5 {
|
|
187
144
|
children: React.ReactNode;
|
|
188
145
|
isOpen?: boolean;
|
|
189
146
|
style?: React.CSSProperties;
|
|
190
147
|
onClose?: () => void;
|
|
191
148
|
}
|
|
192
|
-
declare function Modal({ children, isOpen, style, onClose }: Props$
|
|
193
|
-
interface Props$
|
|
149
|
+
declare function Modal({ children, isOpen, style, onClose }: Props$5): JSX.Element | null;
|
|
150
|
+
interface Props$6 {
|
|
194
151
|
onReset: () => void;
|
|
195
152
|
}
|
|
196
|
-
declare function NoResults(props: Props$
|
|
197
|
-
interface Props$
|
|
153
|
+
declare function NoResults(props: Props$6): JSX.Element;
|
|
154
|
+
interface Props$7 {
|
|
198
155
|
error: Error;
|
|
199
156
|
onRetry: () => void;
|
|
200
157
|
}
|
|
201
|
-
declare function Oops({ error, onRetry }: Props$
|
|
202
|
-
interface Props$10 {
|
|
203
|
-
className?: string;
|
|
204
|
-
active?: boolean;
|
|
205
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
206
|
-
title?: string;
|
|
207
|
-
children: React.ReactNode;
|
|
208
|
-
tabIndex?: 0 | -1;
|
|
209
|
-
}
|
|
210
|
-
declare function OverlayButton({ title, onClick, active, className, children, ...props }: Props$10): JSX.Element;
|
|
158
|
+
declare function Oops({ error, onRetry }: Props$7): JSX.Element;
|
|
211
159
|
/**
|
|
212
160
|
* This component will create a shadow root if it is the first ShadowRoot in the tree.
|
|
213
161
|
* Otherwise it will just render it's childred. This is useful as we don't always know
|
|
@@ -217,13 +165,14 @@ declare function OverlayButton({ title, onClick, active, className, children, ..
|
|
|
217
165
|
declare function ShadowRoot(props: {
|
|
218
166
|
children: React.ReactNode;
|
|
219
167
|
}): JSX.Element;
|
|
220
|
-
interface Props$
|
|
168
|
+
interface Props$8 {
|
|
221
169
|
width?: number;
|
|
222
170
|
className?: string;
|
|
223
171
|
}
|
|
224
|
-
declare function Skeleton({ width, className }: Props$
|
|
225
|
-
interface Props$
|
|
172
|
+
declare function Skeleton({ width, className }: Props$8): JSX.Element;
|
|
173
|
+
interface Props$9 {
|
|
226
174
|
className?: string;
|
|
227
175
|
}
|
|
228
|
-
declare function Spinner(props: Props$
|
|
229
|
-
export { AssetCard as Asset, Asset as displayAsset, AssetList,
|
|
176
|
+
declare function Spinner(props: Props$9): JSX.Element;
|
|
177
|
+
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 };
|
|
178
|
+
export { Button, Card, Checkbox } from '@bynder/design-system';
|