@carbon/elements 11.89.0-rc.0 → 11.89.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/lib/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2026
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export { black, black100, blue, blue10, blue20, blue30, blue40, blue50, blue60, blue70, blue80, blue90, blue100, colors, coolGray, coolGray10, coolGray20, coolGray30, coolGray40, coolGray50, coolGray60, coolGray70, coolGray80, coolGray90, coolGray100, cyan, cyan10, cyan20, cyan30, cyan40, cyan50, cyan60, cyan70, cyan80, cyan90, cyan100, gray, gray10, gray20, gray30, gray40, gray50, gray60, gray70, gray80, gray90, gray100, green, green10, green20, green30, green40, green50, green60, green70, green80, green90, green100, magenta, magenta10, magenta20, magenta30, magenta40, magenta50, magenta60, magenta70, magenta80, magenta90, magenta100, orange, orange40, orange60, orange70, purple, purple10, purple20, purple30, purple40, purple50, purple60, purple70, purple80, purple90, purple100, red, red10, red20, red30, red40, red50, red60, red70, red80, red90, red100, rgba, teal, teal10, teal20, teal30, teal40, teal50, teal60, teal70, teal80, teal90, teal100, warmGray, warmGray10, warmGray20, warmGray30, warmGray40, warmGray50, warmGray60, warmGray70, warmGray80, warmGray90, warmGray100, white0, yellow, yellow20, yellow30, yellow40, yellow50, } from '@carbon/colors';
8
+ export { fluid, fontFamilies, fontFamily, fontWeights, fontWeight, print, reset, getTypeSize, scale, styles, unstable_tokens, } from '@carbon/type';
9
+ export { baseFontSize, rem, em, px, breakpoints, breakpointUp, breakpointDown, breakpoint, container, fluidSpacing, iconSize, miniUnit, miniUnits, spacing, } from '@carbon/layout';
10
+ export * from '@carbon/themes';
11
+ export { fast01, fast02, moderate01, moderate02, slow01, slow02, easings, motion, } from '@carbon/motion';
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@carbon/elements",
3
3
  "description": "A collection of design elements in code for the IBM Design Language",
4
- "version": "11.89.0-rc.0",
4
+ "version": "11.89.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
7
8
  "module": "es/index.js",
8
9
  "sass": "index.scss",
9
10
  "repository": {
@@ -15,7 +16,6 @@
15
16
  "files": [
16
17
  "es",
17
18
  "lib",
18
- "src",
19
19
  "umd",
20
20
  "index.scss",
21
21
  "telemetry.yml"
@@ -34,25 +34,28 @@
34
34
  "provenance": true
35
35
  },
36
36
  "scripts": {
37
- "build": "yarn clean && carbon-cli bundle src/index.js --name CarbonElements",
37
+ "build:types": "tsc -p tsconfig.types.json",
38
+ "build": "yarn clean && carbon-cli bundle src/index.ts --name CarbonElements && yarn build:types",
38
39
  "clean": "rimraf es lib umd",
39
40
  "postinstall": "ibmtelemetry --config=telemetry.yml"
40
41
  },
41
42
  "dependencies": {
42
43
  "@carbon/colors": "^11.51.0",
43
- "@carbon/grid": "^11.55.0-rc.0",
44
- "@carbon/icons": "^11.80.0-rc.0",
44
+ "@carbon/grid": "^11.55.0",
45
+ "@carbon/icons": "^11.80.0",
45
46
  "@carbon/layout": "^11.52.0",
46
47
  "@carbon/motion": "^11.45.0",
47
- "@carbon/themes": "^11.73.0-rc.0",
48
- "@carbon/type": "^11.59.0-rc.0",
48
+ "@carbon/themes": "^11.73.0",
49
+ "@carbon/type": "^11.59.0",
49
50
  "@ibm/telemetry-js": "^1.5.0"
50
51
  },
51
52
  "devDependencies": {
52
53
  "@carbon/cli": "^11.43.0",
53
54
  "fs-extra": "^11.0.0",
54
55
  "klaw-sync": "^6.0.0",
55
- "rimraf": "^6.0.1"
56
+ "rimraf": "^6.0.1",
57
+ "typescript": "^5.7.3",
58
+ "typescript-config-carbon": "^0.9.0"
56
59
  },
57
- "gitHead": "32de263c201d0424d86bc47d97d1c085abecb24e"
60
+ "gitHead": "13c5c427ad4413aea5184a0a593e6452bc163e4a"
58
61
  }
@@ -1,12 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2018, 2023
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- import * as CarbonElements from '../';
9
-
10
- test('Public API should only change with a semver change', () => {
11
- expect(Object.keys(CarbonElements).sort()).toMatchSnapshot();
12
- });
@@ -1,482 +0,0 @@
1
- // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
-
3
- exports[`Public API should only change with a semver change 1`] = `
4
- [
5
- "aiAuraEnd",
6
- "aiAuraHoverBackground",
7
- "aiAuraHoverEnd",
8
- "aiAuraHoverStart",
9
- "aiAuraStart",
10
- "aiAuraStartSm",
11
- "aiBorderEnd",
12
- "aiBorderStart",
13
- "aiBorderStrong",
14
- "aiDropShadow",
15
- "aiInnerShadow",
16
- "aiOverlay",
17
- "aiPopoverBackground",
18
- "aiPopoverCaretBottom",
19
- "aiPopoverCaretBottomBackground",
20
- "aiPopoverCaretBottomBackgroundActions",
21
- "aiPopoverCaretCenter",
22
- "aiPopoverShadowOuter01",
23
- "aiPopoverShadowOuter02",
24
- "aiSkeletonBackground",
25
- "aiSkeletonElementBackground",
26
- "background",
27
- "backgroundActive",
28
- "backgroundBrand",
29
- "backgroundHover",
30
- "backgroundInverse",
31
- "backgroundInverseHover",
32
- "backgroundSelected",
33
- "backgroundSelectedHover",
34
- "baseFontSize",
35
- "black",
36
- "black100",
37
- "blue",
38
- "blue10",
39
- "blue100",
40
- "blue20",
41
- "blue30",
42
- "blue40",
43
- "blue50",
44
- "blue60",
45
- "blue70",
46
- "blue80",
47
- "blue90",
48
- "bodyLong01",
49
- "bodyLong02",
50
- "bodyShort01",
51
- "bodyShort02",
52
- "borderDisabled",
53
- "borderInteractive",
54
- "borderInverse",
55
- "borderStrong01",
56
- "borderStrong02",
57
- "borderStrong03",
58
- "borderSubtle00",
59
- "borderSubtle01",
60
- "borderSubtle02",
61
- "borderSubtle03",
62
- "borderSubtleSelected01",
63
- "borderSubtleSelected02",
64
- "borderSubtleSelected03",
65
- "borderTile01",
66
- "borderTile02",
67
- "borderTile03",
68
- "breakpoint",
69
- "breakpointDown",
70
- "breakpointUp",
71
- "breakpoints",
72
- "buttonTokens",
73
- "caption01",
74
- "caption02",
75
- "chatAvatarAgent",
76
- "chatAvatarBot",
77
- "chatAvatarUser",
78
- "chatBubbleAgent",
79
- "chatBubbleAgentText",
80
- "chatBubbleBorder",
81
- "chatBubbleUser",
82
- "chatBubbleUserText",
83
- "chatButton",
84
- "chatButtonActive",
85
- "chatButtonHover",
86
- "chatButtonSelected",
87
- "chatButtonTextHover",
88
- "chatButtonTextSelected",
89
- "chatHeaderBackground",
90
- "chatHeaderText",
91
- "chatPromptBackground",
92
- "chatPromptBorderEnd",
93
- "chatPromptBorderStart",
94
- "chatPromptText",
95
- "chatShellBackground",
96
- "code01",
97
- "code02",
98
- "colorScheme",
99
- "colors",
100
- "container",
101
- "container01",
102
- "container02",
103
- "container03",
104
- "container04",
105
- "container05",
106
- "contentSwitcherTokens",
107
- "coolGray",
108
- "coolGray10",
109
- "coolGray100",
110
- "coolGray20",
111
- "coolGray30",
112
- "coolGray40",
113
- "coolGray50",
114
- "coolGray60",
115
- "coolGray70",
116
- "coolGray80",
117
- "coolGray90",
118
- "cyan",
119
- "cyan10",
120
- "cyan100",
121
- "cyan20",
122
- "cyan30",
123
- "cyan40",
124
- "cyan50",
125
- "cyan60",
126
- "cyan70",
127
- "cyan80",
128
- "cyan90",
129
- "display01",
130
- "display02",
131
- "display03",
132
- "display04",
133
- "easings",
134
- "em",
135
- "expressiveHeading01",
136
- "expressiveHeading02",
137
- "expressiveHeading03",
138
- "expressiveHeading04",
139
- "expressiveHeading05",
140
- "expressiveHeading06",
141
- "expressiveParagraph01",
142
- "fast01",
143
- "fast02",
144
- "field01",
145
- "field02",
146
- "field03",
147
- "fieldHover01",
148
- "fieldHover02",
149
- "fieldHover03",
150
- "fluid",
151
- "fluidSpacing",
152
- "fluidSpacing01",
153
- "fluidSpacing02",
154
- "fluidSpacing03",
155
- "fluidSpacing04",
156
- "focus",
157
- "focusInset",
158
- "focusInverse",
159
- "fontFamilies",
160
- "fontFamily",
161
- "fontWeight",
162
- "fontWeights",
163
- "formatTokenName",
164
- "g10",
165
- "g100",
166
- "g90",
167
- "getTypeSize",
168
- "gray",
169
- "gray10",
170
- "gray100",
171
- "gray20",
172
- "gray30",
173
- "gray40",
174
- "gray50",
175
- "gray60",
176
- "gray70",
177
- "gray80",
178
- "gray90",
179
- "green",
180
- "green10",
181
- "green100",
182
- "green20",
183
- "green30",
184
- "green40",
185
- "green50",
186
- "green60",
187
- "green70",
188
- "green80",
189
- "green90",
190
- "heading01",
191
- "heading02",
192
- "helperText01",
193
- "helperText02",
194
- "highlight",
195
- "iconDisabled",
196
- "iconInteractive",
197
- "iconInverse",
198
- "iconOnColor",
199
- "iconOnColorDisabled",
200
- "iconPrimary",
201
- "iconSecondary",
202
- "iconSize",
203
- "iconSize01",
204
- "iconSize02",
205
- "interactive",
206
- "label01",
207
- "label02",
208
- "layer01",
209
- "layer02",
210
- "layer03",
211
- "layerAccent01",
212
- "layerAccent02",
213
- "layerAccent03",
214
- "layerAccentActive01",
215
- "layerAccentActive02",
216
- "layerAccentActive03",
217
- "layerAccentHover01",
218
- "layerAccentHover02",
219
- "layerAccentHover03",
220
- "layerActive01",
221
- "layerActive02",
222
- "layerActive03",
223
- "layerBackground01",
224
- "layerBackground02",
225
- "layerBackground03",
226
- "layerHover01",
227
- "layerHover02",
228
- "layerHover03",
229
- "layerSelected01",
230
- "layerSelected02",
231
- "layerSelected03",
232
- "layerSelectedDisabled",
233
- "layerSelectedHover01",
234
- "layerSelectedHover02",
235
- "layerSelectedHover03",
236
- "layerSelectedInverse",
237
- "layout01",
238
- "layout02",
239
- "layout03",
240
- "layout04",
241
- "layout05",
242
- "layout06",
243
- "layout07",
244
- "linkInverse",
245
- "linkInverseActive",
246
- "linkInverseHover",
247
- "linkInverseVisited",
248
- "linkPrimary",
249
- "linkPrimaryHover",
250
- "linkSecondary",
251
- "linkVisited",
252
- "magenta",
253
- "magenta10",
254
- "magenta100",
255
- "magenta20",
256
- "magenta30",
257
- "magenta40",
258
- "magenta50",
259
- "magenta60",
260
- "magenta70",
261
- "magenta80",
262
- "magenta90",
263
- "miniUnit",
264
- "miniUnits",
265
- "moderate01",
266
- "moderate02",
267
- "motion",
268
- "notificationTokens",
269
- "orange",
270
- "orange40",
271
- "orange60",
272
- "orange70",
273
- "overlay",
274
- "print",
275
- "productiveHeading01",
276
- "productiveHeading02",
277
- "productiveHeading03",
278
- "productiveHeading04",
279
- "productiveHeading05",
280
- "productiveHeading06",
281
- "productiveHeading07",
282
- "purple",
283
- "purple10",
284
- "purple100",
285
- "purple20",
286
- "purple30",
287
- "purple40",
288
- "purple50",
289
- "purple60",
290
- "purple70",
291
- "purple80",
292
- "purple90",
293
- "px",
294
- "quotation01",
295
- "quotation02",
296
- "red",
297
- "red10",
298
- "red100",
299
- "red20",
300
- "red30",
301
- "red40",
302
- "red50",
303
- "red60",
304
- "red70",
305
- "red80",
306
- "red90",
307
- "rem",
308
- "reset",
309
- "rgba",
310
- "scale",
311
- "shadow",
312
- "size2XLarge",
313
- "sizeLarge",
314
- "sizeMedium",
315
- "sizeSmall",
316
- "sizeXLarge",
317
- "sizeXSmall",
318
- "skeletonBackground",
319
- "skeletonElement",
320
- "slow01",
321
- "slow02",
322
- "spacing",
323
- "spacing01",
324
- "spacing02",
325
- "spacing03",
326
- "spacing04",
327
- "spacing05",
328
- "spacing06",
329
- "spacing07",
330
- "spacing08",
331
- "spacing09",
332
- "spacing10",
333
- "spacing11",
334
- "spacing12",
335
- "spacing13",
336
- "statusTokens",
337
- "styles",
338
- "supportCautionMajor",
339
- "supportCautionMinor",
340
- "supportCautionUndefined",
341
- "supportError",
342
- "supportErrorInverse",
343
- "supportInfo",
344
- "supportInfoInverse",
345
- "supportSuccess",
346
- "supportSuccessInverse",
347
- "supportWarning",
348
- "supportWarningInverse",
349
- "syntaxAngleBracket",
350
- "syntaxAnnotation",
351
- "syntaxArithmeticOperator",
352
- "syntaxAtom",
353
- "syntaxAttribute",
354
- "syntaxAttributeName",
355
- "syntaxAttributeValue",
356
- "syntaxBitwiseOperator",
357
- "syntaxBlockComment",
358
- "syntaxBool",
359
- "syntaxBrace",
360
- "syntaxBracket",
361
- "syntaxCharacter",
362
- "syntaxClassName",
363
- "syntaxColor",
364
- "syntaxComment",
365
- "syntaxCompareOperator",
366
- "syntaxConstant",
367
- "syntaxContent",
368
- "syntaxContentSeparator",
369
- "syntaxControlKeyword",
370
- "syntaxControlOperator",
371
- "syntaxDefinition",
372
- "syntaxDefinitionKeyword",
373
- "syntaxDefinitionOperator",
374
- "syntaxDeleted",
375
- "syntaxDerefOperator",
376
- "syntaxDocComment",
377
- "syntaxDocString",
378
- "syntaxDocumentMeta",
379
- "syntaxEmphasis",
380
- "syntaxEscape",
381
- "syntaxFloat",
382
- "syntaxFunction",
383
- "syntaxHeading",
384
- "syntaxHeading1",
385
- "syntaxHeading2",
386
- "syntaxHeading3",
387
- "syntaxHeading4",
388
- "syntaxHeading5",
389
- "syntaxHeading6",
390
- "syntaxInserted",
391
- "syntaxInteger",
392
- "syntaxInvalid",
393
- "syntaxKeyword",
394
- "syntaxLabelName",
395
- "syntaxLineComment",
396
- "syntaxLink",
397
- "syntaxList",
398
- "syntaxLiteral",
399
- "syntaxLocal",
400
- "syntaxLogicOperator",
401
- "syntaxMacroName",
402
- "syntaxMeta",
403
- "syntaxModifier",
404
- "syntaxModuleKeyword",
405
- "syntaxMonospace",
406
- "syntaxName",
407
- "syntaxNamespace",
408
- "syntaxNull",
409
- "syntaxNumber",
410
- "syntaxOperator",
411
- "syntaxOperatorKeyword",
412
- "syntaxParen",
413
- "syntaxProcessingInstruction",
414
- "syntaxPropertyName",
415
- "syntaxPunctuation",
416
- "syntaxQuote",
417
- "syntaxRegexp",
418
- "syntaxSelf",
419
- "syntaxSeparator",
420
- "syntaxSpecial",
421
- "syntaxSpecialString",
422
- "syntaxSquareBracket",
423
- "syntaxStandard",
424
- "syntaxStrikethrough",
425
- "syntaxString",
426
- "syntaxStrong",
427
- "syntaxTag",
428
- "syntaxTagName",
429
- "syntaxType",
430
- "syntaxTypeName",
431
- "syntaxTypeOperator",
432
- "syntaxUnit",
433
- "syntaxUpdateOperator",
434
- "syntaxUrl",
435
- "syntaxVariable",
436
- "syntaxVariableName",
437
- "tagTokens",
438
- "teal",
439
- "teal10",
440
- "teal100",
441
- "teal20",
442
- "teal30",
443
- "teal40",
444
- "teal50",
445
- "teal60",
446
- "teal70",
447
- "teal80",
448
- "teal90",
449
- "textDisabled",
450
- "textError",
451
- "textHelper",
452
- "textInverse",
453
- "textOnColor",
454
- "textOnColorDisabled",
455
- "textPlaceholder",
456
- "textPrimary",
457
- "textSecondary",
458
- "themes",
459
- "toggleOff",
460
- "unstable_metadata",
461
- "unstable_tokens",
462
- "v10",
463
- "warmGray",
464
- "warmGray10",
465
- "warmGray100",
466
- "warmGray20",
467
- "warmGray30",
468
- "warmGray40",
469
- "warmGray50",
470
- "warmGray60",
471
- "warmGray70",
472
- "warmGray80",
473
- "warmGray90",
474
- "white",
475
- "white0",
476
- "yellow",
477
- "yellow20",
478
- "yellow30",
479
- "yellow40",
480
- "yellow50",
481
- ]
482
- `;
package/src/index.js DELETED
@@ -1,173 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2018, 2023
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- export {
9
- black,
10
- black100,
11
- blue,
12
- blue10,
13
- blue20,
14
- blue30,
15
- blue40,
16
- blue50,
17
- blue60,
18
- blue70,
19
- blue80,
20
- blue90,
21
- blue100,
22
- colors,
23
- coolGray,
24
- coolGray10,
25
- coolGray20,
26
- coolGray30,
27
- coolGray40,
28
- coolGray50,
29
- coolGray60,
30
- coolGray70,
31
- coolGray80,
32
- coolGray90,
33
- coolGray100,
34
- cyan,
35
- cyan10,
36
- cyan20,
37
- cyan30,
38
- cyan40,
39
- cyan50,
40
- cyan60,
41
- cyan70,
42
- cyan80,
43
- cyan90,
44
- cyan100,
45
- gray,
46
- gray10,
47
- gray20,
48
- gray30,
49
- gray40,
50
- gray50,
51
- gray60,
52
- gray70,
53
- gray80,
54
- gray90,
55
- gray100,
56
- green,
57
- green10,
58
- green20,
59
- green30,
60
- green40,
61
- green50,
62
- green60,
63
- green70,
64
- green80,
65
- green90,
66
- green100,
67
- magenta,
68
- magenta10,
69
- magenta20,
70
- magenta30,
71
- magenta40,
72
- magenta50,
73
- magenta60,
74
- magenta70,
75
- magenta80,
76
- magenta90,
77
- magenta100,
78
- orange,
79
- orange40,
80
- orange60,
81
- orange70,
82
- purple,
83
- purple10,
84
- purple20,
85
- purple30,
86
- purple40,
87
- purple50,
88
- purple60,
89
- purple70,
90
- purple80,
91
- purple90,
92
- purple100,
93
- red,
94
- red10,
95
- red20,
96
- red30,
97
- red40,
98
- red50,
99
- red60,
100
- red70,
101
- red80,
102
- red90,
103
- red100,
104
- rgba,
105
- teal,
106
- teal10,
107
- teal20,
108
- teal30,
109
- teal40,
110
- teal50,
111
- teal60,
112
- teal70,
113
- teal80,
114
- teal90,
115
- teal100,
116
- warmGray,
117
- warmGray10,
118
- warmGray20,
119
- warmGray30,
120
- warmGray40,
121
- warmGray50,
122
- warmGray60,
123
- warmGray70,
124
- warmGray80,
125
- warmGray90,
126
- warmGray100,
127
- white0,
128
- yellow,
129
- yellow20,
130
- yellow30,
131
- yellow40,
132
- yellow50,
133
- } from '@carbon/colors';
134
- export {
135
- fluid,
136
- fontFamilies,
137
- fontFamily,
138
- fontWeights,
139
- fontWeight,
140
- print,
141
- reset,
142
- getTypeSize,
143
- scale,
144
- styles,
145
- unstable_tokens,
146
- } from '@carbon/type';
147
- export {
148
- baseFontSize,
149
- rem,
150
- em,
151
- px,
152
- breakpoints,
153
- breakpointUp,
154
- breakpointDown,
155
- breakpoint,
156
- container,
157
- fluidSpacing,
158
- iconSize,
159
- miniUnit,
160
- miniUnits,
161
- spacing,
162
- } from '@carbon/layout';
163
- export * from '@carbon/themes';
164
- export {
165
- fast01,
166
- fast02,
167
- moderate01,
168
- moderate02,
169
- slow01,
170
- slow02,
171
- easings,
172
- motion,
173
- } from '@carbon/motion';