@telus-uds/theme-public-mobile 1.0.0-prerelease.0 → 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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,32 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.0.0](https://github.com/telus/universal-design-system/compare/@telus-uds/theme-public-mobile/v1.0.0-prerelease.0...@telus-uds/theme-public-mobile/v1.0.0) (2022-03-03)
6
+
7
+ ### Features
8
+
9
+ - **components-base:** add ToggleSwitchGroup ([#1307](https://github.com/telus/universal-design-system/issues/1307)) ([402630a](https://github.com/telus/universal-design-system/commit/402630ad04c2d81c4f882fed564cf4ae33096cea))
10
+
11
+ ### Change summary (does not include documentation changes)
12
+
13
+ #### New keys
14
+
15
+ - `components.ToggleSwitch.rules.4.tokens.labelColor`
16
+ - `components.ToggleSwitch.tokens.labelColor`
17
+ - `components.ToggleSwitch.tokens.labelFontName`
18
+ - `components.ToggleSwitch.tokens.labelFontSize`
19
+ - `components.ToggleSwitch.tokens.labelFontWeight`
20
+ - `components.ToggleSwitch.tokens.labelLineHeight`
21
+ - `components.ToggleSwitch.tokens.labelMarginLeft`
22
+ - `components.ToggleSwitchGroup.appearances`
23
+ - `components.ToggleSwitchGroup.rules`
24
+ - `components.ToggleSwitchGroup.tokens.alignItems`
25
+ - `components.ToggleSwitchGroup.tokens.direction`
26
+ - `components.ToggleSwitchGroup.tokens.flexGrow`
27
+ - `components.ToggleSwitchGroup.tokens.flexShrink`
28
+ - `components.ToggleSwitchGroup.tokens.justifyContent`
29
+ - `components.ToggleSwitchGroup.tokens.space`
30
+
5
31
  ## [1.0.0-prerelease.0](https://github.com/telus/universal-design-system/compare/@telus-uds/theme-public-mobile/v0.1.0-prerelease.0...@telus-uds/theme-public-mobile/v1.0.0-prerelease.0) (2022-02-28)
6
32
 
7
33
  ### Features
package/build/schema.json CHANGED
@@ -7856,6 +7856,24 @@
7856
7856
  "iconColor": {
7857
7857
  "$ref": "#color"
7858
7858
  },
7859
+ "labelColor": {
7860
+ "$ref": "#color"
7861
+ },
7862
+ "labelFontName": {
7863
+ "$ref": "#fontName"
7864
+ },
7865
+ "labelFontSize": {
7866
+ "$ref": "#fontSize"
7867
+ },
7868
+ "labelFontWeight": {
7869
+ "$ref": "#fontWeight"
7870
+ },
7871
+ "labelLineHeight": {
7872
+ "$ref": "#lineHeight"
7873
+ },
7874
+ "labelMarginLeft": {
7875
+ "$ref": "#size"
7876
+ },
7859
7877
  "switchSize": {
7860
7878
  "$ref": "#size"
7861
7879
  },
@@ -7898,6 +7916,12 @@
7898
7916
  "trackBorderRadius",
7899
7917
  "iconSize",
7900
7918
  "iconColor",
7919
+ "labelColor",
7920
+ "labelFontName",
7921
+ "labelFontSize",
7922
+ "labelFontWeight",
7923
+ "labelLineHeight",
7924
+ "labelMarginLeft",
7901
7925
  "switchSize",
7902
7926
  "switchColor",
7903
7927
  "switchBorderColor",
@@ -7986,6 +8010,24 @@
7986
8010
  "iconColor": {
7987
8011
  "$ref": "#color"
7988
8012
  },
8013
+ "labelColor": {
8014
+ "$ref": "#color"
8015
+ },
8016
+ "labelFontName": {
8017
+ "$ref": "#fontName"
8018
+ },
8019
+ "labelFontSize": {
8020
+ "$ref": "#fontSize"
8021
+ },
8022
+ "labelFontWeight": {
8023
+ "$ref": "#fontWeight"
8024
+ },
8025
+ "labelLineHeight": {
8026
+ "$ref": "#lineHeight"
8027
+ },
8028
+ "labelMarginLeft": {
8029
+ "$ref": "#size"
8030
+ },
7989
8031
  "switchSize": {
7990
8032
  "$ref": "#size"
7991
8033
  },
@@ -8022,6 +8064,101 @@
8022
8064
  "rules"
8023
8065
  ]
8024
8066
  },
8067
+ "ToggleSwitchGroup": {
8068
+ "type": "object",
8069
+ "additionalProperties": false,
8070
+ "properties": {
8071
+ "appearances": {
8072
+ "type": "object",
8073
+ "additionalProperties": false,
8074
+ "patternProperties": {
8075
+ "^[a-z]+([A-Z0-9][a-z0-9]*)*$": {
8076
+ "$ref": "#appearance"
8077
+ }
8078
+ }
8079
+ },
8080
+ "tokens": {
8081
+ "type": "object",
8082
+ "additionalProperties": false,
8083
+ "properties": {
8084
+ "space": {
8085
+ "$ref": "#integer"
8086
+ },
8087
+ "direction": {
8088
+ "$ref": "#direction"
8089
+ },
8090
+ "alignItems": {
8091
+ "$ref": "#flexAlign"
8092
+ },
8093
+ "justifyContent": {
8094
+ "$ref": "#flexJustifyContent"
8095
+ },
8096
+ "flexGrow": {
8097
+ "$ref": "#integer"
8098
+ },
8099
+ "flexShrink": {
8100
+ "$ref": "#integer"
8101
+ }
8102
+ },
8103
+ "required": [
8104
+ "space",
8105
+ "direction",
8106
+ "alignItems",
8107
+ "justifyContent",
8108
+ "flexGrow",
8109
+ "flexShrink"
8110
+ ]
8111
+ },
8112
+ "rules": {
8113
+ "type": "array",
8114
+ "items": {
8115
+ "type": "object",
8116
+ "additionalProperties": false,
8117
+ "properties": {
8118
+ "if": {
8119
+ "type": "object",
8120
+ "minProperties": 1
8121
+ },
8122
+ "tokens": {
8123
+ "type": "object",
8124
+ "additionalProperties": false,
8125
+ "properties": {
8126
+ "space": {
8127
+ "$ref": "#integer"
8128
+ },
8129
+ "direction": {
8130
+ "$ref": "#direction"
8131
+ },
8132
+ "alignItems": {
8133
+ "$ref": "#flexAlign"
8134
+ },
8135
+ "justifyContent": {
8136
+ "$ref": "#flexJustifyContent"
8137
+ },
8138
+ "flexGrow": {
8139
+ "$ref": "#integer"
8140
+ },
8141
+ "flexShrink": {
8142
+ "$ref": "#integer"
8143
+ }
8144
+ }
8145
+ },
8146
+ "description": {
8147
+ "type": "string"
8148
+ }
8149
+ },
8150
+ "required": [
8151
+ "if",
8152
+ "tokens"
8153
+ ]
8154
+ }
8155
+ }
8156
+ },
8157
+ "required": [
8158
+ "tokens",
8159
+ "rules"
8160
+ ]
8161
+ },
8025
8162
  "Tooltip": {
8026
8163
  "type": "object",
8027
8164
  "additionalProperties": false,
@@ -8557,6 +8694,7 @@
8557
8694
  "TextArea",
8558
8695
  "TextInput",
8559
8696
  "ToggleSwitch",
8697
+ "ToggleSwitchGroup",
8560
8698
  "Tooltip",
8561
8699
  "TooltipButton",
8562
8700
  "Typography",
package/build/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Mon, 28 Feb 2022 15:34:49 GMT
4
+ * Generated on Thu, 03 Mar 2022 12:31:56 GMT
5
5
  *
6
6
  */
7
7
 
@@ -1969,7 +1969,10 @@ module.exports = {
1969
1969
  if: { hover: true, selected: true },
1970
1970
  tokens: { borderColor: '#b6ebdb', switchColor: '#b6ebdb' }
1971
1971
  },
1972
- { if: { inactive: true }, tokens: { opacity: 0.5 } }
1972
+ {
1973
+ if: { inactive: true },
1974
+ tokens: { labelColor: '#034045', opacity: 0.5 }
1975
+ }
1973
1976
  ],
1974
1977
  tokens: {
1975
1978
  alignSelf: 'flex-start',
@@ -1980,6 +1983,12 @@ module.exports = {
1980
1983
  icon: null,
1981
1984
  iconColor: 'rgba(0, 0, 0, 0)',
1982
1985
  iconSize: 16,
1986
+ labelColor: '#034045',
1987
+ labelFontName: 'CerebriSans',
1988
+ labelFontSize: 16,
1989
+ labelFontWeight: '500',
1990
+ labelLineHeight: 1.5,
1991
+ labelMarginLeft: 12,
1983
1992
  opacity: 1,
1984
1993
  outerBackgroundColor: 'rgba(0, 0, 0, 0)',
1985
1994
  outerBorderColor: 'rgba(0, 0, 0, 0)',
@@ -2002,6 +2011,18 @@ module.exports = {
2002
2011
  width: 60
2003
2012
  }
2004
2013
  },
2014
+ ToggleSwitchGroup: {
2015
+ appearances: {},
2016
+ rules: [],
2017
+ tokens: {
2018
+ alignItems: 'flex-start',
2019
+ direction: 'column',
2020
+ flexGrow: 0,
2021
+ flexShrink: 0,
2022
+ justifyContent: 'flex-start',
2023
+ space: 2
2024
+ }
2025
+ },
2005
2026
  Tooltip: {
2006
2027
  appearances: {},
2007
2028
  rules: [],
@@ -2159,5 +2180,5 @@ module.exports = {
2159
2180
  tokens: { size: 90 }
2160
2181
  }
2161
2182
  },
2162
- metadata: { name: 'theme-public-mobile', themeTokensVersion: '1.1.0' }
2183
+ metadata: { name: 'theme-public-mobile', themeTokensVersion: '1.2.0' }
2163
2184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-public-mobile",
3
- "version": "1.0.0-prerelease.0",
3
+ "version": "1.0.0",
4
4
  "description": "Public Mobile theme",
5
5
  "keywords": [
6
6
  "public mobile"
@@ -16,7 +16,7 @@
16
16
  "dependencies": {},
17
17
  "devDependencies": {
18
18
  "@telus-uds/palette-public-mobile": "^0.1.0-prerelease.2",
19
- "@telus-uds/system-theme-tokens": "^1.1.0",
19
+ "@telus-uds/system-theme-tokens": "^1.2.0",
20
20
  "@telus-uds/system-themes": "^0.0.1"
21
21
  },
22
22
  "peerDependencies": {
package/theme.json CHANGED
@@ -2061,6 +2061,7 @@
2061
2061
  "inactive": true
2062
2062
  },
2063
2063
  "tokens": {
2064
+ "labelColor": "{palette.color.parkGreen}",
2064
2065
  "opacity": "{palette.opacity.opacity5}"
2065
2066
  }
2066
2067
  }
@@ -2074,6 +2075,12 @@
2074
2075
  "icon": "{system.icon.none}",
2075
2076
  "iconColor": "{palette.color.transparent}",
2076
2077
  "iconSize": "{palette.size.size16}",
2078
+ "labelColor": "{palette.color.parkGreen}",
2079
+ "labelFontName": "{palette.fontName.CerebriSans}",
2080
+ "labelFontSize": "{palette.fontSize.size16}",
2081
+ "labelFontWeight": "{palette.fontWeight.weight500}",
2082
+ "labelLineHeight": "{palette.lineHeight.multiply150}",
2083
+ "labelMarginLeft": "{palette.size.size12}",
2077
2084
  "opacity": "{system.opacity.opaque}",
2078
2085
  "outerBackgroundColor": "{palette.color.transparent}",
2079
2086
  "outerBorderColor": "{palette.color.transparent}",
@@ -2096,6 +2103,18 @@
2096
2103
  "width": "{palette.size.size60}"
2097
2104
  }
2098
2105
  },
2106
+ "ToggleSwitchGroup": {
2107
+ "appearances": {},
2108
+ "rules": [],
2109
+ "tokens": {
2110
+ "alignItems": "{system.flexAlign.flexStart}",
2111
+ "direction": "{system.direction.column}",
2112
+ "flexGrow": "{system.integer.0}",
2113
+ "flexShrink": "{system.integer.0}",
2114
+ "justifyContent": "{system.flexJustifyContent.flexStart}",
2115
+ "space": "{system.integer.2}"
2116
+ }
2117
+ },
2099
2118
  "Tooltip": {
2100
2119
  "appearances": {},
2101
2120
  "rules": [],