@licklist/design 0.78.5-dev.96 → 0.78.5-dev.97
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { TabsProps as BootstrapTabsProps } from 'react-bootstrap';
|
|
3
|
-
export type TabsProps = Omit<BootstrapTabsProps, 'defaultActiveKey' | 'activeKey' | 'onSelect'> & {
|
|
3
|
+
export type TabsProps = PropsWithChildren<Omit<BootstrapTabsProps, 'defaultActiveKey' | 'activeKey' | 'onSelect'> & {
|
|
4
4
|
defaultActiveKey?: string;
|
|
5
5
|
activeKey?: string;
|
|
6
6
|
onSelect?: (key: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function Tabs({ defaultActiveKey, activeKey, onSelect, children, ...props }:
|
|
7
|
+
}>;
|
|
8
|
+
export declare function Tabs({ defaultActiveKey, activeKey, onSelect, children, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export declare namespace Tabs {
|
|
10
10
|
var Tab: import("react").FunctionComponent<import("./Tab").TabProps>;
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/static/tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAEL,SAAS,IAAI,kBAAkB,EAChC,MAAM,iBAAiB,CAAA;AAGxB,MAAM,MAAM,SAAS,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/static/tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAEL,SAAS,IAAI,kBAAkB,EAChC,MAAM,iBAAiB,CAAA;AAGxB,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC,IAAI,CAC5C,kBAAkB,EAClB,kBAAkB,GAAG,WAAW,GAAG,UAAU,CAC9C,GAAG;IACF,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,CAAC,CAAA;AAEF,wBAAgB,IAAI,CAAC,EACnB,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,SAAS,2CAeX;yBArBe,IAAI"}
|
package/package.json
CHANGED
package/src/static/tabs/Tabs.tsx
CHANGED
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from 'react-bootstrap'
|
|
7
7
|
import { Tab } from './Tab'
|
|
8
8
|
|
|
9
|
-
export type TabsProps = Omit<
|
|
9
|
+
export type TabsProps = PropsWithChildren<Omit<
|
|
10
10
|
BootstrapTabsProps,
|
|
11
11
|
'defaultActiveKey' | 'activeKey' | 'onSelect'
|
|
12
12
|
> & {
|
|
13
13
|
defaultActiveKey?: string
|
|
14
14
|
activeKey?: string
|
|
15
15
|
onSelect?: (key: string) => void
|
|
16
|
-
}
|
|
16
|
+
}>
|
|
17
17
|
|
|
18
18
|
export function Tabs({
|
|
19
19
|
defaultActiveKey,
|
|
@@ -21,7 +21,7 @@ export function Tabs({
|
|
|
21
21
|
onSelect,
|
|
22
22
|
children,
|
|
23
23
|
...props
|
|
24
|
-
}:
|
|
24
|
+
}: TabsProps) {
|
|
25
25
|
const tabsId = useId()
|
|
26
26
|
|
|
27
27
|
return (
|