@telus-uds/components-web 2.7.0 → 2.8.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.
@@ -31,13 +31,8 @@ const defaultReactDatesCss = css`
31
31
  .SingleDatePickerInput {
32
32
  display: inline-block;
33
33
  background-color: #fff;
34
- }
35
- .SingleDatePickerInput__withBorder {
36
- border-radius: 2px;
37
- border: 1px solid #dbdbdb;
38
- }
39
- .SingleDatePickerInput__rtl {
40
- direction: rtl;
34
+ position: absolute;
35
+ top: -55px;
41
36
  }
42
37
  .SingleDatePickerInput__disabled {
43
38
  background-color: #f2f2f2;
@@ -658,67 +653,8 @@ const defaultReactDatesCss = css`
658
653
  left: 0;
659
654
  overflow-y: scroll;
660
655
  }
661
- .DateInput {
662
- margin: 0;
663
- padding: 0;
664
- background: #fff;
665
- position: relative;
666
- display: inline-block;
667
- width: 130px;
668
- vertical-align: middle;
669
- }
670
- .DateInput__small {
671
- width: 97px;
672
- }
673
- .DateInput__block {
674
- width: 100%;
675
- }
676
- .DateInput__disabled {
677
- background: #f2f2f2;
678
- color: #dbdbdb;
679
- }
680
656
  .DateInput_input {
681
- font-weight: 200;
682
- font-size: 19px;
683
- line-height: 24px;
684
- color: #484848;
685
- background-color: #fff;
686
- width: 100%;
687
- padding: 11px 11px 9px;
688
- border: 0;
689
- border-top: 0;
690
- border-right: 0;
691
- border-bottom: 2px solid transparent;
692
- border-left: 0;
693
- border-radius: 0;
694
- }
695
- .DateInput_input__small {
696
- font-size: 15px;
697
- line-height: 18px;
698
- letter-spacing: 0.2px;
699
- padding: 7px 7px 5px;
700
- }
701
- .DateInput_input__regular {
702
- font-weight: auto;
703
- }
704
- .DateInput_input__readOnly {
705
- -webkit-user-select: none;
706
- -moz-user-select: none;
707
- -ms-user-select: none;
708
- user-select: none;
709
- }
710
- .DateInput_input__focused {
711
- outline: 0;
712
- background: #fff;
713
- border: 0;
714
- border-top: 0;
715
- border-right: 0;
716
- border-bottom: 2px solid #008489;
717
- border-left: 0;
718
- }
719
- .DateInput_input__disabled {
720
- background: #f2f2f2;
721
- font-style: italic;
657
+ display: none;
722
658
  }
723
659
  .DateInput_screenReaderMessage {
724
660
  border: 0;
@@ -732,6 +668,7 @@ const defaultReactDatesCss = css`
732
668
  }
733
669
  .DateInput_fang {
734
670
  position: absolute;
671
+ top: 55px;
735
672
  width: 20px;
736
673
  height: 10px;
737
674
  left: 22px;
@@ -115,21 +115,17 @@ const StoryCard = forwardRef(
115
115
  space={1}
116
116
  tokens={{ justifyContent: 'space-between', alignItems: 'baseline' }}
117
117
  >
118
- {Boolean(tag) && (
119
- <Typography variant={{ size: 'eyebrow', colour: 'secondary' }}>
120
- {tag}
121
- </Typography>
122
- )}
118
+ {Boolean(tag) && <Typography variant={{ size: 'eyebrow' }}>{tag}</Typography>}
123
119
  {Boolean(date) && (
124
120
  // TODO: get user locale and apply date formatting: "MMM DD, YYYY" for `en` and "YYYY-MM-DD" for `fr`
125
121
  // Get locale based on decision of https://github.com/telus/universal-design-system/issues/715
126
- <Typography variant={{ size: 'small', colour: 'secondary' }}>{date}</Typography>
122
+ <Typography variant={{ size: 'small' }}>{date}</Typography>
127
123
  )}
128
124
  </StackWrap>
129
125
  <Spacer space={2} />
130
126
  <Divider variant={{ decorative: true }} />
131
127
  <Spacer space={3} />
132
- <Typography variant={{ size: 'h3', colour: 'secondary' }}>{title}</Typography>
128
+ <Typography variant={{ size: 'h3' }}>{title}</Typography>
133
129
  <Spacer space={2} />
134
130
  <Typography>{description}</Typography>
135
131
  </Box>
@@ -119,7 +119,7 @@ export const VideoProps = {
119
119
  /**
120
120
  * The splash screen UI's language as an ISO language code. It currently supports English and French.
121
121
  */
122
- copy: PropTypes.oneOf(['en', 'fr']).isRequired,
122
+ copy: PropTypes.oneOf(['en', 'fr']),
123
123
  /**
124
124
  * A function to be run when the play button is pressed on the video splash screen and the video is ready to play.
125
125
  */
@@ -8,8 +8,8 @@ export interface WebVideoProps extends HTMLAttrs {
8
8
  defaultVolume?: number
9
9
  beginMuted?: boolean
10
10
  videoLength: number
11
- copy: 'en' | 'fr'
12
- onStart: () => void
11
+ copy?: 'en' | 'fr'
12
+ onStart?: () => void
13
13
  }
14
14
 
15
15
  declare const WebVideo: ComponentType<WebVideoProps>