@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,59 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
viewport: '{appearances.system.viewport}'
|
|
4
|
-
},
|
|
5
|
-
tokens: {
|
|
6
|
-
completedIcon: '{system.icon.none}',
|
|
7
|
-
completedIconColor: '{system.color.none}',
|
|
8
|
-
completedIconSize: '{system.size.none}',
|
|
9
|
-
connectorColor: '{palette.color.greyShuttle}',
|
|
10
|
-
connectorHeight: '{palette.border.border1}',
|
|
11
|
-
connectorMinWidth: '{palette.size.size16}',
|
|
12
|
-
connectorCompletedHeight: '{palette.border.border3}',
|
|
13
|
-
connectorCompletedColor: '{palette.color.purpleDeluge}',
|
|
14
|
-
containerPaddingBottom: '{system.size.none}',
|
|
15
|
-
containerPaddingLeft: '{system.size.none}',
|
|
16
|
-
containerPaddingRight: '{system.size.none}',
|
|
17
|
-
containerPaddingTop: '{system.size.none}',
|
|
18
|
-
knobBackgroundColor: '{palette.color.transparent}',
|
|
19
|
-
knobBorderWidth: '{palette.border.border1}',
|
|
20
|
-
knobBorderColor: '{palette.color.greyShuttle}',
|
|
21
|
-
knobCompletedBackgroundColor: '{palette.color.purpleDeluge}',
|
|
22
|
-
knobCompletedBorderColor: '{palette.color.purpleDeluge}',
|
|
23
|
-
knobCompletedPaddingLeft: '{system.size.none}',
|
|
24
|
-
knobCompletedPaddingTop: '{system.size.none}',
|
|
25
|
-
knobCurrentBackgroundColor: '{palette.color.transparent}',
|
|
26
|
-
knobCurrentBorderColor: '{palette.color.purpleDeluge}',
|
|
27
|
-
knobCurrentBorderWidth: '{palette.border.border2}',
|
|
28
|
-
knobCurrentInnerColor: '{palette.color.purpleDeluge}',
|
|
29
|
-
knobCurrentInnerSize: '{palette.size.size8}',
|
|
30
|
-
knobCurrentPaddingLeft: '{palette.size.size2}',
|
|
31
|
-
knobCurrentPaddingTop: '{palette.size.size2}',
|
|
32
|
-
knobSize: '{palette.size.size16}',
|
|
33
|
-
labelColor: '{palette.color.greyCharcoal}',
|
|
34
|
-
labelCurrentColor: '{palette.color.purpleDeluge}',
|
|
35
|
-
labelCurrentFontWeight: '{palette.fontWeight.weight700}',
|
|
36
|
-
labelCurrentFontName: '{palette.fontName.HelveticaNow}',
|
|
37
|
-
labelDirection: '{system.direction.column}',
|
|
38
|
-
labelFontSize: '{palette.fontSize.size16}',
|
|
39
|
-
labelFontWeight: '{palette.fontWeight.weight400}',
|
|
40
|
-
labelFontName: '{palette.fontName.HelveticaNow}',
|
|
41
|
-
labelGap: '{palette.size.size0}',
|
|
42
|
-
labelLineHeight: '{palette.lineHeight.ratio10to7}',
|
|
43
|
-
labelMarginTop: '{palette.size.size8}',
|
|
44
|
-
labelPaddingLeft: '{palette.size.size16}',
|
|
45
|
-
labelPaddingRight: '{palette.size.size16}',
|
|
46
|
-
showStepLabel: '{system.show.false}',
|
|
47
|
-
showStepName: '{system.show.true}',
|
|
48
|
-
showStepTrackerLabel: '{system.show.true}'
|
|
49
|
-
},
|
|
50
|
-
rules: [
|
|
51
|
-
{
|
|
52
|
-
if: { viewport: ['lg', 'xl'] },
|
|
53
|
-
tokens: {
|
|
54
|
-
showStepLabel: '{system.show.true}',
|
|
55
|
-
showStepTrackerLabel: '{system.show.false}'
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
package/src/components/Tabs.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {},
|
|
3
|
-
tokens: {
|
|
4
|
-
nextIcon: '{palette.icon.ArrowRight}',
|
|
5
|
-
previousIcon: '{palette.icon.ArrowLeft}',
|
|
6
|
-
space: '{system.integer.0}',
|
|
7
|
-
gutter: '{palette.size.size2}',
|
|
8
|
-
borderBottomWidth: '{palette.border.border1}',
|
|
9
|
-
borderBottomColor: '{palette.color.greyShuttle}',
|
|
10
|
-
buttonClearance: '{palette.size.size16}'
|
|
11
|
-
},
|
|
12
|
-
rules: []
|
|
13
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
pressed: '{appearances.TabsItem.pressed}',
|
|
4
|
-
hover: '{appearances.TabsItem.pressed}',
|
|
5
|
-
focus: '{appearances.TabsItem.pressed}',
|
|
6
|
-
selected: '{appearances.TabsItem.pressed}'
|
|
7
|
-
},
|
|
8
|
-
tokens: {
|
|
9
|
-
highlightColor: '{system.color.transparent}',
|
|
10
|
-
highlightBarHeight: '{system.border.zero}',
|
|
11
|
-
highlightBarBorderRadius: '{system.radius.zero}',
|
|
12
|
-
highlightBarBorderWidth: '{system.border.zero}',
|
|
13
|
-
highlightTriangleSize: '{system.size.zero}',
|
|
14
|
-
|
|
15
|
-
backgroundColor: '{system.color.transparent}',
|
|
16
|
-
borderColor: '{system.color.transparent}',
|
|
17
|
-
borderWidth: '{system.border.zero}',
|
|
18
|
-
borderRadius: '{palette.radius.pill32}',
|
|
19
|
-
maxWidth: '{palette.size.size192}',
|
|
20
|
-
space: '{system.integer.1}',
|
|
21
|
-
paddingHorizontal: '{palette.size.size24}',
|
|
22
|
-
paddingVertical: '{palette.size.size8}',
|
|
23
|
-
|
|
24
|
-
textAlign: '{system.textAlign.center}',
|
|
25
|
-
lineHeight: '{palette.lineHeight.ratio8to7}',
|
|
26
|
-
color: '{palette.color.greyShuttle}',
|
|
27
|
-
fontSize: '{palette.fontSize.size14}',
|
|
28
|
-
letterSpacing: '{system.letterSpacing.none}',
|
|
29
|
-
textTransform: '{system.textTransform.none}',
|
|
30
|
-
fontScaleCap: '{palette.fontSize.size64}',
|
|
31
|
-
|
|
32
|
-
fontWeight: '{palette.fontWeight.weight700}',
|
|
33
|
-
fontName: '{palette.fontName.HelveticaNow}'
|
|
34
|
-
},
|
|
35
|
-
rules: [
|
|
36
|
-
{
|
|
37
|
-
if: { selected: true },
|
|
38
|
-
description:
|
|
39
|
-
"The design uses height of 3: there's (rightly) no '3' in the Allium palette but the effect is 1px above and below a 1px line",
|
|
40
|
-
tokens: {
|
|
41
|
-
highlightBarBorderWidth: '{palette.border.border1}',
|
|
42
|
-
highlightBarHeight: '{palette.border.border1}',
|
|
43
|
-
highlightColor: '{palette.color.purpleTelus}',
|
|
44
|
-
highlightBarBorderRadius: '{palette.radius.pill32}',
|
|
45
|
-
|
|
46
|
-
color: '{palette.color.purpleTelus}',
|
|
47
|
-
backgroundColor: '{palette.color.greyAthens}'
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
if: { hover: true },
|
|
52
|
-
tokens: {
|
|
53
|
-
borderColor: '{palette.color.greyCloud}',
|
|
54
|
-
borderWidth: '{palette.border.border2}'
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
if: { focus: true },
|
|
59
|
-
tokens: {
|
|
60
|
-
color: '{palette.color.purpleTelus}',
|
|
61
|
-
borderColor: '{palette.color.purpleTelus}',
|
|
62
|
-
borderWidth: '{palette.border.border2}'
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
if: { pressed: true },
|
|
67
|
-
tokens: {
|
|
68
|
-
color: '{palette.color.white}',
|
|
69
|
-
backgroundColor: '{palette.color.greyShuttle}',
|
|
70
|
-
borderColor: '{system.color.transparent}',
|
|
71
|
-
borderWidth: '{system.border.zero}'
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
if: { focus: true, pressed: true },
|
|
76
|
-
tokens: {
|
|
77
|
-
backgroundColor: '{palette.color.purpleTelus}'
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
hover: '{appearances.TabsScrollButton.hover}',
|
|
4
|
-
focus: '{appearances.TabsScrollButton.focus}',
|
|
5
|
-
pressed: '{appearances.TabsScrollButton.pressed}'
|
|
6
|
-
},
|
|
7
|
-
tokens: {
|
|
8
|
-
borderRadius: '{palette.radius.pill32}',
|
|
9
|
-
backgroundColor: '{palette.color.white}',
|
|
10
|
-
borderColor: '{palette.color.greyCloud}',
|
|
11
|
-
borderWidth: '{palette.border.border1}',
|
|
12
|
-
padding: '{system.size.zero}',
|
|
13
|
-
shadow: '{palette.shadow.surfaceRaised}',
|
|
14
|
-
iconSize: '{palette.size.size32}',
|
|
15
|
-
iconColor: '{palette.color.greyShuttle}'
|
|
16
|
-
},
|
|
17
|
-
// TODO: refine the states etc when designs for icon buttons are finalized
|
|
18
|
-
rules: [
|
|
19
|
-
{
|
|
20
|
-
if: { hover: true },
|
|
21
|
-
tokens: {
|
|
22
|
-
borderColor: '{palette.color.greyCharcoal}',
|
|
23
|
-
iconColor: '{palette.color.greyCharcoal}'
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
if: { pressed: true },
|
|
28
|
-
tokens: {
|
|
29
|
-
backgroundColor: '{palette.color.greyShuttle}',
|
|
30
|
-
iconColor: '{palette.color.white}'
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|
package/src/components/Tags.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
viewport: '{appearances.system.viewport}'
|
|
4
|
-
},
|
|
5
|
-
tokens: {
|
|
6
|
-
space: '{system.integer.1}',
|
|
7
|
-
direction: '{system.direction.row}',
|
|
8
|
-
alignItems: '{system.flexAlign.center}',
|
|
9
|
-
justifyContent: '{system.flexJustifyContent.flexStart}',
|
|
10
|
-
flexGrow: '{system.integer.0}'
|
|
11
|
-
},
|
|
12
|
-
rules: [{ if: { viewport: ['lg', 'xl'] }, tokens: { space: '{system.integer.3}' } }]
|
|
13
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
hover: '{appearances.TagsItem.hover}',
|
|
4
|
-
focus: '{appearances.TagsItem.focus}',
|
|
5
|
-
pressed: '{appearances.TagsItem.pressed}',
|
|
6
|
-
selected: '{appearances.TagsItem.selected}',
|
|
7
|
-
inactive: '{appearances.TagsItem.inactive}'
|
|
8
|
-
},
|
|
9
|
-
tokens: {
|
|
10
|
-
// Icon tokens
|
|
11
|
-
iconSize: '{palette.size.size16}',
|
|
12
|
-
iconColor: '{palette.color.greyThunder}',
|
|
13
|
-
iconTranslateX: '{system.integer.0}',
|
|
14
|
-
iconTranslateY: '{system.integer.0}',
|
|
15
|
-
|
|
16
|
-
icon: '{palette.icon.Add}',
|
|
17
|
-
iconPosition: '{system.position.right}',
|
|
18
|
-
iconSpace: '{system.integer.2}',
|
|
19
|
-
iconBackground: '{palette.color.greyAthens}',
|
|
20
|
-
iconBorderRadius: '{palette.radius.pill32}',
|
|
21
|
-
iconAlignSelf: '{system.flexAlign.center}',
|
|
22
|
-
iconPadding: '{palette.size.size2}',
|
|
23
|
-
|
|
24
|
-
// Button tokens, very similar to ButtonGroup
|
|
25
|
-
borderColor: '{palette.color.greyCloud}',
|
|
26
|
-
borderWidth: '{palette.border.border1}',
|
|
27
|
-
borderRadius: '{palette.radius.pill32}',
|
|
28
|
-
shadow: '{system.shadow.none}',
|
|
29
|
-
|
|
30
|
-
fontSize: '{palette.fontSize.size14}',
|
|
31
|
-
color: '{palette.color.greyShuttle}',
|
|
32
|
-
lineHeight: '{palette.lineHeight.ratio10to7}',
|
|
33
|
-
textAlign: '{system.flexJustifyContent.center}',
|
|
34
|
-
alignSelf: '{system.flexAlign.center}',
|
|
35
|
-
fontName: '{palette.fontName.HelveticaNow}',
|
|
36
|
-
fontWeight: '{palette.fontWeight.weight700}',
|
|
37
|
-
|
|
38
|
-
backgroundColor: '{palette.color.white}',
|
|
39
|
-
opacity: '{system.opacity.opaque}',
|
|
40
|
-
paddingLeft: '{palette.size.size16}',
|
|
41
|
-
paddingRight: '{palette.size.size8}',
|
|
42
|
-
paddingTop: '{palette.size.size8}',
|
|
43
|
-
paddingBottom: '{palette.size.size8}',
|
|
44
|
-
width: '{system.size.none}',
|
|
45
|
-
minWidth: '{system.size.zero}',
|
|
46
|
-
|
|
47
|
-
outerBorderColor: '{palette.color.transparent}',
|
|
48
|
-
outerBorderWidth: '{palette.border.border2}',
|
|
49
|
-
outerBorderGap: '{palette.border.border2}',
|
|
50
|
-
outerBackgroundColor: '{palette.color.transparent}'
|
|
51
|
-
},
|
|
52
|
-
rules: [
|
|
53
|
-
{
|
|
54
|
-
if: { pressed: true },
|
|
55
|
-
tokens: {
|
|
56
|
-
borderWidth: '{palette.border.none}',
|
|
57
|
-
backgroundColor: '{palette.color.greyShuttle}',
|
|
58
|
-
borderColor: '{palette.color.greyShuttle}',
|
|
59
|
-
color: '{palette.color.white}',
|
|
60
|
-
|
|
61
|
-
iconColor: '{palette.color.white}',
|
|
62
|
-
iconBackground: '{palette.color.greyCharcoal}'
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
if: { focus: true },
|
|
67
|
-
tokens: {
|
|
68
|
-
borderColor: '{palette.color.greyShuttle}',
|
|
69
|
-
outerBorderColor: '{palette.color.greyShuttle}',
|
|
70
|
-
outerBorderGap: '{palette.size.size2}',
|
|
71
|
-
outerBorderWidth: '{palette.size.size2}'
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
{ if: { hover: true }, tokens: { borderWidth: '{palette.border.border3}' } },
|
|
75
|
-
{
|
|
76
|
-
if: { selected: true },
|
|
77
|
-
tokens: {
|
|
78
|
-
borderWidth: '{palette.border.none}',
|
|
79
|
-
backgroundColor: '{palette.color.purpleTelus}',
|
|
80
|
-
color: '{palette.color.white}',
|
|
81
|
-
|
|
82
|
-
icon: '{palette.icon.Close}',
|
|
83
|
-
iconColor: '{palette.color.white}',
|
|
84
|
-
iconBackground: '{palette.color.purpleDeluge}'
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
if: { selected: true, hover: true },
|
|
89
|
-
tokens: {
|
|
90
|
-
backgroundColor: '{palette.color.purpleDeluge}',
|
|
91
|
-
|
|
92
|
-
iconBackground: '{palette.color.purpleTelus}'
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
if: { selected: true, pressed: true },
|
|
97
|
-
tokens: {
|
|
98
|
-
backgroundColor: '{palette.color.purpleDark}',
|
|
99
|
-
|
|
100
|
-
iconBackground: '{palette.color.purpleDeluge}'
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
if: { selected: true, focus: true },
|
|
105
|
-
tokens: {
|
|
106
|
-
outerBorderColor: '{palette.color.purpleTelus}'
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
if: { selected: true, focus: true, pressed: true },
|
|
111
|
-
tokens: {
|
|
112
|
-
outerBorderColor: '{palette.color.purpleDark}',
|
|
113
|
-
|
|
114
|
-
iconBackground: '{palette.color.purpleDeluge}'
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
if: { inactive: true },
|
|
119
|
-
tokens: {
|
|
120
|
-
backgroundColor: '{palette.color.greyCloud}',
|
|
121
|
-
color: '{palette.color.white}',
|
|
122
|
-
borderWidth: '{system.border.zero}'
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
validation: '{appearances.TextInput.validation}',
|
|
4
|
-
hover: '{appearances.TextInput.hover}',
|
|
5
|
-
focus: '{appearances.TextInput.focus}',
|
|
6
|
-
inactive: '{appearances.TextInput.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
|
-
|
|
19
|
-
outerBackgroundColor: '{palette.color.transparent}',
|
|
20
|
-
outerBorderWidth: '{palette.border.border2}',
|
|
21
|
-
outerBorderColor: '{palette.color.transparent}',
|
|
22
|
-
|
|
23
|
-
fontName: '{palette.fontName.HelveticaNow}',
|
|
24
|
-
fontWeight: '{palette.fontWeight.weight400}',
|
|
25
|
-
|
|
26
|
-
fontSize: '{palette.fontSize.size16}',
|
|
27
|
-
lineHeight: '{palette.lineHeight.ratio3to2}',
|
|
28
|
-
|
|
29
|
-
icon: '{system.icon.none}',
|
|
30
|
-
iconSize: '{palette.fontSize.size24}',
|
|
31
|
-
iconColor: '{palette.color.transparent}'
|
|
32
|
-
},
|
|
33
|
-
rules: [
|
|
34
|
-
{
|
|
35
|
-
if: { hover: true, inactive: null },
|
|
36
|
-
tokens: {
|
|
37
|
-
outerBorderColor: '{palette.color.greyMystic}',
|
|
38
|
-
outerBackgroundColor: '{palette.color.greyMystic}'
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
if: { validation: 'success' },
|
|
43
|
-
tokens: {
|
|
44
|
-
borderColor: '{palette.color.greenAccessible}',
|
|
45
|
-
icon: '{palette.icon.NotificationSuccess}',
|
|
46
|
-
iconColor: '{palette.color.greenAccessible}'
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
if: { validation: 'error' },
|
|
51
|
-
tokens: {
|
|
52
|
-
borderColor: '{palette.color.red}',
|
|
53
|
-
icon: '{palette.icon.NotificationError}',
|
|
54
|
-
iconColor: '{palette.color.red}'
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
if: { focus: true },
|
|
59
|
-
tokens: {
|
|
60
|
-
borderColor: '{palette.color.purpleDeluge}',
|
|
61
|
-
borderWidth: '{palette.border.border3}',
|
|
62
|
-
icon: '{system.icon.none}'
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
if: { inactive: true },
|
|
67
|
-
tokens: {
|
|
68
|
-
backgroundColor: '{palette.color.greyAthens}',
|
|
69
|
-
borderColor: '{palette.color.greyAthens}'
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
focus: '{appearances.ToggleSwitch.focus}',
|
|
4
|
-
hover: '{appearances.ToggleSwitch.hover}',
|
|
5
|
-
pressed: '{appearances.ToggleSwitch.pressed}',
|
|
6
|
-
inactive: '{appearances.ToggleSwitch.inactive}',
|
|
7
|
-
selected: '{appearances.ToggleSwitch.selected}'
|
|
8
|
-
},
|
|
9
|
-
tokens: {
|
|
10
|
-
borderColor: '{palette.color.transparent}',
|
|
11
|
-
borderWidth: '{palette.border.none}',
|
|
12
|
-
borderRadius: '{palette.radius.pill32}',
|
|
13
|
-
outerBorderColor: '{palette.color.transparent}',
|
|
14
|
-
outerBorderWidth: '{palette.border.none}',
|
|
15
|
-
outerBorderGap: '{palette.size.size0}',
|
|
16
|
-
outerBackgroundColor: '{palette.color.transparent}',
|
|
17
|
-
backgroundColor: '{palette.color.greyShuttle}',
|
|
18
|
-
opacity: '{system.opacity.opaque}',
|
|
19
|
-
paddingLeft: '{system.size.zero}',
|
|
20
|
-
paddingRight: '{system.size.zero}',
|
|
21
|
-
paddingTop: '{system.size.zero}',
|
|
22
|
-
paddingBottom: '{system.size.zero}',
|
|
23
|
-
shadow: '{palette.shadow.surfaceInset}',
|
|
24
|
-
alignSelf: '{system.flexAlign.flexStart}',
|
|
25
|
-
|
|
26
|
-
icon: '{system.icon.none}',
|
|
27
|
-
width: '{palette.size.size40}',
|
|
28
|
-
trackBorderWidth: '{palette.border.border3}',
|
|
29
|
-
trackBorderColor: '{palette.color.transparent}',
|
|
30
|
-
trackBorderRadius: '{palette.radius.pill32}',
|
|
31
|
-
iconSize: '{palette.size.size12}',
|
|
32
|
-
iconColor: '{palette.color.greyShuttle}',
|
|
33
|
-
switchSize: '{palette.size.size16}',
|
|
34
|
-
switchColor: '{palette.color.white}',
|
|
35
|
-
switchBorderColor: '{palette.color.transparent}',
|
|
36
|
-
switchBorderWidth: '{palette.border.none}',
|
|
37
|
-
switchBorderRadius: '{palette.radius.pill32}',
|
|
38
|
-
switchShadow: '{palette.shadow.surfaceRaised}'
|
|
39
|
-
},
|
|
40
|
-
rules: [
|
|
41
|
-
{
|
|
42
|
-
if: { hover: true },
|
|
43
|
-
tokens: {
|
|
44
|
-
backgroundColor: '{palette.color.greyCharcoal}'
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
if: { pressed: true },
|
|
49
|
-
tokens: {
|
|
50
|
-
backgroundColor: '{palette.color.greyThunder}'
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
if: { focus: true },
|
|
55
|
-
tokens: {
|
|
56
|
-
outerBackgroundColor: '{palette.color.white}',
|
|
57
|
-
outerBorderGap: '{palette.border.border3}',
|
|
58
|
-
outerBorderWidth: '{palette.border.border2}',
|
|
59
|
-
outerBorderColor: '{palette.color.greyShuttle}'
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
if: { focus: true, pressed: true },
|
|
64
|
-
tokens: {
|
|
65
|
-
outerBorderColor: '{palette.color.greyThunder}'
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
if: { selected: true },
|
|
70
|
-
tokens: {
|
|
71
|
-
icon: '{palette.icon.Checkmark}',
|
|
72
|
-
backgroundColor: '{palette.color.greenAccessible}',
|
|
73
|
-
iconColor: '{palette.color.greenAccessible}'
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
if: { selected: true, hover: true },
|
|
78
|
-
tokens: {
|
|
79
|
-
backgroundColor: '{palette.color.greenSanFelix}',
|
|
80
|
-
iconColor: '{palette.color.greenSanFelix}'
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
if: { selected: true, pressed: true },
|
|
85
|
-
tokens: {
|
|
86
|
-
backgroundColor: '{palette.color.greenDarkFern}',
|
|
87
|
-
iconColor: '{palette.color.greenDarkFern}'
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
if: { selected: true, focus: true },
|
|
92
|
-
tokens: {
|
|
93
|
-
outerBorderColor: '{palette.color.greenAccessible}'
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
if: { selected: true, focus: true, pressed: true },
|
|
98
|
-
tokens: {
|
|
99
|
-
outerBorderColor: '{palette.color.greenDarkFern}'
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
if: { inactive: true },
|
|
104
|
-
tokens: {
|
|
105
|
-
backgroundColor: '{palette.color.greyCloud}',
|
|
106
|
-
outerBorderColor: '{palette.color.greyCloud}',
|
|
107
|
-
iconColor: '{palette.color.greyShuttle}'
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
inverse: {
|
|
4
|
-
values: [true],
|
|
5
|
-
type: 'variant'
|
|
6
|
-
}
|
|
7
|
-
},
|
|
8
|
-
tokens: {
|
|
9
|
-
backgroundColor: '{palette.color.greyThunder}',
|
|
10
|
-
paddingTop: '{palette.size.size8}',
|
|
11
|
-
paddingBottom: '{palette.size.size8}',
|
|
12
|
-
paddingLeft: '{palette.size.size16}',
|
|
13
|
-
paddingRight: '{palette.size.size16}',
|
|
14
|
-
borderRadius: '{palette.radius.radius8}',
|
|
15
|
-
shadow: '{palette.shadow.elevation1}',
|
|
16
|
-
|
|
17
|
-
color: '{palette.color.white}',
|
|
18
|
-
fontSize: '{palette.fontSize.size14}',
|
|
19
|
-
lineHeight: '{palette.lineHeight.ratio3to2}',
|
|
20
|
-
|
|
21
|
-
fontName: '{palette.fontName.HelveticaNow}',
|
|
22
|
-
fontWeight: '{palette.fontWeight.weight400}',
|
|
23
|
-
|
|
24
|
-
arrowWidth: '{palette.size.size16}',
|
|
25
|
-
arrowBorderRadius: '{palette.radius.radius1}',
|
|
26
|
-
arrowOffset: '{palette.size.size4}'
|
|
27
|
-
},
|
|
28
|
-
rules: [
|
|
29
|
-
{
|
|
30
|
-
if: { inverse: true },
|
|
31
|
-
tokens: {
|
|
32
|
-
backgroundColor: '{palette.color.white}',
|
|
33
|
-
color: '{palette.color.greyCharcoal}'
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
focus: '{appearances.TooltipButton.focus}',
|
|
4
|
-
hover: '{appearances.TooltipButton.hover}',
|
|
5
|
-
pressed: '{appearances.TooltipButton.pressed}',
|
|
6
|
-
inverse: {
|
|
7
|
-
values: [true],
|
|
8
|
-
type: 'variant'
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
tokens: {
|
|
12
|
-
outerBorderColor: '{palette.color.transparent}',
|
|
13
|
-
outerBorderWidth: '{palette.border.border1}',
|
|
14
|
-
outerBorderGap: '{palette.size.size4}',
|
|
15
|
-
borderRadius: '{palette.radius.pill32}',
|
|
16
|
-
width: '{palette.size.size16}',
|
|
17
|
-
|
|
18
|
-
icon: '{palette.icon.Question}',
|
|
19
|
-
iconScale: '{system.iconScale.scale1}',
|
|
20
|
-
iconSize: '{palette.size.size16}',
|
|
21
|
-
iconColor: '{palette.color.greyThunder}'
|
|
22
|
-
},
|
|
23
|
-
rules: [
|
|
24
|
-
{
|
|
25
|
-
if: { inverse: true },
|
|
26
|
-
tokens: {
|
|
27
|
-
iconColor: '{palette.color.white}'
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
if: { hover: true },
|
|
32
|
-
tokens: {
|
|
33
|
-
iconScale: '{system.iconScale.scale1_25}'
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
if: { pressed: true },
|
|
38
|
-
tokens: {
|
|
39
|
-
iconColor: '{palette.color.greyShuttle}'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
if: { inverse: true, pressed: true },
|
|
44
|
-
tokens: {
|
|
45
|
-
iconColor: '{palette.color.greyCloud}'
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
if: { focus: true },
|
|
50
|
-
tokens: {
|
|
51
|
-
outerBorderColor: '{palette.color.greyShuttle}'
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
if: { inverse: true, focus: true },
|
|
56
|
-
tokens: {
|
|
57
|
-
outerBorderColor: '{palette.color.greyCloud}'
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|