@carbon/ibm-products-web-components 0.18.0-rc.0 → 0.19.0-rc.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/custom-elements.json +509 -0
- package/es/components/about-modal/about-modal.scss.js +1 -1
- package/es/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/es/components/notification-panel/_story-assets/unread-notification-bell.js +45 -0
- package/es/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -0
- package/es/components/notification-panel/date-time-context.d.ts +9 -0
- package/es/components/notification-panel/date-time-context.js +19 -0
- package/es/components/notification-panel/date-time-context.js.map +1 -0
- package/es/components/notification-panel/defs.d.ts +8 -0
- package/es/components/notification-panel/defs.js +8 -0
- package/es/components/notification-panel/defs.js.map +1 -0
- package/es/components/notification-panel/index.d.ts +11 -0
- package/es/components/notification-panel/index.js +11 -0
- package/es/components/notification-panel/index.js.map +1 -0
- package/es/components/notification-panel/notification-footer.d.ts +389 -0
- package/es/components/notification-panel/notification-footer.js +119 -0
- package/es/components/notification-panel/notification-footer.js.map +1 -0
- package/es/components/notification-panel/notification-footer.scss.js +13 -0
- package/es/components/notification-panel/notification-footer.scss.js.map +1 -0
- package/es/components/notification-panel/notification-panel.d.ts +458 -0
- package/es/components/notification-panel/notification-panel.js +414 -0
- package/es/components/notification-panel/notification-panel.js.map +1 -0
- package/es/components/notification-panel/notification-panel.scss.js +13 -0
- package/es/components/notification-panel/notification-panel.scss.js.map +1 -0
- package/es/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/es/components/notification-panel/notification-panel.test.js +30 -0
- package/es/components/notification-panel/notification-panel.test.js.map +1 -0
- package/es/components/notification-panel/notification.d.ts +405 -0
- package/es/components/notification-panel/notification.js +178 -0
- package/es/components/notification-panel/notification.js.map +1 -0
- package/es/components/notification-panel/notification.scss.js +13 -0
- package/es/components/notification-panel/notification.scss.js.map +1 -0
- package/es/components/page-header/index.d.ts +14 -0
- package/es/components/page-header/index.js +14 -0
- package/es/components/page-header/index.js.map +1 -0
- package/es/components/page-header/page-header-breadcrumb.d.ts +35 -0
- package/es/components/page-header/page-header-breadcrumb.js +94 -0
- package/es/components/page-header/page-header-breadcrumb.js.map +1 -0
- package/es/components/page-header/page-header-content-text.d.ts +22 -0
- package/es/components/page-header/page-header-content-text.js +56 -0
- package/es/components/page-header/page-header-content-text.js.map +1 -0
- package/es/components/page-header/page-header-content.d.ts +41 -0
- package/es/components/page-header/page-header-content.js +131 -0
- package/es/components/page-header/page-header-content.js.map +1 -0
- package/es/components/page-header/page-header-hero-image.d.ts +18 -0
- package/es/components/page-header/page-header-hero-image.js +38 -0
- package/es/components/page-header/page-header-hero-image.js.map +1 -0
- package/es/components/page-header/page-header-tabs.d.ts +18 -0
- package/es/components/page-header/page-header-tabs.js +47 -0
- package/es/components/page-header/page-header-tabs.js.map +1 -0
- package/es/components/page-header/page-header.d.ts +18 -0
- package/es/components/page-header/page-header.js +38 -0
- package/es/components/page-header/page-header.js.map +1 -0
- package/es/components/page-header/page-header.scss.js +13 -0
- package/es/components/page-header/page-header.scss.js.map +1 -0
- package/es/components/page-header/page-header.test.d.ts +1 -0
- package/es/components/page-header/page-header.test.js +207 -0
- package/es/components/page-header/page-header.test.js.map +1 -0
- package/es/components/side-panel/side-panel.d.ts +4 -0
- package/es/components/side-panel/side-panel.js +21 -12
- package/es/components/side-panel/side-panel.js.map +1 -1
- package/es/components/side-panel/side-panel.scss.js +1 -1
- package/es/components/side-panel/side-panel.test.js +21 -0
- package/es/components/side-panel/side-panel.test.js.map +1 -1
- package/es/components/tearsheet/tearsheet.scss.js +1 -1
- package/es/globals/internal/storybook-cdn.js +1 -1
- package/es/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/es/globals/js/utils/getSupportedLocale.js +35 -0
- package/es/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/es/index.d.ts +6 -0
- package/es/index.js +6 -0
- package/es/index.js.map +1 -1
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +13 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +11 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
- package/es/{package.json.js → packages/ibm-products-web-components/package.json.js} +1 -1
- package/es-custom/components/about-modal/about-modal.scss.js +1 -1
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js +45 -0
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -0
- package/es-custom/components/notification-panel/date-time-context.d.ts +9 -0
- package/es-custom/components/notification-panel/date-time-context.js +19 -0
- package/es-custom/components/notification-panel/date-time-context.js.map +1 -0
- package/es-custom/components/notification-panel/defs.d.ts +8 -0
- package/es-custom/components/notification-panel/defs.js +8 -0
- package/es-custom/components/notification-panel/defs.js.map +1 -0
- package/es-custom/components/notification-panel/index.d.ts +11 -0
- package/es-custom/components/notification-panel/index.js +11 -0
- package/es-custom/components/notification-panel/index.js.map +1 -0
- package/es-custom/components/notification-panel/notification-footer.d.ts +389 -0
- package/es-custom/components/notification-panel/notification-footer.js +119 -0
- package/es-custom/components/notification-panel/notification-footer.js.map +1 -0
- package/es-custom/components/notification-panel/notification-footer.scss.js +13 -0
- package/es-custom/components/notification-panel/notification-footer.scss.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.d.ts +458 -0
- package/es-custom/components/notification-panel/notification-panel.js +414 -0
- package/es-custom/components/notification-panel/notification-panel.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.scss.js +13 -0
- package/es-custom/components/notification-panel/notification-panel.scss.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/es-custom/components/notification-panel/notification-panel.test.js +30 -0
- package/es-custom/components/notification-panel/notification-panel.test.js.map +1 -0
- package/es-custom/components/notification-panel/notification.d.ts +405 -0
- package/es-custom/components/notification-panel/notification.js +178 -0
- package/es-custom/components/notification-panel/notification.js.map +1 -0
- package/es-custom/components/notification-panel/notification.scss.js +13 -0
- package/es-custom/components/notification-panel/notification.scss.js.map +1 -0
- package/es-custom/components/page-header/index.d.ts +14 -0
- package/es-custom/components/page-header/index.js +14 -0
- package/es-custom/components/page-header/index.js.map +1 -0
- package/es-custom/components/page-header/page-header-breadcrumb.d.ts +35 -0
- package/es-custom/components/page-header/page-header-breadcrumb.js +94 -0
- package/es-custom/components/page-header/page-header-breadcrumb.js.map +1 -0
- package/es-custom/components/page-header/page-header-content-text.d.ts +22 -0
- package/es-custom/components/page-header/page-header-content-text.js +56 -0
- package/es-custom/components/page-header/page-header-content-text.js.map +1 -0
- package/es-custom/components/page-header/page-header-content.d.ts +41 -0
- package/es-custom/components/page-header/page-header-content.js +131 -0
- package/es-custom/components/page-header/page-header-content.js.map +1 -0
- package/es-custom/components/page-header/page-header-hero-image.d.ts +18 -0
- package/es-custom/components/page-header/page-header-hero-image.js +38 -0
- package/es-custom/components/page-header/page-header-hero-image.js.map +1 -0
- package/es-custom/components/page-header/page-header-tabs.d.ts +18 -0
- package/es-custom/components/page-header/page-header-tabs.js +47 -0
- package/es-custom/components/page-header/page-header-tabs.js.map +1 -0
- package/es-custom/components/page-header/page-header.d.ts +18 -0
- package/es-custom/components/page-header/page-header.js +38 -0
- package/es-custom/components/page-header/page-header.js.map +1 -0
- package/es-custom/components/page-header/page-header.scss.js +13 -0
- package/es-custom/components/page-header/page-header.scss.js.map +1 -0
- package/es-custom/components/page-header/page-header.test.d.ts +1 -0
- package/es-custom/components/page-header/page-header.test.js +207 -0
- package/es-custom/components/page-header/page-header.test.js.map +1 -0
- package/es-custom/components/side-panel/side-panel.d.ts +4 -0
- package/es-custom/components/side-panel/side-panel.js +21 -12
- package/es-custom/components/side-panel/side-panel.js.map +1 -1
- package/es-custom/components/side-panel/side-panel.scss.js +1 -1
- package/es-custom/components/side-panel/side-panel.test.js +21 -0
- package/es-custom/components/side-panel/side-panel.test.js.map +1 -1
- package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
- package/es-custom/globals/internal/storybook-cdn.js +1 -1
- package/es-custom/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/es-custom/globals/js/utils/getSupportedLocale.js +35 -0
- package/es-custom/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/es-custom/index.d.ts +6 -0
- package/es-custom/index.js +6 -0
- package/es-custom/index.js.map +1 -1
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +13 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +11 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
- package/es-custom/{package.json.js → packages/ibm-products-web-components/package.json.js} +1 -1
- package/lib/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/lib/components/notification-panel/date-time-context.d.ts +9 -0
- package/lib/components/notification-panel/defs.d.ts +8 -0
- package/lib/components/notification-panel/defs.js +10 -0
- package/lib/components/notification-panel/defs.js.map +1 -0
- package/lib/components/notification-panel/index.d.ts +11 -0
- package/lib/components/notification-panel/notification-footer.d.ts +389 -0
- package/lib/components/notification-panel/notification-panel.d.ts +458 -0
- package/lib/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/lib/components/notification-panel/notification.d.ts +405 -0
- package/lib/components/page-header/index.d.ts +14 -0
- package/lib/components/page-header/page-header-breadcrumb.d.ts +35 -0
- package/lib/components/page-header/page-header-content-text.d.ts +22 -0
- package/lib/components/page-header/page-header-content.d.ts +41 -0
- package/lib/components/page-header/page-header-hero-image.d.ts +18 -0
- package/lib/components/page-header/page-header-tabs.d.ts +18 -0
- package/lib/components/page-header/page-header.d.ts +18 -0
- package/lib/components/page-header/page-header.test.d.ts +1 -0
- package/lib/components/side-panel/side-panel.d.ts +4 -0
- package/lib/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/lib/globals/js/utils/getSupportedLocale.js +37 -0
- package/lib/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/lib/index.d.ts +6 -0
- package/package.json +12 -11
- package/scss/components/notification-panel/notification-footer.scss +65 -0
- package/scss/components/notification-panel/notification-panel.scss +59 -0
- package/scss/components/notification-panel/notification.scss +147 -0
- package/scss/components/notification-panel/story-styles.scss +116 -0
- package/scss/components/page-header/page-header.scss +288 -0
- /package/es/{package.json.js.map → packages/ibm-products-web-components/package.json.js.map} +0 -0
- /package/es-custom/{package.json.js.map → packages/ibm-products-web-components/package.json.js.map} +0 -0
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products-web-components",
|
3
3
|
"description": "Carbon for IBM Products Web Components",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.19.0-rc.0",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "es/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -54,17 +54,18 @@
|
|
54
54
|
"coverage": "vitest run --coverage"
|
55
55
|
},
|
56
56
|
"dependencies": {
|
57
|
-
"@carbon/ibm-products-styles": "^2.
|
58
|
-
"@carbon/styles": "1.
|
59
|
-
"@carbon/web-components": "2.
|
57
|
+
"@carbon/ibm-products-styles": "^2.66.0-rc.0",
|
58
|
+
"@carbon/styles": "1.83.0",
|
59
|
+
"@carbon/web-components": "2.32.0",
|
60
60
|
"@ibm/telemetry-js": "^1.9.1",
|
61
|
+
"@lit/context": "^1.1.5",
|
61
62
|
"lit": "^3.1.0"
|
62
63
|
},
|
63
64
|
"devDependencies": {
|
64
65
|
"@blockquote/rollup-plugin-externalize-source-dependencies": "^1.0.0",
|
65
|
-
"@carbon/icon-helpers": "^10.
|
66
|
-
"@carbon/icons": "^11.
|
67
|
-
"@carbon/motion": "^11.
|
66
|
+
"@carbon/icon-helpers": "^10.60.0",
|
67
|
+
"@carbon/icons": "^11.61.0",
|
68
|
+
"@carbon/motion": "^11.29.0",
|
68
69
|
"@mordech/vite-lit-loader": "^0.37.0",
|
69
70
|
"@open-wc/testing": "^4.0.0",
|
70
71
|
"@rollup/plugin-alias": "^5.1.1",
|
@@ -72,9 +73,9 @@
|
|
72
73
|
"@rollup/plugin-json": "^6.1.0",
|
73
74
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
74
75
|
"@rollup/plugin-typescript": "^12.1.1",
|
76
|
+
"@storybook/addon-a11y": "^8.6.12",
|
75
77
|
"@storybook/addon-essentials": "^8.6.12",
|
76
78
|
"@storybook/addon-links": "^8.6.12",
|
77
|
-
"@storybook/addon-storysource": "^8.6.12",
|
78
79
|
"@storybook/addon-toolbars": "^8.6.12",
|
79
80
|
"@storybook/blocks": "^8.6.12",
|
80
81
|
"@storybook/theming": "^8.6.12",
|
@@ -87,9 +88,9 @@
|
|
87
88
|
"c8": "^10.1.3",
|
88
89
|
"cssnano": "^7.0.6",
|
89
90
|
"eslint": "^9.14.0",
|
90
|
-
"eslint-config-carbon": "^3.
|
91
|
+
"eslint-config-carbon": "^3.23.0",
|
91
92
|
"globby": "^14.0.2",
|
92
|
-
"happy-dom": "^
|
93
|
+
"happy-dom": "^18.0.0",
|
93
94
|
"playwright": "^1.51.1",
|
94
95
|
"postcss": "^8.4.47",
|
95
96
|
"remark-gfm": "^4.0.0",
|
@@ -106,5 +107,5 @@
|
|
106
107
|
"vitest": "^3.0.1",
|
107
108
|
"web-component-analyzer": "2.0.0"
|
108
109
|
},
|
109
|
-
"gitHead": "
|
110
|
+
"gitHead": "a0df8e9f8fd3416467f69d3798933a850e9e0fad"
|
110
111
|
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright IBM Corp. 2023, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
$css--plex: true !default;
|
9
|
+
@use 'sass:map';
|
10
|
+
|
11
|
+
/* Other Carbon settings. */
|
12
|
+
@use '@carbon/styles/scss/reset';
|
13
|
+
@use '@carbon/styles/scss/config' as *;
|
14
|
+
@use '@carbon/styles/scss/motion' as *;
|
15
|
+
@use '@carbon/styles/scss/spacing' as *;
|
16
|
+
@use '@carbon/styles/scss/theme' as *;
|
17
|
+
@use '@carbon/styles/scss/type';
|
18
|
+
@use '@carbon/type/scss/font-family' as *;
|
19
|
+
@use '@carbon/styles/scss/utilities/ai-gradient' as *;
|
20
|
+
@use '@carbon/styles/scss/utilities/convert' as *;
|
21
|
+
|
22
|
+
$prefix: 'c4p';
|
23
|
+
$carbon-prefix: 'cds';
|
24
|
+
@use '@carbon/ibm-products-styles/scss/components/NotificationsPanel/index' as *;
|
25
|
+
|
26
|
+
$block-class: #{$prefix}--notifications-panel;
|
27
|
+
$block-class-action-set: #{$prefix}--action-set;
|
28
|
+
|
29
|
+
:host(#{$prefix}-notification-footer) {
|
30
|
+
display: flex;
|
31
|
+
}
|
32
|
+
.#{$block-class}__view-all-button {
|
33
|
+
display: flex;
|
34
|
+
align-items: center;
|
35
|
+
border-inline-end: 1px solid $border-subtle-01;
|
36
|
+
color: $text-primary;
|
37
|
+
inline-size: 100%;
|
38
|
+
max-inline-size: calc(100% - 2.5rem);
|
39
|
+
min-block-size: 2.5rem;
|
40
|
+
--cds-link-primary: $text-primary;
|
41
|
+
--cds-link-primary-hover: $text-primary;
|
42
|
+
--cds-layout-size-height-min: 2.5rem;
|
43
|
+
--cds-layout-size-height-sm: 2.5rem;
|
44
|
+
--cds-layout-size-height: 2.5rem;
|
45
|
+
--cds-layout-size-height-lg: 2.5rem;
|
46
|
+
--cds-layout-size-height-max: 2.5rem;
|
47
|
+
--cds-layout-size-height-2xl: 2.5rem;
|
48
|
+
}
|
49
|
+
.#{$block-class}__settings-button {
|
50
|
+
display: flex;
|
51
|
+
align-items: center;
|
52
|
+
justify-content: center;
|
53
|
+
padding: 0;
|
54
|
+
--cds-link-primary: $text-primary;
|
55
|
+
--cds-link-primary-hover: $text-primary;
|
56
|
+
--cds-layout-size-height-min: 2.5rem;
|
57
|
+
--cds-layout-size-height-sm: 2.5rem;
|
58
|
+
--cds-layout-size-height: 2.5rem;
|
59
|
+
--cds-layout-size-height-lg: 2.5rem;
|
60
|
+
--cds-layout-size-height-max: 2.5rem;
|
61
|
+
--cds-layout-size-height-2xl: 2.5rem;
|
62
|
+
}
|
63
|
+
.#{$block-class}__settings-button .#{$carbon-prefix}--btn__icon {
|
64
|
+
margin: 0;
|
65
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright IBM Corp. 2023, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
$css--plex: true !default;
|
9
|
+
@use 'sass:map';
|
10
|
+
|
11
|
+
/* Other Carbon settings. */
|
12
|
+
@use '@carbon/styles/scss/reset';
|
13
|
+
@use '@carbon/styles/scss/config' as *;
|
14
|
+
@use '@carbon/styles/scss/motion' as *;
|
15
|
+
@use '@carbon/styles/scss/spacing' as *;
|
16
|
+
@use '@carbon/styles/scss/theme' as *;
|
17
|
+
@use '@carbon/styles/scss/type';
|
18
|
+
@use '@carbon/type/scss/font-family' as *;
|
19
|
+
@use '@carbon/styles/scss/utilities/ai-gradient' as *;
|
20
|
+
@use '@carbon/styles/scss/utilities/convert' as *;
|
21
|
+
|
22
|
+
$prefix: 'c4p';
|
23
|
+
$carbon-prefix: 'cds';
|
24
|
+
@use '@carbon/ibm-products-styles/scss/components/NotificationsPanel/index' as *;
|
25
|
+
|
26
|
+
$block-class: #{$prefix}--notifications-panel;
|
27
|
+
$block-class-action-set: #{$prefix}--action-set;
|
28
|
+
|
29
|
+
:host(#{$prefix}-notification-panel) {
|
30
|
+
.c4p--notifications-panel__do-not-disturb-toggle {
|
31
|
+
display: block;
|
32
|
+
margin-block-start: -$spacing-05;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
:host(#{$prefix}-notification-panel)
|
36
|
+
::slotted(.c4p--notifications-panel__bottom-actions) {
|
37
|
+
display: flex;
|
38
|
+
align-items: center;
|
39
|
+
}
|
40
|
+
|
41
|
+
.#{$block-class}__header-container {
|
42
|
+
--#{$carbon-prefix}-heading-06-font-size: --#{$carbon-prefix}-heading-compact-01-font-size;
|
43
|
+
--#{$carbon-prefix}-heading-06-font-weight: --#{$carbon-prefix}-heading-compact-01-font-weight;
|
44
|
+
--#{$carbon-prefix}-heading-06-line-height: --#{$carbon-prefix}-heading-compact-01-line-height;
|
45
|
+
--#{$carbon-prefix}-heading-06-letter-spacing: --#{$carbon-prefix}-heading-compact-01-letter-spacing;
|
46
|
+
}
|
47
|
+
.#{$block-class}__dismiss-button {
|
48
|
+
--#{$carbon-prefix}-link-primary: --#{$carbon-prefix}-text-primary;
|
49
|
+
--#{$carbon-prefix}-link-primary-hover: --#{$carbon-prefix}-text-primary;
|
50
|
+
}
|
51
|
+
.#{$block-class}__bottom-actions-container {
|
52
|
+
position: sticky;
|
53
|
+
z-index: 2;
|
54
|
+
background-color: $layer-01;
|
55
|
+
block-size: $spacing-08;
|
56
|
+
border-block-start: 1px solid $border-subtle-01;
|
57
|
+
inset-block-end: 0;
|
58
|
+
min-block-size: $spacing-08;
|
59
|
+
}
|
@@ -0,0 +1,147 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright IBM Corp. 2023, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
$css--plex: true !default;
|
9
|
+
@use 'sass:map';
|
10
|
+
|
11
|
+
/* Other Carbon settings. */
|
12
|
+
@use '@carbon/styles/scss/reset';
|
13
|
+
@use '@carbon/styles/scss/config' as *;
|
14
|
+
@use '@carbon/styles/scss/motion' as *;
|
15
|
+
@use '@carbon/styles/scss/spacing' as *;
|
16
|
+
@use '@carbon/styles/scss/theme' as *;
|
17
|
+
@use '@carbon/styles/scss/type';
|
18
|
+
@use '@carbon/type/scss/font-family' as *;
|
19
|
+
@use '@carbon/styles/scss/utilities/ai-gradient' as *;
|
20
|
+
@use '@carbon/styles/scss/utilities/convert' as *;
|
21
|
+
|
22
|
+
$prefix: 'c4p';
|
23
|
+
$carbon-prefix: 'cds';
|
24
|
+
@use '@carbon/ibm-products-styles/scss/components/NotificationsPanel/index' as *;
|
25
|
+
$block-notification-class: #{$prefix}--notifications-panel__notification;
|
26
|
+
|
27
|
+
:host(#{$prefix}-notification) {
|
28
|
+
position: relative;
|
29
|
+
display: flex;
|
30
|
+
align-items: flex-start;
|
31
|
+
padding: $spacing-05;
|
32
|
+
border: 0;
|
33
|
+
background-color: $layer-01;
|
34
|
+
cursor: pointer;
|
35
|
+
inline-size: 100%;
|
36
|
+
min-block-size: 6.25rem;
|
37
|
+
text-align: start;
|
38
|
+
transition: background-color $duration-moderate-02 motion(standard);
|
39
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
40
|
+
&::before {
|
41
|
+
position: absolute;
|
42
|
+
margin: 0 auto;
|
43
|
+
background-color: $border-subtle-01;
|
44
|
+
block-size: 1px;
|
45
|
+
content: '';
|
46
|
+
inline-size: calc(100% - (2 * #{$spacing-05}));
|
47
|
+
inset-block-start: 0;
|
48
|
+
transition: none;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
&::before {
|
53
|
+
position: absolute;
|
54
|
+
margin: 0 auto;
|
55
|
+
background-color: $border-subtle-01;
|
56
|
+
block-size: 1px;
|
57
|
+
content: '';
|
58
|
+
inline-size: calc(100% - (2 * #{$spacing-05}));
|
59
|
+
inset-block-start: 0;
|
60
|
+
transition: background-color $duration-moderate-02 motion(standard);
|
61
|
+
}
|
62
|
+
|
63
|
+
&:hover::before {
|
64
|
+
background-color: transparent;
|
65
|
+
}
|
66
|
+
.#{$block-notification-class}-status-icon {
|
67
|
+
margin-inline-end: $spacing-03;
|
68
|
+
min-inline-size: 1rem;
|
69
|
+
&.#{$block-notification-class}-status-icon-error {
|
70
|
+
fill: $support-error;
|
71
|
+
}
|
72
|
+
&.#{$block-notification-class}-status-icon-success {
|
73
|
+
fill: $support-success;
|
74
|
+
}
|
75
|
+
&.#{$block-notification-class}-status-icon-warning {
|
76
|
+
fill: $support-warning;
|
77
|
+
}
|
78
|
+
&.#{$block-notification-class}-status-icon-informational {
|
79
|
+
fill: $support-info;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
.#{$block-notification-class}-time-label {
|
83
|
+
margin-block-end: $spacing-03;
|
84
|
+
}
|
85
|
+
.#{$block-notification-class}__dismiss-single-button {
|
86
|
+
position: absolute;
|
87
|
+
display: flex;
|
88
|
+
align-items: center;
|
89
|
+
justify-content: center;
|
90
|
+
padding: 0;
|
91
|
+
color: $text-primary;
|
92
|
+
inset-block-start: 0;
|
93
|
+
inset-inline-end: 0;
|
94
|
+
min-inline-size: 2rem;
|
95
|
+
opacity: 0;
|
96
|
+
/* stylelint-disable-next-line max-nesting-depth */
|
97
|
+
&:hover,
|
98
|
+
&:focus {
|
99
|
+
opacity: 1;
|
100
|
+
}
|
101
|
+
--cds-link-primary: --cds-text-primary;
|
102
|
+
--cds-link-primary-hover: --cds-text-primary;
|
103
|
+
}
|
104
|
+
.#{$block-notification-class}-time-label,
|
105
|
+
.#{$block-notification-class}-description {
|
106
|
+
@include type.type-style('label-01');
|
107
|
+
|
108
|
+
color: $text-secondary;
|
109
|
+
}
|
110
|
+
.#{$block-notification-class}-description {
|
111
|
+
display: block;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
::slotted(.#{$block-notification-class}-title) {
|
115
|
+
@include type.type-style('heading-01');
|
116
|
+
|
117
|
+
color: $text-secondary;
|
118
|
+
margin-block-end: $spacing-02;
|
119
|
+
@include font-weight('regular');
|
120
|
+
}
|
121
|
+
::slotted(.#{$block-notification-class}-title-unread) {
|
122
|
+
color: $text-secondary;
|
123
|
+
margin-block-end: $spacing-02;
|
124
|
+
@include font-weight('semibold');
|
125
|
+
}
|
126
|
+
|
127
|
+
:host(.first-notification)::before {
|
128
|
+
content: none;
|
129
|
+
}
|
130
|
+
|
131
|
+
:host(:hover),
|
132
|
+
:host(:focus) {
|
133
|
+
background-color: $layer-accent-01;
|
134
|
+
.#{$block-notification-class}__dismiss-single-button {
|
135
|
+
opacity: 1;
|
136
|
+
}
|
137
|
+
|
138
|
+
&::before {
|
139
|
+
background-color: transparent;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
:host(.#{$block-notification-class}--next) {
|
144
|
+
&::before {
|
145
|
+
background-color: transparent;
|
146
|
+
}
|
147
|
+
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright IBM Corp. 2023, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
@use '@carbon/styles/scss/theme' as *;
|
8
|
+
@use '@carbon/styles/scss/spacing' as *;
|
9
|
+
@use '@carbon/styles/scss/type';
|
10
|
+
@use '@carbon/styles/scss/motion' as *;
|
11
|
+
@use '@carbon/type/scss/font-family' as *;
|
12
|
+
|
13
|
+
$prefix: 'c4p';
|
14
|
+
$carbon-prefix: 'cds';
|
15
|
+
$story-prefix: #{$prefix}--notifications-panel__story;
|
16
|
+
$block-class: #{$prefix}--notifications-panel;
|
17
|
+
|
18
|
+
.#{$story-prefix}__story-container {
|
19
|
+
position: fixed;
|
20
|
+
display: grid;
|
21
|
+
block-size: 100vh;
|
22
|
+
grid-template-rows: 3rem 1fr;
|
23
|
+
inline-size: 100vw;
|
24
|
+
inset-block-start: 0;
|
25
|
+
inset-inline-start: 0;
|
26
|
+
}
|
27
|
+
.#{$story-prefix}body-content {
|
28
|
+
display: flex;
|
29
|
+
flex-direction: column;
|
30
|
+
padding: $spacing-05;
|
31
|
+
gap: $spacing-05;
|
32
|
+
}
|
33
|
+
|
34
|
+
.#{$story-prefix}text-inputs {
|
35
|
+
display: flex;
|
36
|
+
gap: $spacing-05;
|
37
|
+
|
38
|
+
> * {
|
39
|
+
flex-basis: 50%;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
.#{$story-prefix}story-container {
|
44
|
+
position: fixed;
|
45
|
+
display: grid;
|
46
|
+
block-size: 100vh;
|
47
|
+
grid-template-rows: 3rem 1fr;
|
48
|
+
inline-size: 100vw;
|
49
|
+
inset-block-start: 0;
|
50
|
+
inset-inline-start: 0;
|
51
|
+
}
|
52
|
+
|
53
|
+
.#{$story-prefix}story-header {
|
54
|
+
background: $background-inverse;
|
55
|
+
}
|
56
|
+
|
57
|
+
.#{$story-prefix}story-content {
|
58
|
+
position: relative;
|
59
|
+
display: flex;
|
60
|
+
align-items: center;
|
61
|
+
justify-content: center;
|
62
|
+
}
|
63
|
+
|
64
|
+
.#{$story-prefix}__header-panel {
|
65
|
+
padding: $spacing-10 $spacing-05 0;
|
66
|
+
font-weight: bold;
|
67
|
+
line-height: 1.4;
|
68
|
+
text-align: center;
|
69
|
+
}
|
70
|
+
.#{$block-class}__notification-description {
|
71
|
+
@include type.type-style('label-01');
|
72
|
+
|
73
|
+
color: $text-secondary;
|
74
|
+
}
|
75
|
+
|
76
|
+
.#{$block-class}__notification-read-more-button,
|
77
|
+
.#{$block-class}__notification-read-less-button {
|
78
|
+
@include type.type-style('label-01');
|
79
|
+
|
80
|
+
display: flex;
|
81
|
+
align-items: center;
|
82
|
+
padding: 0;
|
83
|
+
min-inline-size: 5.5rem;
|
84
|
+
|
85
|
+
.#{carbon-prefix}--btn__icon {
|
86
|
+
// stylelint-disable-next-line carbon/motion-easing-use
|
87
|
+
transition: transform $duration-moderate-02 ease;
|
88
|
+
/* stylelint-disable-next-line max-nesting-depth */
|
89
|
+
@media (prefers-reduced-motion: reduce) {
|
90
|
+
transition: none;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
&.#{$block-class}__notification-read-more-button {
|
94
|
+
.#{$carbon-prefix}--btn__icon {
|
95
|
+
transform: rotate(0deg);
|
96
|
+
}
|
97
|
+
}
|
98
|
+
&.#{$block-class}__notification-read-less-button {
|
99
|
+
.#{$carbon-prefix}--btn__icon {
|
100
|
+
transform: rotate(180deg);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
.#{$block-class}__notification-title {
|
105
|
+
@include type.type-style('heading-01');
|
106
|
+
|
107
|
+
color: $text-secondary;
|
108
|
+
margin-block-end: $spacing-02;
|
109
|
+
@include font-weight('regular');
|
110
|
+
}
|
111
|
+
|
112
|
+
.#{$block-class}__notification-title-unread {
|
113
|
+
color: $text-secondary;
|
114
|
+
margin-block-end: $spacing-02;
|
115
|
+
@include font-weight('semibold');
|
116
|
+
}
|