@telus-uds/theme-allium 0.0.2-prerelease.4 → 0.0.2-prerelease.5
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 +19 -0
- package/lib/components/ActivityIndicator.js +35 -0
- package/lib/components/Box.js +89 -0
- package/lib/components/Button.js +252 -0
- package/lib/components/ButtonGroup.js +34 -0
- package/lib/components/ButtonGroupItem.js +108 -0
- package/lib/components/Card.js +120 -0
- package/lib/components/Checkbox.js +80 -0
- package/lib/components/ChevronLink.js +39 -0
- package/lib/components/Divider.js +44 -0
- package/lib/components/ExpandCollapse.js +23 -0
- package/lib/components/ExpandCollapseControl.js +49 -0
- package/lib/components/ExpandCollapsePanel.js +25 -0
- package/lib/components/Feedback.js +89 -0
- package/lib/components/Icon.js +47 -0
- package/lib/components/InputLabel.js +33 -0
- package/lib/components/InputSupports.js +19 -0
- package/lib/components/Link.js +241 -0
- package/lib/components/List.js +86 -0
- package/lib/components/Pagination.js +40 -0
- package/lib/components/PaginationPageButton.js +82 -0
- package/lib/components/PaginationSideButton.js +113 -0
- package/lib/components/Radio.js +78 -0
- package/lib/components/Select.js +102 -0
- package/lib/components/SideNav.js +23 -0
- package/lib/components/SideNavItem.js +118 -0
- package/lib/components/SideNavItemsGroup.js +49 -0
- package/lib/components/Skeleton.js +26 -0
- package/lib/components/StackView.js +22 -0
- package/lib/components/Tags.js +34 -0
- package/lib/components/TagsItem.js +133 -0
- package/lib/components/TextArea.js +20 -0
- package/lib/components/TextInput.js +97 -0
- package/lib/components/ToggleSwitch.js +144 -0
- package/lib/components/Tooltip.js +48 -0
- package/lib/components/TooltipButton.js +86 -0
- package/lib/components/Typography.js +370 -0
- package/lib/components/index.js +303 -0
- package/lib/components/spacingScale.js +163 -0
- package/lib/index.js +30 -0
- package/package.json +7 -7
- package/src/components/Box.js +3 -9
- package/src/components/Button.js +27 -72
- package/src/components/ButtonGroup.js +10 -17
- package/src/components/ButtonGroupItem.js +88 -0
- package/src/components/Card.js +4 -3
- package/src/components/Checkbox.js +65 -0
- package/src/components/ChevronLink.js +10 -11
- package/src/components/ExpandCollapse.js +3 -9
- package/src/components/ExpandCollapseControl.js +8 -21
- package/src/components/ExpandCollapsePanel.js +3 -14
- package/src/components/Feedback.js +20 -19
- package/src/components/Icon.js +6 -3
- package/src/components/InputLabel.js +9 -8
- package/src/components/InputSupports.js +9 -0
- package/src/components/Link.js +39 -23
- package/src/components/List.js +70 -0
- package/src/components/Pagination.js +10 -13
- package/src/components/PaginationPageButton.js +15 -25
- package/src/components/PaginationSideButton.js +22 -32
- package/src/components/Radio.js +64 -0
- package/src/components/Select.js +88 -0
- package/src/components/SideNav.js +3 -9
- package/src/components/SideNavItem.js +21 -22
- package/src/components/SideNavItemsGroup.js +11 -18
- package/src/components/Skeleton.js +16 -0
- package/src/components/StackView.js +5 -12
- package/src/components/Tags.js +16 -0
- package/src/components/TagsItem.js +118 -0
- package/src/components/TextArea.js +10 -0
- package/src/components/TextInput.js +14 -17
- package/src/components/ToggleSwitch.js +16 -23
- package/src/components/Tooltip.js +4 -8
- package/src/components/TooltipButton.js +8 -14
- package/src/components/Typography.js +58 -13
- package/src/components/index.js +37 -57
- package/src/components/spacingScale.js +4 -14
- package/src/index.js +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
|
|
9
|
+
|
|
10
|
+
var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
|
|
11
|
+
|
|
12
|
+
var _schema = require("@telus-uds/system-themes/schema");
|
|
13
|
+
|
|
14
|
+
var _checkmarkIcon = _interopRequireDefault(require("@telus-uds/palette-allium/build/rn/icons/checkmark.icon.svg"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
var _default = {
|
|
19
|
+
appearances: {
|
|
20
|
+
checked: _schema.appearances.Checkbox.checked,
|
|
21
|
+
error: _schema.appearances.Checkbox.error,
|
|
22
|
+
focus: _schema.appearances.Checkbox.focus,
|
|
23
|
+
hover: _schema.appearances.Checkbox.hover,
|
|
24
|
+
inactive: _schema.appearances.Checkbox.inactive
|
|
25
|
+
},
|
|
26
|
+
tokens: {
|
|
27
|
+
containerBackgroundColor: _paletteAllium.default.color.transparent,
|
|
28
|
+
containerMarginBottom: _paletteAllium.default.size.size8,
|
|
29
|
+
feedbackMarginBottom: _rn.default.size.zero,
|
|
30
|
+
feedbackMarginTop: _paletteAllium.default.size.size2,
|
|
31
|
+
feedbackPosition: _rn.default.position.bottom,
|
|
32
|
+
icon: _checkmarkIcon.default,
|
|
33
|
+
iconBackgroundColor: _paletteAllium.default.color.purpleDeluge,
|
|
34
|
+
iconColor: _paletteAllium.default.color.white,
|
|
35
|
+
iconSize: _paletteAllium.default.size.size16,
|
|
36
|
+
inputBackgroundColor: _paletteAllium.default.color.white,
|
|
37
|
+
inputBorderColor: _paletteAllium.default.color.greyShuttle,
|
|
38
|
+
inputBorderRadius: _paletteAllium.default.radius.radius4,
|
|
39
|
+
inputBorderWidth: _paletteAllium.default.border.border1,
|
|
40
|
+
inputHeight: _paletteAllium.default.size.size20,
|
|
41
|
+
inputOutlineColor: _rn.default.color.none,
|
|
42
|
+
inputOutlineWidth: _paletteAllium.default.border.none,
|
|
43
|
+
inputShadow: _rn.default.shadow.none,
|
|
44
|
+
inputWidth: _paletteAllium.default.size.size20,
|
|
45
|
+
labelColor: _paletteAllium.default.color.greyCharcoal,
|
|
46
|
+
labelFontName: Object.keys(_paletteAllium.default.font)[0],
|
|
47
|
+
labelFontSize: _paletteAllium.default.fontSize.size16,
|
|
48
|
+
labelFontWeight: '400',
|
|
49
|
+
labelLineHeight: _paletteAllium.default.lineHeight.ratio3to2,
|
|
50
|
+
labelMarginLeft: _paletteAllium.default.size.size10
|
|
51
|
+
},
|
|
52
|
+
rules: [{
|
|
53
|
+
if: {
|
|
54
|
+
error: true
|
|
55
|
+
},
|
|
56
|
+
tokens: {
|
|
57
|
+
inputBorderColor: _paletteAllium.default.color.red
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
if: {
|
|
61
|
+
focus: true
|
|
62
|
+
},
|
|
63
|
+
tokens: {
|
|
64
|
+
inputBorderColor: _paletteAllium.default.color.purpleDeluge,
|
|
65
|
+
inputBorderWidth: _paletteAllium.default.border.border3
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
if: {
|
|
69
|
+
inactive: true
|
|
70
|
+
},
|
|
71
|
+
tokens: {
|
|
72
|
+
inputBorderColor: _paletteAllium.default.color.transparent,
|
|
73
|
+
inputBackgroundColor: _paletteAllium.default.color.greyMystic,
|
|
74
|
+
iconBackgroundColor: _paletteAllium.default.color.greyMystic,
|
|
75
|
+
iconColor: _paletteAllium.default.color.greyShuttle,
|
|
76
|
+
labelColor: _paletteAllium.default.color.greyShuttle
|
|
77
|
+
}
|
|
78
|
+
}]
|
|
79
|
+
};
|
|
80
|
+
exports.default = _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
|
|
9
|
+
|
|
10
|
+
var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
|
|
11
|
+
|
|
12
|
+
var _schema = require("@telus-uds/system-themes/schema");
|
|
13
|
+
|
|
14
|
+
var _arrowLeftIcon = _interopRequireDefault(require("@telus-uds/palette-allium/build/rn/icons/arrow-left.icon.svg"));
|
|
15
|
+
|
|
16
|
+
var _arrowRightIcon = _interopRequireDefault(require("@telus-uds/palette-allium/build/rn/icons/arrow-right.icon.svg"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
var _default = {
|
|
21
|
+
appearances: {
|
|
22
|
+
hover: _schema.appearances.ChevronLink.hover
|
|
23
|
+
},
|
|
24
|
+
tokens: {
|
|
25
|
+
leftIcon: _arrowLeftIcon.default,
|
|
26
|
+
rightIcon: _arrowRightIcon.default,
|
|
27
|
+
iconDisplace: _paletteAllium.default.size.size0,
|
|
28
|
+
iconSpace: _rn.default.integer[0]
|
|
29
|
+
},
|
|
30
|
+
rules: [{
|
|
31
|
+
if: {
|
|
32
|
+
hover: true
|
|
33
|
+
},
|
|
34
|
+
tokens: {
|
|
35
|
+
iconDisplace: _paletteAllium.default.size.size4
|
|
36
|
+
}
|
|
37
|
+
}]
|
|
38
|
+
};
|
|
39
|
+
exports.default = _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = {
|
|
13
|
+
appearances: {
|
|
14
|
+
weight: {
|
|
15
|
+
values: ['thick'],
|
|
16
|
+
type: 'variant'
|
|
17
|
+
},
|
|
18
|
+
decorative: {
|
|
19
|
+
description: 'Use a decorative divider to highlight an element. Non-decorative dividers are for clearly identifying separation of content.',
|
|
20
|
+
values: [true],
|
|
21
|
+
type: 'variant'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
tokens: {
|
|
25
|
+
width: _paletteAllium.default.border.border1,
|
|
26
|
+
color: _paletteAllium.default.color.greyShuttle
|
|
27
|
+
},
|
|
28
|
+
rules: [{
|
|
29
|
+
if: {
|
|
30
|
+
weight: 'thick'
|
|
31
|
+
},
|
|
32
|
+
tokens: {
|
|
33
|
+
width: _paletteAllium.default.border.border2
|
|
34
|
+
}
|
|
35
|
+
}, {
|
|
36
|
+
if: {
|
|
37
|
+
decorative: true
|
|
38
|
+
},
|
|
39
|
+
tokens: {
|
|
40
|
+
color: _paletteAllium.default.color.greyCloud
|
|
41
|
+
}
|
|
42
|
+
}]
|
|
43
|
+
};
|
|
44
|
+
exports.default = _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
|
|
9
|
+
|
|
10
|
+
var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
appearances: {},
|
|
16
|
+
tokens: {
|
|
17
|
+
borderColor: _paletteAllium.default.color.greyCloud,
|
|
18
|
+
borderWidth: _paletteAllium.default.border.border1,
|
|
19
|
+
borderStyle: _rn.default.borderStyle.solid
|
|
20
|
+
},
|
|
21
|
+
rules: []
|
|
22
|
+
};
|
|
23
|
+
exports.default = _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
|
|
9
|
+
|
|
10
|
+
var _schema = require("@telus-uds/system-themes/schema");
|
|
11
|
+
|
|
12
|
+
var _caretUpIcon = _interopRequireDefault(require("@telus-uds/palette-allium/build/rn/icons/caret-up.icon.svg"));
|
|
13
|
+
|
|
14
|
+
var _caretDownIcon = _interopRequireDefault(require("@telus-uds/palette-allium/build/rn/icons/caret-down.icon.svg"));
|
|
15
|
+
|
|
16
|
+
var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
var _default = {
|
|
21
|
+
appearances: {
|
|
22
|
+
expanded: _schema.appearances.ExpandCollapseControl.expanded
|
|
23
|
+
},
|
|
24
|
+
tokens: {
|
|
25
|
+
icon: _caretDownIcon.default,
|
|
26
|
+
iconColor: _paletteAllium.default.color.greenAccessible,
|
|
27
|
+
iconSize: _paletteAllium.default.size.size24,
|
|
28
|
+
iconGap: _paletteAllium.default.size.size8,
|
|
29
|
+
iconPosition: _rn.default.position.left,
|
|
30
|
+
verticalAlign: _rn.default.verticalAlign.top,
|
|
31
|
+
justifyContent: _rn.default.flexJustifyContent.flexStart,
|
|
32
|
+
paddingLeft: _paletteAllium.default.size.size8,
|
|
33
|
+
paddingRight: _paletteAllium.default.size.size16,
|
|
34
|
+
paddingTop: _paletteAllium.default.size.size16,
|
|
35
|
+
paddingBottom: _paletteAllium.default.size.size16,
|
|
36
|
+
borderWidth: _rn.default.border.zero,
|
|
37
|
+
borderColor: _paletteAllium.default.color.transparent,
|
|
38
|
+
backgroundColor: _paletteAllium.default.color.transparent
|
|
39
|
+
},
|
|
40
|
+
rules: [{
|
|
41
|
+
if: {
|
|
42
|
+
expanded: true
|
|
43
|
+
},
|
|
44
|
+
tokens: {
|
|
45
|
+
icon: _caretUpIcon.default
|
|
46
|
+
}
|
|
47
|
+
}]
|
|
48
|
+
};
|
|
49
|
+
exports.default = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = {
|
|
13
|
+
appearances: {},
|
|
14
|
+
tokens: {
|
|
15
|
+
// animate slightly faster when closing
|
|
16
|
+
expandDuration: _paletteAllium.default.duration.duration300,
|
|
17
|
+
collapseDuration: _paletteAllium.default.duration.duration250,
|
|
18
|
+
contentPaddingLeft: _paletteAllium.default.size.size40,
|
|
19
|
+
contentPaddingRight: _paletteAllium.default.size.size16,
|
|
20
|
+
contentPaddingTop: _paletteAllium.default.size.size0,
|
|
21
|
+
contentPaddingBottom: _paletteAllium.default.size.size16
|
|
22
|
+
},
|
|
23
|
+
rules: []
|
|
24
|
+
};
|
|
25
|
+
exports.default = _default;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
|
|
9
|
+
|
|
10
|
+
var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
|
|
11
|
+
|
|
12
|
+
var _schema = require("@telus-uds/system-themes/schema");
|
|
13
|
+
|
|
14
|
+
var _notificationErrorIcon = _interopRequireDefault(require("@telus-uds/palette-allium/build/rn/icons/notification-error.icon.svg"));
|
|
15
|
+
|
|
16
|
+
var _notificationSuccessIcon = _interopRequireDefault(require("@telus-uds/palette-allium/build/rn/icons/notification-success.icon.svg"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
var _default = {
|
|
21
|
+
appearances: {
|
|
22
|
+
validation: _schema.appearances.Feedback.validation,
|
|
23
|
+
icon: {
|
|
24
|
+
values: [true],
|
|
25
|
+
type: 'variant'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
tokens: {
|
|
29
|
+
backgroundColor: _paletteAllium.default.color.greyAthens,
|
|
30
|
+
borderColor: _paletteAllium.default.color.greyMystic,
|
|
31
|
+
borderWidth: _paletteAllium.default.border.border1,
|
|
32
|
+
borderRadius: _paletteAllium.default.radius.radius4,
|
|
33
|
+
paddingTop: _paletteAllium.default.size.size12,
|
|
34
|
+
paddingBottom: _paletteAllium.default.size.size12,
|
|
35
|
+
paddingLeft: _paletteAllium.default.size.size16,
|
|
36
|
+
paddingRight: _paletteAllium.default.size.size16,
|
|
37
|
+
space: _rn.default.integer[2],
|
|
38
|
+
color: _paletteAllium.default.color.greyThunder,
|
|
39
|
+
// TODO: replace with font token
|
|
40
|
+
fontName: Object.keys(_paletteAllium.default.font)[0],
|
|
41
|
+
fontWeight: '400',
|
|
42
|
+
// font: palette.font.HelveticaNow[400]
|
|
43
|
+
lineHeight: _paletteAllium.default.lineHeight.ratio3to2,
|
|
44
|
+
titleFontSize: _paletteAllium.default.fontSize.size16,
|
|
45
|
+
contentFontSize: _paletteAllium.default.fontSize.size14,
|
|
46
|
+
icon: _rn.default.icon.none,
|
|
47
|
+
iconSize: _paletteAllium.default.fontSize.size24,
|
|
48
|
+
iconColor: _paletteAllium.default.color.transparent,
|
|
49
|
+
iconGap: _paletteAllium.default.size.size8
|
|
50
|
+
},
|
|
51
|
+
rules: [{
|
|
52
|
+
if: {
|
|
53
|
+
validation: 'success'
|
|
54
|
+
},
|
|
55
|
+
tokens: {
|
|
56
|
+
backgroundColor: _paletteAllium.default.color.greenPanache,
|
|
57
|
+
borderColor: _paletteAllium.default.color.greenPanache,
|
|
58
|
+
color: _paletteAllium.default.color.greenDarkFern
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
if: {
|
|
62
|
+
validation: 'error'
|
|
63
|
+
},
|
|
64
|
+
tokens: {
|
|
65
|
+
backgroundColor: _paletteAllium.default.color.redLight,
|
|
66
|
+
borderColor: _paletteAllium.default.color.redLight,
|
|
67
|
+
color: _paletteAllium.default.color.red
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
if: {
|
|
71
|
+
validation: 'success',
|
|
72
|
+
icon: true
|
|
73
|
+
},
|
|
74
|
+
tokens: {
|
|
75
|
+
icon: _notificationSuccessIcon.default,
|
|
76
|
+
iconColor: _paletteAllium.default.color.greenAccessible
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
if: {
|
|
80
|
+
validation: 'error',
|
|
81
|
+
icon: true
|
|
82
|
+
},
|
|
83
|
+
tokens: {
|
|
84
|
+
icon: _notificationErrorIcon.default,
|
|
85
|
+
iconColor: _paletteAllium.default.color.red
|
|
86
|
+
}
|
|
87
|
+
}]
|
|
88
|
+
};
|
|
89
|
+
exports.default = _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
|
|
9
|
+
|
|
10
|
+
var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
appearances: {
|
|
16
|
+
size: {
|
|
17
|
+
values: ['small'],
|
|
18
|
+
type: 'variant'
|
|
19
|
+
},
|
|
20
|
+
rank: {
|
|
21
|
+
values: ['primary'],
|
|
22
|
+
type: 'variant'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
tokens: {
|
|
26
|
+
size: _paletteAllium.default.size.size24,
|
|
27
|
+
color: _paletteAllium.default.color.greyCharcoal,
|
|
28
|
+
translateX: _rn.default.size.zero,
|
|
29
|
+
translateY: _rn.default.size.zero
|
|
30
|
+
},
|
|
31
|
+
rules: [{
|
|
32
|
+
if: {
|
|
33
|
+
size: 'small'
|
|
34
|
+
},
|
|
35
|
+
tokens: {
|
|
36
|
+
size: _paletteAllium.default.size.size20
|
|
37
|
+
}
|
|
38
|
+
}, {
|
|
39
|
+
if: {
|
|
40
|
+
rank: 'primary'
|
|
41
|
+
},
|
|
42
|
+
tokens: {
|
|
43
|
+
color: _paletteAllium.default.color.purpleTelus
|
|
44
|
+
}
|
|
45
|
+
}]
|
|
46
|
+
};
|
|
47
|
+
exports.default = _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = {
|
|
13
|
+
appearances: {},
|
|
14
|
+
tokens: {
|
|
15
|
+
gap: _paletteAllium.default.size.size8,
|
|
16
|
+
color: _paletteAllium.default.color.greyCharcoal,
|
|
17
|
+
// TODO: replace with font token
|
|
18
|
+
fontName: Object.keys(_paletteAllium.default.font)[0],
|
|
19
|
+
fontWeight: '700',
|
|
20
|
+
// font: palette.font.HelveticaNow[700]
|
|
21
|
+
fontSize: _paletteAllium.default.fontSize.size16,
|
|
22
|
+
lineHeight: _paletteAllium.default.lineHeight.ratio3to2,
|
|
23
|
+
hintColor: _paletteAllium.default.color.greyCharcoal,
|
|
24
|
+
// TODO: replace with font token
|
|
25
|
+
hintFontName: Object.keys(_paletteAllium.default.font)[0],
|
|
26
|
+
hintFontWeight: '400',
|
|
27
|
+
// hintFont: palette.font.HelveticaNow[700],
|
|
28
|
+
hintFontSize: _paletteAllium.default.fontSize.size14,
|
|
29
|
+
hintLineHeight: _paletteAllium.default.lineHeight.ratio7to5
|
|
30
|
+
},
|
|
31
|
+
rules: []
|
|
32
|
+
};
|
|
33
|
+
exports.default = _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = {
|
|
13
|
+
appearances: {},
|
|
14
|
+
tokens: {
|
|
15
|
+
space: _rn.default.integer[1]
|
|
16
|
+
},
|
|
17
|
+
rules: []
|
|
18
|
+
};
|
|
19
|
+
exports.default = _default;
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
|
|
9
|
+
|
|
10
|
+
var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
|
|
11
|
+
|
|
12
|
+
var _schema = require("@telus-uds/system-themes/schema");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
appearances: {
|
|
18
|
+
size: {
|
|
19
|
+
description: 'Text sizes for block links; similar but not always identical to Typography sizes.',
|
|
20
|
+
values: ['large', 'small', 'micro'],
|
|
21
|
+
type: 'variant'
|
|
22
|
+
},
|
|
23
|
+
alternative: {
|
|
24
|
+
description: 'Replaces the default green colour with a more subtle grey.',
|
|
25
|
+
values: [true],
|
|
26
|
+
type: 'variant'
|
|
27
|
+
},
|
|
28
|
+
inverse: {
|
|
29
|
+
description: 'Styles the link white for use on dark backgrounds.',
|
|
30
|
+
values: [true],
|
|
31
|
+
type: 'variant'
|
|
32
|
+
},
|
|
33
|
+
light: {
|
|
34
|
+
description: 'A lighter grey variant, used to lower the emphasis on a given Link (e.g. in Breadcrumbs)',
|
|
35
|
+
values: [true],
|
|
36
|
+
type: 'variant'
|
|
37
|
+
},
|
|
38
|
+
iconPosition: _schema.appearances.Link.iconPosition,
|
|
39
|
+
focus: _schema.appearances.Link.focus,
|
|
40
|
+
hover: _schema.appearances.Link.hover,
|
|
41
|
+
pressed: _schema.appearances.Link.pressed
|
|
42
|
+
},
|
|
43
|
+
tokens: {
|
|
44
|
+
color: _paletteAllium.default.color.greenAccessible,
|
|
45
|
+
textLine: _rn.default.textLine.underline,
|
|
46
|
+
textLineStyle: _rn.default.textLineStyle.solid,
|
|
47
|
+
outerBorderColor: _paletteAllium.default.color.transparent,
|
|
48
|
+
outerBorderWidth: _paletteAllium.default.border.border2,
|
|
49
|
+
outerBorderGap: _paletteAllium.default.border.border2,
|
|
50
|
+
outerBorderRadius: _paletteAllium.default.radius.radius4,
|
|
51
|
+
outerBorderOutline: _rn.default.borderStyle.none,
|
|
52
|
+
// Same as default size Typography
|
|
53
|
+
// TODO replace with single font token
|
|
54
|
+
blockFontWeight: '400',
|
|
55
|
+
blockFontName: Object.keys(_paletteAllium.default.font)[0],
|
|
56
|
+
// bockFont: palette.font.HelveticaNow[400]
|
|
57
|
+
blockFontSize: _paletteAllium.default.fontSize.size16,
|
|
58
|
+
blockLineHeight: _paletteAllium.default.lineHeight.ratio3to2,
|
|
59
|
+
alignSelf: _rn.default.flexAlign.flexStart,
|
|
60
|
+
icon: _rn.default.icon.none,
|
|
61
|
+
iconSize: _paletteAllium.default.fontSize.size24,
|
|
62
|
+
iconSpace: _rn.default.integer[1],
|
|
63
|
+
iconTranslateX: _rn.default.size.zero,
|
|
64
|
+
iconTranslateY: _rn.default.size.zero
|
|
65
|
+
},
|
|
66
|
+
rules: [{
|
|
67
|
+
if: {
|
|
68
|
+
iconPosition: 'left'
|
|
69
|
+
},
|
|
70
|
+
tokens: {
|
|
71
|
+
iconSpace: _rn.default.integer[2]
|
|
72
|
+
}
|
|
73
|
+
}, // Initial interaction states
|
|
74
|
+
{
|
|
75
|
+
if: {
|
|
76
|
+
focus: true
|
|
77
|
+
},
|
|
78
|
+
tokens: {
|
|
79
|
+
outerBorderColor: _paletteAllium.default.color.greenAccessible,
|
|
80
|
+
outerBorderOutline: _rn.default.borderStyle.none
|
|
81
|
+
}
|
|
82
|
+
}, {
|
|
83
|
+
if: {
|
|
84
|
+
hover: true
|
|
85
|
+
},
|
|
86
|
+
tokens: {
|
|
87
|
+
textLine: _rn.default.textLine.none,
|
|
88
|
+
color: _paletteAllium.default.color.greenSanFelix
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
if: {
|
|
92
|
+
pressed: true
|
|
93
|
+
},
|
|
94
|
+
tokens: {
|
|
95
|
+
textLine: _rn.default.textLine.none,
|
|
96
|
+
color: _paletteAllium.default.color.greenDarkFern
|
|
97
|
+
}
|
|
98
|
+
}, {
|
|
99
|
+
if: {
|
|
100
|
+
pressed: true,
|
|
101
|
+
focus: true
|
|
102
|
+
},
|
|
103
|
+
tokens: {
|
|
104
|
+
outerBorderColor: _paletteAllium.default.color.greenDarkFern
|
|
105
|
+
}
|
|
106
|
+
}, // block link sizes
|
|
107
|
+
{
|
|
108
|
+
if: {
|
|
109
|
+
size: 'large'
|
|
110
|
+
},
|
|
111
|
+
tokens: {
|
|
112
|
+
blockFontSize: _paletteAllium.default.fontSize.size20,
|
|
113
|
+
iconSize: _paletteAllium.default.fontSize.size24,
|
|
114
|
+
blockLineHeight: _paletteAllium.default.lineHeight.ratio8to5
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
if: {
|
|
118
|
+
size: 'small'
|
|
119
|
+
},
|
|
120
|
+
tokens: {
|
|
121
|
+
blockFontSize: _paletteAllium.default.fontSize.size14,
|
|
122
|
+
iconSize: _paletteAllium.default.fontSize.size20,
|
|
123
|
+
blockLineHeight: _paletteAllium.default.lineHeight.ratio10to7
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
if: {
|
|
127
|
+
size: 'micro'
|
|
128
|
+
},
|
|
129
|
+
tokens: {
|
|
130
|
+
blockFontSize: _paletteAllium.default.fontSize.size12,
|
|
131
|
+
// TODO replace this with font token
|
|
132
|
+
blockFontWeight: '500',
|
|
133
|
+
// blockFont: palette.font.HelveticaNow[500]
|
|
134
|
+
iconSize: _paletteAllium.default.fontSize.size16,
|
|
135
|
+
blockLineHeight: _paletteAllium.default.lineHeight.ratio4to3
|
|
136
|
+
}
|
|
137
|
+
}, // "alternative" variant
|
|
138
|
+
{
|
|
139
|
+
if: {
|
|
140
|
+
alternative: true
|
|
141
|
+
},
|
|
142
|
+
tokens: {
|
|
143
|
+
color: _paletteAllium.default.color.greyThunder
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
if: {
|
|
147
|
+
alternative: true,
|
|
148
|
+
focus: true
|
|
149
|
+
},
|
|
150
|
+
tokens: {
|
|
151
|
+
color: _paletteAllium.default.color.greyCharcoal,
|
|
152
|
+
outerBorderColor: _paletteAllium.default.color.greyCharcoal
|
|
153
|
+
}
|
|
154
|
+
}, {
|
|
155
|
+
if: {
|
|
156
|
+
alternative: true,
|
|
157
|
+
hover: true
|
|
158
|
+
},
|
|
159
|
+
tokens: {
|
|
160
|
+
color: _paletteAllium.default.color.greyThunder
|
|
161
|
+
}
|
|
162
|
+
}, {
|
|
163
|
+
if: {
|
|
164
|
+
alternative: true,
|
|
165
|
+
pressed: true
|
|
166
|
+
},
|
|
167
|
+
tokens: {
|
|
168
|
+
color: _paletteAllium.default.color.greyThunder
|
|
169
|
+
}
|
|
170
|
+
}, // "inverse" variant
|
|
171
|
+
{
|
|
172
|
+
if: {
|
|
173
|
+
inverse: true
|
|
174
|
+
},
|
|
175
|
+
tokens: {
|
|
176
|
+
color: _paletteAllium.default.color.white
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
if: {
|
|
180
|
+
inverse: true,
|
|
181
|
+
hover: true
|
|
182
|
+
},
|
|
183
|
+
tokens: {
|
|
184
|
+
color: _paletteAllium.default.color.greyAthens
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
if: {
|
|
188
|
+
inverse: true,
|
|
189
|
+
focus: true
|
|
190
|
+
},
|
|
191
|
+
tokens: {
|
|
192
|
+
outerBorderColor: _paletteAllium.default.color.white,
|
|
193
|
+
outerBorderOutline: _rn.default.borderStyle.none
|
|
194
|
+
}
|
|
195
|
+
}, {
|
|
196
|
+
if: {
|
|
197
|
+
inverse: true,
|
|
198
|
+
pressed: true
|
|
199
|
+
},
|
|
200
|
+
tokens: {
|
|
201
|
+
color: _paletteAllium.default.color.greyMystic
|
|
202
|
+
}
|
|
203
|
+
}, {
|
|
204
|
+
if: {
|
|
205
|
+
inverse: true,
|
|
206
|
+
pressed: true,
|
|
207
|
+
focus: true
|
|
208
|
+
},
|
|
209
|
+
tokens: {
|
|
210
|
+
color: _paletteAllium.default.color.greyMystic,
|
|
211
|
+
outerBorderColor: _paletteAllium.default.color.greyMystic
|
|
212
|
+
}
|
|
213
|
+
}, // "light" variant
|
|
214
|
+
{
|
|
215
|
+
if: {
|
|
216
|
+
light: true
|
|
217
|
+
},
|
|
218
|
+
tokens: {
|
|
219
|
+
color: _paletteAllium.default.color.greyShuttle
|
|
220
|
+
}
|
|
221
|
+
}, {
|
|
222
|
+
if: {
|
|
223
|
+
light: true,
|
|
224
|
+
focus: true
|
|
225
|
+
},
|
|
226
|
+
tokens: {
|
|
227
|
+
color: _paletteAllium.default.color.greyShuttle,
|
|
228
|
+
outerBorderColor: _paletteAllium.default.color.greyShuttle
|
|
229
|
+
}
|
|
230
|
+
}, {
|
|
231
|
+
if: {
|
|
232
|
+
light: true,
|
|
233
|
+
hover: true
|
|
234
|
+
},
|
|
235
|
+
tokens: {
|
|
236
|
+
color: _paletteAllium.default.color.greyCharcoal,
|
|
237
|
+
textLine: _rn.default.textLine.none
|
|
238
|
+
}
|
|
239
|
+
}]
|
|
240
|
+
};
|
|
241
|
+
exports.default = _default;
|