@cagatayfdn/flora-components 0.0.12 → 0.0.13
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/index.cjs.js +78 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +63 -0
- package/dist/index.es.js +6905 -4188
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +77 -18
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import NiceModal from '@ebay/nice-modal-react';
|
|
|
13
13
|
import { NiceModalHocProps } from '@ebay/nice-modal-react';
|
|
14
14
|
import { default as React_2 } from 'react';
|
|
15
15
|
import { ReactNode } from 'react';
|
|
16
|
+
import { SelectItemRenderer } from 'react-dropdown-select';
|
|
16
17
|
import { SetStateAction } from 'react';
|
|
17
18
|
import { TFunction } from 'i18next';
|
|
18
19
|
|
|
@@ -175,6 +176,10 @@ export declare enum CopyTextStatusEnum {
|
|
|
175
176
|
ERROR = "error"
|
|
176
177
|
}
|
|
177
178
|
|
|
179
|
+
declare type CustomItemProps = {
|
|
180
|
+
item: OptionProps;
|
|
181
|
+
};
|
|
182
|
+
|
|
178
183
|
declare type Dispatch = React_2.Dispatch<Actiontype>;
|
|
179
184
|
|
|
180
185
|
export declare enum DividerAppearance {
|
|
@@ -296,6 +301,17 @@ declare enum Icons {
|
|
|
296
301
|
|
|
297
302
|
declare type IconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close' | 'copy' | 'credit-card' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'fileTextOutlined' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'reload' | 'retry' | 'search' | 'settings' | 'support' | 'trash' | 'users' | 'warning';
|
|
298
303
|
|
|
304
|
+
export declare function InfiniteScroll({ children, hasMore, height, loadMore, treshold, }: InfiniteScrollProps): JSX.Element;
|
|
305
|
+
|
|
306
|
+
declare interface InfiniteScrollProps {
|
|
307
|
+
className?: string;
|
|
308
|
+
children?: React.ReactNode;
|
|
309
|
+
height?: number;
|
|
310
|
+
treshold?: number;
|
|
311
|
+
hasMore?: boolean;
|
|
312
|
+
loadMore: () => void;
|
|
313
|
+
}
|
|
314
|
+
|
|
299
315
|
export declare enum isActiveColor {
|
|
300
316
|
inActive = "#4482ff",
|
|
301
317
|
active = "#3f4b5c"
|
|
@@ -356,6 +372,17 @@ export declare enum NotificationAppearanceType {
|
|
|
356
372
|
LOADING = "loading"
|
|
357
373
|
}
|
|
358
374
|
|
|
375
|
+
declare interface OptionItem {
|
|
376
|
+
value: string | number;
|
|
377
|
+
label: string;
|
|
378
|
+
id?: string;
|
|
379
|
+
rest?: any;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
declare interface OptionProps extends OptionItem {
|
|
383
|
+
name?: string;
|
|
384
|
+
}
|
|
385
|
+
|
|
359
386
|
declare interface Permissions_2 {
|
|
360
387
|
default: boolean
|
|
361
388
|
depends_on: PermissionsType[] | null
|
|
@@ -470,6 +497,42 @@ declare type ScrollContainerProps = {
|
|
|
470
497
|
className?: string;
|
|
471
498
|
};
|
|
472
499
|
|
|
500
|
+
export declare const Select: {
|
|
501
|
+
(props: SelectProps): JSX.Element;
|
|
502
|
+
displayName: string;
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
declare type SelectProps = {
|
|
506
|
+
id?: string;
|
|
507
|
+
items?: OptionProps[];
|
|
508
|
+
itemPrefix?: string;
|
|
509
|
+
itemSuffix?: string | number;
|
|
510
|
+
infiniteScrollProps?: InfiniteScrollProps;
|
|
511
|
+
size?: Size;
|
|
512
|
+
searchable?: boolean;
|
|
513
|
+
clearable?: boolean;
|
|
514
|
+
className?: string;
|
|
515
|
+
style?: React_2.CSSProperties;
|
|
516
|
+
wrapperClassName?: string;
|
|
517
|
+
labelField?: string;
|
|
518
|
+
valueField?: string;
|
|
519
|
+
showPlaceholder?: boolean;
|
|
520
|
+
backspaceDelete?: boolean;
|
|
521
|
+
customOption?: (props: CustomItemProps) => JSX.Element;
|
|
522
|
+
onChange?: (value: any, values?: any) => void;
|
|
523
|
+
onSearch?: (value: string) => void;
|
|
524
|
+
isAllSelected?: boolean;
|
|
525
|
+
appearance?: FormFieldAppearance;
|
|
526
|
+
noDataRenderer?: (props: any) => any;
|
|
527
|
+
onAddItem?: ({ item, methods, props, state, itemIndex, }: SelectItemRenderer<OptionProps>) => void;
|
|
528
|
+
onRemoveItem?: (item: OptionProps) => void;
|
|
529
|
+
onDropdownClose?: () => void;
|
|
530
|
+
value?: any;
|
|
531
|
+
required?: boolean;
|
|
532
|
+
isMulti?: boolean;
|
|
533
|
+
isRadius?: boolean;
|
|
534
|
+
} & Omit<FormElementProps, 'value'>;
|
|
535
|
+
|
|
473
536
|
export declare enum Size {
|
|
474
537
|
XS = "xsmall",
|
|
475
538
|
SM = "small",
|