@carbon/type 10.38.0-rc.0 → 10.40.0-rc.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/es/index.js CHANGED
@@ -147,14 +147,9 @@ function ownKeys(object, enumerableOnly) {
147
147
 
148
148
  if (Object.getOwnPropertySymbols) {
149
149
  var symbols = Object.getOwnPropertySymbols(object);
150
-
151
- if (enumerableOnly) {
152
- symbols = symbols.filter(function (sym) {
153
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
154
- });
155
- }
156
-
157
- keys.push.apply(keys, symbols);
150
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
151
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
152
+ })), keys.push.apply(keys, symbols);
158
153
  }
159
154
 
160
155
  return keys;
@@ -162,19 +157,12 @@ function ownKeys(object, enumerableOnly) {
162
157
 
163
158
  function _objectSpread2(target) {
164
159
  for (var i = 1; i < arguments.length; i++) {
165
- var source = arguments[i] != null ? arguments[i] : {};
166
-
167
- if (i % 2) {
168
- ownKeys(Object(source), true).forEach(function (key) {
169
- _defineProperty(target, key, source[key]);
170
- });
171
- } else if (Object.getOwnPropertyDescriptors) {
172
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
173
- } else {
174
- ownKeys(Object(source)).forEach(function (key) {
175
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
176
- });
177
- }
160
+ var source = null != arguments[i] ? arguments[i] : {};
161
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
162
+ _defineProperty(target, key, source[key]);
163
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
164
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
165
+ });
178
166
  }
179
167
 
180
168
  return target;
@@ -183,17 +171,11 @@ function _objectSpread2(target) {
183
171
  function _typeof(obj) {
184
172
  "@babel/helpers - typeof";
185
173
 
186
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
187
- _typeof = function (obj) {
188
- return typeof obj;
189
- };
190
- } else {
191
- _typeof = function (obj) {
192
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
193
- };
194
- }
195
-
196
- return _typeof(obj);
174
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
175
+ return typeof obj;
176
+ } : function (obj) {
177
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
178
+ }, _typeof(obj);
197
179
  }
198
180
 
199
181
  function _defineProperty(obj, key, value) {
package/lib/index.js CHANGED
@@ -151,14 +151,9 @@ function ownKeys(object, enumerableOnly) {
151
151
 
152
152
  if (Object.getOwnPropertySymbols) {
153
153
  var symbols = Object.getOwnPropertySymbols(object);
154
-
155
- if (enumerableOnly) {
156
- symbols = symbols.filter(function (sym) {
157
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
158
- });
159
- }
160
-
161
- keys.push.apply(keys, symbols);
154
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
155
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
156
+ })), keys.push.apply(keys, symbols);
162
157
  }
163
158
 
164
159
  return keys;
@@ -166,19 +161,12 @@ function ownKeys(object, enumerableOnly) {
166
161
 
167
162
  function _objectSpread2(target) {
168
163
  for (var i = 1; i < arguments.length; i++) {
169
- var source = arguments[i] != null ? arguments[i] : {};
170
-
171
- if (i % 2) {
172
- ownKeys(Object(source), true).forEach(function (key) {
173
- _defineProperty(target, key, source[key]);
174
- });
175
- } else if (Object.getOwnPropertyDescriptors) {
176
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
177
- } else {
178
- ownKeys(Object(source)).forEach(function (key) {
179
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
180
- });
181
- }
164
+ var source = null != arguments[i] ? arguments[i] : {};
165
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
166
+ _defineProperty(target, key, source[key]);
167
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
168
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
169
+ });
182
170
  }
183
171
 
184
172
  return target;
@@ -187,17 +175,11 @@ function _objectSpread2(target) {
187
175
  function _typeof(obj) {
188
176
  "@babel/helpers - typeof";
189
177
 
190
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
191
- _typeof = function (obj) {
192
- return typeof obj;
193
- };
194
- } else {
195
- _typeof = function (obj) {
196
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
197
- };
198
- }
199
-
200
- return _typeof(obj);
178
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
179
+ return typeof obj;
180
+ } : function (obj) {
181
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
182
+ }, _typeof(obj);
201
183
  }
202
184
 
203
185
  function _defineProperty(obj, key, value) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/type",
3
3
  "description": "Typography for digital and software products using the Carbon Design System",
4
- "version": "10.38.0-rc.0",
4
+ "version": "10.40.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -38,11 +38,11 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@carbon/import-once": "^10.6.0",
41
- "@carbon/layout": "^10.34.0-rc.0"
41
+ "@carbon/layout": "^10.35.0-rc.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@carbon/cli": "^10.30.0",
45
- "@carbon/test-utils": "^10.19.0",
44
+ "@carbon/cli": "^10.32.0-rc.0",
45
+ "@carbon/test-utils": "^10.21.0-rc.0",
46
46
  "change-case": "^4.1.1",
47
47
  "rimraf": "^3.0.0"
48
48
  },
@@ -52,5 +52,5 @@
52
52
  "sassDir": "scss",
53
53
  "needs": "^1.3.0"
54
54
  },
55
- "gitHead": "b5f01ac2dbf9e5acb901cfc939b4ddd4d951a35e"
55
+ "gitHead": "a8bade7e1200220296e8ed13621c7a1a88206f0e"
56
56
  }
@@ -43,6 +43,10 @@ $font-families: (
43
43
  unquote(
44
44
  "'IBM Plex Sans KR', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
45
45
  ),
46
+ 'sans-thai-looped':
47
+ unquote(
48
+ "'IBM Plex Sans Thai Looped', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
49
+ ),
46
50
  'sans-thai':
47
51
  unquote(
48
52
  "'IBM Plex Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif"
@@ -12,77 +12,77 @@ import * as CarbonType from '../';
12
12
  describe('type', () => {
13
13
  it('should export type helpers', () => {
14
14
  expect(Object.keys(CarbonType)).toMatchInlineSnapshot(`
15
- Array [
16
- "fontFamilies",
17
- "fontFamily",
18
- "fontWeights",
19
- "fontWeight",
20
- "print",
21
- "reset",
22
- "getTypeSize",
23
- "scale",
24
- "fluid",
25
- "unstable_tokens",
26
- "styles",
27
- "caption01",
28
- "caption02",
29
- "label01",
30
- "label02",
31
- "helperText01",
32
- "helperText02",
33
- "bodyShort01",
34
- "bodyLong01",
35
- "bodyShort02",
36
- "bodyLong02",
37
- "code01",
38
- "code02",
39
- "heading01",
40
- "productiveHeading01",
41
- "heading02",
42
- "productiveHeading02",
43
- "productiveHeading03",
44
- "productiveHeading04",
45
- "productiveHeading05",
46
- "productiveHeading06",
47
- "productiveHeading07",
48
- "expressiveHeading01",
49
- "expressiveHeading02",
50
- "expressiveHeading03",
51
- "expressiveHeading04",
52
- "expressiveHeading05",
53
- "expressiveHeading06",
54
- "expressiveParagraph01",
55
- "quotation01",
56
- "quotation02",
57
- "display01",
58
- "display02",
59
- "display03",
60
- "display04",
61
- "legal01",
62
- "legal02",
63
- "bodyCompact01",
64
- "bodyCompact02",
65
- "body01",
66
- "body02",
67
- "headingCompact01",
68
- "headingCompact02",
69
- "heading03",
70
- "heading04",
71
- "heading05",
72
- "heading06",
73
- "heading07",
74
- "fluidHeading03",
75
- "fluidHeading04",
76
- "fluidHeading05",
77
- "fluidHeading06",
78
- "fluidParagraph01",
79
- "fluidQuotation01",
80
- "fluidQuotation02",
81
- "fluidDisplay01",
82
- "fluidDisplay02",
83
- "fluidDisplay03",
84
- "fluidDisplay04",
85
- ]
86
- `);
15
+ Array [
16
+ "fluid",
17
+ "fontFamilies",
18
+ "fontFamily",
19
+ "fontWeight",
20
+ "fontWeights",
21
+ "getTypeSize",
22
+ "print",
23
+ "reset",
24
+ "scale",
25
+ "styles",
26
+ "unstable_tokens",
27
+ "body01",
28
+ "body02",
29
+ "bodyCompact01",
30
+ "bodyCompact02",
31
+ "bodyLong01",
32
+ "bodyLong02",
33
+ "bodyShort01",
34
+ "bodyShort02",
35
+ "caption01",
36
+ "caption02",
37
+ "code01",
38
+ "code02",
39
+ "display01",
40
+ "display02",
41
+ "display03",
42
+ "display04",
43
+ "expressiveHeading01",
44
+ "expressiveHeading02",
45
+ "expressiveHeading03",
46
+ "expressiveHeading04",
47
+ "expressiveHeading05",
48
+ "expressiveHeading06",
49
+ "expressiveParagraph01",
50
+ "fluidDisplay01",
51
+ "fluidDisplay02",
52
+ "fluidDisplay03",
53
+ "fluidDisplay04",
54
+ "fluidHeading03",
55
+ "fluidHeading04",
56
+ "fluidHeading05",
57
+ "fluidHeading06",
58
+ "fluidParagraph01",
59
+ "fluidQuotation01",
60
+ "fluidQuotation02",
61
+ "heading01",
62
+ "heading02",
63
+ "heading03",
64
+ "heading04",
65
+ "heading05",
66
+ "heading06",
67
+ "heading07",
68
+ "headingCompact01",
69
+ "headingCompact02",
70
+ "helperText01",
71
+ "helperText02",
72
+ "label01",
73
+ "label02",
74
+ "legal01",
75
+ "legal02",
76
+ "productiveHeading01",
77
+ "productiveHeading02",
78
+ "productiveHeading03",
79
+ "productiveHeading04",
80
+ "productiveHeading05",
81
+ "productiveHeading06",
82
+ "productiveHeading07",
83
+ "quotation01",
84
+ "quotation02",
85
+ ]
86
+ `);
87
87
  });
88
88
  });
package/umd/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@carbon/layout')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', '@carbon/layout'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CarbonType = {}, global.CarbonLayout));
5
- }(this, (function (exports, layout) { 'use strict';
5
+ })(this, (function (exports, layout) { 'use strict';
6
6
 
7
7
  /**
8
8
  * Copyright IBM Corp. 2018, 2018
@@ -151,14 +151,9 @@
151
151
 
152
152
  if (Object.getOwnPropertySymbols) {
153
153
  var symbols = Object.getOwnPropertySymbols(object);
154
-
155
- if (enumerableOnly) {
156
- symbols = symbols.filter(function (sym) {
157
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
158
- });
159
- }
160
-
161
- keys.push.apply(keys, symbols);
154
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
155
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
156
+ })), keys.push.apply(keys, symbols);
162
157
  }
163
158
 
164
159
  return keys;
@@ -166,19 +161,12 @@
166
161
 
167
162
  function _objectSpread2(target) {
168
163
  for (var i = 1; i < arguments.length; i++) {
169
- var source = arguments[i] != null ? arguments[i] : {};
170
-
171
- if (i % 2) {
172
- ownKeys(Object(source), true).forEach(function (key) {
173
- _defineProperty(target, key, source[key]);
174
- });
175
- } else if (Object.getOwnPropertyDescriptors) {
176
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
177
- } else {
178
- ownKeys(Object(source)).forEach(function (key) {
179
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
180
- });
181
- }
164
+ var source = null != arguments[i] ? arguments[i] : {};
165
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
166
+ _defineProperty(target, key, source[key]);
167
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
168
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
169
+ });
182
170
  }
183
171
 
184
172
  return target;
@@ -187,17 +175,11 @@
187
175
  function _typeof(obj) {
188
176
  "@babel/helpers - typeof";
189
177
 
190
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
191
- _typeof = function (obj) {
192
- return typeof obj;
193
- };
194
- } else {
195
- _typeof = function (obj) {
196
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
197
- };
198
- }
199
-
200
- return _typeof(obj);
178
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
179
+ return typeof obj;
180
+ } : function (obj) {
181
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
182
+ }, _typeof(obj);
201
183
  }
202
184
 
203
185
  function _defineProperty(obj, key, value) {
@@ -958,4 +940,4 @@
958
940
 
959
941
  Object.defineProperty(exports, '__esModule', { value: true });
960
942
 
961
- })));
943
+ }));