@carbon/web-components 2.4.0-rc.1 → 2.4.0-rc.3
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/dist/16-44367639.js +7 -7
- package/dist/16-880e779e.js +7 -7
- package/dist/16-8ab58ede.js +7 -7
- package/dist/16-945f9ad8.js +7 -7
- package/dist/16-9bdb8b2e.js +7 -7
- package/dist/16-afc2ad08.js +7 -7
- package/dist/16-f2933a25.js +60 -0
- package/dist/16-f2df91a2.js +7 -7
- package/dist/20-c1834a3b.js +7 -7
- package/dist/accordion.min.js +8 -8
- package/dist/ai-skeleton.min.js +8 -8
- package/dist/breadcrumb.min.js +8 -8
- package/dist/{button-dade8f28.js → button-ad33c11e.js} +8 -8
- package/dist/{button-set-5f5affa0.js → button-set-0868cd7d.js} +8 -8
- package/dist/{button-skeleton-7325ea56.js → button-skeleton-5d59f37f.js} +9 -9
- package/dist/button.min.js +8 -8
- package/dist/carbon-element-4ca9803f.js +7 -7
- package/dist/chat-button.min.js +8 -8
- package/dist/{checkbox-a610152a.js → checkbox-3f270cb6.js} +8 -8
- package/dist/checkbox.min.js +13 -13
- package/dist/class-map-b1739c02.js +7 -7
- package/dist/code-snippet.min.js +8 -8
- package/dist/collection-helpers-4e32fe16.js +7 -7
- package/dist/combo-box.min.js +8 -8
- package/dist/{content-switcher-item-9714594a.js → content-switcher-item-ef4c3ffc.js} +8 -8
- package/dist/content-switcher.min.js +8 -8
- package/dist/{copy-button-e4f754c9.js → copy-button-22693367.js} +8 -8
- package/dist/copy-button.min.js +8 -8
- package/dist/custom-element-975be15f.js +7 -7
- package/dist/data-table.min.js +9 -9
- package/dist/date-picker.min.js +8 -8
- package/dist/{objectSpread2-0b7e8561.js → defineProperty-d784d12c.js} +8 -8
- package/dist/directive-e2d48b9c.js +7 -7
- package/dist/{dropdown-item-cc7cc1dc.js → dropdown-item-5213e869.js} +8 -8
- package/dist/dropdown.min.js +8 -8
- package/dist/file-uploader.min.js +8 -8
- package/dist/{floating-menu-6ec5c7fa.js → floating-menu-413f6e95.js} +8 -8
- package/dist/floating-menu.min.js +8 -8
- package/dist/focus-92d82b5f.js +7 -7
- package/dist/form-group.min.js +7 -7
- package/dist/form.min.js +7 -7
- package/dist/get-d229c408.js +7 -7
- package/dist/{host-listener-a948931e.js → host-listener-0024708a.js} +9 -9
- package/dist/{icon-button-ab6ad963.js → icon-button-7a997866.js} +8 -8
- package/dist/icon-button.min.js +8 -8
- package/dist/if-defined-b99f5484.js +7 -7
- package/dist/if-non-empty-d69cc3f0.js +7 -7
- package/dist/inline-loading.min.js +7 -7
- package/dist/layer-62995057.js +7 -7
- package/dist/layer.min.js +7 -7
- package/dist/{link-d5d53be2.js → link-6fcc6a0e.js} +8 -8
- package/dist/link.min.js +8 -8
- package/dist/list.min.js +7 -7
- package/dist/loading-0dcb7680.js +7 -7
- package/dist/loading-icon-2ac6de26.js +7 -7
- package/dist/loading.min.js +7 -7
- package/dist/modal.min.js +9 -9
- package/dist/multi-select.min.js +8 -8
- package/dist/notification.min.js +10 -10
- package/dist/number-input.min.js +8 -8
- package/dist/{16-2aa048a9.js → objectSpread2-58bc1706.js} +8 -8
- package/dist/on-6c264d49.js +7 -7
- package/dist/overflow-menu.min.js +8 -8
- package/dist/pagination.min.js +8 -8
- package/dist/popover-content-2df97cf7.js +75 -0
- package/dist/popover-controller-e5f73836.js +60 -0
- package/dist/popover.min.js +8 -8
- package/dist/progress-bar.min.js +7 -7
- package/dist/progress-indicator.min.js +8 -8
- package/dist/query-6ca5e414.js +7 -7
- package/dist/query-assigned-elements-8e88277c.js +7 -7
- package/dist/radio-button.min.js +8 -8
- package/dist/{radio-group-manager-3cfdd620.js → radio-group-manager-9810bd7d.js} +8 -8
- package/dist/{search-4c0e8630.js → search-b8b073b6.js} +8 -8
- package/dist/search.min.js +8 -8
- package/dist/select-item-db3c6fa0.js +7 -7
- package/dist/select.min.js +8 -8
- package/dist/settings-387c0fa4.js +7 -7
- package/dist/shared-enums-c6fe8c39.js +7 -7
- package/dist/side-panel.min.js +16 -16
- package/dist/skeleton-icon-451d3c47.js +7 -7
- package/dist/skeleton-icon.min.js +7 -7
- package/dist/{skeleton-placeholder-e6490dbd.js → skeleton-placeholder-5aa06271.js} +8 -8
- package/dist/skeleton-placeholder.min.js +8 -8
- package/dist/{skeleton-text-eeac3c87.js → skeleton-text-283abe50.js} +8 -8
- package/dist/skeleton-text.min.js +8 -8
- package/dist/skip-to-content.min.js +8 -8
- package/dist/slider.min.js +8 -8
- package/dist/slug.min.js +9 -9
- package/dist/spread-6af5f657.js +7 -7
- package/dist/stack.min.js +7 -7
- package/dist/state-63312e74.js +7 -7
- package/dist/structured-list.min.js +8 -8
- package/dist/tabs.min.js +9 -9
- package/dist/tag.min.js +8 -8
- package/dist/{text-input-8d011ae2.js → text-input-d40fbf4d.js} +8 -8
- package/dist/text-input.min.js +9 -9
- package/dist/textarea.min.js +12 -12
- package/dist/tile.min.js +8 -8
- package/dist/toggle-tip.min.js +8 -8
- package/dist/toggle.min.js +8 -8
- package/dist/{toggletip-17030a2a.js → toggletip-2d777826.js} +10 -10
- package/dist/{tooltip-content-45723618.js → tooltip-content-2ef20c6a.js} +8 -8
- package/dist/tooltip.min.js +8 -8
- package/dist/ui-shell.min.js +8 -8
- package/dist/validity-d86ffa4f.js +7 -7
- package/es/components/data-table/table.js +1 -1
- package/es/components/data-table/table.js.map +1 -1
- package/es/components/popover/popover.d.ts +4 -0
- package/es/components/popover/popover.js +19 -6
- package/es/components/popover/popover.js.map +1 -1
- package/es/components/slug/slug.css.js +1 -1
- package/es/components/slug/slug.d.ts +1 -1
- package/es/components/slug/slug.js +1 -1
- package/es/components/slug/slug.js.map +1 -1
- package/es/components/toggle-tip/toggletip.d.ts +5 -1
- package/es/components/toggle-tip/toggletip.js +19 -10
- package/es/components/toggle-tip/toggletip.js.map +1 -1
- package/es/globals/controllers/popover-controller.d.ts +47 -0
- package/es/globals/controllers/popover-controller.js +142 -0
- package/es/globals/controllers/popover-controller.js.map +1 -0
- package/lib/globals/controllers/popover-controller.js +150 -0
- package/lib/globals/controllers/popover-controller.js.map +1 -0
- package/package.json +2 -2
- package/scss/components/slug/slug.scss +9 -0
- package/dist/floating-ui-a76fcefc.js +0 -69
- package/dist/popover-content-620200e8.js +0 -75
- package/es/globals/internal/floating-ui.d.ts +0 -30
- package/es/globals/internal/floating-ui.js +0 -102
- package/es/globals/internal/floating-ui.js.map +0 -1
package/dist/16-44367639.js
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
flatpickr v4.6.1, @license MIT
|
|
17
17
|
*
|
|
18
|
+
* @carbon/motion:
|
|
19
|
+
*
|
|
20
|
+
* Copyright IBM Corp. 2018, 2023
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*
|
|
18
25
|
* lit-element:
|
|
19
26
|
*
|
|
20
27
|
* @license
|
|
@@ -27,13 +34,6 @@
|
|
|
27
34
|
* Copyright 2022 Google LLC
|
|
28
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
36
|
*
|
|
30
|
-
* @carbon/motion:
|
|
31
|
-
*
|
|
32
|
-
* Copyright IBM Corp. 2018, 2023
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*
|
|
37
37
|
* @lit/reactive-element:
|
|
38
38
|
*
|
|
39
39
|
* @license
|
package/dist/16-880e779e.js
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
flatpickr v4.6.1, @license MIT
|
|
17
17
|
*
|
|
18
|
+
* @carbon/motion:
|
|
19
|
+
*
|
|
20
|
+
* Copyright IBM Corp. 2018, 2023
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*
|
|
18
25
|
* lit-element:
|
|
19
26
|
*
|
|
20
27
|
* @license
|
|
@@ -27,13 +34,6 @@
|
|
|
27
34
|
* Copyright 2022 Google LLC
|
|
28
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
36
|
*
|
|
30
|
-
* @carbon/motion:
|
|
31
|
-
*
|
|
32
|
-
* Copyright IBM Corp. 2018, 2023
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*
|
|
37
37
|
* @lit/reactive-element:
|
|
38
38
|
*
|
|
39
39
|
* @license
|
package/dist/16-8ab58ede.js
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
flatpickr v4.6.1, @license MIT
|
|
17
17
|
*
|
|
18
|
+
* @carbon/motion:
|
|
19
|
+
*
|
|
20
|
+
* Copyright IBM Corp. 2018, 2023
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*
|
|
18
25
|
* lit-element:
|
|
19
26
|
*
|
|
20
27
|
* @license
|
|
@@ -27,13 +34,6 @@
|
|
|
27
34
|
* Copyright 2022 Google LLC
|
|
28
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
36
|
*
|
|
30
|
-
* @carbon/motion:
|
|
31
|
-
*
|
|
32
|
-
* Copyright IBM Corp. 2018, 2023
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*
|
|
37
37
|
* @lit/reactive-element:
|
|
38
38
|
*
|
|
39
39
|
* @license
|
package/dist/16-945f9ad8.js
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
flatpickr v4.6.1, @license MIT
|
|
17
17
|
*
|
|
18
|
+
* @carbon/motion:
|
|
19
|
+
*
|
|
20
|
+
* Copyright IBM Corp. 2018, 2023
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*
|
|
18
25
|
* lit-element:
|
|
19
26
|
*
|
|
20
27
|
* @license
|
|
@@ -27,13 +34,6 @@
|
|
|
27
34
|
* Copyright 2022 Google LLC
|
|
28
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
36
|
*
|
|
30
|
-
* @carbon/motion:
|
|
31
|
-
*
|
|
32
|
-
* Copyright IBM Corp. 2018, 2023
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*
|
|
37
37
|
* @lit/reactive-element:
|
|
38
38
|
*
|
|
39
39
|
* @license
|
package/dist/16-9bdb8b2e.js
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
flatpickr v4.6.1, @license MIT
|
|
17
17
|
*
|
|
18
|
+
* @carbon/motion:
|
|
19
|
+
*
|
|
20
|
+
* Copyright IBM Corp. 2018, 2023
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*
|
|
18
25
|
* lit-element:
|
|
19
26
|
*
|
|
20
27
|
* @license
|
|
@@ -27,13 +34,6 @@
|
|
|
27
34
|
* Copyright 2022 Google LLC
|
|
28
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
36
|
*
|
|
30
|
-
* @carbon/motion:
|
|
31
|
-
*
|
|
32
|
-
* Copyright IBM Corp. 2018, 2023
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*
|
|
37
37
|
* @lit/reactive-element:
|
|
38
38
|
*
|
|
39
39
|
* @license
|
package/dist/16-afc2ad08.js
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
flatpickr v4.6.1, @license MIT
|
|
17
17
|
*
|
|
18
|
+
* @carbon/motion:
|
|
19
|
+
*
|
|
20
|
+
* Copyright IBM Corp. 2018, 2023
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*
|
|
18
25
|
* lit-element:
|
|
19
26
|
*
|
|
20
27
|
* @license
|
|
@@ -27,13 +34,6 @@
|
|
|
27
34
|
* Copyright 2022 Google LLC
|
|
28
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
36
|
*
|
|
30
|
-
* @carbon/motion:
|
|
31
|
-
*
|
|
32
|
-
* Copyright IBM Corp. 2018, 2023
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*
|
|
37
37
|
* @lit/reactive-element:
|
|
38
38
|
*
|
|
39
39
|
* @license
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2019, 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @license
|
|
11
|
+
*
|
|
12
|
+
* This bundle contains the following third-party dependencies:
|
|
13
|
+
*
|
|
14
|
+
* flatpickr:
|
|
15
|
+
*
|
|
16
|
+
flatpickr v4.6.1, @license MIT
|
|
17
|
+
*
|
|
18
|
+
* @carbon/motion:
|
|
19
|
+
*
|
|
20
|
+
* Copyright IBM Corp. 2018, 2023
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*
|
|
25
|
+
* lit-element:
|
|
26
|
+
*
|
|
27
|
+
* @license
|
|
28
|
+
* Copyright 2017 Google LLC
|
|
29
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
+
*
|
|
31
|
+
* lit-html:
|
|
32
|
+
*
|
|
33
|
+
* @license
|
|
34
|
+
* Copyright 2022 Google LLC
|
|
35
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
+
*
|
|
37
|
+
* @lit/reactive-element:
|
|
38
|
+
*
|
|
39
|
+
* @license
|
|
40
|
+
* Copyright 2017 Google LLC
|
|
41
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
+
*
|
|
43
|
+
* @carbon/layout:
|
|
44
|
+
*
|
|
45
|
+
* Copyright IBM Corp. 2018, 2023
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
48
|
+
* LICENSE file in the root directory of this source tree.
|
|
49
|
+
*
|
|
50
|
+
* Also refer to the following links for the license of other third-party dependencies:
|
|
51
|
+
*
|
|
52
|
+
* https://www.npmjs.com/package/lit
|
|
53
|
+
* https://www.npmjs.com/package/@carbon/icons
|
|
54
|
+
* https://www.npmjs.com/package/lodash-es
|
|
55
|
+
* https://www.npmjs.com/package/@floating-ui/dom
|
|
56
|
+
* https://www.npmjs.com/package/@floating-ui/utils
|
|
57
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
import{_ as a}from"./defineProperty-d784d12c.js";import{o as t}from"./on-6c264d49.js";import{b as s}from"./settings-387c0fa4.js";import{s as e}from"./spread-6af5f657.js";const o=s=>class extends s{constructor(...t){super(...t),a(this,"_hFormdata",null)}connectedCallback(){super.connectedCallback();const a=this.closest("form");a&&(this._hFormdata=t(a,"formdata",this._handleFormdata.bind(this)))}disconnectedCallback(){this._hFormdata&&(this._hFormdata=this._hFormdata.release()),super.disconnectedCallback()}},r=({children:a,...t}={})=>s`<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" ...="${e(t)}" aria-hidden="true" width="16" height="16" viewBox="0 0 32 32">${a}<path fill="none" d="M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z" data-icon-path="inner-path"></path><path d="M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"></path><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"></path></svg>`;export{o as F,r as s};
|
package/dist/16-f2df91a2.js
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
flatpickr v4.6.1, @license MIT
|
|
17
17
|
*
|
|
18
|
+
* @carbon/motion:
|
|
19
|
+
*
|
|
20
|
+
* Copyright IBM Corp. 2018, 2023
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*
|
|
18
25
|
* lit-element:
|
|
19
26
|
*
|
|
20
27
|
* @license
|
|
@@ -27,13 +34,6 @@
|
|
|
27
34
|
* Copyright 2022 Google LLC
|
|
28
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
36
|
*
|
|
30
|
-
* @carbon/motion:
|
|
31
|
-
*
|
|
32
|
-
* Copyright IBM Corp. 2018, 2023
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*
|
|
37
37
|
* @lit/reactive-element:
|
|
38
38
|
*
|
|
39
39
|
* @license
|
package/dist/20-c1834a3b.js
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
flatpickr v4.6.1, @license MIT
|
|
17
17
|
*
|
|
18
|
+
* @carbon/motion:
|
|
19
|
+
*
|
|
20
|
+
* Copyright IBM Corp. 2018, 2023
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*
|
|
18
25
|
* lit-element:
|
|
19
26
|
*
|
|
20
27
|
* @license
|
|
@@ -27,13 +34,6 @@
|
|
|
27
34
|
* Copyright 2022 Google LLC
|
|
28
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
36
|
*
|
|
30
|
-
* @carbon/motion:
|
|
31
|
-
*
|
|
32
|
-
* Copyright IBM Corp. 2018, 2023
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*
|
|
37
37
|
* @lit/reactive-element:
|
|
38
38
|
*
|
|
39
39
|
* @license
|
package/dist/accordion.min.js
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
flatpickr v4.6.1, @license MIT
|
|
17
17
|
*
|
|
18
|
+
* @carbon/motion:
|
|
19
|
+
*
|
|
20
|
+
* Copyright IBM Corp. 2018, 2023
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*
|
|
18
25
|
* lit-element:
|
|
19
26
|
*
|
|
20
27
|
* @license
|
|
@@ -27,13 +34,6 @@
|
|
|
27
34
|
* Copyright 2022 Google LLC
|
|
28
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
36
|
*
|
|
30
|
-
* @carbon/motion:
|
|
31
|
-
*
|
|
32
|
-
* Copyright IBM Corp. 2018, 2023
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*
|
|
37
37
|
* @lit/reactive-element:
|
|
38
38
|
*
|
|
39
39
|
* @license
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
* https://www.npmjs.com/package/@floating-ui/core
|
|
58
58
|
*/
|
|
59
59
|
|
|
60
|
-
let e,t,c;import{i as o,_ as s,s as i,x as d,p as n}from"./settings-387c0fa4.js";import{_ as a,a as r}from"./get-d229c408.js";import{n as l}from"./query-assigned-elements-8e88277c.js";import{f as h}from"./collection-helpers-4e32fe16.js";import{c as u}from"./carbon-element-4ca9803f.js";import{o as m}from"./class-map-b1739c02.js";import{s as y}from"./16-44367639.js";import{F as g}from"./focus-92d82b5f.js";import{e as _}from"./custom-element-975be15f.js";import"./skeleton-text-
|
|
60
|
+
let e,t,c;import{i as o,_ as s,s as i,x as d,p as n}from"./settings-387c0fa4.js";import{_ as a,a as r}from"./get-d229c408.js";import{n as l}from"./query-assigned-elements-8e88277c.js";import{f as h}from"./collection-helpers-4e32fe16.js";import{c as u}from"./carbon-element-4ca9803f.js";import{o as m}from"./class-map-b1739c02.js";import{s as y}from"./16-44367639.js";import{F as g}from"./focus-92d82b5f.js";import{e as _}from"./custom-element-975be15f.js";import"./skeleton-text-283abe50.js";import"./directive-e2d48b9c.js";import"./spread-6af5f657.js";import"./objectSpread2-58bc1706.js";import"./defineProperty-d784d12c.js";
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
*
|
package/dist/ai-skeleton.min.js
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
*
|
|
16
16
|
flatpickr v4.6.1, @license MIT
|
|
17
17
|
*
|
|
18
|
+
* @carbon/motion:
|
|
19
|
+
*
|
|
20
|
+
* Copyright IBM Corp. 2018, 2023
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*
|
|
18
25
|
* lit-element:
|
|
19
26
|
*
|
|
20
27
|
* @license
|
|
@@ -27,13 +34,6 @@
|
|
|
27
34
|
* Copyright 2022 Google LLC
|
|
28
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
36
|
*
|
|
30
|
-
* @carbon/motion:
|
|
31
|
-
*
|
|
32
|
-
* Copyright IBM Corp. 2018, 2023
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*
|
|
37
37
|
* @lit/reactive-element:
|
|
38
38
|
*
|
|
39
39
|
* @license
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
* https://www.npmjs.com/package/@floating-ui/core
|
|
58
58
|
*/
|
|
59
59
|
|
|
60
|
-
import{i as e,_ as o,s as n,x as t,p as s}from"./settings-387c0fa4.js";import{n as i}from"./query-assigned-elements-8e88277c.js";import"./skeleton-icon-451d3c47.js";import{c as r}from"./carbon-element-4ca9803f.js";import"./skeleton-placeholder-
|
|
60
|
+
import{i as e,_ as o,s as n,x as t,p as s}from"./settings-387c0fa4.js";import{n as i}from"./query-assigned-elements-8e88277c.js";import"./skeleton-icon-451d3c47.js";import{c as r}from"./carbon-element-4ca9803f.js";import"./skeleton-placeholder-5aa06271.js";import"./skeleton-text-283abe50.js";import"./objectSpread2-58bc1706.js";import"./defineProperty-d784d12c.js";import"./class-map-b1739c02.js";import"./directive-e2d48b9c.js";var a=e(['@keyframes cds--hide-feedback{0%{opacity:1;visibility:inherit}to{opacity:0;visibility:hidden}}@keyframes cds--show-feedback{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:inherit}}@keyframes cds--skeleton{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}to{opacity:.3;transform:scaleX(0);transform-origin:left}}@keyframes ai-skeleton-animation{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}.cds--icon--skeleton,:host(cds-skeleton-icon){background:var(--cds-skeleton-background,#e8e8e8);block-size:1rem;border:none;box-shadow:none;display:inline-block;inline-size:1rem;padding:0;pointer-events:none;position:relative}.cds--icon--skeleton:active,.cds--icon--skeleton:focus,.cds--icon--skeleton:hover{border:none;cursor:default;outline:none}.cds--icon--skeleton:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.cds--icon--skeleton:before{animation:none}}.cds--skeleton__placeholder{background:var(--cds-skeleton-background,#e8e8e8);block-size:6.25rem;border:none;box-shadow:none;inline-size:6.25rem;padding:0;pointer-events:none;position:relative}.cds--skeleton__placeholder:active,.cds--skeleton__placeholder:focus,.cds--skeleton__placeholder:hover{border:none;cursor:default;outline:none}.cds--skeleton__placeholder:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.cds--skeleton__placeholder:before{animation:none}}.cds--skeleton__text{background:var(--cds-skeleton-background,#e8e8e8);block-size:1rem;border:none;box-shadow:none;inline-size:100%;margin-block-end:.5rem;padding:0;pointer-events:none;position:relative}.cds--skeleton__text:active,.cds--skeleton__text:focus,.cds--skeleton__text:hover{border:none;cursor:default;outline:none}.cds--skeleton__text:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.cds--skeleton__text:before{animation:none}}.cds--skeleton__heading{block-size:1.5rem}.cds--skeleton__icon--ai,.cds--skeleton__placeholder--ai,.cds--skeleton__text--ai{background:var(--cds-ai-skeleton-background,#b8d3ff);overflow:hidden}.cds--skeleton__icon--ai:before,.cds--skeleton__placeholder--ai:before,.cds--skeleton__text--ai:before{animation:ai-skeleton-animation 1.25s ease-in-out infinite;background:linear-gradient(90deg,rgba(0,17,65,0) 0,rgba(0,17,65,.5) 50%,rgba(0,17,65,0))}.cds--skeleton__icon--ai:before,.cds--skeleton__placeholder--ai:before{inline-size:200%}.cds--skeleton__placeholder--ai{border-radius:.5rem}.cds--skeleton__text--ai{border-radius:1rem}.cds--skeleton__icon--ai{border-radius:.125rem}:host(cds-skeleton-text){display:block;inline-size:100%}:host(cds-skeleton-text) .cds--skeleton__text{margin-block-start:0}:host(cds-skeleton-icon){background:var(--cds-skeleton-background,#e8e8e8);border:none;box-shadow:none;padding:0;pointer-events:none;position:relative}:host(cds-skeleton-icon:active),:host(cds-skeleton-icon:focus),:host(cds-skeleton-icon:hover){border:none;cursor:default;outline:none}:host(cds-skeleton-icon):before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){:host(cds-skeleton-icon):before{animation:none}}']);let c,l=e=>e;o([r(`${s}-ai-skeleton-icon`)],(function(e,o){return{F:class extends o{constructor(...o){super(...o),e(this)}},d:[{kind:"field",decorators:[i({attribute:"custom-styles"})],key:"customStyles",value:()=>""},{kind:"method",key:"render",value:function(){return t(c||(c=l`<cds-skeleton-icon
|
|
61
61
|
class="${0}--skeleton__icon--ai"
|
|
62
62
|
style="${0}"></cds-skeleton-icon>`),s,this.customStyles)}},{kind:"field",static:!0,key:"styles",value:()=>a}]}}),n);let d,k=e=>e;o([r(`${s}-ai-skeleton-placeholder`)],(function(e,o){return{F:class extends o{constructor(...o){super(...o),e(this)}},d:[{kind:"method",key:"render",value:function(){return t(d||(d=k`<cds-skeleton-placeholder
|
|
63
63
|
optional-classes="${0}--skeleton__placeholder--ai"></cds-skeleton-placeholder>`),s)}},{kind:"field",static:!0,key:"styles",value:()=>a}]}}),n);let f,m=e=>e;o([r(`${s}-ai-skeleton-text`)],(function(e,o){return{F:class extends o{constructor(...o){super(...o),e(this)}},d:[{kind:"field",decorators:[i({type:Boolean,reflect:!0})],key:"heading",value:()=>!1},{kind:"field",decorators:[i({reflect:!0})],key:"width",value:()=>"100%"},{kind:"field",decorators:[i({type:Boolean,reflect:!0})],key:"paragraph",value:()=>!1},{kind:"field",decorators:[i({type:Number,reflect:!0})],key:"lineCount",value:()=>3},{kind:"method",key:"render",value:function(){const{heading:e,width:o,lineCount:n,paragraph:i}=this;return t(f||(f=m`<cds-skeleton-text
|