@carbon/web-components 2.16.0 → 2.17.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/README.md +69 -240
- package/custom-elements.json +1 -1
- package/dist/16-0c880364.js +3 -3
- package/dist/16-1d873b4f.js +3 -3
- package/dist/16-2b64eac7.js +3 -3
- package/dist/16-4e56fae5.js +3 -3
- package/dist/16-66567a49.js +3 -3
- package/dist/16-678c0d5c.js +3 -3
- package/dist/16-9501e226.js +3 -3
- package/dist/16-a75c4181.js +3 -3
- package/dist/16-d83d40a3.js +3 -3
- package/dist/20-fd76427e.js +3 -3
- package/dist/accordion.min.js +3 -3
- package/dist/ai-label.min.js +3 -3
- package/dist/ai-skeleton.min.js +3 -3
- package/dist/breadcrumb.min.js +3 -3
- package/dist/button-1aa013a7.js +3 -3
- package/dist/button-set-200cbd8d.js +3 -3
- package/dist/button-skeleton-8a5d3c79.js +3 -3
- package/dist/button.min.js +3 -3
- package/dist/carbon-element-017b212d.js +3 -3
- package/dist/chat-button.min.js +3 -3
- package/dist/checkbox-ed71b783.js +3 -3
- package/dist/checkbox-skeleton-d6cf41ef.js +3 -3
- package/dist/checkbox.min.js +3 -3
- package/dist/class-map-f136ab55.js +3 -3
- package/dist/code-snippet.min.js +3 -3
- package/dist/collection-helpers-8b117611.js +3 -3
- package/dist/combo-box.min.js +3 -3
- package/dist/content-switcher-item-2f0d768e.js +3 -3
- package/dist/content-switcher.min.js +3 -3
- package/dist/copy-button-35781882.js +3 -3
- package/dist/copy-button.min.js +3 -3
- package/dist/data-table.min.js +12 -11
- package/dist/date-picker.min.js +4 -4
- package/dist/directive-e2d48b9c.js +3 -3
- package/dist/dropdown-item-1c7de986.js +3 -3
- package/dist/dropdown.min.js +3 -3
- package/dist/file-uploader.min.js +3 -3
- package/dist/floating-menu-a018a2a8.js +3 -3
- package/dist/floating-menu.min.js +3 -3
- package/dist/focus-a50a0482.js +3 -3
- package/dist/form-group.min.js +3 -3
- package/dist/form.min.js +3 -3
- package/dist/host-listener-69c546a1.js +3 -3
- package/dist/icon-button-d51aaa97.js +3 -3
- package/dist/icon-button.min.js +3 -3
- package/dist/if-defined-7d77967b.js +3 -3
- package/dist/if-non-empty-09760ce1.js +3 -3
- package/dist/inline-loading.min.js +3 -3
- package/dist/layer-9301724c.js +3 -3
- package/dist/layer.min.js +3 -3
- package/dist/link-374604e9.js +3 -3
- package/dist/link.min.js +3 -3
- package/dist/list.min.js +3 -3
- package/dist/loading-eeaae2cd.js +3 -3
- package/dist/loading-icon-f5bdc4f0.js +3 -3
- package/dist/loading.min.js +3 -3
- package/dist/modal-label-30ee4502.js +3 -3
- package/dist/modal.min.js +3 -3
- package/dist/multi-select.min.js +3 -3
- package/dist/notification.min.js +3 -3
- package/dist/number-input.min.js +3 -3
- package/dist/on-8707857f.js +3 -3
- package/dist/overflow-menu.min.js +3 -3
- package/dist/pagination.min.js +11 -11
- package/dist/popover-content-7d86f1c9.js +3 -3
- package/dist/popover-controller-c3634b83.js +3 -3
- package/dist/popover.min.js +3 -3
- package/dist/progress-bar.min.js +3 -3
- package/dist/progress-indicator.min.js +3 -3
- package/dist/property-8bf17a69.js +3 -3
- package/dist/query-602de8af.js +3 -3
- package/dist/query-assigned-elements-1bd68a6e.js +3 -3
- package/dist/radio-button-skeleton-53d93264.js +3 -3
- package/dist/radio-button.min.js +3 -3
- package/dist/radio-group-manager-9b128b9b.js +3 -3
- package/dist/search-438e9201.js +3 -3
- package/dist/search.min.js +3 -3
- package/dist/select-3c9657bc.js +3 -3
- package/dist/select.min.js +3 -3
- package/dist/settings-1096a273.js +3 -3
- package/dist/shared-enums-562e6b51.js +3 -3
- package/dist/side-panel.min.js +3 -3
- package/dist/skeleton-icon-72d248ad.js +3 -3
- package/dist/skeleton-icon.min.js +3 -3
- package/dist/skeleton-placeholder-3b52696d.js +3 -3
- package/dist/skeleton-placeholder.min.js +3 -3
- package/dist/skeleton-text-f0f3edf4.js +3 -3
- package/dist/skeleton-text.min.js +3 -3
- package/dist/skip-to-content.min.js +3 -3
- package/dist/slider.min.js +3 -3
- package/dist/slug.min.js +3 -3
- package/dist/spread-c3902148.js +3 -3
- package/dist/stack.min.js +3 -3
- package/dist/state-16f7c070.js +3 -3
- package/dist/structured-list.min.js +3 -3
- package/dist/tabs.min.js +3 -3
- package/dist/tag.min.js +3 -3
- package/dist/tearsheet.min.js +3 -3
- package/dist/text-input-3366fb23.js +3 -3
- package/dist/text-input.min.js +3 -3
- package/dist/textarea.min.js +3 -3
- package/dist/tile.min.js +3 -3
- package/dist/toggle-tip.min.js +3 -3
- package/dist/toggle.min.js +3 -3
- package/dist/toggletip-64abdcc1.js +3 -3
- package/dist/tooltip-content-ad116051.js +3 -3
- package/dist/tooltip.min.js +3 -3
- package/dist/ui-shell.min.js +3 -3
- package/dist/validity-45b7794a.js +3 -3
- package/es/components/data-table/data-table.scss.js +1 -1
- package/es/components/data-table/table-body.d.ts +4 -0
- package/es/components/data-table/table-body.js +7 -0
- package/es/components/data-table/table-body.js.map +1 -1
- package/es/components/data-table/table.d.ts +2 -0
- package/es/components/data-table/table.js +21 -8
- package/es/components/data-table/table.js.map +1 -1
- package/es/components/date-picker/date-picker.js +1 -1
- package/es/components/date-picker/date-picker.js.map +1 -1
- package/es/components/pagination/pagination.d.ts +7 -4
- package/es/components/pagination/pagination.js +19 -6
- package/es/components/pagination/pagination.js.map +1 -1
- package/lib/components/data-table/table-body.d.ts +4 -0
- package/lib/components/data-table/table.d.ts +2 -0
- package/lib/components/pagination/pagination.d.ts +7 -4
- package/package.json +3 -3
- package/scss/components/data-table/_table-core.scss +0 -1
- package/scss/components/data-table/_table-sort.scss +0 -1
package/README.md
CHANGED
|
@@ -1,173 +1,9 @@
|
|
|
1
|
-
A Carbon Design System variant that's as easy to use as native HTML elements,
|
|
2
|
-
with no framework tax, no framework silo.
|
|
3
|
-
|
|
4
|
-
<p align="center">
|
|
5
|
-
<a href="https://www.carbondesignsystem.com">
|
|
6
|
-
<img alt="Carbon Design System" src="https://user-images.githubusercontent.com/3901764/57545698-ce5f2380-7320-11e9-8682-903df232d7b0.png" width="100%" />
|
|
7
|
-
</a>
|
|
8
|
-
</p>
|
|
9
|
-
|
|
10
|
-
> Carbon is an open-source design system built by IBM. With the IBM Design
|
|
11
|
-
> Language as its foundation, the system consists of working code, design tools
|
|
12
|
-
> and resources, human interface guidelines, and a vibrant community of
|
|
13
|
-
> contributors.
|
|
14
|
-
|
|
15
|
-
<p align="center">
|
|
16
|
-
<a href="https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/main/LICENSE">
|
|
17
|
-
<img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="Carbon is released under the Apache-2.0 license" />
|
|
18
|
-
</a>
|
|
19
|
-
</p>
|
|
20
|
-
<p align="center">
|
|
21
|
-
<a href="https://percy.io/538fc19a/Carbon-Web-Components">
|
|
22
|
-
<img src="https://percy.io/static/images/percy-badge.svg" alt="This project is using Percy.io for visual regression testing" />
|
|
23
|
-
</a>
|
|
24
|
-
</p>
|
|
25
|
-
|
|
26
1
|
# `@carbon/web-components`
|
|
27
2
|
|
|
28
|
-
|
|
29
|
-
Elements v1 and Shadow DOM v1 specs.
|
|
30
|
-
|
|
31
|
-
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
32
|
-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
33
|
-
|
|
34
|
-
- [Getting started](#getting-started)
|
|
35
|
-
- [Using CDN](#using-cdn)
|
|
36
|
-
- [How to install](#how-to-install)
|
|
37
|
-
- [Basic usage](#basic-usage)
|
|
38
|
-
- [Using ES imports](#using-es-imports)
|
|
39
|
-
- [How to install](#how-to-install-1)
|
|
40
|
-
- [Basic usage](#basic-usage-1)
|
|
41
|
-
- [Other usage guides](#other-usage-guides)
|
|
42
|
-
- [JavaScript framework support](#javascript-framework-support)
|
|
43
|
-
- [Angular](#angular)
|
|
44
|
-
- [React](#react)
|
|
45
|
-
- [Vue](#vue)
|
|
46
|
-
- [Getting started with development](#getting-started-with-development)
|
|
47
|
-
- [Running React/Angular/Vue Storybook demo](#running-reactangularvue-storybook-demo)
|
|
48
|
-
- [List of available components](#list-of-available-components)
|
|
49
|
-
- [Browser support](#browser-support)
|
|
50
|
-
- [Coding conventions](#coding-conventions)
|
|
51
|
-
- [Creating build](#creating-build)
|
|
52
|
-
- [Running unit test](#running-unit-test)
|
|
53
|
-
- [Running build integration test](#running-build-integration-test)
|
|
54
|
-
- [Running UI integration test](#running-ui-integration-test)
|
|
55
|
-
|
|
56
|
-
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
3
|
+
> Web components for the Carbon Design System
|
|
57
4
|
|
|
58
5
|
## Getting started
|
|
59
6
|
|
|
60
|
-
### Using CDN
|
|
61
|
-
|
|
62
|
-
#### How to install
|
|
63
|
-
|
|
64
|
-
All components are available via CDN. This means that they can be added to your
|
|
65
|
-
application without the need of any bundler configuration. Each component is
|
|
66
|
-
available by the `latest` tag, or referencing a specific version (starting at
|
|
67
|
-
version `v1.16.0`):
|
|
68
|
-
|
|
69
|
-
```html
|
|
70
|
-
<!-- By `latest` tag -->
|
|
71
|
-
<script
|
|
72
|
-
type="module"
|
|
73
|
-
src="https://1.www.s81c.com/common/carbon/web-components/tag/v2/latest/accordion.min.js"></script>
|
|
74
|
-
|
|
75
|
-
<!-- By specific version -->
|
|
76
|
-
<script
|
|
77
|
-
type="module"
|
|
78
|
-
src="https://1.www.s81c.com/common/carbon/web-components/version/v2.0.0/accordion.min.js"></script>
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
<details>
|
|
82
|
-
<summary>See full list of available components via CDN</summary>
|
|
83
|
-
|
|
84
|
-
- accordion.min.js
|
|
85
|
-
- breadcrumb.min.js
|
|
86
|
-
- button.min.js
|
|
87
|
-
- checkbox.min.js
|
|
88
|
-
- code-snippet.min.js
|
|
89
|
-
- combo-box.min.js
|
|
90
|
-
- content-switcher.min.js
|
|
91
|
-
- copy-button.min.js
|
|
92
|
-
- data-table.min.js
|
|
93
|
-
- date-picker.min.js
|
|
94
|
-
- dropdown.min.js
|
|
95
|
-
- file-uploader.min.js
|
|
96
|
-
- floating-menu.min.js
|
|
97
|
-
- form.min.js
|
|
98
|
-
- inline-loading.min.js
|
|
99
|
-
- input.min.js
|
|
100
|
-
- link.min.js
|
|
101
|
-
- list.min.js
|
|
102
|
-
- loading.min.js
|
|
103
|
-
- modal.min.js
|
|
104
|
-
- multi-select.min.js
|
|
105
|
-
- notification.min.js
|
|
106
|
-
- number-input.min.js
|
|
107
|
-
- overflow-menu.min.js
|
|
108
|
-
- pagination.min.js
|
|
109
|
-
- progress-indicator.min.js
|
|
110
|
-
- radio-button.min.js
|
|
111
|
-
- search.min.js
|
|
112
|
-
- select.min.js
|
|
113
|
-
- skeleton-icon.min.js
|
|
114
|
-
- skeleton-placeholder.min.js
|
|
115
|
-
- skeleton-text.min.js
|
|
116
|
-
- skip-to-content.min.js
|
|
117
|
-
- slider.min.js
|
|
118
|
-
- structured-list.min.js
|
|
119
|
-
- tabs.min.js
|
|
120
|
-
- tag.min.js
|
|
121
|
-
- textarea.min.js
|
|
122
|
-
- tile.min.js
|
|
123
|
-
- toggle.min.js
|
|
124
|
-
- tooltip.min.js
|
|
125
|
-
- ui-shell.min.js
|
|
126
|
-
</details>
|
|
127
|
-
|
|
128
|
-
#### Basic usage
|
|
129
|
-
|
|
130
|
-
The CDN artifacts define the custom elements for the browser, so they can be
|
|
131
|
-
directly used once the script tag has been added to the page. For example:
|
|
132
|
-
|
|
133
|
-
```html
|
|
134
|
-
<!doctype html>
|
|
135
|
-
<html>
|
|
136
|
-
<head>
|
|
137
|
-
<script
|
|
138
|
-
type="module"
|
|
139
|
-
src="https://1.www.s81c.com/common/carbon/web-components/tag/v2/latest/dropdown.min.js"></script>
|
|
140
|
-
<style type="text/css">
|
|
141
|
-
// Suppresses the custom element until it has been defined
|
|
142
|
-
cds-dropdown:not(:defined),
|
|
143
|
-
cds-dropdown-item:not(:defined) {
|
|
144
|
-
visibility: hidden;
|
|
145
|
-
}
|
|
146
|
-
</style>
|
|
147
|
-
</head>
|
|
148
|
-
<body>
|
|
149
|
-
<div id="app">
|
|
150
|
-
<cds-dropdown trigger-content="Select an item">
|
|
151
|
-
<cds-dropdown-item value="all">Option 1</cds-dropdown-item>
|
|
152
|
-
<cds-dropdown-item value="cloudFoundry">Option 2</cds-dropdown-item>
|
|
153
|
-
<cds-dropdown-item value="staging">Option 3</cds-dropdown-item>
|
|
154
|
-
<cds-dropdown-item value="dea">Option 4</cds-dropdown-item>
|
|
155
|
-
<cds-dropdown-item value="router">Option 5</cds-dropdown-item>
|
|
156
|
-
</cds-dropdown>
|
|
157
|
-
</div>
|
|
158
|
-
</body>
|
|
159
|
-
</html>
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
Our example at [CodeSandbox](https://codesandbox.io) shows usage with only CDN
|
|
163
|
-
artifacts:
|
|
164
|
-
|
|
165
|
-
[](https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components/examples/codesandbox/cdn)
|
|
166
|
-
|
|
167
|
-
### Using ES imports
|
|
168
|
-
|
|
169
|
-
#### How to install
|
|
170
|
-
|
|
171
7
|
To install `@carbon/web-components` in your project, you will need to run the
|
|
172
8
|
following command using [npm](https://www.npmjs.com/):
|
|
173
9
|
|
|
@@ -182,26 +18,23 @@ instead:
|
|
|
182
18
|
yarn add @carbon/web-components
|
|
183
19
|
```
|
|
184
20
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
Our example at [CodeSandbox](https://codesandbox.io) shows the most basic usage:
|
|
21
|
+
### Usage
|
|
188
22
|
|
|
189
|
-
|
|
23
|
+
#### ES imports
|
|
190
24
|
|
|
191
25
|
The first thing you need is **setting up a module bundler** to resolve
|
|
192
26
|
ECMAScript `import`s. The above example uses [Webpack](https://webpack.js.org),
|
|
193
27
|
but you can use other bundlers like [Rollup](https://rollupjs.org/) too.
|
|
194
28
|
|
|
195
|
-
Once you set up a module bundler, you can start importing
|
|
196
|
-
for example:
|
|
29
|
+
Once you set up a module bundler, you can start importing component modules:
|
|
197
30
|
|
|
198
31
|
```javascript
|
|
199
32
|
import '@carbon/web-components/es/components/dropdown/dropdown.js';
|
|
200
33
|
import '@carbon/web-components/es/components/dropdown/dropdown-item.js';
|
|
201
34
|
```
|
|
202
35
|
|
|
203
|
-
Once you've imported the component modules, you can use
|
|
204
|
-
same manner as native HTML tags
|
|
36
|
+
Once you've imported the component modules, you can use the components in the
|
|
37
|
+
same manner as native HTML tags:
|
|
205
38
|
|
|
206
39
|
```html
|
|
207
40
|
<cds-dropdown trigger-content="Select an item">
|
|
@@ -213,61 +46,63 @@ same manner as native HTML tags, for example:
|
|
|
213
46
|
</cds-dropdown>
|
|
214
47
|
```
|
|
215
48
|
|
|
216
|
-
|
|
49
|
+
See a working example
|
|
50
|
+
[here](https://stackblitz.com/github/carbon-design-system/carbon/tree/main/packages/web-components/examples/components/dropdown).
|
|
217
51
|
|
|
218
|
-
|
|
219
|
-
- [Using custom styles in components](./docs/styling.md)
|
|
220
|
-
- [Using `carbon-web-components` with old build toolchain](./docs/old-build-toolchain.md)
|
|
52
|
+
#### CDN
|
|
221
53
|
|
|
222
|
-
|
|
54
|
+
The CDN artifacts define the custom elements for the browser, so they can be
|
|
55
|
+
directly used once the script tag has been added to the page. For example:
|
|
223
56
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
57
|
+
```html
|
|
58
|
+
<!doctype html>
|
|
59
|
+
<html>
|
|
60
|
+
<head>
|
|
61
|
+
<script
|
|
62
|
+
type="module"
|
|
63
|
+
src="https://1.www.s81c.com/common/carbon/web-components/tag/v2/latest/dropdown.min.js"></script>
|
|
64
|
+
<style type="text/css">
|
|
65
|
+
// Suppresses the custom element until it has been defined
|
|
66
|
+
cds-dropdown:not(:defined),
|
|
67
|
+
cds-dropdown-item:not(:defined) {
|
|
68
|
+
visibility: hidden;
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
71
|
+
</head>
|
|
72
|
+
<body>
|
|
73
|
+
<div id="app">
|
|
74
|
+
<cds-dropdown trigger-content="Select an item">
|
|
75
|
+
<cds-dropdown-item value="all">Option 1</cds-dropdown-item>
|
|
76
|
+
<cds-dropdown-item value="cloudFoundry">Option 2</cds-dropdown-item>
|
|
77
|
+
<cds-dropdown-item value="staging">Option 3</cds-dropdown-item>
|
|
78
|
+
<cds-dropdown-item value="dea">Option 4</cds-dropdown-item>
|
|
79
|
+
<cds-dropdown-item value="router">Option 5</cds-dropdown-item>
|
|
80
|
+
</cds-dropdown>
|
|
81
|
+
</div>
|
|
82
|
+
</body>
|
|
83
|
+
</html>
|
|
84
|
+
```
|
|
229
85
|
|
|
230
|
-
|
|
86
|
+
Each component is available by referencing a specific version (starting at
|
|
87
|
+
version `v1.16.0`):
|
|
231
88
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
89
|
+
<!-- By specific version -->
|
|
90
|
+
<script
|
|
91
|
+
type="module"
|
|
92
|
+
src="https://1.www.s81c.com/common/carbon/web-components/version/v2.16.0/accordion.min.js"></script>
|
|
236
93
|
|
|
237
|
-
```javascript
|
|
238
|
-
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
239
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
240
|
-
|
|
241
|
-
import { AppComponent } from './app.component';
|
|
242
|
-
|
|
243
|
-
@NgModule({
|
|
244
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
245
|
-
declarations: [AppComponent],
|
|
246
|
-
imports: [BrowserModule],
|
|
247
|
-
bootstrap: [AppComponent],
|
|
248
|
-
})
|
|
249
|
-
export class AppModule {}
|
|
250
94
|
```
|
|
251
95
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
upcoming Angular `9.0` release, or with the following instructions, so your
|
|
255
|
-
application can use those `.d.ts` files:
|
|
256
|
-
|
|
257
|
-
- Set `true` to
|
|
258
|
-
[`angularCompilerOptions.disableTypeScriptVersionCheck`](https://angular.io/guide/angular-compiler-options#disabletypescriptversioncheck)
|
|
259
|
-
in `tsconfig.json`
|
|
260
|
-
- In `polyfills.ts`, change
|
|
261
|
-
[`__importDefault` TypeScript helper](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#example-8)
|
|
262
|
-
as follows:
|
|
263
|
-
`window.__importDefault = mod => (mod?.__esModule ? mod : { default: mod })`
|
|
96
|
+
See a working example
|
|
97
|
+
[here](https://stackblitz.com/github/carbon-design-system/carbon/tree/main/packages/web-components/examples/components/dropdown?file=cdn.html).
|
|
264
98
|
|
|
265
|
-
|
|
99
|
+
For a full list of components available, check out our
|
|
100
|
+
[Storybook](https://web-components.carbondesignsystem.com/).
|
|
266
101
|
|
|
267
|
-
|
|
102
|
+
### Other usage guides
|
|
268
103
|
|
|
269
|
-
|
|
270
|
-
|
|
104
|
+
- [Using components in a form](./docs/form.md)
|
|
105
|
+
- [Using custom styles in components](./docs/styling.md)
|
|
271
106
|
|
|
272
107
|
## Getting started with development
|
|
273
108
|
|
|
@@ -276,38 +111,31 @@ any additional steps!
|
|
|
276
111
|
3. `cd packages/carbon-web-components`
|
|
277
112
|
4. `yarn wca && yarn storybook`
|
|
278
113
|
|
|
279
|
-
##
|
|
114
|
+
## Creating build
|
|
280
115
|
|
|
281
|
-
|
|
282
|
-
https://www.ibm.com/standards/carbon/carbon-web-components. You can see usage
|
|
283
|
-
information in several ways:
|
|
116
|
+
```
|
|
284
117
|
|
|
285
|
-
|
|
286
|
-
properties and custom events.
|
|
287
|
-
2. Clicking the **KNOBS** tab at the bottom and changing values there. Most
|
|
288
|
-
knobs are shown as something like `Button kind (kind)`, where `kind` is the
|
|
289
|
-
attribute name
|
|
290
|
-
3. Clicking the **ACTION LOGGER** tab at the bottom and interacting with the
|
|
291
|
-
selected component. You may see something like `cds-modal-closed` which
|
|
292
|
-
typically indicates that an event with such event type is fired. You can also
|
|
293
|
-
expand the twistie to see the details of the event
|
|
118
|
+
> yarn install yarn build
|
|
294
119
|
|
|
295
|
-
|
|
120
|
+
```
|
|
296
121
|
|
|
297
|
-
|
|
122
|
+
You'll see the build artifacts in `/path/to/carbon-web-components/es` directory.
|
|
298
123
|
|
|
299
|
-
##
|
|
124
|
+
## 📖 API Documentation
|
|
300
125
|
|
|
301
|
-
|
|
126
|
+
If you're looking for `@carbon/web-components` API documentation, check out:
|
|
302
127
|
|
|
303
|
-
|
|
128
|
+
- [Storybook](https://web-components.carbondesignsystem.com/)
|
|
304
129
|
|
|
305
|
-
|
|
306
|
-
> yarn clean
|
|
307
|
-
> yarn build
|
|
308
|
-
```
|
|
130
|
+
## 🙌 Contributing
|
|
309
131
|
|
|
310
|
-
|
|
132
|
+
We're always looking for contributors to help us fix bugs, build new features,
|
|
133
|
+
or help us improve the project documentation. If you're interested, definitely
|
|
134
|
+
check out our [Contributing Guide](/.github/CONTRIBUTING.md)! 👀
|
|
135
|
+
|
|
136
|
+
## 📝 License
|
|
137
|
+
|
|
138
|
+
Licensed under the [Apache 2.0 License](/LICENSE).
|
|
311
139
|
|
|
312
140
|
## <picture><source height="20" width="20" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-dark.svg"><source height="20" width="20" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"><img height="20" width="20" alt="IBM Telemetry" src="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"></picture> IBM Telemetry
|
|
313
141
|
|
|
@@ -317,3 +145,4 @@ collection. To opt out, see
|
|
|
317
145
|
[Opting out of IBM Telemetry data collection](https://github.com/ibm-telemetry/telemetry-js/tree/main#opting-out-of-ibm-telemetry-data-collection).
|
|
318
146
|
For more information on the data being collected, please see the
|
|
319
147
|
[IBM Telemetry documentation](https://github.com/ibm-telemetry/telemetry-js/tree/main#ibm-telemetry-collection-basics).
|
|
148
|
+
```
|
package/custom-elements.json
CHANGED
package/dist/16-0c880364.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/16-1d873b4f.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/16-2b64eac7.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/16-4e56fae5.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/16-66567a49.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/16-678c0d5c.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/16-9501e226.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/16-a75c4181.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/16-d83d40a3.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/20-fd76427e.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/accordion.min.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/ai-label.min.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/ai-skeleton.min.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/breadcrumb.min.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
package/dist/button-1aa013a7.js
CHANGED
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
@@ -45,13 +45,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
*****************************************************************************
|
|
47
47
|
*
|
|
48
|
-
* lit-
|
|
48
|
+
* lit-html:
|
|
49
49
|
*
|
|
50
50
|
* @license
|
|
51
|
-
* Copyright
|
|
51
|
+
* Copyright 2022 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*
|
|
54
|
-
* lit-
|
|
54
|
+
* lit-element:
|
|
55
55
|
*
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|