@telus-uds/components-web 1.11.0 → 2.0.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 (50) hide show
  1. package/CHANGELOG.md +40 -2
  2. package/lib/Breadcrumbs/Breadcrumbs.js +7 -10
  3. package/lib/Breadcrumbs/Item/Item.js +10 -37
  4. package/lib/DatePicker/CalendarContainer.js +60 -71
  5. package/lib/DatePicker/DatePicker.js +66 -22
  6. package/lib/Footnote/Footnote.js +26 -9
  7. package/lib/List/List.js +11 -0
  8. package/lib/List/ListItem.js +48 -0
  9. package/lib/List/index.js +16 -0
  10. package/lib/PriceLockup/PriceLockup.js +27 -13
  11. package/lib/SkeletonProvider/SkeletonImage.js +55 -0
  12. package/lib/SkeletonProvider/SkeletonProvider.js +84 -0
  13. package/lib/SkeletonProvider/SkeletonTypography.js +54 -0
  14. package/lib/SkeletonProvider/index.js +13 -0
  15. package/lib/Table/Table.js +14 -5
  16. package/lib/Toast/Toast.js +1 -1
  17. package/lib/index.js +19 -1
  18. package/lib-module/Breadcrumbs/Breadcrumbs.js +7 -10
  19. package/lib-module/Breadcrumbs/Item/Item.js +11 -35
  20. package/lib-module/DatePicker/CalendarContainer.js +61 -72
  21. package/lib-module/DatePicker/DatePicker.js +67 -23
  22. package/lib-module/Footnote/Footnote.js +26 -9
  23. package/lib-module/List/List.js +2 -0
  24. package/lib-module/List/ListItem.js +31 -0
  25. package/lib-module/List/index.js +4 -0
  26. package/lib-module/PriceLockup/PriceLockup.js +27 -13
  27. package/lib-module/SkeletonProvider/SkeletonImage.js +42 -0
  28. package/lib-module/SkeletonProvider/SkeletonProvider.js +65 -0
  29. package/lib-module/SkeletonProvider/SkeletonTypography.js +41 -0
  30. package/lib-module/SkeletonProvider/index.js +2 -0
  31. package/lib-module/Table/Table.js +14 -5
  32. package/lib-module/Toast/Toast.js +1 -1
  33. package/lib-module/index.js +2 -0
  34. package/package.json +3 -3
  35. package/src/Breadcrumbs/Breadcrumbs.jsx +19 -22
  36. package/src/Breadcrumbs/Item/Item.jsx +16 -42
  37. package/src/DatePicker/CalendarContainer.jsx +61 -71
  38. package/src/DatePicker/DatePicker.jsx +47 -19
  39. package/src/Footnote/Footnote.jsx +42 -11
  40. package/src/List/List.jsx +3 -0
  41. package/src/List/ListItem.jsx +21 -0
  42. package/src/List/index.js +6 -0
  43. package/src/PriceLockup/PriceLockup.jsx +13 -7
  44. package/src/SkeletonProvider/SkeletonImage.jsx +33 -0
  45. package/src/SkeletonProvider/SkeletonProvider.jsx +62 -0
  46. package/src/SkeletonProvider/SkeletonTypography.jsx +31 -0
  47. package/src/SkeletonProvider/index.js +3 -0
  48. package/src/Table/Table.jsx +7 -4
  49. package/src/Toast/Toast.jsx +1 -0
  50. package/src/index.js +2 -0
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 Tue, 09 May 2023 00:20:29 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 19 May 2023 04:52:38 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 2.0.0
8
+
9
+ Fri, 19 May 2023 04:52:38 GMT
10
+
11
+ ### Major changes
12
+
13
+ - Remove `reactRouterLinkComponent` from `Breadcrumbs` (shahzaibkhalidmalik@outlook.com)
14
+ - Bump @telus-uds/components-base to v1.42.0
15
+
16
+ ### Minor changes
17
+
18
+ - fix icon tokens (mauricio.batresmontejo@telus.com)
19
+
20
+ ### Patches
21
+
22
+ - update default space value for stackview component (evander.owusu@telus.com)
23
+
24
+ ## 1.12.0
25
+
26
+ Wed, 17 May 2023 00:20:05 GMT
27
+
28
+ ### Minor changes
29
+
30
+ - Standardized Pagination (wlsdud194@hotmail.com)
31
+ - move 'List' to components-web (kyle.king2@telus.com)
32
+ - Standardize DatePicker for TELUS, Public Mobile, and Koodo (samuraix221@hotmail.com)
33
+ - add 'strikeThroughPosition' token (kyle.king2@telus.com)
34
+ - Add fullWidth prop to Table (wlsdud194@hotmail.com)
35
+ - make Skeleton provider multibrand (mauricio.batresmontejo@telus.com)
36
+ - Expand collapse standardization (akshay.pandey1@telus.com)
37
+ - Bump @telus-uds/components-base to v1.41.0
38
+ - Bump @telus-uds/system-theme-tokens to v2.26.0
39
+
40
+ ### Patches
41
+
42
+ - Remove flexGrow from text styles (wlsdud194@hotmail.com)
43
+ - Fix an issue where `Toast` doesn't render as expected on smaller screens (shahzaibkhalidmalik@outlook.com)
44
+
7
45
  ## 1.11.0
8
46
 
9
- Tue, 09 May 2023 00:20:29 GMT
47
+ Tue, 09 May 2023 00:29:54 GMT
10
48
 
11
49
  ### Minor changes
12
50
 
@@ -95,10 +95,16 @@ const getItems = (items, params, concatenatePaths) => {
95
95
  const isLast = i === filteredItems.length - 1;
96
96
  const breadcrumbName = getBreadcrumbName(item, params);
97
97
  const href = getPath(item.path, params, concatenatePaths, paths);
98
+ const {
99
+ LinkRouter,
100
+ linkRouterProps
101
+ } = item;
98
102
  return {
99
103
  breadcrumbName,
100
104
  href,
101
105
  current: isLast,
106
+ LinkRouter,
107
+ linkRouterProps,
102
108
  ...omitProps(selectProps(item))
103
109
  };
104
110
  });
@@ -126,7 +132,6 @@ const Breadcrumbs = _ref2 => {
126
132
  linkRouterProps,
127
133
  params = {},
128
134
  tokens,
129
- reactRouterLinkComponent,
130
135
  routes,
131
136
  variant,
132
137
  LinkRouter,
@@ -183,7 +188,6 @@ const Breadcrumbs = _ref2 => {
183
188
  href,
184
189
  current,
185
190
  breadcrumbName,
186
- reactRouterLinkComponent: linkComponent = reactRouterLinkComponent,
187
191
  LinkRouter: ItemLinkRouter = LinkRouter,
188
192
  linkRouterProps: itemLinkRouterProps,
189
193
  ...itemRest
@@ -194,9 +198,8 @@ const Breadcrumbs = _ref2 => {
194
198
  tokens: tokens,
195
199
  key: href,
196
200
  linkRouterProps: { ...linkRouterProps,
197
- itemLinkRouterProps
201
+ ...itemLinkRouterProps
198
202
  },
199
- reactRouterLinkComponent: linkComponent,
200
203
  variant: { ...variant,
201
204
  size: 'micro'
202
205
  },
@@ -225,12 +228,6 @@ Breadcrumbs.propTypes = { ...selectedSystemPropTypes,
225
228
  */
226
229
  params: _propTypes.default.object,
227
230
 
228
- /**
229
- * React Router Link component.
230
- * @deprecated please use `LinkRouter` and `linkRouterProps` instead
231
- */
232
- reactRouterLinkComponent: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
233
-
234
231
  /**
235
232
  * An array of routes to be displayed as breadcrumbs.
236
233
  */
@@ -71,7 +71,6 @@ const IconContainer = /*#__PURE__*/_styledComponents.default.span.withConfig({
71
71
  const Item = /*#__PURE__*/(0, _react.forwardRef)((_ref5, ref) => {
72
72
  let {
73
73
  href,
74
- reactRouterLinkComponent: ReactRouterLink,
75
74
  children,
76
75
  current = false,
77
76
  tokens,
@@ -79,6 +78,8 @@ const Item = /*#__PURE__*/(0, _react.forwardRef)((_ref5, ref) => {
79
78
  light: true
80
79
  },
81
80
  // `light` variant (shared with the `Link` component) is default by design
81
+ LinkRouter,
82
+ linkRouterProps,
82
83
  ...rest
83
84
  } = _ref5;
84
85
  const {
@@ -90,15 +91,9 @@ const Item = /*#__PURE__*/(0, _react.forwardRef)((_ref5, ref) => {
90
91
  fontSize,
91
92
  ...themeTokens
92
93
  } = (0, _componentsBase.useThemeTokens)('Breadcrumbs', tokens, variant);
93
-
94
- const linkOptions = _componentsBase.clickProps.toPressProps(selectProps(rest));
95
-
96
- if (ReactRouterLink) {
97
- linkOptions.to = href;
98
- } else {
99
- linkOptions.href = href;
100
- }
101
-
94
+ const linkOptions = { ..._componentsBase.clickProps.toPressProps(selectProps(rest)),
95
+ href
96
+ };
102
97
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledItemContainer, { ...themeTokens,
103
98
  children: current ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
104
99
  tokens: {
@@ -109,26 +104,14 @@ const Item = /*#__PURE__*/(0, _react.forwardRef)((_ref5, ref) => {
109
104
  },
110
105
  children: children
111
106
  }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
112
- children: [ReactRouterLink ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ReactRouterLink, { ...linkOptions,
113
- tokens: {
114
- color,
115
- blockFontSize: fontSize
116
- } // TODO refactor
117
- // eslint-disable-next-line react/no-unstable-nested-components
118
- ,
119
- component: props => {
120
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Link, { ...props,
121
- variant: variant
122
- });
123
- },
107
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Link, { ...linkOptions,
124
108
  ref: ref,
125
- children: children
126
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Link, { ...linkOptions,
127
109
  tokens: {
128
110
  color,
129
111
  blockFontSize: fontSize
130
112
  },
131
- ref: ref,
113
+ LinkRouter: LinkRouter,
114
+ linkRouterProps: linkRouterProps,
132
115
  variant: variant,
133
116
  children: children
134
117
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconContainer, { ...themeTokens,
@@ -156,18 +139,11 @@ Item.propTypes = { ...selectedSystemPropTypes,
156
139
  current: _propTypes.default.bool,
157
140
 
158
141
  /**
159
- * Target URL. This will be converted to `to` if the `reactRouterLinkComponent`
142
+ * Target URL. This will be converted to `to` if the `LinkRouter`
160
143
  * prop is provided to the `Item` or parent `Breadcrumbs` element.
161
144
  */
162
145
  href: _propTypes.default.string.isRequired,
163
146
 
164
- /**
165
- * React Router Link component. This will be passed down from the parent
166
- * `<Breadcrumbs>` if the parent has a `reactRouterLinkComponent` provided.
167
- * @deprecated please use `LinkRouter` and `linkRouterProps` instead
168
- */
169
- reactRouterLinkComponent: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
170
-
171
147
  /**
172
148
  * Variant to render.
173
149
  */
@@ -179,12 +155,9 @@ Item.propTypes = { ...selectedSystemPropTypes,
179
155
 
180
156
  Item.defaultProps = {
181
157
  current: false,
182
- reactRouterLinkComponent: undefined,
183
158
  variant: {
184
159
  light: true
185
160
  }
186
161
  };
187
-
188
- var _default = (0, _componentsBase.withLinkRouter)(Item);
189
-
162
+ var _default = Item;
190
163
  exports.default = _default;
@@ -11,6 +11,8 @@ var _reactDatesCss = _interopRequireDefault(require("./reactDatesCss"));
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
14
+ // calendarDayDefaultHeight and calendarDayDefaultWidth
15
+ // refer to circle size when selected, focused, or hovered and is passed with getResponsiveCircleSize in DatePicker
14
16
  const CalendarContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
15
17
  displayName: "CalendarContainer",
16
18
  componentId: "components-web__sc-qdc1tg-0"
@@ -20,7 +22,9 @@ const CalendarContainer = /*#__PURE__*/_styledComponents.default.div.withConfig(
20
22
  validation,
21
23
  remainingTokens,
22
24
  calendarMonthFontTokens,
23
- dayPickerNavigationButtonTokens,
25
+ calendarDayDefaultHeight,
26
+ calendarDayDefaultWidth,
27
+ calendarWeekFontTokens,
24
28
  defaultFontTokens
25
29
  } = _ref;
26
30
  return `
@@ -33,24 +37,25 @@ const CalendarContainer = /*#__PURE__*/_styledComponents.default.div.withConfig(
33
37
  display: block;
34
38
  }
35
39
  .SingleDatePicker_picker {
40
+ background-color: ${remainingTokens.calendarBackgroundColor};
36
41
  box-shadow: none;
37
42
  border: 1px solid ${remainingTokens.singleDatePickerBorderColor};
38
- border-radius: ${remainingTokens.singleDatePickerRadius};
43
+ border-radius: ${remainingTokens.singleDatePickerRadius}px;
39
44
  padding: ${remainingTokens.singleDatePickerPaddingTopBottom}px ${remainingTokens.singleDatePickerLeftRight}px;
40
45
  z-index: 3;
41
46
  }
42
47
  .DateInput {
43
48
  width: 100%;
44
49
  border: 2px solid ${remainingTokens.dateInputBorderColor};
45
- border-radius: ${remainingTokens.dateInputBorderRadius};
46
50
  ${validation === 'error' && `input { border-color: ${remainingTokens.invalidInputMixin}; }`};
47
51
  ${validation === 'success' && `input { border-color: ${remainingTokens.validInputMixin}; }`};
48
52
  }
49
53
  .DateInput:hover {
54
+ border-radius: ${remainingTokens.dateInputBorderRadius}px;
50
55
  border: 2px solid ${remainingTokens.dateInputHoverBorderColor};
51
56
  }
52
- .DateInput:focus {
53
- border: 2px solid ${remainingTokens.dateInputFocusBorderColor};
57
+ .DateInput_input:focus {
58
+ border: 3px solid ${remainingTokens.dateInputFocusBorderColor};
54
59
  }
55
60
  .SingleDatePickerInput__withBorder {
56
61
  border: 0 !important;
@@ -71,94 +76,63 @@ const CalendarContainer = /*#__PURE__*/_styledComponents.default.div.withConfig(
71
76
  z-index: 4;
72
77
  left: ${(daySize * 8.5 - 20) / 2}px;
73
78
  }
79
+ .DateInput_fangShape {
80
+ fill: ${remainingTokens.calendarBackgroundColor}
81
+ }
74
82
  .DateInput_fangStroke {
75
83
  stroke: ${remainingTokens.dateInputStrokeColor};
76
84
  }
77
85
  .CalendarMonth_caption {
78
86
  color: ${remainingTokens.calendarMonthCaptionColor};
79
87
  font-family: ${calendarMonthFontTokens.fontFamily};
80
- font-size: ${remainingTokens.calendarMonthCaptionFontSize};
88
+ font-size: ${remainingTokens.calendarMonthCaptionFontSize}px;
81
89
  font-weight: ${calendarMonthFontTokens.fontWeight};
82
90
  line-height: ${remainingTokens.calendarMonthCaptionLineHeight};
83
91
  padding-bottom: ${remainingTokens.calendarMonthCaptionPaddingBottom}px;
84
92
  }
93
+ .DayPicker{
94
+ background-color: ${remainingTokens.calendarBackgroundColor};
95
+ }
85
96
  .DayPicker__withBorder {
86
97
  box-shadow: none;
87
98
  }
88
- .DayPickerNavigation_button {
89
- align-items: center;
99
+ .DayPickerNavigation {
90
100
  display: flex;
91
- justify-content: center;
92
- border: 1px solid ${remainingTokens.dayPickerNavigationButtonBorderColor};
93
- background-color: ${remainingTokens.dayPickerNavigationButtonBackgroundColor};
94
- border-radius: 50%;
95
- box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
96
- max-height: ${remainingTokens.dayPickerNavigationButtonMaxHeight}px;
97
- max-width: ${remainingTokens.dayPickerNavigationButtonMaxWidth}px;
98
- position: absolute;
99
- top: 18px;
100
- line-height: 0.78;
101
- padding: ${remainingTokens.dayPickerNavigationButtonPadding}px;
102
- cursor: pointer;
103
- user-select: none;
104
- &:nth-child(1) {
105
- left: ${remainingTokens.dayPickerNavigationButtonChildLeft}px;
106
- }
107
- &:nth-child(2) {
108
- right: ${remainingTokens.dayPickerNavigationButtonChildRight}px;
109
- i {
110
- font-family: 'TELUS Core Icons';
111
- display: inline-block;
112
- font-weight: normal;
113
- font-style: normal;
114
- speak: none;
115
- text-decoration: inherit;
116
- text-transform: none;
117
- text-rendering: auto;
118
- -webkit-font-smoothing: antialiased;
119
- -moz-osx-font-smoothing: grayscale;
120
- line-height: 1;
121
- vertical-align: middle;
122
- &:before {
123
- content: '\\F107';
124
- display: inline-block;
125
- }
126
- }
127
- }
128
- & svg {
129
- fill: ${remainingTokens.dayPickerNavigationButtonChildSvgFill};
130
- }
101
+ justify-content: space-between;
102
+ align-self: center;
103
+ top: 23px;
104
+ padding: 0px ${remainingTokens.dayPickerNavigationButtonPadding}px;
131
105
  }
132
106
  .DayPickerNavigation_button__default:focus,
133
- .DayPickerNavigation_button__default:hover {
134
- border: 1px solid ${remainingTokens.dayPickerNavigationButtonDefaultHoverBorderColor};
135
- }
136
- .DayPickerNavigation_svg__horizontal {
137
- fill: ${remainingTokens.dayPickerNavigationSVGHorizontalFill};
138
- }
107
+ .DayPickerNavigation_button:hover,
108
+ .DayPickerNavigation_svg__horizontal,
139
109
  .DayPicker_weekHeader {
140
110
  color: ${remainingTokens.dayPickerWeekHeaderColor};
141
- font-family: ${dayPickerNavigationButtonTokens.fontFamily};
142
- font-weight: ${dayPickerNavigationButtonTokens.fontWeight};
111
+ font-family: ${calendarWeekFontTokens.fontFamily};
143
112
  font-feature-settings: 'ss01' on, 'ss03' on, 'ss08' on;
144
113
  line-height: ${remainingTokens.dayPickerWeekHeaderLineHeight};
145
- & small {
146
- font-size: ${remainingTokens.dayPickerWeekHeaderSmall};
147
- }
148
114
  & li {
115
+ font-size: ${remainingTokens.dayPickerWeekHeaderSmall}px;
149
116
  max-width: ${daySize}px !important;
150
117
  }
151
118
  }
119
+ .CalendarMonthGrid {
120
+ background-color: ${remainingTokens.calendarBackgroundColor};
121
+ }
122
+ .CalendarMonth {
123
+ background-color: ${remainingTokens.calendarBackgroundColor};
124
+ }
152
125
  .CalendarDay__default {
153
126
  padding: 0px;
154
127
  position: relative;
128
+ background: ${remainingTokens.calendarDayDefaultBackgroundColor};
155
129
  background-clip: padding-box;
156
- border: ${remainingTokens.calendarDayDefaultBorder} solid ${remainingTokens.calendarDayDefaultBorderColor};
130
+ border: ${remainingTokens.calendarDayDefaultBorder}px solid ${remainingTokens.calendarDayDefaultBorderColor};
157
131
  vertical-align: middle;
158
132
  font-family: ${defaultFontTokens.fontFamily};
159
133
  font-weight: ${defaultFontTokens.fontWeight}
160
134
  font-feature-settings: 'ss01' on, 'ss03' on, 'ss08' on;
161
- font-size: ${remainingTokens.calendarDayDefaultFontSize};
135
+ font-size: ${remainingTokens.calendarDayDefaultFontSize}px;
162
136
  line-height: ${daySize - 3}px !important;
163
137
  color: ${remainingTokens.calendarDayDefaultColor};
164
138
  text-decoration: none;
@@ -169,36 +143,51 @@ const CalendarContainer = /*#__PURE__*/_styledComponents.default.div.withConfig(
169
143
  top: 50%;
170
144
  left: 50%;
171
145
  transform: translate(-50%, -50%);
172
- height: ${remainingTokens.calendarDayDefaultBeforeHeight}px;
173
- width: ${remainingTokens.calendarDayDefaultBeforeWidth}px;
146
+ height: ${calendarDayDefaultHeight}px;
147
+ width: ${calendarDayDefaultWidth}px;
174
148
  border-radius: 50%;
175
149
  background: transparent;
176
150
  transition: all 0.3s;
177
151
  z-index: -1;
178
152
  }
179
153
  }
180
- .CalendarDay__default:hover,
181
- .CalendarDay__selected,
182
- .CalendarDay__selected:active,
183
- .CalendarDay__selected:hover {
184
- background: none;
154
+ .CalendarDay__default:hover {
155
+ background: ${remainingTokens.calendarDaySelectedHoverBackground};
185
156
  border: 1px solid ${remainingTokens.calendarDaySelectedHoverBorderColor};
186
157
  color: ${remainingTokens.calendarDaySelectedHoverColor};
187
158
  text-decoration: none;
188
159
  z-index: 0;
189
160
  &:before {
161
+ border: 1px solid ${remainingTokens.calendarDaySelectedHoverBeforeBorderColor};
190
162
  background: ${remainingTokens.calendarDaySelectedHoverBeforeBackground};
191
163
  }
192
164
  }
165
+ .CalendarDay__default:focus{
166
+ background: ${remainingTokens.calendarDaySelectedHoverBackground};
167
+ border: 1px solid ${remainingTokens.calendarDaySelectedHoverBorderColor};
168
+ color: ${remainingTokens.calendarDaySelectedHoverColor};
169
+ text-decoration: none;
170
+ z-index: 0;
171
+ &:before {
172
+ border: 1px solid ${remainingTokens.calendarDaySelectedHoverBeforeBorderColor};
173
+ background: ${remainingTokens.calendarDaySelectedFocusBeforeBackground};
174
+ }
175
+ }
176
+ .CalendarDay__selected,
177
+ .CalendarDay__selected:active,
178
+ .CalendarDay__selected:hover
193
179
  .CalendarDay__default.CalendarDay__selected,
194
180
  .CalendarDay__default.CalendarDay__selected:active
195
- .CalendarDay__default.CalendarDay__selected:hover {
181
+ .CalendarDay__default.CalendarDay__selected:hover{
182
+ background: ${remainingTokens.calendarDayDefaultCalendarDaySelectedHoverBackground};
183
+ border: 1px solid ${remainingTokens.calendarDaySelectedHoverBorderColor};
196
184
  color: ${remainingTokens.calendarDayDefaultCalendarDaySelectedHoverColor};
197
185
  text-decoration: none;
186
+ z-index: 0;
198
187
  &:before {
199
- background: ${remainingTokens.calendarDayDefaultCalendarDaySelectedHoverBackground};
200
- }
188
+ background: ${remainingTokens.calendarDayDefaultCalendarDaySelectedHoverBeforeBackground};
201
189
  }
190
+ }
202
191
  .CalendarDay__blocked_out_of_range,
203
192
  .CalendarDay__blocked_out_of_range:active,
204
193
  .CalendarDay__blocked_out_of_range:hover,
@@ -51,12 +51,19 @@ const getResponsiveDaySize = function () {
51
51
  return responsiveDaySize;
52
52
  };
53
53
 
54
- const getIcon = icon => /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Icon, {
55
- icon: icon,
56
- variant: {
57
- size: 'small'
54
+ const getResponsiveCircleSize = function () {
55
+ let inline = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
56
+ let viewport = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'md';
57
+ let responsiveCircleSize;
58
+
59
+ if (viewport === 'xs') {
60
+ responsiveCircleSize = 26;
61
+ } else {
62
+ responsiveCircleSize = inline ? 44 : 26;
58
63
  }
59
- });
64
+
65
+ return responsiveCircleSize;
66
+ };
60
67
 
61
68
  const MonthCenterContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
62
69
  displayName: "DatePicker__MonthCenterContainer",
@@ -129,6 +136,7 @@ const DatePicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
129
136
 
130
137
  const viewport = (0, _componentsBase.useViewport)();
131
138
  const daySize = getResponsiveDaySize(inline, viewport);
139
+ const circleSize = getResponsiveCircleSize(inline, viewport);
132
140
  const value = date ?? inputDate;
133
141
 
134
142
  const HiddenInputFieldContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
@@ -142,7 +150,9 @@ const DatePicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
142
150
  previousIcon,
143
151
  nextIcon,
144
152
  ...remainingTokens
145
- } = (0, _componentsBase.useThemeTokens)('DatePicker', tokens, variant, {
153
+ } = (0, _componentsBase.useThemeTokens)('DatePicker', tokens, { ...variant,
154
+ inline
155
+ }, {
146
156
  viewport
147
157
  });
148
158
  const defaultFontTokens = (0, _componentsBase.applyTextStyles)({
@@ -153,16 +163,50 @@ const DatePicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
153
163
  fontName: remainingTokens.calendarMonthCaptionFontName,
154
164
  fontWeight: remainingTokens.calendarMonthCaptionFontWeight
155
165
  });
156
- const dayPickerNavigationButtonTokens = (0, _componentsBase.applyTextStyles)({
166
+ const calendarWeekFontTokens = (0, _componentsBase.applyTextStyles)({
157
167
  fontName: remainingTokens.dayPickerWeekHeaderFontName,
158
168
  fontWeight: remainingTokens.dayPickerWeekHeaderFontWeight
159
169
  });
170
+
171
+ const renderPrevButton = _ref3 => {
172
+ let {
173
+ onClick
174
+ } = _ref3;
175
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.IconButton, {
176
+ onPress: () => {
177
+ onClick();
178
+ },
179
+ icon: previousIcon,
180
+ variant: {
181
+ size: 'small'
182
+ }
183
+ });
184
+ };
185
+
186
+ const renderNextButton = _ref4 => {
187
+ let {
188
+ onClick
189
+ } = _ref4;
190
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.IconButton, {
191
+ onPress: () => {
192
+ onClick();
193
+ },
194
+ icon: nextIcon,
195
+ variant: {
196
+ size: 'small'
197
+ }
198
+ });
199
+ };
200
+
160
201
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CalendarContainer.default, { ...selectProps(rest),
161
202
  daySize: daySize,
162
203
  validation: validation,
163
- remainingTokens: remainingTokens,
204
+ remainingTokens: { ...remainingTokens
205
+ },
206
+ calendarDayDefaultHeight: circleSize,
207
+ calendarDayDefaultWidth: circleSize,
164
208
  calendarMonthFontTokens: calendarMonthFontTokens,
165
- dayPickerNavigationButtonTokens: dayPickerNavigationButtonTokens,
209
+ calendarWeekFontTokens: calendarWeekFontTokens,
166
210
  defaultFontTokens: defaultFontTokens,
167
211
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.InputSupports, {
168
212
  copy: copy,
@@ -193,14 +237,14 @@ const DatePicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
193
237
  hideKeyboardShortcutsPanel: true,
194
238
  keepOpenOnDateSelect: false,
195
239
  daySize: daySize,
196
- navPrev: getIcon(previousIcon),
197
- navNext: getIcon(nextIcon),
240
+ renderNavPrevButton: renderPrevButton,
241
+ renderNavNextButton: renderNextButton,
198
242
  isOutsideRange: isDayDisabled,
199
243
  phrases: getCopy(),
200
- renderMonthElement: _ref3 => {
244
+ renderMonthElement: _ref5 => {
201
245
  let {
202
246
  month
203
- } = _ref3;
247
+ } = _ref5;
204
248
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(MonthCenterContainer, {
205
249
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
206
250
  children: [_dictionary.default[copy] ? _dictionary.default[copy].months[month.month()] : month.format('MMMM'), ' ', month.year()]
@@ -212,26 +256,26 @@ const DatePicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
212
256
  })
213
257
  })]
214
258
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_SingleDatePicker.default, {
215
- ref: ref,
216
- id: id,
217
259
  date: value,
218
260
  onDateChange: onChange,
219
261
  focused: isFocused,
220
262
  onFocusChange: onFocusChange,
221
263
  numberOfMonths: 1,
222
264
  hideKeyboardShortcutsPanel: true,
223
- displayFormat: "DD / MM / YYYY",
224
- placeholder: "DD / MM / YYYY",
225
- keepOpenOnDateSelect: false,
265
+ keepOpenOnDateSelect: true,
226
266
  daySize: daySize,
227
- navPrev: getIcon(previousIcon),
228
- navNext: getIcon(nextIcon),
267
+ ref: ref,
268
+ renderNavPrevButton: renderPrevButton,
229
269
  isOutsideRange: isDayDisabled,
230
270
  phrases: getCopy(),
231
- renderMonthElement: _ref4 => {
271
+ id: id,
272
+ displayFormat: "DD / MM / YYYY",
273
+ placeholder: "DD / MM / YYYY",
274
+ renderNavNextButton: renderNextButton,
275
+ renderMonthElement: _ref6 => {
232
276
  let {
233
277
  month
234
- } = _ref4;
278
+ } = _ref6;
235
279
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(MonthCenterContainer, {
236
280
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
237
281
  children: [_dictionary.default[copy] ? _dictionary.default[copy].months[month.month()] : month.format('MMMM'), ' ', month.year()]
@@ -52,7 +52,6 @@ const StyledFootnote = /*#__PURE__*/_styledComponents.default.div.withConfig({
52
52
  width: '100vw',
53
53
  backgroundColor: footnoteBackground,
54
54
  display: 'block',
55
- boxShadow: '0 0 16px 0 rgba(0, 0, 0, 0.1)',
56
55
  transform: 'translateY(100%)',
57
56
  transition: 'transform 500ms ease-out',
58
57
  '@media() (prefers-reduced-motion: reduce)': {
@@ -95,14 +94,20 @@ const StyledHeader = /*#__PURE__*/_styledComponents.default.div.withConfig({
95
94
  componentId: "components-web__sc-1563bo5-2"
96
95
  })(_ref3 => {
97
96
  let {
98
- headerMargin
97
+ footnoteHeaderPaddingLeft,
98
+ footnoteHeaderPaddingRight,
99
+ footnoteHeaderPaddingTop,
100
+ footnoteHeaderPaddingBottom
99
101
  } = _ref3;
100
102
  return {
101
103
  alignItems: 'center',
102
104
  display: 'flex',
103
105
  flexDirection: 'row',
104
106
  justifyContent: 'space-between',
105
- margin: headerMargin
107
+ paddingTop: footnoteHeaderPaddingTop,
108
+ paddingBottom: footnoteHeaderPaddingBottom,
109
+ paddingRight: footnoteHeaderPaddingRight,
110
+ paddingLeft: footnoteHeaderPaddingLeft
106
111
  };
107
112
  });
108
113
 
@@ -202,6 +207,7 @@ const CloseButton = /*#__PURE__*/_styledComponents.default.button.withConfig({
202
207
  cursor: 'pointer',
203
208
  display: 'flex',
204
209
  justifyContent: 'center',
210
+ backgroundColor: 'white',
205
211
  border: closeButtonBorder,
206
212
  height: closeButtonHeight,
207
213
  margin: closeButtonMargin,
@@ -295,6 +301,14 @@ const Footnote = props => {
295
301
  footnoteBodyPaddingRight,
296
302
  footnoteBodyPaddingTop,
297
303
  footnoteBodyPaddingBottom,
304
+ footnoteHeaderPaddingLeft,
305
+ footnoteHeaderPaddingRight,
306
+ footnoteHeaderPaddingTop,
307
+ footnoteHeaderPaddingBottom,
308
+ headerLineHeight,
309
+ headerFontSize,
310
+ headerFontName,
311
+ headerFontWeight,
298
312
  listPaddingLeft,
299
313
  listItemMarkerFontSize,
300
314
  listItemMarkerLineHeight,
@@ -506,13 +520,16 @@ const Footnote = props => {
506
520
  ref: headerRef,
507
521
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(StyledHeader, {
508
522
  ref: headingRef,
523
+ footnoteHeaderPaddingLeft: footnoteHeaderPaddingLeft,
524
+ footnoteHeaderPaddingRight: footnoteHeaderPaddingRight,
525
+ footnoteHeaderPaddingTop: footnoteHeaderPaddingTop,
526
+ footnoteHeaderPaddingBottom: footnoteHeaderPaddingBottom,
509
527
  headerMargin: headerMargin,
510
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
511
- block: true,
512
- heading: true,
513
- tabIndex: -1,
514
- variant: {
515
- size: 'h4'
528
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
529
+ style: {
530
+ fontSize: `${headerFontSize}px`,
531
+ lineHeight: `${headerLineHeight}px`,
532
+ fontFamily: `${headerFontName}${headerFontWeight}normal`
516
533
  },
517
534
  children: getCopy('heading')
518
535
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(CloseButton, {
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _componentsBase = require("@telus-uds/components-base");
9
+
10
+ var _default = _componentsBase.ListBase;
11
+ exports.default = _default;