@telus-uds/theme-allium 4.30.0 → 4.32.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/build/android/Card.json +161 -0
- package/build/android/CardGroup.json +52 -0
- package/build/android/ExpandCollapseControl.json +24 -1
- package/build/android/ExpandCollapsePanel.json +4 -1
- package/build/android/List.json +6 -0
- package/build/android/QuickLinksFeature.json +17 -2
- package/build/android/QuickLinksFeatureItem.json +1 -1
- package/build/android/Radio.json +13 -0
- package/build/android/schema.json +1217 -978
- package/build/android/theme.json +279 -6
- package/build/ios/Card.json +161 -0
- package/build/ios/CardGroup.json +52 -0
- package/build/ios/ExpandCollapseControl.json +24 -1
- package/build/ios/ExpandCollapsePanel.json +4 -1
- package/build/ios/List.json +6 -0
- package/build/ios/QuickLinksFeature.json +17 -2
- package/build/ios/QuickLinksFeatureItem.json +1 -1
- package/build/ios/Radio.json +13 -0
- package/build/ios/schema.json +1217 -978
- package/build/ios/theme.json +279 -6
- package/build/rn/ActivityIndicator.js +1 -1
- package/build/rn/Badge.js +1 -1
- package/build/rn/BlockQuote.js +1 -1
- package/build/rn/Box.js +1 -1
- package/build/rn/Breadcrumbs.js +1 -1
- package/build/rn/Button.js +1 -1
- package/build/rn/ButtonDropdown.js +1 -1
- package/build/rn/ButtonGroup.js +1 -1
- package/build/rn/ButtonGroupItem.js +1 -1
- package/build/rn/Callout.js +1 -1
- package/build/rn/Card.js +85 -3
- package/build/rn/CardGroup.js +62 -0
- package/build/rn/Carousel.js +1 -1
- package/build/rn/CarouselTabsPanelItem.js +1 -1
- package/build/rn/CarouselThumbnail.js +1 -1
- package/build/rn/Checkbox.js +1 -1
- package/build/rn/CheckboxCard.js +1 -1
- package/build/rn/CheckboxCardGroup.js +1 -1
- package/build/rn/CheckboxGroup.js +1 -1
- package/build/rn/ChevronLink.js +1 -1
- package/build/rn/ColourToggle.js +1 -1
- package/build/rn/Countdown.js +1 -1
- package/build/rn/DatePicker.js +1 -1
- package/build/rn/Disclaimer.js +1 -1
- package/build/rn/Divider.js +1 -1
- package/build/rn/ExpandCollapse.js +1 -1
- package/build/rn/ExpandCollapseControl.js +21 -2
- package/build/rn/ExpandCollapseMini.js +1 -1
- package/build/rn/ExpandCollapseMiniControl.js +1 -1
- package/build/rn/ExpandCollapsePanel.js +10 -2
- package/build/rn/Feedback.js +1 -1
- package/build/rn/Fieldset.js +1 -1
- package/build/rn/Footnote.js +1 -1
- package/build/rn/FootnoteLink.js +1 -1
- package/build/rn/HorizontalScrollButton.js +1 -1
- package/build/rn/Icon.js +1 -1
- package/build/rn/IconButton.js +1 -1
- package/build/rn/Image.js +1 -1
- package/build/rn/InputLabel.js +1 -1
- package/build/rn/InputSupports.js +1 -1
- package/build/rn/Link.js +1 -1
- package/build/rn/List.js +2 -1
- package/build/rn/Listbox.js +1 -1
- package/build/rn/Modal.js +1 -1
- package/build/rn/MultiSelectFilter.js +1 -1
- package/build/rn/NavigationBar.js +1 -1
- package/build/rn/Notification.js +1 -1
- package/build/rn/OrderedList.js +1 -1
- package/build/rn/Pagination.js +1 -1
- package/build/rn/PaginationPageButton.js +1 -1
- package/build/rn/PaginationSideButton.js +1 -1
- package/build/rn/PreviewCard.js +1 -1
- package/build/rn/PriceLockup.js +1 -1
- package/build/rn/ProductCard.js +1 -1
- package/build/rn/Progress.js +1 -1
- package/build/rn/ProgressBar.js +1 -1
- package/build/rn/QuantitySelector.js +1 -1
- package/build/rn/QuantitySelectorSideButton.js +1 -1
- package/build/rn/QuickLinks.js +1 -1
- package/build/rn/QuickLinksButton.js +1 -1
- package/build/rn/QuickLinksCard.js +1 -1
- package/build/rn/QuickLinksFeature.js +9 -3
- package/build/rn/QuickLinksFeatureItem.js +2 -2
- package/build/rn/QuickLinksList.js +1 -1
- package/build/rn/Radio.js +4 -1
- package/build/rn/RadioCard.js +1 -1
- package/build/rn/RadioCardGroup.js +1 -1
- package/build/rn/RadioGroup.js +1 -1
- package/build/rn/Ribbon.js +1 -1
- package/build/rn/Search.js +1 -1
- package/build/rn/SearchButton.js +1 -1
- package/build/rn/Select.js +1 -1
- package/build/rn/SideNav.js +1 -1
- package/build/rn/SideNavItem.js +1 -1
- package/build/rn/SideNavItemsGroup.js +1 -1
- package/build/rn/Skeleton.js +1 -1
- package/build/rn/SkipLink.js +1 -1
- package/build/rn/Spinner.js +1 -1
- package/build/rn/SplashButton.js +1 -1
- package/build/rn/SplashButtonWithDetails.js +1 -1
- package/build/rn/StackView.js +1 -1
- package/build/rn/StepTracker.js +1 -1
- package/build/rn/StoryCard.js +1 -1
- package/build/rn/Table.js +1 -1
- package/build/rn/Tabs.js +1 -1
- package/build/rn/TabsItem.js +1 -1
- package/build/rn/Tags.js +1 -1
- package/build/rn/TagsItem.js +1 -1
- package/build/rn/TermsAndConditions.js +1 -1
- package/build/rn/Testimonial.js +1 -1
- package/build/rn/TextArea.js +1 -1
- package/build/rn/TextInput.js +1 -1
- package/build/rn/Timeline.js +1 -1
- package/build/rn/Toast.js +1 -1
- package/build/rn/ToggleSwitch.js +1 -1
- package/build/rn/ToggleSwitchGroup.js +1 -1
- package/build/rn/Tooltip.js +1 -1
- package/build/rn/TooltipButton.js +1 -1
- package/build/rn/Typography.js +1 -1
- package/build/rn/Video.js +1 -1
- package/build/rn/VideoButton.js +1 -1
- package/build/rn/VideoControlBar.js +1 -1
- package/build/rn/VideoMenu.js +1 -1
- package/build/rn/VideoMiddleControlButton.js +1 -1
- package/build/rn/VideoPicker.js +1 -1
- package/build/rn/VideoPickerSlider.js +1 -1
- package/build/rn/VideoPickerThumbnail.js +1 -1
- package/build/rn/VideoProgressBar.js +1 -1
- package/build/rn/VideoVolumeSlider.js +1 -1
- package/build/rn/WaffleGrid.js +1 -1
- package/build/rn/schema.json +1217 -978
- package/build/rn/spacingScale.js +1 -1
- package/build/rn/theme.js +181 -9
- package/build/web/ActivityIndicator.js +1 -1
- package/build/web/Badge.js +1 -1
- package/build/web/BlockQuote.js +1 -1
- package/build/web/Box.js +1 -1
- package/build/web/Breadcrumbs.js +1 -1
- package/build/web/Button.js +1 -1
- package/build/web/ButtonDropdown.js +1 -1
- package/build/web/ButtonGroup.js +1 -1
- package/build/web/ButtonGroupItem.js +1 -1
- package/build/web/Callout.js +1 -1
- package/build/web/Card.js +85 -3
- package/build/web/CardGroup.js +62 -0
- package/build/web/Carousel.js +1 -1
- package/build/web/CarouselTabsPanelItem.js +1 -1
- package/build/web/CarouselThumbnail.js +1 -1
- package/build/web/Checkbox.js +1 -1
- package/build/web/CheckboxCard.js +1 -1
- package/build/web/CheckboxCardGroup.js +1 -1
- package/build/web/CheckboxGroup.js +1 -1
- package/build/web/ChevronLink.js +1 -1
- package/build/web/ColourToggle.js +1 -1
- package/build/web/Countdown.js +1 -1
- package/build/web/DatePicker.js +1 -1
- package/build/web/Disclaimer.js +1 -1
- package/build/web/Divider.js +1 -1
- package/build/web/ExpandCollapse.js +1 -1
- package/build/web/ExpandCollapseControl.js +21 -2
- package/build/web/ExpandCollapseMini.js +1 -1
- package/build/web/ExpandCollapseMiniControl.js +1 -1
- package/build/web/ExpandCollapsePanel.js +10 -2
- package/build/web/Feedback.js +1 -1
- package/build/web/Fieldset.js +1 -1
- package/build/web/Footnote.js +1 -1
- package/build/web/FootnoteLink.js +1 -1
- package/build/web/HorizontalScrollButton.js +1 -1
- package/build/web/Icon.js +1 -1
- package/build/web/IconButton.js +1 -1
- package/build/web/Image.js +1 -1
- package/build/web/InputLabel.js +1 -1
- package/build/web/InputSupports.js +1 -1
- package/build/web/Link.js +1 -1
- package/build/web/List.js +2 -1
- package/build/web/Listbox.js +1 -1
- package/build/web/Modal.js +1 -1
- package/build/web/MultiSelectFilter.js +1 -1
- package/build/web/NavigationBar.js +1 -1
- package/build/web/Notification.js +1 -1
- package/build/web/OrderedList.js +1 -1
- package/build/web/Pagination.js +1 -1
- package/build/web/PaginationPageButton.js +1 -1
- package/build/web/PaginationSideButton.js +1 -1
- package/build/web/PreviewCard.js +1 -1
- package/build/web/PriceLockup.js +1 -1
- package/build/web/ProductCard.js +1 -1
- package/build/web/Progress.js +1 -1
- package/build/web/ProgressBar.js +1 -1
- package/build/web/QuantitySelector.js +1 -1
- package/build/web/QuantitySelectorSideButton.js +1 -1
- package/build/web/QuickLinks.js +1 -1
- package/build/web/QuickLinksButton.js +1 -1
- package/build/web/QuickLinksCard.js +1 -1
- package/build/web/QuickLinksFeature.js +9 -3
- package/build/web/QuickLinksFeatureItem.js +2 -2
- package/build/web/QuickLinksList.js +1 -1
- package/build/web/Radio.js +4 -1
- package/build/web/RadioCard.js +1 -1
- package/build/web/RadioCardGroup.js +1 -1
- package/build/web/RadioGroup.js +1 -1
- package/build/web/Ribbon.js +1 -1
- package/build/web/Search.js +1 -1
- package/build/web/SearchButton.js +1 -1
- package/build/web/Select.js +1 -1
- package/build/web/SideNav.js +1 -1
- package/build/web/SideNavItem.js +1 -1
- package/build/web/SideNavItemsGroup.js +1 -1
- package/build/web/Skeleton.js +1 -1
- package/build/web/SkipLink.js +1 -1
- package/build/web/Spinner.js +1 -1
- package/build/web/SplashButton.js +1 -1
- package/build/web/SplashButtonWithDetails.js +1 -1
- package/build/web/StackView.js +1 -1
- package/build/web/StepTracker.js +1 -1
- package/build/web/StoryCard.js +1 -1
- package/build/web/Table.js +1 -1
- package/build/web/Tabs.js +1 -1
- package/build/web/TabsItem.js +1 -1
- package/build/web/Tags.js +1 -1
- package/build/web/TagsItem.js +1 -1
- package/build/web/TermsAndConditions.js +1 -1
- package/build/web/Testimonial.js +1 -1
- package/build/web/TextArea.js +1 -1
- package/build/web/TextInput.js +1 -1
- package/build/web/Timeline.js +1 -1
- package/build/web/Toast.js +1 -1
- package/build/web/ToggleSwitch.js +1 -1
- package/build/web/ToggleSwitchGroup.js +1 -1
- package/build/web/Tooltip.js +1 -1
- package/build/web/TooltipButton.js +1 -1
- package/build/web/Typography.js +1 -1
- package/build/web/Video.js +1 -1
- package/build/web/VideoButton.js +1 -1
- package/build/web/VideoControlBar.js +1 -1
- package/build/web/VideoMenu.js +1 -1
- package/build/web/VideoMiddleControlButton.js +1 -1
- package/build/web/VideoPicker.js +1 -1
- package/build/web/VideoPickerSlider.js +1 -1
- package/build/web/VideoPickerThumbnail.js +1 -1
- package/build/web/VideoProgressBar.js +1 -1
- package/build/web/VideoVolumeSlider.js +1 -1
- package/build/web/WaffleGrid.js +1 -1
- package/build/web/index.js +2 -1
- package/build/web/schema.json +1217 -978
- package/build/web/spacingScale.js +1 -1
- package/build/web/theme.js +181 -9
- package/package.json +5 -5
- package/theme.json +189 -5
package/build/web/theme.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/*
|
|
2
2
|
*
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Fri, 07 Jun 2024 22:35:15 GMT
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import PaletteIconChevronRight from '@telus-uds/palette-allium/build/rn/icons/ChevronRight'
|
|
9
9
|
import PaletteIconCaretDown from '@telus-uds/palette-allium/build/rn/icons/CaretDown'
|
|
10
10
|
import PaletteIconCaretUp from '@telus-uds/palette-allium/build/rn/icons/CaretUp'
|
|
11
|
+
import PaletteIconCheckmark from '@telus-uds/palette-allium/build/rn/icons/Checkmark'
|
|
11
12
|
import PaletteIconArrowRight from '@telus-uds/palette-allium/build/rn/icons/ArrowRight'
|
|
12
13
|
import PaletteIconPause from '@telus-uds/palette-allium/build/rn/icons/Pause'
|
|
13
14
|
import PaletteIconPlayVideo from '@telus-uds/palette-allium/build/rn/icons/PlayVideo'
|
|
14
15
|
import PaletteIconArrowLeft from '@telus-uds/palette-allium/build/rn/icons/ArrowLeft'
|
|
15
|
-
import PaletteIconCheckmark from '@telus-uds/palette-allium/build/rn/icons/Checkmark'
|
|
16
16
|
import PaletteIconStatusSuccess from '@telus-uds/palette-allium/build/rn/icons/StatusSuccess'
|
|
17
17
|
import PaletteIconStatusError from '@telus-uds/palette-allium/build/rn/icons/StatusError'
|
|
18
18
|
import PaletteIconClose from '@telus-uds/palette-allium/build/rn/icons/Close'
|
|
@@ -1102,6 +1102,7 @@ const theme = {
|
|
|
1102
1102
|
values: [ true, false ]
|
|
1103
1103
|
},
|
|
1104
1104
|
interactive: { type: 'variant', values: [ true ] },
|
|
1105
|
+
isControl: { type: 'variant', values: [ true, false ] },
|
|
1105
1106
|
padding: {
|
|
1106
1107
|
type: 'variant',
|
|
1107
1108
|
values: [ 'narrow', 'intermediate', 'compact', 'custom' ]
|
|
@@ -1111,6 +1112,11 @@ const theme = {
|
|
|
1111
1112
|
type: 'state',
|
|
1112
1113
|
values: [ true, false ]
|
|
1113
1114
|
},
|
|
1115
|
+
selected: {
|
|
1116
|
+
description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
|
|
1117
|
+
type: 'state',
|
|
1118
|
+
values: [ true ]
|
|
1119
|
+
},
|
|
1114
1120
|
viewport: {
|
|
1115
1121
|
description: 'The size label for the current screen viewport based on the current screen width',
|
|
1116
1122
|
type: 'state',
|
|
@@ -1118,6 +1124,47 @@ const theme = {
|
|
|
1118
1124
|
}
|
|
1119
1125
|
},
|
|
1120
1126
|
rules: [
|
|
1127
|
+
{
|
|
1128
|
+
if: { interactive: true, isControl: true },
|
|
1129
|
+
tokens: { borderColor: '#b2b9bf', borderWidth: 1 }
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
if: { interactive: true, isControl: true, selected: true },
|
|
1133
|
+
tokens: {
|
|
1134
|
+
backgroundColor: '#f4f4f7',
|
|
1135
|
+
borderColor: '#4b286d',
|
|
1136
|
+
borderWidth: 1,
|
|
1137
|
+
iconBackgroundColor: '#e3e6e8',
|
|
1138
|
+
iconColor: '#4b286d',
|
|
1139
|
+
inputBackgroundColor: '#e3e6e8'
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
if: { hover: true, interactive: true, isControl: true },
|
|
1144
|
+
tokens: { iconColor: '#414547' }
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
if: {
|
|
1148
|
+
focus: false,
|
|
1149
|
+
interactive: true,
|
|
1150
|
+
isControl: true,
|
|
1151
|
+
pressed: false
|
|
1152
|
+
},
|
|
1153
|
+
tokens: { borderColor: 'rgba(0, 0, 0, 0)', borderWidth: 2 }
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
if: {
|
|
1157
|
+
hover: true,
|
|
1158
|
+
interactive: true,
|
|
1159
|
+
isControl: true,
|
|
1160
|
+
selected: true
|
|
1161
|
+
},
|
|
1162
|
+
tokens: {
|
|
1163
|
+
iconBackgroundColor: '#e3e6e8',
|
|
1164
|
+
iconColor: '#414547',
|
|
1165
|
+
inputBackgroundColor: '#e3e6e8'
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1121
1168
|
{ if: { borderRadius: 'none' }, tokens: { borderRadius: 0 } },
|
|
1122
1169
|
{ if: { borderRadius: 'small' }, tokens: { borderRadius: 6 } },
|
|
1123
1170
|
{ if: { borderRadius: 'large' }, tokens: { borderRadius: 12 } },
|
|
@@ -1212,9 +1259,18 @@ const theme = {
|
|
|
1212
1259
|
}
|
|
1213
1260
|
},
|
|
1214
1261
|
{
|
|
1215
|
-
if: {
|
|
1262
|
+
if: {
|
|
1263
|
+
focus: false,
|
|
1264
|
+
interactive: true,
|
|
1265
|
+
isControl: false,
|
|
1266
|
+
pressed: false
|
|
1267
|
+
},
|
|
1216
1268
|
tokens: { borderColor: '#ffffff', borderWidth: 2 }
|
|
1217
1269
|
},
|
|
1270
|
+
{
|
|
1271
|
+
if: { focus: false, interactive: true, pressed: false },
|
|
1272
|
+
tokens: { borderColor: 'rgba(0, 0, 0, 0)', borderWidth: 2 }
|
|
1273
|
+
},
|
|
1218
1274
|
{
|
|
1219
1275
|
if: { hover: true, interactive: true },
|
|
1220
1276
|
tokens: {
|
|
@@ -1233,6 +1289,14 @@ const theme = {
|
|
|
1233
1289
|
borderColor: '#e3e6e8',
|
|
1234
1290
|
borderWidth: 2
|
|
1235
1291
|
}
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
if: { interactive: true, isControl: false, selected: true },
|
|
1295
|
+
tokens: {
|
|
1296
|
+
backgroundColor: '#f4f4f7',
|
|
1297
|
+
borderColor: '#4b286d',
|
|
1298
|
+
borderWidth: 1
|
|
1299
|
+
}
|
|
1236
1300
|
}
|
|
1237
1301
|
],
|
|
1238
1302
|
tokens: {
|
|
@@ -1246,6 +1310,24 @@ const theme = {
|
|
|
1246
1310
|
contentJustifyContent: 'flex-start',
|
|
1247
1311
|
flex: 1,
|
|
1248
1312
|
gradient: null,
|
|
1313
|
+
icon: PaletteIconCheckmark,
|
|
1314
|
+
iconBackgroundColor: '#f4f4f7',
|
|
1315
|
+
iconColor: '#4b286d',
|
|
1316
|
+
iconSize: 20,
|
|
1317
|
+
inputBackgroundColor: '#f4f4f7',
|
|
1318
|
+
inputBorderColor: 'rgba(0, 0, 0, 0)',
|
|
1319
|
+
inputBorderRadius: 4,
|
|
1320
|
+
inputBorderWidth: 0,
|
|
1321
|
+
inputHeight: 32,
|
|
1322
|
+
inputShadow: {
|
|
1323
|
+
blur: 2,
|
|
1324
|
+
color: 'rgba(0, 0, 0, 0.1)',
|
|
1325
|
+
inset: true,
|
|
1326
|
+
offsetX: 0,
|
|
1327
|
+
offsetY: 2,
|
|
1328
|
+
spread: 0
|
|
1329
|
+
},
|
|
1330
|
+
inputWidth: 32,
|
|
1249
1331
|
minWidth: null,
|
|
1250
1332
|
paddingBottom: 32,
|
|
1251
1333
|
paddingLeft: 24,
|
|
@@ -1254,6 +1336,59 @@ const theme = {
|
|
|
1254
1336
|
shadow: null
|
|
1255
1337
|
}
|
|
1256
1338
|
},
|
|
1339
|
+
CardGroup: {
|
|
1340
|
+
appearances: {
|
|
1341
|
+
focus: {
|
|
1342
|
+
description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
|
|
1343
|
+
platforms: [ 'rn', 'web' ],
|
|
1344
|
+
type: 'state',
|
|
1345
|
+
values: [ true, false ]
|
|
1346
|
+
},
|
|
1347
|
+
hover: {
|
|
1348
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
1349
|
+
platforms: [ 'rn', 'web' ],
|
|
1350
|
+
type: 'state',
|
|
1351
|
+
values: [ true, false ]
|
|
1352
|
+
},
|
|
1353
|
+
pressed: {
|
|
1354
|
+
description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
|
|
1355
|
+
type: 'state',
|
|
1356
|
+
values: [ true, false ]
|
|
1357
|
+
},
|
|
1358
|
+
selected: {
|
|
1359
|
+
description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
|
|
1360
|
+
type: 'state',
|
|
1361
|
+
values: [ true ]
|
|
1362
|
+
},
|
|
1363
|
+
viewport: {
|
|
1364
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
1365
|
+
type: 'state',
|
|
1366
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
1367
|
+
}
|
|
1368
|
+
},
|
|
1369
|
+
rules: [
|
|
1370
|
+
{
|
|
1371
|
+
if: { viewport: [ 'lg', 'xl' ] },
|
|
1372
|
+
tokens: { direction: 'row', space: 5 }
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
if: { viewport: [ 'xs', 'sm', 'md' ] },
|
|
1376
|
+
tokens: { direction: 'column', fieldSpace: 3, space: 3 }
|
|
1377
|
+
}
|
|
1378
|
+
],
|
|
1379
|
+
tokens: {
|
|
1380
|
+
borderBottomLeftRadius: 1,
|
|
1381
|
+
borderBottomRightRadius: 1,
|
|
1382
|
+
borderTopLeftRadius: 1,
|
|
1383
|
+
borderTopRightRadius: 1,
|
|
1384
|
+
direction: 'column',
|
|
1385
|
+
fieldSpace: 3,
|
|
1386
|
+
outlineOffset: 8,
|
|
1387
|
+
outlineWidth: 1,
|
|
1388
|
+
showIcon: true,
|
|
1389
|
+
space: 3
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1257
1392
|
Carousel: {
|
|
1258
1393
|
appearances: {
|
|
1259
1394
|
viewport: {
|
|
@@ -2165,7 +2300,10 @@ const theme = {
|
|
|
2165
2300
|
paddingTop: 8
|
|
2166
2301
|
}
|
|
2167
2302
|
},
|
|
2168
|
-
{
|
|
2303
|
+
{
|
|
2304
|
+
if: { mini: true },
|
|
2305
|
+
tokens: { borderWidth: null, paddingBottom: 0, paddingTop: 0 }
|
|
2306
|
+
},
|
|
2169
2307
|
{
|
|
2170
2308
|
if: { focus: true },
|
|
2171
2309
|
tokens: {
|
|
@@ -2174,6 +2312,14 @@ const theme = {
|
|
|
2174
2312
|
borderWidth: 1
|
|
2175
2313
|
}
|
|
2176
2314
|
},
|
|
2315
|
+
{
|
|
2316
|
+
if: { focus: true, mini: true },
|
|
2317
|
+
tokens: {
|
|
2318
|
+
backgroundColor: '#f4f4f7',
|
|
2319
|
+
borderColor: '#676e73',
|
|
2320
|
+
borderWidth: null
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2177
2323
|
{
|
|
2178
2324
|
if: { hover: true },
|
|
2179
2325
|
tokens: { backgroundColor: '#fafafa', iconPaddingTop: 8 }
|
|
@@ -2189,6 +2335,14 @@ const theme = {
|
|
|
2189
2335
|
borderColor: '#676e73',
|
|
2190
2336
|
borderWidth: 1
|
|
2191
2337
|
}
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
if: { mini: true, pressed: true },
|
|
2341
|
+
tokens: {
|
|
2342
|
+
backgroundColor: '#e3e6e8',
|
|
2343
|
+
borderColor: '#676e73',
|
|
2344
|
+
borderWidth: null
|
|
2345
|
+
}
|
|
2192
2346
|
}
|
|
2193
2347
|
],
|
|
2194
2348
|
tokens: {
|
|
@@ -2294,7 +2448,15 @@ const theme = {
|
|
|
2294
2448
|
contentPaddingTop: 8
|
|
2295
2449
|
}
|
|
2296
2450
|
},
|
|
2297
|
-
{
|
|
2451
|
+
{
|
|
2452
|
+
if: { mini: true },
|
|
2453
|
+
tokens: {
|
|
2454
|
+
contentPaddingBottom: 0,
|
|
2455
|
+
contentPaddingLeft: 0,
|
|
2456
|
+
contentPanelPaddingBottom: 0,
|
|
2457
|
+
contentPanelPaddingTop: 0
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2298
2460
|
],
|
|
2299
2461
|
tokens: {
|
|
2300
2462
|
borderColor: 'rgba(0, 0, 0, 0)',
|
|
@@ -3257,6 +3419,7 @@ const theme = {
|
|
|
3257
3419
|
itemIconColor: '#4b286d',
|
|
3258
3420
|
itemIconSize: 24,
|
|
3259
3421
|
itemLineHeight: 1.5,
|
|
3422
|
+
itemTextColor: '#414547',
|
|
3260
3423
|
listGutter: 8
|
|
3261
3424
|
}
|
|
3262
3425
|
},
|
|
@@ -4646,8 +4809,14 @@ const theme = {
|
|
|
4646
4809
|
}
|
|
4647
4810
|
},
|
|
4648
4811
|
QuickLinksFeature: {
|
|
4649
|
-
appearances: {
|
|
4650
|
-
|
|
4812
|
+
appearances: {
|
|
4813
|
+
viewport: {
|
|
4814
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
4815
|
+
type: 'state',
|
|
4816
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
4817
|
+
}
|
|
4818
|
+
},
|
|
4819
|
+
rules: [ { if: { viewport: 'xs' }, tokens: { stackSpace: 4 } } ],
|
|
4651
4820
|
tokens: { stackGap: 5, stackJustify: 'center', stackSpace: 5 }
|
|
4652
4821
|
},
|
|
4653
4822
|
QuickLinksFeatureItem: {
|
|
@@ -4714,7 +4883,7 @@ const theme = {
|
|
|
4714
4883
|
fontName: 'HelveticaNow',
|
|
4715
4884
|
fontSize: 16,
|
|
4716
4885
|
fontWeight: '700',
|
|
4717
|
-
gap:
|
|
4886
|
+
gap: 5,
|
|
4718
4887
|
imageDimension: 128,
|
|
4719
4888
|
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
4720
4889
|
textAlign: 'center',
|
|
@@ -4866,6 +5035,9 @@ const theme = {
|
|
|
4866
5035
|
descriptionFontWeight: '400',
|
|
4867
5036
|
descriptionLineHeight: 1.42857142857,
|
|
4868
5037
|
descriptionMarginLeft: null,
|
|
5038
|
+
icon: null,
|
|
5039
|
+
iconBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
5040
|
+
iconColor: 'rgba(0, 0, 0, 0)',
|
|
4869
5041
|
inputBackgroundColor: '#ffffff',
|
|
4870
5042
|
inputBorderColor: '#676e73',
|
|
4871
5043
|
inputBorderWidth: 1,
|
|
@@ -7450,6 +7622,6 @@ const theme = {
|
|
|
7450
7622
|
tokens: { size: 96 }
|
|
7451
7623
|
}
|
|
7452
7624
|
},
|
|
7453
|
-
metadata: { name: 'theme-allium', themeTokensVersion: '2.
|
|
7625
|
+
metadata: { name: 'theme-allium', themeTokensVersion: '2.57.0' }
|
|
7454
7626
|
}
|
|
7455
7627
|
export default theme
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telus-uds/theme-allium",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.32.0",
|
|
4
4
|
"description": "Allium theme",
|
|
5
5
|
"author": "TELUS Digital",
|
|
6
6
|
"homepage": "https://github.com/telus/allium-design-system#readme",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"module": "build/web/index.js",
|
|
10
10
|
"dependencies": {},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@telus-uds/palette-allium": "^2.
|
|
13
|
-
"@telus-uds/system-theme-tokens": "^2.
|
|
14
|
-
"@telus-uds/system-tokens": "^0.8.
|
|
12
|
+
"@telus-uds/palette-allium": "^2.32.1",
|
|
13
|
+
"@telus-uds/system-theme-tokens": "^2.57.0",
|
|
14
|
+
"@telus-uds/system-tokens": "^0.8.3"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@telus-uds/palette-allium": "^2.
|
|
17
|
+
"@telus-uds/palette-allium": "^2.32.1"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"build",
|
package/theme.json
CHANGED
|
@@ -1335,14 +1335,79 @@
|
|
|
1335
1335
|
"type": "variant",
|
|
1336
1336
|
"values": [true]
|
|
1337
1337
|
},
|
|
1338
|
+
"isControl": {
|
|
1339
|
+
"type": "variant",
|
|
1340
|
+
"values": [true, false]
|
|
1341
|
+
},
|
|
1338
1342
|
"padding": {
|
|
1339
1343
|
"type": "variant",
|
|
1340
1344
|
"values": ["narrow", "intermediate", "compact", "custom"]
|
|
1341
1345
|
},
|
|
1342
1346
|
"pressed": "{appearances.Card.pressed}",
|
|
1347
|
+
"selected": "{appearances.Card.selected}",
|
|
1343
1348
|
"viewport": "{appearances.system.viewport}"
|
|
1344
1349
|
},
|
|
1345
1350
|
"rules": [
|
|
1351
|
+
{
|
|
1352
|
+
"if": {
|
|
1353
|
+
"interactive": true,
|
|
1354
|
+
"isControl": true
|
|
1355
|
+
},
|
|
1356
|
+
"tokens": {
|
|
1357
|
+
"borderColor": "{palette.color.greyCloud}",
|
|
1358
|
+
"borderWidth": "{palette.border.border1}"
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
"if": {
|
|
1363
|
+
"interactive": true,
|
|
1364
|
+
"isControl": true,
|
|
1365
|
+
"selected": true
|
|
1366
|
+
},
|
|
1367
|
+
"tokens": {
|
|
1368
|
+
"backgroundColor": "{palette.color.greyAthens}",
|
|
1369
|
+
"borderColor": "{palette.color.purpleTelus}",
|
|
1370
|
+
"borderWidth": "{palette.border.border1}",
|
|
1371
|
+
"iconBackgroundColor": "{palette.color.greyMystic}",
|
|
1372
|
+
"iconColor": "{palette.color.purpleTelus}",
|
|
1373
|
+
"inputBackgroundColor": "{palette.color.greyMystic}"
|
|
1374
|
+
}
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"if": {
|
|
1378
|
+
"hover": true,
|
|
1379
|
+
"interactive": true,
|
|
1380
|
+
"isControl": true
|
|
1381
|
+
},
|
|
1382
|
+
"tokens": {
|
|
1383
|
+
"iconColor": "{palette.color.greyCharcoal}"
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"if": {
|
|
1388
|
+
"focus": false,
|
|
1389
|
+
"interactive": true,
|
|
1390
|
+
"isControl": true,
|
|
1391
|
+
"pressed": false
|
|
1392
|
+
},
|
|
1393
|
+
"tokens": {
|
|
1394
|
+
"borderColor": "{palette.color.transparent}",
|
|
1395
|
+
"borderWidth": "{palette.border.border2}"
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"if": {
|
|
1400
|
+
"hover": true,
|
|
1401
|
+
"interactive": true,
|
|
1402
|
+
"isControl": true,
|
|
1403
|
+
"selected": true
|
|
1404
|
+
},
|
|
1405
|
+
"tokens": {
|
|
1406
|
+
"iconBackgroundColor": "{palette.color.greyMystic}",
|
|
1407
|
+
"iconColor": "{palette.color.greyCharcoal}",
|
|
1408
|
+
"inputBackgroundColor": "{palette.color.greyMystic}"
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1346
1411
|
{
|
|
1347
1412
|
"if": {
|
|
1348
1413
|
"borderRadius": "none"
|
|
@@ -1485,6 +1550,7 @@
|
|
|
1485
1550
|
"if": {
|
|
1486
1551
|
"focus": false,
|
|
1487
1552
|
"interactive": true,
|
|
1553
|
+
"isControl": false,
|
|
1488
1554
|
"pressed": false
|
|
1489
1555
|
},
|
|
1490
1556
|
"tokens": {
|
|
@@ -1492,6 +1558,17 @@
|
|
|
1492
1558
|
"borderWidth": "{palette.border.border2}"
|
|
1493
1559
|
}
|
|
1494
1560
|
},
|
|
1561
|
+
{
|
|
1562
|
+
"if": {
|
|
1563
|
+
"focus": false,
|
|
1564
|
+
"interactive": true,
|
|
1565
|
+
"pressed": false
|
|
1566
|
+
},
|
|
1567
|
+
"tokens": {
|
|
1568
|
+
"borderColor": "{palette.color.transparent}",
|
|
1569
|
+
"borderWidth": "{palette.border.border2}"
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1495
1572
|
{
|
|
1496
1573
|
"if": {
|
|
1497
1574
|
"hover": true,
|
|
@@ -1522,6 +1599,18 @@
|
|
|
1522
1599
|
"borderColor": "{palette.color.greyMystic}",
|
|
1523
1600
|
"borderWidth": "{palette.border.border2}"
|
|
1524
1601
|
}
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
"if": {
|
|
1605
|
+
"interactive": true,
|
|
1606
|
+
"isControl": false,
|
|
1607
|
+
"selected": true
|
|
1608
|
+
},
|
|
1609
|
+
"tokens": {
|
|
1610
|
+
"backgroundColor": "{palette.color.greyAthens}",
|
|
1611
|
+
"borderColor": "{palette.color.purpleTelus}",
|
|
1612
|
+
"borderWidth": "{palette.border.border1}"
|
|
1613
|
+
}
|
|
1525
1614
|
}
|
|
1526
1615
|
],
|
|
1527
1616
|
"tokens": {
|
|
@@ -1535,6 +1624,17 @@
|
|
|
1535
1624
|
"contentJustifyContent": "{system.flexJustifyContent.flexStart}",
|
|
1536
1625
|
"flex": "{system.integer.1}",
|
|
1537
1626
|
"gradient": "{system.gradient.none}",
|
|
1627
|
+
"icon": "{palette.icon.Checkmark}",
|
|
1628
|
+
"iconBackgroundColor": "{palette.color.greyAthens}",
|
|
1629
|
+
"iconColor": "{palette.color.purpleTelus}",
|
|
1630
|
+
"iconSize": "{palette.size.size20}",
|
|
1631
|
+
"inputBackgroundColor": "{palette.color.greyAthens}",
|
|
1632
|
+
"inputBorderColor": "{palette.color.transparent}",
|
|
1633
|
+
"inputBorderRadius": "{palette.radius.radius4}",
|
|
1634
|
+
"inputBorderWidth": "{palette.border.none}",
|
|
1635
|
+
"inputHeight": "{palette.size.size32}",
|
|
1636
|
+
"inputShadow": "{palette.shadow.surfaceInset}",
|
|
1637
|
+
"inputWidth": "{palette.size.size32}",
|
|
1538
1638
|
"minWidth": "{system.size.none}",
|
|
1539
1639
|
"paddingBottom": "{palette.size.size32}",
|
|
1540
1640
|
"paddingLeft": "{palette.size.size24}",
|
|
@@ -1543,6 +1643,48 @@
|
|
|
1543
1643
|
"shadow": "{system.shadow.none}"
|
|
1544
1644
|
}
|
|
1545
1645
|
},
|
|
1646
|
+
"CardGroup": {
|
|
1647
|
+
"appearances": {
|
|
1648
|
+
"focus": "{appearances.CardGroup.focus}",
|
|
1649
|
+
"hover": "{appearances.CardGroup.hover}",
|
|
1650
|
+
"pressed": "{appearances.CardGroup.pressed}",
|
|
1651
|
+
"selected": "{appearances.CardGroup.selected}",
|
|
1652
|
+
"viewport": "{appearances.system.viewport}"
|
|
1653
|
+
},
|
|
1654
|
+
"rules": [
|
|
1655
|
+
{
|
|
1656
|
+
"if": {
|
|
1657
|
+
"viewport": ["lg", "xl"]
|
|
1658
|
+
},
|
|
1659
|
+
"tokens": {
|
|
1660
|
+
"direction": "{system.direction.row}",
|
|
1661
|
+
"space": "{system.integer.5}"
|
|
1662
|
+
}
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"if": {
|
|
1666
|
+
"viewport": ["xs", "sm", "md"]
|
|
1667
|
+
},
|
|
1668
|
+
"tokens": {
|
|
1669
|
+
"direction": "{system.direction.column}",
|
|
1670
|
+
"fieldSpace": "{system.integer.3}",
|
|
1671
|
+
"space": "{system.integer.3}"
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
],
|
|
1675
|
+
"tokens": {
|
|
1676
|
+
"borderBottomLeftRadius": "{palette.radius.radius1}",
|
|
1677
|
+
"borderBottomRightRadius": "{palette.radius.radius1}",
|
|
1678
|
+
"borderTopLeftRadius": "{palette.radius.radius1}",
|
|
1679
|
+
"borderTopRightRadius": "{palette.radius.radius1}",
|
|
1680
|
+
"direction": "{system.direction.column}",
|
|
1681
|
+
"fieldSpace": "{system.integer.3}",
|
|
1682
|
+
"outlineOffset": "{palette.size.size8}",
|
|
1683
|
+
"outlineWidth": "{palette.border.border1}",
|
|
1684
|
+
"showIcon": "{system.show.true}",
|
|
1685
|
+
"space": "{system.integer.3}"
|
|
1686
|
+
}
|
|
1687
|
+
},
|
|
1546
1688
|
"Carousel": {
|
|
1547
1689
|
"appearances": {
|
|
1548
1690
|
"viewport": "{appearances.system.viewport}"
|
|
@@ -2592,7 +2734,9 @@
|
|
|
2592
2734
|
"mini": true
|
|
2593
2735
|
},
|
|
2594
2736
|
"tokens": {
|
|
2595
|
-
"
|
|
2737
|
+
"borderWidth": "{system.border.none}",
|
|
2738
|
+
"paddingBottom": "{palette.size.size0}",
|
|
2739
|
+
"paddingTop": "{palette.size.size0}"
|
|
2596
2740
|
}
|
|
2597
2741
|
},
|
|
2598
2742
|
{
|
|
@@ -2605,6 +2749,17 @@
|
|
|
2605
2749
|
"borderWidth": "{palette.border.border1}"
|
|
2606
2750
|
}
|
|
2607
2751
|
},
|
|
2752
|
+
{
|
|
2753
|
+
"if": {
|
|
2754
|
+
"focus": true,
|
|
2755
|
+
"mini": true
|
|
2756
|
+
},
|
|
2757
|
+
"tokens": {
|
|
2758
|
+
"backgroundColor": "{palette.color.greyAthens}",
|
|
2759
|
+
"borderColor": "{palette.color.greyShuttle}",
|
|
2760
|
+
"borderWidth": "{system.border.none}"
|
|
2761
|
+
}
|
|
2762
|
+
},
|
|
2608
2763
|
{
|
|
2609
2764
|
"if": {
|
|
2610
2765
|
"hover": true
|
|
@@ -2633,6 +2788,17 @@
|
|
|
2633
2788
|
"borderColor": "{palette.color.greyShuttle}",
|
|
2634
2789
|
"borderWidth": "{palette.border.border1}"
|
|
2635
2790
|
}
|
|
2791
|
+
},
|
|
2792
|
+
{
|
|
2793
|
+
"if": {
|
|
2794
|
+
"mini": true,
|
|
2795
|
+
"pressed": true
|
|
2796
|
+
},
|
|
2797
|
+
"tokens": {
|
|
2798
|
+
"backgroundColor": "{palette.color.greyMystic}",
|
|
2799
|
+
"borderColor": "{palette.color.greyShuttle}",
|
|
2800
|
+
"borderWidth": "{system.border.none}"
|
|
2801
|
+
}
|
|
2636
2802
|
}
|
|
2637
2803
|
],
|
|
2638
2804
|
"tokens": {
|
|
@@ -2789,7 +2955,10 @@
|
|
|
2789
2955
|
"mini": true
|
|
2790
2956
|
},
|
|
2791
2957
|
"tokens": {
|
|
2792
|
-
"
|
|
2958
|
+
"contentPaddingBottom": "{palette.size.size0}",
|
|
2959
|
+
"contentPaddingLeft": "{palette.size.size0}",
|
|
2960
|
+
"contentPanelPaddingBottom": "{palette.size.size0}",
|
|
2961
|
+
"contentPanelPaddingTop": "{palette.size.size0}"
|
|
2793
2962
|
}
|
|
2794
2963
|
}
|
|
2795
2964
|
],
|
|
@@ -4319,6 +4488,7 @@
|
|
|
4319
4488
|
"itemIconColor": "{palette.color.purpleTelus}",
|
|
4320
4489
|
"itemIconSize": "{palette.size.size24}",
|
|
4321
4490
|
"itemLineHeight": "{palette.lineHeight.ratio3to2}",
|
|
4491
|
+
"itemTextColor": "{palette.color.greyCharcoal}",
|
|
4322
4492
|
"listGutter": "{palette.size.size8}"
|
|
4323
4493
|
}
|
|
4324
4494
|
},
|
|
@@ -5886,8 +6056,19 @@
|
|
|
5886
6056
|
}
|
|
5887
6057
|
},
|
|
5888
6058
|
"QuickLinksFeature": {
|
|
5889
|
-
"appearances": {
|
|
5890
|
-
|
|
6059
|
+
"appearances": {
|
|
6060
|
+
"viewport": "{appearances.system.viewport}"
|
|
6061
|
+
},
|
|
6062
|
+
"rules": [
|
|
6063
|
+
{
|
|
6064
|
+
"if": {
|
|
6065
|
+
"viewport": "xs"
|
|
6066
|
+
},
|
|
6067
|
+
"tokens": {
|
|
6068
|
+
"stackSpace": "{system.integer.4}"
|
|
6069
|
+
}
|
|
6070
|
+
}
|
|
6071
|
+
],
|
|
5891
6072
|
"tokens": {
|
|
5892
6073
|
"stackGap": "{system.integer.5}",
|
|
5893
6074
|
"stackJustify": "{system.flexJustifyContent.center}",
|
|
@@ -5968,7 +6149,7 @@
|
|
|
5968
6149
|
"fontName": "{palette.fontName.HelveticaNow}",
|
|
5969
6150
|
"fontSize": "{palette.fontSize.size16}",
|
|
5970
6151
|
"fontWeight": "{palette.fontWeight.weight700}",
|
|
5971
|
-
"gap": "{palette.size.
|
|
6152
|
+
"gap": "{palette.size.size5}",
|
|
5972
6153
|
"imageDimension": "{palette.size.size128}",
|
|
5973
6154
|
"outerBorderColor": "{palette.color.transparent}",
|
|
5974
6155
|
"textAlign": "{system.textAlign.center}",
|
|
@@ -6113,6 +6294,9 @@
|
|
|
6113
6294
|
"descriptionFontWeight": "{palette.fontWeight.weight400}",
|
|
6114
6295
|
"descriptionLineHeight": "{palette.lineHeight.ratio10to7}",
|
|
6115
6296
|
"descriptionMarginLeft": "{system.size.none}",
|
|
6297
|
+
"icon": "{system.icon.none}",
|
|
6298
|
+
"iconBackgroundColor": "{palette.color.transparent}",
|
|
6299
|
+
"iconColor": "{palette.color.transparent}",
|
|
6116
6300
|
"inputBackgroundColor": "{palette.color.white}",
|
|
6117
6301
|
"inputBorderColor": "{palette.color.greyShuttle}",
|
|
6118
6302
|
"inputBorderWidth": "{palette.border.border1}",
|