@brightspace-ui/core 3.143.0 → 3.144.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.
@@ -14271,7 +14271,8 @@
14271
14271
  {
14272
14272
  "name": "offset",
14273
14273
  "description": "Adjust the size of the gap between the tooltip and its target (px)",
14274
- "type": "number"
14274
+ "type": "number",
14275
+ "default": "10"
14275
14276
  },
14276
14277
  {
14277
14278
  "name": "show-truncated-only",
@@ -14300,7 +14301,7 @@
14300
14301
  "type": "string"
14301
14302
  },
14302
14303
  {
14303
- "name": "position",
14304
+ "name": "positionLocation",
14304
14305
  "attribute": "position",
14305
14306
  "description": "ADVANCED: Force the tooltip to open in a certain direction. If no position is provided, the tooltip will open in the first position that has enough space for it in the order: bottom, top, right, left.",
14306
14307
  "type": "'top'|'bottom'|'left'|'right'"
@@ -14354,7 +14355,8 @@
14354
14355
  "name": "offset",
14355
14356
  "attribute": "offset",
14356
14357
  "description": "Adjust the size of the gap between the tooltip and its target (px)",
14357
- "type": "number"
14358
+ "type": "number",
14359
+ "default": "10"
14358
14360
  },
14359
14361
  {
14360
14362
  "name": "showTruncatedOnly",
@@ -1860,16 +1860,19 @@ class Card extends FocusMixin(RtlMixin(LitElement)) {
1860
1860
  position: relative;
1861
1861
  }
1862
1862
  .d2l-card-link-container {
1863
- border-radius: 6px;
1864
1863
  flex-basis: auto;
1865
1864
  flex-grow: 1;
1866
1865
  flex-shrink: 1;
1867
- overflow: hidden;
1868
1866
  width: 100%; /* required for Legacy-Edge and FF when align-items: flex-start is specified */
1869
1867
  }
1870
1868
  .d2l-card-link-text {
1871
1869
  display: inline-block;
1872
1870
  }
1871
+ .d2l-card-header {
1872
+ border-start-end-radius: 6px;
1873
+ border-start-start-radius: 6px;
1874
+ overflow: hidden;
1875
+ }
1873
1876
 
1874
1877
  a {
1875
1878
  bottom: -1px;
@@ -1906,22 +1909,14 @@ class Card extends FocusMixin(RtlMixin(LitElement)) {
1906
1909
  padding-bottom: 1.2rem;
1907
1910
  }
1908
1911
  .d2l-card-actions {
1912
+ inset-inline-end: 0.6rem;
1909
1913
  position: absolute;
1910
- right: 0.6rem;
1911
1914
  top: 0.6rem;
1912
1915
  /* this must be higher than footer z-index so dropdowns will be on top */
1913
1916
  z-index: 3;
1914
1917
  }
1915
- :host([dir="rtl"]) .d2l-card-actions {
1916
- left: 0.6rem;
1917
- right: auto;
1918
- }
1919
1918
  .d2l-card-actions ::slotted(*) {
1920
- margin-left: 0.3rem;
1921
- }
1922
- :host([dir="rtl"]) .d2l-card-actions ::slotted(*) {
1923
- margin-left: 0;
1924
- margin-right: 0.3rem;
1919
+ margin-inline-start: 0.3rem;
1925
1920
  }
1926
1921
  .d2l-card-badge {
1927
1922
  line-height: 0;
@@ -1950,23 +1945,17 @@ class Card extends FocusMixin(RtlMixin(LitElement)) {
1950
1945
 
1951
1946
  :host([subtle]) {
1952
1947
  border: none;
1948
+ }
1949
+ :host([subtle][href]) {
1953
1950
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.03);
1954
1951
  }
1955
- :host(:hover) {
1952
+ :host([href]:not([_active]):hover) {
1956
1953
  box-shadow: 0 2px 14px 1px rgba(0, 0, 0, 0.06);
1957
1954
  }
1958
- :host([subtle]:hover) {
1955
+ :host([subtle][href]:not([_active]):hover) {
1959
1956
  box-shadow: 0 4px 18px 2px rgba(0, 0, 0, 0.06);
1960
1957
  }
1961
- :host([_active]) {
1962
- border-color: transparent;
1963
- box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--d2l-color-celestine);
1964
- }
1965
- :host([_active]:hover),
1966
- :host([subtle][_active]:hover) {
1967
- border-color: transparent;
1968
- box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--d2l-color-celestine);
1969
- }
1958
+ ${getFocusRingStyles(() => ':host([_active])', {'extraStyles': css`border-color: transparent;`})}
1970
1959
  /* .d2l-card-link-container-hover is used to only color/underline when
1971
1960
  hovering the anchor; these styles are not applied when hovering actions */
1972
1961
  :host([href]) .d2l-card-link-container-hover,
@@ -1982,21 +1971,14 @@ class Card extends FocusMixin(RtlMixin(LitElement)) {
1982
1971
  :host([_dropdown-action-open]) {
1983
1972
  z-index: 2;
1984
1973
  }
1985
- :host(:not([href])),
1986
- :host([subtle]:not([href])) {
1987
- box-shadow: none;
1988
- transform: none;
1989
- }
1990
1974
  @media (prefers-reduced-motion: no-preference) {
1991
1975
  :host {
1992
- transition: transform 300ms ease-out 50ms, box-shadow 0.2s;
1976
+ transition: box-shadow 0.2s;
1993
1977
  }
1994
-
1995
- :host(:hover),
1996
- :host([subtle]:hover),
1997
- :host([_active]:hover),
1998
- :host([subtle][_active]:hover) {
1999
- transform: translateY(-4px);
1978
+ }
1979
+ @media (prefers-contrast: more) {
1980
+ :host([subtle]) {
1981
+ border: 1px solid var(--d2l-color-gypsum);;
2000
1982
  }
2001
1983
  }
2002
1984
  `];
package/helpers/focus.js CHANGED
@@ -73,7 +73,7 @@ export function getFocusRingStyles(selector, { applyOnHover = false, extraStyles
73
73
  }
74
74
  @media (prefers-contrast: more) {
75
75
  ${cssSelector} {
76
- outline-color: var(--d2l-focus-ring-color, Highlight);
76
+ outline-color: Highlight;
77
77
  }
78
78
  }`;
79
79
  }
package/lang/ar.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "إغلاق التنبيه",
4
3
  "components.breadcrumbs.breadcrumb": "شريط التنقل",
5
4
  "components.button-add.addItem": "إضافة عنصر",
package/lang/cy.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Cau Hysbysiad",
4
3
  "components.breadcrumbs.breadcrumb": "Briwsionyn Bara",
5
4
  "components.button-add.addItem": "Ychwanegu Eitem",
package/lang/da.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Luk besked",
4
3
  "components.breadcrumbs.breadcrumb": "Brødkrumme",
5
4
  "components.button-add.addItem": "Tilføj element",
package/lang/de.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Benachrichtigung schließen",
4
3
  "components.breadcrumbs.breadcrumb": "Brotkrümelnavigation",
5
4
  "components.button-add.addItem": "Element hinzufügen",
package/lang/en-gb.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Close Alert",
4
3
  "components.breadcrumbs.breadcrumb": "Breadcrumb",
5
4
  "components.button-add.addItem": "Add Item",
package/lang/en.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Close Alert",
4
3
  "components.breadcrumbs.breadcrumb": "Breadcrumb",
5
4
  "components.button-add.addItem": "Add Item",
package/lang/es-es.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Cerrar alerta",
4
3
  "components.breadcrumbs.breadcrumb": "Ruta de navegación",
5
4
  "components.button-add.addItem": "Agregar elemento",
package/lang/es.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Cerrar alerta",
4
3
  "components.breadcrumbs.breadcrumb": "Ruta de navegación",
5
4
  "components.button-add.addItem": "Agregar elemento",
package/lang/fr-fr.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Fermer l’alerte",
4
3
  "components.breadcrumbs.breadcrumb": "Chemin de navigation",
5
4
  "components.button-add.addItem": "Ajouter un élément",
package/lang/fr.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Fermer l’alerte",
4
3
  "components.breadcrumbs.breadcrumb": "Chemin de navigation",
5
4
  "components.button-add.addItem": "Ajouter un élément",
package/lang/haw.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Pani i ka makaʻala",
4
3
  "components.breadcrumbs.breadcrumb": "Palapalapala",
5
4
  "components.button-add.addItem": "Pākuʻi Mea",
package/lang/hi.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "अलर्ट बंद करें",
4
3
  "components.breadcrumbs.breadcrumb": "ब्रेडक्रंब",
5
4
  "components.button-add.addItem": "आइटम जोड़ें",
package/lang/ja.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "アラートを閉じる",
4
3
  "components.breadcrumbs.breadcrumb": "階層",
5
4
  "components.button-add.addItem": "項目の追加",
package/lang/ko.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "경보 닫기",
4
3
  "components.breadcrumbs.breadcrumb": "이동 경로",
5
4
  "components.button-add.addItem": "항목 추가",
package/lang/mi.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Kati Matohi",
4
3
  "components.breadcrumbs.breadcrumb": "Pānui",
5
4
  "components.button-add.addItem": "Tāpiri Tūemi",
package/lang/nl.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Waarschuwing sluiten",
4
3
  "components.breadcrumbs.breadcrumb": "Kruimelpad",
5
4
  "components.button-add.addItem": "Item toevoegen",
package/lang/pt.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Fechar alerta",
4
3
  "components.breadcrumbs.breadcrumb": "Auxiliar de navegação",
5
4
  "components.button-add.addItem": "Adicionar item",
package/lang/sv.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Stängningsvarning",
4
3
  "components.breadcrumbs.breadcrumb": "Sökväg",
5
4
  "components.button-add.addItem": "Lägg till objekt",
package/lang/tr.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "Kapatma Uyarısı",
4
3
  "components.breadcrumbs.breadcrumb": "İçerik Haritası",
5
4
  "components.button-add.addItem": "Öğe Ekle",
package/lang/zh-cn.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "关闭提醒",
4
3
  "components.breadcrumbs.breadcrumb": "痕迹导航",
5
4
  "components.button-add.addItem": "添加项目",
package/lang/zh-tw.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export default {
2
- "__test__": "This will be removed in a follow-up PR (before translation)",
3
2
  "components.alert.close": "關閉警示",
4
3
  "components.breadcrumbs.breadcrumb": "導覽路徑",
5
4
  "components.button-add.addItem": "新增項目",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.143.0",
3
+ "version": "3.144.0",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",
@@ -3,9 +3,9 @@ import '../../components/icons/icon-custom.js';
3
3
  import '../../components/icons/icon.js';
4
4
  import '../../components/offscreen/offscreen.js';
5
5
  import { css, html, LitElement, unsafeCSS } from 'lit';
6
+ import { getFocusPseudoClass, getFocusRingStyles } from '../../helpers/focus.js';
6
7
  import { classMap } from 'lit/directives/class-map.js';
7
8
  import { formatPercent } from '@brightspace-ui/intl';
8
- import { getFocusPseudoClass } from '../../helpers/focus.js';
9
9
  import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
10
10
  import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
11
11
  import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
@@ -939,11 +939,7 @@ class TemplatePrimarySecondary extends RtlMixin(LocalizeCoreElement(LitElement))
939
939
  color: white;
940
940
  display: block;
941
941
  }
942
- .d2l-template-primary-secondary-divider:${unsafeCSS(getFocusPseudoClass())} .d2l-template-primary-secondary-divider-handle-mobile {
943
- box-shadow: 0 0 0 0.1rem white, 0 0 0 0.2rem var(--d2l-color-celestine);
944
- right: 0.2rem;
945
- }
946
-
942
+ ${getFocusRingStyles(pseudoClass => `.d2l-template-primary-secondary-divider:${pseudoClass} .d2l-template-primary-secondary-divider-handle-mobile`, { extraStyles: css`right: 0.2rem; box-shadow: 0 0 0 2px #ffffff;` })}
947
943
  .d2l-template-primary-secondary-divider-shadow {
948
944
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
949
945
  display: block;