@telus-uds/theme-allium 0.0.2-prerelease.5 → 1.0.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.
Files changed (84) hide show
  1. package/CHANGELOG.md +1946 -0
  2. package/README.md +3 -9
  3. package/build/schema.json +8279 -0
  4. package/build/theme.js +2994 -0
  5. package/package.json +12 -15
  6. package/theme.json +3731 -0
  7. package/lib/components/ActivityIndicator.js +0 -35
  8. package/lib/components/Box.js +0 -89
  9. package/lib/components/Button.js +0 -252
  10. package/lib/components/ButtonGroup.js +0 -34
  11. package/lib/components/ButtonGroupItem.js +0 -108
  12. package/lib/components/Card.js +0 -120
  13. package/lib/components/Checkbox.js +0 -80
  14. package/lib/components/ChevronLink.js +0 -39
  15. package/lib/components/Divider.js +0 -44
  16. package/lib/components/ExpandCollapse.js +0 -23
  17. package/lib/components/ExpandCollapseControl.js +0 -49
  18. package/lib/components/ExpandCollapsePanel.js +0 -25
  19. package/lib/components/Feedback.js +0 -89
  20. package/lib/components/Icon.js +0 -47
  21. package/lib/components/InputLabel.js +0 -33
  22. package/lib/components/InputSupports.js +0 -19
  23. package/lib/components/Link.js +0 -241
  24. package/lib/components/List.js +0 -86
  25. package/lib/components/Pagination.js +0 -40
  26. package/lib/components/PaginationPageButton.js +0 -82
  27. package/lib/components/PaginationSideButton.js +0 -113
  28. package/lib/components/Radio.js +0 -78
  29. package/lib/components/Select.js +0 -102
  30. package/lib/components/SideNav.js +0 -23
  31. package/lib/components/SideNavItem.js +0 -118
  32. package/lib/components/SideNavItemsGroup.js +0 -49
  33. package/lib/components/Skeleton.js +0 -26
  34. package/lib/components/StackView.js +0 -22
  35. package/lib/components/Tags.js +0 -34
  36. package/lib/components/TagsItem.js +0 -133
  37. package/lib/components/TextArea.js +0 -20
  38. package/lib/components/TextInput.js +0 -97
  39. package/lib/components/ToggleSwitch.js +0 -144
  40. package/lib/components/Tooltip.js +0 -48
  41. package/lib/components/TooltipButton.js +0 -86
  42. package/lib/components/Typography.js +0 -370
  43. package/lib/components/index.js +0 -303
  44. package/lib/components/spacingScale.js +0 -163
  45. package/lib/index.js +0 -30
  46. package/src/components/ActivityIndicator.js +0 -25
  47. package/src/components/Box.js +0 -35
  48. package/src/components/Button.js +0 -174
  49. package/src/components/ButtonGroup.js +0 -16
  50. package/src/components/ButtonGroupItem.js +0 -88
  51. package/src/components/Card.js +0 -99
  52. package/src/components/Checkbox.js +0 -65
  53. package/src/components/ChevronLink.js +0 -19
  54. package/src/components/Divider.js +0 -34
  55. package/src/components/ExpandCollapse.js +0 -12
  56. package/src/components/ExpandCollapseControl.js +0 -29
  57. package/src/components/ExpandCollapsePanel.js +0 -15
  58. package/src/components/Feedback.js +0 -75
  59. package/src/components/Icon.js +0 -35
  60. package/src/components/InputLabel.js +0 -29
  61. package/src/components/InputSupports.js +0 -9
  62. package/src/components/Link.js +0 -211
  63. package/src/components/List.js +0 -70
  64. package/src/components/Pagination.js +0 -30
  65. package/src/components/PaginationPageButton.js +0 -71
  66. package/src/components/PaginationSideButton.js +0 -99
  67. package/src/components/Radio.js +0 -64
  68. package/src/components/Select.js +0 -88
  69. package/src/components/SideNav.js +0 -12
  70. package/src/components/SideNavItem.js +0 -115
  71. package/src/components/SideNavItemsGroup.js +0 -34
  72. package/src/components/Skeleton.js +0 -16
  73. package/src/components/StackView.js +0 -12
  74. package/src/components/Tags.js +0 -16
  75. package/src/components/TagsItem.js +0 -118
  76. package/src/components/TextArea.js +0 -10
  77. package/src/components/TextInput.js +0 -83
  78. package/src/components/ToggleSwitch.js +0 -118
  79. package/src/components/Tooltip.js +0 -41
  80. package/src/components/TooltipButton.js +0 -68
  81. package/src/components/Typography.js +0 -355
  82. package/src/components/index.js +0 -37
  83. package/src/components/spacingScale.js +0 -36
  84. package/src/index.js +0 -17
@@ -1,99 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
- import { appearances } from '@telus-uds/system-themes/schema'
4
-
5
- import leftArrowIcon from '@telus-uds/palette-allium/build/rn/icons/arrow-left.icon.svg'
6
- import rightArrowIcon from '@telus-uds/palette-allium/build/rn/icons/arrow-right.icon.svg'
7
-
8
- export default {
9
- appearances: {
10
- viewport: appearances.system.viewport,
11
- focus: appearances.PaginationSideButton.focus,
12
- hover: appearances.PaginationSideButton.hover,
13
- pressed: appearances.PaginationSideButton.pressed,
14
- selected: appearances.PaginationSideButton.selected,
15
- direction: appearances.PaginationSideButton.direction
16
- },
17
- tokens: {
18
- borderColor: palette.color.transparent,
19
- borderWidth: palette.border.border1,
20
- borderRadius: palette.radius.radius4,
21
- backgroundColor: palette.color.transparent,
22
- paddingLeft: palette.size.size8,
23
- paddingRight: palette.size.size8,
24
- paddingTop: palette.size.size12,
25
- paddingBottom: palette.size.size12,
26
- outerBorderColor: palette.color.transparent,
27
-
28
- color: palette.color.greyShuttle,
29
-
30
- // TODO replace with font token
31
- fontName: Object.keys(palette.font)[0],
32
- fontWeight: '400',
33
- // font: palette.font.HelveticaNow[400]
34
-
35
- fontSize: palette.fontSize.size16,
36
- lineHeight: palette.lineHeight.ratio3to2,
37
- textLine: system.textLine.underline,
38
-
39
- icon: system.icon.none,
40
- iconSize: palette.fontSize.size24,
41
- iconDisplace: palette.size.size0,
42
-
43
- width: system.size.none,
44
- textAlign: system.flexJustifyContent.center
45
- },
46
- rules: [
47
- {
48
- if: { viewport: ['xs', 'sm'] },
49
- tokens: {
50
- borderRadius: palette.radius.pill32,
51
- paddingTop: palette.size.size4,
52
- paddingBottom: palette.size.size4,
53
- width: palette.size.size32
54
- }
55
- },
56
- {
57
- if: { hover: true },
58
- tokens: {
59
- borderColor: palette.color.greyShuttle,
60
- textLine: system.textLine.none,
61
- iconDisplace: palette.size.size4
62
- }
63
- },
64
- {
65
- if: { focus: true },
66
- tokens: {
67
- borderColor: palette.color.greyShuttle,
68
- borderWidth: palette.border.border3
69
- }
70
- },
71
- {
72
- if: { selected: true },
73
- tokens: {
74
- backgroundColor: palette.color.greyShuttle,
75
- color: palette.color.white,
76
- textLine: system.textLine.none
77
- }
78
- },
79
- {
80
- if: { pressed: true },
81
- tokens: {
82
- backgroundColor: palette.color.greyShuttle,
83
- color: palette.color.white
84
- }
85
- },
86
- {
87
- if: { direction: 'previous' },
88
- tokens: {
89
- icon: leftArrowIcon
90
- }
91
- },
92
- {
93
- if: { direction: 'next' },
94
- tokens: {
95
- icon: rightArrowIcon
96
- }
97
- }
98
- ]
99
- }
@@ -1,64 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
- import { appearances } from '@telus-uds/system-themes/schema'
4
-
5
- export default {
6
- appearances: {
7
- checked: appearances.Radio.checked,
8
- error: appearances.Radio.error,
9
- focus: appearances.Radio.focus,
10
- hover: appearances.Radio.hover,
11
- inactive: appearances.Radio.inactive
12
- },
13
- tokens: {
14
- checkedBackgroundColor: palette.color.purpleDeluge,
15
- checkedSize: palette.size.size12,
16
- containerBackgroundColor: palette.color.transparent,
17
- containerBorderRadius: palette.radius.none,
18
- containerMarginBottom: palette.size.size8,
19
- containerOpacity: system.opacity.opaque,
20
- containerPaddingBottom: palette.size.size0,
21
- containerPaddingLeft: palette.size.size0,
22
- containerPaddingRight: palette.size.size0,
23
- containerPaddingTop: palette.size.size0,
24
- containerShadow: system.shadow.none,
25
- descriptionFontSize: palette.fontSize.size14,
26
- descriptionLineHeight: palette.lineHeight.ratio10to7,
27
- descriptionMarginLeft: system.size.none,
28
- inputBackgroundColor: palette.color.white,
29
- inputBorderColor: palette.color.greyShuttle,
30
- inputBorderWidth: palette.border.border1,
31
- inputOutlineColor: palette.color.transparent,
32
- inputOutlineWidth: palette.border.none,
33
- inputSize: palette.size.size20,
34
- labelColor: palette.color.greyCharcoal,
35
- labelFontName: Object.keys(palette.font)[0],
36
- labelFontSize: palette.fontSize.size16,
37
- labelFontWeight: '400',
38
- labelLineHeight: palette.lineHeight.ratio3to2,
39
- labelMarginLeft: palette.size.size10
40
- },
41
- rules: [
42
- {
43
- if: { error: true },
44
- tokens: {
45
- inputBorderColor: palette.color.red
46
- }
47
- },
48
- {
49
- if: { focus: true },
50
- tokens: {
51
- inputBorderColor: palette.color.purpleDeluge,
52
- inputBorderWidth: palette.border.border3
53
- }
54
- },
55
- {
56
- if: { inactive: true },
57
- tokens: {
58
- inputBorderColor: palette.color.transparent,
59
- inputBackgroundColor: palette.color.greyMystic,
60
- labelColor: palette.color.greyShuttle
61
- }
62
- }
63
- ]
64
- }
@@ -1,88 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
- import { appearances } from '@telus-uds/system-themes/schema'
4
-
5
- import errorIcon from '@telus-uds/palette-allium/build/rn/icons/notification-error.icon.svg'
6
- import successIcon from '@telus-uds/palette-allium/build/rn/icons/notification-success.icon.svg'
7
- import caretDownIcon from '@telus-uds/palette-allium/build/rn/icons/caret-down.icon.svg'
8
-
9
- const Select = {
10
- appearances: {
11
- validation: appearances.Select.validation,
12
- hover: appearances.Select.hover,
13
- focus: appearances.Select.focus,
14
- inactive: appearances.Select.inactive
15
- },
16
- tokens: {
17
- backgroundColor: palette.color.white,
18
- color: palette.color.greyCharcoal,
19
- borderWidth: palette.border.border1,
20
- borderColor: palette.color.greyShuttle,
21
- borderRadius: palette.radius.radius4,
22
- paddingTop: palette.size.size12,
23
- paddingBottom: palette.size.size12,
24
- paddingLeft: palette.size.size16,
25
- paddingRight: palette.size.size16,
26
- height: palette.size.size48,
27
-
28
- outerBackgroundColor: palette.color.transparent,
29
- outerBorderWidth: palette.border.border2,
30
- outerBorderColor: palette.color.transparent,
31
- outerBorderRadius: palette.radius.radius4,
32
-
33
- fontSize: palette.fontSize.size16,
34
- // TODO replace with font token
35
- fontName: Object.keys(palette.font)[0],
36
- fontWeight: '400',
37
-
38
- icon: caretDownIcon,
39
- iconSize: palette.fontSize.size24,
40
- iconColor: palette.color.greenAccessible,
41
-
42
- validationIcon: system.icon.none,
43
- validationIconSize: palette.fontSize.size24,
44
- validationIconColor: palette.color.transparent
45
- },
46
- rules: [
47
- {
48
- if: { hover: true, inactive: null },
49
- tokens: {
50
- outerBorderColor: palette.color.greyMystic,
51
- outerBackgroundColor: palette.color.greyMystic
52
- }
53
- },
54
- {
55
- if: { validation: 'success' },
56
- tokens: {
57
- borderColor: palette.color.greenAccessible,
58
- validationIcon: successIcon,
59
- validationIconColor: palette.color.greenAccessible
60
- }
61
- },
62
- {
63
- if: { validation: 'error' },
64
- tokens: {
65
- borderColor: palette.color.red,
66
- validationIcon: errorIcon,
67
- validationIconColor: palette.color.red
68
- }
69
- },
70
- {
71
- if: { focus: true },
72
- tokens: {
73
- borderColor: palette.color.purpleDeluge,
74
- borderWidth: palette.border.border3,
75
- validationIcon: system.icon.none
76
- }
77
- },
78
- {
79
- if: { inactive: true },
80
- tokens: {
81
- backgroundColor: palette.color.greyAthens,
82
- borderColor: palette.color.greyAthens
83
- }
84
- }
85
- ]
86
- }
87
-
88
- export default Select
@@ -1,12 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
-
4
- export default {
5
- appearances: {},
6
- tokens: {
7
- borderColor: palette.color.greyCloud,
8
- borderWidth: palette.border.border1,
9
- borderStyle: system.borderStyle.solid
10
- },
11
- rules: []
12
- }
@@ -1,115 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
- import { appearances } from '@telus-uds/system-themes/schema'
4
-
5
- export default {
6
- appearances: {
7
- active: appearances.SideNavItem.active,
8
- type: appearances.SideNavItem.type,
9
- expanded: appearances.SideNavItem.expanded,
10
- hover: appearances.SideNavItem.hover
11
- },
12
- tokens: {
13
- borderColor: palette.color.greyCloud,
14
- borderWidth: palette.border.border1,
15
- borderStyle: system.borderStyle.solid,
16
- paddingLeft: palette.size.size16,
17
- paddingRight: palette.size.size16,
18
- paddingTop: palette.size.size16,
19
- paddingBottom: palette.size.size16,
20
- justifyContent: system.flexJustifyContent.spaceBetween,
21
- color: palette.color.greyCharcoal,
22
- accentOffset: system.size.zero,
23
- accentPadding: system.size.zero,
24
- accentWidth: palette.size.size4,
25
- accentBackgroundColor: palette.color.transparent,
26
- fontSize: palette.fontSize.size16,
27
- fontWeight: '400',
28
- lineHeight: palette.lineHeight.ratio3to2,
29
- backgroundColor: palette.color.transparent
30
- },
31
- rules: [
32
- {
33
- if: {
34
- active: true
35
- },
36
- tokens: {
37
- paddingLeft: palette.size.size12,
38
- accentBackgroundColor: palette.color.purpleTelus,
39
- color: palette.color.purpleTelus,
40
-
41
- // TODO: replace with font token
42
- fontWeight: '700'
43
- // font: palette.font.HelveticaNow[700]
44
- }
45
- },
46
- {
47
- if: {
48
- type: 'child'
49
- },
50
- tokens: {
51
- paddingLeft: palette.size.size36,
52
- borderWidth: palette.border.none,
53
- accentBackgroundColor: palette.color.greyAthens,
54
- accentOffset: palette.size.size16,
55
- fontSize: palette.fontSize.size14,
56
- lineHeight: palette.lineHeight.ratio7to5
57
- }
58
- },
59
- {
60
- if: {
61
- type: 'parent',
62
- active: true
63
- },
64
- tokens: {
65
- paddingLeft: palette.size.size12
66
- }
67
- },
68
- {
69
- if: {
70
- type: 'parent',
71
- active: true,
72
- expanded: true
73
- },
74
- tokens: {
75
- paddingLeft: palette.size.size16,
76
- accentBackgroundColor: palette.color.transparent,
77
- color: palette.color.greyCharcoal
78
- }
79
- },
80
- {
81
- if: {
82
- hover: true
83
- },
84
- tokens: {
85
- backgroundColor: palette.color.greyAthens,
86
- color: palette.color.purpleTelus
87
- }
88
- },
89
- {
90
- if: {
91
- type: 'child',
92
- active: true
93
- },
94
- tokens: {
95
- backgroundColor: palette.color.greyAthens,
96
- color: palette.color.purpleTelus,
97
- accentPadding: palette.size.size16,
98
- accentBackgroundColor: palette.color.purpleTelus
99
- }
100
- },
101
- {
102
- if: {
103
- type: 'child',
104
- active: false,
105
- hover: true
106
- },
107
- tokens: {
108
- accentBackgroundColor: palette.color.white,
109
- color: palette.color.greyCharcoal,
110
- accentOffset: system.size.zero,
111
- accentWidth: palette.size.size16
112
- }
113
- }
114
- ]
115
- }
@@ -1,34 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
- import { appearances } from '@telus-uds/system-themes/schema'
4
-
5
- import CaretUp from '@telus-uds/palette-allium/build/rn/icons/caret-up.icon.svg'
6
- import CaretDown from '@telus-uds/palette-allium/build/rn/icons/caret-down.icon.svg'
7
-
8
- export default {
9
- appearances: {
10
- expanded: appearances.SideNavItemGroup.expanded
11
- },
12
- tokens: {
13
- // animate slightly faster when closing
14
- expandDuration: palette.duration.duration300,
15
- collapseDuration: palette.duration.duration250,
16
- contentPaddingLeft: palette.size.size0,
17
- contentPaddingRight: palette.size.size0,
18
- contentPaddingTop: palette.size.size0,
19
- contentPaddingBottom: palette.size.size0,
20
- icon: CaretDown,
21
- iconColor: palette.color.purpleTelus,
22
- iconGap: palette.size.size8,
23
- iconSize: palette.size.size24,
24
- iconPosition: system.position.right,
25
- verticalAlign: system.verticalAlign.middle,
26
- justifyContent: system.flexJustifyContent.spaceBetween
27
- },
28
- rules: [
29
- {
30
- if: { expanded: true },
31
- tokens: { icon: CaretUp }
32
- }
33
- ]
34
- }
@@ -1,16 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
-
3
- const Skeleton = {
4
- appearances: {},
5
- tokens: {
6
- color: palette.color.greyCloud,
7
- size: palette.border.border3,
8
- radius: palette.size.size120,
9
- baseWidth: palette.size.size40,
10
- characters: palette.size.size10,
11
- spaceBetweenLines: palette.size.size2,
12
- squareRadius: palette.size.size4
13
- },
14
- rules: []
15
- }
16
- export default Skeleton
@@ -1,12 +0,0 @@
1
- import system from '@telus-uds/system-themes/src/tokens/rn'
2
-
3
- // This makes the React Native defaults explicit and allows them to be overridden with tokens
4
- export default {
5
- appearances: {},
6
- tokens: {
7
- alignItems: system.flexAlign.stretch,
8
- justifyContent: system.flexJustifyContent.flexStart,
9
- flexGrow: system.integer[0]
10
- },
11
- rules: []
12
- }
@@ -1,16 +0,0 @@
1
- import system from '@telus-uds/system-themes/src/tokens/rn'
2
- import { appearances } from '@telus-uds/system-themes/schema'
3
-
4
- export default {
5
- appearances: {
6
- viewport: appearances.system.viewport
7
- },
8
- tokens: {
9
- space: system.integer[1],
10
- direction: system.direction.row,
11
- alignItems: system.flexAlign.center,
12
- justifyContent: system.flexJustifyContent.flexStart,
13
- flexGrow: system.integer[0]
14
- },
15
- rules: [{ if: { viewport: ['lg', 'xl'] }, tokens: { space: system.integer[3] } }]
16
- }
@@ -1,118 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
- import { appearances } from '@telus-uds/system-themes/schema'
4
-
5
- import addIcon from '@telus-uds/palette-allium/build/rn/icons/add.icon.svg'
6
- import closeIcon from '@telus-uds/palette-allium/build/rn/icons/close.icon.svg'
7
-
8
- // console.log({ addIcon, closeIcon, size16: palette.size.size16 })
9
-
10
- export default {
11
- appearances: {
12
- hover: appearances.TagsItem.hover,
13
- focus: appearances.TagsItem.focus,
14
- pressed: appearances.TagsItem.pressed,
15
- selected: appearances.TagsItem.selected,
16
- inactive: appearances.TagsItem.inactive
17
- },
18
- tokens: {
19
- // Icon tokens
20
- iconSize: palette.size.size16,
21
- iconColor: palette.color.greyThunder,
22
- iconTranslateX: system.integer[0],
23
- iconTranslateY: system.integer[0],
24
-
25
- icon: addIcon,
26
- iconPosition: system.position.right,
27
- iconSpace: system.integer[2],
28
- iconBackground: palette.color.greyAthens,
29
- iconBorderRadius: palette.radius.pill32,
30
- iconAlignSelf: system.flexAlign.center,
31
- iconPadding: palette.size.size2,
32
-
33
- // Button tokens, very similar to ButtonGroup
34
- borderColor: palette.color.greyCloud,
35
- borderWidth: palette.border.border1,
36
- borderRadius: palette.radius.pill32,
37
- shadow: system.shadow.none,
38
-
39
- fontSize: palette.fontSize.size14,
40
- color: palette.color.greyShuttle,
41
- lineHeight: palette.lineHeight.ratio10to7,
42
- textAlign: system.flexJustifyContent.center,
43
- alignSelf: system.flexAlign.center,
44
- // TODO: replace with font token
45
- fontName: Object.keys(palette.font)[0],
46
- fontWeight: '700',
47
- // font: palette.font.HelveticaNow['700'],
48
-
49
- backgroundColor: palette.color.white,
50
- opacity: system.opacity.opaque,
51
- paddingLeft: palette.size.size16,
52
- paddingRight: palette.size.size8,
53
- paddingTop: palette.size.size8,
54
- paddingBottom: palette.size.size8,
55
- width: system.size.none,
56
- minWidth: system.size.zero,
57
-
58
- outerBorderColor: palette.color.transparent,
59
- outerBorderWidth: palette.border.border2,
60
- outerBorderGap: palette.border.border2,
61
- outerBorderRadius: palette.radius.pill32,
62
- outerBackgroundColor: palette.color.transparent
63
- },
64
- rules: [
65
- {
66
- if: { focus: true },
67
- tokens: {
68
- borderColor: palette.color.purpleTelus,
69
- borderWidth: palette.border.border3,
70
- color: palette.color.greyCharcoal,
71
- outerBorderColor: palette.color.transparent
72
- }
73
- },
74
- { if: { hover: true }, tokens: { borderWidth: palette.border.border3 } },
75
- {
76
- if: { selected: true },
77
- tokens: {
78
- borderWidth: palette.border.none,
79
- backgroundColor: palette.color.purpleTelus,
80
- color: palette.color.white,
81
-
82
- icon: closeIcon,
83
- iconColor: palette.color.white,
84
- iconBackground: palette.color.purpleDeluge
85
- }
86
- },
87
- {
88
- if: { pressed: true },
89
- tokens: {
90
- borderWidth: palette.border.none,
91
- backgroundColor: palette.color.greyShuttle,
92
- color: palette.color.white,
93
-
94
- iconColor: palette.color.white,
95
- iconBackground: palette.color.greyCharcoal
96
- }
97
- },
98
- {
99
- if: { focus: true, pressed: true },
100
- tokens: {
101
- borderWidth: palette.border.none,
102
- backgroundColor: palette.color.purpleTelus,
103
- color: palette.color.white,
104
-
105
- iconColor: palette.color.white,
106
- iconBackground: palette.color.purpleDark
107
- }
108
- },
109
- {
110
- if: { inactive: true },
111
- tokens: {
112
- backgroundColor: palette.color.greyCloud,
113
- color: palette.color.white,
114
- borderWidth: system.border.zero
115
- }
116
- }
117
- ]
118
- }
@@ -1,10 +0,0 @@
1
- import system from '@telus-uds/system-themes/src/tokens/rn'
2
-
3
- export default {
4
- appearances: {},
5
- tokens: {
6
- minLines: system.integer[5],
7
- maxLines: system.integer[8]
8
- },
9
- rules: []
10
- }
@@ -1,83 +0,0 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
- import { appearances } from '@telus-uds/system-themes/schema'
4
-
5
- import errorIcon from '@telus-uds/palette-allium/build/rn/icons/notification-error.icon.svg'
6
- import successIcon from '@telus-uds/palette-allium/build/rn/icons/notification-success.icon.svg'
7
-
8
- export default {
9
- appearances: {
10
- validation: appearances.TextInput.validation,
11
- hover: appearances.TextInput.hover,
12
- focus: appearances.TextInput.focus,
13
- inactive: appearances.TextInput.inactive
14
- },
15
- tokens: {
16
- backgroundColor: palette.color.white,
17
- color: palette.color.greyCharcoal,
18
- borderWidth: palette.border.border1,
19
- borderColor: palette.color.greyShuttle,
20
- borderRadius: palette.radius.radius4,
21
- paddingTop: palette.size.size12,
22
- paddingBottom: palette.size.size12,
23
- paddingLeft: palette.size.size16,
24
- paddingRight: palette.size.size16,
25
-
26
- outerBackgroundColor: palette.color.transparent,
27
- outerBorderWidth: palette.border.border2,
28
- outerBorderColor: palette.color.transparent,
29
- outerBorderRadius: palette.radius.radius4,
30
-
31
- // TODO: replace this with font token
32
- fontName: Object.keys(palette.font)[0],
33
- fontWeight: '400',
34
- // font: palette.font.HelveticaNow[400]
35
-
36
- fontSize: palette.fontSize.size16,
37
- lineHeight: palette.lineHeight.ratio3to2,
38
-
39
- icon: system.icon.none,
40
- iconSize: palette.fontSize.size24,
41
- iconColor: palette.color.transparent
42
- },
43
- rules: [
44
- {
45
- if: { hover: true, inactive: null },
46
- tokens: {
47
- outerBorderColor: palette.color.greyMystic,
48
- outerBackgroundColor: palette.color.greyMystic
49
- }
50
- },
51
- {
52
- if: { validation: 'success' },
53
- tokens: {
54
- borderColor: palette.color.greenAccessible,
55
- icon: successIcon,
56
- iconColor: palette.color.greenAccessible
57
- }
58
- },
59
- {
60
- if: { validation: 'error' },
61
- tokens: {
62
- borderColor: palette.color.red,
63
- icon: errorIcon,
64
- iconColor: palette.color.red
65
- }
66
- },
67
- {
68
- if: { focus: true },
69
- tokens: {
70
- borderColor: palette.color.purpleDeluge,
71
- borderWidth: palette.border.border3,
72
- icon: system.icon.none
73
- }
74
- },
75
- {
76
- if: { inactive: true },
77
- tokens: {
78
- backgroundColor: palette.color.greyAthens,
79
- borderColor: palette.color.greyAthens
80
- }
81
- }
82
- ]
83
- }