@telus-uds/themes-community.theme-allium 0.2.2 → 0.3.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.
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Fri, 17 May 2024 16:24:19 GMT
4
+ * Generated on Mon, 24 Jun 2024 16:18:11 GMT
5
5
  *
6
6
  */
7
7
 
8
-
8
+ import PaletteIconLinkExternal from '@telus-uds/palette-allium/build/rn/icons/LinkExternal'
9
9
  const theme = {
10
10
  components: {
11
11
  ContentCard: {
@@ -48,11 +48,81 @@ const theme = {
48
48
  shadow: null
49
49
  }
50
50
  },
51
- StickyNavigationBar: { appearances: {}, rules: [], tokens: {} }
51
+ StickyNavigationBarTabs: {
52
+ appearances: {
53
+ focus: {
54
+ 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.",
55
+ type: 'state',
56
+ values: [ true, false ]
57
+ },
58
+ hover: {
59
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
60
+ type: 'state',
61
+ values: [ true, false ]
62
+ },
63
+ pressed: {
64
+ 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.',
65
+ type: 'state',
66
+ values: [ true, false ]
67
+ },
68
+ selected: {
69
+ description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
70
+ type: 'state',
71
+ values: [ true ]
72
+ }
73
+ },
74
+ rules: [
75
+ {
76
+ if: { focus: true },
77
+ tokens: { color: '#414547', outerBorderColor: '#414547' }
78
+ },
79
+ {
80
+ if: { hover: true },
81
+ tokens: { color: '#2c2e30', textLine: 'underline' }
82
+ },
83
+ {
84
+ if: { pressed: true },
85
+ tokens: { color: '#2c2e30', textLine: 'none' }
86
+ },
87
+ {
88
+ if: { focus: true, pressed: true },
89
+ tokens: { outerBorderColor: '#163e06' }
90
+ },
91
+ {
92
+ if: { selected: true },
93
+ tokens: {
94
+ blockFontName: 'HelveticaNow',
95
+ blockFontWeight: '700',
96
+ color: '#2c2e30'
97
+ }
98
+ }
99
+ ],
100
+ tokens: {
101
+ alignSelf: 'flex-start',
102
+ blockFontName: 'HelveticaNow',
103
+ blockFontSize: 14,
104
+ blockFontWeight: '400',
105
+ blockLineHeight: 1.5,
106
+ borderRadius: 4,
107
+ color: '#2c2e30',
108
+ externalLinkIcon: PaletteIconLinkExternal,
109
+ icon: null,
110
+ iconSize: 20,
111
+ iconSpace: 1,
112
+ iconTranslateX: 0,
113
+ iconTranslateY: 0,
114
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
115
+ outerBorderGap: 2,
116
+ outerBorderOutline: 'none',
117
+ outerBorderWidth: 2,
118
+ textLine: 'none',
119
+ textLineStyle: 'solid'
120
+ }
121
+ }
52
122
  },
53
123
  metadata: {
54
124
  name: 'themes-community.theme-allium',
55
- themeTokensVersion: '2.56.0'
125
+ themeTokensVersion: '2.58.0'
56
126
  }
57
127
  }
58
128
  export default theme
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Sample theme",
7
7
  "devDependencies": {
8
8
  "@telus-uds/palette-allium": "*",
9
- "@telus-uds/system-theme-tokens": "^2.56.0"
9
+ "@telus-uds/system-theme-tokens": "^2.58.0"
10
10
  },
11
11
  "files": [
12
12
  "build",
@@ -25,5 +25,5 @@
25
25
  "build": "UDS_PALETTE=@telus-uds/palette-allium system-tokens-build-subtheme",
26
26
  "dev": "nodemon -w src -x 'npm run build'"
27
27
  },
28
- "version": "0.2.2"
28
+ "version": "0.3.0"
29
29
  }
package/theme.json CHANGED
@@ -62,10 +62,98 @@
62
62
  "shadow": "{system.shadow.none}"
63
63
  }
64
64
  },
65
- "StickyNavigationBar": {
66
- "appearances": {},
67
- "rules": [],
68
- "tokens": {}
65
+ "StickyNavigationBarTabs": {
66
+ "appearances": {
67
+ "focus": {
68
+ "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.",
69
+ "type": "state",
70
+ "values": [true, false]
71
+ },
72
+ "hover": {
73
+ "description": "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
74
+ "type": "state",
75
+ "values": [true, false]
76
+ },
77
+ "pressed": {
78
+ "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.",
79
+ "type": "state",
80
+ "values": [true, false]
81
+ },
82
+ "selected": {
83
+ "description": "Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.",
84
+ "type": "state",
85
+ "values": [true]
86
+ }
87
+ },
88
+ "rules": [
89
+ {
90
+ "if": {
91
+ "focus": true
92
+ },
93
+ "tokens": {
94
+ "color": "{palette.color.greyCharcoal}",
95
+ "outerBorderColor": "{palette.color.greyCharcoal}"
96
+ }
97
+ },
98
+ {
99
+ "if": {
100
+ "hover": true
101
+ },
102
+ "tokens": {
103
+ "color": "{palette.color.greyThunder}",
104
+ "textLine": "{system.textLine.underline}"
105
+ }
106
+ },
107
+ {
108
+ "if": {
109
+ "pressed": true
110
+ },
111
+ "tokens": {
112
+ "color": "{palette.color.greyThunder}",
113
+ "textLine": "{system.textLine.none}"
114
+ }
115
+ },
116
+ {
117
+ "if": {
118
+ "focus": true,
119
+ "pressed": true
120
+ },
121
+ "tokens": {
122
+ "outerBorderColor": "{palette.color.greenDarkFern}"
123
+ }
124
+ },
125
+ {
126
+ "if": {
127
+ "selected": true
128
+ },
129
+ "tokens": {
130
+ "blockFontName": "{palette.fontName.HelveticaNow}",
131
+ "blockFontWeight": "{palette.fontWeight.weight700}",
132
+ "color": "{palette.color.greyThunder}"
133
+ }
134
+ }
135
+ ],
136
+ "tokens": {
137
+ "alignSelf": "{system.flexAlign.flexStart}",
138
+ "blockFontName": "{palette.fontName.HelveticaNow}",
139
+ "blockFontSize": "{palette.fontSize.size14}",
140
+ "blockFontWeight": "{palette.fontWeight.weight400}",
141
+ "blockLineHeight": "{palette.lineHeight.ratio3to2}",
142
+ "borderRadius": "{palette.radius.radius4}",
143
+ "color": "{palette.color.greyThunder}",
144
+ "externalLinkIcon": "{palette.icon.LinkExternal}",
145
+ "icon": "{system.icon.none}",
146
+ "iconSize": "{palette.size.size20}",
147
+ "iconSpace": "{system.integer.1}",
148
+ "iconTranslateX": "{system.size.zero}",
149
+ "iconTranslateY": "{system.size.zero}",
150
+ "outerBorderColor": "{palette.color.transparent}",
151
+ "outerBorderGap": "{palette.size.size2}",
152
+ "outerBorderOutline": "{system.borderStyle.none}",
153
+ "outerBorderWidth": "{palette.border.border2}",
154
+ "textLine": "{system.textLine.none}",
155
+ "textLineStyle": "{system.textLineStyle.solid}"
156
+ }
69
157
  }
70
158
  }
71
159
  }
@@ -1,5 +0,0 @@
1
- {
2
- "appearances": {},
3
- "rules": [],
4
- "tokens": {}
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "appearances": {},
3
- "rules": [],
4
- "tokens": {}
5
- }
@@ -1,10 +0,0 @@
1
- /*
2
- *
3
- * Do not edit directly
4
- * Generated on Fri, 17 May 2024 16:24:04 GMT
5
- *
6
- */
7
-
8
-
9
-
10
- module.exports = { appearances: {}, rules: [], tokens: {} }
@@ -1,10 +0,0 @@
1
- /*
2
- *
3
- * Do not edit directly
4
- * Generated on Fri, 17 May 2024 16:24:19 GMT
5
- *
6
- */
7
-
8
-
9
- const theme = { appearances: {}, rules: [], tokens: {} }
10
- export default theme