@instructure/ui-toggle-details 11.6.0 → 11.6.1-snapshot-129

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +35 -289
  2. package/es/ToggleDetails/{index.js → v1/index.js} +2 -2
  3. package/es/ToggleDetails/v2/index.js +186 -0
  4. package/{src/index.ts → es/ToggleDetails/v2/props.js} +2 -5
  5. package/es/ToggleDetails/v2/styles.js +186 -0
  6. package/es/ToggleGroup/{index.js → v1/index.js} +4 -4
  7. package/es/ToggleGroup/v2/index.js +172 -0
  8. package/es/ToggleGroup/v2/props.js +26 -0
  9. package/es/ToggleGroup/v2/styles.js +40 -0
  10. package/es/{index.js → exports/a.js} +2 -2
  11. package/es/exports/b.js +25 -0
  12. package/lib/ToggleDetails/{index.js → v1/index.js} +5 -5
  13. package/lib/ToggleDetails/v2/index.js +192 -0
  14. package/lib/ToggleDetails/v2/props.js +31 -0
  15. package/lib/ToggleDetails/v2/styles.js +192 -0
  16. package/lib/ToggleGroup/{index.js → v1/index.js} +12 -12
  17. package/lib/ToggleGroup/v2/index.js +179 -0
  18. package/lib/ToggleGroup/v2/props.js +31 -0
  19. package/lib/ToggleGroup/v2/styles.js +46 -0
  20. package/lib/{index.js → exports/a.js} +4 -4
  21. package/lib/exports/b.js +19 -0
  22. package/package.json +45 -23
  23. package/src/ToggleDetails/{index.tsx → v1/index.tsx} +3 -3
  24. package/src/ToggleDetails/{props.ts → v1/props.ts} +1 -1
  25. package/src/ToggleDetails/v2/README.md +233 -0
  26. package/src/ToggleDetails/v2/index.tsx +205 -0
  27. package/src/ToggleDetails/v2/props.ts +114 -0
  28. package/src/ToggleDetails/v2/styles.ts +188 -0
  29. package/src/ToggleGroup/{index.tsx → v1/index.tsx} +4 -4
  30. package/src/ToggleGroup/v2/README.md +93 -0
  31. package/src/ToggleGroup/v2/index.tsx +213 -0
  32. package/src/ToggleGroup/v2/props.ts +115 -0
  33. package/src/ToggleGroup/v2/styles.ts +47 -0
  34. package/src/exports/a.ts +29 -0
  35. package/src/exports/b.ts +29 -0
  36. package/tsconfig.build.tsbuildinfo +1 -1
  37. package/types/ToggleDetails/{index.d.ts → v1/index.d.ts} +1 -1
  38. package/types/ToggleDetails/v1/index.d.ts.map +1 -0
  39. package/types/ToggleDetails/{props.d.ts → v1/props.d.ts} +1 -1
  40. package/types/ToggleDetails/v1/props.d.ts.map +1 -0
  41. package/types/ToggleDetails/v1/styles.d.ts.map +1 -0
  42. package/types/ToggleDetails/v1/theme.d.ts.map +1 -0
  43. package/types/ToggleDetails/v2/index.d.ts +54 -0
  44. package/types/ToggleDetails/v2/index.d.ts.map +1 -0
  45. package/types/ToggleDetails/v2/props.d.ts +55 -0
  46. package/types/ToggleDetails/v2/props.d.ts.map +1 -0
  47. package/types/ToggleDetails/v2/styles.d.ts +16 -0
  48. package/types/ToggleDetails/v2/styles.d.ts.map +1 -0
  49. package/types/ToggleGroup/v1/index.d.ts.map +1 -0
  50. package/types/ToggleGroup/v1/props.d.ts.map +1 -0
  51. package/types/ToggleGroup/v1/styles.d.ts.map +1 -0
  52. package/types/ToggleGroup/v1/theme.d.ts.map +1 -0
  53. package/types/ToggleGroup/v2/index.d.ts +53 -0
  54. package/types/ToggleGroup/v2/index.d.ts.map +1 -0
  55. package/types/ToggleGroup/v2/props.d.ts +65 -0
  56. package/types/ToggleGroup/v2/props.d.ts.map +1 -0
  57. package/types/ToggleGroup/v2/styles.d.ts +15 -0
  58. package/types/ToggleGroup/v2/styles.d.ts.map +1 -0
  59. package/types/exports/a.d.ts +5 -0
  60. package/types/exports/a.d.ts.map +1 -0
  61. package/types/exports/b.d.ts +5 -0
  62. package/types/exports/b.d.ts.map +1 -0
  63. package/types/ToggleDetails/index.d.ts.map +0 -1
  64. package/types/ToggleDetails/props.d.ts.map +0 -1
  65. package/types/ToggleDetails/styles.d.ts.map +0 -1
  66. package/types/ToggleDetails/theme.d.ts.map +0 -1
  67. package/types/ToggleGroup/index.d.ts.map +0 -1
  68. package/types/ToggleGroup/props.d.ts.map +0 -1
  69. package/types/ToggleGroup/styles.d.ts.map +0 -1
  70. package/types/ToggleGroup/theme.d.ts.map +0 -1
  71. package/types/index.d.ts +0 -5
  72. package/types/index.d.ts.map +0 -1
  73. /package/es/ToggleDetails/{props.js → v1/props.js} +0 -0
  74. /package/es/ToggleDetails/{styles.js → v1/styles.js} +0 -0
  75. /package/es/ToggleDetails/{theme.js → v1/theme.js} +0 -0
  76. /package/es/ToggleGroup/{props.js → v1/props.js} +0 -0
  77. /package/es/ToggleGroup/{styles.js → v1/styles.js} +0 -0
  78. /package/es/ToggleGroup/{theme.js → v1/theme.js} +0 -0
  79. /package/lib/ToggleDetails/{props.js → v1/props.js} +0 -0
  80. /package/lib/ToggleDetails/{styles.js → v1/styles.js} +0 -0
  81. /package/lib/ToggleDetails/{theme.js → v1/theme.js} +0 -0
  82. /package/lib/ToggleGroup/{props.js → v1/props.js} +0 -0
  83. /package/lib/ToggleGroup/{styles.js → v1/styles.js} +0 -0
  84. /package/lib/ToggleGroup/{theme.js → v1/theme.js} +0 -0
  85. /package/src/ToggleDetails/{README.md → v1/README.md} +0 -0
  86. /package/src/ToggleDetails/{styles.ts → v1/styles.ts} +0 -0
  87. /package/src/ToggleDetails/{theme.ts → v1/theme.ts} +0 -0
  88. /package/src/ToggleGroup/{README.md → v1/README.md} +0 -0
  89. /package/src/ToggleGroup/{props.ts → v1/props.ts} +0 -0
  90. /package/src/ToggleGroup/{styles.ts → v1/styles.ts} +0 -0
  91. /package/src/ToggleGroup/{theme.ts → v1/theme.ts} +0 -0
  92. /package/types/ToggleDetails/{styles.d.ts → v1/styles.d.ts} +0 -0
  93. /package/types/ToggleDetails/{theme.d.ts → v1/theme.d.ts} +0 -0
  94. /package/types/ToggleGroup/{index.d.ts → v1/index.d.ts} +0 -0
  95. /package/types/ToggleGroup/{props.d.ts → v1/props.d.ts} +0 -0
  96. /package/types/ToggleGroup/{styles.d.ts → v1/styles.d.ts} +0 -0
  97. /package/types/ToggleGroup/{theme.d.ts → v1/theme.d.ts} +0 -0
@@ -0,0 +1,213 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ import { Component } from 'react'
26
+
27
+ import {
28
+ omitProps,
29
+ pickProps,
30
+ getElementType
31
+ } from '@instructure/ui-react-utils'
32
+ import { IconButton } from '@instructure/ui-buttons/latest'
33
+ import { Transition } from '@instructure/ui-motion'
34
+ import { Expandable } from '@instructure/ui-expandable'
35
+ import type { ExpandableToggleProps } from '@instructure/ui-expandable'
36
+ import { isActiveElement } from '@instructure/ui-dom-utils'
37
+ import { Flex } from '@instructure/ui-flex/latest'
38
+ import { View } from '@instructure/ui-view/latest'
39
+ import {
40
+ ChevronRightInstUIIcon,
41
+ ChevronDownInstUIIcon,
42
+ renderIconWithProps
43
+ } from '@instructure/ui-icons'
44
+ import type { ToggleGroupProps } from './props'
45
+ import { allowedProps } from './props'
46
+
47
+ import { withStyle } from '@instructure/emotion'
48
+
49
+ import generateStyle from './styles'
50
+
51
+ const toggleGroupSizeToIconSize = {
52
+ small: 'md',
53
+ medium: 'md',
54
+ large: 'lg'
55
+ } as const
56
+
57
+ /**
58
+ ---
59
+ category: components
60
+ ---
61
+ **/
62
+ @withStyle(generateStyle)
63
+ class ToggleGroup extends Component<ToggleGroupProps> {
64
+ static readonly componentId = 'ToggleGroup'
65
+
66
+ static allowedProps = allowedProps
67
+
68
+ static defaultProps = {
69
+ size: 'medium',
70
+ icon: ChevronRightInstUIIcon,
71
+ iconExpanded: ChevronDownInstUIIcon,
72
+ defaultExpanded: false,
73
+ transition: true,
74
+ as: 'span',
75
+ border: true
76
+ } as const
77
+
78
+ ref: Element | null = null
79
+ _button: HTMLElement | null = null
80
+ _shouldTransition = false
81
+
82
+ handleRef = (el: Element | null) => {
83
+ const { elementRef } = this.props
84
+
85
+ this.ref = el
86
+
87
+ if (typeof elementRef === 'function') {
88
+ elementRef(el)
89
+ }
90
+ }
91
+
92
+ handleButtonRef = (el: Element | null) => {
93
+ this._button = el as HTMLElement
94
+ }
95
+
96
+ get focused() {
97
+ return isActiveElement(this._button)
98
+ }
99
+
100
+ focus() {
101
+ this._button?.focus()
102
+ }
103
+
104
+ componentDidMount() {
105
+ this._shouldTransition = true
106
+ }
107
+
108
+ componentDidUpdate() {
109
+ this.props.makeStyles?.(this.state)
110
+ }
111
+
112
+ renderIcon(expanded: boolean) {
113
+ const Icon = expanded ? this.props.iconExpanded : this.props.icon
114
+ if (!Icon) return null
115
+
116
+ const iconSize = toggleGroupSizeToIconSize[this.props.size!]
117
+ return renderIconWithProps(Icon, iconSize, 'baseColor')
118
+ }
119
+
120
+ renderToggle(
121
+ toggleProps: ReturnType<ExpandableToggleProps>,
122
+ expanded: boolean
123
+ ) {
124
+ const { toggleLabel, size } = this.props
125
+ let label
126
+ if (typeof toggleLabel === 'function') {
127
+ label = toggleLabel(expanded)
128
+ } else {
129
+ label = toggleLabel
130
+ }
131
+
132
+ const props = { ...toggleProps } as Record<string, any>
133
+ return (
134
+ <IconButton
135
+ {...props}
136
+ withBackground={false}
137
+ withBorder={false}
138
+ size={size === 'large' ? 'medium' : 'small'}
139
+ elementRef={this.handleButtonRef}
140
+ screenReaderLabel={label}
141
+ >
142
+ {this.renderIcon(expanded)}
143
+ </IconButton>
144
+ )
145
+ }
146
+
147
+ renderDetails(detailsProps: { id: string }) {
148
+ const { styles } = this.props
149
+ return (
150
+ <View
151
+ {...detailsProps}
152
+ display="block"
153
+ borderWidth="small none none none"
154
+ borderColor={styles?.borderColor}
155
+ >
156
+ {this.props.transition && this._shouldTransition ? (
157
+ <Transition transitionOnMount in type="fade">
158
+ {this.props.children}
159
+ </Transition>
160
+ ) : (
161
+ this.props.children
162
+ )}
163
+ </View>
164
+ )
165
+ }
166
+
167
+ render() {
168
+ const Element = getElementType(ToggleGroup, this.props)
169
+ const { styles } = this.props
170
+ return (
171
+ <Expandable {...pickProps(this.props, Expandable.allowedProps)}>
172
+ {({ expanded, getToggleProps, getDetailsProps }) => {
173
+ return (
174
+ <View
175
+ {...omitProps(this.props, ToggleGroup.allowedProps)}
176
+ borderWidth={this.props.border ? 'small' : 'none'}
177
+ as={Element}
178
+ elementRef={this.handleRef}
179
+ display="block"
180
+ borderRadius="medium"
181
+ background="primary"
182
+ borderColor={styles?.borderColor}
183
+ data-cid="ToggleGroup"
184
+ >
185
+ <Flex
186
+ padding={
187
+ this.props.size === 'small'
188
+ ? 'x-small'
189
+ : 'small small small x-small'
190
+ }
191
+ >
192
+ <Flex.Item>
193
+ {this.renderToggle(getToggleProps(), expanded)}
194
+ </Flex.Item>
195
+ <Flex.Item shouldGrow shouldShrink padding="0 0 0 x-small">
196
+ {this.props.summary}
197
+ </Flex.Item>
198
+ </Flex>
199
+ {expanded ? (
200
+ this.renderDetails(getDetailsProps())
201
+ ) : (
202
+ <span {...getDetailsProps()} />
203
+ )}
204
+ </View>
205
+ )
206
+ }}
207
+ </Expandable>
208
+ )
209
+ }
210
+ }
211
+
212
+ export default ToggleGroup
213
+ export { ToggleGroup }
@@ -0,0 +1,115 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ import React from 'react'
26
+
27
+ import {
28
+ AsElementType,
29
+ OtherHTMLAttributes,
30
+ Renderable,
31
+ ToggleGroupTheme
32
+ } from '@instructure/shared-types'
33
+
34
+ import type { WithStyleProps } from '@instructure/emotion'
35
+
36
+ type ToggleGroupOwnProps = {
37
+ /**
38
+ * the content to show and hide
39
+ */
40
+ children: React.ReactNode
41
+ /**
42
+ * the content area next to the toggle button
43
+ */
44
+ summary: React.ReactNode
45
+ /**
46
+ * provides a screenreader label for the toggle button
47
+ * (takes `expanded` as an argument if a function)
48
+ */
49
+ toggleLabel: React.ReactNode | ((expanded: boolean) => React.ReactNode)
50
+ /**
51
+ * the element type to render as
52
+ */
53
+ as?: AsElementType
54
+ /**
55
+ * provides a reference to the underlying html root element
56
+ */
57
+ elementRef?: (element: Element | null) => void
58
+ size?: 'small' | 'medium' | 'large'
59
+ /**
60
+ * Whether the content is expanded or hidden
61
+ */
62
+ expanded?: boolean // TODO: controllable(PropTypes.bool, 'onToggle', 'defaultExpanded')
63
+ /**
64
+ * Whether the content is initially expanded or hidden (uncontrolled)
65
+ */
66
+ defaultExpanded?: boolean
67
+ /**
68
+ * Fired when the content display is toggled
69
+ */
70
+ onToggle?: (event: React.MouseEvent, expanded: boolean) => void
71
+ /**
72
+ * The icon displayed in the toggle button when the content is hidden
73
+ */
74
+ icon?: Renderable
75
+ /**
76
+ * The icon displayed in the toggle button when the content is showing
77
+ */
78
+ iconExpanded?: Renderable
79
+ /**
80
+ * Transition content into view
81
+ */
82
+ transition?: boolean
83
+ /**
84
+ * Toggle the border around the component
85
+ */
86
+ border?: boolean
87
+ }
88
+
89
+ type PropKeys = keyof ToggleGroupOwnProps
90
+
91
+ type AllowedPropKeys = Readonly<Array<PropKeys>>
92
+
93
+ type ToggleGroupStyle = { borderColor: string }
94
+
95
+ type ToggleGroupProps = ToggleGroupOwnProps &
96
+ OtherHTMLAttributes<ToggleGroupOwnProps> &
97
+ WithStyleProps<ToggleGroupTheme, ToggleGroupStyle>
98
+ const allowedProps: AllowedPropKeys = [
99
+ 'children',
100
+ 'summary',
101
+ 'toggleLabel',
102
+ 'as',
103
+ 'elementRef',
104
+ 'size',
105
+ 'expanded',
106
+ 'defaultExpanded',
107
+ 'onToggle',
108
+ 'icon',
109
+ 'iconExpanded',
110
+ 'transition',
111
+ 'border'
112
+ ]
113
+
114
+ export type { ToggleGroupProps, ToggleGroupStyle }
115
+ export { allowedProps }
@@ -0,0 +1,47 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ import type { NewComponentTypes } from '@instructure/ui-themes'
26
+ import type { ToggleGroupProps, ToggleGroupStyle } from './props'
27
+
28
+ /**
29
+ * ---
30
+ * private: true
31
+ * ---
32
+ * Generates the style object from the theme and provided additional information
33
+ * @param {Object} componentTheme The theme variable object.
34
+ * @param {Object} props the props of the component, the style is applied to
35
+ * @param {Object} state the state of the component, the style is applied to
36
+ * @return {Object} The final style object, which will be used in the component
37
+ */
38
+ const generateStyle = (
39
+ componentTheme: NewComponentTypes['ToggleGroup'],
40
+ _props: ToggleGroupProps
41
+ ): ToggleGroupStyle => {
42
+ return {
43
+ borderColor: componentTheme.borderColor
44
+ }
45
+ }
46
+
47
+ export default generateStyle
@@ -0,0 +1,29 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ export { ToggleDetails } from '../ToggleDetails/v1'
26
+ export { ToggleGroup } from '../ToggleGroup/v1'
27
+
28
+ export type { ToggleDetailsProps } from '../ToggleDetails/v1/props'
29
+ export type { ToggleGroupProps } from '../ToggleGroup/v1/props'
@@ -0,0 +1,29 @@
1
+ /*
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2015 - present Instructure, Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
25
+ export { ToggleDetails } from '../ToggleDetails/v2'
26
+ export { ToggleGroup } from '../ToggleGroup/v2'
27
+
28
+ export type { ToggleDetailsProps } from '../ToggleDetails/v2/props'
29
+ export type { ToggleGroupProps } from '../ToggleGroup/v2/props'