@telus-uds/theme-allium 0.0.2-prerelease.6 → 0.1.0-prerelease.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 +1829 -0
- package/build/theme.js +162 -25
- package/package.json +8 -14
- package/theme.json +3714 -0
- package/src/components/ActivityIndicator.js +0 -23
- package/src/components/Box.js +0 -32
- package/src/components/Button.js +0 -167
- package/src/components/ButtonGroup.js +0 -13
- package/src/components/ButtonGroupItem.js +0 -98
- package/src/components/Card.js +0 -97
- package/src/components/Checkbox.js +0 -59
- package/src/components/CheckboxGroup.js +0 -8
- package/src/components/ChevronLink.js +0 -12
- package/src/components/Divider.js +0 -32
- package/src/components/ExpandCollapse.js +0 -9
- package/src/components/ExpandCollapseControl.js +0 -22
- package/src/components/ExpandCollapsePanel.js +0 -13
- package/src/components/Feedback.js +0 -66
- package/src/components/Icon.js +0 -33
- package/src/components/InputLabel.js +0 -23
- package/src/components/InputSupports.js +0 -7
- package/src/components/Link.js +0 -203
- package/src/components/List.js +0 -68
- package/src/components/Modal.js +0 -57
- package/src/components/Notification.js +0 -90
- package/src/components/Pagination.js +0 -24
- package/src/components/PaginationPageButton.js +0 -65
- package/src/components/PaginationSideButton.js +0 -90
- package/src/components/Progress.js +0 -13
- package/src/components/ProgressBar.js +0 -31
- package/src/components/Radio.js +0 -69
- package/src/components/RadioCard.js +0 -123
- package/src/components/RadioCardGroup.js +0 -24
- package/src/components/RadioGroup.js +0 -8
- package/src/components/Search.js +0 -57
- package/src/components/SearchButton.js +0 -71
- package/src/components/Select.js +0 -78
- package/src/components/SideNav.js +0 -9
- package/src/components/SideNavItem.js +0 -111
- package/src/components/SideNavItemsGroup.js +0 -27
- package/src/components/Skeleton.js +0 -14
- package/src/components/StackView.js +0 -10
- package/src/components/StepTracker.js +0 -59
- package/src/components/Tabs.js +0 -13
- package/src/components/TabsItem.js +0 -81
- package/src/components/TabsScrollButton.js +0 -34
- package/src/components/Tags.js +0 -13
- package/src/components/TagsItem.js +0 -126
- package/src/components/TextArea.js +0 -8
- package/src/components/TextInput.js +0 -73
- package/src/components/ToggleSwitch.js +0 -111
- package/src/components/Tooltip.js +0 -37
- package/src/components/TooltipButton.js +0 -61
- package/src/components/Typography.js +0 -337
- package/src/components/index.js +0 -53
- package/src/components/spacingScale.js +0 -33
- package/src/index.js +0 -17
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
inactive: '{appearances.ProgressBar.inactive}',
|
|
4
|
-
negative: { values: [true], type: 'variant' }
|
|
5
|
-
},
|
|
6
|
-
tokens: {
|
|
7
|
-
backgroundColor: '{palette.color.greenAccessible}',
|
|
8
|
-
borderRadius: '{palette.radius.radius12}',
|
|
9
|
-
gradient: '{palette.gradient.green}',
|
|
10
|
-
outlineWidth: '{palette.border.border1}',
|
|
11
|
-
outlineColor: '{palette.color.greenAccessible}'
|
|
12
|
-
},
|
|
13
|
-
rules: [
|
|
14
|
-
{
|
|
15
|
-
if: { inactive: true },
|
|
16
|
-
tokens: {
|
|
17
|
-
backgroundColor: '{palette.color.greyCloud}',
|
|
18
|
-
gradient: '{system.gradient.none}',
|
|
19
|
-
outlineColor: '{palette.color.greyThunder}'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
if: { negative: true },
|
|
24
|
-
tokens: {
|
|
25
|
-
backgroundColor: '{palette.color.redDark}',
|
|
26
|
-
gradient: '{system.gradient.none}',
|
|
27
|
-
outlineColor: '{palette.color.redDark}'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
package/src/components/Radio.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
checked: '{appearances.Radio.checked}',
|
|
4
|
-
error: '{appearances.Radio.error}',
|
|
5
|
-
focus: '{appearances.Radio.focus}',
|
|
6
|
-
hover: '{appearances.Radio.hover}',
|
|
7
|
-
inactive: '{appearances.Radio.inactive}'
|
|
8
|
-
},
|
|
9
|
-
tokens: {
|
|
10
|
-
checkedBackgroundColor: '{palette.color.purpleDeluge}',
|
|
11
|
-
checkedSize: '{palette.size.size12}',
|
|
12
|
-
containerBackgroundColor: '{palette.color.transparent}',
|
|
13
|
-
containerBorderRadius: '{palette.radius.none}',
|
|
14
|
-
containerOpacity: '{system.opacity.opaque}',
|
|
15
|
-
containerPaddingBottom: '{palette.size.size0}',
|
|
16
|
-
containerPaddingLeft: '{palette.size.size0}',
|
|
17
|
-
containerPaddingRight: '{palette.size.size0}',
|
|
18
|
-
containerPaddingTop: '{palette.size.size0}',
|
|
19
|
-
containerShadow: '{system.shadow.none}',
|
|
20
|
-
descriptionFontSize: '{palette.fontSize.size14}',
|
|
21
|
-
descriptionLineHeight: '{palette.lineHeight.ratio10to7}',
|
|
22
|
-
descriptionMarginLeft: '{system.size.none}',
|
|
23
|
-
inputBackgroundColor: '{palette.color.white}',
|
|
24
|
-
inputBorderColor: '{palette.color.greyShuttle}',
|
|
25
|
-
inputBorderWidth: '{palette.border.border1}',
|
|
26
|
-
inputOutlineColor: '{palette.color.transparent}',
|
|
27
|
-
inputOutlineWidth: '{palette.border.none}',
|
|
28
|
-
inputSize: '{palette.size.size20}',
|
|
29
|
-
outerBorderWidth: '{system.border.zero}',
|
|
30
|
-
outerBorderColor: '{system.color.transparent}',
|
|
31
|
-
outerBorderGap: '{system.size.zero}',
|
|
32
|
-
labelColor: '{palette.color.greyCharcoal}',
|
|
33
|
-
labelFontName: '{palette.fontName.HelveticaNow}',
|
|
34
|
-
labelFontSize: '{palette.fontSize.size16}',
|
|
35
|
-
labelFontWeight: '{palette.fontWeight.weight400}',
|
|
36
|
-
labelLineHeight: '{palette.lineHeight.ratio3to2}',
|
|
37
|
-
labelMarginLeft: '{palette.size.size10}'
|
|
38
|
-
},
|
|
39
|
-
rules: [
|
|
40
|
-
{
|
|
41
|
-
if: { error: true },
|
|
42
|
-
tokens: {
|
|
43
|
-
inputBorderColor: '{palette.color.red}'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
if: { hover: true },
|
|
48
|
-
tokens: {
|
|
49
|
-
outerBorderWidth: '{palette.border.border2}',
|
|
50
|
-
outerBorderColor: '{palette.color.greyMystic}'
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
if: { focus: true },
|
|
55
|
-
tokens: {
|
|
56
|
-
inputBorderColor: '{palette.color.purpleDeluge}',
|
|
57
|
-
inputBorderWidth: '{palette.border.border3}'
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
if: { inactive: true },
|
|
62
|
-
tokens: {
|
|
63
|
-
inputBorderColor: '{palette.color.transparent}',
|
|
64
|
-
inputBackgroundColor: '{palette.color.greyMystic}',
|
|
65
|
-
labelColor: '{palette.color.greyShuttle}'
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
pressed: '{appearances.RadioCard.pressed}',
|
|
4
|
-
hover: '{appearances.RadioCard.hover}',
|
|
5
|
-
focus: '{appearances.RadioCard.focus}',
|
|
6
|
-
checked: '{appearances.RadioCard.checked}',
|
|
7
|
-
inactive: '{appearances.RadioCard.inactive}',
|
|
8
|
-
error: '{appearances.RadioCard.error}',
|
|
9
|
-
viewport: '{appearances.system.viewport}'
|
|
10
|
-
},
|
|
11
|
-
tokens: {
|
|
12
|
-
// Outer border
|
|
13
|
-
outerBorderColor: '{system.color.transparent}',
|
|
14
|
-
outerBorderWidth: '{system.border.zero}',
|
|
15
|
-
outerBorderGap: '{system.size.zero}',
|
|
16
|
-
|
|
17
|
-
// Card
|
|
18
|
-
flex: '{system.integer.1}',
|
|
19
|
-
backgroundColor: '{palette.color.white}',
|
|
20
|
-
borderColor: '{palette.color.greyCloud}',
|
|
21
|
-
borderRadius: '{palette.radius.radius6}',
|
|
22
|
-
borderWidth: '{palette.border.border1}',
|
|
23
|
-
paddingBottom: '{palette.size.size16}',
|
|
24
|
-
paddingLeft: '{palette.size.size10}',
|
|
25
|
-
paddingRight: '{palette.size.size16}',
|
|
26
|
-
paddingTop: '{palette.size.size16}',
|
|
27
|
-
minWidth: '{palette.size.size288}',
|
|
28
|
-
shadow: '{system.shadow.none}',
|
|
29
|
-
|
|
30
|
-
// RadioButton
|
|
31
|
-
radioCheckedBackgroundColor: '{palette.color.purpleDeluge}',
|
|
32
|
-
radioCheckedSize: '{palette.size.size12}',
|
|
33
|
-
radioInputBackgroundColor: '{palette.color.white}',
|
|
34
|
-
radioInputBorderColor: '{palette.color.greyShuttle}',
|
|
35
|
-
radioInputBorderWidth: '{palette.border.border1}',
|
|
36
|
-
radioInputOutlineColor: '{palette.color.transparent}',
|
|
37
|
-
radioInputOutlineWidth: '{palette.border.none}',
|
|
38
|
-
radioInputSize: '{palette.size.size20}',
|
|
39
|
-
radioOuterBorderColor: '{system.color.transparent}',
|
|
40
|
-
radioOuterBorderWidth: '{system.border.zero}',
|
|
41
|
-
radioOuterBorderGap: '{system.size.zero}',
|
|
42
|
-
|
|
43
|
-
// Title text - duplicates Typography variant { size: 'h3' }
|
|
44
|
-
fontSize: '{palette.fontSize.size20}',
|
|
45
|
-
lineHeight: '{palette.lineHeight.ratio7to5}',
|
|
46
|
-
color: '{palette.color.greyThunder}',
|
|
47
|
-
letterSpacing: '{system.letterSpacing.none}',
|
|
48
|
-
textTransform: '{system.textTransform.none}',
|
|
49
|
-
fontWeight: '{palette.fontWeight.weight500}',
|
|
50
|
-
fontName: '{palette.fontName.HelveticaNow}',
|
|
51
|
-
|
|
52
|
-
// Spacing
|
|
53
|
-
radioSpace: '{system.integer.2}',
|
|
54
|
-
contentSpace: '{system.integer.2}'
|
|
55
|
-
},
|
|
56
|
-
rules: [
|
|
57
|
-
{
|
|
58
|
-
if: { viewport: ['lg', 'xl'] },
|
|
59
|
-
tokens: {
|
|
60
|
-
paddingBottom: '{palette.size.size24}',
|
|
61
|
-
paddingLeft: '{palette.size.size16}',
|
|
62
|
-
paddingRight: '{palette.size.size24}',
|
|
63
|
-
paddingTop: '{palette.size.size16}',
|
|
64
|
-
|
|
65
|
-
fontSize: '{palette.fontSize.size24}',
|
|
66
|
-
lineHeight: '{palette.lineHeight.ratio4to3}'
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
if: { hover: true },
|
|
71
|
-
tokens: {
|
|
72
|
-
borderColor: '{palette.color.greyShuttle}',
|
|
73
|
-
outerBorderColor: '{palette.color.greyMystic}',
|
|
74
|
-
outerBorderWidth: '{palette.border.border2}',
|
|
75
|
-
|
|
76
|
-
radioOuterBorderWidth: '{palette.border.border2}',
|
|
77
|
-
radioOuterBorderColor: '{palette.color.greyMystic}'
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
if: { pressed: true },
|
|
82
|
-
description: 'Pressed state matches hover state plus light grey background',
|
|
83
|
-
tokens: {
|
|
84
|
-
backgroundColor: '{palette.color.greyAthens}',
|
|
85
|
-
borderColor: '{palette.color.greyShuttle}',
|
|
86
|
-
outerBorderColor: '{palette.color.greyMystic}',
|
|
87
|
-
outerBorderWidth: '{palette.border.border2}'
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
if: { focus: true },
|
|
92
|
-
tokens: {
|
|
93
|
-
outerBorderColor: '{palette.color.greyShuttle}',
|
|
94
|
-
outerBorderWidth: '{palette.border.border2}',
|
|
95
|
-
outerBorderGap: '{palette.size.size2}',
|
|
96
|
-
|
|
97
|
-
radioInputBorderColor: '{palette.color.purpleDeluge}',
|
|
98
|
-
radioInputBorderWidth: '{palette.border.border3}'
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
if: { inactive: true },
|
|
103
|
-
tokens: {
|
|
104
|
-
backgroundColor: '{palette.color.greyAthens}',
|
|
105
|
-
borderColor: '{system.color.transparent}',
|
|
106
|
-
|
|
107
|
-
radioInputBorderColor: '{palette.color.transparent}',
|
|
108
|
-
radioInputBackgroundColor: '{palette.color.greyMystic}',
|
|
109
|
-
color: '{palette.color.greyShuttle}'
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
if: { error: true },
|
|
114
|
-
tokens: {
|
|
115
|
-
borderColor: '{palette.color.red}',
|
|
116
|
-
|
|
117
|
-
radioInputBorderColor: '{palette.color.red}',
|
|
118
|
-
|
|
119
|
-
color: '{palette.color.red}'
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
viewport: '{appearances.system.viewport}',
|
|
4
|
-
fullWidth: {
|
|
5
|
-
description: 'Makes cards always occupy the full width of the parent, regardless of viewport',
|
|
6
|
-
values: [true],
|
|
7
|
-
type: 'variant'
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
tokens: {
|
|
11
|
-
direction: '{system.direction.column}',
|
|
12
|
-
space: '{system.integer.3}',
|
|
13
|
-
fieldSpace: '{system.integer.3}'
|
|
14
|
-
},
|
|
15
|
-
rules: [
|
|
16
|
-
{
|
|
17
|
-
if: { viewport: ['lg', 'xl'], fullWidth: null },
|
|
18
|
-
tokens: {
|
|
19
|
-
direction: '{system.direction.row}',
|
|
20
|
-
space: '{system.integer.4}'
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
package/src/components/Search.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
hover: '{appearances.Search.hover}',
|
|
4
|
-
focus: '{appearances.Search.focus}',
|
|
5
|
-
inactive: '{appearances.Search.inactive}'
|
|
6
|
-
},
|
|
7
|
-
tokens: {
|
|
8
|
-
backgroundColor: '{palette.color.white}',
|
|
9
|
-
color: '{palette.color.greyCharcoal}',
|
|
10
|
-
borderWidth: '{palette.border.border1}',
|
|
11
|
-
borderColor: '{palette.color.greyShuttle}',
|
|
12
|
-
borderRadius: '{palette.radius.pill32}',
|
|
13
|
-
paddingTop: '{palette.size.size12}',
|
|
14
|
-
paddingBottom: '{palette.size.size12}',
|
|
15
|
-
paddingLeft: '{palette.size.size24}',
|
|
16
|
-
paddingRight: '{palette.size.size8}',
|
|
17
|
-
|
|
18
|
-
outerBackgroundColor: '{palette.color.transparent}',
|
|
19
|
-
outerBorderWidth: '{palette.border.border2}',
|
|
20
|
-
outerBorderColor: '{palette.color.transparent}',
|
|
21
|
-
outerBorderRadius: '{palette.radius.pill32}',
|
|
22
|
-
|
|
23
|
-
fontName: '{palette.fontName.HelveticaNow}',
|
|
24
|
-
fontWeight: '{palette.fontWeight.weight400}',
|
|
25
|
-
|
|
26
|
-
fontSize: '{palette.fontSize.size16}',
|
|
27
|
-
lineHeight: '{palette.lineHeight.ratio3to2}',
|
|
28
|
-
|
|
29
|
-
placeholderColor: '{palette.color.greyCharcoal}',
|
|
30
|
-
buttonsGap: '{system.integer.1}',
|
|
31
|
-
clearButtonIcon: '{palette.icon.Times}',
|
|
32
|
-
submitButtonIcon: '{palette.icon.SearchBold}'
|
|
33
|
-
},
|
|
34
|
-
rules: [
|
|
35
|
-
{
|
|
36
|
-
if: { hover: true, inactive: null },
|
|
37
|
-
tokens: {
|
|
38
|
-
outerBorderColor: '{palette.color.greyMystic}',
|
|
39
|
-
outerBackgroundColor: '{palette.color.greyMystic}'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
if: { focus: true },
|
|
44
|
-
tokens: {
|
|
45
|
-
borderColor: '{palette.color.purpleDeluge}',
|
|
46
|
-
borderWidth: '{palette.border.border3}'
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
if: { inactive: true },
|
|
51
|
-
tokens: {
|
|
52
|
-
backgroundColor: '{palette.color.greyAthens}',
|
|
53
|
-
borderColor: '{palette.color.greyAthens}'
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
hover: '{appearances.SearchButton.hover}',
|
|
4
|
-
focus: '{appearances.SearchButton.focus}',
|
|
5
|
-
inactive: '{appearances.SearchButton.inactive}',
|
|
6
|
-
pressed: '{appearances.SearchButton.pressed}',
|
|
7
|
-
priority: {
|
|
8
|
-
description: '',
|
|
9
|
-
values: ['high'],
|
|
10
|
-
type: 'variant'
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
tokens: {
|
|
14
|
-
borderColor: '{palette.color.transparent}',
|
|
15
|
-
borderWidth: '{system.border.zero}',
|
|
16
|
-
borderRadius: '{palette.radius.pill32}',
|
|
17
|
-
backgroundColor: '{system.color.none}',
|
|
18
|
-
opacity: '{system.opacity.opaque}',
|
|
19
|
-
paddingLeft: '{palette.size.size8}',
|
|
20
|
-
paddingRight: '{palette.size.size8}',
|
|
21
|
-
paddingBottom: '{palette.size.size8}',
|
|
22
|
-
paddingTop: '{palette.size.size8}',
|
|
23
|
-
shadow: '{system.shadow.none}',
|
|
24
|
-
|
|
25
|
-
iconSize: '{palette.size.size20}',
|
|
26
|
-
iconColor: '{palette.color.greyShuttle}'
|
|
27
|
-
},
|
|
28
|
-
rules: [
|
|
29
|
-
{
|
|
30
|
-
if: { priority: 'high' },
|
|
31
|
-
tokens: {
|
|
32
|
-
backgroundColor: '{palette.color.purpleTelus}',
|
|
33
|
-
iconColor: '{palette.color.white}'
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
// only the default appearance is different for a high priority button
|
|
37
|
-
{
|
|
38
|
-
if: { hover: true },
|
|
39
|
-
tokens: {
|
|
40
|
-
backgroundColor: '{palette.color.purpleDeluge}',
|
|
41
|
-
borderWidth: '{system.border.zero}',
|
|
42
|
-
iconColor: '{palette.color.white}'
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
if: { focus: true },
|
|
47
|
-
tokens: {
|
|
48
|
-
borderColor: '{palette.color.purpleTelus}',
|
|
49
|
-
borderWidth: '{palette.border.border3}',
|
|
50
|
-
iconColor: '{palette.color.purpleTelus}',
|
|
51
|
-
backgroundColor: '{system.color.transparent}'
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
if: { pressed: true },
|
|
56
|
-
tokens: {
|
|
57
|
-
borderWidth: '{system.size.zero}',
|
|
58
|
-
backgroundColor: '{palette.color.purpleDark}',
|
|
59
|
-
iconColor: '{palette.color.white}'
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
if: { inactive: true },
|
|
64
|
-
tokens: {
|
|
65
|
-
backgroundColor: '{palette.color.greyMystic}',
|
|
66
|
-
iconColor: '{palette.color.greyShuttle}',
|
|
67
|
-
borderWidth: '{system.size.zero}'
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
}
|
package/src/components/Select.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
const Select = {
|
|
2
|
-
appearances: {
|
|
3
|
-
validation: '{appearances.Select.validation}',
|
|
4
|
-
hover: '{appearances.Select.hover}',
|
|
5
|
-
focus: '{appearances.Select.focus}',
|
|
6
|
-
inactive: '{appearances.Select.inactive}'
|
|
7
|
-
},
|
|
8
|
-
tokens: {
|
|
9
|
-
backgroundColor: '{palette.color.white}',
|
|
10
|
-
color: '{palette.color.greyCharcoal}',
|
|
11
|
-
borderWidth: '{palette.border.border1}',
|
|
12
|
-
borderColor: '{palette.color.greyShuttle}',
|
|
13
|
-
borderRadius: '{palette.radius.radius4}',
|
|
14
|
-
paddingTop: '{palette.size.size12}',
|
|
15
|
-
paddingBottom: '{palette.size.size12}',
|
|
16
|
-
paddingLeft: '{palette.size.size16}',
|
|
17
|
-
paddingRight: '{palette.size.size16}',
|
|
18
|
-
height: '{palette.size.size48}',
|
|
19
|
-
|
|
20
|
-
outerBackgroundColor: '{palette.color.transparent}',
|
|
21
|
-
outerBorderWidth: '{palette.border.border2}',
|
|
22
|
-
outerBorderColor: '{palette.color.transparent}',
|
|
23
|
-
|
|
24
|
-
fontSize: '{palette.fontSize.size16}',
|
|
25
|
-
fontName: '{palette.fontName.HelveticaNow}',
|
|
26
|
-
fontWeight: '{palette.fontWeight.weight400}',
|
|
27
|
-
|
|
28
|
-
icon: '{palette.icon.CaretDown}',
|
|
29
|
-
iconSize: '{palette.fontSize.size24}',
|
|
30
|
-
iconColor: '{palette.color.greenAccessible}',
|
|
31
|
-
|
|
32
|
-
validationIcon: '{system.icon.none}',
|
|
33
|
-
validationIconSize: '{palette.fontSize.size24}',
|
|
34
|
-
validationIconColor: '{palette.color.transparent}'
|
|
35
|
-
},
|
|
36
|
-
rules: [
|
|
37
|
-
{
|
|
38
|
-
if: { hover: true, inactive: null },
|
|
39
|
-
tokens: {
|
|
40
|
-
outerBorderColor: '{palette.color.greyMystic}',
|
|
41
|
-
outerBackgroundColor: '{palette.color.greyMystic}'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
if: { validation: 'success' },
|
|
46
|
-
tokens: {
|
|
47
|
-
borderColor: '{palette.color.greenAccessible}',
|
|
48
|
-
validationIcon: '{palette.icon.NotificationSuccess}',
|
|
49
|
-
validationIconColor: '{palette.color.greenAccessible}'
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
if: { validation: 'error' },
|
|
54
|
-
tokens: {
|
|
55
|
-
borderColor: '{palette.color.red}',
|
|
56
|
-
validationIcon: '{palette.icon.NotificationError}',
|
|
57
|
-
validationIconColor: '{palette.color.red}'
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
if: { focus: true },
|
|
62
|
-
tokens: {
|
|
63
|
-
borderColor: '{palette.color.purpleDeluge}',
|
|
64
|
-
borderWidth: '{palette.border.border3}',
|
|
65
|
-
validationIcon: '{system.icon.none}'
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
if: { inactive: true },
|
|
70
|
-
tokens: {
|
|
71
|
-
backgroundColor: '{palette.color.greyAthens}',
|
|
72
|
-
borderColor: '{palette.color.greyAthens}'
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
module.exports = Select
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
active: '{appearances.SideNavItem.active}',
|
|
4
|
-
type: '{appearances.SideNavItem.type}',
|
|
5
|
-
expanded: '{appearances.SideNavItem.expanded}',
|
|
6
|
-
hover: '{appearances.SideNavItem.hover}'
|
|
7
|
-
},
|
|
8
|
-
tokens: {
|
|
9
|
-
borderColor: '{palette.color.greyCloud}',
|
|
10
|
-
borderWidth: '{palette.border.border1}',
|
|
11
|
-
borderStyle: '{system.borderStyle.solid}',
|
|
12
|
-
paddingLeft: '{palette.size.size16}',
|
|
13
|
-
paddingRight: '{palette.size.size16}',
|
|
14
|
-
paddingTop: '{palette.size.size16}',
|
|
15
|
-
paddingBottom: '{palette.size.size16}',
|
|
16
|
-
justifyContent: '{system.flexJustifyContent.spaceBetween}',
|
|
17
|
-
color: '{palette.color.greyCharcoal}',
|
|
18
|
-
accentOffset: '{system.size.zero}',
|
|
19
|
-
accentPadding: '{system.size.zero}',
|
|
20
|
-
accentWidth: '{palette.size.size4}',
|
|
21
|
-
accentBackgroundColor: '{palette.color.transparent}',
|
|
22
|
-
fontSize: '{palette.fontSize.size16}',
|
|
23
|
-
fontWeight: '{palette.fontWeight.weight400}',
|
|
24
|
-
fontName: '{palette.fontName.HelveticaNow}',
|
|
25
|
-
lineHeight: '{palette.lineHeight.ratio3to2}',
|
|
26
|
-
backgroundColor: '{palette.color.transparent}'
|
|
27
|
-
},
|
|
28
|
-
rules: [
|
|
29
|
-
{
|
|
30
|
-
if: {
|
|
31
|
-
active: true
|
|
32
|
-
},
|
|
33
|
-
tokens: {
|
|
34
|
-
paddingLeft: '{palette.size.size12}',
|
|
35
|
-
accentBackgroundColor: '{palette.color.purpleTelus}',
|
|
36
|
-
color: '{palette.color.purpleTelus}',
|
|
37
|
-
|
|
38
|
-
fontWeight: '{palette.fontWeight.weight700}',
|
|
39
|
-
fontName: '{palette.fontName.HelveticaNow}'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
if: {
|
|
44
|
-
type: 'child'
|
|
45
|
-
},
|
|
46
|
-
tokens: {
|
|
47
|
-
paddingLeft: '{palette.size.size36}',
|
|
48
|
-
borderWidth: '{palette.border.none}',
|
|
49
|
-
accentBackgroundColor: '{palette.color.greyAthens}',
|
|
50
|
-
accentOffset: '{palette.size.size16}',
|
|
51
|
-
fontSize: '{palette.fontSize.size14}',
|
|
52
|
-
lineHeight: '{palette.lineHeight.ratio7to5}'
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
if: {
|
|
57
|
-
type: 'parent',
|
|
58
|
-
active: true
|
|
59
|
-
},
|
|
60
|
-
tokens: {
|
|
61
|
-
paddingLeft: '{palette.size.size12}'
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
if: {
|
|
66
|
-
type: 'parent',
|
|
67
|
-
active: true,
|
|
68
|
-
expanded: true
|
|
69
|
-
},
|
|
70
|
-
tokens: {
|
|
71
|
-
paddingLeft: '{palette.size.size16}',
|
|
72
|
-
accentBackgroundColor: '{palette.color.transparent}',
|
|
73
|
-
color: '{palette.color.greyCharcoal}'
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
if: {
|
|
78
|
-
hover: true
|
|
79
|
-
},
|
|
80
|
-
tokens: {
|
|
81
|
-
backgroundColor: '{palette.color.greyAthens}',
|
|
82
|
-
color: '{palette.color.purpleTelus}'
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
if: {
|
|
87
|
-
type: 'child',
|
|
88
|
-
active: true
|
|
89
|
-
},
|
|
90
|
-
tokens: {
|
|
91
|
-
backgroundColor: '{palette.color.greyAthens}',
|
|
92
|
-
color: '{palette.color.purpleTelus}',
|
|
93
|
-
accentPadding: '{palette.size.size16}',
|
|
94
|
-
accentBackgroundColor: '{palette.color.purpleTelus}'
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
if: {
|
|
99
|
-
type: 'child',
|
|
100
|
-
active: false,
|
|
101
|
-
hover: true
|
|
102
|
-
},
|
|
103
|
-
tokens: {
|
|
104
|
-
accentBackgroundColor: '{palette.color.white}',
|
|
105
|
-
color: '{palette.color.greyCharcoal}',
|
|
106
|
-
accentOffset: '{system.size.zero}',
|
|
107
|
-
accentWidth: '{palette.size.size16}'
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
expanded: '{appearances.SideNavItemGroup.expanded}'
|
|
4
|
-
},
|
|
5
|
-
tokens: {
|
|
6
|
-
// animate slightly faster when closing
|
|
7
|
-
expandDuration: '{palette.duration.duration300}',
|
|
8
|
-
collapseDuration: '{palette.duration.duration250}',
|
|
9
|
-
contentPaddingLeft: '{palette.size.size0}',
|
|
10
|
-
contentPaddingRight: '{palette.size.size0}',
|
|
11
|
-
contentPaddingTop: '{palette.size.size0}',
|
|
12
|
-
contentPaddingBottom: '{palette.size.size0}',
|
|
13
|
-
icon: '{palette.icon.CaretDown}',
|
|
14
|
-
iconColor: '{palette.color.purpleTelus}',
|
|
15
|
-
iconGap: '{palette.size.size8}',
|
|
16
|
-
iconSize: '{palette.size.size24}',
|
|
17
|
-
iconPosition: '{system.position.right}',
|
|
18
|
-
verticalAlign: '{system.verticalAlign.middle}',
|
|
19
|
-
justifyContent: '{system.flexJustifyContent.spaceBetween}'
|
|
20
|
-
},
|
|
21
|
-
rules: [
|
|
22
|
-
{
|
|
23
|
-
if: { expanded: true },
|
|
24
|
-
tokens: { icon: '{palette.icon.CaretUp}' }
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const Skeleton = {
|
|
2
|
-
appearances: {},
|
|
3
|
-
tokens: {
|
|
4
|
-
color: '{palette.color.greyCloud}',
|
|
5
|
-
size: '{palette.border.border3}',
|
|
6
|
-
radius: '{palette.size.size120}',
|
|
7
|
-
baseWidth: '{palette.size.size40}',
|
|
8
|
-
characters: '{palette.size.size10}',
|
|
9
|
-
spaceBetweenLines: '{palette.size.size2}',
|
|
10
|
-
squareRadius: '{palette.size.size4}'
|
|
11
|
-
},
|
|
12
|
-
rules: []
|
|
13
|
-
}
|
|
14
|
-
module.exports = Skeleton
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// This makes the React Native defaults explicit and allows them to be overridden with tokens
|
|
2
|
-
module.exports = {
|
|
3
|
-
appearances: {},
|
|
4
|
-
tokens: {
|
|
5
|
-
alignItems: '{system.flexAlign.stretch}',
|
|
6
|
-
justifyContent: '{system.flexJustifyContent.flexStart}',
|
|
7
|
-
flexGrow: '{system.integer.0}'
|
|
8
|
-
},
|
|
9
|
-
rules: []
|
|
10
|
-
}
|