@brightspace-ui/core 2.78.0 → 2.78.2

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.
@@ -97,17 +97,16 @@ The `d2l-collapsible-panel` element is a container that provides specific layout
97
97
 
98
98
  <style>
99
99
  d2l-collapsible-panel {
100
- width: 500px;
101
- margin-block: 2rem;
100
+ width: 800px;
102
101
  }
103
102
  /* TODO: remove this when daylight demo resizing is fixed */
104
103
  d2l-collapsible-panel:not([expanded]) {
105
- margin-bottom: 8rem;
104
+ margin-bottom: 14rem;
106
105
  }
107
106
  </style>
108
107
 
109
- <d2l-collapsible-panel panel-title="Cake Decoration">
110
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas odio ligula, aliquam efficitur sollicitudin non, dignissim quis nisl. Nullam rutrum, lectus sed finibus consectetur, dolor leo blandit lorem, vitae consectetur arcu enim ornare tortor.
108
+ <d2l-collapsible-panel panel-title="Collapsible Panel">
109
+ The collapsible panel is also nicknamed caketray! Team Polaris coined this nickname back in 2020 while creating a labs component for a tool called Learning Paths (which is now replaced with the collapsible panel). They wanted to distinguish this labs component from d2l-card, but they didn't know what to call it, so they named it caketray to serve as a reminder to change the name later. Caketray caught on around the company, so much so that we had to make it an official nickname so some teams could find it! You'll see some other cake-related examples throughout this documentation to pay tribute to the collapsible panel's heritage.
111
110
  </d2l-collapsible-panel>
112
111
  ```
113
112
 
@@ -204,9 +203,7 @@ Use an inline collapsible panel to progressively disclose sections of a complex
204
203
  ## Summary Items [d2l-collapsible-panel-summary-item]
205
204
  An optional summary can help the user understand what’s inside the collapsible panel without having to expand it. This can be helpful if the user needs more than the heading to explain what’s inside.
206
205
 
207
- More than one d2l-collapsible-panel-summary-item can be added to the summary slot, and each will appear on its own line.
208
-
209
- <!-- docs: demo live -->
206
+ <!-- docs: demo -->
210
207
  ```html
211
208
  <script type="module">
212
209
  import '@brightspace-ui/core/components/collapsible-panel/collapsible-panel.js';
@@ -234,7 +231,7 @@ class CollapsiblePanelDaylightDemo extends LitElement {
234
231
  }
235
232
  /* TODO: remove this when daylight demo resizing is fixed */
236
233
  d2l-collapsible-panel:not([expanded]) {
237
- margin-bottom: 13rem;
234
+ margin-bottom: 12rem;
238
235
  }
239
236
  `];
240
237
  }
@@ -292,9 +289,26 @@ customElements.define('d2l-collapsible-panel-daylight-demo', CollapsiblePanelDay
292
289
  <d2l-collapsible-panel-daylight-demo></d2l-collapsible-panel-daylight-demo>
293
290
  ```
294
291
 
295
- ## Optional slots
292
+ More than one `d2l-collapsible-panel-summary-item` can be added to the `summary` slot, and each will appear on its own line.
293
+
294
+ ```html
295
+ <script type="module">
296
+ import '@brightspace-ui/core/components/collapsible-panel/collapsible-panel.js';
297
+ import '@brightspace-ui/core/components/collapsible-panel/collapsible-panel-summary-item.js';
298
+ </script>
299
+
300
+ <d2l-collapsible-panel panel-title="Cake Decoration">
301
+ <d2l-collapsible-panel-summary-item slot="summary" text="Buttercream icing"></d2l-collapsible-panel-summary-item>
302
+ <d2l-collapsible-panel-summary-item slot="summary" text="Personalized name"></d2l-collapsible-panel-summary-item>
303
+ <d2l-collapsible-panel-summary-item slot="summary" text="Candles"></d2l-collapsible-panel-summary-item>
304
+ <d2l-collapsible-panel-summary-item slot="summary" text="Plates and Forks"></d2l-collapsible-panel-summary-item>
305
+ Expanded content
306
+ </d2l-collapsible-panel>
307
+ ```
308
+
309
+ ## Header and actions slots
296
310
 
297
- Collapsible panels have two optional slots, `actions` and `header` that can be used to add more information to the header area.
311
+ Collapsible panels have two optional slots, `header` and `actions` that can be used to add more information to the header area.
298
312
 
299
313
 
300
314
  <!-- docs: demo live -->
@@ -302,6 +316,7 @@ Collapsible panels have two optional slots, `actions` and `header` that can be u
302
316
  <script type="module">
303
317
  import '@brightspace-ui/core/components/button/button-icon.js';
304
318
  import '@brightspace-ui/core/components/collapsible-panel/collapsible-panel.js';
319
+ import '@brightspace-ui/core/components/collapsible-panel/collapsible-panel-summary-item.js';
305
320
  import '@brightspace-ui/core/components/dropdown/dropdown-more.js';
306
321
  import '@brightspace-ui/core/components/dropdown/dropdown-menu.js';
307
322
  import '@brightspace-ui/core/components/link/link.js';
@@ -314,10 +329,6 @@ Collapsible panels have two optional slots, `actions` and `header` that can be u
314
329
  d2l-collapsible-panel {
315
330
  width: 800px;
316
331
  }
317
- /* TODO: remove this when daylight demo resizing is fixed */
318
- d2l-collapsible-panel:not([expanded]) {
319
- margin-bottom: 4rem;
320
- }
321
332
  </style>
322
333
 
323
334
  <d2l-collapsible-panel panel-title="Submission 1">
@@ -336,6 +347,8 @@ Collapsible panels have two optional slots, `actions` and `header` that can be u
336
347
  <p class="d2l-body-small">Submitted On: Jul 20, 2021 - 2:23 PM</p>
337
348
  <d2l-link small href="https://www.d2l.com" target="blank">Link to post</d2l-link>
338
349
  </div>
350
+ <d2l-collapsible-panel-summary-item slot="summary" text="Week 2 Lab (PDF) attached"></d2l-collapsible-panel-summary-item>
351
+ <d2l-collapsible-panel-summary-item slot="summary" text="1 comment"></d2l-collapsible-panel-summary-item>
339
352
  Expanded content
340
353
  </d2l-collapsible-panel>
341
354
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.78.0",
3
+ "version": "2.78.2",
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",