@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/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 { propTypes, allowedProps }
124
+ export { allowedProps }
@@ -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" }