@carbon/ibm-products-web-components 0.10.0 → 0.11.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 +250 -0
- package/es/components/about-modal/about-modal.d.ts +392 -0
- package/es/components/about-modal/about-modal.js +143 -0
- package/es/components/about-modal/about-modal.js.map +1 -0
- package/es/components/about-modal/about-modal.scss.js +13 -0
- package/es/components/about-modal/about-modal.scss.js.map +1 -0
- package/es/components/about-modal/about-modal.test.d.ts +7 -0
- package/es/components/about-modal/about-modal.test.js +87 -0
- package/es/components/about-modal/about-modal.test.js.map +1 -0
- package/es/components/about-modal/defs.d.ts +8 -0
- package/es/components/about-modal/defs.js +8 -0
- package/es/components/about-modal/defs.js.map +1 -0
- package/es/components/about-modal/index.d.ts +9 -0
- package/es/components/about-modal/index.js +9 -0
- package/es/components/about-modal/index.js.map +1 -0
- package/es/components/side-panel/side-panel.js +64 -63
- 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 +2 -3
- package/es/components/side-panel/side-panel.test.js.map +1 -1
- package/es/components/tearsheet/tearsheet.js +37 -37
- package/es/components/tearsheet/tearsheet.js.map +1 -1
- package/es/components/tearsheet/tearsheet.scss.js +1 -1
- package/es/components/tearsheet/tearsheet.test.js +2 -3
- package/es/components/tearsheet/tearsheet.test.js.map +1 -1
- package/es/components/user-avatar/user-avatar.d.ts +5 -0
- package/es/components/user-avatar/user-avatar.js +21 -19
- package/es/components/user-avatar/user-avatar.js.map +1 -1
- package/es/components/user-avatar/user-avatar.scss.js +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/index.js.map +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/about-modal/about-modal.d.ts +392 -0
- package/lib/components/about-modal/about-modal.test.d.ts +7 -0
- package/lib/components/about-modal/defs.d.ts +8 -0
- package/lib/components/about-modal/defs.js +10 -0
- package/lib/components/about-modal/defs.js.map +1 -0
- package/lib/components/about-modal/index.d.ts +9 -0
- package/lib/components/user-avatar/user-avatar.d.ts +5 -0
- package/lib/index.d.ts +1 -0
- package/package.json +14 -12
- package/scss/components/about-modal/about-modal.scss +117 -0
- package/scss/components/about-modal/story-styles.scss +34 -0
- package/scss/components/user-avatar/user-avatar.scss +17 -0
| @@ -0,0 +1,117 @@ | |
| 1 | 
            +
            /*
         | 
| 2 | 
            +
            * Copyright IBM Corp. 2025
         | 
| 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 | 
            +
             | 
| 10 | 
            +
            /* Other Carbon settings. */
         | 
| 11 | 
            +
            @use '@carbon/styles' as styles;
         | 
| 12 | 
            +
            @use '@carbon/styles/scss/reset';
         | 
| 13 | 
            +
            @use '@carbon/styles/scss/breakpoint' as *;
         | 
| 14 | 
            +
            @use '@carbon/styles/scss/config' as *;
         | 
| 15 | 
            +
            @use '@carbon/styles/scss/motion' as *;
         | 
| 16 | 
            +
            @use '@carbon/styles/scss/spacing' as *;
         | 
| 17 | 
            +
            @use '@carbon/themes/scss/themes';
         | 
| 18 | 
            +
            @use '@carbon/styles/scss/theme' as *;
         | 
| 19 | 
            +
            @use '@carbon/styles/scss/type';
         | 
| 20 | 
            +
            @use '@carbon/styles/scss/utilities';
         | 
| 21 | 
            +
            @use '@carbon/styles/scss/utilities/ai-gradient' as *;
         | 
| 22 | 
            +
            @use '@carbon/styles/scss/components/modal' as *;
         | 
| 23 | 
            +
            @use '@carbon/styles/scss/utilities/convert' as *;
         | 
| 24 | 
            +
            @use 'sass:map';
         | 
| 25 | 
            +
             | 
| 26 | 
            +
            $prefix: 'c4p';
         | 
| 27 | 
            +
            $carbon-prefix: 'cds';
         | 
| 28 | 
            +
             | 
| 29 | 
            +
            @use '@carbon/ibm-products-styles/scss/components/AboutModal/index' as *;
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            :host(#{$prefix}-about-modal) {
         | 
| 32 | 
            +
              .#{$prefix}--about-modal__logo {
         | 
| 33 | 
            +
                margin: $spacing-05 $spacing-05 $spacing-07 $spacing-05;
         | 
| 34 | 
            +
              }
         | 
| 35 | 
            +
              #{$carbon-prefix}-modal-header {
         | 
| 36 | 
            +
                padding: 0 20% 0 $spacing-05;
         | 
| 37 | 
            +
                grid-row: auto;
         | 
| 38 | 
            +
                margin-block-end: 0;
         | 
| 39 | 
            +
              }
         | 
| 40 | 
            +
              #{$carbon-prefix}-modal-body {
         | 
| 41 | 
            +
                @include type.type-style('body-compact-02');
         | 
| 42 | 
            +
             | 
| 43 | 
            +
                overflow: hidden auto;
         | 
| 44 | 
            +
                grid-row: auto;
         | 
| 45 | 
            +
                min-block-size: $spacing-10;
         | 
| 46 | 
            +
                padding-block-start: 0;
         | 
| 47 | 
            +
                padding-inline: $spacing-05 20%;
         | 
| 48 | 
            +
                &:not(.#{$prefix}--about-modal-scroll-content) {
         | 
| 49 | 
            +
                  margin-block-end: $spacing-06;
         | 
| 50 | 
            +
                  padding-block-end: 0;
         | 
| 51 | 
            +
                }
         | 
| 52 | 
            +
                &.#{$prefix}--about-modal-scroll-content {
         | 
| 53 | 
            +
                  @extend .#{$carbon-prefix}--modal-scroll-content;
         | 
| 54 | 
            +
                }
         | 
| 55 | 
            +
              }
         | 
| 56 | 
            +
             | 
| 57 | 
            +
              #{$carbon-prefix}-modal-heading {
         | 
| 58 | 
            +
                @include type.type-style('heading-04');
         | 
| 59 | 
            +
             | 
| 60 | 
            +
                color: $text-primary;
         | 
| 61 | 
            +
                margin-block-end: $spacing-02;
         | 
| 62 | 
            +
              }
         | 
| 63 | 
            +
             | 
| 64 | 
            +
              .#{$prefix}--about-modal__version {
         | 
| 65 | 
            +
                color: $text-secondary;
         | 
| 66 | 
            +
              }
         | 
| 67 | 
            +
             | 
| 68 | 
            +
              .#{$prefix}--about-modal__content,
         | 
| 69 | 
            +
              .#{$prefix}--about-modal__copyright-text {
         | 
| 70 | 
            +
                @include type.type-style('label-01');
         | 
| 71 | 
            +
             | 
| 72 | 
            +
                color: $text-secondary;
         | 
| 73 | 
            +
                margin-block: $spacing-06 0;
         | 
| 74 | 
            +
              }
         | 
| 75 | 
            +
             | 
| 76 | 
            +
              .#{$prefix}--about-modal__copyright-text {
         | 
| 77 | 
            +
                margin-block-start: $spacing-05;
         | 
| 78 | 
            +
              }
         | 
| 79 | 
            +
             | 
| 80 | 
            +
              .#{$prefix}--about-modal__content:first-child,
         | 
| 81 | 
            +
              .#{$prefix}--about-modal__copyright-text:first-child {
         | 
| 82 | 
            +
                margin-block-start: $spacing-07;
         | 
| 83 | 
            +
              }
         | 
| 84 | 
            +
              #{$carbon-prefix}-link {
         | 
| 85 | 
            +
                display: inline-flex;
         | 
| 86 | 
            +
              }
         | 
| 87 | 
            +
              .#{$prefix}--about-modal__links-container {
         | 
| 88 | 
            +
                @include type.type-style('body-compact-01');
         | 
| 89 | 
            +
             | 
| 90 | 
            +
                margin-block-start: $spacing-06;
         | 
| 91 | 
            +
                #{$carbon-prefix}-link + #{$carbon-prefix}-link {
         | 
| 92 | 
            +
                  border-inline-start: 1px solid $border-strong-01;
         | 
| 93 | 
            +
                  margin-inline-start: $spacing-03;
         | 
| 94 | 
            +
                  padding-inline-start: $spacing-03;
         | 
| 95 | 
            +
                }
         | 
| 96 | 
            +
              }
         | 
| 97 | 
            +
              #{$carbon-prefix}-modal-footer {
         | 
| 98 | 
            +
                @include styles.theme(styles.$g100);
         | 
| 99 | 
            +
             | 
| 100 | 
            +
                display: block;
         | 
| 101 | 
            +
                padding: $spacing-05;
         | 
| 102 | 
            +
                background-color: $layer-02;
         | 
| 103 | 
            +
                block-size: auto;
         | 
| 104 | 
            +
                .#{$prefix}--about-modal__footer-label {
         | 
| 105 | 
            +
                  @include type.type-style('label-01');
         | 
| 106 | 
            +
             | 
| 107 | 
            +
                  color: $text-secondary;
         | 
| 108 | 
            +
                  margin-block-end: $spacing-02;
         | 
| 109 | 
            +
                }
         | 
| 110 | 
            +
                .#{$prefix}--about-modal__footer--tech-logo {
         | 
| 111 | 
            +
                  block-size: $spacing-06;
         | 
| 112 | 
            +
                  inline-size: $spacing-06;
         | 
| 113 | 
            +
                  margin-inline-end: $spacing-03;
         | 
| 114 | 
            +
                  object-fit: contain;
         | 
| 115 | 
            +
                }
         | 
| 116 | 
            +
              }
         | 
| 117 | 
            +
            }
         | 
| @@ -0,0 +1,34 @@ | |
| 1 | 
            +
            /*
         | 
| 2 | 
            +
            * Copyright IBM Corp. 2025
         | 
| 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/spacing' as *;
         | 
| 8 | 
            +
            @use '@carbon/styles/scss/config' as *;
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            $story-prefix: 'about-modal-stories__';
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            .#{$story-prefix}body-content {
         | 
| 13 | 
            +
              display: flex;
         | 
| 14 | 
            +
              flex-direction: column;
         | 
| 15 | 
            +
              padding: $spacing-05;
         | 
| 16 | 
            +
              gap: $spacing-05;
         | 
| 17 | 
            +
            }
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            .#{$story-prefix}story-container {
         | 
| 20 | 
            +
              position: fixed;
         | 
| 21 | 
            +
              display: grid;
         | 
| 22 | 
            +
              block-size: 100vh;
         | 
| 23 | 
            +
              grid-template-rows: 3rem 1fr;
         | 
| 24 | 
            +
              inline-size: 100vw;
         | 
| 25 | 
            +
              inset-block-start: 0;
         | 
| 26 | 
            +
              inset-inline-start: 0;
         | 
| 27 | 
            +
            }
         | 
| 28 | 
            +
             | 
| 29 | 
            +
            .#{$story-prefix}story-content {
         | 
| 30 | 
            +
              position: relative;
         | 
| 31 | 
            +
              display: flex;
         | 
| 32 | 
            +
              align-items: center;
         | 
| 33 | 
            +
              justify-content: center;
         | 
| 34 | 
            +
            }
         | 
| @@ -31,6 +31,23 @@ $block-class: #{$prefix}--user-avatar; | |
| 31 31 | 
             
              @extend .#{$block-class};
         | 
| 32 32 | 
             
              @extend .#{$block-class}__tooltip;
         | 
| 33 33 | 
             
            }
         | 
| 34 | 
            +
             | 
| 35 | 
            +
            :host(#{$prefix}-user-avatar) .#{$block-class}__tooltip-trigger {
         | 
| 36 | 
            +
              padding: 0;
         | 
| 37 | 
            +
              border: 0;
         | 
| 38 | 
            +
              background: none;
         | 
| 39 | 
            +
              outline: none;
         | 
| 40 | 
            +
            }
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            :host(#{$prefix}-user-avatar) .#{$block-class}__tooltip-content {
         | 
| 43 | 
            +
              --cds-tooltip-padding-block: #{$spacing-01};
         | 
| 44 | 
            +
             | 
| 45 | 
            +
              &:focus-within {
         | 
| 46 | 
            +
                outline: $spacing-01 solid $focus;
         | 
| 47 | 
            +
                outline-offset: 1px;
         | 
| 48 | 
            +
              }
         | 
| 49 | 
            +
            }
         | 
| 50 | 
            +
             | 
| 34 51 | 
             
            @mixin setBgColor($color) {
         | 
| 35 52 | 
             
              // stylelint-disable-next-line carbon/theme-use
         | 
| 36 53 | 
             
              background-color: $color;
         |