@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,26 @@
|
|
|
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
|
+
const Skeleton = {
|
|
13
|
+
appearances: {},
|
|
14
|
+
tokens: {
|
|
15
|
+
color: _paletteAllium.default.color.greyCloud,
|
|
16
|
+
size: _paletteAllium.default.border.border3,
|
|
17
|
+
radius: _paletteAllium.default.size.size120,
|
|
18
|
+
baseWidth: _paletteAllium.default.size.size40,
|
|
19
|
+
characters: _paletteAllium.default.size.size10,
|
|
20
|
+
spaceBetweenLines: _paletteAllium.default.size.size2,
|
|
21
|
+
squareRadius: _paletteAllium.default.size.size4
|
|
22
|
+
},
|
|
23
|
+
rules: []
|
|
24
|
+
};
|
|
25
|
+
var _default = Skeleton;
|
|
26
|
+
exports.default = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
// This makes the React Native defaults explicit and allows them to be overridden with tokens
|
|
13
|
+
var _default = {
|
|
14
|
+
appearances: {},
|
|
15
|
+
tokens: {
|
|
16
|
+
alignItems: _rn.default.flexAlign.stretch,
|
|
17
|
+
justifyContent: _rn.default.flexJustifyContent.flexStart,
|
|
18
|
+
flexGrow: _rn.default.integer[0]
|
|
19
|
+
},
|
|
20
|
+
rules: []
|
|
21
|
+
};
|
|
22
|
+
exports.default = _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
var _schema = require("@telus-uds/system-themes/schema");
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
appearances: {
|
|
16
|
+
viewport: _schema.appearances.system.viewport
|
|
17
|
+
},
|
|
18
|
+
tokens: {
|
|
19
|
+
space: _rn.default.integer[1],
|
|
20
|
+
direction: _rn.default.direction.row,
|
|
21
|
+
alignItems: _rn.default.flexAlign.center,
|
|
22
|
+
justifyContent: _rn.default.flexJustifyContent.flexStart,
|
|
23
|
+
flexGrow: _rn.default.integer[0]
|
|
24
|
+
},
|
|
25
|
+
rules: [{
|
|
26
|
+
if: {
|
|
27
|
+
viewport: ['lg', 'xl']
|
|
28
|
+
},
|
|
29
|
+
tokens: {
|
|
30
|
+
space: _rn.default.integer[3]
|
|
31
|
+
}
|
|
32
|
+
}]
|
|
33
|
+
};
|
|
34
|
+
exports.default = _default;
|
|
@@ -0,0 +1,133 @@
|
|
|
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 _addIcon = _interopRequireDefault(require("@telus-uds/palette-allium/build/rn/icons/add.icon.svg"));
|
|
15
|
+
|
|
16
|
+
var _closeIcon = _interopRequireDefault(require("@telus-uds/palette-allium/build/rn/icons/close.icon.svg"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
// console.log({ addIcon, closeIcon, size16: palette.size.size16 })
|
|
21
|
+
var _default = {
|
|
22
|
+
appearances: {
|
|
23
|
+
hover: _schema.appearances.TagsItem.hover,
|
|
24
|
+
focus: _schema.appearances.TagsItem.focus,
|
|
25
|
+
pressed: _schema.appearances.TagsItem.pressed,
|
|
26
|
+
selected: _schema.appearances.TagsItem.selected,
|
|
27
|
+
inactive: _schema.appearances.TagsItem.inactive
|
|
28
|
+
},
|
|
29
|
+
tokens: {
|
|
30
|
+
// Icon tokens
|
|
31
|
+
iconSize: _paletteAllium.default.size.size16,
|
|
32
|
+
iconColor: _paletteAllium.default.color.greyThunder,
|
|
33
|
+
iconTranslateX: _rn.default.integer[0],
|
|
34
|
+
iconTranslateY: _rn.default.integer[0],
|
|
35
|
+
icon: _addIcon.default,
|
|
36
|
+
iconPosition: _rn.default.position.right,
|
|
37
|
+
iconSpace: _rn.default.integer[2],
|
|
38
|
+
iconBackground: _paletteAllium.default.color.greyAthens,
|
|
39
|
+
iconBorderRadius: _paletteAllium.default.radius.pill32,
|
|
40
|
+
iconAlignSelf: _rn.default.flexAlign.center,
|
|
41
|
+
iconPadding: _paletteAllium.default.size.size2,
|
|
42
|
+
// Button tokens, very similar to ButtonGroup
|
|
43
|
+
borderColor: _paletteAllium.default.color.greyCloud,
|
|
44
|
+
borderWidth: _paletteAllium.default.border.border1,
|
|
45
|
+
borderRadius: _paletteAllium.default.radius.pill32,
|
|
46
|
+
shadow: _rn.default.shadow.none,
|
|
47
|
+
fontSize: _paletteAllium.default.fontSize.size14,
|
|
48
|
+
color: _paletteAllium.default.color.greyShuttle,
|
|
49
|
+
lineHeight: _paletteAllium.default.lineHeight.ratio10to7,
|
|
50
|
+
textAlign: _rn.default.flexJustifyContent.center,
|
|
51
|
+
alignSelf: _rn.default.flexAlign.center,
|
|
52
|
+
// TODO: replace with font token
|
|
53
|
+
fontName: Object.keys(_paletteAllium.default.font)[0],
|
|
54
|
+
fontWeight: '700',
|
|
55
|
+
// font: palette.font.HelveticaNow['700'],
|
|
56
|
+
backgroundColor: _paletteAllium.default.color.white,
|
|
57
|
+
opacity: _rn.default.opacity.opaque,
|
|
58
|
+
paddingLeft: _paletteAllium.default.size.size16,
|
|
59
|
+
paddingRight: _paletteAllium.default.size.size8,
|
|
60
|
+
paddingTop: _paletteAllium.default.size.size8,
|
|
61
|
+
paddingBottom: _paletteAllium.default.size.size8,
|
|
62
|
+
width: _rn.default.size.none,
|
|
63
|
+
minWidth: _rn.default.size.zero,
|
|
64
|
+
outerBorderColor: _paletteAllium.default.color.transparent,
|
|
65
|
+
outerBorderWidth: _paletteAllium.default.border.border2,
|
|
66
|
+
outerBorderGap: _paletteAllium.default.border.border2,
|
|
67
|
+
outerBorderRadius: _paletteAllium.default.radius.pill32,
|
|
68
|
+
outerBackgroundColor: _paletteAllium.default.color.transparent
|
|
69
|
+
},
|
|
70
|
+
rules: [{
|
|
71
|
+
if: {
|
|
72
|
+
focus: true
|
|
73
|
+
},
|
|
74
|
+
tokens: {
|
|
75
|
+
borderColor: _paletteAllium.default.color.purpleTelus,
|
|
76
|
+
borderWidth: _paletteAllium.default.border.border3,
|
|
77
|
+
color: _paletteAllium.default.color.greyCharcoal,
|
|
78
|
+
outerBorderColor: _paletteAllium.default.color.transparent
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
if: {
|
|
82
|
+
hover: true
|
|
83
|
+
},
|
|
84
|
+
tokens: {
|
|
85
|
+
borderWidth: _paletteAllium.default.border.border3
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
if: {
|
|
89
|
+
selected: true
|
|
90
|
+
},
|
|
91
|
+
tokens: {
|
|
92
|
+
borderWidth: _paletteAllium.default.border.none,
|
|
93
|
+
backgroundColor: _paletteAllium.default.color.purpleTelus,
|
|
94
|
+
color: _paletteAllium.default.color.white,
|
|
95
|
+
icon: _closeIcon.default,
|
|
96
|
+
iconColor: _paletteAllium.default.color.white,
|
|
97
|
+
iconBackground: _paletteAllium.default.color.purpleDeluge
|
|
98
|
+
}
|
|
99
|
+
}, {
|
|
100
|
+
if: {
|
|
101
|
+
pressed: true
|
|
102
|
+
},
|
|
103
|
+
tokens: {
|
|
104
|
+
borderWidth: _paletteAllium.default.border.none,
|
|
105
|
+
backgroundColor: _paletteAllium.default.color.greyShuttle,
|
|
106
|
+
color: _paletteAllium.default.color.white,
|
|
107
|
+
iconColor: _paletteAllium.default.color.white,
|
|
108
|
+
iconBackground: _paletteAllium.default.color.greyCharcoal
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
if: {
|
|
112
|
+
focus: true,
|
|
113
|
+
pressed: true
|
|
114
|
+
},
|
|
115
|
+
tokens: {
|
|
116
|
+
borderWidth: _paletteAllium.default.border.none,
|
|
117
|
+
backgroundColor: _paletteAllium.default.color.purpleTelus,
|
|
118
|
+
color: _paletteAllium.default.color.white,
|
|
119
|
+
iconColor: _paletteAllium.default.color.white,
|
|
120
|
+
iconBackground: _paletteAllium.default.color.purpleDark
|
|
121
|
+
}
|
|
122
|
+
}, {
|
|
123
|
+
if: {
|
|
124
|
+
inactive: true
|
|
125
|
+
},
|
|
126
|
+
tokens: {
|
|
127
|
+
backgroundColor: _paletteAllium.default.color.greyCloud,
|
|
128
|
+
color: _paletteAllium.default.color.white,
|
|
129
|
+
borderWidth: _rn.default.border.zero
|
|
130
|
+
}
|
|
131
|
+
}]
|
|
132
|
+
};
|
|
133
|
+
exports.default = _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
minLines: _rn.default.integer[5],
|
|
16
|
+
maxLines: _rn.default.integer[8]
|
|
17
|
+
},
|
|
18
|
+
rules: []
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
@@ -0,0 +1,97 @@
|
|
|
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.TextInput.validation,
|
|
23
|
+
hover: _schema.appearances.TextInput.hover,
|
|
24
|
+
focus: _schema.appearances.TextInput.focus,
|
|
25
|
+
inactive: _schema.appearances.TextInput.inactive
|
|
26
|
+
},
|
|
27
|
+
tokens: {
|
|
28
|
+
backgroundColor: _paletteAllium.default.color.white,
|
|
29
|
+
color: _paletteAllium.default.color.greyCharcoal,
|
|
30
|
+
borderWidth: _paletteAllium.default.border.border1,
|
|
31
|
+
borderColor: _paletteAllium.default.color.greyShuttle,
|
|
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
|
+
outerBackgroundColor: _paletteAllium.default.color.transparent,
|
|
38
|
+
outerBorderWidth: _paletteAllium.default.border.border2,
|
|
39
|
+
outerBorderColor: _paletteAllium.default.color.transparent,
|
|
40
|
+
outerBorderRadius: _paletteAllium.default.radius.radius4,
|
|
41
|
+
// TODO: replace this with font token
|
|
42
|
+
fontName: Object.keys(_paletteAllium.default.font)[0],
|
|
43
|
+
fontWeight: '400',
|
|
44
|
+
// font: palette.font.HelveticaNow[400]
|
|
45
|
+
fontSize: _paletteAllium.default.fontSize.size16,
|
|
46
|
+
lineHeight: _paletteAllium.default.lineHeight.ratio3to2,
|
|
47
|
+
icon: _rn.default.icon.none,
|
|
48
|
+
iconSize: _paletteAllium.default.fontSize.size24,
|
|
49
|
+
iconColor: _paletteAllium.default.color.transparent
|
|
50
|
+
},
|
|
51
|
+
rules: [{
|
|
52
|
+
if: {
|
|
53
|
+
hover: true,
|
|
54
|
+
inactive: null
|
|
55
|
+
},
|
|
56
|
+
tokens: {
|
|
57
|
+
outerBorderColor: _paletteAllium.default.color.greyMystic,
|
|
58
|
+
outerBackgroundColor: _paletteAllium.default.color.greyMystic
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
if: {
|
|
62
|
+
validation: 'success'
|
|
63
|
+
},
|
|
64
|
+
tokens: {
|
|
65
|
+
borderColor: _paletteAllium.default.color.greenAccessible,
|
|
66
|
+
icon: _notificationSuccessIcon.default,
|
|
67
|
+
iconColor: _paletteAllium.default.color.greenAccessible
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
if: {
|
|
71
|
+
validation: 'error'
|
|
72
|
+
},
|
|
73
|
+
tokens: {
|
|
74
|
+
borderColor: _paletteAllium.default.color.red,
|
|
75
|
+
icon: _notificationErrorIcon.default,
|
|
76
|
+
iconColor: _paletteAllium.default.color.red
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
if: {
|
|
80
|
+
focus: true
|
|
81
|
+
},
|
|
82
|
+
tokens: {
|
|
83
|
+
borderColor: _paletteAllium.default.color.purpleDeluge,
|
|
84
|
+
borderWidth: _paletteAllium.default.border.border3,
|
|
85
|
+
icon: _rn.default.icon.none
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
if: {
|
|
89
|
+
inactive: true
|
|
90
|
+
},
|
|
91
|
+
tokens: {
|
|
92
|
+
backgroundColor: _paletteAllium.default.color.greyAthens,
|
|
93
|
+
borderColor: _paletteAllium.default.color.greyAthens
|
|
94
|
+
}
|
|
95
|
+
}]
|
|
96
|
+
};
|
|
97
|
+
exports.default = _default;
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
focus: _schema.appearances.ToggleSwitch.focus,
|
|
21
|
+
hover: _schema.appearances.ToggleSwitch.hover,
|
|
22
|
+
pressed: _schema.appearances.ToggleSwitch.pressed,
|
|
23
|
+
inactive: _schema.appearances.ToggleSwitch.inactive,
|
|
24
|
+
selected: _schema.appearances.ToggleSwitch.selected
|
|
25
|
+
},
|
|
26
|
+
tokens: {
|
|
27
|
+
borderColor: _paletteAllium.default.color.transparent,
|
|
28
|
+
borderWidth: _paletteAllium.default.border.none,
|
|
29
|
+
borderRadius: _paletteAllium.default.radius.pill32,
|
|
30
|
+
outerBorderColor: _paletteAllium.default.color.transparent,
|
|
31
|
+
outerBorderWidth: _paletteAllium.default.border.none,
|
|
32
|
+
outerBorderGap: _paletteAllium.default.size.size0,
|
|
33
|
+
outerBorderRadius: _paletteAllium.default.radius.pill32,
|
|
34
|
+
outerBackgroundColor: _paletteAllium.default.color.transparent,
|
|
35
|
+
backgroundColor: _paletteAllium.default.color.greyShuttle,
|
|
36
|
+
opacity: _rn.default.opacity.opaque,
|
|
37
|
+
paddingLeft: _rn.default.size.zero,
|
|
38
|
+
paddingRight: _rn.default.size.zero,
|
|
39
|
+
paddingTop: _rn.default.size.zero,
|
|
40
|
+
paddingBottom: _rn.default.size.zero,
|
|
41
|
+
shadow: _paletteAllium.default.shadow.surfaceInset,
|
|
42
|
+
alignSelf: 'flex-start',
|
|
43
|
+
icon: _rn.default.icon.none,
|
|
44
|
+
width: _paletteAllium.default.size.size40,
|
|
45
|
+
trackBorderWidth: _paletteAllium.default.border.border3,
|
|
46
|
+
trackBorderColor: _paletteAllium.default.color.transparent,
|
|
47
|
+
trackBorderRadius: _paletteAllium.default.radius.pill32,
|
|
48
|
+
iconSize: _paletteAllium.default.size.size12,
|
|
49
|
+
iconColor: _paletteAllium.default.color.greyShuttle,
|
|
50
|
+
switchSize: _paletteAllium.default.size.size16,
|
|
51
|
+
switchColor: _paletteAllium.default.color.white,
|
|
52
|
+
switchBorderColor: _paletteAllium.default.color.transparent,
|
|
53
|
+
switchBorderWidth: _paletteAllium.default.border.none,
|
|
54
|
+
switchBorderRadius: _paletteAllium.default.radius.pill32,
|
|
55
|
+
switchShadow: _paletteAllium.default.shadow.surfaceRaised
|
|
56
|
+
},
|
|
57
|
+
rules: [{
|
|
58
|
+
if: {
|
|
59
|
+
hover: true
|
|
60
|
+
},
|
|
61
|
+
tokens: {
|
|
62
|
+
backgroundColor: _paletteAllium.default.color.greyCharcoal
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
if: {
|
|
66
|
+
pressed: true
|
|
67
|
+
},
|
|
68
|
+
tokens: {
|
|
69
|
+
backgroundColor: _paletteAllium.default.color.greyThunder
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
if: {
|
|
73
|
+
focus: true
|
|
74
|
+
},
|
|
75
|
+
tokens: {
|
|
76
|
+
outerBackgroundColor: _paletteAllium.default.color.white,
|
|
77
|
+
outerBorderGap: _paletteAllium.default.border.border3,
|
|
78
|
+
outerBorderWidth: _paletteAllium.default.border.border2,
|
|
79
|
+
outerBorderColor: _paletteAllium.default.color.greyShuttle
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
if: {
|
|
83
|
+
focus: true,
|
|
84
|
+
pressed: true
|
|
85
|
+
},
|
|
86
|
+
tokens: {
|
|
87
|
+
outerBorderColor: _paletteAllium.default.color.greyThunder
|
|
88
|
+
}
|
|
89
|
+
}, {
|
|
90
|
+
if: {
|
|
91
|
+
selected: true
|
|
92
|
+
},
|
|
93
|
+
tokens: {
|
|
94
|
+
icon: _checkmarkIcon.default,
|
|
95
|
+
backgroundColor: _paletteAllium.default.color.greenAccessible,
|
|
96
|
+
iconColor: _paletteAllium.default.color.greenAccessible
|
|
97
|
+
}
|
|
98
|
+
}, {
|
|
99
|
+
if: {
|
|
100
|
+
selected: true,
|
|
101
|
+
hover: true
|
|
102
|
+
},
|
|
103
|
+
tokens: {
|
|
104
|
+
backgroundColor: _paletteAllium.default.color.greenSanFelix,
|
|
105
|
+
iconColor: _paletteAllium.default.color.greenSanFelix
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
if: {
|
|
109
|
+
selected: true,
|
|
110
|
+
pressed: true
|
|
111
|
+
},
|
|
112
|
+
tokens: {
|
|
113
|
+
backgroundColor: _paletteAllium.default.color.greenDarkFern,
|
|
114
|
+
iconColor: _paletteAllium.default.color.greenDarkFern
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
if: {
|
|
118
|
+
selected: true,
|
|
119
|
+
focus: true
|
|
120
|
+
},
|
|
121
|
+
tokens: {
|
|
122
|
+
outerBorderColor: _paletteAllium.default.color.greenAccessible
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
if: {
|
|
126
|
+
selected: true,
|
|
127
|
+
focus: true,
|
|
128
|
+
pressed: true
|
|
129
|
+
},
|
|
130
|
+
tokens: {
|
|
131
|
+
outerBorderColor: _paletteAllium.default.color.greenDarkFern
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
if: {
|
|
135
|
+
inactive: true
|
|
136
|
+
},
|
|
137
|
+
tokens: {
|
|
138
|
+
backgroundColor: _paletteAllium.default.color.greyCloud,
|
|
139
|
+
outerBorderColor: _paletteAllium.default.color.greyCloud,
|
|
140
|
+
iconColor: _paletteAllium.default.color.greyShuttle
|
|
141
|
+
}
|
|
142
|
+
}]
|
|
143
|
+
};
|
|
144
|
+
exports.default = _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
inverse: {
|
|
15
|
+
values: [true],
|
|
16
|
+
type: 'variant'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
tokens: {
|
|
20
|
+
backgroundColor: _paletteAllium.default.color.greyThunder,
|
|
21
|
+
paddingTop: _paletteAllium.default.size.size8,
|
|
22
|
+
paddingBottom: _paletteAllium.default.size.size8,
|
|
23
|
+
paddingLeft: _paletteAllium.default.size.size16,
|
|
24
|
+
paddingRight: _paletteAllium.default.size.size16,
|
|
25
|
+
borderRadius: _paletteAllium.default.radius.radius8,
|
|
26
|
+
shadow: _paletteAllium.default.shadow.elevation1,
|
|
27
|
+
color: _paletteAllium.default.color.white,
|
|
28
|
+
fontSize: _paletteAllium.default.fontSize.size14,
|
|
29
|
+
lineHeight: _paletteAllium.default.lineHeight.ratio3to2,
|
|
30
|
+
// TODO: replace with font token
|
|
31
|
+
fontName: Object.keys(_paletteAllium.default.font)[0],
|
|
32
|
+
fontWeight: '400',
|
|
33
|
+
// font: palette.font.HelveticaNow[400]
|
|
34
|
+
arrowWidth: _paletteAllium.default.size.size16,
|
|
35
|
+
arrowBorderRadius: _paletteAllium.default.radius.radius1,
|
|
36
|
+
arrowOffset: _paletteAllium.default.size.size4
|
|
37
|
+
},
|
|
38
|
+
rules: [{
|
|
39
|
+
if: {
|
|
40
|
+
inverse: true
|
|
41
|
+
},
|
|
42
|
+
tokens: {
|
|
43
|
+
backgroundColor: _paletteAllium.default.color.white,
|
|
44
|
+
color: _paletteAllium.default.color.greyCharcoal
|
|
45
|
+
}
|
|
46
|
+
}]
|
|
47
|
+
};
|
|
48
|
+
exports.default = _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
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 _questionIcon = _interopRequireDefault(require("@telus-uds/palette-allium/build/rn/icons/question.icon.svg"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
var _default = {
|
|
19
|
+
appearances: {
|
|
20
|
+
focus: _schema.appearances.TooltipButton.focus,
|
|
21
|
+
hover: _schema.appearances.TooltipButton.hover,
|
|
22
|
+
pressed: _schema.appearances.TooltipButton.pressed,
|
|
23
|
+
inverse: {
|
|
24
|
+
values: [true],
|
|
25
|
+
type: 'variant'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
tokens: {
|
|
29
|
+
outerBorderColor: _paletteAllium.default.color.transparent,
|
|
30
|
+
outerBorderWidth: _paletteAllium.default.border.border1,
|
|
31
|
+
outerBorderGap: _paletteAllium.default.size.size4,
|
|
32
|
+
outerBorderRadius: _paletteAllium.default.radius.pill32,
|
|
33
|
+
borderRadius: _paletteAllium.default.radius.pill32,
|
|
34
|
+
width: _paletteAllium.default.size.size16,
|
|
35
|
+
icon: _questionIcon.default,
|
|
36
|
+
iconScale: _rn.default.iconScale.scale1,
|
|
37
|
+
iconSize: _paletteAllium.default.size.size16,
|
|
38
|
+
iconColor: _paletteAllium.default.color.greyThunder
|
|
39
|
+
},
|
|
40
|
+
rules: [{
|
|
41
|
+
if: {
|
|
42
|
+
inverse: true
|
|
43
|
+
},
|
|
44
|
+
tokens: {
|
|
45
|
+
iconColor: _paletteAllium.default.color.white
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
if: {
|
|
49
|
+
hover: true
|
|
50
|
+
},
|
|
51
|
+
tokens: {
|
|
52
|
+
iconScale: _rn.default.iconScale.scale1_25
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
if: {
|
|
56
|
+
pressed: true
|
|
57
|
+
},
|
|
58
|
+
tokens: {
|
|
59
|
+
iconColor: _paletteAllium.default.color.greyShuttle
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
if: {
|
|
63
|
+
inverse: true,
|
|
64
|
+
pressed: true
|
|
65
|
+
},
|
|
66
|
+
tokens: {
|
|
67
|
+
iconColor: _paletteAllium.default.color.greyCloud
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
if: {
|
|
71
|
+
focus: true
|
|
72
|
+
},
|
|
73
|
+
tokens: {
|
|
74
|
+
outerBorderColor: _paletteAllium.default.color.greyShuttle
|
|
75
|
+
}
|
|
76
|
+
}, {
|
|
77
|
+
if: {
|
|
78
|
+
inverse: true,
|
|
79
|
+
focus: true
|
|
80
|
+
},
|
|
81
|
+
tokens: {
|
|
82
|
+
outerBorderColor: _paletteAllium.default.color.greyCloud
|
|
83
|
+
}
|
|
84
|
+
}]
|
|
85
|
+
};
|
|
86
|
+
exports.default = _default;
|