@telus-uds/theme-allium 0.1.0-prerelease.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.
- package/CHANGELOG.md +112 -0
- package/README.md +3 -9
- package/build/schema.json +9787 -0
- package/build/theme.js +68 -55
- package/package.json +6 -5
- package/theme.json +1539 -1525
package/build/theme.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
*
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Mon, 28 Feb 2022 16:09:25 GMT
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -16,8 +16,8 @@ const PaletteIconClose = require('@telus-uds/palette-allium/build/rn/icons/Close
|
|
|
16
16
|
const PaletteIconStatusWarning = require('@telus-uds/palette-allium/build/rn/icons/StatusWarning')
|
|
17
17
|
const PaletteIconTimes = require('@telus-uds/palette-allium/build/rn/icons/Times')
|
|
18
18
|
const PaletteIconSearchBold = require('@telus-uds/palette-allium/build/rn/icons/SearchBold')
|
|
19
|
-
const PaletteIconQuestion = require('@telus-uds/palette-allium/build/rn/icons/Question')
|
|
20
19
|
const PaletteIconAdd = require('@telus-uds/palette-allium/build/rn/icons/Add')
|
|
20
|
+
const PaletteIconQuestion = require('@telus-uds/palette-allium/build/rn/icons/Question')
|
|
21
21
|
|
|
22
22
|
module.exports = {
|
|
23
23
|
components: {
|
|
@@ -267,6 +267,7 @@ module.exports = {
|
|
|
267
267
|
alignItems: 'center',
|
|
268
268
|
direction: 'row',
|
|
269
269
|
flexGrow: 0,
|
|
270
|
+
flexShrink: 0,
|
|
270
271
|
justifyContent: 'flex-start',
|
|
271
272
|
space: 1
|
|
272
273
|
}
|
|
@@ -551,12 +552,21 @@ module.exports = {
|
|
|
551
552
|
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
552
553
|
type: 'state',
|
|
553
554
|
values: [ true ]
|
|
555
|
+
},
|
|
556
|
+
size: {
|
|
557
|
+
description: 'Sets the size of the text and icon; these variants are shared with Link',
|
|
558
|
+
type: 'variant',
|
|
559
|
+
values: [ 'large', 'small', 'micro' ]
|
|
554
560
|
}
|
|
555
561
|
},
|
|
556
|
-
rules: [
|
|
562
|
+
rules: [
|
|
563
|
+
{ if: { hover: true }, tokens: { iconDisplace: 4 } },
|
|
564
|
+
{ if: { size: 'large' }, tokens: { iconSize: 24 } }
|
|
565
|
+
],
|
|
557
566
|
tokens: {
|
|
558
567
|
iconDisplace: 0,
|
|
559
|
-
|
|
568
|
+
iconSize: 20,
|
|
569
|
+
iconSpace: 1,
|
|
560
570
|
leftIcon: PaletteIconArrowLeft,
|
|
561
571
|
rightIcon: PaletteIconArrowRight
|
|
562
572
|
}
|
|
@@ -581,7 +591,7 @@ module.exports = {
|
|
|
581
591
|
ExpandCollapse: {
|
|
582
592
|
appearances: {},
|
|
583
593
|
rules: [],
|
|
584
|
-
tokens: { borderColor: '#b2b9bf', borderStyle: 'solid', borderWidth:
|
|
594
|
+
tokens: { borderColor: '#b2b9bf', borderStyle: 'solid', borderWidth: 0 }
|
|
585
595
|
},
|
|
586
596
|
ExpandCollapseControl: {
|
|
587
597
|
appearances: {
|
|
@@ -683,6 +693,52 @@ module.exports = {
|
|
|
683
693
|
titleFontSize: 16
|
|
684
694
|
}
|
|
685
695
|
},
|
|
696
|
+
HorizontalScrollButton: {
|
|
697
|
+
appearances: {
|
|
698
|
+
focus: {
|
|
699
|
+
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.",
|
|
700
|
+
type: 'state',
|
|
701
|
+
values: [ true ]
|
|
702
|
+
},
|
|
703
|
+
hover: {
|
|
704
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
705
|
+
type: 'state',
|
|
706
|
+
values: [ true ]
|
|
707
|
+
},
|
|
708
|
+
pressed: {
|
|
709
|
+
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.',
|
|
710
|
+
type: 'state',
|
|
711
|
+
values: [ true ]
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
rules: [
|
|
715
|
+
{
|
|
716
|
+
if: { hover: true },
|
|
717
|
+
tokens: { borderColor: '#414547', iconColor: '#414547' }
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
if: { pressed: true },
|
|
721
|
+
tokens: { backgroundColor: '#676e73', iconColor: '#ffffff' }
|
|
722
|
+
}
|
|
723
|
+
],
|
|
724
|
+
tokens: {
|
|
725
|
+
backgroundColor: '#ffffff',
|
|
726
|
+
borderColor: '#b2b9bf',
|
|
727
|
+
borderRadius: 32,
|
|
728
|
+
borderWidth: 1,
|
|
729
|
+
iconColor: '#676e73',
|
|
730
|
+
iconSize: 32,
|
|
731
|
+
padding: 0,
|
|
732
|
+
shadow: {
|
|
733
|
+
blur: 2,
|
|
734
|
+
color: 'rgba(0, 0, 0, 0.1)',
|
|
735
|
+
inset: false,
|
|
736
|
+
offsetX: 0,
|
|
737
|
+
offsetY: 2,
|
|
738
|
+
spread: 0
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
},
|
|
686
742
|
Icon: {
|
|
687
743
|
appearances: {
|
|
688
744
|
rank: { type: 'variant', values: [ 'primary' ] },
|
|
@@ -1046,6 +1102,7 @@ module.exports = {
|
|
|
1046
1102
|
tokens: {
|
|
1047
1103
|
dividerColor: '#b2b9bf',
|
|
1048
1104
|
dividerSize: 1,
|
|
1105
|
+
iconMarginTop: 4,
|
|
1049
1106
|
interItemMargin: 8,
|
|
1050
1107
|
interItemMarginWithDivider: 16,
|
|
1051
1108
|
itemBulletColor: '#4b286d',
|
|
@@ -1059,7 +1116,7 @@ module.exports = {
|
|
|
1059
1116
|
itemIconColor: '#4b286d',
|
|
1060
1117
|
itemIconSize: 16,
|
|
1061
1118
|
itemLineHeight: 1.5,
|
|
1062
|
-
listGutter:
|
|
1119
|
+
listGutter: 16
|
|
1063
1120
|
}
|
|
1064
1121
|
},
|
|
1065
1122
|
Modal: {
|
|
@@ -1626,7 +1683,7 @@ module.exports = {
|
|
|
1626
1683
|
fontWeight: '500',
|
|
1627
1684
|
letterSpacing: 0,
|
|
1628
1685
|
lineHeight: 1.4,
|
|
1629
|
-
minWidth:
|
|
1686
|
+
minWidth: 264,
|
|
1630
1687
|
outerBorderColor: 'transparent',
|
|
1631
1688
|
outerBorderGap: 0,
|
|
1632
1689
|
outerBorderWidth: 0,
|
|
@@ -2037,7 +2094,7 @@ module.exports = {
|
|
|
2037
2094
|
baseWidth: 40,
|
|
2038
2095
|
characters: 10,
|
|
2039
2096
|
color: '#b2b9bf',
|
|
2040
|
-
radius:
|
|
2097
|
+
radius: 99999999999999,
|
|
2041
2098
|
size: 3,
|
|
2042
2099
|
spaceBetweenLines: 2,
|
|
2043
2100
|
squareRadius: 4
|
|
@@ -2049,6 +2106,7 @@ module.exports = {
|
|
|
2049
2106
|
tokens: {
|
|
2050
2107
|
alignItems: 'stretch',
|
|
2051
2108
|
flexGrow: 0,
|
|
2109
|
+
flexShrink: 0,
|
|
2052
2110
|
justifyContent: 'flex-start'
|
|
2053
2111
|
}
|
|
2054
2112
|
},
|
|
@@ -2208,52 +2266,6 @@ module.exports = {
|
|
|
2208
2266
|
textTransform: 'none'
|
|
2209
2267
|
}
|
|
2210
2268
|
},
|
|
2211
|
-
TabsScrollButton: {
|
|
2212
|
-
appearances: {
|
|
2213
|
-
focus: {
|
|
2214
|
-
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.",
|
|
2215
|
-
type: 'state',
|
|
2216
|
-
values: [ true ]
|
|
2217
|
-
},
|
|
2218
|
-
hover: {
|
|
2219
|
-
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
2220
|
-
type: 'state',
|
|
2221
|
-
values: [ true ]
|
|
2222
|
-
},
|
|
2223
|
-
pressed: {
|
|
2224
|
-
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.',
|
|
2225
|
-
type: 'state',
|
|
2226
|
-
values: [ true ]
|
|
2227
|
-
}
|
|
2228
|
-
},
|
|
2229
|
-
rules: [
|
|
2230
|
-
{
|
|
2231
|
-
if: { hover: true },
|
|
2232
|
-
tokens: { borderColor: '#414547', iconColor: '#414547' }
|
|
2233
|
-
},
|
|
2234
|
-
{
|
|
2235
|
-
if: { pressed: true },
|
|
2236
|
-
tokens: { backgroundColor: '#676e73', iconColor: '#ffffff' }
|
|
2237
|
-
}
|
|
2238
|
-
],
|
|
2239
|
-
tokens: {
|
|
2240
|
-
backgroundColor: '#ffffff',
|
|
2241
|
-
borderColor: '#b2b9bf',
|
|
2242
|
-
borderRadius: 32,
|
|
2243
|
-
borderWidth: 1,
|
|
2244
|
-
iconColor: '#676e73',
|
|
2245
|
-
iconSize: 32,
|
|
2246
|
-
padding: 0,
|
|
2247
|
-
shadow: {
|
|
2248
|
-
blur: 2,
|
|
2249
|
-
color: 'rgba(0, 0, 0, 0.1)',
|
|
2250
|
-
inset: false,
|
|
2251
|
-
offsetX: 0,
|
|
2252
|
-
offsetY: 2,
|
|
2253
|
-
spread: 0
|
|
2254
|
-
}
|
|
2255
|
-
}
|
|
2256
|
-
},
|
|
2257
2269
|
Tags: {
|
|
2258
2270
|
appearances: {
|
|
2259
2271
|
viewport: {
|
|
@@ -2267,6 +2279,7 @@ module.exports = {
|
|
|
2267
2279
|
alignItems: 'center',
|
|
2268
2280
|
direction: 'row',
|
|
2269
2281
|
flexGrow: 0,
|
|
2282
|
+
flexShrink: 0,
|
|
2270
2283
|
justifyContent: 'flex-start',
|
|
2271
2284
|
space: 1
|
|
2272
2285
|
}
|
|
@@ -2974,5 +2987,5 @@ module.exports = {
|
|
|
2974
2987
|
tokens: { size: 96 }
|
|
2975
2988
|
}
|
|
2976
2989
|
},
|
|
2977
|
-
metadata: { name: 'allium',
|
|
2990
|
+
metadata: { name: 'theme-allium', themeTokensVersion: '1.1.0' }
|
|
2978
2991
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telus-uds/theme-allium",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Allium theme",
|
|
5
5
|
"author": "TELUS Digital",
|
|
6
6
|
"homepage": "https://github.com/telus/universal-design-system#readme",
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
"main": "build/theme.js",
|
|
9
9
|
"dependencies": {},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@telus-uds/palette-allium": "^1.0.0
|
|
12
|
-
"@telus-uds/system-
|
|
11
|
+
"@telus-uds/palette-allium": "^1.0.0",
|
|
12
|
+
"@telus-uds/system-theme-tokens": "^1.1.0",
|
|
13
|
+
"@telus-uds/system-themes": "^0.0.1"
|
|
13
14
|
},
|
|
14
15
|
"peerDependencies": {
|
|
15
|
-
"@telus-uds/palette-allium": "^1.0.0
|
|
16
|
+
"@telus-uds/palette-allium": "^1.0.0"
|
|
16
17
|
},
|
|
17
18
|
"files": [
|
|
18
19
|
"build",
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
},
|
|
25
26
|
"scripts": {
|
|
26
27
|
"release": "standard-version",
|
|
27
|
-
"build": "
|
|
28
|
+
"build": "UDS_PALETTE=@telus-uds/palette-allium system-themes-build",
|
|
28
29
|
"dev": "nodemon -w src -x 'yarn build'"
|
|
29
30
|
},
|
|
30
31
|
"bugs": {
|