@telus-uds/components-web 2.12.0 → 2.14.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 +40 -2
- package/component-docs.json +105 -43
- package/lib/Autocomplete/Loading.js +5 -10
- package/lib/Autocomplete/dictionary.js +2 -2
- package/lib/Badge/Badge.js +10 -1
- package/lib/DatePicker/DatePicker.js +13 -0
- package/lib/NavigationBar/NavigationSubMenu.js +4 -8
- package/lib/QuantitySelector/QuantitySelector.js +67 -66
- package/lib/QuantitySelector/SideButton.js +93 -0
- package/lib/QuantitySelector/styles.js +4 -20
- 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 +42 -10
- package/lib/Testimonial/Testimonial.js +48 -12
- 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/Badge/Badge.js +10 -1
- package/lib-module/DatePicker/DatePicker.js +13 -1
- package/lib-module/NavigationBar/NavigationSubMenu.js +5 -9
- package/lib-module/QuantitySelector/QuantitySelector.js +68 -67
- package/lib-module/QuantitySelector/SideButton.js +80 -0
- package/lib-module/QuantitySelector/styles.js +3 -15
- 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 +42 -11
- package/lib-module/Testimonial/Testimonial.js +49 -13
- 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 +4 -4
- package/src/Autocomplete/Loading.jsx +2 -5
- package/src/Autocomplete/dictionary.js +2 -2
- package/src/Badge/Badge.jsx +14 -2
- package/src/DatePicker/DatePicker.jsx +14 -1
- package/src/NavigationBar/NavigationSubMenu.jsx +3 -4
- package/src/QuantitySelector/QuantitySelector.jsx +60 -76
- package/src/QuantitySelector/SideButton.jsx +74 -0
- package/src/QuantitySelector/styles.js +4 -70
- 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 +48 -10
- package/src/Testimonial/Testimonial.jsx +73 -11
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,50 @@
|
|
|
1
1
|
# Change Log - @telus-uds/components-web
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 14 Jul 2023 19:38:21 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 2.14.0
|
|
8
|
+
|
|
9
|
+
Fri, 14 Jul 2023 19:38:21 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- `QuantitySelector` now can be controlled from the parent component (shahzaibkhalidmalik@outlook.com)
|
|
14
|
+
- Standardized QuantitySelector (wlsdud194@hotmail.com)
|
|
15
|
+
- Add dictionary override to `TermsAndConditions` (shahzaibkhalidmalik@outlook.com)
|
|
16
|
+
- New token fontSize added for the badge component (35577399+JoshHC@users.noreply.github.com)
|
|
17
|
+
- Bump @telus-uds/components-base to v1.55.0
|
|
18
|
+
- Bump @telus-uds/system-constants to v1.3.0
|
|
19
|
+
- Bump @telus-uds/system-theme-tokens to v2.38.0
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- Fix an issue where `DatePicker` may not close after date selection (shahzaibkhalidmalik@outlook.com)
|
|
24
|
+
|
|
25
|
+
## 2.13.0
|
|
26
|
+
|
|
27
|
+
Fri, 07 Jul 2023 19:26:41 GMT
|
|
28
|
+
|
|
29
|
+
### Minor changes
|
|
30
|
+
|
|
31
|
+
- Refactored Table for proper standardization (wlsdud194@hotmail.com)
|
|
32
|
+
- New prop labelPosition added to the Spinner and SpinnerContent components (35577399+JoshHC@users.noreply.github.com)
|
|
33
|
+
- standardization for terms and conditions (mauricio.batresmontejo@telus.com)
|
|
34
|
+
- Loading component updated inside autocomplete to use the label as a prop of spinner (35577399+JoshHC@users.noreply.github.com)
|
|
35
|
+
- Navigation bar item tokenized (akshay.pandey1@telus.com)
|
|
36
|
+
- add state to videopickerthumbnail (evander.owusu@telus.com)
|
|
37
|
+
- added types for BaseProvider (kyle.king2@telus.com)
|
|
38
|
+
- Bump @telus-uds/components-base to v1.54.0
|
|
39
|
+
- Bump @telus-uds/system-theme-tokens to v2.37.0
|
|
40
|
+
|
|
41
|
+
### Patches
|
|
42
|
+
|
|
43
|
+
- Fix an issue where `DatePicker` is unable to reset `date` programmatically (shahzaibkhalidmalik@outlook.com)
|
|
44
|
+
|
|
7
45
|
## 2.12.0
|
|
8
46
|
|
|
9
|
-
Wed, 28 Jun 2023 23:
|
|
47
|
+
Wed, 28 Jun 2023 23:27:23 GMT
|
|
10
48
|
|
|
11
49
|
### Minor changes
|
|
12
50
|
|
package/component-docs.json
CHANGED
|
@@ -197,6 +197,7 @@
|
|
|
197
197
|
"name": "custom",
|
|
198
198
|
"raw": {
|
|
199
199
|
"fontWeight": "fontWeight",
|
|
200
|
+
"fontSize": "fontSize",
|
|
200
201
|
"fontName": "fontName",
|
|
201
202
|
"backgroundColor": "color",
|
|
202
203
|
"borderColor": "color",
|
|
@@ -2598,6 +2599,10 @@
|
|
|
2598
2599
|
"alternative": {
|
|
2599
2600
|
"name": "bool",
|
|
2600
2601
|
"required": false
|
|
2602
|
+
},
|
|
2603
|
+
"disabled": {
|
|
2604
|
+
"name": "bool",
|
|
2605
|
+
"required": false
|
|
2601
2606
|
}
|
|
2602
2607
|
}
|
|
2603
2608
|
},
|
|
@@ -2643,6 +2648,13 @@
|
|
|
2643
2648
|
"required": false,
|
|
2644
2649
|
"description": "The default value of the input field"
|
|
2645
2650
|
},
|
|
2651
|
+
"value": {
|
|
2652
|
+
"type": {
|
|
2653
|
+
"name": "number"
|
|
2654
|
+
},
|
|
2655
|
+
"required": false,
|
|
2656
|
+
"description": "If the input's state is to be controlled by a parent component, use this prop\ntogether with the `onChange` to pass down and update the lifted state."
|
|
2657
|
+
},
|
|
2646
2658
|
"label": {
|
|
2647
2659
|
"type": {
|
|
2648
2660
|
"name": "string"
|
|
@@ -3067,6 +3079,13 @@
|
|
|
3067
3079
|
},
|
|
3068
3080
|
"required": true,
|
|
3069
3081
|
"description": "Communicates a message to assistive technology while visible. This same message\nwill appear underneath the spinner when its `size` is `large`."
|
|
3082
|
+
},
|
|
3083
|
+
"labelPosition": {
|
|
3084
|
+
"type": {
|
|
3085
|
+
"name": "string"
|
|
3086
|
+
},
|
|
3087
|
+
"required": false,
|
|
3088
|
+
"description": "Determine where the label of the spinner should be placed, left, right, bottom or top."
|
|
3070
3089
|
}
|
|
3071
3090
|
},
|
|
3072
3091
|
"attributes": {}
|
|
@@ -3155,6 +3174,13 @@
|
|
|
3155
3174
|
"docs": {
|
|
3156
3175
|
"description": "Use `Table` to display tabular data.\n\n- Takes an optional `spacing` variant (compact)\n- Available in 2 text styles (medium, small)\n- When `Table` exceeds viewport, the first column becomes sticky, enabling horizontal scrolling\n- Right-align prices and numbers that display decimal points\n\n### Building up a `Table`\n- Use `Table.Header` and `Table.Body` as direct children of `Table`\n- Use `Table.SubHeading` to render an intermediate data heading row\n- Use `Table.Row` and `Table.Cell` to build up the tabular data\n- Use `Cell`'s `type` prop to visually mark it as a row heading (`type=\"rowHeading\"`)",
|
|
3157
3176
|
"props": {
|
|
3177
|
+
"spacing": {
|
|
3178
|
+
"defaultValue": {
|
|
3179
|
+
"value": "'default'",
|
|
3180
|
+
"computed": false
|
|
3181
|
+
},
|
|
3182
|
+
"required": false
|
|
3183
|
+
},
|
|
3158
3184
|
"fullWidth": {
|
|
3159
3185
|
"defaultValue": {
|
|
3160
3186
|
"value": "true",
|
|
@@ -3257,59 +3283,55 @@
|
|
|
3257
3283
|
"docs": {
|
|
3258
3284
|
"description": "",
|
|
3259
3285
|
"props": {
|
|
3260
|
-
"
|
|
3286
|
+
"align": {
|
|
3261
3287
|
"defaultValue": {
|
|
3262
|
-
"value": "'
|
|
3288
|
+
"value": "'left'",
|
|
3263
3289
|
"computed": false
|
|
3264
3290
|
},
|
|
3265
3291
|
"type": {
|
|
3266
3292
|
"name": "enum",
|
|
3267
3293
|
"value": [
|
|
3268
3294
|
{
|
|
3269
|
-
"value": "'
|
|
3270
|
-
"computed": false
|
|
3271
|
-
},
|
|
3272
|
-
{
|
|
3273
|
-
"value": "'heading'",
|
|
3295
|
+
"value": "'left'",
|
|
3274
3296
|
"computed": false
|
|
3275
3297
|
},
|
|
3276
3298
|
{
|
|
3277
|
-
"value": "'
|
|
3299
|
+
"value": "'center'",
|
|
3278
3300
|
"computed": false
|
|
3279
3301
|
},
|
|
3280
3302
|
{
|
|
3281
|
-
"value": "'
|
|
3303
|
+
"value": "'right'",
|
|
3282
3304
|
"computed": false
|
|
3283
3305
|
}
|
|
3284
3306
|
]
|
|
3285
3307
|
},
|
|
3286
3308
|
"required": false,
|
|
3287
|
-
"description": "Defines the
|
|
3309
|
+
"description": "Defines the text alignment within the cell"
|
|
3288
3310
|
},
|
|
3289
|
-
"
|
|
3290
|
-
"defaultValue": {
|
|
3291
|
-
"value": "'left'",
|
|
3292
|
-
"computed": false
|
|
3293
|
-
},
|
|
3311
|
+
"type": {
|
|
3294
3312
|
"type": {
|
|
3295
3313
|
"name": "enum",
|
|
3296
3314
|
"value": [
|
|
3297
3315
|
{
|
|
3298
|
-
"value": "'
|
|
3316
|
+
"value": "'default'",
|
|
3299
3317
|
"computed": false
|
|
3300
3318
|
},
|
|
3301
3319
|
{
|
|
3302
|
-
"value": "'
|
|
3320
|
+
"value": "'heading'",
|
|
3303
3321
|
"computed": false
|
|
3304
3322
|
},
|
|
3305
3323
|
{
|
|
3306
|
-
"value": "'
|
|
3324
|
+
"value": "'subHeading'",
|
|
3325
|
+
"computed": false
|
|
3326
|
+
},
|
|
3327
|
+
{
|
|
3328
|
+
"value": "'rowHeading'",
|
|
3307
3329
|
"computed": false
|
|
3308
3330
|
}
|
|
3309
3331
|
]
|
|
3310
3332
|
},
|
|
3311
3333
|
"required": false,
|
|
3312
|
-
"description": "
|
|
3334
|
+
"description": ""
|
|
3313
3335
|
},
|
|
3314
3336
|
"tokens": {
|
|
3315
3337
|
"type": {
|
|
@@ -3384,6 +3406,29 @@
|
|
|
3384
3406
|
},
|
|
3385
3407
|
"required": false
|
|
3386
3408
|
},
|
|
3409
|
+
"dictionary": {
|
|
3410
|
+
"defaultValue": {
|
|
3411
|
+
"value": "{\n en: {\n headingHide: 'Hide terms and conditions',\n headingView: 'View terms and conditions',\n nonIndexedTitle: 'The following applies to all terms and conditions above'\n },\n fr: {\n headingHide: 'Masquer les modalités et conditions',\n headingView: 'Voir les modalités et conditions',\n nonIndexedTitle: 'Ce qui suit s’applique aux modalités et conditions ci-dessus'\n }\n}",
|
|
3412
|
+
"computed": false
|
|
3413
|
+
},
|
|
3414
|
+
"type": {
|
|
3415
|
+
"name": "shape",
|
|
3416
|
+
"value": {
|
|
3417
|
+
"en": {
|
|
3418
|
+
"name": "custom",
|
|
3419
|
+
"raw": "dictionaryContentShape",
|
|
3420
|
+
"required": false
|
|
3421
|
+
},
|
|
3422
|
+
"fr": {
|
|
3423
|
+
"name": "custom",
|
|
3424
|
+
"raw": "dictionaryContentShape",
|
|
3425
|
+
"required": false
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
},
|
|
3429
|
+
"required": false,
|
|
3430
|
+
"description": "Custom dictionary containing the labels to use for `TermsAndConditions`"
|
|
3431
|
+
},
|
|
3387
3432
|
"indexedContent": {
|
|
3388
3433
|
"defaultValue": {
|
|
3389
3434
|
"value": "[]",
|
|
@@ -3457,7 +3502,7 @@
|
|
|
3457
3502
|
},
|
|
3458
3503
|
"testimonialStyle": {
|
|
3459
3504
|
"defaultValue": {
|
|
3460
|
-
"value": "'
|
|
3505
|
+
"value": "'large'",
|
|
3461
3506
|
"computed": false
|
|
3462
3507
|
},
|
|
3463
3508
|
"type": {
|
|
@@ -3476,6 +3521,13 @@
|
|
|
3476
3521
|
"required": false,
|
|
3477
3522
|
"description": "Testimonial style"
|
|
3478
3523
|
},
|
|
3524
|
+
"copy": {
|
|
3525
|
+
"defaultValue": {
|
|
3526
|
+
"value": "'en'",
|
|
3527
|
+
"computed": false
|
|
3528
|
+
},
|
|
3529
|
+
"required": false
|
|
3530
|
+
},
|
|
3479
3531
|
"variant": {
|
|
3480
3532
|
"defaultValue": {
|
|
3481
3533
|
"value": "{}",
|
|
@@ -5576,15 +5628,7 @@
|
|
|
5576
5628
|
"showPanelTabs": "show",
|
|
5577
5629
|
"spaceBetweenSlideAndPreviousNextNavigation": "size",
|
|
5578
5630
|
"spaceBetweenSlideAndPanelNavigation": "size",
|
|
5579
|
-
"
|
|
5580
|
-
"thumbnailBorderRadius": "radius",
|
|
5581
|
-
"thumbnailBorderWidth": "border",
|
|
5582
|
-
"thumbnailContainerPaddingTop": "size",
|
|
5583
|
-
"thumbnailMargin": "size",
|
|
5584
|
-
"thumbnailPadding": "size",
|
|
5585
|
-
"thumbnailSelectedBorderColor": "color",
|
|
5586
|
-
"thumbnailSelectedBorderWidth": "border",
|
|
5587
|
-
"thumbnailSize": "size"
|
|
5631
|
+
"stepTrackerCurrentBackgroundColor": "color"
|
|
5588
5632
|
}
|
|
5589
5633
|
},
|
|
5590
5634
|
"required": false,
|
|
@@ -5945,15 +5989,7 @@
|
|
|
5945
5989
|
"showPanelTabs": "show",
|
|
5946
5990
|
"spaceBetweenSlideAndPreviousNextNavigation": "size",
|
|
5947
5991
|
"spaceBetweenSlideAndPanelNavigation": "size",
|
|
5948
|
-
"
|
|
5949
|
-
"thumbnailBorderRadius": "radius",
|
|
5950
|
-
"thumbnailBorderWidth": "border",
|
|
5951
|
-
"thumbnailContainerPaddingTop": "size",
|
|
5952
|
-
"thumbnailMargin": "size",
|
|
5953
|
-
"thumbnailPadding": "size",
|
|
5954
|
-
"thumbnailSelectedBorderColor": "color",
|
|
5955
|
-
"thumbnailSelectedBorderWidth": "border",
|
|
5956
|
-
"thumbnailSize": "size"
|
|
5992
|
+
"stepTrackerCurrentBackgroundColor": "color"
|
|
5957
5993
|
}
|
|
5958
5994
|
},
|
|
5959
5995
|
"required": false,
|
|
@@ -6952,7 +6988,19 @@
|
|
|
6952
6988
|
"borderRadius": "radius",
|
|
6953
6989
|
"borderWidth": "border",
|
|
6954
6990
|
"expandDividerColor": "color",
|
|
6955
|
-
"expandDividerWidth": "size"
|
|
6991
|
+
"expandDividerWidth": "size",
|
|
6992
|
+
"contentPanelBackgroundColor": "color",
|
|
6993
|
+
"contentPanelPaddingLeft": "size",
|
|
6994
|
+
"contentPanelPaddingRight": "size",
|
|
6995
|
+
"contentPanelPaddingTop": "size",
|
|
6996
|
+
"contentPanelPaddingBottom": "size",
|
|
6997
|
+
"contentPanelBorderWidth": "border",
|
|
6998
|
+
"contentPanelBorderColor": "color",
|
|
6999
|
+
"contentPanelFontName": "fontName",
|
|
7000
|
+
"contentPanelFontSize": "fontSize",
|
|
7001
|
+
"contentPanelFontColor": "color",
|
|
7002
|
+
"contentPanelFontWeight": "fontWeight",
|
|
7003
|
+
"contentPanelLineHeight": "lineHeight"
|
|
6956
7004
|
}
|
|
6957
7005
|
},
|
|
6958
7006
|
"required": false,
|
|
@@ -6969,7 +7017,7 @@
|
|
|
6969
7017
|
"type": {
|
|
6970
7018
|
"name": "func"
|
|
6971
7019
|
},
|
|
6972
|
-
"required":
|
|
7020
|
+
"required": false,
|
|
6973
7021
|
"description": "Function to call on pressing the panel's control, which should open or close the panel.\nIf Panel is a direct child of `ExpandCollapse`, this prop will be provided by the ExpandCollapse parent."
|
|
6974
7022
|
},
|
|
6975
7023
|
"onPress": {
|
|
@@ -6997,10 +7045,10 @@
|
|
|
6997
7045
|
"control": {
|
|
6998
7046
|
"type": {
|
|
6999
7047
|
"name": "custom",
|
|
7000
|
-
"raw": "ExpandCollapseControl.propTypes.children
|
|
7048
|
+
"raw": "ExpandCollapseControl.propTypes.children"
|
|
7001
7049
|
},
|
|
7002
7050
|
"required": false,
|
|
7003
|
-
"description": "The content inside the
|
|
7051
|
+
"description": "The content inside the control element that opens and closes the ExpandCollapse when pressed."
|
|
7004
7052
|
},
|
|
7005
7053
|
"controlTokens": {
|
|
7006
7054
|
"type": {
|
|
@@ -7038,6 +7086,13 @@
|
|
|
7038
7086
|
},
|
|
7039
7087
|
"required": false,
|
|
7040
7088
|
"description": "An optional ref to be attached to the control"
|
|
7089
|
+
},
|
|
7090
|
+
"content": {
|
|
7091
|
+
"type": {
|
|
7092
|
+
"name": "bool"
|
|
7093
|
+
},
|
|
7094
|
+
"required": false,
|
|
7095
|
+
"description": "A boolean prop to determine if the panel is a content panel or not. If true, the panel will not have a control"
|
|
7041
7096
|
}
|
|
7042
7097
|
},
|
|
7043
7098
|
"attributes": {
|
|
@@ -11255,7 +11310,12 @@
|
|
|
11255
11310
|
"outlineWidth": "border",
|
|
11256
11311
|
"paddingHorizontal": "size",
|
|
11257
11312
|
"paddingVertical": "size",
|
|
11258
|
-
"borderRadius": "radius"
|
|
11313
|
+
"borderRadius": "radius",
|
|
11314
|
+
"textLine": "textLine",
|
|
11315
|
+
"fontName": "fontName",
|
|
11316
|
+
"fontWeight": "fontWeight",
|
|
11317
|
+
"fontSize": "fontSize",
|
|
11318
|
+
"lineHeight": "lineHeight"
|
|
11259
11319
|
}
|
|
11260
11320
|
},
|
|
11261
11321
|
"required": false,
|
|
@@ -13337,6 +13397,7 @@
|
|
|
13337
13397
|
"name": "custom",
|
|
13338
13398
|
"raw": {
|
|
13339
13399
|
"outerBorderColor": "color",
|
|
13400
|
+
"backgroundColor": "color",
|
|
13340
13401
|
"outerBorderWidth": "border",
|
|
13341
13402
|
"outerBorderGap": "size",
|
|
13342
13403
|
"borderRadius": "radius",
|
|
@@ -13517,6 +13578,7 @@
|
|
|
13517
13578
|
"name": "custom",
|
|
13518
13579
|
"raw": {
|
|
13519
13580
|
"fontName": "fontName",
|
|
13581
|
+
"superScriptFontSize": "fontSize",
|
|
13520
13582
|
"fontWeight": "fontWeight",
|
|
13521
13583
|
"fontSize": "fontSize",
|
|
13522
13584
|
"color": "color",
|
|
@@ -23,23 +23,18 @@ const Loading = _ref => {
|
|
|
23
23
|
} = _ref;
|
|
24
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Box, {
|
|
25
25
|
space: 3,
|
|
26
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
26
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.StackView, {
|
|
27
27
|
direction: "row",
|
|
28
28
|
space: 2,
|
|
29
29
|
tokens: {
|
|
30
30
|
alignItems: 'center'
|
|
31
31
|
},
|
|
32
|
-
children:
|
|
32
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.default, {
|
|
33
33
|
inline: true,
|
|
34
34
|
show: true,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
size: 'small'
|
|
39
|
-
},
|
|
40
|
-
accessibilityLiveRegion: "polite",
|
|
41
|
-
children: label
|
|
42
|
-
})]
|
|
35
|
+
label: label,
|
|
36
|
+
labelPosition: "right"
|
|
37
|
+
})
|
|
43
38
|
})
|
|
44
39
|
});
|
|
45
40
|
};
|
|
@@ -7,12 +7,12 @@ exports.default = void 0;
|
|
|
7
7
|
var _default = {
|
|
8
8
|
en: {
|
|
9
9
|
hasResults: 'Some results are available',
|
|
10
|
-
loading: '
|
|
10
|
+
loading: 'Searching...',
|
|
11
11
|
noResults: 'No results found'
|
|
12
12
|
},
|
|
13
13
|
fr: {
|
|
14
14
|
hasResults: 'Quelques suggestions sont disponible',
|
|
15
|
-
loading: '
|
|
15
|
+
loading: 'Recherche...',
|
|
16
16
|
noResults: 'Aucun résultat trouvé'
|
|
17
17
|
}
|
|
18
18
|
};
|
package/lib/Badge/Badge.js
CHANGED
|
@@ -77,7 +77,8 @@ const Badge = _ref6 => {
|
|
|
77
77
|
paddingTop,
|
|
78
78
|
paddingBottom,
|
|
79
79
|
fontName,
|
|
80
|
-
fontWeight
|
|
80
|
+
fontWeight,
|
|
81
|
+
fontSize
|
|
81
82
|
} = (0, _componentsBase.useThemeTokens)('Badge', tokens, variant);
|
|
82
83
|
const semanticGradient = gradient && (0, _utils.transformGradient)(gradient);
|
|
83
84
|
const {
|
|
@@ -94,6 +95,11 @@ const Badge = _ref6 => {
|
|
|
94
95
|
background = semanticGradient;
|
|
95
96
|
}
|
|
96
97
|
|
|
98
|
+
const fontSizeMapping = {
|
|
99
|
+
12: 'micro',
|
|
100
|
+
14: 'small',
|
|
101
|
+
16: 'h6'
|
|
102
|
+
};
|
|
97
103
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(BadgeContainer, {
|
|
98
104
|
isOutlineOffer: isOutlineOffer,
|
|
99
105
|
isAlternative: alternative,
|
|
@@ -111,6 +117,9 @@ const Badge = _ref6 => {
|
|
|
111
117
|
fontWeight,
|
|
112
118
|
color
|
|
113
119
|
},
|
|
120
|
+
variant: {
|
|
121
|
+
size: fontSizeMapping[fontSize]
|
|
122
|
+
},
|
|
114
123
|
children: children
|
|
115
124
|
})
|
|
116
125
|
});
|
|
@@ -23,6 +23,8 @@ var _componentsBase = require("@telus-uds/components-base");
|
|
|
23
23
|
|
|
24
24
|
var _moment = _interopRequireDefault(require("moment"));
|
|
25
25
|
|
|
26
|
+
var _lodash = require("lodash");
|
|
27
|
+
|
|
26
28
|
var _CalendarContainer = _interopRequireDefault(require("./CalendarContainer"));
|
|
27
29
|
|
|
28
30
|
var _dictionary = _interopRequireDefault(require("./dictionary"));
|
|
@@ -136,6 +138,16 @@ const DatePicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
136
138
|
dictionary: _dictionary.default,
|
|
137
139
|
copy
|
|
138
140
|
});
|
|
141
|
+
(0, _react.useEffect)(() => {
|
|
142
|
+
/**
|
|
143
|
+
* `date` could be passed as `null` to reset the value so explicitly
|
|
144
|
+
* checking for not being `undefined`
|
|
145
|
+
*/
|
|
146
|
+
if (!(0, _lodash.isUndefined)(date) && !(0, _moment.default)(date).isSame(inputDate)) {
|
|
147
|
+
setInputDate(date);
|
|
148
|
+
setInputText(date instanceof _moment.default ? date.format(dateFormat) : '');
|
|
149
|
+
}
|
|
150
|
+
}, [date, inputDate]);
|
|
139
151
|
|
|
140
152
|
const onFocusChange = _ref2 => {
|
|
141
153
|
let {
|
|
@@ -173,6 +185,7 @@ const DatePicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
173
185
|
const onChange = value => {
|
|
174
186
|
setInputDate(value);
|
|
175
187
|
setInputText(value.format(dateFormat));
|
|
188
|
+
setIsFocused(false);
|
|
176
189
|
if (onDateChange) onDateChange(value);
|
|
177
190
|
};
|
|
178
191
|
|
|
@@ -115,22 +115,18 @@ const NavigationSubMenu = _ref => {
|
|
|
115
115
|
onClick: handleClick,
|
|
116
116
|
icon: icoMenu,
|
|
117
117
|
children: _ref2 => {
|
|
118
|
-
var _textStyles
|
|
118
|
+
var _textStyles$;
|
|
119
119
|
|
|
120
120
|
let {
|
|
121
121
|
textStyles
|
|
122
122
|
} = _ref2;
|
|
123
|
-
return [children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.
|
|
124
|
-
space: 1,
|
|
125
|
-
direction: "row"
|
|
126
|
-
}, `${id}_spacer`), /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Icon, {
|
|
123
|
+
return [children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Icon, {
|
|
127
124
|
icon: icoMenu,
|
|
128
125
|
variant: {
|
|
129
|
-
size: '
|
|
126
|
+
size: 'micro'
|
|
130
127
|
},
|
|
131
128
|
tokens: {
|
|
132
|
-
color: (_textStyles$ = textStyles[0]) === null || _textStyles$ === void 0 ? void 0 : _textStyles$.color
|
|
133
|
-
size: (_textStyles$2 = textStyles[0]) === null || _textStyles$2 === void 0 ? void 0 : _textStyles$2.fontSize
|
|
129
|
+
color: (_textStyles$ = textStyles[0]) === null || _textStyles$ === void 0 ? void 0 : _textStyles$.color
|
|
134
130
|
}
|
|
135
131
|
}, `${id}_icon`)];
|
|
136
132
|
}
|