@instructure/ui-tabs 10.26.1 → 11.0.1-snapshot-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/CHANGELOG.md +30 -1
- package/es/Tabs/Panel/index.js +2 -2
- package/es/Tabs/Panel/props.js +1 -18
- package/es/Tabs/Tab/index.js +2 -2
- package/es/Tabs/Tab/props.js +1 -14
- package/es/Tabs/index.js +6 -6
- package/es/Tabs/props.js +1 -20
- package/lib/Tabs/Panel/index.js +1 -1
- package/lib/Tabs/Panel/props.js +1 -19
- package/lib/Tabs/Tab/index.js +1 -1
- package/lib/Tabs/Tab/props.js +1 -15
- package/lib/Tabs/index.js +5 -5
- package/lib/Tabs/props.js +1 -21
- package/package.json +20 -23
- package/src/Tabs/Panel/index.tsx +1 -2
- package/src/Tabs/Panel/props.ts +1 -22
- package/src/Tabs/Tab/index.tsx +1 -2
- package/src/Tabs/Tab/props.ts +1 -17
- package/src/Tabs/index.tsx +3 -5
- package/src/Tabs/props.ts +2 -30
- package/tsconfig.build.json +0 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Tabs/Panel/index.d.ts +0 -16
- package/types/Tabs/Panel/index.d.ts.map +1 -1
- package/types/Tabs/Panel/props.d.ts +2 -3
- package/types/Tabs/Panel/props.d.ts.map +1 -1
- package/types/Tabs/Tab/index.d.ts +0 -18
- package/types/Tabs/Tab/index.d.ts.map +1 -1
- package/types/Tabs/Tab/props.d.ts +2 -3
- package/types/Tabs/Tab/props.d.ts.map +1 -1
- package/types/Tabs/index.d.ts +0 -19
- package/types/Tabs/index.d.ts.map +1 -1
- package/types/Tabs/props.d.ts +2 -3
- package/types/Tabs/props.d.ts.map +1 -1
package/src/Tabs/props.ts
CHANGED
|
@@ -22,22 +22,12 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
import React from 'react'
|
|
25
|
-
import PropTypes from 'prop-types'
|
|
26
|
-
|
|
27
|
-
import { Children } from '@instructure/ui-prop-types'
|
|
28
|
-
|
|
29
|
-
import { Panel } from './Panel'
|
|
30
|
-
|
|
31
25
|
import type {
|
|
32
26
|
Spacing,
|
|
33
27
|
WithStyleProps,
|
|
34
28
|
ComponentStyle
|
|
35
29
|
} from '@instructure/emotion'
|
|
36
|
-
import type {
|
|
37
|
-
OtherHTMLAttributes,
|
|
38
|
-
PropValidators,
|
|
39
|
-
TabsTheme
|
|
40
|
-
} from '@instructure/shared-types'
|
|
30
|
+
import type { OtherHTMLAttributes, TabsTheme } from '@instructure/shared-types'
|
|
41
31
|
import type { TextDirectionContextConsumerProps } from '@instructure/ui-i18n'
|
|
42
32
|
import type { ViewOwnProps } from '@instructure/ui-view'
|
|
43
33
|
|
|
@@ -113,24 +103,6 @@ type TabsState = {
|
|
|
113
103
|
showStartOverLay: boolean
|
|
114
104
|
showEndOverLay: boolean
|
|
115
105
|
}
|
|
116
|
-
|
|
117
|
-
const propTypes: PropValidators<PropKeys> = {
|
|
118
|
-
children: Children.oneOf([Panel, null]),
|
|
119
|
-
variant: PropTypes.oneOf(['default', 'secondary']),
|
|
120
|
-
screenReaderLabel: PropTypes.string,
|
|
121
|
-
onRequestTabChange: PropTypes.func,
|
|
122
|
-
maxWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
123
|
-
maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
124
|
-
minHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
125
|
-
fixHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
126
|
-
margin: PropTypes.string,
|
|
127
|
-
padding: PropTypes.string,
|
|
128
|
-
textAlign: PropTypes.oneOf(['start', 'center', 'end']),
|
|
129
|
-
elementRef: PropTypes.func,
|
|
130
|
-
tabOverflow: PropTypes.oneOf(['stack', 'scroll']),
|
|
131
|
-
shouldFocusOnRender: PropTypes.bool
|
|
132
|
-
}
|
|
133
|
-
|
|
134
106
|
const allowedProps: AllowedPropKeys = [
|
|
135
107
|
'children',
|
|
136
108
|
'variant',
|
|
@@ -149,4 +121,4 @@ const allowedProps: AllowedPropKeys = [
|
|
|
149
121
|
]
|
|
150
122
|
|
|
151
123
|
export type { TabsProps, TabsState, TabsStyle }
|
|
152
|
-
export {
|
|
124
|
+
export { allowedProps }
|
package/tsconfig.build.json
CHANGED
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
{ "path": "../ui-focusable/tsconfig.build.json" },
|
|
20
20
|
{ "path": "../ui-i18n/tsconfig.build.json" },
|
|
21
21
|
{ "path": "../ui-motion/tsconfig.build.json" },
|
|
22
|
-
{ "path": "../ui-prop-types/tsconfig.build.json" },
|
|
23
22
|
{ "path": "../ui-react-utils/tsconfig.build.json" },
|
|
24
|
-
{ "path": "../ui-testable/tsconfig.build.json" },
|
|
25
23
|
{ "path": "../ui-utils/tsconfig.build.json" },
|
|
26
24
|
{ "path": "../ui-view/tsconfig.build.json" },
|
|
27
25
|
{ "path": "../uid/tsconfig.build.json" }
|