@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.
Files changed (95) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/build/theme.js +2841 -0
  3. package/package.json +9 -7
  4. package/src/components/ActivityIndicator.js +6 -8
  5. package/src/components/Box.js +11 -14
  6. package/src/components/Button.js +60 -67
  7. package/src/components/ButtonGroup.js +8 -11
  8. package/src/components/ButtonGroupItem.js +64 -54
  9. package/src/components/Card.js +42 -44
  10. package/src/components/Checkbox.js +37 -43
  11. package/src/components/CheckboxGroup.js +8 -0
  12. package/src/components/ChevronLink.js +7 -14
  13. package/src/components/Divider.js +5 -7
  14. package/src/components/ExpandCollapse.js +4 -7
  15. package/src/components/ExpandCollapseControl.js +17 -24
  16. package/src/components/ExpandCollapsePanel.js +7 -9
  17. package/src/components/Feedback.js +31 -40
  18. package/src/components/Icon.js +8 -10
  19. package/src/components/InputLabel.js +12 -18
  20. package/src/components/InputSupports.js +2 -4
  21. package/src/components/Link.js +59 -67
  22. package/src/components/List.js +26 -28
  23. package/src/components/Modal.js +57 -0
  24. package/src/components/Notification.js +90 -0
  25. package/src/components/Pagination.js +10 -16
  26. package/src/components/PaginationPageButton.js +33 -39
  27. package/src/components/PaginationSideButton.js +43 -52
  28. package/src/components/Progress.js +13 -0
  29. package/src/components/ProgressBar.js +31 -0
  30. package/src/components/Radio.js +47 -42
  31. package/src/components/RadioCard.js +123 -0
  32. package/src/components/RadioCardGroup.js +24 -0
  33. package/src/components/RadioGroup.js +8 -0
  34. package/src/components/Search.js +57 -0
  35. package/src/components/SearchButton.js +71 -0
  36. package/src/components/Select.js +40 -50
  37. package/src/components/SideNav.js +4 -7
  38. package/src/components/SideNavItem.js +48 -52
  39. package/src/components/SideNavItemsGroup.js +16 -23
  40. package/src/components/Skeleton.js +8 -10
  41. package/src/components/StackView.js +4 -6
  42. package/src/components/StepTracker.js +59 -0
  43. package/src/components/Tabs.js +13 -0
  44. package/src/components/TabsItem.js +81 -0
  45. package/src/components/TabsScrollButton.js +34 -0
  46. package/src/components/Tags.js +8 -11
  47. package/src/components/TagsItem.js +86 -78
  48. package/src/components/TextArea.js +3 -5
  49. package/src/components/TextInput.js +37 -47
  50. package/src/components/ToggleSwitch.js +53 -60
  51. package/src/components/Tooltip.js +18 -22
  52. package/src/components/TooltipButton.js +19 -26
  53. package/src/components/Typography.js +86 -104
  54. package/src/components/index.js +53 -37
  55. package/src/components/spacingScale.js +23 -26
  56. package/src/index.js +3 -3
  57. package/lib/components/ActivityIndicator.js +0 -35
  58. package/lib/components/Box.js +0 -89
  59. package/lib/components/Button.js +0 -252
  60. package/lib/components/ButtonGroup.js +0 -34
  61. package/lib/components/ButtonGroupItem.js +0 -108
  62. package/lib/components/Card.js +0 -120
  63. package/lib/components/Checkbox.js +0 -80
  64. package/lib/components/ChevronLink.js +0 -39
  65. package/lib/components/Divider.js +0 -44
  66. package/lib/components/ExpandCollapse.js +0 -23
  67. package/lib/components/ExpandCollapseControl.js +0 -49
  68. package/lib/components/ExpandCollapsePanel.js +0 -25
  69. package/lib/components/Feedback.js +0 -89
  70. package/lib/components/Icon.js +0 -47
  71. package/lib/components/InputLabel.js +0 -33
  72. package/lib/components/InputSupports.js +0 -19
  73. package/lib/components/Link.js +0 -241
  74. package/lib/components/List.js +0 -86
  75. package/lib/components/Pagination.js +0 -40
  76. package/lib/components/PaginationPageButton.js +0 -82
  77. package/lib/components/PaginationSideButton.js +0 -113
  78. package/lib/components/Radio.js +0 -78
  79. package/lib/components/Select.js +0 -102
  80. package/lib/components/SideNav.js +0 -23
  81. package/lib/components/SideNavItem.js +0 -118
  82. package/lib/components/SideNavItemsGroup.js +0 -49
  83. package/lib/components/Skeleton.js +0 -26
  84. package/lib/components/StackView.js +0 -22
  85. package/lib/components/Tags.js +0 -34
  86. package/lib/components/TagsItem.js +0 -133
  87. package/lib/components/TextArea.js +0 -20
  88. package/lib/components/TextInput.js +0 -97
  89. package/lib/components/ToggleSwitch.js +0 -144
  90. package/lib/components/Tooltip.js +0 -48
  91. package/lib/components/TooltipButton.js +0 -86
  92. package/lib/components/Typography.js +0 -370
  93. package/lib/components/index.js +0 -303
  94. package/lib/components/spacingScale.js +0 -163
  95. package/lib/index.js +0 -30
@@ -1,64 +1,58 @@
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
- import checkmarkIcon from '@telus-uds/palette-allium/build/rn/icons/checkmark.icon.svg'
5
-
6
- export default {
1
+ module.exports = {
7
2
  appearances: {
8
- checked: appearances.Checkbox.checked,
9
- error: appearances.Checkbox.error,
10
- focus: appearances.Checkbox.focus,
11
- hover: appearances.Checkbox.hover,
12
- inactive: appearances.Checkbox.inactive
3
+ checked: '{appearances.Checkbox.checked}',
4
+ error: '{appearances.Checkbox.error}',
5
+ focus: '{appearances.Checkbox.focus}',
6
+ hover: '{appearances.Checkbox.hover}',
7
+ inactive: '{appearances.Checkbox.inactive}'
13
8
  },
14
9
  tokens: {
15
- containerBackgroundColor: palette.color.transparent,
16
- containerMarginBottom: palette.size.size8,
17
- feedbackMarginBottom: system.size.zero,
18
- feedbackMarginTop: palette.size.size2,
19
- feedbackPosition: system.position.bottom,
20
- icon: checkmarkIcon,
21
- iconBackgroundColor: palette.color.purpleDeluge,
22
- iconColor: palette.color.white,
23
- iconSize: palette.size.size16,
24
- inputBackgroundColor: palette.color.white,
25
- inputBorderColor: palette.color.greyShuttle,
26
- inputBorderRadius: palette.radius.radius4,
27
- inputBorderWidth: palette.border.border1,
28
- inputHeight: palette.size.size20,
29
- inputOutlineColor: system.color.none,
30
- inputOutlineWidth: palette.border.none,
31
- inputShadow: system.shadow.none,
32
- inputWidth: palette.size.size20,
33
- labelColor: palette.color.greyCharcoal,
34
- labelFontName: Object.keys(palette.font)[0],
35
- labelFontSize: palette.fontSize.size16,
36
- labelFontWeight: '400',
37
- labelLineHeight: palette.lineHeight.ratio3to2,
38
- labelMarginLeft: palette.size.size10
10
+ containerBackgroundColor: '{palette.color.transparent}',
11
+ feedbackMarginBottom: '{system.size.zero}',
12
+ feedbackMarginTop: '{palette.size.size2}',
13
+ feedbackPosition: '{system.position.bottom}',
14
+ icon: '{palette.icon.Checkmark}',
15
+ iconBackgroundColor: '{palette.color.purpleDeluge}',
16
+ iconColor: '{palette.color.white}',
17
+ iconSize: '{palette.size.size16}',
18
+ inputBackgroundColor: '{palette.color.white}',
19
+ inputBorderColor: '{palette.color.greyShuttle}',
20
+ inputBorderRadius: '{palette.radius.radius4}',
21
+ inputBorderWidth: '{palette.border.border1}',
22
+ inputHeight: '{palette.size.size20}',
23
+ inputOutlineColor: '{system.color.none}',
24
+ inputOutlineWidth: '{palette.border.none}',
25
+ inputShadow: '{system.shadow.none}',
26
+ inputWidth: '{palette.size.size20}',
27
+ labelColor: '{palette.color.greyCharcoal}',
28
+ labelFontName: '{palette.fontName.HelveticaNow}',
29
+ labelFontSize: '{palette.fontSize.size16}',
30
+ labelFontWeight: '{palette.fontWeight.weight400}',
31
+ labelLineHeight: '{palette.lineHeight.ratio3to2}',
32
+ labelMarginLeft: '{palette.size.size10}'
39
33
  },
40
34
  rules: [
41
35
  {
42
36
  if: { error: true },
43
37
  tokens: {
44
- inputBorderColor: palette.color.red
38
+ inputBorderColor: '{palette.color.red}'
45
39
  }
46
40
  },
47
41
  {
48
42
  if: { focus: true },
49
43
  tokens: {
50
- inputBorderColor: palette.color.purpleDeluge,
51
- inputBorderWidth: palette.border.border3
44
+ inputBorderColor: '{palette.color.purpleDeluge}',
45
+ inputBorderWidth: '{palette.border.border3}'
52
46
  }
53
47
  },
54
48
  {
55
49
  if: { inactive: true },
56
50
  tokens: {
57
- inputBorderColor: palette.color.transparent,
58
- inputBackgroundColor: palette.color.greyMystic,
59
- iconBackgroundColor: palette.color.greyMystic,
60
- iconColor: palette.color.greyShuttle,
61
- labelColor: palette.color.greyShuttle
51
+ inputBorderColor: '{palette.color.transparent}',
52
+ inputBackgroundColor: '{palette.color.greyMystic}',
53
+ iconBackgroundColor: '{palette.color.greyMystic}',
54
+ iconColor: '{palette.color.greyShuttle}',
55
+ labelColor: '{palette.color.greyShuttle}'
62
56
  }
63
57
  }
64
58
  ]
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ appearances: {},
3
+ tokens: {
4
+ space: '{system.integer.2}',
5
+ fieldSpace: '{system.integer.2}'
6
+ },
7
+ rules: []
8
+ }
@@ -1,19 +1,12 @@
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 {
1
+ module.exports = {
9
2
  appearances: {
10
- hover: appearances.ChevronLink.hover
3
+ hover: '{appearances.ChevronLink.hover}'
11
4
  },
12
5
  tokens: {
13
- leftIcon: leftArrowIcon,
14
- rightIcon: rightArrowIcon,
15
- iconDisplace: palette.size.size0,
16
- iconSpace: system.integer[0]
6
+ leftIcon: '{palette.icon.ArrowLeft}',
7
+ rightIcon: '{palette.icon.ArrowRight}',
8
+ iconDisplace: '{palette.size.size0}',
9
+ iconSpace: '{system.integer.0}'
17
10
  },
18
- rules: [{ if: { hover: true }, tokens: { iconDisplace: palette.size.size4 } }]
11
+ rules: [{ if: { hover: true }, tokens: { iconDisplace: '{palette.size.size4}' } }]
19
12
  }
@@ -1,6 +1,4 @@
1
- import palette from '@telus-uds/palette-allium'
2
-
3
- export default {
1
+ module.exports = {
4
2
  appearances: {
5
3
  weight: {
6
4
  values: ['thick'],
@@ -14,20 +12,20 @@ export default {
14
12
  }
15
13
  },
16
14
  tokens: {
17
- width: palette.border.border1,
18
- color: palette.color.greyShuttle
15
+ width: '{palette.border.border1}',
16
+ color: '{palette.color.greyShuttle}'
19
17
  },
20
18
  rules: [
21
19
  {
22
20
  if: { weight: 'thick' },
23
21
  tokens: {
24
- width: palette.border.border2
22
+ width: '{palette.border.border2}'
25
23
  }
26
24
  },
27
25
  {
28
26
  if: { decorative: true },
29
27
  tokens: {
30
- color: palette.color.greyCloud
28
+ color: '{palette.color.greyCloud}'
31
29
  }
32
30
  }
33
31
  ]
@@ -1,12 +1,9 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
-
4
- export default {
1
+ module.exports = {
5
2
  appearances: {},
6
3
  tokens: {
7
- borderColor: palette.color.greyCloud,
8
- borderWidth: palette.border.border1,
9
- borderStyle: system.borderStyle.solid
4
+ borderColor: '{palette.color.greyCloud}',
5
+ borderWidth: '{palette.border.border1}',
6
+ borderStyle: '{system.borderStyle.solid}'
10
7
  },
11
8
  rules: []
12
9
  }
@@ -1,29 +1,22 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import { appearances } from '@telus-uds/system-themes/schema'
3
-
4
- import CaretUp from '@telus-uds/palette-allium/build/rn/icons/caret-up.icon.svg'
5
- import CaretDown from '@telus-uds/palette-allium/build/rn/icons/caret-down.icon.svg'
6
- import system from '@telus-uds/system-themes/src/tokens/rn'
7
-
8
- export default {
1
+ module.exports = {
9
2
  appearances: {
10
- expanded: appearances.ExpandCollapseControl.expanded
3
+ expanded: '{appearances.ExpandCollapseControl.expanded}'
11
4
  },
12
5
  tokens: {
13
- icon: CaretDown,
14
- iconColor: palette.color.greenAccessible,
15
- iconSize: palette.size.size24,
16
- iconGap: palette.size.size8,
17
- iconPosition: system.position.left,
18
- verticalAlign: system.verticalAlign.top,
19
- justifyContent: system.flexJustifyContent.flexStart,
20
- paddingLeft: palette.size.size8,
21
- paddingRight: palette.size.size16,
22
- paddingTop: palette.size.size16,
23
- paddingBottom: palette.size.size16,
24
- borderWidth: system.border.zero,
25
- borderColor: palette.color.transparent,
26
- backgroundColor: palette.color.transparent
6
+ icon: '{palette.icon.CaretDown}',
7
+ iconColor: '{palette.color.greenAccessible}',
8
+ iconSize: '{palette.size.size24}',
9
+ iconGap: '{palette.size.size8}',
10
+ iconPosition: '{system.position.left}',
11
+ verticalAlign: '{system.verticalAlign.top}',
12
+ justifyContent: '{system.flexJustifyContent.flexStart}',
13
+ paddingLeft: '{palette.size.size8}',
14
+ paddingRight: '{palette.size.size16}',
15
+ paddingTop: '{palette.size.size16}',
16
+ paddingBottom: '{palette.size.size16}',
17
+ borderWidth: '{system.border.zero}',
18
+ borderColor: '{palette.color.transparent}',
19
+ backgroundColor: '{palette.color.transparent}'
27
20
  },
28
- rules: [{ if: { expanded: true }, tokens: { icon: CaretUp } }]
21
+ rules: [{ if: { expanded: true }, tokens: { icon: '{palette.icon.CaretUp}' } }]
29
22
  }
@@ -1,15 +1,13 @@
1
- import palette from '@telus-uds/palette-allium'
2
-
3
- export default {
1
+ module.exports = {
4
2
  appearances: {},
5
3
  tokens: {
6
4
  // animate slightly faster when closing
7
- expandDuration: palette.duration.duration300,
8
- collapseDuration: palette.duration.duration250,
9
- contentPaddingLeft: palette.size.size40,
10
- contentPaddingRight: palette.size.size16,
11
- contentPaddingTop: palette.size.size0,
12
- contentPaddingBottom: palette.size.size16
5
+ expandDuration: '{palette.duration.duration300}',
6
+ collapseDuration: '{palette.duration.duration250}',
7
+ contentPaddingLeft: '{palette.size.size40}',
8
+ contentPaddingRight: '{palette.size.size16}',
9
+ contentPaddingTop: '{palette.size.size0}',
10
+ contentPaddingBottom: '{palette.size.size16}'
13
11
  },
14
12
  rules: []
15
13
  }
@@ -1,74 +1,65 @@
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 {
1
+ module.exports = {
9
2
  appearances: {
10
- validation: appearances.Feedback.validation,
3
+ validation: '{appearances.Feedback.validation}',
11
4
  icon: {
12
5
  values: [true],
13
6
  type: 'variant'
14
7
  }
15
8
  },
16
9
  tokens: {
17
- backgroundColor: palette.color.greyAthens,
18
- borderColor: palette.color.greyMystic,
19
- borderWidth: palette.border.border1,
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
- space: system.integer[2],
10
+ backgroundColor: '{palette.color.greyAthens}',
11
+ borderColor: '{palette.color.greyMystic}',
12
+ borderWidth: '{palette.border.border1}',
13
+ borderRadius: '{palette.radius.radius4}',
14
+ paddingTop: '{palette.size.size12}',
15
+ paddingBottom: '{palette.size.size12}',
16
+ paddingLeft: '{palette.size.size16}',
17
+ paddingRight: '{palette.size.size16}',
18
+ space: '{system.integer.2}',
26
19
 
27
- color: palette.color.greyThunder,
20
+ color: '{palette.color.greyThunder}',
28
21
 
29
- // TODO: replace with font token
30
- fontName: Object.keys(palette.font)[0],
31
- fontWeight: '400',
32
- // font: palette.font.HelveticaNow[400]
22
+ fontName: '{palette.fontName.HelveticaNow}',
23
+ fontWeight: '{palette.fontWeight.weight400}',
33
24
 
34
- lineHeight: palette.lineHeight.ratio3to2,
35
- titleFontSize: palette.fontSize.size16,
36
- contentFontSize: palette.fontSize.size14,
25
+ lineHeight: '{palette.lineHeight.ratio3to2}',
26
+ titleFontSize: '{palette.fontSize.size16}',
27
+ contentFontSize: '{palette.fontSize.size14}',
37
28
 
38
- icon: system.icon.none,
39
- iconSize: palette.fontSize.size24,
40
- iconColor: palette.color.transparent,
41
- iconGap: palette.size.size8
29
+ icon: '{system.icon.none}',
30
+ iconSize: '{palette.fontSize.size24}',
31
+ iconColor: '{palette.color.transparent}',
32
+ iconGap: '{palette.size.size8}'
42
33
  },
43
34
  rules: [
44
35
  {
45
36
  if: { validation: 'success' },
46
37
  tokens: {
47
- backgroundColor: palette.color.greenPanache,
48
- borderColor: palette.color.greenPanache,
49
- color: palette.color.greenDarkFern
38
+ backgroundColor: '{palette.color.greenPanache}',
39
+ borderColor: '{palette.color.greenPanache}',
40
+ color: '{palette.color.greenDarkFern}'
50
41
  }
51
42
  },
52
43
  {
53
44
  if: { validation: 'error' },
54
45
  tokens: {
55
- backgroundColor: palette.color.redLight,
56
- borderColor: palette.color.redLight,
57
- color: palette.color.red
46
+ backgroundColor: '{palette.color.redLight}',
47
+ borderColor: '{palette.color.redLight}',
48
+ color: '{palette.color.red}'
58
49
  }
59
50
  },
60
51
  {
61
52
  if: { validation: 'success', icon: true },
62
53
  tokens: {
63
- icon: successIcon,
64
- iconColor: palette.color.greenAccessible
54
+ icon: '{palette.icon.NotificationSuccess}',
55
+ iconColor: '{palette.color.greenAccessible}'
65
56
  }
66
57
  },
67
58
  {
68
59
  if: { validation: 'error', icon: true },
69
60
  tokens: {
70
- icon: errorIcon,
71
- iconColor: palette.color.red
61
+ icon: '{palette.icon.NotificationError}',
62
+ iconColor: '{palette.color.red}'
72
63
  }
73
64
  }
74
65
  ]
@@ -1,7 +1,4 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
-
4
- export default {
1
+ module.exports = {
5
2
  appearances: {
6
3
  size: {
7
4
  values: ['small'],
@@ -13,22 +10,23 @@ export default {
13
10
  }
14
11
  },
15
12
  tokens: {
16
- size: palette.size.size24,
17
- color: palette.color.greyCharcoal,
18
- translateX: system.size.zero,
19
- translateY: system.size.zero
13
+ size: '{palette.size.size24}',
14
+ color: '{palette.color.greyCharcoal}',
15
+ translateX: '{system.size.zero}',
16
+ translateY: '{system.size.zero}',
17
+ scale: '{system.integer.1}'
20
18
  },
21
19
  rules: [
22
20
  {
23
21
  if: { size: 'small' },
24
22
  tokens: {
25
- size: palette.size.size20
23
+ size: '{palette.size.size20}'
26
24
  }
27
25
  },
28
26
  {
29
27
  if: { rank: 'primary' },
30
28
  tokens: {
31
- color: palette.color.purpleTelus
29
+ color: '{palette.color.purpleTelus}'
32
30
  }
33
31
  }
34
32
  ]
@@ -1,29 +1,23 @@
1
- import palette from '@telus-uds/palette-allium'
2
-
3
- export default {
1
+ module.exports = {
4
2
  appearances: {},
5
3
  tokens: {
6
- gap: palette.size.size8,
4
+ gap: '{palette.size.size8}',
7
5
 
8
- color: palette.color.greyCharcoal,
6
+ color: '{palette.color.greyCharcoal}',
9
7
 
10
- // TODO: replace with font token
11
- fontName: Object.keys(palette.font)[0],
12
- fontWeight: '700',
13
- // font: palette.font.HelveticaNow[700]
8
+ fontName: '{palette.fontName.HelveticaNow}',
9
+ fontWeight: '{palette.fontWeight.weight700}',
14
10
 
15
- fontSize: palette.fontSize.size16,
16
- lineHeight: palette.lineHeight.ratio3to2,
11
+ fontSize: '{palette.fontSize.size16}',
12
+ lineHeight: '{palette.lineHeight.ratio3to2}',
17
13
 
18
- hintColor: palette.color.greyCharcoal,
14
+ hintColor: '{palette.color.greyCharcoal}',
19
15
 
20
- // TODO: replace with font token
21
- hintFontName: Object.keys(palette.font)[0],
22
- hintFontWeight: '400',
23
- // hintFont: palette.font.HelveticaNow[700],
16
+ hintFontName: '{palette.fontName.HelveticaNow}',
17
+ hintFontWeight: '{palette.fontWeight.weight400}',
24
18
 
25
- hintFontSize: palette.fontSize.size14,
26
- hintLineHeight: palette.lineHeight.ratio7to5
19
+ hintFontSize: '{palette.fontSize.size14}',
20
+ hintLineHeight: '{palette.lineHeight.ratio7to5}'
27
21
  },
28
22
  rules: []
29
23
  }
@@ -1,9 +1,7 @@
1
- import system from '@telus-uds/system-themes/src/tokens/rn'
2
-
3
- export default {
1
+ module.exports = {
4
2
  appearances: {},
5
3
  tokens: {
6
- space: system.integer[1]
4
+ space: '{system.integer.1}'
7
5
  },
8
6
  rules: []
9
7
  }