@dhis2-ui/tab 8.16.0-alpha.2 → 8.16.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.
- package/package.json +5 -8
- package/types/index.d.ts +0 -43
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/tab",
|
|
3
|
-
"version": "8.16.0
|
|
3
|
+
"version": "8.16.0",
|
|
4
4
|
"description": "UI Tabs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"main": "./build/cjs/index.js",
|
|
14
14
|
"module": "./build/es/index.js",
|
|
15
15
|
"exports": {
|
|
16
|
-
"types": "./types/index.d.ts",
|
|
17
16
|
"import": "./build/es/index.js",
|
|
18
17
|
"require": "./build/cjs/index.js"
|
|
19
18
|
},
|
|
@@ -33,19 +32,17 @@
|
|
|
33
32
|
},
|
|
34
33
|
"dependencies": {
|
|
35
34
|
"@dhis2/prop-types": "^3.1.2",
|
|
36
|
-
"@dhis2/ui-constants": "8.16.0
|
|
37
|
-
"@dhis2/ui-icons": "8.16.0
|
|
35
|
+
"@dhis2/ui-constants": "8.16.0",
|
|
36
|
+
"@dhis2/ui-icons": "8.16.0",
|
|
38
37
|
"classnames": "^2.3.1",
|
|
39
38
|
"prop-types": "^15.7.2"
|
|
40
39
|
},
|
|
41
40
|
"files": [
|
|
42
|
-
"build"
|
|
43
|
-
"types"
|
|
41
|
+
"build"
|
|
44
42
|
],
|
|
45
43
|
"devDependencies": {
|
|
46
44
|
"react": "16.13",
|
|
47
45
|
"react-dom": "16.13",
|
|
48
46
|
"styled-jsx": "^4.0.1"
|
|
49
|
-
}
|
|
50
|
-
"types": "types"
|
|
47
|
+
}
|
|
51
48
|
}
|
package/types/index.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react'
|
|
2
|
-
|
|
3
|
-
export interface TabProps {
|
|
4
|
-
children?: React.ReactNode
|
|
5
|
-
className?: string
|
|
6
|
-
dataTest?: string
|
|
7
|
-
disabled?: boolean
|
|
8
|
-
icon?: React.ReactElement<any>
|
|
9
|
-
/**
|
|
10
|
-
* Indicates this tab is selected
|
|
11
|
-
*/
|
|
12
|
-
selected?: boolean
|
|
13
|
-
/**
|
|
14
|
-
* Called with the signature `({}, event)`
|
|
15
|
-
*/
|
|
16
|
-
onClick?: (arg0: {}, event: React.MouseEvent<HTMLButtonElement>) => void
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const Tab: React.FC<TabProps>
|
|
20
|
-
|
|
21
|
-
export interface TabBarProps {
|
|
22
|
-
children?: React.ReactNode
|
|
23
|
-
className?: string
|
|
24
|
-
dataTest?: string
|
|
25
|
-
/**
|
|
26
|
-
* Fixed tabs fill the width of their container. If false (i.e. fluid), tabs take up an amount of space defined by the tab name. Fluid tabs should be used most of the time.
|
|
27
|
-
*/
|
|
28
|
-
fixed?: boolean
|
|
29
|
-
/**
|
|
30
|
-
* Enables horizontal scrolling for many tabs that don't fit the width of the container
|
|
31
|
-
*/
|
|
32
|
-
scrollable?: boolean
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export const TabBar: React.FC<TabBarProps>
|
|
36
|
-
|
|
37
|
-
export interface TabsProps {
|
|
38
|
-
dataTest: string
|
|
39
|
-
children?: React.ReactNode
|
|
40
|
-
fixed?: boolean
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const Tabs: React.FC<TabsProps>
|