@telus-uds/theme-allium 0.0.2-prerelease.5 → 0.0.2-prerelease.6
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 +22 -0
- package/build/theme.js +2841 -0
- package/package.json +9 -7
- package/src/components/ActivityIndicator.js +6 -8
- package/src/components/Box.js +11 -14
- package/src/components/Button.js +60 -67
- package/src/components/ButtonGroup.js +8 -11
- package/src/components/ButtonGroupItem.js +64 -54
- package/src/components/Card.js +42 -44
- package/src/components/Checkbox.js +37 -43
- package/src/components/CheckboxGroup.js +8 -0
- package/src/components/ChevronLink.js +7 -14
- package/src/components/Divider.js +5 -7
- package/src/components/ExpandCollapse.js +4 -7
- package/src/components/ExpandCollapseControl.js +17 -24
- package/src/components/ExpandCollapsePanel.js +7 -9
- package/src/components/Feedback.js +31 -40
- package/src/components/Icon.js +8 -10
- package/src/components/InputLabel.js +12 -18
- package/src/components/InputSupports.js +2 -4
- package/src/components/Link.js +59 -67
- package/src/components/List.js +26 -28
- package/src/components/Modal.js +57 -0
- package/src/components/Notification.js +90 -0
- package/src/components/Pagination.js +10 -16
- package/src/components/PaginationPageButton.js +33 -39
- package/src/components/PaginationSideButton.js +43 -52
- package/src/components/Progress.js +13 -0
- package/src/components/ProgressBar.js +31 -0
- package/src/components/Radio.js +47 -42
- package/src/components/RadioCard.js +123 -0
- package/src/components/RadioCardGroup.js +24 -0
- package/src/components/RadioGroup.js +8 -0
- package/src/components/Search.js +57 -0
- package/src/components/SearchButton.js +71 -0
- package/src/components/Select.js +40 -50
- package/src/components/SideNav.js +4 -7
- package/src/components/SideNavItem.js +48 -52
- package/src/components/SideNavItemsGroup.js +16 -23
- package/src/components/Skeleton.js +8 -10
- package/src/components/StackView.js +4 -6
- package/src/components/StepTracker.js +59 -0
- package/src/components/Tabs.js +13 -0
- package/src/components/TabsItem.js +81 -0
- package/src/components/TabsScrollButton.js +34 -0
- package/src/components/Tags.js +8 -11
- package/src/components/TagsItem.js +86 -78
- package/src/components/TextArea.js +3 -5
- package/src/components/TextInput.js +37 -47
- package/src/components/ToggleSwitch.js +53 -60
- package/src/components/Tooltip.js +18 -22
- package/src/components/TooltipButton.js +19 -26
- package/src/components/Typography.js +86 -104
- package/src/components/index.js +53 -37
- package/src/components/spacingScale.js +23 -26
- package/src/index.js +3 -3
- package/lib/components/ActivityIndicator.js +0 -35
- package/lib/components/Box.js +0 -89
- package/lib/components/Button.js +0 -252
- package/lib/components/ButtonGroup.js +0 -34
- package/lib/components/ButtonGroupItem.js +0 -108
- package/lib/components/Card.js +0 -120
- package/lib/components/Checkbox.js +0 -80
- package/lib/components/ChevronLink.js +0 -39
- package/lib/components/Divider.js +0 -44
- package/lib/components/ExpandCollapse.js +0 -23
- package/lib/components/ExpandCollapseControl.js +0 -49
- package/lib/components/ExpandCollapsePanel.js +0 -25
- package/lib/components/Feedback.js +0 -89
- package/lib/components/Icon.js +0 -47
- package/lib/components/InputLabel.js +0 -33
- package/lib/components/InputSupports.js +0 -19
- package/lib/components/Link.js +0 -241
- package/lib/components/List.js +0 -86
- package/lib/components/Pagination.js +0 -40
- package/lib/components/PaginationPageButton.js +0 -82
- package/lib/components/PaginationSideButton.js +0 -113
- package/lib/components/Radio.js +0 -78
- package/lib/components/Select.js +0 -102
- package/lib/components/SideNav.js +0 -23
- package/lib/components/SideNavItem.js +0 -118
- package/lib/components/SideNavItemsGroup.js +0 -49
- package/lib/components/Skeleton.js +0 -26
- package/lib/components/StackView.js +0 -22
- package/lib/components/Tags.js +0 -34
- package/lib/components/TagsItem.js +0 -133
- package/lib/components/TextArea.js +0 -20
- package/lib/components/TextInput.js +0 -97
- package/lib/components/ToggleSwitch.js +0 -144
- package/lib/components/Tooltip.js +0 -48
- package/lib/components/TooltipButton.js +0 -86
- package/lib/components/Typography.js +0 -370
- package/lib/components/index.js +0 -303
- package/lib/components/spacingScale.js +0 -163
- package/lib/index.js +0 -30
|
@@ -1,133 +0,0 @@
|
|
|
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;
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1,97 +0,0 @@
|
|
|
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;
|
|
@@ -1,144 +0,0 @@
|
|
|
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;
|
|
@@ -1,48 +0,0 @@
|
|
|
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;
|
|
@@ -1,86 +0,0 @@
|
|
|
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;
|