@cagatayfdn/flora-components 0.0.28 → 0.0.30

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.d.ts CHANGED
@@ -336,6 +336,29 @@ declare type DividerProps = {
336
336
  margin?: string;
337
337
  };
338
338
 
339
+ declare type DropdownItemType = {
340
+ text: string;
341
+ to?: string;
342
+ icon?: Icons;
343
+ className?: string;
344
+ disabled?: boolean;
345
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
346
+ };
347
+
348
+ export declare const DropdownList: ({ buttonChild, items, footerItem, className, title, titleClass, event, size, isDisabled, }: DropdownListProps) => JSX.Element;
349
+
350
+ declare type DropdownListProps = {
351
+ buttonChild: ReactNode;
352
+ footerItem?: ReactNode;
353
+ items: DropdownItemType[];
354
+ className?: string;
355
+ title?: string;
356
+ titleClass?: string;
357
+ event?: 'click' | 'hover';
358
+ size?: 'sm' | 'md' | 'lg';
359
+ isDisabled?: boolean;
360
+ };
361
+
339
362
  declare interface EventProps<T = HTMLElement> {
340
363
  onClick?: (e: React.MouseEvent<T>) => void;
341
364
  onFocus?: (e: React.FocusEvent<T>) => void;
@@ -621,6 +644,20 @@ declare type PagerProps = {
621
644
  appearance?: ThemeAppearance;
622
645
  };
623
646
 
647
+ export declare const PermaLink: React_2.FC<PermalinkProps>;
648
+
649
+ declare type PermalinkProps = {
650
+ to: string;
651
+ params?: Record<string, any>;
652
+ activeClassName?: string;
653
+ className?: string;
654
+ style?: any;
655
+ onClick?: () => void;
656
+ isDisabled?: boolean;
657
+ children?: ReactNode;
658
+ state?: any;
659
+ };
660
+
624
661
  export declare const PermFallBack: () => JSX_2.Element;
625
662
 
626
663
  export declare function Permission(props: Props_2): JSX_2.Element;