@telus-uds/theme-allium 0.0.2-prerelease.6 → 0.1.0-prerelease.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 (57) hide show
  1. package/CHANGELOG.md +1829 -0
  2. package/build/theme.js +162 -25
  3. package/package.json +8 -14
  4. package/theme.json +3714 -0
  5. package/src/components/ActivityIndicator.js +0 -23
  6. package/src/components/Box.js +0 -32
  7. package/src/components/Button.js +0 -167
  8. package/src/components/ButtonGroup.js +0 -13
  9. package/src/components/ButtonGroupItem.js +0 -98
  10. package/src/components/Card.js +0 -97
  11. package/src/components/Checkbox.js +0 -59
  12. package/src/components/CheckboxGroup.js +0 -8
  13. package/src/components/ChevronLink.js +0 -12
  14. package/src/components/Divider.js +0 -32
  15. package/src/components/ExpandCollapse.js +0 -9
  16. package/src/components/ExpandCollapseControl.js +0 -22
  17. package/src/components/ExpandCollapsePanel.js +0 -13
  18. package/src/components/Feedback.js +0 -66
  19. package/src/components/Icon.js +0 -33
  20. package/src/components/InputLabel.js +0 -23
  21. package/src/components/InputSupports.js +0 -7
  22. package/src/components/Link.js +0 -203
  23. package/src/components/List.js +0 -68
  24. package/src/components/Modal.js +0 -57
  25. package/src/components/Notification.js +0 -90
  26. package/src/components/Pagination.js +0 -24
  27. package/src/components/PaginationPageButton.js +0 -65
  28. package/src/components/PaginationSideButton.js +0 -90
  29. package/src/components/Progress.js +0 -13
  30. package/src/components/ProgressBar.js +0 -31
  31. package/src/components/Radio.js +0 -69
  32. package/src/components/RadioCard.js +0 -123
  33. package/src/components/RadioCardGroup.js +0 -24
  34. package/src/components/RadioGroup.js +0 -8
  35. package/src/components/Search.js +0 -57
  36. package/src/components/SearchButton.js +0 -71
  37. package/src/components/Select.js +0 -78
  38. package/src/components/SideNav.js +0 -9
  39. package/src/components/SideNavItem.js +0 -111
  40. package/src/components/SideNavItemsGroup.js +0 -27
  41. package/src/components/Skeleton.js +0 -14
  42. package/src/components/StackView.js +0 -10
  43. package/src/components/StepTracker.js +0 -59
  44. package/src/components/Tabs.js +0 -13
  45. package/src/components/TabsItem.js +0 -81
  46. package/src/components/TabsScrollButton.js +0 -34
  47. package/src/components/Tags.js +0 -13
  48. package/src/components/TagsItem.js +0 -126
  49. package/src/components/TextArea.js +0 -8
  50. package/src/components/TextInput.js +0 -73
  51. package/src/components/ToggleSwitch.js +0 -111
  52. package/src/components/Tooltip.js +0 -37
  53. package/src/components/TooltipButton.js +0 -61
  54. package/src/components/Typography.js +0 -337
  55. package/src/components/index.js +0 -53
  56. package/src/components/spacingScale.js +0 -33
  57. package/src/index.js +0 -17
package/build/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Wed, 15 Dec 2021 17:34:46 GMT
4
+ * Generated on Wed, 29 Dec 2021 09:03:35 GMT
5
5
  *
6
6
  */
7
7
 
@@ -10,10 +10,10 @@ const PaletteIconArrowLeft = require('@telus-uds/palette-allium/build/rn/icons/A
10
10
  const PaletteIconArrowRight = require('@telus-uds/palette-allium/build/rn/icons/ArrowRight')
11
11
  const PaletteIconCaretDown = require('@telus-uds/palette-allium/build/rn/icons/CaretDown')
12
12
  const PaletteIconCaretUp = require('@telus-uds/palette-allium/build/rn/icons/CaretUp')
13
- const PaletteIconNotificationSuccess = require('@telus-uds/palette-allium/build/rn/icons/NotificationSuccess')
14
- const PaletteIconNotificationError = require('@telus-uds/palette-allium/build/rn/icons/NotificationError')
13
+ const PaletteIconStatusSuccess = require('@telus-uds/palette-allium/build/rn/icons/StatusSuccess')
14
+ const PaletteIconStatusError = require('@telus-uds/palette-allium/build/rn/icons/StatusError')
15
15
  const PaletteIconClose = require('@telus-uds/palette-allium/build/rn/icons/Close')
16
- const PaletteIconNotificationWarning = require('@telus-uds/palette-allium/build/rn/icons/NotificationWarning')
16
+ const PaletteIconStatusWarning = require('@telus-uds/palette-allium/build/rn/icons/StatusWarning')
17
17
  const PaletteIconTimes = require('@telus-uds/palette-allium/build/rn/icons/Times')
18
18
  const PaletteIconSearchBold = require('@telus-uds/palette-allium/build/rn/icons/SearchBold')
19
19
  const PaletteIconQuestion = require('@telus-uds/palette-allium/build/rn/icons/Question')
@@ -568,11 +568,13 @@ module.exports = {
568
568
  type: 'variant',
569
569
  values: [ true ]
570
570
  },
571
+ inverse: { type: 'variant', values: [ true ] },
571
572
  weight: { type: 'variant', values: [ 'thick' ] }
572
573
  },
573
574
  rules: [
574
575
  { if: { weight: 'thick' }, tokens: { width: 2 } },
575
- { if: { decorative: true }, tokens: { color: '#b2b9bf' } }
576
+ { if: { decorative: true }, tokens: { color: '#b2b9bf' } },
577
+ { if: { inverse: true }, tokens: { color: '#ffffff' } }
576
578
  ],
577
579
  tokens: { color: '#676e73', width: 1 }
578
580
  },
@@ -652,17 +654,11 @@ module.exports = {
652
654
  },
653
655
  {
654
656
  if: { icon: true, validation: 'success' },
655
- tokens: {
656
- icon: PaletteIconNotificationSuccess,
657
- iconColor: '#2b8000'
658
- }
657
+ tokens: { icon: PaletteIconStatusSuccess, iconColor: '#2b8000' }
659
658
  },
660
659
  {
661
660
  if: { icon: true, validation: 'error' },
662
- tokens: {
663
- icon: PaletteIconNotificationError,
664
- iconColor: '#e12339'
665
- }
661
+ tokens: { icon: PaletteIconStatusError, iconColor: '#e12339' }
666
662
  }
667
663
  ],
668
664
  tokens: {
@@ -704,6 +700,151 @@ module.exports = {
704
700
  translateY: 0
705
701
  }
706
702
  },
703
+ IconButton: {
704
+ appearances: {
705
+ focus: {
706
+ description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
707
+ type: 'state',
708
+ values: [ true ]
709
+ },
710
+ hover: {
711
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
712
+ type: 'state',
713
+ values: [ true ]
714
+ },
715
+ inverse: {
716
+ description: 'For use on dark backgrounds',
717
+ type: 'variant',
718
+ values: [ true ]
719
+ },
720
+ pressed: {
721
+ description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
722
+ type: 'state',
723
+ values: [ true ]
724
+ },
725
+ raised: {
726
+ description: 'Uses shadow and background colour to appear raised above the page',
727
+ type: 'variant',
728
+ values: [ true ]
729
+ },
730
+ size: { type: 'variant', values: [ 'small', 'large' ] }
731
+ },
732
+ rules: [
733
+ {
734
+ if: { inverse: true },
735
+ tokens: { borderColor: '#ffffff', iconColor: '#ffffff' }
736
+ },
737
+ {
738
+ if: { hover: true },
739
+ tokens: {
740
+ borderColor: '#414547',
741
+ iconColor: '#414547',
742
+ iconScale: 1.1
743
+ }
744
+ },
745
+ {
746
+ if: { hover: true, inverse: true },
747
+ tokens: { borderColor: '#ffffff', iconColor: '#ffffff' }
748
+ },
749
+ {
750
+ if: { focus: true },
751
+ tokens: {
752
+ outerBorderColor: '#676e73',
753
+ outerBorderGap: 4,
754
+ outerBorderWidth: 1
755
+ }
756
+ },
757
+ {
758
+ if: { focus: true, inverse: true },
759
+ tokens: {
760
+ backgroundColor: 'rgba(255, 255, 255, 0.6)',
761
+ borderColor: '#414547',
762
+ iconColor: '#414547',
763
+ outerBorderWidth: 0
764
+ }
765
+ },
766
+ {
767
+ if: { pressed: true },
768
+ tokens: {
769
+ backgroundColor: '#676e73',
770
+ borderColor: '#ffffff',
771
+ iconColor: '#ffffff',
772
+ outerBorderGap: 4
773
+ }
774
+ },
775
+ {
776
+ if: { inverse: true, pressed: true },
777
+ tokens: {
778
+ backgroundColor: 'rgba(255, 255, 255, 0.4)',
779
+ borderColor: '#676e73',
780
+ iconColor: '#676e73'
781
+ }
782
+ },
783
+ {
784
+ if: { size: 'large' },
785
+ tokens: { iconSize: 24, padding: 12 }
786
+ },
787
+ { if: { size: 'small' }, tokens: { padding: 4 } },
788
+ {
789
+ description: 'Raised IconButtons follow different design patterns to other variants',
790
+ if: { raised: true },
791
+ tokens: {
792
+ backgroundColor: '#ffffff',
793
+ borderColor: '#b2b9bf',
794
+ borderWidth: 1,
795
+ outerBorderColor: 'transparent',
796
+ outerBorderGap: 0,
797
+ outerBorderWidth: 0,
798
+ padding: 12,
799
+ shadow: {
800
+ blur: 2,
801
+ color: 'rgba(0, 0, 0, 0.1)',
802
+ inset: false,
803
+ offsetX: 0,
804
+ offsetY: 2,
805
+ spread: 0
806
+ }
807
+ }
808
+ },
809
+ {
810
+ if: { raised: true, size: 'large' },
811
+ tokens: { padding: 16 }
812
+ },
813
+ { if: { raised: true, size: 'small' }, tokens: { padding: 8 } },
814
+ {
815
+ if: { pressed: true, raised: true },
816
+ tokens: { backgroundColor: '#676e73', borderWidth: 0 }
817
+ },
818
+ {
819
+ if: { focus: true, pressed: true, raised: true },
820
+ tokens: { backgroundColor: '#4b286d', borderWidth: 0 }
821
+ },
822
+ {
823
+ if: { hover: true, raised: true },
824
+ tokens: { borderColor: '#b2b9bf', borderWidth: 3 }
825
+ },
826
+ {
827
+ if: { focus: true, raised: true },
828
+ tokens: { borderColor: '#4b286d', borderWidth: 3 }
829
+ }
830
+ ],
831
+ tokens: {
832
+ backgroundColor: 'transparent',
833
+ borderColor: '#676e73',
834
+ borderRadius: 99999999999999,
835
+ borderWidth: 1,
836
+ iconColor: '#676e73',
837
+ iconScale: 1,
838
+ iconSize: 16,
839
+ iconTranslateX: 0,
840
+ iconTranslateY: 0,
841
+ outerBorderColor: 'transparent',
842
+ outerBorderGap: 0,
843
+ outerBorderWidth: 0,
844
+ padding: 8,
845
+ shadow: null
846
+ }
847
+ },
707
848
  InputLabel: {
708
849
  appearances: {},
709
850
  rules: [],
@@ -1009,7 +1150,7 @@ module.exports = {
1009
1150
  tokens: {
1010
1151
  backgroundColor: '#f4f9f2',
1011
1152
  borderColor: '#2b8000',
1012
- icon: PaletteIconNotificationSuccess,
1153
+ icon: PaletteIconStatusSuccess,
1013
1154
  iconColor: '#2b8000'
1014
1155
  }
1015
1156
  },
@@ -1019,7 +1160,7 @@ module.exports = {
1019
1160
  backgroundColor: '#fff9ee',
1020
1161
  borderColor: '#b4872c',
1021
1162
  dismissIcon: null,
1022
- icon: PaletteIconNotificationWarning,
1163
+ icon: PaletteIconStatusWarning,
1023
1164
  iconColor: '#b4872c'
1024
1165
  }
1025
1166
  },
@@ -1029,7 +1170,7 @@ module.exports = {
1029
1170
  backgroundColor: '#fff6f8',
1030
1171
  borderColor: '#e12339',
1031
1172
  dismissIcon: null,
1032
- icon: PaletteIconNotificationError,
1173
+ icon: PaletteIconStatusError,
1033
1174
  iconColor: '#e12339'
1034
1175
  }
1035
1176
  }
@@ -1703,7 +1844,7 @@ module.exports = {
1703
1844
  if: { validation: 'success' },
1704
1845
  tokens: {
1705
1846
  borderColor: '#2b8000',
1706
- validationIcon: PaletteIconNotificationSuccess,
1847
+ validationIcon: PaletteIconStatusSuccess,
1707
1848
  validationIconColor: '#2b8000'
1708
1849
  }
1709
1850
  },
@@ -1711,7 +1852,7 @@ module.exports = {
1711
1852
  if: { validation: 'error' },
1712
1853
  tokens: {
1713
1854
  borderColor: '#e12339',
1714
- validationIcon: PaletteIconNotificationError,
1855
+ validationIcon: PaletteIconStatusError,
1715
1856
  validationIconColor: '#e12339'
1716
1857
  }
1717
1858
  },
@@ -2293,7 +2434,7 @@ module.exports = {
2293
2434
  if: { validation: 'success' },
2294
2435
  tokens: {
2295
2436
  borderColor: '#2b8000',
2296
- icon: PaletteIconNotificationSuccess,
2437
+ icon: PaletteIconStatusSuccess,
2297
2438
  iconColor: '#2b8000'
2298
2439
  }
2299
2440
  },
@@ -2301,7 +2442,7 @@ module.exports = {
2301
2442
  if: { validation: 'error' },
2302
2443
  tokens: {
2303
2444
  borderColor: '#e12339',
2304
- icon: PaletteIconNotificationError,
2445
+ icon: PaletteIconStatusError,
2305
2446
  iconColor: '#e12339'
2306
2447
  }
2307
2448
  },
@@ -2833,9 +2974,5 @@ module.exports = {
2833
2974
  tokens: { size: 96 }
2834
2975
  }
2835
2976
  },
2836
- metadata: {
2837
- name: 'allium',
2838
- package: '@telus-uds/theme-allium',
2839
- version: '0.0.2-prerelease.5'
2840
- }
2977
+ metadata: { name: 'allium', package: '@telus-uds/theme-allium' }
2841
2978
  }
package/package.json CHANGED
@@ -1,36 +1,30 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "0.0.2-prerelease.6",
3
+ "version": "0.1.0-prerelease.0",
4
4
  "description": "Allium theme",
5
5
  "author": "TELUS Digital",
6
6
  "homepage": "https://github.com/telus/universal-design-system#readme",
7
- "license": "ISC",
7
+ "license": "UNLICENSED",
8
8
  "main": "build/theme.js",
9
- "react-native": "build/theme.js",
10
- "directories": {
11
- "lib": "lib",
12
- "test": "__tests__"
13
- },
14
9
  "dependencies": {},
15
10
  "devDependencies": {
16
- "@telus-uds/palette-allium": "^1.0.0-prerelease.0",
17
- "@telus-uds/system-themes": "^0.0.2-prerelease.1"
11
+ "@telus-uds/palette-allium": "^1.0.0-prerelease.1",
12
+ "@telus-uds/system-themes": "^0.0.2-prerelease.2"
18
13
  },
19
14
  "peerDependencies": {
20
- "@telus-uds/palette-allium": "^1.0.0-prerelease.0"
15
+ "@telus-uds/palette-allium": "^1.0.0-prerelease.1"
21
16
  },
22
17
  "files": [
23
- "lib",
24
- "src"
18
+ "build",
19
+ "theme.json"
25
20
  ],
26
21
  "repository": {
27
22
  "type": "git",
28
23
  "url": "git+https://github.com/telus/universal-design-system.git"
29
24
  },
30
25
  "scripts": {
31
- "test": "jest",
32
26
  "release": "standard-version",
33
- "build": "THEME_PATH=./src/index.js UDS_THEME_MODULE_PALETTE=@telus-uds/palette-allium UDS_THEME_MODULE_SYSTEM=@telus-uds/system-themes/src/tokens/rn UDS_THEME_MODULE_APPEARANCES=@telus-uds/system-themes/schema/appearances system-themes-build",
27
+ "build": "THEME_PATH=./theme.json UDS_THEME_MODULE_PALETTE=@telus-uds/palette-allium UDS_THEME_MODULE_SYSTEM=@telus-uds/system-themes/src/tokens/rn UDS_THEME_MODULE_APPEARANCES=@telus-uds/system-themes/schema/appearances system-themes-build",
34
28
  "dev": "nodemon -w src -x 'yarn build'"
35
29
  },
36
30
  "bugs": {