@telus-uds/components-web 2.11.0 → 2.13.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 +38 -2
- package/component-docs.json +123 -35
- package/lib/Autocomplete/Loading.js +5 -10
- package/lib/Autocomplete/dictionary.js +2 -2
- package/lib/Card/Card.js +2 -0
- package/lib/DatePicker/DatePicker.js +6 -0
- package/lib/ExpandCollapseMini/ExpandCollapseMini.js +5 -10
- package/lib/ExpandCollapseMini/ExpandCollapseMiniControl.js +32 -7
- package/lib/Footnote/FootnoteLink.js +1 -2
- package/lib/NavigationBar/NavigationSubMenu.js +4 -8
- package/lib/PriceLockup/PriceLockup.js +6 -1
- package/lib/Spinner/Spinner.js +10 -1
- package/lib/Spinner/SpinnerContent.js +8 -0
- package/lib/Table/Cell.js +62 -91
- package/lib/Table/Header.js +4 -1
- package/lib/Table/SubHeading.js +4 -1
- package/lib/Table/Table.js +2 -1
- package/lib/TermsAndConditions/ExpandCollapse.js +31 -13
- package/lib/TermsAndConditions/TermsAndConditions.js +21 -6
- package/lib/VideoPicker/VideoPickerPlayer.js +4 -2
- package/lib/VideoPicker/VideoPickerThumbnail.js +103 -60
- package/lib/VideoPicker/VideoSlider.js +2 -2
- package/lib-module/Autocomplete/Loading.js +6 -12
- package/lib-module/Autocomplete/dictionary.js +2 -2
- package/lib-module/Card/Card.js +2 -0
- package/lib-module/DatePicker/DatePicker.js +7 -1
- package/lib-module/ExpandCollapseMini/ExpandCollapseMini.js +6 -11
- package/lib-module/ExpandCollapseMini/ExpandCollapseMiniControl.js +32 -7
- package/lib-module/Footnote/FootnoteLink.js +1 -2
- package/lib-module/NavigationBar/NavigationSubMenu.js +5 -9
- package/lib-module/PriceLockup/PriceLockup.js +7 -2
- package/lib-module/Spinner/Spinner.js +10 -1
- package/lib-module/Spinner/SpinnerContent.js +8 -0
- package/lib-module/Table/Cell.js +65 -90
- package/lib-module/Table/Header.js +4 -1
- package/lib-module/Table/SubHeading.js +4 -1
- package/lib-module/Table/Table.js +2 -1
- package/lib-module/TermsAndConditions/ExpandCollapse.js +33 -15
- package/lib-module/TermsAndConditions/TermsAndConditions.js +22 -7
- package/lib-module/VideoPicker/VideoPickerPlayer.js +4 -2
- package/lib-module/VideoPicker/VideoPickerThumbnail.js +103 -61
- package/lib-module/VideoPicker/VideoSlider.js +2 -2
- package/package.json +3 -3
- package/src/Autocomplete/Loading.jsx +2 -5
- package/src/Autocomplete/dictionary.js +2 -2
- package/src/Card/Card.jsx +12 -8
- package/src/DatePicker/DatePicker.jsx +8 -1
- package/src/ExpandCollapseMini/ExpandCollapseMini.jsx +9 -6
- package/src/ExpandCollapseMini/ExpandCollapseMiniControl.jsx +21 -4
- package/src/Footnote/FootnoteLink.jsx +1 -2
- package/src/NavigationBar/NavigationSubMenu.jsx +3 -4
- package/src/PriceLockup/PriceLockup.jsx +7 -2
- package/src/Spinner/Spinner.jsx +9 -1
- package/src/Spinner/SpinnerContent.jsx +13 -1
- package/src/Table/Cell.jsx +58 -78
- package/src/Table/Header.jsx +6 -1
- package/src/Table/SubHeading.jsx +4 -1
- package/src/Table/Table.jsx +10 -2
- package/src/TermsAndConditions/ExpandCollapse.jsx +36 -14
- package/src/TermsAndConditions/TermsAndConditions.jsx +18 -6
- package/src/VideoPicker/VideoPickerPlayer.jsx +2 -2
- package/src/VideoPicker/VideoPickerThumbnail.jsx +51 -30
- package/src/VideoPicker/VideoSlider.jsx +2 -2
- package/types/BaseProvider.d.ts +25 -0
- package/types/index.d.ts +1 -1
|
@@ -26,7 +26,7 @@ const VideoSlider = ({ children }) => {
|
|
|
26
26
|
setContainerWidth(width)
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
const itemsGap =
|
|
29
|
+
const itemsGap = 32 // '5' on spacing scale
|
|
30
30
|
const itemsCount = viewport === 'lg' || viewport === 'xl' ? 4 : 3
|
|
31
31
|
const itemGapPortioned = ((itemsCount - 1) * itemsGap) / itemsCount
|
|
32
32
|
const itemWidth =
|
|
@@ -40,7 +40,7 @@ const VideoSlider = ({ children }) => {
|
|
|
40
40
|
)
|
|
41
41
|
|
|
42
42
|
const content = (
|
|
43
|
-
<StackView space={
|
|
43
|
+
<StackView space={5} direction="row" accessibilityRole="radiogroup" tokens={{ flexGrow: 1 }}>
|
|
44
44
|
{React.Children.map(children, (child, index) =>
|
|
45
45
|
cloneElement(child, {
|
|
46
46
|
index,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
declare interface ThemeMetadata {
|
|
4
|
+
themeTokensVersion: string
|
|
5
|
+
name: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare interface DefaultTheme {
|
|
9
|
+
metadata: ThemeMetadata
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare interface ThemeOptions {
|
|
13
|
+
forceAbsoluteFontSizing?: boolean
|
|
14
|
+
forceZIndex?: boolean
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface BaseProviderProps {
|
|
18
|
+
themeOptions?: ThemeOptions
|
|
19
|
+
defaultTheme: DefaultTheme
|
|
20
|
+
children: React.ReactNode
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare const BaseProvider: ComponentType<BaseProviderProps>
|
|
24
|
+
|
|
25
|
+
export default BaseProvider
|
package/types/index.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ declare const Pagination: ComponentType<Props> & {
|
|
|
112
112
|
|
|
113
113
|
export { default as QuantitySelector } from './QuantitySelector'
|
|
114
114
|
export type { QuantitySelectorProps } from './QuantitySelector'
|
|
115
|
-
|
|
115
|
+
export { default as BaseProvider } from './BaseProvider'
|
|
116
116
|
declare const QuickLinks: ComponentType<Props> & {
|
|
117
117
|
Item: ComponentType<Props>
|
|
118
118
|
}
|