@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,23 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
size: {
|
|
4
|
-
values: ['large'],
|
|
5
|
-
description: 'used for full-screen spinners',
|
|
6
|
-
type: 'variant'
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
tokens: {
|
|
10
|
-
size: '{palette.size.size20}',
|
|
11
|
-
thickness: '{palette.border.border2}',
|
|
12
|
-
color: '{palette.color.greenAccessible}'
|
|
13
|
-
},
|
|
14
|
-
rules: [
|
|
15
|
-
{
|
|
16
|
-
if: { size: 'large' },
|
|
17
|
-
tokens: {
|
|
18
|
-
thickness: '{palette.border.border4}',
|
|
19
|
-
size: '{palette.size.size40}'
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
package/src/components/Box.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
background: {
|
|
4
|
-
description: 'Background colour of box. Transparent if not specified.',
|
|
5
|
-
values: [
|
|
6
|
-
'light',
|
|
7
|
-
'lightest',
|
|
8
|
-
'dark',
|
|
9
|
-
'darkest',
|
|
10
|
-
'critical',
|
|
11
|
-
'danger',
|
|
12
|
-
'warning',
|
|
13
|
-
'positive',
|
|
14
|
-
'brand'
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
tokens: {
|
|
19
|
-
backgroundColor: '{system.color.none}'
|
|
20
|
-
},
|
|
21
|
-
rules: [
|
|
22
|
-
{ if: { background: 'lightest' }, tokens: { backgroundColor: '{palette.color.white}' } },
|
|
23
|
-
{ if: { background: 'light' }, tokens: { backgroundColor: '{palette.color.greyAthens}' } },
|
|
24
|
-
{ if: { background: 'dark' }, tokens: { backgroundColor: '{palette.color.greyCharcoal}' } },
|
|
25
|
-
{ if: { background: 'darkest' }, tokens: { backgroundColor: '{palette.color.greyThunder}' } },
|
|
26
|
-
{ if: { background: 'critical' }, tokens: { backgroundColor: '{palette.color.redDark}' } },
|
|
27
|
-
{ if: { background: 'danger' }, tokens: { backgroundColor: '{palette.color.redLight}' } },
|
|
28
|
-
{ if: { background: 'warning' }, tokens: { backgroundColor: '{palette.color.amberLight}' } },
|
|
29
|
-
{ if: { background: 'positive' }, tokens: { backgroundColor: '{palette.color.greenPanache}' } },
|
|
30
|
-
{ if: { background: 'brand' }, tokens: { backgroundColor: '{palette.color.purpleTelus}' } }
|
|
31
|
-
]
|
|
32
|
-
}
|
package/src/components/Button.js
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
priority: {
|
|
4
|
-
description:
|
|
5
|
-
'Indicates the importance of the call-to-action. Limit the amount of high priority buttons on a page to prioritize meaningful user flows. Low priority styles are applied by default.',
|
|
6
|
-
values: ['high'],
|
|
7
|
-
type: 'variant'
|
|
8
|
-
},
|
|
9
|
-
danger: {
|
|
10
|
-
description:
|
|
11
|
-
'Indicates a user action that is destructive and will result in loss of information or cause significant monetary charges. Limit the use of the danger button whenever possible.',
|
|
12
|
-
values: [true],
|
|
13
|
-
type: 'variant'
|
|
14
|
-
},
|
|
15
|
-
inverse: {
|
|
16
|
-
description:
|
|
17
|
-
'Use inverse buttons on darker backgrounds. High and low priority buttons, and danger buttons, are available in inverse.',
|
|
18
|
-
values: [true],
|
|
19
|
-
type: 'variant'
|
|
20
|
-
},
|
|
21
|
-
size: {
|
|
22
|
-
values: ['small'],
|
|
23
|
-
type: 'variant'
|
|
24
|
-
},
|
|
25
|
-
width: {
|
|
26
|
-
description:
|
|
27
|
-
'Available in default or full-width. Default-width expands based on content Full-width expands to width of the container.',
|
|
28
|
-
values: ['full'],
|
|
29
|
-
type: 'variant'
|
|
30
|
-
},
|
|
31
|
-
hover: '{appearances.Button.hover}',
|
|
32
|
-
focus: '{appearances.Button.focus}',
|
|
33
|
-
pressed: '{appearances.Button.pressed}',
|
|
34
|
-
inactive: '{appearances.Button.inactive}'
|
|
35
|
-
},
|
|
36
|
-
tokens: {
|
|
37
|
-
borderColor: '{palette.color.greenAccessible}',
|
|
38
|
-
borderWidth: '{palette.border.border1}',
|
|
39
|
-
borderRadius: '{palette.radius.pill32}',
|
|
40
|
-
shadow: '{system.shadow.none}',
|
|
41
|
-
|
|
42
|
-
fontSize: '{palette.fontSize.size16}',
|
|
43
|
-
color: '{palette.color.greenAccessible}',
|
|
44
|
-
lineHeight: '{palette.lineHeight.ratio3to2}',
|
|
45
|
-
textAlign: '{system.flexJustifyContent.center}',
|
|
46
|
-
alignSelf: '{system.flexAlign.flexStart}',
|
|
47
|
-
fontName: '{palette.fontName.HelveticaNow}',
|
|
48
|
-
fontWeight: '{palette.fontWeight.weight700}',
|
|
49
|
-
|
|
50
|
-
backgroundColor: '{palette.color.white}',
|
|
51
|
-
opacity: '{system.opacity.opaque}',
|
|
52
|
-
paddingLeft: '{palette.size.size32}',
|
|
53
|
-
paddingRight: '{palette.size.size32}',
|
|
54
|
-
paddingTop: '{palette.size.size12}',
|
|
55
|
-
paddingBottom: '{palette.size.size12}',
|
|
56
|
-
width: '{system.size.none}',
|
|
57
|
-
minWidth: '{palette.size.size144}',
|
|
58
|
-
|
|
59
|
-
outerBorderColor: '{palette.color.transparent}',
|
|
60
|
-
outerBorderWidth: '{palette.border.border2}',
|
|
61
|
-
outerBorderGap: '{palette.border.border2}',
|
|
62
|
-
outerBackgroundColor: '{palette.color.transparent}'
|
|
63
|
-
},
|
|
64
|
-
rules: [
|
|
65
|
-
{ if: { hover: true }, tokens: { borderWidth: '{palette.border.border3}' } },
|
|
66
|
-
|
|
67
|
-
{
|
|
68
|
-
if: { priority: 'high' },
|
|
69
|
-
tokens: {
|
|
70
|
-
backgroundColor: '{palette.color.greenAccessible}',
|
|
71
|
-
color: '{palette.color.white}',
|
|
72
|
-
borderWidth: '{palette.border.none}'
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
if: { priority: 'high', hover: true },
|
|
77
|
-
tokens: { backgroundColor: '{palette.color.greenSanFelix}' }
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
// pressed and focus apply the same tokens to both high and low priority
|
|
81
|
-
{
|
|
82
|
-
if: { pressed: true },
|
|
83
|
-
tokens: {
|
|
84
|
-
borderWidth: '{system.size.zero}',
|
|
85
|
-
backgroundColor: '{palette.color.greenDarkFern}',
|
|
86
|
-
color: '{palette.color.white}'
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
{ if: { focus: true }, tokens: { outerBorderColor: '{palette.color.greenAccessible}' } },
|
|
90
|
-
{
|
|
91
|
-
if: { focus: true, pressed: true },
|
|
92
|
-
tokens: { outerBorderColor: '{palette.color.greenDarkFern}' }
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
{
|
|
96
|
-
if: { inverse: true },
|
|
97
|
-
tokens: {
|
|
98
|
-
backgroundColor: '{system.color.none}',
|
|
99
|
-
borderColor: '{palette.color.white}',
|
|
100
|
-
color: '{palette.color.white}'
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
if: { inverse: true, priority: 'high' },
|
|
105
|
-
tokens: { backgroundColor: '{palette.color.white}', color: '{palette.color.greyCharcoal}' }
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
if: { inverse: true, priority: 'high', hover: true },
|
|
109
|
-
tokens: { backgroundColor: '{palette.color.light80}' }
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
if: { inverse: true, pressed: true },
|
|
113
|
-
tokens: {
|
|
114
|
-
color: '{palette.color.greyCharcoal}',
|
|
115
|
-
backgroundColor: '{palette.color.light60}'
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
{ if: { inverse: true, focus: true }, tokens: { outerBorderColor: '{palette.color.white}' } },
|
|
119
|
-
|
|
120
|
-
{
|
|
121
|
-
if: { danger: true, priority: null },
|
|
122
|
-
tokens: { color: '{palette.color.red}', borderColor: '{palette.color.red}' }
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
if: { danger: true, priority: null, inverse: true },
|
|
126
|
-
tokens: { backgroundColor: '{palette.color.white}' }
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
if: { danger: true, priority: null, focus: true },
|
|
130
|
-
tokens: { outerBorderColor: '{palette.color.red}' }
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
if: { danger: true, priority: null, pressed: true },
|
|
134
|
-
tokens: { backgroundColor: '{palette.color.redDark}', color: '{palette.color.white}' }
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
if: { danger: true, priority: null, pressed: true, focus: true },
|
|
138
|
-
tokens: { outerBorderColor: '{palette.color.redDark}' }
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
{ if: { width: 'full' }, tokens: { width: '{system.size.full}' } },
|
|
142
|
-
{
|
|
143
|
-
if: { size: 'small' },
|
|
144
|
-
tokens: {
|
|
145
|
-
paddingTop: '{palette.size.size4}',
|
|
146
|
-
paddingBottom: '{palette.size.size4}',
|
|
147
|
-
minWidth: '{system.size.zero}'
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
description:
|
|
152
|
-
'Buttons should not be disabled or set as inactive. Use inline (on blur) error messaging to provide feedback when the form is invalid. In exceptional instances where disabled buttons are needed, it must be clear to the user why the button is disabled and what they need to do to enable it.',
|
|
153
|
-
if: {
|
|
154
|
-
inactive: true
|
|
155
|
-
},
|
|
156
|
-
tokens: {
|
|
157
|
-
backgroundColor: '{palette.color.greyCloud}',
|
|
158
|
-
color: '{palette.color.white}',
|
|
159
|
-
borderWidth: '{system.size.zero}'
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
if: { inactive: true, inverse: true },
|
|
164
|
-
tokens: { backgroundColor: '{palette.color.light60}', color: '{palette.color.greyCharcoal}' }
|
|
165
|
-
}
|
|
166
|
-
]
|
|
167
|
-
}
|
|
@@ -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,98 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
hover: '{appearances.ButtonGroupItem.hover}',
|
|
4
|
-
focus: '{appearances.ButtonGroupItem.focus}',
|
|
5
|
-
pressed: '{appearances.ButtonGroupItem.pressed}',
|
|
6
|
-
selected: '{appearances.ButtonGroupItem.selected}',
|
|
7
|
-
inactive: '{appearances.ButtonGroupItem.inactive}'
|
|
8
|
-
},
|
|
9
|
-
tokens: {
|
|
10
|
-
borderColor: '{palette.color.greyCloud}',
|
|
11
|
-
borderWidth: '{palette.border.border1}',
|
|
12
|
-
borderRadius: '{palette.radius.pill32}',
|
|
13
|
-
shadow: '{system.shadow.none}',
|
|
14
|
-
|
|
15
|
-
fontSize: '{palette.fontSize.size14}',
|
|
16
|
-
color: '{palette.color.greyShuttle}',
|
|
17
|
-
lineHeight: '{palette.lineHeight.ratio3to2}',
|
|
18
|
-
textAlign: '{system.flexJustifyContent.center}',
|
|
19
|
-
alignSelf: '{system.flexAlign.flexStart}',
|
|
20
|
-
fontName: '{palette.fontName.HelveticaNow}',
|
|
21
|
-
fontWeight: '{palette.fontWeight.weight700}',
|
|
22
|
-
|
|
23
|
-
backgroundColor: '{palette.color.white}',
|
|
24
|
-
opacity: '{system.opacity.opaque}',
|
|
25
|
-
paddingLeft: '{palette.size.size16}',
|
|
26
|
-
paddingRight: '{palette.size.size16}',
|
|
27
|
-
paddingTop: '{palette.size.size8}',
|
|
28
|
-
paddingBottom: '{palette.size.size8}',
|
|
29
|
-
width: '{system.size.none}',
|
|
30
|
-
minWidth: '{system.size.zero}',
|
|
31
|
-
|
|
32
|
-
outerBorderColor: '{palette.color.transparent}',
|
|
33
|
-
outerBorderWidth: '{palette.border.border2}',
|
|
34
|
-
outerBorderGap: '{palette.border.border2}',
|
|
35
|
-
outerBackgroundColor: '{palette.color.transparent}'
|
|
36
|
-
},
|
|
37
|
-
rules: [
|
|
38
|
-
{
|
|
39
|
-
if: { pressed: true },
|
|
40
|
-
tokens: {
|
|
41
|
-
borderWidth: '{palette.border.none}',
|
|
42
|
-
backgroundColor: '{palette.color.greyShuttle}',
|
|
43
|
-
borderColor: '{palette.color.greyShuttle}',
|
|
44
|
-
color: '{palette.color.white}'
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
if: { focus: true },
|
|
49
|
-
tokens: {
|
|
50
|
-
borderColor: '{palette.color.greyShuttle}',
|
|
51
|
-
outerBorderColor: '{palette.color.greyShuttle}',
|
|
52
|
-
outerBorderGap: '{palette.size.size2}',
|
|
53
|
-
outerBorderWidth: '{palette.size.size2}'
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
{ if: { hover: true }, tokens: { borderWidth: '{palette.border.border3}' } },
|
|
57
|
-
{
|
|
58
|
-
if: { selected: true },
|
|
59
|
-
tokens: {
|
|
60
|
-
borderWidth: '{palette.border.none}',
|
|
61
|
-
backgroundColor: '{palette.color.purpleTelus}',
|
|
62
|
-
color: '{palette.color.white}'
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
if: { selected: true, hover: true },
|
|
67
|
-
tokens: {
|
|
68
|
-
backgroundColor: '{palette.color.purpleDeluge}'
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
if: { selected: true, pressed: true },
|
|
73
|
-
tokens: {
|
|
74
|
-
backgroundColor: '{palette.color.purpleDark}'
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
if: { selected: true, focus: true },
|
|
79
|
-
tokens: {
|
|
80
|
-
outerBorderColor: '{palette.color.purpleTelus}'
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
if: { selected: true, focus: true, pressed: true },
|
|
85
|
-
tokens: {
|
|
86
|
-
outerBorderColor: '{palette.color.purpleDark}'
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
if: { inactive: true },
|
|
91
|
-
tokens: {
|
|
92
|
-
backgroundColor: '{palette.color.greyCloud}',
|
|
93
|
-
color: '{palette.color.white}',
|
|
94
|
-
borderWidth: '{system.border.zero}'
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
}
|
package/src/components/Card.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
background: {
|
|
4
|
-
values: ['alternative'],
|
|
5
|
-
type: 'variant'
|
|
6
|
-
},
|
|
7
|
-
padding: {
|
|
8
|
-
values: ['narrow', 'intermediate', 'compact', 'custom'],
|
|
9
|
-
type: 'variant'
|
|
10
|
-
},
|
|
11
|
-
viewport: '{appearances.system.viewport}'
|
|
12
|
-
},
|
|
13
|
-
tokens: {
|
|
14
|
-
flex: '{system.integer.1}',
|
|
15
|
-
backgroundColor: '{palette.color.white}',
|
|
16
|
-
borderColor: '{palette.color.greyMystic}',
|
|
17
|
-
borderRadius: '{palette.radius.radius6}',
|
|
18
|
-
borderWidth: '{palette.border.border1}',
|
|
19
|
-
paddingBottom: '{palette.size.size32}',
|
|
20
|
-
paddingLeft: '{palette.size.size24}',
|
|
21
|
-
paddingRight: '{palette.size.size24}',
|
|
22
|
-
paddingTop: '{palette.size.size32}',
|
|
23
|
-
minWidth: '{system.size.none}',
|
|
24
|
-
shadow: '{system.shadow.none}'
|
|
25
|
-
},
|
|
26
|
-
rules: [
|
|
27
|
-
{
|
|
28
|
-
if: { background: 'alternative' },
|
|
29
|
-
tokens: {
|
|
30
|
-
backgroundColor: '{palette.color.greyAthens}'
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
if: { viewport: ['md', 'lg', 'xl'] },
|
|
35
|
-
tokens: {
|
|
36
|
-
paddingBottom: '{palette.size.size48}',
|
|
37
|
-
paddingLeft: '{palette.size.size32}',
|
|
38
|
-
paddingRight: '{palette.size.size32}',
|
|
39
|
-
paddingTop: '{palette.size.size48}'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
if: { padding: 'narrow' },
|
|
44
|
-
tokens: {
|
|
45
|
-
paddingBottom: '{palette.size.size24}',
|
|
46
|
-
paddingLeft: '{palette.size.size16}',
|
|
47
|
-
paddingRight: '{palette.size.size16}',
|
|
48
|
-
paddingTop: '{palette.size.size24}'
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
if: { padding: 'narrow', viewport: ['md', 'lg', 'xl'] },
|
|
53
|
-
tokens: {
|
|
54
|
-
paddingBottom: '{palette.size.size32}',
|
|
55
|
-
paddingLeft: '{palette.size.size16}',
|
|
56
|
-
paddingRight: '{palette.size.size16}',
|
|
57
|
-
paddingTop: '{palette.size.size32}'
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
if: { padding: 'intermediate' },
|
|
62
|
-
tokens: {
|
|
63
|
-
paddingBottom: '{palette.size.size24}',
|
|
64
|
-
paddingLeft: '{palette.size.size24}',
|
|
65
|
-
paddingRight: '{palette.size.size24}',
|
|
66
|
-
paddingTop: '{palette.size.size24}'
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
if: { padding: 'intermediate', viewport: ['md', 'lg', 'xl'] },
|
|
71
|
-
tokens: {
|
|
72
|
-
paddingBottom: '{palette.size.size32}',
|
|
73
|
-
paddingLeft: '{palette.size.size32}',
|
|
74
|
-
paddingRight: '{palette.size.size32}',
|
|
75
|
-
paddingTop: '{palette.size.size32}'
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
if: { padding: 'compact' },
|
|
80
|
-
tokens: {
|
|
81
|
-
paddingBottom: '{palette.size.size16}',
|
|
82
|
-
paddingLeft: '{palette.size.size16}',
|
|
83
|
-
paddingRight: '{palette.size.size16}',
|
|
84
|
-
paddingTop: '{palette.size.size16}'
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
if: { padding: 'custom' },
|
|
89
|
-
tokens: {
|
|
90
|
-
paddingBottom: '{palette.size.size0}',
|
|
91
|
-
paddingLeft: '{palette.size.size0}',
|
|
92
|
-
paddingRight: '{palette.size.size0}',
|
|
93
|
-
paddingTop: '{palette.size.size0}'
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
checked: '{appearances.Checkbox.checked}',
|
|
4
|
-
error: '{appearances.Checkbox.error}',
|
|
5
|
-
focus: '{appearances.Checkbox.focus}',
|
|
6
|
-
hover: '{appearances.Checkbox.hover}',
|
|
7
|
-
inactive: '{appearances.Checkbox.inactive}'
|
|
8
|
-
},
|
|
9
|
-
tokens: {
|
|
10
|
-
containerBackgroundColor: '{palette.color.transparent}',
|
|
11
|
-
feedbackMarginBottom: '{system.size.zero}',
|
|
12
|
-
feedbackMarginTop: '{palette.size.size2}',
|
|
13
|
-
feedbackPosition: '{system.position.bottom}',
|
|
14
|
-
icon: '{palette.icon.Checkmark}',
|
|
15
|
-
iconBackgroundColor: '{palette.color.purpleDeluge}',
|
|
16
|
-
iconColor: '{palette.color.white}',
|
|
17
|
-
iconSize: '{palette.size.size16}',
|
|
18
|
-
inputBackgroundColor: '{palette.color.white}',
|
|
19
|
-
inputBorderColor: '{palette.color.greyShuttle}',
|
|
20
|
-
inputBorderRadius: '{palette.radius.radius4}',
|
|
21
|
-
inputBorderWidth: '{palette.border.border1}',
|
|
22
|
-
inputHeight: '{palette.size.size20}',
|
|
23
|
-
inputOutlineColor: '{system.color.none}',
|
|
24
|
-
inputOutlineWidth: '{palette.border.none}',
|
|
25
|
-
inputShadow: '{system.shadow.none}',
|
|
26
|
-
inputWidth: '{palette.size.size20}',
|
|
27
|
-
labelColor: '{palette.color.greyCharcoal}',
|
|
28
|
-
labelFontName: '{palette.fontName.HelveticaNow}',
|
|
29
|
-
labelFontSize: '{palette.fontSize.size16}',
|
|
30
|
-
labelFontWeight: '{palette.fontWeight.weight400}',
|
|
31
|
-
labelLineHeight: '{palette.lineHeight.ratio3to2}',
|
|
32
|
-
labelMarginLeft: '{palette.size.size10}'
|
|
33
|
-
},
|
|
34
|
-
rules: [
|
|
35
|
-
{
|
|
36
|
-
if: { error: true },
|
|
37
|
-
tokens: {
|
|
38
|
-
inputBorderColor: '{palette.color.red}'
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
if: { focus: true },
|
|
43
|
-
tokens: {
|
|
44
|
-
inputBorderColor: '{palette.color.purpleDeluge}',
|
|
45
|
-
inputBorderWidth: '{palette.border.border3}'
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
if: { inactive: true },
|
|
50
|
-
tokens: {
|
|
51
|
-
inputBorderColor: '{palette.color.transparent}',
|
|
52
|
-
inputBackgroundColor: '{palette.color.greyMystic}',
|
|
53
|
-
iconBackgroundColor: '{palette.color.greyMystic}',
|
|
54
|
-
iconColor: '{palette.color.greyShuttle}',
|
|
55
|
-
labelColor: '{palette.color.greyShuttle}'
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
hover: '{appearances.ChevronLink.hover}'
|
|
4
|
-
},
|
|
5
|
-
tokens: {
|
|
6
|
-
leftIcon: '{palette.icon.ArrowLeft}',
|
|
7
|
-
rightIcon: '{palette.icon.ArrowRight}',
|
|
8
|
-
iconDisplace: '{palette.size.size0}',
|
|
9
|
-
iconSpace: '{system.integer.0}'
|
|
10
|
-
},
|
|
11
|
-
rules: [{ if: { hover: true }, tokens: { iconDisplace: '{palette.size.size4}' } }]
|
|
12
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
weight: {
|
|
4
|
-
values: ['thick'],
|
|
5
|
-
type: 'variant'
|
|
6
|
-
},
|
|
7
|
-
decorative: {
|
|
8
|
-
description:
|
|
9
|
-
'Use a decorative divider to highlight an element. Non-decorative dividers are for clearly identifying separation of content.',
|
|
10
|
-
values: [true],
|
|
11
|
-
type: 'variant'
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
tokens: {
|
|
15
|
-
width: '{palette.border.border1}',
|
|
16
|
-
color: '{palette.color.greyShuttle}'
|
|
17
|
-
},
|
|
18
|
-
rules: [
|
|
19
|
-
{
|
|
20
|
-
if: { weight: 'thick' },
|
|
21
|
-
tokens: {
|
|
22
|
-
width: '{palette.border.border2}'
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
if: { decorative: true },
|
|
27
|
-
tokens: {
|
|
28
|
-
color: '{palette.color.greyCloud}'
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
expanded: '{appearances.ExpandCollapseControl.expanded}'
|
|
4
|
-
},
|
|
5
|
-
tokens: {
|
|
6
|
-
icon: '{palette.icon.CaretDown}',
|
|
7
|
-
iconColor: '{palette.color.greenAccessible}',
|
|
8
|
-
iconSize: '{palette.size.size24}',
|
|
9
|
-
iconGap: '{palette.size.size8}',
|
|
10
|
-
iconPosition: '{system.position.left}',
|
|
11
|
-
verticalAlign: '{system.verticalAlign.top}',
|
|
12
|
-
justifyContent: '{system.flexJustifyContent.flexStart}',
|
|
13
|
-
paddingLeft: '{palette.size.size8}',
|
|
14
|
-
paddingRight: '{palette.size.size16}',
|
|
15
|
-
paddingTop: '{palette.size.size16}',
|
|
16
|
-
paddingBottom: '{palette.size.size16}',
|
|
17
|
-
borderWidth: '{system.border.zero}',
|
|
18
|
-
borderColor: '{palette.color.transparent}',
|
|
19
|
-
backgroundColor: '{palette.color.transparent}'
|
|
20
|
-
},
|
|
21
|
-
rules: [{ if: { expanded: true }, tokens: { icon: '{palette.icon.CaretUp}' } }]
|
|
22
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {},
|
|
3
|
-
tokens: {
|
|
4
|
-
// animate slightly faster when closing
|
|
5
|
-
expandDuration: '{palette.duration.duration300}',
|
|
6
|
-
collapseDuration: '{palette.duration.duration250}',
|
|
7
|
-
contentPaddingLeft: '{palette.size.size40}',
|
|
8
|
-
contentPaddingRight: '{palette.size.size16}',
|
|
9
|
-
contentPaddingTop: '{palette.size.size0}',
|
|
10
|
-
contentPaddingBottom: '{palette.size.size16}'
|
|
11
|
-
},
|
|
12
|
-
rules: []
|
|
13
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
appearances: {
|
|
3
|
-
validation: '{appearances.Feedback.validation}',
|
|
4
|
-
icon: {
|
|
5
|
-
values: [true],
|
|
6
|
-
type: 'variant'
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
tokens: {
|
|
10
|
-
backgroundColor: '{palette.color.greyAthens}',
|
|
11
|
-
borderColor: '{palette.color.greyMystic}',
|
|
12
|
-
borderWidth: '{palette.border.border1}',
|
|
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
|
-
space: '{system.integer.2}',
|
|
19
|
-
|
|
20
|
-
color: '{palette.color.greyThunder}',
|
|
21
|
-
|
|
22
|
-
fontName: '{palette.fontName.HelveticaNow}',
|
|
23
|
-
fontWeight: '{palette.fontWeight.weight400}',
|
|
24
|
-
|
|
25
|
-
lineHeight: '{palette.lineHeight.ratio3to2}',
|
|
26
|
-
titleFontSize: '{palette.fontSize.size16}',
|
|
27
|
-
contentFontSize: '{palette.fontSize.size14}',
|
|
28
|
-
|
|
29
|
-
icon: '{system.icon.none}',
|
|
30
|
-
iconSize: '{palette.fontSize.size24}',
|
|
31
|
-
iconColor: '{palette.color.transparent}',
|
|
32
|
-
iconGap: '{palette.size.size8}'
|
|
33
|
-
},
|
|
34
|
-
rules: [
|
|
35
|
-
{
|
|
36
|
-
if: { validation: 'success' },
|
|
37
|
-
tokens: {
|
|
38
|
-
backgroundColor: '{palette.color.greenPanache}',
|
|
39
|
-
borderColor: '{palette.color.greenPanache}',
|
|
40
|
-
color: '{palette.color.greenDarkFern}'
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
if: { validation: 'error' },
|
|
45
|
-
tokens: {
|
|
46
|
-
backgroundColor: '{palette.color.redLight}',
|
|
47
|
-
borderColor: '{palette.color.redLight}',
|
|
48
|
-
color: '{palette.color.red}'
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
if: { validation: 'success', icon: true },
|
|
53
|
-
tokens: {
|
|
54
|
-
icon: '{palette.icon.NotificationSuccess}',
|
|
55
|
-
iconColor: '{palette.color.greenAccessible}'
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
if: { validation: 'error', icon: true },
|
|
60
|
-
tokens: {
|
|
61
|
-
icon: '{palette.icon.NotificationError}',
|
|
62
|
-
iconColor: '{palette.color.red}'
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
}
|