@telus-uds/components-base 1.0.1 → 1.1.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.
Files changed (74) hide show
  1. package/.storybook/main.js +4 -0
  2. package/.storybook/preview.js +37 -0
  3. package/.ultra.cache.json +1 -1
  4. package/CHANGELOG.md +12 -0
  5. package/README.md +1 -1
  6. package/babel.config.js +9 -16
  7. package/component-docs.json +10313 -0
  8. package/generate-component-docs.js +56 -0
  9. package/lib/List/List.js +1 -2
  10. package/lib/List/ListItem.js +14 -27
  11. package/lib/List/index.js +15 -0
  12. package/lib/Pagination/PageButton.js +1 -7
  13. package/lib/StackView/StackWrap.js +9 -5
  14. package/lib/index.js +15 -1
  15. package/lib/utils/a11y/propTypes.js +61 -0
  16. package/lib/utils/a11y/propTypes.native.js +47 -0
  17. package/lib/utils/propTypes.js +7 -89
  18. package/package.json +9 -5
  19. package/release-context.json +4 -4
  20. package/src/List/List.jsx +1 -3
  21. package/src/List/ListItem.jsx +11 -26
  22. package/src/List/index.js +5 -0
  23. package/src/Pagination/PageButton.jsx +2 -6
  24. package/src/StackView/StackWrap.jsx +7 -6
  25. package/src/index.js +1 -1
  26. package/src/utils/a11y/propTypes.js +61 -0
  27. package/src/utils/a11y/propTypes.native.js +39 -0
  28. package/src/utils/propTypes.js +1 -110
  29. package/stories/A11yText/A11yText.stories.jsx +1 -1
  30. package/stories/ActivityIndicator/ActivityIndicator.stories.jsx +1 -1
  31. package/stories/Box/Box.stories.jsx +1 -1
  32. package/stories/Button/Button.stories.jsx +1 -1
  33. package/stories/Button/ButtonGroup.stories.jsx +1 -1
  34. package/stories/Button/ButtonLink.stories.jsx +1 -1
  35. package/stories/Card/Card.stories.jsx +1 -1
  36. package/stories/Checkbox/Checkbox.stories.jsx +1 -1
  37. package/stories/Divider/Divider.stories.jsx +1 -1
  38. package/stories/ExpandCollapse/ExpandCollapse.stories.jsx +1 -1
  39. package/stories/Feedback/Feedback.stories.jsx +1 -1
  40. package/stories/FlexGrid/01 FlexGrid.stories.jsx +1 -1
  41. package/stories/FlexGrid/02 Row.stories.jsx +1 -1
  42. package/stories/FlexGrid/03 Col.stories.jsx +1 -1
  43. package/stories/Icon/Icon.stories.jsx +1 -1
  44. package/stories/IconButton/IconButton.stories.jsx +1 -1
  45. package/stories/InputLabel/InputLabel.stories.jsx +1 -1
  46. package/stories/Link/ChevronLink.stories.jsx +1 -1
  47. package/stories/Link/Link.stories.jsx +1 -1
  48. package/stories/Link/TextButton.stories.jsx +1 -1
  49. package/stories/List/List.stories.jsx +1 -1
  50. package/stories/Modal/Modal.stories.jsx +1 -1
  51. package/stories/Notification/Notification.stories.jsx +1 -1
  52. package/stories/Pagination/Pagination.stories.jsx +1 -1
  53. package/stories/Progress/Progress.stories.jsx +1 -1
  54. package/stories/Radio/Radio.stories.jsx +1 -1
  55. package/stories/RadioCard/RadioCard.stories.jsx +1 -1
  56. package/stories/Search/Search.stories.jsx +1 -1
  57. package/stories/Select/Select.stories.jsx +1 -1
  58. package/stories/SideNav/SideNav.stories.jsx +1 -1
  59. package/stories/SideNav/SideNavItem.stories.jsx +1 -1
  60. package/stories/SideNav/SideNavItemsGroup.stories.jsx +1 -1
  61. package/stories/Skeleton/Skeleton.stories.jsx +1 -1
  62. package/stories/Spacer/Spacer.stories.jsx +1 -1
  63. package/stories/StackView/StackView.stories.jsx +1 -1
  64. package/stories/StackView/StackWrap.stories.jsx +1 -1
  65. package/stories/StepTracker/StepTracker.stories.jsx +1 -1
  66. package/stories/Tabs/Tabs.stories.jsx +1 -1
  67. package/stories/Tags/Tags.stories.jsx +1 -1
  68. package/stories/TextInput/TextArea.stories.jsx +1 -1
  69. package/stories/TextInput/TextInput.stories.jsx +1 -1
  70. package/stories/ToggleSwitch/ToggleSwitch.stories.jsx +1 -1
  71. package/stories/Tooltip/Tooltip.stories.jsx +1 -1
  72. package/stories/TooltipButton/TooltipButton.stories.jsx +1 -1
  73. package/stories/Typography/Typography.stories.jsx +1 -1
  74. package/stories/supports.jsx +2 -3
package/src/List/index.js CHANGED
@@ -1,3 +1,8 @@
1
1
  import List from './List'
2
+ import ListItem from './ListItem'
3
+
4
+ List.Item = ListItem
5
+
6
+ export { List as ListBase, ListItem }
2
7
 
3
8
  export default List
@@ -8,6 +8,7 @@ import {
8
8
  copyPropTypes,
9
9
  getTokensPropType,
10
10
  hrefAttrsProp,
11
+ linkProps,
11
12
  selectTokens,
12
13
  variantProp
13
14
  } from '../utils'
@@ -57,12 +58,7 @@ const PageButton = forwardRef(
57
58
  PageButton.displayName = 'PageButton'
58
59
 
59
60
  PageButton.propTypes = {
60
- // Spreading any props into a secondary component accessed like Pagination.PageButton
61
- // crashes a Docusaurus props table, but only in production, not in development
62
- onPress: PropTypes.func,
63
- href: PropTypes.string,
64
- // If the above is fixed, the above can be replaced with this which includes full a11y etc:
65
- // ...linkProps.types,
61
+ ...linkProps.types,
66
62
  label: PropTypes.string,
67
63
  isActive: PropTypes.bool,
68
64
  copy: copyPropTypes,
@@ -4,6 +4,12 @@ import { Platform } from 'react-native'
4
4
  import StackWrapBox from './StackWrapBox'
5
5
  import StackWrapGap from './StackWrapGap'
6
6
 
7
+ // In Jest/CI/SSR, global CSS isn't always available and doesn't always have .supports method
8
+ const cssSupports = (...args) =>
9
+ typeof window !== 'undefined' &&
10
+ typeof window.CSS?.supports === 'function' &&
11
+ window.CSS.supports(...args)
12
+
7
13
  // CSS.supports needs an example of the type of value you intend to use.
8
14
  // Will be an integer appended `px` after hooks and JSX styles are resolved.
9
15
  const exampleGapValue = '1px'
@@ -20,12 +26,7 @@ const StackWrap = forwardRef((props, ref) => {
20
26
  // Don't apply separate gap if `null` or `undefined`, so can be unset in Storybook etc
21
27
  const gap = props.gap ?? space
22
28
 
23
- const canUseCSSGap =
24
- Platform.OS === 'web' &&
25
- gap === space &&
26
- // In Jest/CI, global CSS isn't always available and doesn't always have .supports method
27
- typeof CSS?.supports === 'function' &&
28
- CSS.supports('gap', exampleGapValue)
29
+ const canUseCSSGap = Platform.OS === 'web' && gap === space && cssSupports('gap', exampleGapValue)
29
30
 
30
31
  return canUseCSSGap ? (
31
32
  // If possible, use the cleaner implementation that applies CSS `gap` styles to the container.
package/src/index.js CHANGED
@@ -17,7 +17,7 @@ export * from './Icon'
17
17
  export { default as IconButton } from './IconButton'
18
18
  export { default as InputLabel } from './InputLabel'
19
19
  export * from './Link'
20
- export { default as List } from './List'
20
+ export { default as List, ListItem, ListBase } from './List'
21
21
  export { default as Modal } from './Modal'
22
22
  export { default as Notification } from './Notification'
23
23
  export { default as Pagination } from './Pagination'
@@ -0,0 +1,61 @@
1
+ import PropTypes from 'prop-types'
2
+
3
+ import nativePropTypes from './propTypes.native'
4
+
5
+ export default {
6
+ ...nativePropTypes,
7
+ // React Native Web adds many a11y props that alias aria-* attributes
8
+ // Types based on https://necolas.github.io/react-native-web/docs/accessibility/
9
+ accessibilityActiveDescendant: PropTypes.string,
10
+ accessibilityAtomic: PropTypes.bool,
11
+ accessibilityAutoComplete: PropTypes.string,
12
+ accessibilityBusy: PropTypes.bool,
13
+ accessibilityChecked: PropTypes.oneOf([true, false, 'mixed']),
14
+ accessibilityColumnCount: PropTypes.number,
15
+ accessibilityColumnIndex: PropTypes.number,
16
+ accessibilityColumnSpan: PropTypes.number,
17
+ accessibilityControls: PropTypes.oneOfType([
18
+ PropTypes.string,
19
+ PropTypes.arrayOf(PropTypes.string)
20
+ ]),
21
+ accessibilityCurrent: PropTypes.oneOf([true, false, 'page', 'step', 'location', 'date', 'time']),
22
+ accessibilityDescribedBy: PropTypes.oneOfType([
23
+ PropTypes.string,
24
+ PropTypes.arrayOf(PropTypes.string)
25
+ ]),
26
+ accessibilityDetails: PropTypes.string,
27
+ accessibilityDisabled: PropTypes.bool,
28
+ accessibilityErrorMessage: PropTypes.string,
29
+ accessibilityExpanded: PropTypes.bool,
30
+ accessibilityFlowTo: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
31
+ accessibilityHasPopup: PropTypes.string,
32
+ accessibilityHidden: PropTypes.bool,
33
+ accessibilityInvalid: PropTypes.bool,
34
+ accessibilityKeyShortcuts: PropTypes.string,
35
+ accessibilityLabelledBy: PropTypes.oneOfType([
36
+ PropTypes.string,
37
+ PropTypes.arrayOf(PropTypes.string)
38
+ ]),
39
+ accessibilityLevel: PropTypes.number,
40
+ accessibilityModal: PropTypes.bool,
41
+ accessibilityMultiline: PropTypes.bool,
42
+ accessibilityMultiSelectable: PropTypes.bool,
43
+ accessibilityOrientation: PropTypes.oneOf(['horizontal', 'vertical']),
44
+ accessibilityOwns: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
45
+ accessibilityPlaceholder: PropTypes.string,
46
+ accessibilityPosInSet: PropTypes.number,
47
+ accessibilityPressed: PropTypes.bool,
48
+ accessibilityReadOnly: PropTypes.bool,
49
+ accessibilityRequired: PropTypes.bool,
50
+ accessibilityRoleDescription: PropTypes.string,
51
+ accessibilityRowCount: PropTypes.number,
52
+ accessibilityRowIndex: PropTypes.number,
53
+ accessibilityRowSpan: PropTypes.number,
54
+ accessibilitySelected: PropTypes.bool,
55
+ accessibilitySetSize: PropTypes.number,
56
+ accessibilitySort: PropTypes.oneOf(['ascending', 'descending', 'none', 'other']),
57
+ accessibilityValueMax: PropTypes.number,
58
+ accessibilityValueMin: PropTypes.number,
59
+ accessibilityValueNow: PropTypes.number,
60
+ accessibilityValueText: PropTypes.string
61
+ }
@@ -0,0 +1,39 @@
1
+ import PropTypes from 'prop-types'
2
+
3
+ // React Native exports a11y prop definitions as TypeScript Interfaces, but no longer exports PropTypes
4
+ // so we have to define them ourselves.
5
+ export default {
6
+ accessible: PropTypes.bool,
7
+ focusable: PropTypes.bool,
8
+
9
+ accessibilityElementsHidden: PropTypes.bool,
10
+ accessibilityHint: PropTypes.string, // react-native-web ignores `accessibilityHint`
11
+ accessibilityIgnoresInvertColors: PropTypes.bool,
12
+ accessibilityLabel: PropTypes.string,
13
+ accessibilityRole: PropTypes.string,
14
+ accessibilityActions: PropTypes.arrayOf(
15
+ PropTypes.shape({
16
+ name: PropTypes.string.isRequired,
17
+ label: PropTypes.string
18
+ })
19
+ ),
20
+ accessibilityLiveRegion: PropTypes.oneOf(['none', 'polite', 'assertive']),
21
+ accessibilityState: PropTypes.shape({
22
+ disabled: PropTypes.bool,
23
+ selected: PropTypes.bool,
24
+ checked: PropTypes.oneOf([true, false, 'mixed']),
25
+ busy: PropTypes.bool,
26
+ expanded: PropTypes.bool
27
+ }),
28
+ accessibilityValue: PropTypes.shape({
29
+ min: PropTypes.number,
30
+ max: PropTypes.number,
31
+ now: PropTypes.number,
32
+ text: PropTypes.string
33
+ }),
34
+ accessibilityViewIsModal: PropTypes.bool,
35
+ importantForAccessibility: PropTypes.oneOf(['auto', 'yes', 'no', 'no-hide-descendants']),
36
+ onAccessibilityAction: PropTypes.func,
37
+ onAccessibilityEscape: PropTypes.func,
38
+ onAccessibilityTap: PropTypes.func
39
+ }
@@ -1,6 +1,7 @@
1
1
  import PropTypes from 'prop-types'
2
2
  import { Linking, Platform } from 'react-native'
3
3
  import { components as tokenKeys } from '@telus-uds/system-theme-tokens'
4
+ import a11yPropTypes from './a11y/propTypes'
4
5
 
5
6
  export const paddingProp = {
6
7
  propType: PropTypes.shape({
@@ -202,116 +203,6 @@ function getPropSelector(propTypes, regexp) {
202
203
  )
203
204
  }
204
205
 
205
- // React Native exports a11y prop definitions as TypeScript Interfaces, but no longer exports PropTypes
206
- // so we have to define them ourselves.
207
- const a11yPropTypes = {
208
- accessible: PropTypes.bool,
209
- focusable: PropTypes.bool,
210
-
211
- accessibilityElementsHidden: PropTypes.bool,
212
- accessibilityHint: PropTypes.string, // react-native-web ignores `accessibilityHint`
213
- accessibilityIgnoresInvertColors: PropTypes.bool,
214
- accessibilityLabel: PropTypes.string,
215
- accessibilityRole: PropTypes.string,
216
- accessibilityActions: PropTypes.arrayOf(
217
- PropTypes.shape({
218
- name: PropTypes.string.isRequired,
219
- label: PropTypes.string
220
- })
221
- ),
222
- accessibilityLiveRegion: PropTypes.oneOf(['none', 'polite', 'assertive']),
223
- accessibilityState: PropTypes.shape({
224
- disabled: PropTypes.bool,
225
- selected: PropTypes.bool,
226
- checked: PropTypes.oneOf([true, false, 'mixed']),
227
- busy: PropTypes.bool,
228
- expanded: PropTypes.bool
229
- }),
230
- accessibilityValue: PropTypes.shape({
231
- min: PropTypes.number,
232
- max: PropTypes.number,
233
- now: PropTypes.number,
234
- text: PropTypes.string
235
- }),
236
- accessibilityViewIsModal: PropTypes.bool,
237
- importantForAccessibility: PropTypes.oneOf(['auto', 'yes', 'no', 'no-hide-descendants']),
238
- onAccessibilityAction: PropTypes.func,
239
- onAccessibilityEscape: PropTypes.func,
240
- onAccessibilityTap: PropTypes.func,
241
- ...Platform.select({
242
- web: {
243
- // React Native Web adds many a11y props that alias aria-* attributes
244
- // Types based on https://necolas.github.io/react-native-web/docs/accessibility/
245
- accessibilityActiveDescendant: PropTypes.string,
246
- accessibilityAtomic: PropTypes.bool,
247
- accessibilityAutoComplete: PropTypes.string,
248
- accessibilityBusy: PropTypes.bool,
249
- accessibilityChecked: PropTypes.oneOf([true, false, 'mixed']),
250
- accessibilityColumnCount: PropTypes.number,
251
- accessibilityColumnIndex: PropTypes.number,
252
- accessibilityColumnSpan: PropTypes.number,
253
- accessibilityControls: PropTypes.oneOfType([
254
- PropTypes.string,
255
- PropTypes.arrayOf(PropTypes.string)
256
- ]),
257
- accessibilityCurrent: PropTypes.oneOf([
258
- true,
259
- false,
260
- 'page',
261
- 'step',
262
- 'location',
263
- 'date',
264
- 'time'
265
- ]),
266
- accessibilityDescribedBy: PropTypes.oneOfType([
267
- PropTypes.string,
268
- PropTypes.arrayOf(PropTypes.string)
269
- ]),
270
- accessibilityDetails: PropTypes.string,
271
- accessibilityDisabled: PropTypes.bool,
272
- accessibilityErrorMessage: PropTypes.string,
273
- accessibilityExpanded: PropTypes.bool,
274
- accessibilityFlowTo: PropTypes.oneOfType([
275
- PropTypes.string,
276
- PropTypes.arrayOf(PropTypes.string)
277
- ]),
278
- accessibilityHasPopup: PropTypes.string,
279
- accessibilityHidden: PropTypes.bool,
280
- accessibilityInvalid: PropTypes.bool,
281
- accessibilityKeyShortcuts: PropTypes.string,
282
- accessibilityLabelledBy: PropTypes.oneOfType([
283
- PropTypes.string,
284
- PropTypes.arrayOf(PropTypes.string)
285
- ]),
286
- accessibilityLevel: PropTypes.number,
287
- accessibilityModal: PropTypes.bool,
288
- accessibilityMultiline: PropTypes.bool,
289
- accessibilityMultiSelectable: PropTypes.bool,
290
- accessibilityOrientation: PropTypes.oneOf(['horizontal', 'vertical']),
291
- accessibilityOwns: PropTypes.oneOfType([
292
- PropTypes.string,
293
- PropTypes.arrayOf(PropTypes.string)
294
- ]),
295
- accessibilityPlaceholder: PropTypes.string,
296
- accessibilityPosInSet: PropTypes.number,
297
- accessibilityPressed: PropTypes.bool,
298
- accessibilityReadOnly: PropTypes.bool,
299
- accessibilityRequired: PropTypes.bool,
300
- accessibilityRoleDescription: PropTypes.string,
301
- accessibilityRowCount: PropTypes.number,
302
- accessibilityRowIndex: PropTypes.number,
303
- accessibilityRowSpan: PropTypes.number,
304
- accessibilitySelected: PropTypes.bool,
305
- accessibilitySetSize: PropTypes.number,
306
- accessibilitySort: PropTypes.oneOf(['ascending', 'descending', 'none', 'other']),
307
- accessibilityValueMax: PropTypes.number,
308
- accessibilityValueMin: PropTypes.number,
309
- accessibilityValueNow: PropTypes.number,
310
- accessibilityValueText: PropTypes.string
311
- }
312
- })
313
- }
314
-
315
206
  export const a11yProps = {
316
207
  /**
317
208
  * Proptypes for recognised React Native accessiblity (a11y) props.
@@ -12,7 +12,7 @@ const defaultArgs = {
12
12
  }
13
13
 
14
14
  export default {
15
- title: 'Base/A11yText',
15
+ title: 'A11yText',
16
16
  component: A11yText,
17
17
  parameters: defaultArgs
18
18
  }
@@ -4,7 +4,7 @@ import { ActivityIndicator } from '../../src'
4
4
  import { EachParentType, parentTypesParams } from '../supports'
5
5
 
6
6
  export default {
7
- title: 'Base/ActivityIndicator',
7
+ title: 'ActivityIndicator',
8
8
  component: ActivityIndicator,
9
9
  args: {
10
10
  label: 'loading...'
@@ -12,7 +12,7 @@ import {
12
12
  } from '../supports'
13
13
 
14
14
  export default {
15
- title: 'Base/Box',
15
+ title: 'Box',
16
16
  component: Box
17
17
  }
18
18
 
@@ -10,7 +10,7 @@ Default.storyName = 'Button'
10
10
  const defaultLabel = "I'm a button"
11
11
 
12
12
  export default {
13
- title: 'Base/Button',
13
+ title: 'Button',
14
14
  component: Button,
15
15
  args: {
16
16
  // eslint-disable-next-line no-console
@@ -22,7 +22,7 @@ const defaultControlledArgs = {
22
22
  }
23
23
 
24
24
  export default {
25
- title: 'Base/ButtonGroup',
25
+ title: 'ButtonGroup',
26
26
  component: ButtonGroup,
27
27
  args: {
28
28
  ...defaultArgs
@@ -3,7 +3,7 @@ import { ButtonLink } from '../../src'
3
3
  import { Container, useVariants } from '../supports'
4
4
 
5
5
  export default {
6
- title: 'Base/ButtonLink',
6
+ title: 'ButtonLink',
7
7
  component: ButtonLink,
8
8
  args: {
9
9
  children: "I'm a button link",
@@ -6,7 +6,7 @@ import { Card } from '../../src'
6
6
  import { Container, useVariants, EachParentType, parentTypesParams } from '../supports'
7
7
 
8
8
  export default {
9
- title: 'Base/Card',
9
+ title: 'Card',
10
10
  component: Card
11
11
  }
12
12
 
@@ -5,7 +5,7 @@ import { Checkbox, CheckboxGroup, Typography } from '../../src'
5
5
  import { Container, EachParentType, parentTypesParams } from '../supports'
6
6
 
7
7
  export default {
8
- title: 'Base/Checkbox',
8
+ title: 'Checkbox',
9
9
  component: Checkbox,
10
10
  argTypes: {
11
11
  checked: {
@@ -5,7 +5,7 @@ import { Divider, Typography } from '../../src'
5
5
  import { EachParentType, parentTypesParams } from '../supports'
6
6
 
7
7
  export default {
8
- title: 'Base/Divider',
8
+ title: 'Divider',
9
9
  component: Divider
10
10
  }
11
11
 
@@ -6,7 +6,7 @@ import { Container, EachParentType, parentTypesParams } from '../supports'
6
6
  import { useMultipleInputValues } from '../../src/utils'
7
7
 
8
8
  export default {
9
- title: 'Base/ExpandCollapse',
9
+ title: 'ExpandCollapse',
10
10
  component: ExpandCollapse,
11
11
  args: {
12
12
  children: () => {}
@@ -5,7 +5,7 @@ import { Feedback, Typography, TextInput } from '../../src'
5
5
  import { Container } from '../supports'
6
6
 
7
7
  export default {
8
- title: 'Base/Feedback',
8
+ title: 'Feedback',
9
9
  component: Feedback
10
10
  }
11
11
 
@@ -7,7 +7,7 @@ import { Placeholder, EachParentType, parentTypesParams } from '../supports'
7
7
  const { Row, Col } = FlexGrid
8
8
 
9
9
  export default {
10
- title: 'Base/FlexGrid/FlexGrid',
10
+ title: 'FlexGrid/FlexGrid',
11
11
  component: FlexGrid
12
12
  }
13
13
 
@@ -6,7 +6,7 @@ import { Placeholder } from '../supports'
6
6
  const { Row, Col } = FlexGrid
7
7
 
8
8
  export default {
9
- title: 'Base/FlexGrid/Row',
9
+ title: 'FlexGrid/Row',
10
10
  component: Row
11
11
  }
12
12
 
@@ -6,7 +6,7 @@ import { Placeholder } from '../supports'
6
6
  const { Row, Col } = FlexGrid
7
7
 
8
8
  export default {
9
- title: 'Base/FlexGrid/Col',
9
+ title: 'FlexGrid/Col',
10
10
  component: Col,
11
11
  argTypes: {
12
12
  xs: {
@@ -7,7 +7,7 @@ import { Container, useVariants, EachIcon, EachParentType, parentTypesParams } f
7
7
  import { Icon, StackWrap, Tooltip } from '../../src'
8
8
 
9
9
  export default {
10
- title: 'Base/Icon',
10
+ title: 'Icon',
11
11
  component: Icon,
12
12
  argTypes: {
13
13
  label: {
@@ -8,7 +8,7 @@ import { Box, IconButton, StackView } from '../../src'
8
8
  import { useVariants, EachParentType, parentTypesParams } from '../supports'
9
9
 
10
10
  export default {
11
- title: 'Base/IconButton',
11
+ title: 'IconButton',
12
12
  component: IconButton
13
13
  }
14
14
 
@@ -4,7 +4,7 @@ import React from 'react'
4
4
  import InputLabel from '../../src/InputLabel/InputLabel'
5
5
 
6
6
  export default {
7
- title: 'Base/InputLabel',
7
+ title: 'InputLabel',
8
8
  component: InputLabel
9
9
  }
10
10
 
@@ -5,7 +5,7 @@ import { ChevronLink } from '../../src'
5
5
  import { Container, EachParentType, parentTypesParams, useVariants } from '../supports'
6
6
 
7
7
  export default {
8
- title: 'Base/ChevronLink',
8
+ title: 'ChevronLink',
9
9
  component: ChevronLink,
10
10
  args: {
11
11
  href: 'https://example.com'
@@ -8,7 +8,7 @@ import { Link, Typography, variantProp } from '../../src'
8
8
  import { Container, EachIcon, EachParentType, parentTypesParams, useVariants } from '../supports'
9
9
 
10
10
  export default {
11
- title: 'Base/Link',
11
+ title: 'Link',
12
12
  component: Link,
13
13
  args: {
14
14
  href: `https://telus.com/?unvisited:${Date.now()}`,
@@ -10,7 +10,7 @@ import { TextButton, variantProp } from '../../src'
10
10
  import { Container, EachParentType, useVariants, parentTypesParams } from '../supports'
11
11
 
12
12
  export default {
13
- title: 'Base/TextButton',
13
+ title: 'TextButton',
14
14
  component: TextButton,
15
15
  args: {
16
16
  // eslint-disable-next-line no-console
@@ -9,7 +9,7 @@ import { useVariants, Container } from '../supports'
9
9
  import { List, Typography } from '../../src'
10
10
 
11
11
  export default {
12
- title: 'Base/List',
12
+ title: 'List',
13
13
  component: List
14
14
  }
15
15
 
@@ -3,7 +3,7 @@ import React, { useState } from 'react'
3
3
  import { Button, Modal, Spacer, Typography } from '../../src'
4
4
 
5
5
  export default {
6
- title: 'Base/Modal',
6
+ title: 'Modal',
7
7
  component: Modal
8
8
  }
9
9
 
@@ -6,7 +6,7 @@ import { Link, Notification, Typography } from '../../src'
6
6
  import { Container } from '../supports'
7
7
 
8
8
  export default {
9
- title: 'Base/Notification',
9
+ title: 'Notification',
10
10
  component: Notification
11
11
  }
12
12
 
@@ -6,7 +6,7 @@ import { Pagination, Typography } from '../../src'
6
6
  import { Container, EachParentType, parentTypesParams } from '../supports'
7
7
 
8
8
  export default {
9
- title: 'Base/Pagination',
9
+ title: 'Pagination',
10
10
  component: Pagination
11
11
  }
12
12
 
@@ -5,7 +5,7 @@ import { Progress, StackView, Typography } from '../../src'
5
5
  import { Container, EachParentType, parentTypesParams } from '../supports'
6
6
 
7
7
  export default {
8
- title: 'Base/Progress',
8
+ title: 'Progress',
9
9
  component: Progress.Bar,
10
10
  args: { accessibilityLabel: 'Progress Bar' }
11
11
  }
@@ -5,7 +5,7 @@ import { Radio, RadioGroup, Typography } from '../../src'
5
5
  import { Container, EachParentType, parentTypesParams } from '../supports'
6
6
 
7
7
  export default {
8
- title: 'Base/Radio',
8
+ title: 'Radio',
9
9
  component: Radio,
10
10
  argTypes: {
11
11
  checked: {
@@ -5,7 +5,7 @@ import { RadioCard, RadioCardGroup, Typography } from '../../src'
5
5
  import { Container, EachParentType, parentTypesParams } from '../supports'
6
6
 
7
7
  export default {
8
- title: 'Base/RadioCard',
8
+ title: 'RadioCard',
9
9
  component: RadioCard
10
10
  }
11
11
 
@@ -3,7 +3,7 @@ import React from 'react'
3
3
  import { Search } from '../../src'
4
4
 
5
5
  export default {
6
- title: 'Base/Search',
6
+ title: 'Search',
7
7
  component: Search
8
8
  }
9
9
 
@@ -4,7 +4,7 @@ import { Text } from 'react-native'
4
4
  import { Select } from '../../src'
5
5
 
6
6
  export default {
7
- title: 'Base/Select',
7
+ title: 'Select',
8
8
  component: Select
9
9
  }
10
10
 
@@ -5,7 +5,7 @@ import { SideNav } from '../../src'
5
5
  import { EachParentType, parentTypesParams } from '../supports'
6
6
 
7
7
  export default {
8
- title: 'Base/SideNav',
8
+ title: 'SideNav',
9
9
  component: SideNav
10
10
  }
11
11
 
@@ -2,7 +2,7 @@ import React from 'react'
2
2
  import { SideNav } from '../../src'
3
3
 
4
4
  export default {
5
- title: 'Base/SideNav/Item',
5
+ title: 'SideNav/Item',
6
6
  component: SideNav.Item
7
7
  }
8
8
 
@@ -2,7 +2,7 @@ import React from 'react'
2
2
  import { SideNav } from '../../src'
3
3
 
4
4
  export default {
5
- title: 'Base/SideNav/Items Group',
5
+ title: 'SideNav/Items Group',
6
6
  component: SideNav.ItemsGroup
7
7
  }
8
8
 
@@ -6,7 +6,7 @@ import StackView from '../../src/StackView'
6
6
  import { Skeleton } from '../../src'
7
7
 
8
8
  export default {
9
- title: 'Base/Skeleton',
9
+ title: 'Skeleton',
10
10
  component: Skeleton
11
11
  }
12
12
 
@@ -6,7 +6,7 @@ import { Spacer, Typography } from '../../src'
6
6
  import { Container } from '../supports'
7
7
 
8
8
  export default {
9
- title: 'Base/Spacer',
9
+ title: 'Spacer',
10
10
  component: Spacer
11
11
  }
12
12
 
@@ -6,7 +6,7 @@ import { View } from 'react-native'
6
6
  import { StackView, Card, Typography, Button } from '../../src'
7
7
 
8
8
  export default {
9
- title: 'Base/StackView',
9
+ title: 'StackView',
10
10
  component: StackView
11
11
  }
12
12