-
Notifications
You must be signed in to change notification settings - Fork 156
/
carbon.yml
201 lines (201 loc) · 6.55 KB
/
carbon.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# yaml-language-server: $schema=https://unpkg.com/@carbon-platform/schemas@v1/carbon-resources.schema.json
library:
id: ibmdotcom-utilities
name: IBM.com Utilities
description:
Apply JavaScript ES6 utility classes that adhere to IBM’s web standards.
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities
noIndex: true
assets:
altlangs:
name: altlangs
description:
Utility to grab all alternative languages on the page. this scrapes the
page of all elements and returns as a readable object.
type: function
platform: web
status: stable
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#altlangs
framework: vanilla
tags:
- utility
calculate-total-width:
name: calculateTotalWidth
description: Utility to calculate the total width of elements.
type: function
platform: web
status: stable
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#calculateTotalWidth
framework: vanilla
tags:
- utility
decode-string:
name: decodeString
description:
Utility function to parse and decode text content. Strings can become
encoded for various reasons. This utility decodes those strings.
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#decodeString
tags:
- utility
escape-reg-exp:
name: escapeRegExp
description: Utiltity function for escaping regex expressions.
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#escapeRegExp
tags:
- utility
focus-wrap:
name: focuswrap
description: Fires the given event if focus goes out of the given element.
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#focuswrap
tags:
- utility
ipc-info-cookie:
name: ipcinfoCookie
description:
Utility to set and get the ipcInfo cookie needed to determine country and
language code.
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/ipcinfoCookie.html
tags:
- utility
format-video-caption:
name: formatVideoCaption
description:
The default g11n formatter for video caption, combining video name and
video duration. Components using this function should have a mechanism to
allow translators to replace it with one accomodating the preferences of
specific locale.
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#formatVideoCaption
tags:
- utility
format-video-duration:
name: formatVideoDuration
description:
The default g11n formatter for video duration. Components using this
function should have a mechanism to allow translators to replace it with
one accomodating the preferences of specific locale, or to replace it with
general-purpose g11n formatting library. (e.g. moment, though it’s too big
for us to make it a hard dependency)
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#formatVideoDuration
tags:
- utility
load-non-latin-plex:
name: loadNonLatinPlex
description:
Utility to load in the corresponding non-Latin Plex font if necessary
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#loadNonLatinPlex
tags:
- utility
markdown-to-html:
name: markdownToHtml
description: Converts markdown syntaxes into html
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#markdownToHtml
tags:
- utility
remove-html-tag-entities:
name: removeHtmlTagEntities
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#removeHtmlTagEntities
tags:
- utility
same-height:
name: sameHeight
description: Utility that sets an array of elements to the same height.
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#sameHeight
tags:
- utility
serialize:
name: serialize
description: Converts a JSON object to a serialized string
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#serialize
tags:
- utility
smooth-scroll:
name: smoothScroll
description:
Utility handles smoothScroll on the anchor element after onClick
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#smoothScroll
tags:
- utility
strip-html:
name: stripHTML
description: Utility returns the text stripping all html tags from it.
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#stripHTML
tags:
- utility
unique-id:
name: uniqueid
description: Creates a unique ID to use
type: function
platform: web
status: stable
framework: vanilla
noIndex: true
externalDocsUrl: https://carbon-design-system.github.io/carbon-for-ibm-dotcom/utilities/global.html#uniqueid
tags:
- utility