@telus-uds/components-base 4.0.0-alpha.2 → 4.0.0-beta.1

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 (120) hide show
  1. package/CHANGELOG.md +47 -1
  2. package/lib/cjs/Autocomplete/Autocomplete.js +13 -1
  3. package/lib/cjs/Autocomplete/constants.js +1 -1
  4. package/lib/cjs/Button/ButtonGroup.js +91 -23
  5. package/lib/cjs/Card/CardBase.js +75 -47
  6. package/lib/cjs/ColourToggle/ColourBubble.js +66 -13
  7. package/lib/cjs/ColourToggle/ColourToggle.js +41 -11
  8. package/lib/cjs/ColourToggle/constants.js +15 -0
  9. package/lib/cjs/ColourToggle/dictionary.js +14 -0
  10. package/lib/cjs/Listbox/ListboxOverlay.js +7 -1
  11. package/lib/cjs/MultiSelectFilter/ModalOverlay.js +7 -1
  12. package/lib/cjs/MultiSelectFilter/MultiSelectFilter.js +2 -28
  13. package/lib/cjs/TextInput/TextInputBase.js +2 -1
  14. package/lib/cjs/Validator/Validator.js +5 -1
  15. package/lib/cjs/utils/useOverlaidPosition.js +83 -42
  16. package/lib/esm/Autocomplete/Autocomplete.js +13 -1
  17. package/lib/esm/Autocomplete/constants.js +1 -1
  18. package/lib/esm/Button/ButtonGroup.js +91 -23
  19. package/lib/esm/Card/CardBase.js +75 -47
  20. package/lib/esm/ColourToggle/ColourBubble.js +67 -14
  21. package/lib/esm/ColourToggle/ColourToggle.js +41 -11
  22. package/lib/esm/ColourToggle/constants.js +8 -0
  23. package/lib/esm/ColourToggle/dictionary.js +8 -0
  24. package/lib/esm/Listbox/ListboxOverlay.js +7 -1
  25. package/lib/esm/MultiSelectFilter/ModalOverlay.js +8 -2
  26. package/lib/esm/MultiSelectFilter/MultiSelectFilter.js +2 -28
  27. package/lib/esm/TextInput/TextInputBase.js +2 -1
  28. package/lib/esm/Validator/Validator.js +5 -1
  29. package/lib/esm/utils/useOverlaidPosition.js +83 -42
  30. package/lib/package.json +3 -3
  31. package/package.json +3 -3
  32. package/src/Autocomplete/Autocomplete.jsx +11 -2
  33. package/src/Autocomplete/constants.js +1 -1
  34. package/src/Button/ButtonGroup.jsx +93 -24
  35. package/src/Card/CardBase.jsx +94 -75
  36. package/src/ColourToggle/ColourBubble.jsx +62 -7
  37. package/src/ColourToggle/ColourToggle.jsx +43 -9
  38. package/src/ColourToggle/constants.js +10 -0
  39. package/src/ColourToggle/dictionary.js +4 -0
  40. package/src/Listbox/ListboxOverlay.jsx +6 -2
  41. package/src/MultiSelectFilter/ModalOverlay.jsx +9 -3
  42. package/src/MultiSelectFilter/MultiSelectFilter.jsx +1 -31
  43. package/src/TextInput/TextInputBase.jsx +2 -1
  44. package/src/Validator/Validator.jsx +5 -1
  45. package/src/utils/useOverlaidPosition.js +84 -34
  46. package/types/A11yInfoProvider.d.ts +9 -0
  47. package/types/A11yText.d.ts +13 -0
  48. package/types/ActionCard.d.ts +19 -0
  49. package/types/ActivityIndicator.d.ts +13 -0
  50. package/types/Autocomplete.d.ts +27 -0
  51. package/types/Badge.d.ts +15 -4
  52. package/types/BaseProvider.d.ts +26 -0
  53. package/types/Box.d.ts +13 -3
  54. package/types/Button.d.ts +35 -0
  55. package/types/Card.d.ts +19 -0
  56. package/types/CardGroup.d.ts +23 -0
  57. package/types/Carousel.d.ts +25 -0
  58. package/types/Checkbox.d.ts +15 -2
  59. package/types/CheckboxCard.d.ts +20 -0
  60. package/types/CheckboxCardGroup.d.ts +10 -4
  61. package/types/ChevronLink.d.ts +9 -2
  62. package/types/ColourToggle.d.ts +16 -0
  63. package/types/Common.d.ts +7 -3
  64. package/types/Divider.d.ts +13 -1
  65. package/types/DownloadApp.d.ts +19 -0
  66. package/types/ExpandCollapse.d.ts +16 -9
  67. package/types/ExpandCollapseMini.d.ts +16 -0
  68. package/types/Feedback.d.ts +16 -0
  69. package/types/Fieldset.d.ts +17 -0
  70. package/types/FileUpload.d.ts +6 -0
  71. package/types/FlexGrid.d.ts +57 -0
  72. package/types/Footnote.d.ts +18 -0
  73. package/types/HorizontalScroll.d.ts +15 -0
  74. package/types/HorizontalScrollButton.d.ts +17 -1
  75. package/types/Icon.d.ts +13 -2
  76. package/types/IconButton.d.ts +19 -0
  77. package/types/InputLabel.d.ts +12 -0
  78. package/types/InputSupports.d.ts +19 -0
  79. package/types/Link.d.ts +20 -4
  80. package/types/List.d.ts +11 -4
  81. package/types/Listbox.d.ts +13 -3
  82. package/types/Modal.d.ts +25 -0
  83. package/types/MultiSelectFilter.d.ts +24 -0
  84. package/types/Notification.d.ts +19 -0
  85. package/types/OrderedList.d.ts +17 -0
  86. package/types/Pagination.d.ts +25 -0
  87. package/types/Portal.d.ts +5 -1
  88. package/types/PriceLockup.d.ts +28 -0
  89. package/types/ProductCard.d.ts +20 -0
  90. package/types/ProductCardGroup.d.ts +21 -0
  91. package/types/Progress.d.ts +22 -0
  92. package/types/QuickLinks.d.ts +27 -0
  93. package/types/QuickLinksFeature.d.ts +27 -0
  94. package/types/Radio.d.ts +22 -0
  95. package/types/RadioCard.d.ts +21 -0
  96. package/types/Responsive.d.ts +14 -0
  97. package/types/Scroll.d.ts +2 -2
  98. package/types/Search.d.ts +15 -2
  99. package/types/Select.d.ts +12 -4
  100. package/types/SideNav.d.ts +38 -0
  101. package/types/Skeleton.d.ts +17 -0
  102. package/types/SkipLink.d.ts +14 -0
  103. package/types/Spacer.d.ts +8 -1
  104. package/types/StackView.d.ts +8 -2
  105. package/types/Status.d.ts +2 -3
  106. package/types/StepTracker.d.ts +16 -0
  107. package/types/TabBar.d.ts +25 -0
  108. package/types/Tabs.d.ts +12 -3
  109. package/types/Tags.d.ts +24 -0
  110. package/types/TextButton.d.ts +11 -4
  111. package/types/TextInput.d.ts +38 -0
  112. package/types/ThemeProvider.d.ts +29 -0
  113. package/types/Timeline.d.ts +16 -0
  114. package/types/ToggleSwitch.d.ts +11 -2
  115. package/types/ToolTip.d.ts +7 -3
  116. package/types/TooltipButton.d.ts +20 -0
  117. package/types/Typography.d.ts +8 -2
  118. package/types/Validator.d.ts +16 -0
  119. package/types/ViewportProvider.d.ts +12 -0
  120. package/types/index.d.ts +197 -50
@@ -0,0 +1,21 @@
1
+ import type { ComponentType } from 'react'
2
+
3
+ export interface ProductCardGroupCardItem {
4
+ id: string
5
+ image?: Record<string, any>
6
+ dictionary?: Record<string, any>
7
+ [key: string]: any
8
+ }
9
+
10
+ export interface ProductCardGroupProps {
11
+ maxSelection?: number
12
+ productCards: ProductCardGroupCardItem[]
13
+ tokens?: Record<string, string | number | boolean | object>
14
+ variant?: Record<string, string | number | boolean | undefined>
15
+ testID?: string
16
+ dataSet?: Record<string, any>
17
+ }
18
+
19
+ declare const ProductCardGroup: ComponentType<ProductCardGroupProps>
20
+
21
+ export { ProductCardGroup }
@@ -0,0 +1,22 @@
1
+ import type { ComponentType, ReactNode } from 'react'
2
+
3
+ export interface ProgressBarProps {
4
+ value?: number
5
+ tokens?: Record<string, string | number | boolean | object>
6
+ variant?: Record<string, string | number | boolean | undefined>
7
+ testID?: string
8
+ }
9
+
10
+ export interface ProgressProps {
11
+ children: ReactNode
12
+ tokens?: Record<string, string | number | boolean | object>
13
+ variant?: Record<string, string | number | boolean | undefined>
14
+ testID?: string
15
+ dataSet?: Record<string, any>
16
+ }
17
+
18
+ declare const Progress: ComponentType<ProgressProps> & {
19
+ Bar: ComponentType<ProgressBarProps>
20
+ }
21
+
22
+ export { Progress }
@@ -0,0 +1,27 @@
1
+ import type { ComponentType, ReactNode } from 'react'
2
+
3
+ export interface QuickLinksItemProps {
4
+ children?: ReactNode
5
+ href?: string
6
+ onPress?: () => void
7
+ icon?: ComponentType<any>
8
+ tokens?: Record<string, string | number | boolean | object>
9
+ testID?: string
10
+ }
11
+
12
+ export interface QuickLinksProps {
13
+ children?: ReactNode
14
+ tokens?: Record<string, string | number | boolean | object>
15
+ cardTokens?: Record<string, string | number | boolean | object>
16
+ listTokens?: Record<string, string | number | boolean | object>
17
+ tag?: string
18
+ variant?: Record<string, string | number | boolean | undefined>
19
+ testID?: string
20
+ dataSet?: Record<string, any>
21
+ }
22
+
23
+ declare const QuickLinks: ComponentType<QuickLinksProps> & {
24
+ Item: ComponentType<QuickLinksItemProps>
25
+ }
26
+
27
+ export { QuickLinks }
@@ -0,0 +1,27 @@
1
+ import type { ComponentType, ReactNode, ElementType } from 'react'
2
+
3
+ export interface QuickLinksFeatureItemProps {
4
+ children: ReactNode
5
+ imageAccessibilityLabel: string
6
+ imageSource: string | ReactNode
7
+ tokens?: Record<string, string | number | boolean | object>
8
+ variant?: Record<string, string | number | boolean | undefined>
9
+ href?: string
10
+ onPress?: () => void
11
+ LinkRouter?: ElementType
12
+ linkRouterProps?: Record<string, any>
13
+ }
14
+
15
+ export interface QuickLinksFeatureProps {
16
+ children?: ReactNode
17
+ tokens?: Record<string, string | number | boolean | object>
18
+ variant?: Record<string, string | number | boolean | undefined>
19
+ testID?: string
20
+ dataSet?: Record<string, any>
21
+ }
22
+
23
+ declare const QuickLinksFeature: ComponentType<QuickLinksFeatureProps> & {
24
+ Item: ComponentType<QuickLinksFeatureItemProps>
25
+ }
26
+
27
+ export { QuickLinksFeature }
@@ -0,0 +1,22 @@
1
+ import type { ComponentType, ReactNode } from 'react'
2
+
3
+ export interface RadioProps {
4
+ checked?: boolean
5
+ defaultChecked?: boolean
6
+ description?: string
7
+ id?: string
8
+ inactive?: boolean
9
+ label?: string | ReactNode
10
+ name?: string
11
+ onChange?: (value: any) => void
12
+ value?: any
13
+ tokens?: Record<string, string | number | boolean | object>
14
+ variant?: Record<string, string | number | boolean | undefined>
15
+ testID?: string
16
+ dataSet?: Record<string, any>
17
+ accessibilityLabel?: string
18
+ }
19
+
20
+ declare const Radio: ComponentType<RadioProps>
21
+
22
+ export { Radio }
@@ -0,0 +1,21 @@
1
+ import type { ComponentType, ReactNode } from 'react'
2
+
3
+ export interface RadioCardProps {
4
+ title?: string
5
+ children?: ReactNode | ((state: Record<string, any>) => ReactNode)
6
+ checked?: boolean
7
+ defaultChecked?: boolean
8
+ description?: string
9
+ id?: string
10
+ inactive?: boolean
11
+ onChange?: (value: any) => void
12
+ tokens?: Record<string, string | number | boolean | object>
13
+ variant?: Record<string, string | number | boolean | undefined>
14
+ testID?: string
15
+ dataSet?: Record<string, any>
16
+ accessibilityLabel?: string
17
+ }
18
+
19
+ declare const RadioCard: ComponentType<RadioCardProps>
20
+
21
+ export { RadioCard }
@@ -0,0 +1,14 @@
1
+ import type { ComponentType, ReactNode } from 'react'
2
+
3
+ export type ViewportKey = 'xs' | 'sm' | 'md' | 'lg' | 'xl'
4
+
5
+ export interface ResponsiveProps {
6
+ min?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
7
+ max?: 'sm' | 'md' | 'lg' | 'xl'
8
+ inheritedStyles?: string[]
9
+ children: ReactNode
10
+ }
11
+
12
+ declare const Responsive: ComponentType<ResponsiveProps>
13
+
14
+ export { Responsive }
package/types/Scroll.d.ts CHANGED
@@ -61,6 +61,6 @@ export interface ScrollItemProps {
61
61
  }
62
62
 
63
63
  declare const Scroll: ComponentType<ScrollProps>
64
- export declare const ScrollItem: ComponentType<ScrollItemProps>
64
+ declare const ScrollItem: ComponentType<ScrollItemProps>
65
65
 
66
- export default Scroll
66
+ export { Scroll, ScrollItem }
package/types/Search.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { ComponentType } from 'react'
1
2
  import { CopyType, Size } from './Common'
2
3
 
3
4
  export type SearchTokens = {
@@ -20,8 +21,8 @@ export type SearchTokens = {
20
21
  lineHeight?: number
21
22
  placeholderColor?: string
22
23
  buttonsGap?: Size
23
- clearButtonIcon?: React.ReactNode
24
- submitButtonIcon?: React.ReactNode
24
+ clearButtonIcon?: any
25
+ submitButtonIcon?: any
25
26
  }
26
27
 
27
28
  export interface SearchProps {
@@ -35,4 +36,16 @@ export interface SearchProps {
35
36
  onClear?: () => void
36
37
  onFocus?: () => void
37
38
  tokens?: SearchTokens
39
+ nativeSubmitBtnID?: string
40
+ searchIconPosition?: 'left' | 'right'
41
+ pointerEvents?: 'all' | 'none' | 'box-only' | 'box-none'
42
+ onLayout?: (event: any) => void
43
+ nativeID?: string
44
+ dataSet?: Record<string, any>
45
+ accessibilityLabel?: string
46
+ accessibilityRole?: string
38
47
  }
48
+
49
+ declare const Search: ComponentType<SearchProps>
50
+
51
+ export { Search }
package/types/Select.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React from 'react'
1
+ import type { ComponentType, ReactNode } from 'react'
2
2
  import { IconProps } from './Icon'
3
3
 
4
4
  export type SelectTokens = {
@@ -28,7 +28,7 @@ export type SelectTokens = {
28
28
  }
29
29
 
30
30
  export interface SelectProps {
31
- children: string | React.ReactNode
31
+ children: string | ReactNode
32
32
  label: string
33
33
  initialValue?: string
34
34
  feedback?: string
@@ -44,14 +44,22 @@ export interface SelectProps {
44
44
  placeholder?: string
45
45
  tokens?: SelectTokens
46
46
  testID?: string
47
+ dataSet?: Record<string, any>
47
48
  }
48
49
 
49
50
  export interface SelectItemProps {
50
- children: string | React.ReactNode
51
+ children: string | ReactNode
51
52
  value: string
52
53
  }
53
54
 
54
55
  export interface SelectGroupProps {
55
- children: string | React.ReactNode
56
+ children: string | ReactNode
56
57
  label: string
57
58
  }
59
+
60
+ declare const Select: ComponentType<SelectProps> & {
61
+ Item: ComponentType<SelectItemProps>
62
+ Group: ComponentType<SelectGroupProps>
63
+ }
64
+
65
+ export { Select }
@@ -0,0 +1,38 @@
1
+ import type { ComponentType, ReactNode } from 'react'
2
+
3
+ export interface SideNavItemProps {
4
+ children?: ReactNode
5
+ label?: string
6
+ href?: string
7
+ onPress?: () => void
8
+ id?: string
9
+ tokens?: Record<string, string | number | boolean | object>
10
+ }
11
+
12
+ export interface SideNavItemsGroupProps {
13
+ children?: ReactNode
14
+ label: string
15
+ groupId?: string
16
+ onToggle?: () => void
17
+ openGroups?: Array<string | number>
18
+ isActive?: boolean
19
+ variant?: Record<string, string | number | boolean | undefined>
20
+ tokens?: Record<string, string | number | boolean | object>
21
+ }
22
+
23
+ export interface SideNavProps {
24
+ children?: ReactNode
25
+ tokens?: Record<string, string | number | boolean | object>
26
+ variant?: Record<string, string | number | boolean | undefined>
27
+ openGroups?: Array<string | number>
28
+ onToggle?: (groupId: string) => void
29
+ testID?: string
30
+ dataSet?: Record<string, any>
31
+ }
32
+
33
+ declare const SideNav: ComponentType<SideNavProps> & {
34
+ ItemsGroup: ComponentType<SideNavItemsGroupProps>
35
+ Item: ComponentType<SideNavItemProps>
36
+ }
37
+
38
+ export { SideNav }
@@ -0,0 +1,17 @@
1
+ import type { ComponentType } from 'react'
2
+
3
+ export interface SkeletonProps {
4
+ tokens?: Record<string, string | number | boolean | object>
5
+ variant?: Record<string, string | number | boolean | undefined>
6
+ sizeIndex?: number | Record<string, number>
7
+ sizePixels?: number | Record<string, number>
8
+ characters?: number
9
+ lines?: number
10
+ shape?: 'line' | 'circle' | 'square'
11
+ testID?: string
12
+ dataSet?: Record<string, any>
13
+ }
14
+
15
+ declare const Skeleton: ComponentType<SkeletonProps>
16
+
17
+ export { Skeleton }
@@ -0,0 +1,14 @@
1
+ import type { ComponentType, ReactNode } from 'react'
2
+
3
+ export interface SkipLinkProps {
4
+ children?: ReactNode
5
+ href?: string
6
+ tokens?: Record<string, string | number | boolean | object>
7
+ variant?: Record<string, string | number | boolean | undefined>
8
+ testID?: string
9
+ dataSet?: Record<string, any>
10
+ }
11
+
12
+ declare const SkipLink: ComponentType<SkipLinkProps>
13
+
14
+ export { SkipLink }
package/types/Spacer.d.ts CHANGED
@@ -1,5 +1,12 @@
1
+ import type { ComponentType } from 'react'
2
+
1
3
  export interface SpacerProps {
2
- space?: number
4
+ space?: number | Record<string, number>
3
5
  direction?: 'column' | 'row'
4
6
  testID?: string
7
+ dataSet?: Record<string, any>
5
8
  }
9
+
10
+ declare const Spacer: ComponentType<SpacerProps>
11
+
12
+ export { Spacer }
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react'
1
+ import type { ComponentType, ReactNode } from 'react'
2
2
  import {
3
3
  Direction,
4
4
  FlexAlign,
@@ -9,7 +9,7 @@ import {
9
9
  } from './Common'
10
10
  import { DividerProps } from './Divider'
11
11
 
12
- type StackViewTokens = {
12
+ export type StackViewTokens = {
13
13
  alignItems?: FlexAlign
14
14
  justifyContent?: FlexJustify
15
15
  flexGrow?: number
@@ -25,4 +25,10 @@ export interface StackViewProps {
25
25
  tag?: SemanticTag
26
26
  children: ReactNode
27
27
  testID?: string
28
+ dataSet?: Record<string, any>
29
+ accessibilityRole?: string
28
30
  }
31
+
32
+ declare const StackView: ComponentType<StackViewProps>
33
+
34
+ export { StackView }
package/types/Status.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import type { Variant } from '../../components-web/types/common'
2
- import { ComponentType, ReactNode } from 'react'
3
-
1
+ import type { ComponentType, ReactNode } from 'react'
2
+ import { Variant } from './Common'
4
3
  import { IconProps } from './Icon'
5
4
 
6
5
  export type StatusTokensProps = {
@@ -0,0 +1,16 @@
1
+ import type { ComponentType } from 'react'
2
+
3
+ export interface StepTrackerProps {
4
+ current?: number
5
+ copy?: 'en' | 'fr' | Record<string, any>
6
+ dictionary?: Record<string, any>
7
+ steps?: string[]
8
+ tokens?: Record<string, string | number | boolean | object>
9
+ variant?: Record<string, string | number | boolean | undefined>
10
+ testID?: string
11
+ dataSet?: Record<string, any>
12
+ }
13
+
14
+ declare const StepTracker: ComponentType<StepTrackerProps>
15
+
16
+ export { StepTracker }
@@ -0,0 +1,25 @@
1
+ import type { ComponentType, ReactNode } from 'react'
2
+
3
+ export interface TabBarItem {
4
+ id: string
5
+ icon?: ReactNode
6
+ iconActive?: ReactNode
7
+ label: string
8
+ href?: string
9
+ tokens?: Record<string, string | number | boolean | object>
10
+ }
11
+
12
+ export interface TabBarProps {
13
+ items: TabBarItem[]
14
+ initiallySelectedItem?: number
15
+ onChange?: (id: string) => void
16
+ variant?: Record<string, string | number | boolean | undefined>
17
+ tokens?: Record<string, string | number | boolean | object>
18
+ accessibilityLabel?: string
19
+ testID?: string
20
+ dataSet?: Record<string, any>
21
+ }
22
+
23
+ declare const TabBar: ComponentType<TabBarProps>
24
+
25
+ export { TabBar }
package/types/Tabs.d.ts CHANGED
@@ -1,15 +1,18 @@
1
+ import type { ComponentType, ElementType } from 'react'
1
2
  import { Size } from './Common'
2
3
  import { IconProps } from './Icon'
3
4
  import { TypographyVariants, TypographyTokens } from './Typography'
4
5
  import { HorizontalScrollButtonTokens } from './HorizontalScrollButton'
5
6
 
6
- type TabsItem = {
7
+ export type TabsItem = {
7
8
  label: string
8
9
  href: string
9
10
  id: string
11
+ linkRouter?: ElementType
12
+ linkRouterProps?: Record<string, any>
10
13
  }
11
14
 
12
- type TabsVariant = {
15
+ export type TabsVariant = {
13
16
  equalWidth?: string
14
17
  inverse?: boolean
15
18
  }
@@ -19,9 +22,11 @@ export interface TabsProps {
19
22
  value?: string
20
23
  initialValue?: string
21
24
  onChange?: () => void
22
- itemTokens?: TabsItem
25
+ itemTokens?: Partial<TabsTokens>
23
26
  scrollButtonTokens?: HorizontalScrollButtonTokens
24
27
  variant?: TabsVariant
28
+ LinkRouter?: ElementType
29
+ linkRouterProps?: Record<string, any>
25
30
  }
26
31
 
27
32
  export type TabsTokens = {
@@ -44,3 +49,7 @@ export interface TabSelectorProps {
44
49
  testID?: string
45
50
  selectedTestID?: string
46
51
  }
52
+
53
+ declare const Tabs: ComponentType<TabsProps>
54
+
55
+ export { Tabs }
@@ -0,0 +1,24 @@
1
+ import type { ComponentType } from 'react'
2
+
3
+ export interface TagItem {
4
+ id?: string
5
+ label: string
6
+ accessibilityLabel?: string
7
+ defaultChecked?: boolean
8
+ checked?: boolean
9
+ [key: string]: any
10
+ }
11
+
12
+ export interface TagsProps {
13
+ items: TagItem[]
14
+ maxValues?: number
15
+ tokens?: Record<string, string | number | boolean | object>
16
+ variant?: Record<string, string | number | boolean | undefined>
17
+ onChange?: (selectedIds: string[]) => void
18
+ testID?: string
19
+ dataSet?: Record<string, any>
20
+ }
21
+
22
+ declare const Tags: ComponentType<TagsProps>
23
+
24
+ export { Tags }
@@ -1,11 +1,18 @@
1
- import React from 'react'
1
+ import type { ComponentType, ReactNode } from 'react'
2
2
  import { LinkTokens, LinkAndTextButtonVariants } from './Link'
3
3
 
4
4
  export interface TextButtonProps {
5
- onPress: () => void
6
- accessibilityLabel: string
7
- children: string | React.ReactNode
5
+ onPress?: () => void
6
+ accessibilityLabel?: string
7
+ children: string | ReactNode
8
8
  variant?: LinkAndTextButtonVariants
9
9
  tokens?: LinkTokens
10
10
  testID?: string
11
+ href?: string
12
+ onPressIn?: () => void
13
+ onPressOut?: () => void
11
14
  }
15
+
16
+ declare const TextButton: ComponentType<TextButtonProps>
17
+
18
+ export { TextButton }
@@ -0,0 +1,38 @@
1
+ import type { ComponentType } from 'react'
2
+
3
+ export interface TextInputProps {
4
+ value?: string
5
+ type?: string
6
+ initialValue?: string
7
+ inactive?: boolean
8
+ readOnly?: boolean
9
+ onChange?: (value: string, event?: any) => void
10
+ label?: string
11
+ hint?: string
12
+ hintPosition?: 'inline' | 'below'
13
+ feedback?: string
14
+ validation?: 'error' | 'success'
15
+ tooltip?: string | Record<string, any>
16
+ copy?: 'en' | 'fr'
17
+ placeholder?: string
18
+ id?: string
19
+ name?: string
20
+ maxLength?: number
21
+ multiline?: boolean
22
+ numberOfLines?: number
23
+ autoComplete?: string
24
+ autoFocus?: boolean
25
+ keyboardType?: string
26
+ returnKeyType?: string
27
+ secureTextEntry?: boolean
28
+ tokens?: Record<string, string | number | boolean | object>
29
+ variant?: Record<string, string | number | boolean | undefined>
30
+ testID?: string
31
+ dataSet?: Record<string, any>
32
+ accessibilityLabel?: string
33
+ nativeID?: string
34
+ }
35
+
36
+ declare const TextInput: ComponentType<TextInputProps>
37
+
38
+ export { TextInput }
@@ -0,0 +1,29 @@
1
+ import type { ComponentType, ReactNode } from 'react'
2
+
3
+ export interface ThemeMetadata {
4
+ themeTokensVersion: string
5
+ name: string
6
+ }
7
+
8
+ export interface ThemeOptions {
9
+ forceAbsoluteFontSizing?: boolean
10
+ contentMaxWidth?: number
11
+ forceZIndex?: boolean
12
+ enableHelmetSSR?: boolean
13
+ enableMediaQueryStyleSheet?: boolean
14
+ }
15
+
16
+ export interface Theme {
17
+ metadata: ThemeMetadata
18
+ [key: string]: any
19
+ }
20
+
21
+ export interface ThemeProviderProps {
22
+ children: ReactNode
23
+ defaultTheme: Theme
24
+ options?: ThemeOptions
25
+ }
26
+
27
+ declare const ThemeProvider: ComponentType<ThemeProviderProps>
28
+
29
+ export { ThemeProvider }
@@ -0,0 +1,16 @@
1
+ import type { ComponentType, ReactNode } from 'react'
2
+
3
+ export interface TimelineProps {
4
+ children: ReactNode[]
5
+ accessibilityLabel: string
6
+ tokens?: Record<string, string | number | boolean | object>
7
+ variant?: Record<string, string | number | boolean | undefined>
8
+ tag?: string
9
+ childrenTag?: string
10
+ testID?: string
11
+ dataSet?: Record<string, any>
12
+ }
13
+
14
+ declare const Timeline: ComponentType<TimelineProps>
15
+
16
+ export { Timeline }
@@ -1,6 +1,7 @@
1
+ import type { ComponentType } from 'react'
1
2
  import { CopyType } from './Common'
2
3
 
3
- type ToggleSwitchTokens = {
4
+ export type ToggleSwitchTokens = {
4
5
  borderColor?: string
5
6
  borderWidth?: number
6
7
  borderRadius?: number
@@ -17,7 +18,7 @@ type ToggleSwitchTokens = {
17
18
  shadow?: string
18
19
  alignSelf?: string
19
20
  space?: number
20
- icon?: React.ReactNode
21
+ icon?: any
21
22
  trackHeight?: number
22
23
  outerBorderGapButton?: number
23
24
  width?: number
@@ -52,4 +53,12 @@ export interface ToggleSwitchProps {
52
53
  testID?: string
53
54
  tokens?: ToggleSwitchTokens
54
55
  togglePosition?: 'start' | 'end'
56
+ pointerEvents?: 'all' | 'none' | 'box-only' | 'box-none'
57
+ onLayout?: (event: any) => void
58
+ nativeID?: string
59
+ dataSet?: Record<string, any>
55
60
  }
61
+
62
+ declare const ToggleSwitch: ComponentType<ToggleSwitchProps>
63
+
64
+ export { ToggleSwitch }
@@ -1,7 +1,7 @@
1
- import { ReactNode } from 'react'
1
+ import type { ComponentType, ReactNode } from 'react'
2
2
  import { CopyType, Position } from './Common'
3
3
 
4
- type TooltipTokens = {
4
+ export type TooltipTokens = {
5
5
  backgroundColor?: string
6
6
  paddingTop?: number
7
7
  paddingBottom?: number
@@ -19,7 +19,7 @@ type TooltipTokens = {
19
19
  arrowOffset?: number
20
20
  }
21
21
 
22
- type TooltipVariants = {
22
+ export type TooltipVariants = {
23
23
  inverse?: boolean
24
24
  }
25
25
 
@@ -38,3 +38,7 @@ export interface TooltipProps {
38
38
  accessible?: boolean
39
39
  testID?: string
40
40
  }
41
+
42
+ declare const Tooltip: ComponentType<TooltipProps>
43
+
44
+ export { Tooltip }
@@ -0,0 +1,20 @@
1
+ import type { ComponentType } from 'react'
2
+
3
+ export interface TooltipButtonPressableState {
4
+ pressed: boolean
5
+ hover: boolean
6
+ focus: boolean
7
+ }
8
+
9
+ export interface TooltipButtonProps {
10
+ pressableState?: TooltipButtonPressableState
11
+ tokens?: Record<string, string | number | boolean | object>
12
+ variant?: Record<string, string | number | boolean | undefined>
13
+ testID?: string
14
+ dataSet?: Record<string, any>
15
+ accessibilityLabel?: string
16
+ }
17
+
18
+ declare const TooltipButton: ComponentType<TooltipButtonProps>
19
+
20
+ export { TooltipButton }