kui-basic 1.1.38 → 1.1.39
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.d.ts +23 -23
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { HTMLInputTypeAttribute, ReactElement, SyntheticEvent,
|
|
2
|
+
import { HTMLInputTypeAttribute, ReactElement, SyntheticEvent, ReactNode, RefObject } from 'react';
|
|
3
3
|
|
|
4
4
|
interface BrandColors {
|
|
5
5
|
main: string
|
|
@@ -658,27 +658,27 @@ type LinearProgressType = (
|
|
|
658
658
|
|
|
659
659
|
declare const LinearProgress: LinearProgressType
|
|
660
660
|
|
|
661
|
-
type TabChangeHandlerType = (
|
|
662
|
-
e: SyntheticEvent<HTMLButtonElement>,
|
|
663
|
-
value: number
|
|
664
|
-
) => void
|
|
665
|
-
|
|
666
|
-
interface TabProps
|
|
667
|
-
extends Omit<
|
|
668
|
-
React.DetailedHTMLProps<
|
|
669
|
-
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
670
|
-
HTMLButtonElement
|
|
671
|
-
>,
|
|
672
|
-
"onChange"
|
|
673
|
-
> {
|
|
674
|
-
selected?: boolean
|
|
675
|
-
value?: number
|
|
676
|
-
label: string
|
|
677
|
-
onChange?: TabChangeHandlerType
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
type TabType = (props: TabProps) => React.ReactElement
|
|
681
|
-
|
|
661
|
+
type TabChangeHandlerType = (
|
|
662
|
+
e: SyntheticEvent<HTMLButtonElement>,
|
|
663
|
+
value: number
|
|
664
|
+
) => void
|
|
665
|
+
|
|
666
|
+
interface TabProps
|
|
667
|
+
extends Omit<
|
|
668
|
+
React.DetailedHTMLProps<
|
|
669
|
+
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
670
|
+
HTMLButtonElement
|
|
671
|
+
>,
|
|
672
|
+
"onChange"
|
|
673
|
+
> {
|
|
674
|
+
selected?: boolean
|
|
675
|
+
value?: number
|
|
676
|
+
label: string | ReactNode
|
|
677
|
+
onChange?: TabChangeHandlerType
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
type TabType = (props: TabProps) => React.ReactElement
|
|
681
|
+
|
|
682
682
|
declare const Tab: TabType
|
|
683
683
|
|
|
684
684
|
type TabsIndicatorPositions = "bottom" | "top"
|
|
@@ -708,7 +708,7 @@ interface TabsPanelProps
|
|
|
708
708
|
>,
|
|
709
709
|
"onChange"
|
|
710
710
|
> {
|
|
711
|
-
tabs: string[]
|
|
711
|
+
tabs: (string | ReactNode)[]
|
|
712
712
|
tabPanels?: React.ReactNode[]
|
|
713
713
|
paths?: string[]
|
|
714
714
|
activeTab?: number
|