@telus-uds/theme-koodo 3.22.0 → 3.23.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.
package/build/rn/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 20 Apr 2023 19:04:46 GMT
4
+ * Generated on Mon, 24 Apr 2023 21:32:41 GMT
5
5
  *
6
6
  */
7
7
 
@@ -14,6 +14,11 @@ const PaletteIconArrowRight = require('@telus-uds/palette-koodo/build/rn/icons/A
14
14
  const PaletteIconArrowLeft = require('@telus-uds/palette-koodo/build/rn/icons/ArrowLeft')
15
15
  const PaletteIconCheckCircledFilled = require('@telus-uds/palette-koodo/build/rn/icons/CheckCircledFilled')
16
16
  const PaletteIconCaution = require('@telus-uds/palette-koodo/build/rn/icons/Caution')
17
+ const PaletteIconAdd = require('@telus-uds/palette-koodo/build/rn/icons/Add')
18
+ const PaletteIconSubtract = require('@telus-uds/palette-koodo/build/rn/icons/Subtract')
19
+ const PaletteIconClose = require('@telus-uds/palette-koodo/build/rn/icons/Close')
20
+ const PaletteIconExpand = require('@telus-uds/palette-koodo/build/rn/icons/Expand')
21
+ const PaletteIconPlayVideo = require('@telus-uds/palette-koodo/build/rn/icons/PlayVideo')
17
22
  const PaletteIconTimes = require('@telus-uds/palette-koodo/build/rn/icons/Times')
18
23
  const PaletteIconExclamationTriangle = require('@telus-uds/palette-koodo/build/rn/icons/ExclamationTriangle')
19
24
  const PaletteIconExclamationOctagon = require('@telus-uds/palette-koodo/build/rn/icons/ExclamationOctagon')
@@ -104,6 +109,20 @@ module.exports = {
104
109
  paddingTop: 2
105
110
  }
106
111
  },
112
+ BlockQuote: {
113
+ appearances: {},
114
+ rules: [],
115
+ tokens: {
116
+ backgroundGradient: null,
117
+ color: '#016b6a',
118
+ marginBottom: 16,
119
+ paddingBottom: 16,
120
+ paddingLeft: 32,
121
+ paddingRight: 32,
122
+ paddingTop: 16,
123
+ width: 2
124
+ }
125
+ },
107
126
  Box: {
108
127
  appearances: {
109
128
  background: {
@@ -890,7 +909,7 @@ module.exports = {
890
909
  borderWidth: 0,
891
910
  contentAlignItems: 'stretch',
892
911
  contentFlexGrow: 0,
893
- contentFlexShrink: 0,
912
+ contentFlexShrink: 1,
894
913
  contentJustifyContent: 'flex-start',
895
914
  flex: 1,
896
915
  minWidth: null,
@@ -1551,6 +1570,16 @@ module.exports = {
1551
1570
  },
1552
1571
  IconButton: {
1553
1572
  appearances: {
1573
+ action: {
1574
+ type: 'variant',
1575
+ values: [
1576
+ 'add', 'close',
1577
+ 'expand', 'moveDown',
1578
+ 'moveLeft', 'moveRight',
1579
+ 'moveUp', 'play',
1580
+ 'subtract'
1581
+ ]
1582
+ },
1554
1583
  compact: {
1555
1584
  description: 'Without the outer border gap',
1556
1585
  type: 'variant',
@@ -1596,6 +1625,39 @@ module.exports = {
1596
1625
  size: { type: 'variant', values: [ 'small', 'large' ] }
1597
1626
  },
1598
1627
  rules: [
1628
+ { if: { action: 'add' }, tokens: { icon: PaletteIconAdd } },
1629
+ {
1630
+ if: { action: 'subtract' },
1631
+ tokens: { icon: PaletteIconSubtract }
1632
+ },
1633
+ {
1634
+ if: { action: 'close' },
1635
+ tokens: { icon: PaletteIconClose }
1636
+ },
1637
+ {
1638
+ if: { action: 'expand' },
1639
+ tokens: { icon: PaletteIconExpand }
1640
+ },
1641
+ {
1642
+ if: { action: 'moveDown' },
1643
+ tokens: { icon: PaletteIconChevronDown }
1644
+ },
1645
+ {
1646
+ if: { action: 'moveLeft' },
1647
+ tokens: { icon: PaletteIconChevronLeft }
1648
+ },
1649
+ {
1650
+ if: { action: 'moveRight' },
1651
+ tokens: { icon: PaletteIconChevronRight }
1652
+ },
1653
+ {
1654
+ if: { action: 'moveUp' },
1655
+ tokens: { icon: PaletteIconChevronUp }
1656
+ },
1657
+ {
1658
+ if: { action: 'play' },
1659
+ tokens: { icon: PaletteIconPlayVideo }
1660
+ },
1599
1661
  { if: { inverse: true }, tokens: { iconColor: '#ffffff' } },
1600
1662
  {
1601
1663
  if: { hover: true },
@@ -1755,6 +1817,7 @@ module.exports = {
1755
1817
  borderColor: 'transparent',
1756
1818
  borderRadius: 99999999999999,
1757
1819
  borderWidth: 1,
1820
+ icon: null,
1758
1821
  iconColor: '#000000',
1759
1822
  iconScale: 1,
1760
1823
  iconSize: 16,
@@ -1975,6 +2038,111 @@ module.exports = {
1975
2038
  listGutter: 10
1976
2039
  }
1977
2040
  },
2041
+ ListBox: {
2042
+ appearances: {
2043
+ current: {
2044
+ description: 'When the current item is selected',
2045
+ type: 'state',
2046
+ values: [ true ]
2047
+ },
2048
+ expanded: {
2049
+ description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
2050
+ type: 'state',
2051
+ values: [ true ]
2052
+ },
2053
+ focus: {
2054
+ 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.",
2055
+ platforms: [ 'rn' ],
2056
+ type: 'state',
2057
+ values: [ true ]
2058
+ },
2059
+ hover: {
2060
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
2061
+ platforms: [ 'rn' ],
2062
+ type: 'state',
2063
+ values: [ true ]
2064
+ },
2065
+ isChild: {
2066
+ description: 'when the item is child of another child',
2067
+ type: 'state',
2068
+ values: [ true ]
2069
+ },
2070
+ pressed: {
2071
+ 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.',
2072
+ type: 'state',
2073
+ values: [ true ]
2074
+ }
2075
+ },
2076
+ rules: [
2077
+ {
2078
+ if: { pressed: true },
2079
+ tokens: { groupBackgroundColor: '#bbeaf5', groupColor: '#016b6a' }
2080
+ },
2081
+ {
2082
+ if: { hover: true },
2083
+ tokens: { groupBackgroundColor: '#c9c8c8', groupColor: '#016b6a' }
2084
+ },
2085
+ {
2086
+ if: { focus: true },
2087
+ tokens: { groupBackgroundColor: '#c9c8c8', groupColor: '#016b6a' }
2088
+ },
2089
+ {
2090
+ if: { current: true },
2091
+ tokens: {
2092
+ groupColor: '#016b6a',
2093
+ groupFontName: 'StagSans',
2094
+ groupFontWeight: '700'
2095
+ }
2096
+ },
2097
+ {
2098
+ if: { isChild: true },
2099
+ tokens: { itemBorderWidth: 4, itemPaddingLeft: 12 }
2100
+ },
2101
+ {
2102
+ if: { expanded: true },
2103
+ tokens: { groupIcon: PaletteIconChevronUp }
2104
+ }
2105
+ ],
2106
+ tokens: {
2107
+ groupBackgroundColor: 'rgba(0, 0, 0, 0)',
2108
+ groupBorderColor: '#016b6a',
2109
+ groupBorderRadius: 6,
2110
+ groupBorderWidth: 1,
2111
+ groupColor: '#e5f7fb',
2112
+ groupFontName: 'StagSans',
2113
+ groupFontSize: 14,
2114
+ groupFontWeight: '400',
2115
+ groupIcon: PaletteIconChevronDown,
2116
+ groupPaddingBottom: 12,
2117
+ groupPaddingLeft: 16,
2118
+ groupPaddingRight: 16,
2119
+ groupPaddingTop: 12,
2120
+ itemBackgroundColor: 'rgba(0, 0, 0, 0)',
2121
+ itemBorderBackgroundColor: '#bbeaf5',
2122
+ itemBorderLeftColor: '#016b6a',
2123
+ itemBorderLeftWidth: 4,
2124
+ itemBorderWidth: 0,
2125
+ itemColor: '#016b6a',
2126
+ itemDisplay: false,
2127
+ itemFontName: 'StagSans',
2128
+ itemFontSize: 14,
2129
+ itemFontWeight: '700',
2130
+ itemOutline: 0,
2131
+ itemPaddingBottom: 12,
2132
+ itemPaddingLeft: 16,
2133
+ itemPaddingRight: 16,
2134
+ itemPaddingTop: 12,
2135
+ itemTextDecoration: 'none',
2136
+ shadow: {
2137
+ blur: 2,
2138
+ color: 'rgba(0, 0, 0, 0.1)',
2139
+ inset: false,
2140
+ offsetX: 0,
2141
+ offsetY: 2,
2142
+ spread: 0
2143
+ }
2144
+ }
2145
+ },
1978
2146
  Modal: {
1979
2147
  appearances: {
1980
2148
  maxWidth: {
@@ -2881,7 +3049,7 @@ module.exports = {
2881
3049
  color: '#000000',
2882
3050
  contentAlignItems: 'stretch',
2883
3051
  contentFlexGrow: 0,
2884
- contentFlexShrink: 0,
3052
+ contentFlexShrink: 1,
2885
3053
  contentJustifyContent: 'flex-start',
2886
3054
  contentSpace: 2,
2887
3055
  flex: 1,
@@ -4324,5 +4492,5 @@ module.exports = {
4324
4492
  tokens: { size: 96 }
4325
4493
  }
4326
4494
  },
4327
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.21.0' }
4495
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.22.0' }
4328
4496
  }
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  },
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
- "@telus-uds/palette-koodo": "^0.12.0",
9
- "@telus-uds/system-theme-tokens": "^2.21.0"
8
+ "@telus-uds/palette-koodo": "^0.13.0",
9
+ "@telus-uds/system-theme-tokens": "^2.22.0"
10
10
  },
11
11
  "files": [
12
12
  "build",
@@ -20,7 +20,7 @@
20
20
  "main": "build/rn/theme.js",
21
21
  "name": "@telus-uds/theme-koodo",
22
22
  "peerDependencies": {
23
- "@telus-uds/palette-koodo": "^0.12.0"
23
+ "@telus-uds/palette-koodo": "^0.13.0"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",
@@ -31,5 +31,5 @@
31
31
  "build": "UDS_PALETTE=@telus-uds/palette-koodo system-tokens-build-theme",
32
32
  "dev": "nodemon -w src -x 'npm run build'"
33
33
  },
34
- "version": "3.22.0"
34
+ "version": "3.23.0"
35
35
  }
package/theme.json CHANGED
@@ -119,6 +119,20 @@
119
119
  "paddingTop": "{palette.size.size2}"
120
120
  }
121
121
  },
122
+ "BlockQuote": {
123
+ "appearances": {},
124
+ "rules": [],
125
+ "tokens": {
126
+ "backgroundGradient": "{system.gradient.none}",
127
+ "color": "{palette.color.mosque}",
128
+ "marginBottom": "{palette.size.size16}",
129
+ "paddingBottom": "{palette.size.size16}",
130
+ "paddingLeft": "{palette.size.size32}",
131
+ "paddingRight": "{palette.size.size32}",
132
+ "paddingTop": "{palette.size.size16}",
133
+ "width": "{palette.size.size2}"
134
+ }
135
+ },
122
136
  "Box": {
123
137
  "appearances": {
124
138
  "background": {
@@ -1234,7 +1248,7 @@
1234
1248
  "borderWidth": "{palette.border.none}",
1235
1249
  "contentAlignItems": "{system.flexAlign.stretch}",
1236
1250
  "contentFlexGrow": "{system.integer.0}",
1237
- "contentFlexShrink": "{system.integer.0}",
1251
+ "contentFlexShrink": "{system.integer.1}",
1238
1252
  "contentJustifyContent": "{system.flexJustifyContent.flexStart}",
1239
1253
  "flex": "{system.integer.1}",
1240
1254
  "minWidth": "{system.size.none}",
@@ -2129,6 +2143,20 @@
2129
2143
  },
2130
2144
  "IconButton": {
2131
2145
  "appearances": {
2146
+ "action": {
2147
+ "type": "variant",
2148
+ "values": [
2149
+ "add",
2150
+ "close",
2151
+ "expand",
2152
+ "moveDown",
2153
+ "moveLeft",
2154
+ "moveRight",
2155
+ "moveUp",
2156
+ "play",
2157
+ "subtract"
2158
+ ]
2159
+ },
2132
2160
  "compact": {
2133
2161
  "description": "Without the outer border gap",
2134
2162
  "type": "variant",
@@ -2159,6 +2187,78 @@
2159
2187
  }
2160
2188
  },
2161
2189
  "rules": [
2190
+ {
2191
+ "if": {
2192
+ "action": "add"
2193
+ },
2194
+ "tokens": {
2195
+ "icon": "{palette.icon.Add}"
2196
+ }
2197
+ },
2198
+ {
2199
+ "if": {
2200
+ "action": "subtract"
2201
+ },
2202
+ "tokens": {
2203
+ "icon": "{palette.icon.Subtract}"
2204
+ }
2205
+ },
2206
+ {
2207
+ "if": {
2208
+ "action": "close"
2209
+ },
2210
+ "tokens": {
2211
+ "icon": "{palette.icon.Close}"
2212
+ }
2213
+ },
2214
+ {
2215
+ "if": {
2216
+ "action": "expand"
2217
+ },
2218
+ "tokens": {
2219
+ "icon": "{palette.icon.Expand}"
2220
+ }
2221
+ },
2222
+ {
2223
+ "if": {
2224
+ "action": "moveDown"
2225
+ },
2226
+ "tokens": {
2227
+ "icon": "{palette.icon.ChevronDown}"
2228
+ }
2229
+ },
2230
+ {
2231
+ "if": {
2232
+ "action": "moveLeft"
2233
+ },
2234
+ "tokens": {
2235
+ "icon": "{palette.icon.ChevronLeft}"
2236
+ }
2237
+ },
2238
+ {
2239
+ "if": {
2240
+ "action": "moveRight"
2241
+ },
2242
+ "tokens": {
2243
+ "icon": "{palette.icon.ChevronRight}"
2244
+ }
2245
+ },
2246
+ {
2247
+ "if": {
2248
+ "action": "moveUp"
2249
+ },
2250
+ "tokens": {
2251
+ "icon": "{palette.icon.ChevronUp}"
2252
+ }
2253
+ },
2254
+ {
2255
+ "if": {
2256
+ "action": "play"
2257
+ },
2258
+ "tokens": {
2259
+ "icon": "{palette.icon.PlayVideo}"
2260
+ }
2261
+ },
2162
2262
  {
2163
2263
  "if": {
2164
2264
  "inverse": true
@@ -2409,6 +2509,7 @@
2409
2509
  "borderColor": "{system.color.transparent}",
2410
2510
  "borderRadius": "{system.radius.round}",
2411
2511
  "borderWidth": "{palette.border.border1}",
2512
+ "icon": "{system.icon.none}",
2412
2513
  "iconColor": "{palette.color.black}",
2413
2514
  "iconScale": "{system.iconScale.scale1}",
2414
2515
  "iconSize": "{palette.size.size16}",
@@ -2749,6 +2850,104 @@
2749
2850
  "listGutter": "{palette.size.size10}"
2750
2851
  }
2751
2852
  },
2853
+ "ListBox": {
2854
+ "appearances": {
2855
+ "current": "{appearances.ListBox.current}",
2856
+ "expanded": "{appearances.ListBox.expanded}",
2857
+ "focus": "{appearances.ListBox.focus}",
2858
+ "hover": "{appearances.ListBox.hover}",
2859
+ "isChild": "{appearances.ListBox.isChild}",
2860
+ "pressed": "{appearances.ListBox.pressed}"
2861
+ },
2862
+ "rules": [
2863
+ {
2864
+ "if": {
2865
+ "pressed": true
2866
+ },
2867
+ "tokens": {
2868
+ "groupBackgroundColor": "{palette.color.icicleDark}",
2869
+ "groupColor": "{palette.color.mosque}"
2870
+ }
2871
+ },
2872
+ {
2873
+ "if": {
2874
+ "hover": true
2875
+ },
2876
+ "tokens": {
2877
+ "groupBackgroundColor": "{palette.color.silver}",
2878
+ "groupColor": "{palette.color.mosque}"
2879
+ }
2880
+ },
2881
+ {
2882
+ "if": {
2883
+ "focus": true
2884
+ },
2885
+ "tokens": {
2886
+ "groupBackgroundColor": "{palette.color.silver}",
2887
+ "groupColor": "{palette.color.mosque}"
2888
+ }
2889
+ },
2890
+ {
2891
+ "if": {
2892
+ "current": true
2893
+ },
2894
+ "tokens": {
2895
+ "groupColor": "{palette.color.mosque}",
2896
+ "groupFontName": "{palette.fontName.StagSans}",
2897
+ "groupFontWeight": "{palette.fontWeight.weight700}"
2898
+ }
2899
+ },
2900
+ {
2901
+ "if": {
2902
+ "isChild": true
2903
+ },
2904
+ "tokens": {
2905
+ "itemBorderWidth": "{palette.border.border4}",
2906
+ "itemPaddingLeft": "{palette.size.size12}"
2907
+ }
2908
+ },
2909
+ {
2910
+ "if": {
2911
+ "expanded": true
2912
+ },
2913
+ "tokens": {
2914
+ "groupIcon": "{palette.icon.ChevronUp}"
2915
+ }
2916
+ }
2917
+ ],
2918
+ "tokens": {
2919
+ "groupBackgroundColor": "{palette.color.transparent}",
2920
+ "groupBorderColor": "{palette.color.mosque}",
2921
+ "groupBorderRadius": "{palette.radius.radius6}",
2922
+ "groupBorderWidth": "{palette.border.border1}",
2923
+ "groupColor": "{palette.color.icicle}",
2924
+ "groupFontName": "{palette.fontName.StagSans}",
2925
+ "groupFontSize": "{palette.size.size14}",
2926
+ "groupFontWeight": "{palette.fontWeight.weight400}",
2927
+ "groupIcon": "{palette.icon.ChevronDown}",
2928
+ "groupPaddingBottom": "{palette.size.size12}",
2929
+ "groupPaddingLeft": "{palette.size.size16}",
2930
+ "groupPaddingRight": "{palette.size.size16}",
2931
+ "groupPaddingTop": "{palette.size.size12}",
2932
+ "itemBackgroundColor": "{palette.color.transparent}",
2933
+ "itemBorderBackgroundColor": "{palette.color.icicleDark}",
2934
+ "itemBorderLeftColor": "{palette.color.mosque}",
2935
+ "itemBorderLeftWidth": "{palette.border.border4}",
2936
+ "itemBorderWidth": "{palette.border.none}",
2937
+ "itemColor": "{palette.color.mosque}",
2938
+ "itemDisplay": "{system.show.false}",
2939
+ "itemFontName": "{palette.fontName.StagSans}",
2940
+ "itemFontSize": "{palette.size.size14}",
2941
+ "itemFontWeight": "{palette.fontWeight.weight700}",
2942
+ "itemOutline": "{palette.border.none}",
2943
+ "itemPaddingBottom": "{palette.size.size12}",
2944
+ "itemPaddingLeft": "{palette.size.size16}",
2945
+ "itemPaddingRight": "{palette.size.size16}",
2946
+ "itemPaddingTop": "{palette.size.size12}",
2947
+ "itemTextDecoration": "{system.textLine.none}",
2948
+ "shadow": "{palette.shadow.surfaceRaised}"
2949
+ }
2950
+ },
2752
2951
  "Modal": {
2753
2952
  "appearances": {
2754
2953
  "maxWidth": "{appearances.Modal.maxWidth}",
@@ -3702,7 +3901,7 @@
3702
3901
  "color": "{palette.color.black}",
3703
3902
  "contentAlignItems": "{system.flexAlign.stretch}",
3704
3903
  "contentFlexGrow": "{system.integer.0}",
3705
- "contentFlexShrink": "{system.integer.0}",
3904
+ "contentFlexShrink": "{system.integer.1}",
3706
3905
  "contentJustifyContent": "{system.flexJustifyContent.flexStart}",
3707
3906
  "contentSpace": "{system.integer.2}",
3708
3907
  "flex": "{system.integer.1}",