@unofficialbox/box-open-elements 0.18.0 → 0.19.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.
Files changed (143) hide show
  1. package/dist/components/actions/button-group.js +6 -0
  2. package/dist/components/actions/button.js +6 -0
  3. package/dist/components/actions/icon-button.js +6 -0
  4. package/dist/components/actions/link-button.js +6 -0
  5. package/dist/components/actions/menu-item.js +6 -0
  6. package/dist/components/actions/menu.js +6 -0
  7. package/dist/components/actions/segmented-control.js +6 -0
  8. package/dist/components/actions/toolbar.js +6 -0
  9. package/dist/components/collections/card.js +6 -0
  10. package/dist/components/collections/carousel.js +6 -0
  11. package/dist/components/collections/datalist-item.js +6 -0
  12. package/dist/components/collections/draggable-list.js +6 -0
  13. package/dist/components/collections/grid-view.js +6 -0
  14. package/dist/components/collections/pagination.js +6 -0
  15. package/dist/components/collections/table.js +6 -0
  16. package/dist/components/collections/thumbnail-card.js +6 -0
  17. package/dist/components/collections/tree-grid.js +6 -0
  18. package/dist/components/collections/tree.js +6 -0
  19. package/dist/components/feedback/alert.js +1 -1
  20. package/dist/components/feedback/badge.js +1 -1
  21. package/dist/components/feedback/badgeable.js +6 -0
  22. package/dist/components/feedback/chip.js +6 -0
  23. package/dist/components/feedback/due-badge.js +6 -0
  24. package/dist/components/feedback/empty-state.js +6 -0
  25. package/dist/components/feedback/error-mask.js +6 -0
  26. package/dist/components/feedback/help-text.js +6 -0
  27. package/dist/components/feedback/indicator.js +1 -1
  28. package/dist/components/feedback/nudge.js +6 -0
  29. package/dist/components/feedback/path.js +6 -0
  30. package/dist/components/feedback/progress-bar.js +6 -0
  31. package/dist/components/feedback/progress-ring.js +6 -0
  32. package/dist/components/feedback/progress-steps.js +6 -0
  33. package/dist/components/feedback/skeleton.js +6 -0
  34. package/dist/components/feedback/spinner.js +6 -0
  35. package/dist/components/feedback/toast.js +1 -1
  36. package/dist/components/files/drop-zone.js +1 -1
  37. package/dist/components/forms/calendar.js +6 -0
  38. package/dist/components/forms/category-selector.js +6 -0
  39. package/dist/components/forms/checkbox-group.js +6 -0
  40. package/dist/components/forms/checkbox.js +6 -0
  41. package/dist/components/forms/color-picker.js +6 -0
  42. package/dist/components/forms/combobox.js +6 -0
  43. package/dist/components/forms/date-field.js +6 -0
  44. package/dist/components/forms/dropdown.js +6 -0
  45. package/dist/components/forms/dual-listbox.js +6 -0
  46. package/dist/components/forms/fieldset.js +6 -0
  47. package/dist/components/forms/multi-select.js +6 -0
  48. package/dist/components/forms/number-input.js +6 -0
  49. package/dist/components/forms/pill-cloud.js +6 -0
  50. package/dist/components/forms/pill-selector-dropdown.js +6 -0
  51. package/dist/components/forms/radio-group.js +6 -0
  52. package/dist/components/forms/range-slider.js +6 -0
  53. package/dist/components/forms/rating.js +6 -0
  54. package/dist/components/forms/rich-text-input.js +6 -0
  55. package/dist/components/forms/search-field.js +6 -0
  56. package/dist/components/forms/select.js +6 -0
  57. package/dist/components/forms/slider.js +6 -0
  58. package/dist/components/forms/spin-button.js +6 -0
  59. package/dist/components/forms/switch.js +6 -0
  60. package/dist/components/forms/tag-input.js +6 -0
  61. package/dist/components/forms/text-area.js +6 -0
  62. package/dist/components/forms/text-field.js +6 -0
  63. package/dist/components/forms/tile-group.js +1 -1
  64. package/dist/components/forms/time-field.js +6 -0
  65. package/dist/components/identity/avatar.js +6 -0
  66. package/dist/components/identity/contact-datalist-item.js +6 -0
  67. package/dist/components/identity/persona.js +6 -0
  68. package/dist/components/layout/app-shell.js +6 -0
  69. package/dist/components/layout/divider.js +6 -0
  70. package/dist/components/layout/grid.js +1 -1
  71. package/dist/components/layout/nav-sidebar.js +6 -0
  72. package/dist/components/layout/section.js +6 -0
  73. package/dist/components/layout/sidebar-toggle-button.js +6 -0
  74. package/dist/components/layout/split-view.js +6 -0
  75. package/dist/components/navigation/accordion.js +6 -0
  76. package/dist/components/navigation/breadcrumb.js +6 -0
  77. package/dist/components/navigation/tabs.js +6 -0
  78. package/dist/components/output/code-block.js +1 -1
  79. package/dist/components/output/formatted-value.js +1 -1
  80. package/dist/components/overlays/command-palette.js +6 -0
  81. package/dist/components/overlays/context-menu.js +6 -0
  82. package/dist/components/overlays/guide-tooltip.js +6 -0
  83. package/dist/components/overlays/popover.js +6 -0
  84. package/dist/components/overlays/shortcuts-overlay.js +6 -0
  85. package/dist/components/overlays/tooltip.js +6 -0
  86. package/dist/components/visuals/illustration.js +6 -0
  87. package/dist/patterns/agent-chat/agent-chat.js +6 -0
  88. package/dist/patterns/audit/activity-density.js +6 -0
  89. package/dist/patterns/audit/audit-log.js +6 -0
  90. package/dist/patterns/comments/comment-thread.js +6 -0
  91. package/dist/patterns/content-explorer/adapters/action-menu.js +6 -0
  92. package/dist/patterns/content-explorer/adapters/breadcrumbs.js +6 -0
  93. package/dist/patterns/content-explorer/adapters/list.js +6 -0
  94. package/dist/patterns/content-explorer/adapters/table.js +6 -0
  95. package/dist/patterns/content-explorer/adapters/toolbar.js +6 -0
  96. package/dist/patterns/content-explorer/content-explorer.js +6 -0
  97. package/dist/patterns/content-picker/content-picker.js +6 -0
  98. package/dist/patterns/content-sidebar/content-sidebar.js +6 -0
  99. package/dist/patterns/content-uploader/content-uploader.js +6 -0
  100. package/dist/patterns/diff/compare-view.js +6 -0
  101. package/dist/patterns/diff/diff-viewer.js +6 -0
  102. package/dist/patterns/file-request/file-request-builder.js +6 -0
  103. package/dist/patterns/form-wizard/form-wizard.js +6 -0
  104. package/dist/patterns/form-wizard/wizard-summary.js +6 -0
  105. package/dist/patterns/governance/governance-panel.js +6 -0
  106. package/dist/patterns/insights/bar-chart.js +6 -0
  107. package/dist/patterns/insights/chart-panel.js +6 -0
  108. package/dist/patterns/insights/donut-chart.js +6 -0
  109. package/dist/patterns/insights/line-chart.js +6 -0
  110. package/dist/patterns/insights/metric-card.js +6 -0
  111. package/dist/patterns/item/bulk-action-bar.js +6 -0
  112. package/dist/patterns/item/item-details-panel.js +6 -0
  113. package/dist/patterns/item/item-form.js +6 -0
  114. package/dist/patterns/item/preview-header.js +6 -0
  115. package/dist/patterns/lineage/lineage-graph.js +6 -0
  116. package/dist/patterns/lineage/provenance-strip.js +6 -0
  117. package/dist/patterns/metadata/metadata-filter-builder.js +6 -0
  118. package/dist/patterns/metadata/metadata-inspector.js +6 -0
  119. package/dist/patterns/notifications/notification-bell.js +6 -0
  120. package/dist/patterns/notifications/notification-inbox.js +6 -0
  121. package/dist/patterns/preview/annotation-inspector.js +6 -0
  122. package/dist/patterns/preview/annotation-toolbar.js +6 -0
  123. package/dist/patterns/preview/preview-element.js +6 -0
  124. package/dist/patterns/run/run-trace.js +6 -0
  125. package/dist/patterns/search/filter-bar.js +6 -0
  126. package/dist/patterns/search/saved-view-picker.js +6 -0
  127. package/dist/patterns/search/search-results-header.js +6 -0
  128. package/dist/patterns/share/access-stats.js +6 -0
  129. package/dist/patterns/share/collaborator-avatars.js +6 -0
  130. package/dist/patterns/share/invite-collaborators-modal.js +6 -0
  131. package/dist/patterns/share/permission-matrix.js +6 -0
  132. package/dist/patterns/share/presence.js +6 -0
  133. package/dist/patterns/share/share-panel.js +6 -0
  134. package/dist/patterns/share/unified-share-modal.js +6 -0
  135. package/dist/patterns/signature/signature-ceremony.js +6 -0
  136. package/dist/patterns/task/review-queue-item.js +6 -0
  137. package/dist/patterns/task/task-assignment-panel.js +6 -0
  138. package/dist/patterns/timeline/timeline.js +6 -0
  139. package/dist/patterns/versions/version-graph.js +6 -0
  140. package/dist/patterns/versions/version-list.js +6 -0
  141. package/dist/patterns/work-queue/work-queue.js +6 -0
  142. package/dist/patterns/work-queue/workload-board.js +6 -0
  143. package/package.json +1 -1
@@ -25,6 +25,12 @@ const elementStyles = `
25
25
  font: inherit;
26
26
  }
27
27
 
28
+ /* The host's own display would otherwise beat the UA rule for [hidden],
29
+ leaving the element on screen when a host hides it. */
30
+ :host([hidden]) {
31
+ display: none !important;
32
+ }
33
+
28
34
  [part="sidebar"] {
29
35
  display: grid;
30
36
  gap: ${boePanel.gap};
@@ -63,6 +63,12 @@ const elementStyles = `
63
63
  font: inherit;
64
64
  }
65
65
 
66
+ /* The host's own display would otherwise beat the UA rule for [hidden],
67
+ leaving the element on screen when a host hides it. */
68
+ :host([hidden]) {
69
+ display: none !important;
70
+ }
71
+
66
72
  [part="panel"] {
67
73
  display: grid;
68
74
  gap: ${boePanel.gap};
@@ -18,6 +18,12 @@ const elementStyles = `
18
18
  display: block;
19
19
  }
20
20
 
21
+ /* The host's own display would otherwise beat the UA rule for [hidden],
22
+ leaving the element on screen when a host hides it. */
23
+ :host([hidden]) {
24
+ display: none !important;
25
+ }
26
+
21
27
  /*
22
28
  * The height a host sets on the element has to reach the scrollers, or
23
29
  * the panes size to their content, never overflow, and the scroll lock
@@ -20,6 +20,12 @@ const elementStyles = `
20
20
  font: inherit;
21
21
  }
22
22
 
23
+ /* The host's own display would otherwise beat the UA rule for [hidden],
24
+ leaving the element on screen when a host hides it. */
25
+ :host([hidden]) {
26
+ display: none !important;
27
+ }
28
+
23
29
  [part="panel"] {
24
30
  display: grid;
25
31
  gap: ${boePanel.gap};
@@ -15,6 +15,12 @@ const elementStyles = `
15
15
  font: inherit;
16
16
  }
17
17
 
18
+ /* The host's own display would otherwise beat the UA rule for [hidden],
19
+ leaving the element on screen when a host hides it. */
20
+ :host([hidden]) {
21
+ display: none !important;
22
+ }
23
+
18
24
  [part="builder"] {
19
25
  display: grid;
20
26
  gap: 0.6rem;
@@ -25,6 +25,12 @@ const elementStyles = `
25
25
  font: inherit;
26
26
  }
27
27
 
28
+ /* The host's own display would otherwise beat the UA rule for [hidden],
29
+ leaving the element on screen when a host hides it. */
30
+ :host([hidden]) {
31
+ display: none !important;
32
+ }
33
+
28
34
  [part="wizard"] {
29
35
  display: grid;
30
36
  gap: ${boePanel.gap};
@@ -13,6 +13,12 @@ const elementStyles = `
13
13
  display: block;
14
14
  }
15
15
 
16
+ /* The host's own display would otherwise beat the UA rule for [hidden],
17
+ leaving the element on screen when a host hides it. */
18
+ :host([hidden]) {
19
+ display: none !important;
20
+ }
21
+
16
22
  [part="card"] {
17
23
  border: ${boePanel.border};
18
24
  border-radius: ${boePanel.radius};
@@ -15,6 +15,12 @@ const elementStyles = `
15
15
  font: inherit;
16
16
  }
17
17
 
18
+ /* The host's own display would otherwise beat the UA rule for [hidden],
19
+ leaving the element on screen when a host hides it. */
20
+ :host([hidden]) {
21
+ display: none !important;
22
+ }
23
+
18
24
  [part="panel"] {
19
25
  display: grid;
20
26
  gap: 0.6rem;
@@ -14,6 +14,12 @@ const elementStyles = `
14
14
  font: inherit;
15
15
  }
16
16
 
17
+ /* The host's own display would otherwise beat the UA rule for [hidden],
18
+ leaving the element on screen when a host hides it. */
19
+ :host([hidden]) {
20
+ display: none !important;
21
+ }
22
+
17
23
  [part="panel"] {
18
24
  display: grid;
19
25
  gap: 0.6rem;
@@ -15,6 +15,12 @@ const elementStyles = `
15
15
  font: inherit;
16
16
  }
17
17
 
18
+ /* The host's own display would otherwise beat the UA rule for [hidden],
19
+ leaving the element on screen when a host hides it. */
20
+ :host([hidden]) {
21
+ display: none !important;
22
+ }
23
+
18
24
  [part="panel"] {
19
25
  display: grid;
20
26
  gap: 0.6rem;
@@ -16,6 +16,12 @@ const elementStyles = `
16
16
  font: inherit;
17
17
  }
18
18
 
19
+ /* The host's own display would otherwise beat the UA rule for [hidden],
20
+ leaving the element on screen when a host hides it. */
21
+ :host([hidden]) {
22
+ display: none !important;
23
+ }
24
+
19
25
  [part="panel"] {
20
26
  display: grid;
21
27
  gap: ${boePanel.gap};
@@ -14,6 +14,12 @@ const elementStyles = `
14
14
  font: inherit;
15
15
  }
16
16
 
17
+ /* The host's own display would otherwise beat the UA rule for [hidden],
18
+ leaving the element on screen when a host hides it. */
19
+ :host([hidden]) {
20
+ display: none !important;
21
+ }
22
+
17
23
  [part="panel"] {
18
24
  display: grid;
19
25
  gap: ${boePanel.gap};
@@ -15,6 +15,12 @@ const elementStyles = `
15
15
  font: inherit;
16
16
  }
17
17
 
18
+ /* The host's own display would otherwise beat the UA rule for [hidden],
19
+ leaving the element on screen when a host hides it. */
20
+ :host([hidden]) {
21
+ display: none !important;
22
+ }
23
+
18
24
  [part="card"] {
19
25
  display: grid;
20
26
  gap: ${boePanel.gap};
@@ -24,6 +24,12 @@ const elementStyles = `
24
24
  --_obp-brand-soft: color-mix(in srgb, var(--_obp-brand) 12%, var(--boe-token-surface-surface, #ffffff) 88%);
25
25
  }
26
26
 
27
+ /* The host's own display would otherwise beat the UA rule for [hidden],
28
+ leaving the element on screen when a host hides it. */
29
+ :host([hidden]) {
30
+ display: none !important;
31
+ }
32
+
27
33
  [part="bar"] {
28
34
  display: grid;
29
35
  gap: ${boePanel.gap};
@@ -23,6 +23,12 @@ const elementStyles = `
23
23
  --_obp-brand-soft: color-mix(in srgb, var(--_obp-brand) 12%, var(--boe-token-surface-surface, #ffffff) 88%);
24
24
  }
25
25
 
26
+ /* The host's own display would otherwise beat the UA rule for [hidden],
27
+ leaving the element on screen when a host hides it. */
28
+ :host([hidden]) {
29
+ display: none !important;
30
+ }
31
+
26
32
  [part="panel"] {
27
33
  display: grid;
28
34
  gap: ${boePanel.gap};
@@ -16,6 +16,12 @@ const elementStyles = `
16
16
  font: inherit;
17
17
  }
18
18
 
19
+ /* The host's own display would otherwise beat the UA rule for [hidden],
20
+ leaving the element on screen when a host hides it. */
21
+ :host([hidden]) {
22
+ display: none !important;
23
+ }
24
+
19
25
  [part="form"] {
20
26
  display: grid;
21
27
  gap: ${boePanel.gap};
@@ -23,6 +23,12 @@ const elementStyles = `
23
23
  --_obp-brand-soft: color-mix(in srgb, var(--_obp-brand) 12%, var(--boe-token-surface-surface, #ffffff) 88%);
24
24
  }
25
25
 
26
+ /* The host's own display would otherwise beat the UA rule for [hidden],
27
+ leaving the element on screen when a host hides it. */
28
+ :host([hidden]) {
29
+ display: none !important;
30
+ }
31
+
26
32
  [part="header"] {
27
33
  display: grid;
28
34
  gap: ${boePanel.gap};
@@ -39,6 +39,12 @@ const elementStyles = `
39
39
  font: inherit;
40
40
  }
41
41
 
42
+ /* The host's own display would otherwise beat the UA rule for [hidden],
43
+ leaving the element on screen when a host hides it. */
44
+ :host([hidden]) {
45
+ display: none !important;
46
+ }
47
+
42
48
  section[part="panel"] {
43
49
  display: grid;
44
50
  gap: ${boePanel.gap};
@@ -21,6 +21,12 @@ const elementStyles = `
21
21
  font: inherit;
22
22
  }
23
23
 
24
+ /* The host's own display would otherwise beat the UA rule for [hidden],
25
+ leaving the element on screen when a host hides it. */
26
+ :host([hidden]) {
27
+ display: none !important;
28
+ }
29
+
24
30
  /* Read as a flow diagram rather than a breadcrumb. The anatomy is
25
31
  React Flow's, taken from its stylesheet: nodes are bordered boxes
26
32
  with a small radius (not pills), ports are 6px circles sitting on
@@ -20,6 +20,12 @@ const builderStyles = `
20
20
  font: inherit;
21
21
  }
22
22
 
23
+ /* The host's own display would otherwise beat the UA rule for [hidden],
24
+ leaving the element on screen when a host hides it. */
25
+ :host([hidden]) {
26
+ display: none !important;
27
+ }
28
+
23
29
  [part="builder"] {
24
30
  display: grid;
25
31
  gap: ${boePanel.gap};
@@ -15,6 +15,12 @@ const elementStyles = `
15
15
  font: inherit;
16
16
  }
17
17
 
18
+ /* The host's own display would otherwise beat the UA rule for [hidden],
19
+ leaving the element on screen when a host hides it. */
20
+ :host([hidden]) {
21
+ display: none !important;
22
+ }
23
+
18
24
  [part="inspector"] {
19
25
  display: grid;
20
26
  gap: ${boePanel.gap};
@@ -18,6 +18,12 @@ const elementStyles = `
18
18
  display: inline-block;
19
19
  }
20
20
 
21
+ /* The host's own display would otherwise beat the UA rule for [hidden],
22
+ leaving the element on screen when a host hides it. */
23
+ :host([hidden]) {
24
+ display: none !important;
25
+ }
26
+
21
27
  [part="trigger"] {
22
28
  position: relative;
23
29
  appearance: none;
@@ -21,6 +21,12 @@ const elementStyles = `
21
21
  font: inherit;
22
22
  }
23
23
 
24
+ /* The host's own display would otherwise beat the UA rule for [hidden],
25
+ leaving the element on screen when a host hides it. */
26
+ :host([hidden]) {
27
+ display: none !important;
28
+ }
29
+
24
30
  [part="panel"] {
25
31
  display: grid;
26
32
  grid-template-rows: auto auto 1fr;
@@ -22,6 +22,12 @@ const elementStyles = `
22
22
  font: inherit;
23
23
  }
24
24
 
25
+ /* The host's own display would otherwise beat the UA rule for [hidden],
26
+ leaving the element on screen when a host hides it. */
27
+ :host([hidden]) {
28
+ display: none !important;
29
+ }
30
+
25
31
  [part="panel"] {
26
32
  display: grid;
27
33
  gap: ${boePanel.gap};
@@ -23,6 +23,12 @@ const elementStyles = `
23
23
  font: inherit;
24
24
  }
25
25
 
26
+ /* The host's own display would otherwise beat the UA rule for [hidden],
27
+ leaving the element on screen when a host hides it. */
28
+ :host([hidden]) {
29
+ display: none !important;
30
+ }
31
+
26
32
  [part="toolbar"] {
27
33
  display: grid;
28
34
  gap: 0.5rem;
@@ -23,6 +23,12 @@ const elementStyles = `
23
23
  --_obp-error: var(--boe-token-surface-status-surface-error, #ed3757);
24
24
  }
25
25
 
26
+ /* The host's own display would otherwise beat the UA rule for [hidden],
27
+ leaving the element on screen when a host hides it. */
28
+ :host([hidden]) {
29
+ display: none !important;
30
+ }
31
+
26
32
  [part="shell"] {
27
33
  display: grid;
28
34
  gap: 0.6rem;
@@ -33,6 +33,12 @@ const elementStyles = `
33
33
  display: block;
34
34
  }
35
35
 
36
+ /* The host's own display would otherwise beat the UA rule for [hidden],
37
+ leaving the element on screen when a host hides it. */
38
+ :host([hidden]) {
39
+ display: none !important;
40
+ }
41
+
36
42
  [part="panel"] {
37
43
  border: ${boePanel.border};
38
44
  border-radius: ${boePanel.radius};
@@ -25,6 +25,12 @@ const elementStyles = `
25
25
  --_obp-brand-soft: color-mix(in srgb, var(--_obp-brand) 12%, var(--boe-token-surface-surface, #ffffff) 88%);
26
26
  }
27
27
 
28
+ /* The host's own display would otherwise beat the UA rule for [hidden],
29
+ leaving the element on screen when a host hides it. */
30
+ :host([hidden]) {
31
+ display: none !important;
32
+ }
33
+
28
34
  [part="bar"] {
29
35
  display: grid;
30
36
  gap: ${boePanel.gap};
@@ -23,6 +23,12 @@ const elementStyles = `
23
23
  --_obp-brand-soft: color-mix(in srgb, var(--_obp-brand) 12%, var(--boe-token-surface-surface, #ffffff) 88%);
24
24
  }
25
25
 
26
+ /* The host's own display would otherwise beat the UA rule for [hidden],
27
+ leaving the element on screen when a host hides it. */
28
+ :host([hidden]) {
29
+ display: none !important;
30
+ }
31
+
26
32
  [part="picker"] {
27
33
  display: grid;
28
34
  gap: ${boePanel.gap};
@@ -22,6 +22,12 @@ const elementStyles = `
22
22
  --_obp-brand-soft: color-mix(in srgb, var(--_obp-brand) 12%, var(--boe-token-surface-surface, #ffffff) 88%);
23
23
  }
24
24
 
25
+ /* The host's own display would otherwise beat the UA rule for [hidden],
26
+ leaving the element on screen when a host hides it. */
27
+ :host([hidden]) {
28
+ display: none !important;
29
+ }
30
+
25
31
  [part="header"] {
26
32
  display: grid;
27
33
  gap: ${boePanel.gap};
@@ -64,6 +64,12 @@ const elementStyles = `
64
64
  font: inherit;
65
65
  }
66
66
 
67
+ /* The host's own display would otherwise beat the UA rule for [hidden],
68
+ leaving the element on screen when a host hides it. */
69
+ :host([hidden]) {
70
+ display: none !important;
71
+ }
72
+
67
73
  [part="stats"] {
68
74
  margin: 0;
69
75
  padding: ${boePanel.padding};
@@ -38,6 +38,12 @@ const elementStyles = `
38
38
  font: inherit;
39
39
  }
40
40
 
41
+ /* The host's own display would otherwise beat the UA rule for [hidden],
42
+ leaving the element on screen when a host hides it. */
43
+ :host([hidden]) {
44
+ display: none !important;
45
+ }
46
+
41
47
  [part="group"] {
42
48
  display: inline-flex;
43
49
  align-items: center;
@@ -7,6 +7,12 @@ const DEFAULT_TAG_NAME = "box-invite-collaborators-modal";
7
7
  const elementStyles = `
8
8
  :host { display: contents; color: inherit; font: inherit; }
9
9
 
10
+ /* The host's own display would otherwise beat the UA rule for [hidden],
11
+ leaving the element on screen when a host hides it. */
12
+ :host([hidden]) {
13
+ display: none !important;
14
+ }
15
+
10
16
  [part="backdrop"] {
11
17
  position: fixed;
12
18
  inset: 0;
@@ -16,6 +16,12 @@ const matrixStyles = `
16
16
  font: inherit;
17
17
  }
18
18
 
19
+ /* The host's own display would otherwise beat the UA rule for [hidden],
20
+ leaving the element on screen when a host hides it. */
21
+ :host([hidden]) {
22
+ display: none !important;
23
+ }
24
+
19
25
  [part="matrix"] {
20
26
  display: grid;
21
27
  gap: ${boePanel.gap};
@@ -127,6 +127,12 @@ export class Presence extends BaseElement {
127
127
  font: inherit;
128
128
  }
129
129
 
130
+ /* The host's own display would otherwise beat the UA rule for [hidden],
131
+ leaving the element on screen when a host hides it. */
132
+ :host([hidden]) {
133
+ display: none !important;
134
+ }
135
+
130
136
  [part="presence"] {
131
137
  display: inline-flex;
132
138
  align-items: center;
@@ -16,6 +16,12 @@ const elementStyles = `
16
16
  font: inherit;
17
17
  }
18
18
 
19
+ /* The host's own display would otherwise beat the UA rule for [hidden],
20
+ leaving the element on screen when a host hides it. */
21
+ :host([hidden]) {
22
+ display: none !important;
23
+ }
24
+
19
25
  [part="panel"] {
20
26
  display: grid;
21
27
  gap: ${boePanel.gap};
@@ -18,6 +18,12 @@ const accessLabel = (access) => ACCESS_OPTIONS.find(option => option.value === a
18
18
  const elementStyles = `
19
19
  :host { display: contents; color: inherit; font: inherit; }
20
20
 
21
+ /* The host's own display would otherwise beat the UA rule for [hidden],
22
+ leaving the element on screen when a host hides it. */
23
+ :host([hidden]) {
24
+ display: none !important;
25
+ }
26
+
21
27
  [part="backdrop"] {
22
28
  position: fixed;
23
29
  inset: 0;
@@ -33,6 +33,12 @@ const elementStyles = `
33
33
  display: block;
34
34
  }
35
35
 
36
+ /* The host's own display would otherwise beat the UA rule for [hidden],
37
+ leaving the element on screen when a host hides it. */
38
+ :host([hidden]) {
39
+ display: none !important;
40
+ }
41
+
36
42
  [part="card"] {
37
43
  border: ${boePanel.border};
38
44
  border-radius: ${boePanel.radius};
@@ -15,6 +15,12 @@ const elementStyles = `
15
15
  font: inherit;
16
16
  }
17
17
 
18
+ /* The host's own display would otherwise beat the UA rule for [hidden],
19
+ leaving the element on screen when a host hides it. */
20
+ :host([hidden]) {
21
+ display: none !important;
22
+ }
23
+
18
24
  [part="item"] {
19
25
  display: grid;
20
26
  gap: 0.6rem;
@@ -15,6 +15,12 @@ const elementStyles = `
15
15
  font: inherit;
16
16
  }
17
17
 
18
+ /* The host's own display would otherwise beat the UA rule for [hidden],
19
+ leaving the element on screen when a host hides it. */
20
+ :host([hidden]) {
21
+ display: none !important;
22
+ }
23
+
18
24
  [part="panel"] {
19
25
  display: grid;
20
26
  gap: 0.6rem;
@@ -38,6 +38,12 @@ const elementStyles = `
38
38
  font: inherit;
39
39
  }
40
40
 
41
+ /* The host's own display would otherwise beat the UA rule for [hidden],
42
+ leaving the element on screen when a host hides it. */
43
+ :host([hidden]) {
44
+ display: none !important;
45
+ }
46
+
41
47
  [part="panel"] {
42
48
  display: grid;
43
49
  gap: ${boePanel.gap};
@@ -28,6 +28,12 @@ const elementStyles = `
28
28
  font: inherit;
29
29
  }
30
30
 
31
+ /* The host's own display would otherwise beat the UA rule for [hidden],
32
+ leaving the element on screen when a host hides it. */
33
+ :host([hidden]) {
34
+ display: none !important;
35
+ }
36
+
31
37
  section[part="panel"] {
32
38
  display: grid;
33
39
  gap: ${boePanel.gap};
@@ -17,6 +17,12 @@ const elementStyles = `
17
17
  font: inherit;
18
18
  }
19
19
 
20
+ /* The host's own display would otherwise beat the UA rule for [hidden],
21
+ leaving the element on screen when a host hides it. */
22
+ :host([hidden]) {
23
+ display: none !important;
24
+ }
25
+
20
26
  section[part="panel"] {
21
27
  display: grid;
22
28
  gap: ${boePanel.gap};
@@ -22,6 +22,12 @@ const elementStyles = `
22
22
  font: inherit;
23
23
  }
24
24
 
25
+ /* The host's own display would otherwise beat the UA rule for [hidden],
26
+ leaving the element on screen when a host hides it. */
27
+ :host([hidden]) {
28
+ display: none !important;
29
+ }
30
+
25
31
  section[part="panel"] {
26
32
  display: grid;
27
33
  gap: ${boePanel.gap};
@@ -28,6 +28,12 @@ const elementStyles = `
28
28
  font: inherit;
29
29
  }
30
30
 
31
+ /* The host's own display would otherwise beat the UA rule for [hidden],
32
+ leaving the element on screen when a host hides it. */
33
+ :host([hidden]) {
34
+ display: none !important;
35
+ }
36
+
31
37
  section[part="panel"] {
32
38
  display: grid;
33
39
  gap: ${boePanel.gap};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unofficialbox/box-open-elements",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "Box Open Elements: an open, framework-agnostic design system and web component library for Box-style experiences",
5
5
  "license": "MIT",
6
6
  "homepage": "https://unofficialbox.github.io/box-open-elements",