@carbon/web-components 2.41.0-rc.0 → 2.41.1
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/custom-elements.json +130 -0
- package/dist/ai-label.min.js +8 -8
- package/dist/breadcrumb.min.js +4 -4
- package/dist/button-CmUJmoio.js +93 -0
- package/dist/{button-skeleton-DKiPqzwa.js → button-skeleton-Ba4xDn6y.js} +1 -1
- package/dist/button.min.js +1 -1
- package/dist/chat-button.min.js +3 -3
- package/dist/code-snippet.min.js +29 -29
- package/dist/combo-button.min.js +7 -7
- package/dist/content-switcher-item-Cz7OvIj8.js +54 -0
- package/dist/content-switcher.min.js +1 -1
- package/dist/copy-button.min.js +8 -8
- package/dist/data-table.min.js +41 -41
- package/dist/feature-flags.min.js +1 -1
- package/dist/file-uploader.min.js +29 -29
- package/dist/floating-controller-CxZPAslz.js +28 -0
- package/dist/icon-button.min.js +7 -7
- package/dist/icon-indicator.min.js +1 -1
- package/dist/menu-button.min.js +5 -5
- package/dist/modal.min.js +6 -6
- package/dist/notification.min.js +28 -28
- package/dist/overflow-menu.min.js +6 -6
- package/dist/pagination.min.js +24 -24
- package/dist/password-input.min.js +7 -7
- package/dist/popover.min.js +9 -9
- package/dist/progress-indicator.min.js +12 -12
- package/dist/radio-button.min.js +3 -3
- package/dist/side-panel.min.js +6 -6
- package/dist/skip-to-content.min.js +4 -4
- package/dist/slug.min.js +8 -8
- package/dist/tabs.min.js +24 -24
- package/dist/tag.min.js +49 -49
- package/dist/tearsheet.min.js +1 -1
- package/dist/tile.min.js +1 -1
- package/dist/toggle-tip.min.js +14 -14
- package/dist/tooltip-content-Tyg0Hg0i.js +30 -0
- package/dist/tooltip.min.js +1 -1
- package/dist/ui-shell.min.js +53 -53
- package/es/components/ai-label/ai-label.scss.js +1 -1
- package/es/components/breadcrumb/breadcrumb.scss.js +1 -1
- package/es/components/button/button.scss.js +1 -1
- package/es/components/chat-button/chat-button.scss.js +1 -1
- package/es/components/code-snippet/code-snippet.scss.js +1 -1
- package/es/components/combo-button/combo-button.scss.js +1 -1
- package/es/components/content-switcher/content-switcher.scss.js +1 -1
- package/es/components/copy-button/copy-button.scss.js +1 -1
- package/es/components/data-table/data-table.scss.js +1 -1
- package/es/components/data-table/table.js +12 -4
- package/es/components/data-table/table.js.map +1 -1
- package/es/components/feature-flags/index.js +1 -0
- package/es/components/feature-flags/index.js.map +1 -1
- package/es/components/file-uploader/file-uploader.scss.js +1 -1
- package/es/components/icon-button/icon-button.scss.js +1 -1
- package/es/components/menu-button/menu-button.scss.js +1 -1
- package/es/components/modal/modal.scss.js +1 -1
- package/es/components/notification/actionable-notification.scss.js +1 -1
- package/es/components/notification/inline-notification.scss.js +1 -1
- package/es/components/notification/toast-notification.scss.js +1 -1
- package/es/components/overflow-menu/overflow-menu.scss.js +1 -1
- package/es/components/pagination/pagination.scss.js +1 -1
- package/es/components/popover/defs.d.ts +13 -0
- package/es/components/popover/defs.js +15 -1
- package/es/components/popover/defs.js.map +1 -1
- package/es/components/popover/popover-content.d.ts +13 -0
- package/es/components/popover/popover-content.js +22 -0
- package/es/components/popover/popover-content.js.map +1 -1
- package/es/components/popover/popover.d.ts +10 -1
- package/es/components/popover/popover.js +31 -3
- package/es/components/popover/popover.js.map +1 -1
- package/es/components/popover/popover.scss.js +1 -1
- package/es/components/progress-indicator/progress-indicator.scss.js +1 -1
- package/es/components/skip-to-content/skip-to-content.scss.js +1 -1
- package/es/components/slug/slug.scss.js +1 -1
- package/es/components/tabs/tabs.scss.js +1 -1
- package/es/components/tag/tag.scss.js +1 -1
- package/es/components/tile/tile.scss.js +1 -1
- package/es/components/toggle-tip/toggletip.scss.js +1 -1
- package/es/components/tooltip/tooltip.js +3 -0
- package/es/components/tooltip/tooltip.js.map +1 -1
- package/es/components/tooltip/tooltip.scss.js +1 -1
- package/es/components/ui-shell/header.scss.js +1 -1
- package/es/feature-flags/es/index.js +30 -2
- package/es/feature-flags/es/index.js.map +1 -1
- package/es-custom/components/ai-label/ai-label.scss.js +1 -1
- package/es-custom/components/breadcrumb/breadcrumb.scss.js +1 -1
- package/es-custom/components/button/button.scss.js +1 -1
- package/es-custom/components/chat-button/chat-button.scss.js +1 -1
- package/es-custom/components/code-snippet/code-snippet.scss.js +1 -1
- package/es-custom/components/combo-button/combo-button.scss.js +1 -1
- package/es-custom/components/content-switcher/content-switcher.scss.js +1 -1
- package/es-custom/components/copy-button/copy-button.scss.js +1 -1
- package/es-custom/components/data-table/data-table.scss.js +1 -1
- package/es-custom/components/data-table/table.js +12 -4
- package/es-custom/components/data-table/table.js.map +1 -1
- package/es-custom/components/feature-flags/index.js +1 -0
- package/es-custom/components/feature-flags/index.js.map +1 -1
- package/es-custom/components/file-uploader/file-uploader.scss.js +1 -1
- package/es-custom/components/icon-button/icon-button.scss.js +1 -1
- package/es-custom/components/menu-button/menu-button.scss.js +1 -1
- package/es-custom/components/modal/modal.scss.js +1 -1
- package/es-custom/components/notification/actionable-notification.scss.js +1 -1
- package/es-custom/components/notification/inline-notification.scss.js +1 -1
- package/es-custom/components/notification/toast-notification.scss.js +1 -1
- package/es-custom/components/overflow-menu/overflow-menu.scss.js +1 -1
- package/es-custom/components/pagination/pagination.scss.js +1 -1
- package/es-custom/components/popover/defs.d.ts +13 -0
- package/es-custom/components/popover/defs.js +15 -1
- package/es-custom/components/popover/defs.js.map +1 -1
- package/es-custom/components/popover/popover-content.d.ts +13 -0
- package/es-custom/components/popover/popover-content.js +22 -0
- package/es-custom/components/popover/popover-content.js.map +1 -1
- package/es-custom/components/popover/popover.d.ts +10 -1
- package/es-custom/components/popover/popover.js +31 -3
- package/es-custom/components/popover/popover.js.map +1 -1
- package/es-custom/components/popover/popover.scss.js +1 -1
- package/es-custom/components/progress-indicator/progress-indicator.scss.js +1 -1
- package/es-custom/components/skip-to-content/skip-to-content.scss.js +1 -1
- package/es-custom/components/slug/slug.scss.js +1 -1
- package/es-custom/components/tabs/tabs.scss.js +1 -1
- package/es-custom/components/tag/tag.scss.js +1 -1
- package/es-custom/components/tile/tile.scss.js +1 -1
- package/es-custom/components/toggle-tip/toggletip.scss.js +1 -1
- package/es-custom/components/tooltip/tooltip.js +3 -0
- package/es-custom/components/tooltip/tooltip.js.map +1 -1
- package/es-custom/components/tooltip/tooltip.scss.js +1 -1
- package/es-custom/components/ui-shell/header.scss.js +1 -1
- package/es-custom/feature-flags/es/index.js +30 -2
- package/es-custom/feature-flags/es/index.js.map +1 -1
- package/lib/components/popover/defs.d.ts +13 -0
- package/lib/components/popover/defs.js +14 -0
- package/lib/components/popover/defs.js.map +1 -1
- package/lib/components/popover/popover-content.d.ts +13 -0
- package/lib/components/popover/popover.d.ts +10 -1
- package/package.json +4 -4
- package/scss/components/popover/popover.scss +210 -9
- package/telemetry.yml +5 -1
- package/dist/button-Co3aPX0Y.js +0 -93
- package/dist/content-switcher-item-BDJMJLCb.js +0 -54
- package/dist/defs-CBJRLDfw.js +0 -28
- package/dist/floating-controller-CnuSelc_.js +0 -28
- package/dist/tooltip-content-BZBP-szv.js +0 -30
|
@@ -105,3 +105,16 @@ export declare enum POPOVER_ALIGNMENT {
|
|
|
105
105
|
*/
|
|
106
106
|
RIGHT_END = "right-end"
|
|
107
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* The background token options for popover.
|
|
110
|
+
*/
|
|
111
|
+
export declare enum POPOVER_BACKGROUND_TOKEN {
|
|
112
|
+
/**
|
|
113
|
+
* Use the layer token for the background.
|
|
114
|
+
*/
|
|
115
|
+
LAYER = "layer",
|
|
116
|
+
/**
|
|
117
|
+
* Use the background token for the background.
|
|
118
|
+
*/
|
|
119
|
+
BACKGROUND = "background"
|
|
120
|
+
}
|
|
@@ -115,4 +115,18 @@ exports.POPOVER_ALIGNMENT = void 0;
|
|
|
115
115
|
*/
|
|
116
116
|
POPOVER_ALIGNMENT["RIGHT_END"] = "right-end";
|
|
117
117
|
})(exports.POPOVER_ALIGNMENT || (exports.POPOVER_ALIGNMENT = {}));
|
|
118
|
+
/**
|
|
119
|
+
* The background token options for popover.
|
|
120
|
+
*/
|
|
121
|
+
exports.POPOVER_BACKGROUND_TOKEN = void 0;
|
|
122
|
+
(function (POPOVER_BACKGROUND_TOKEN) {
|
|
123
|
+
/**
|
|
124
|
+
* Use the layer token for the background.
|
|
125
|
+
*/
|
|
126
|
+
POPOVER_BACKGROUND_TOKEN["LAYER"] = "layer";
|
|
127
|
+
/**
|
|
128
|
+
* Use the background token for the background.
|
|
129
|
+
*/
|
|
130
|
+
POPOVER_BACKGROUND_TOKEN["BACKGROUND"] = "background";
|
|
131
|
+
})(exports.POPOVER_BACKGROUND_TOKEN || (exports.POPOVER_BACKGROUND_TOKEN = {}));
|
|
118
132
|
//# sourceMappingURL=defs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","sources":["../../../src/components/popover/defs.ts"],"sourcesContent":["/**\n * Copyright IBM Corp. 2020, 2024\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * The alignment choices of popover.\n */\nexport enum POPOVER_ALIGNMENT {\n /**\n * Align the top position for the popover content.\n */\n TOP = 'top',\n\n /**\n * Align the top-left position for the popover content.\n *\n * @deprecated\n */\n TOP_LEFT = 'top-left',\n\n /**\n * Align the top right position for the popover content.\n *\n * @deprecated\n */\n TOP_RIGHT = 'top-right',\n\n /**\n * Align the top-start position for the popover content.\n */\n TOP_START = 'top-start',\n\n /**\n * Align the top end position for the popover content.\n */\n TOP_END = 'top-end',\n\n /**\n * Align the bottom position for the popover content.\n */\n BOTTOM = 'bottom',\n\n /**\n * Align the bottom left position for the popover content.\n *\n * @deprecated\n */\n BOTTOM_LEFT = 'bottom-left',\n\n /**\n * Align the bottom right position for the popover content.\n *\n * @deprecated\n */\n BOTTOM_RIGHT = 'bottom-right',\n\n /**\n * Align the bottom start position for the popover content.\n */\n BOTTOM_START = 'bottom-start',\n\n /**\n * Align the bottom end position for the popover content.\n */\n BOTTOM_END = 'bottom-end',\n\n /**\n * Align the left position for the popover content.\n */\n LEFT = 'left',\n\n /**\n * Align the left bottom position for the popover content.\n *\n * @deprecated\n */\n LEFT_BOTTOM = 'left-bottom',\n\n /**\n * Align the left top position for the popover content.\n *\n * @deprecated\n */\n LEFT_TOP = 'left-top',\n\n /**\n * Align the left start position for the popover content.\n */\n LEFT_START = 'left-start',\n\n /**\n * Align the left end position for the popover content.\n */\n LEFT_END = 'left-end',\n\n /**\n * Align the right position for the popover content.\n */\n RIGHT = 'right',\n\n /**\n * Align the right bottom position for the popover content.\n *\n * @deprecated\n */\n RIGHT_BOTTOM = 'right-bottom',\n\n /**\n * Align the right top position for the popover content.\n *\n * @deprecated\n */\n RIGHT_TOP = 'right-top',\n\n /**\n * Align the right start position for the popover content.\n */\n RIGHT_START = 'right-start',\n\n /**\n * Align the right end position for the popover content.\n */\n RIGHT_END = 'right-end',\n}\n"],"names":["POPOVER_ALIGNMENT"],"mappings":";;;;;;;;;AAAA;;;;;AAKG;AACH;;AAEG;AACSA;AAAZ,CAAA,UAAY,iBAAiB,EAAA;AAC3B;;AAEG;AACH,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AAEX;;;;AAIG;AACH,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AAErB;;;;AAIG;AACH,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AAEvB;;AAEG;AACH,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AAEvB;;AAEG;AACH,IAAA,iBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AAEnB;;AAEG;AACH,IAAA,iBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAEjB;;;;AAIG;AACH,IAAA,iBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAE3B;;;;AAIG;AACH,IAAA,iBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAE7B;;AAEG;AACH,IAAA,iBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAE7B;;AAEG;AACH,IAAA,iBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AAEzB;;AAEG;AACH,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AAEb;;;;AAIG;AACH,IAAA,iBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAE3B;;;;AAIG;AACH,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AAErB;;AAEG;AACH,IAAA,iBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AAEzB;;AAEG;AACH,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AAErB;;AAEG;AACH,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AAEf;;;;AAIG;AACH,IAAA,iBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAE7B;;;;AAIG;AACH,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AAEvB;;AAEG;AACH,IAAA,iBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAE3B;;AAEG;AACH,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACzB,CAAC,EApHWA,yBAAiB,KAAjBA,yBAAiB,GAoH5B,EAAA,CAAA,CAAA;;"}
|
|
1
|
+
{"version":3,"file":"defs.js","sources":["../../../src/components/popover/defs.ts"],"sourcesContent":["/**\n * Copyright IBM Corp. 2020, 2024\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * The alignment choices of popover.\n */\nexport enum POPOVER_ALIGNMENT {\n /**\n * Align the top position for the popover content.\n */\n TOP = 'top',\n\n /**\n * Align the top-left position for the popover content.\n *\n * @deprecated\n */\n TOP_LEFT = 'top-left',\n\n /**\n * Align the top right position for the popover content.\n *\n * @deprecated\n */\n TOP_RIGHT = 'top-right',\n\n /**\n * Align the top-start position for the popover content.\n */\n TOP_START = 'top-start',\n\n /**\n * Align the top end position for the popover content.\n */\n TOP_END = 'top-end',\n\n /**\n * Align the bottom position for the popover content.\n */\n BOTTOM = 'bottom',\n\n /**\n * Align the bottom left position for the popover content.\n *\n * @deprecated\n */\n BOTTOM_LEFT = 'bottom-left',\n\n /**\n * Align the bottom right position for the popover content.\n *\n * @deprecated\n */\n BOTTOM_RIGHT = 'bottom-right',\n\n /**\n * Align the bottom start position for the popover content.\n */\n BOTTOM_START = 'bottom-start',\n\n /**\n * Align the bottom end position for the popover content.\n */\n BOTTOM_END = 'bottom-end',\n\n /**\n * Align the left position for the popover content.\n */\n LEFT = 'left',\n\n /**\n * Align the left bottom position for the popover content.\n *\n * @deprecated\n */\n LEFT_BOTTOM = 'left-bottom',\n\n /**\n * Align the left top position for the popover content.\n *\n * @deprecated\n */\n LEFT_TOP = 'left-top',\n\n /**\n * Align the left start position for the popover content.\n */\n LEFT_START = 'left-start',\n\n /**\n * Align the left end position for the popover content.\n */\n LEFT_END = 'left-end',\n\n /**\n * Align the right position for the popover content.\n */\n RIGHT = 'right',\n\n /**\n * Align the right bottom position for the popover content.\n *\n * @deprecated\n */\n RIGHT_BOTTOM = 'right-bottom',\n\n /**\n * Align the right top position for the popover content.\n *\n * @deprecated\n */\n RIGHT_TOP = 'right-top',\n\n /**\n * Align the right start position for the popover content.\n */\n RIGHT_START = 'right-start',\n\n /**\n * Align the right end position for the popover content.\n */\n RIGHT_END = 'right-end',\n}\n\n/**\n * The background token options for popover.\n */\nexport enum POPOVER_BACKGROUND_TOKEN {\n /**\n * Use the layer token for the background.\n */\n LAYER = 'layer',\n\n /**\n * Use the background token for the background.\n */\n BACKGROUND = 'background',\n}\n"],"names":["POPOVER_ALIGNMENT","POPOVER_BACKGROUND_TOKEN"],"mappings":";;;;;;;;;AAAA;;;;;AAKG;AACH;;AAEG;AACSA;AAAZ,CAAA,UAAY,iBAAiB,EAAA;AAC3B;;AAEG;AACH,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AAEX;;;;AAIG;AACH,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AAErB;;;;AAIG;AACH,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AAEvB;;AAEG;AACH,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AAEvB;;AAEG;AACH,IAAA,iBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AAEnB;;AAEG;AACH,IAAA,iBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAEjB;;;;AAIG;AACH,IAAA,iBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAE3B;;;;AAIG;AACH,IAAA,iBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAE7B;;AAEG;AACH,IAAA,iBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAE7B;;AAEG;AACH,IAAA,iBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AAEzB;;AAEG;AACH,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AAEb;;;;AAIG;AACH,IAAA,iBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAE3B;;;;AAIG;AACH,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AAErB;;AAEG;AACH,IAAA,iBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AAEzB;;AAEG;AACH,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AAErB;;AAEG;AACH,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AAEf;;;;AAIG;AACH,IAAA,iBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAE7B;;;;AAIG;AACH,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AAEvB;;AAEG;AACH,IAAA,iBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAE3B;;AAEG;AACH,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACzB,CAAC,EApHWA,yBAAiB,KAAjBA,yBAAiB,GAoH5B,EAAA,CAAA,CAAA;AAED;;AAEG;AACSC;AAAZ,CAAA,UAAY,wBAAwB,EAAA;AAClC;;AAEG;AACH,IAAA,wBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AAEf;;AAEG;AACH,IAAA,wBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AAC3B,CAAC,EAVWA,gCAAwB,KAAxBA,gCAAwB,GAUnC,EAAA,CAAA,CAAA;;"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import { LitElement } from 'lit';
|
|
8
|
+
import { POPOVER_BACKGROUND_TOKEN } from './defs';
|
|
8
9
|
/**
|
|
9
10
|
* Popover.
|
|
10
11
|
*
|
|
@@ -27,6 +28,14 @@ declare class CDSPopoverContent extends LitElement {
|
|
|
27
28
|
* Specify whether a dropShadow should be rendered
|
|
28
29
|
*/
|
|
29
30
|
dropShadow: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Specify whether a border should be rendered on the popover
|
|
33
|
+
*/
|
|
34
|
+
border: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Render the component using the high-contrast variant
|
|
37
|
+
*/
|
|
38
|
+
highContrast: boolean;
|
|
30
39
|
/**
|
|
31
40
|
* Specify whether the component is currently open or closed
|
|
32
41
|
*/
|
|
@@ -35,6 +44,10 @@ declare class CDSPopoverContent extends LitElement {
|
|
|
35
44
|
* Render the component using the tab tip variant
|
|
36
45
|
*/
|
|
37
46
|
tabTip: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Specify the background token to use. Default is 'layer'.
|
|
49
|
+
*/
|
|
50
|
+
backgroundToken: POPOVER_BACKGROUND_TOKEN;
|
|
38
51
|
/**
|
|
39
52
|
* The shadow slot this popover content should be in.
|
|
40
53
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2019,
|
|
2
|
+
* Copyright IBM Corp. 2019, 2025
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import { LitElement } from 'lit';
|
|
8
|
+
import { POPOVER_BACKGROUND_TOKEN } from './defs';
|
|
8
9
|
declare const CDSPopover_base: {
|
|
9
10
|
new (...args: any[]): {
|
|
10
11
|
_handles: Set<import("../../globals/internal/handle").default>;
|
|
@@ -403,6 +404,10 @@ declare class CDSPopover extends CDSPopover_base {
|
|
|
403
404
|
* Specify whether a dropShadow should be rendered
|
|
404
405
|
*/
|
|
405
406
|
dropShadow: boolean;
|
|
407
|
+
/**
|
|
408
|
+
* Specify whether a border should be rendered on the popover
|
|
409
|
+
*/
|
|
410
|
+
border: boolean;
|
|
406
411
|
/**
|
|
407
412
|
* Render the component using the high-contrast variant
|
|
408
413
|
*/
|
|
@@ -415,6 +420,10 @@ declare class CDSPopover extends CDSPopover_base {
|
|
|
415
420
|
* Render the component using the tab tip variant
|
|
416
421
|
*/
|
|
417
422
|
tabTip: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* Specify the background token to use. Default is 'layer'.
|
|
425
|
+
*/
|
|
426
|
+
backgroundToken: POPOVER_BACKGROUND_TOKEN;
|
|
418
427
|
/**
|
|
419
428
|
* Handles `slotchange` event.
|
|
420
429
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/web-components",
|
|
3
3
|
"description": "Web components for the Carbon Design System",
|
|
4
|
-
"version": "2.41.
|
|
4
|
+
"version": "2.41.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "es/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@carbon/icon-helpers": "10.47.0",
|
|
70
|
-
"@carbon/styles": "^1.93.
|
|
70
|
+
"@carbon/styles": "^1.93.1",
|
|
71
71
|
"@floating-ui/dom": "^1.6.3",
|
|
72
72
|
"@ibm/telemetry-js": "^1.10.2",
|
|
73
73
|
"@lit/context": "^1.1.3",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"tslib": "^2.6.3"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@carbon/icons": "^11.70.0
|
|
80
|
+
"@carbon/icons": "^11.70.0",
|
|
81
81
|
"@carbon/layout": "^11.43.0",
|
|
82
82
|
"@carbon/motion": "^11.37.0",
|
|
83
83
|
"@juggle/resize-observer": "^3.4.0",
|
|
@@ -130,5 +130,5 @@
|
|
|
130
130
|
}
|
|
131
131
|
]
|
|
132
132
|
},
|
|
133
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "a932119dba9a4fe9c73dbb88058e9e21c42f8486"
|
|
134
134
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2019,
|
|
2
|
+
* Copyright IBM Corp. 2019, 2025
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -30,6 +30,18 @@ $popover-caret-height: custom-property.get-var(
|
|
|
30
30
|
rem(6px)
|
|
31
31
|
);
|
|
32
32
|
|
|
33
|
+
// The drop shadow value used for the popover container
|
|
34
|
+
$popover-drop-shadow: custom-property.get-var(
|
|
35
|
+
'popover-drop-shadow',
|
|
36
|
+
drop-shadow(0 $spacing-01 $spacing-01 rgba(0, 0, 0, 0.2))
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
// The border value used for the popover container
|
|
40
|
+
$popover-border-color: custom-property.get-var(
|
|
41
|
+
'popover-border-color',
|
|
42
|
+
theme.$border-subtle
|
|
43
|
+
);
|
|
44
|
+
|
|
33
45
|
:host(#{$prefix}-tooltip),
|
|
34
46
|
:host(#{$prefix}-popover) {
|
|
35
47
|
::slotted(.#{$prefix}--popover--tab-tip__button) {
|
|
@@ -45,6 +57,26 @@ $popover-caret-height: custom-property.get-var(
|
|
|
45
57
|
}
|
|
46
58
|
}
|
|
47
59
|
|
|
60
|
+
:host(
|
|
61
|
+
#{$prefix}-popover-content[backgroundToken='background']:not([highContrast])
|
|
62
|
+
) {
|
|
63
|
+
.#{$prefix}--popover-content {
|
|
64
|
+
background: theme.$background;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host(
|
|
69
|
+
#{$prefix}-popover-content[open][caret][backgroundToken='background']:not(
|
|
70
|
+
[highContrast]
|
|
71
|
+
)
|
|
72
|
+
) {
|
|
73
|
+
.#{$prefix}--popover-caret {
|
|
74
|
+
&::after {
|
|
75
|
+
background: theme.$background;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
48
80
|
:host(#{$prefix}-popover[tabTip][open]) {
|
|
49
81
|
::slotted(.#{$prefix}--popover--tab-tip__button) {
|
|
50
82
|
background: theme.$layer !important; /* stylelint-disable-line declaration-no-important */
|
|
@@ -82,16 +114,63 @@ $popover-caret-height: custom-property.get-var(
|
|
|
82
114
|
:host(#{$prefix}-slug[open]) {
|
|
83
115
|
.#{$prefix}--popover-caret {
|
|
84
116
|
display: block;
|
|
117
|
+
|
|
118
|
+
// caret background
|
|
119
|
+
&::after {
|
|
120
|
+
position: absolute;
|
|
121
|
+
display: block;
|
|
122
|
+
background: theme.$layer;
|
|
123
|
+
content: '';
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// caret border
|
|
127
|
+
&::before {
|
|
128
|
+
position: absolute;
|
|
129
|
+
display: none;
|
|
130
|
+
background-color: $popover-border-color;
|
|
131
|
+
content: '';
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
:host(#{$prefix}-tooltip-content[open][caret][highContrast]),
|
|
137
|
+
:host(#{$prefix}-popover-content[open][caret][highContrast]) {
|
|
138
|
+
.#{$prefix}--popover-caret {
|
|
139
|
+
&::after {
|
|
140
|
+
background: theme.$background-inverse;
|
|
141
|
+
}
|
|
85
142
|
}
|
|
86
143
|
}
|
|
87
144
|
|
|
145
|
+
:host(#{$prefix}-tooltip-content[border]),
|
|
146
|
+
:host(#{$prefix}-popover-content[border]) {
|
|
147
|
+
.#{$prefix}--popover-content {
|
|
148
|
+
outline: 1px solid $popover-border-color;
|
|
149
|
+
outline-offset: -1px;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:host(#{$prefix}-tooltip-content[dropShadow]),
|
|
88
154
|
:host(#{$prefix}-popover-content[dropShadow]) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
155
|
+
.#{$prefix}--popover-content {
|
|
156
|
+
filter: $popover-drop-shadow;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:host(#{$prefix}-tooltip-content[open][caret][border]),
|
|
161
|
+
:host(#{$prefix}-popover-content[open][caret][border]) {
|
|
162
|
+
.#{$prefix}--popover-caret {
|
|
163
|
+
&::before {
|
|
164
|
+
display: block;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
93
167
|
}
|
|
94
168
|
|
|
169
|
+
//-----------------------------------------------------------------------------
|
|
170
|
+
// Bottom
|
|
171
|
+
//-----------------------------------------------------------------------------
|
|
172
|
+
|
|
173
|
+
// bottom caret
|
|
95
174
|
:host(#{$prefix}-tooltip-content[align^='bottom']:not([autoalign])),
|
|
96
175
|
:host(#{$prefix}-popover-content[align^='bottom']:not([autoalign])),
|
|
97
176
|
:host(#{$prefix}-toggletip[alignment^='bottom']:not([autoalign])),
|
|
@@ -99,11 +178,37 @@ $popover-caret-height: custom-property.get-var(
|
|
|
99
178
|
:host(#{$prefix}-slug[alignment^='bottom']:not([autoalign])) {
|
|
100
179
|
.#{$prefix}--popover-caret {
|
|
101
180
|
block-size: $popover-caret-height;
|
|
102
|
-
clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
|
|
103
181
|
inline-size: $popover-caret-width;
|
|
104
182
|
inset-block-end: 0;
|
|
105
183
|
inset-inline-start: 50%;
|
|
106
184
|
transform: translate(-50%, $popover-offset);
|
|
185
|
+
|
|
186
|
+
&::after {
|
|
187
|
+
block-size: $popover-caret-height;
|
|
188
|
+
clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
|
|
189
|
+
inline-size: $popover-caret-width;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// bottom caret border
|
|
195
|
+
:host(#{$prefix}-tooltip-content[align^='bottom'][border]:not([autoalign])),
|
|
196
|
+
:host(#{$prefix}-popover-content[align^='bottom'][border]:not([autoalign])),
|
|
197
|
+
:host(#{$prefix}-toggletip[alignment^='bottom'][border]:not([autoalign])),
|
|
198
|
+
:host(#{$prefix}-ai-label[alignment^='bottom'][border]:not([autoalign])),
|
|
199
|
+
:host(#{$prefix}-slug[alignment^='bottom'][border]:not([autoalign])) {
|
|
200
|
+
.#{$prefix}--popover-caret {
|
|
201
|
+
&::before {
|
|
202
|
+
block-size: $popover-caret-height;
|
|
203
|
+
clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
|
|
204
|
+
inline-size: $popover-caret-width;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&::after {
|
|
208
|
+
inline-size: calc($popover-caret-width - 1px);
|
|
209
|
+
inset-block-start: 1px;
|
|
210
|
+
inset-inline-start: 0.5px;
|
|
211
|
+
}
|
|
107
212
|
}
|
|
108
213
|
}
|
|
109
214
|
|
|
@@ -206,6 +311,10 @@ $popover-caret-height: custom-property.get-var(
|
|
|
206
311
|
}
|
|
207
312
|
}
|
|
208
313
|
|
|
314
|
+
//-----------------------------------------------------------------------------
|
|
315
|
+
// Left
|
|
316
|
+
//-----------------------------------------------------------------------------
|
|
317
|
+
|
|
209
318
|
:host(#{$prefix}-tooltip-content[align^='left']:not([autoalign])),
|
|
210
319
|
:host(#{$prefix}-popover-content[align^='left']:not([autoalign])),
|
|
211
320
|
:host(#{$prefix}-toggletip[alignment^='left']:not([autoalign])),
|
|
@@ -213,11 +322,35 @@ $popover-caret-height: custom-property.get-var(
|
|
|
213
322
|
:host(#{$prefix}-slug[alignment^='left']:not([autoalign])) {
|
|
214
323
|
.#{$prefix}--popover-caret {
|
|
215
324
|
block-size: $popover-caret-width;
|
|
216
|
-
clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
|
|
217
325
|
inline-size: $popover-caret-height;
|
|
218
326
|
inset-block-start: 50%;
|
|
219
327
|
inset-inline-end: 100%;
|
|
220
328
|
transform: translate(calc(-1 * $popover-offset + 100%), -50%);
|
|
329
|
+
|
|
330
|
+
&::after {
|
|
331
|
+
block-size: $popover-caret-width;
|
|
332
|
+
clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
|
|
333
|
+
inline-size: $popover-caret-height;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// left caret border
|
|
339
|
+
:host(#{$prefix}-tooltip-content[align^='left'][border]:not([autoalign])),
|
|
340
|
+
:host(#{$prefix}-popover-content[align^='left'][border]:not([autoalign])),
|
|
341
|
+
:host(#{$prefix}-toggletip[alignment^='left'][border]:not([autoalign])),
|
|
342
|
+
:host(#{$prefix}-ai-label[alignment^='left'][border]:not([autoalign])),
|
|
343
|
+
:host(#{$prefix}-slug[alignment^='left'][border]:not([autoalign])) {
|
|
344
|
+
.#{$prefix}--popover-caret {
|
|
345
|
+
&::before {
|
|
346
|
+
block-size: $popover-caret-width;
|
|
347
|
+
clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
|
|
348
|
+
inline-size: $popover-caret-height;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
&::after {
|
|
352
|
+
inset-inline-start: -1px;
|
|
353
|
+
}
|
|
221
354
|
}
|
|
222
355
|
}
|
|
223
356
|
|
|
@@ -230,6 +363,10 @@ $popover-caret-height: custom-property.get-var(
|
|
|
230
363
|
.#{$prefix}--popover-caret {
|
|
231
364
|
inset-inline-end: initial;
|
|
232
365
|
inset-inline-start: 100%;
|
|
366
|
+
|
|
367
|
+
&::after {
|
|
368
|
+
inset-inline-start: 1px;
|
|
369
|
+
}
|
|
233
370
|
}
|
|
234
371
|
}
|
|
235
372
|
|
|
@@ -293,6 +430,11 @@ $popover-caret-height: custom-property.get-var(
|
|
|
293
430
|
}
|
|
294
431
|
}
|
|
295
432
|
|
|
433
|
+
//-----------------------------------------------------------------------------
|
|
434
|
+
// Right
|
|
435
|
+
//-----------------------------------------------------------------------------
|
|
436
|
+
|
|
437
|
+
// right caret
|
|
296
438
|
:host(#{$prefix}-tooltip-content[align^='right']:not([autoalign])),
|
|
297
439
|
:host(#{$prefix}-popover-content[align^='right']:not([autoalign])),
|
|
298
440
|
:host(#{$prefix}-toggletip[alignment^='right']:not([autoalign])),
|
|
@@ -300,11 +442,35 @@ $popover-caret-height: custom-property.get-var(
|
|
|
300
442
|
:host(#{$prefix}-slug[alignment^='right']:not([autoalign])) {
|
|
301
443
|
.#{$prefix}--popover-caret {
|
|
302
444
|
block-size: $popover-caret-width;
|
|
303
|
-
clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
|
|
304
445
|
inline-size: $popover-caret-height;
|
|
305
446
|
inset-block-start: 50%;
|
|
306
447
|
inset-inline-start: 100%;
|
|
307
448
|
transform: translate(calc($popover-offset - 100%), -50%);
|
|
449
|
+
|
|
450
|
+
&::after {
|
|
451
|
+
block-size: $popover-caret-width;
|
|
452
|
+
clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
|
|
453
|
+
inline-size: $popover-caret-height;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// right caret border
|
|
459
|
+
:host(#{$prefix}-tooltip-content[align^='right'][border]:not([autoalign])),
|
|
460
|
+
:host(#{$prefix}-popover-content[align^='right'][border]:not([autoalign])),
|
|
461
|
+
:host(#{$prefix}-toggletip[alignment^='right'][border]:not([autoalign])),
|
|
462
|
+
:host(#{$prefix}-ai-label[alignment^='right'][border]:not([autoalign])),
|
|
463
|
+
:host(#{$prefix}-slug[alignment^='right'][border]:not([autoalign])) {
|
|
464
|
+
.#{$prefix}--popover-caret {
|
|
465
|
+
&::before {
|
|
466
|
+
block-size: $popover-caret-width;
|
|
467
|
+
clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
|
|
468
|
+
inline-size: $popover-caret-height;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
&::after {
|
|
472
|
+
inset-inline-start: 1px;
|
|
473
|
+
}
|
|
308
474
|
}
|
|
309
475
|
}
|
|
310
476
|
|
|
@@ -317,6 +483,10 @@ $popover-caret-height: custom-property.get-var(
|
|
|
317
483
|
.#{$prefix}--popover-caret {
|
|
318
484
|
inset-inline-end: 100%;
|
|
319
485
|
inset-inline-start: initial;
|
|
486
|
+
|
|
487
|
+
&::after {
|
|
488
|
+
inset-inline-start: -1px;
|
|
489
|
+
}
|
|
320
490
|
}
|
|
321
491
|
}
|
|
322
492
|
|
|
@@ -373,6 +543,11 @@ $popover-caret-height: custom-property.get-var(
|
|
|
373
543
|
}
|
|
374
544
|
}
|
|
375
545
|
|
|
546
|
+
//-----------------------------------------------------------------------------
|
|
547
|
+
// Top
|
|
548
|
+
//-----------------------------------------------------------------------------
|
|
549
|
+
|
|
550
|
+
// top caret
|
|
376
551
|
:host(#{$prefix}-tooltip-content[align^='top']:not([autoalign])),
|
|
377
552
|
:host(#{$prefix}-popover-content[align^='top']:not([autoalign])),
|
|
378
553
|
:host(#{$prefix}-toggletip[alignment^='top']:not([autoalign])),
|
|
@@ -380,11 +555,37 @@ $popover-caret-height: custom-property.get-var(
|
|
|
380
555
|
:host(#{$prefix}-slug[alignment^='top']:not([autoalign])) {
|
|
381
556
|
.#{$prefix}--popover-caret {
|
|
382
557
|
block-size: $popover-caret-height;
|
|
383
|
-
clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
|
|
384
558
|
inline-size: $popover-caret-width;
|
|
385
559
|
inset-block-start: 0;
|
|
386
560
|
inset-inline-start: 50%;
|
|
387
561
|
transform: translate(-50%, calc(-1 * $popover-offset));
|
|
562
|
+
|
|
563
|
+
&::after {
|
|
564
|
+
block-size: $popover-caret-height;
|
|
565
|
+
clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
|
|
566
|
+
inline-size: $popover-caret-width;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
// top caret border
|
|
572
|
+
:host(#{$prefix}-tooltip-content[align^='top'][border]:not([autoalign])),
|
|
573
|
+
:host(#{$prefix}-popover-content[align^='top'][border]:not([autoalign])),
|
|
574
|
+
:host(#{$prefix}-toggletip[alignment^='top'][border]:not([autoalign])),
|
|
575
|
+
:host(#{$prefix}-ai-label[alignment^='top'][border]:not([autoalign])),
|
|
576
|
+
:host(#{$prefix}-slug[alignment^='top'][border]:not([autoalign])) {
|
|
577
|
+
.#{$prefix}--popover-caret {
|
|
578
|
+
&::before {
|
|
579
|
+
block-size: $popover-caret-height;
|
|
580
|
+
clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
|
|
581
|
+
inline-size: $popover-caret-width;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
&::after {
|
|
585
|
+
inline-size: calc($popover-caret-width - 1px);
|
|
586
|
+
inset-block-start: -1px;
|
|
587
|
+
inset-inline-start: 0.5px;
|
|
588
|
+
}
|
|
388
589
|
}
|
|
389
590
|
}
|
|
390
591
|
|
package/telemetry.yml
CHANGED
|
@@ -24,8 +24,10 @@ collect:
|
|
|
24
24
|
- autoalign
|
|
25
25
|
- autocomplete
|
|
26
26
|
- autofocus
|
|
27
|
+
- backgroundToken
|
|
27
28
|
- batch-action
|
|
28
29
|
- batch-expansion
|
|
30
|
+
- border
|
|
29
31
|
- breadcrumb
|
|
30
32
|
- button-class-name
|
|
31
33
|
- button-label
|
|
@@ -369,7 +371,6 @@ collect:
|
|
|
369
371
|
- divider
|
|
370
372
|
- oncds-overflow-menu-item-clicked
|
|
371
373
|
# cds-page-header-breadcrumb
|
|
372
|
-
- border
|
|
373
374
|
- content-actions-flush
|
|
374
375
|
- page-actions-flush
|
|
375
376
|
# cds-pagination
|
|
@@ -584,6 +585,9 @@ collect:
|
|
|
584
585
|
- top-left
|
|
585
586
|
- top-right
|
|
586
587
|
- top-start
|
|
588
|
+
# General - backgroundToken
|
|
589
|
+
- background
|
|
590
|
+
- layer
|
|
587
591
|
# General - collapse-mode
|
|
588
592
|
- fixed
|
|
589
593
|
- rail
|