@loadsmart/loadsmart-ui 5.12.3 → 5.13.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.
@@ -13,12 +13,37 @@ declare type PanelsItemsProps = HTMLAttributes<HTMLDivElement>;
13
13
  declare function PanelsItems({ children, ...props }: PanelsItemsProps): JSX.Element;
14
14
  interface PanelsItemProps extends HTMLAttributes<HTMLElement> {
15
15
  name: string;
16
+ /**
17
+ * Renders the Panel.Item only when is visible
18
+ * @default false
19
+ */
20
+ lazy?: boolean;
21
+ }
22
+ declare function PanelsItem({ children, name, lazy, ...props }: PanelsItemProps): JSX.Element;
23
+ declare namespace PanelsItem {
24
+ var defaultProps: {
25
+ lazy: boolean;
26
+ };
16
27
  }
17
- declare function PanelsItem({ children, name, ...props }: PanelsItemProps): JSX.Element;
18
28
  export interface TabsProps extends HTMLAttributes<HTMLElement>, WithDirectionProps {
19
29
  activeTab?: string;
20
30
  onTabChange?: (tab: string) => void;
21
31
  }
32
+ /**
33
+ * @example
34
+ * <Tabs>
35
+ <Tabs.Items>
36
+ <Tabs.Item name="tab-1" default>
37
+ Tabs 1
38
+ </Tabs.Item>
39
+ <Tabs.Item name="tab-2">Tabs 2</Tabs.Item>
40
+ </Tabs.Items>
41
+ <Tabs.Panels>
42
+ <Tabs.Panel name="tab-1">first content</Tabs.Panel>
43
+ <Tabs.Panel name="tab-2">second content</Tabs.Panel>
44
+ </Tabs.Panels>
45
+ * </Tabs>
46
+ */
22
47
  declare function Tabs({ children, direction, id: propId, activeTab: propTab, onTabChange, ...props }: TabsProps): JSX.Element;
23
48
  declare namespace Tabs {
24
49
  var Items: typeof TabsItems;