@brightspace-ui/core 3.227.3 → 3.227.5

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 (179) hide show
  1. package/components/button/button.js +8 -8
  2. package/components/colors/colors.js +8 -0
  3. package/components/count-badge/count-badge-icon.js +1 -1
  4. package/components/count-badge/count-badge-mixin.js +4 -4
  5. package/components/demo/test/demo-page-settings.test.js +25 -0
  6. package/components/demo/test/demo-page.test.js +17 -0
  7. package/package.json +1 -1
  8. package/components/alert/demo/alert-toast.html +0 -106
  9. package/components/alert/demo/alert.html +0 -82
  10. package/components/backdrop/demo/backdrop-loading.html +0 -166
  11. package/components/backdrop/demo/backdrop.html +0 -57
  12. package/components/breadcrumbs/demo/breadcrumbs.html +0 -53
  13. package/components/button/demo/button-add.html +0 -55
  14. package/components/button/demo/button-copy.html +0 -122
  15. package/components/button/demo/button-icon.html +0 -174
  16. package/components/button/demo/button-move.html +0 -38
  17. package/components/button/demo/button-split.html +0 -76
  18. package/components/button/demo/button-subtle.html +0 -132
  19. package/components/button/demo/button-toggle.html +0 -80
  20. package/components/button/demo/button.html +0 -67
  21. package/components/button/demo/floating-buttons-in-frame.html +0 -44
  22. package/components/button/demo/floating-buttons-in-tabs.html +0 -244
  23. package/components/button/demo/floating-buttons-page.html +0 -100
  24. package/components/button/demo/floating-buttons.html +0 -101
  25. package/components/calendar/demo/calendar.html +0 -76
  26. package/components/card/demo/card.html +0 -304
  27. package/components/collapsible-panel/demo/collapsible-panel.html +0 -218
  28. package/components/colors/demo/color-swatch.js +0 -240
  29. package/components/colors/demo/colors.html +0 -139
  30. package/components/count-badge/demo/count-badge-icon.html +0 -48
  31. package/components/count-badge/demo/count-badge.html +0 -73
  32. package/components/demo/demo/demo-snippet.html +0 -71
  33. package/components/description-list/demo/description-list-test.js +0 -142
  34. package/components/description-list/demo/description-list.html +0 -48
  35. package/components/dialog/demo/dialog-async-content-until.js +0 -89
  36. package/components/dialog/demo/dialog-async-content.js +0 -72
  37. package/components/dialog/demo/dialog-confirm.html +0 -102
  38. package/components/dialog/demo/dialog-container.js +0 -40
  39. package/components/dialog/demo/dialog-fullscreen.html +0 -273
  40. package/components/dialog/demo/dialog-nested.html +0 -94
  41. package/components/dialog/demo/dialog.html +0 -398
  42. package/components/dropdown/demo/dropdown-button.html +0 -102
  43. package/components/dropdown/demo/dropdown-context-menu.html +0 -129
  44. package/components/dropdown/demo/dropdown-flicker-inner.html +0 -70
  45. package/components/dropdown/demo/dropdown-flicker.html +0 -142
  46. package/components/dropdown/demo/dropdown-menu-demo-view.js +0 -37
  47. package/components/dropdown/demo/dropdown-menu.html +0 -227
  48. package/components/dropdown/demo/dropdown-more.html +0 -160
  49. package/components/dropdown/demo/dropdown-positioning.html +0 -127
  50. package/components/dropdown/demo/dropdown-tabs.html +0 -87
  51. package/components/dropdown/demo/dropdown.html +0 -217
  52. package/components/empty-state/demo/empty-state.html +0 -94
  53. package/components/expand-collapse/demo/expand-collapse-content.html +0 -58
  54. package/components/filter/demo/filter-load-more-demo.js +0 -182
  55. package/components/filter/demo/filter-overflow-group.html +0 -246
  56. package/components/filter/demo/filter-search-demo.js +0 -135
  57. package/components/filter/demo/filter-tags.html +0 -115
  58. package/components/filter/demo/filter.html +0 -230
  59. package/components/focus-trap/demo/focus-trap.html +0 -75
  60. package/components/form/demo/form-demo.js +0 -105
  61. package/components/form/demo/form-dialog-demo.js +0 -94
  62. package/components/form/demo/form-panel-demo.js +0 -89
  63. package/components/form/demo/form.html +0 -37
  64. package/components/hierarchical-view/demo/hierarchical-view.html +0 -221
  65. package/components/html-block/demo/html-block-code.html +0 -55
  66. package/components/html-block/demo/html-block.html +0 -696
  67. package/components/icons/demo/icon-color-override.js +0 -23
  68. package/components/icons/demo/icon-custom.html +0 -112
  69. package/components/icons/demo/icon-size-override.js +0 -24
  70. package/components/icons/demo/icon.html +0 -52
  71. package/components/inputs/demo/input-checkbox.html +0 -118
  72. package/components/inputs/demo/input-color-palette.js +0 -67
  73. package/components/inputs/demo/input-color.html +0 -110
  74. package/components/inputs/demo/input-date-range.html +0 -114
  75. package/components/inputs/demo/input-date-time-range.html +0 -128
  76. package/components/inputs/demo/input-date-time.html +0 -100
  77. package/components/inputs/demo/input-date.html +0 -81
  78. package/components/inputs/demo/input-group.html +0 -56
  79. package/components/inputs/demo/input-number.html +0 -136
  80. package/components/inputs/demo/input-percent.html +0 -99
  81. package/components/inputs/demo/input-radio-label-test.js +0 -45
  82. package/components/inputs/demo/input-radio-solo-test.js +0 -47
  83. package/components/inputs/demo/input-radio.html +0 -119
  84. package/components/inputs/demo/input-search.html +0 -75
  85. package/components/inputs/demo/input-select-test.js +0 -60
  86. package/components/inputs/demo/input-select.html +0 -45
  87. package/components/inputs/demo/input-text.html +0 -163
  88. package/components/inputs/demo/input-textarea.html +0 -124
  89. package/components/inputs/demo/input-time-range.html +0 -121
  90. package/components/inputs/demo/input-time.html +0 -95
  91. package/components/link/demo/link.html +0 -111
  92. package/components/list/demo/demo-list-nav.js +0 -170
  93. package/components/list/demo/demo-list-nested-iterations-helper.js +0 -168
  94. package/components/list/demo/demo-list-nested-lazy-load.js +0 -133
  95. package/components/list/demo/demo-list-nested.js +0 -291
  96. package/components/list/demo/demo-list.js +0 -241
  97. package/components/list/demo/list-color.html +0 -423
  98. package/components/list/demo/list-demo-scenarios.js +0 -380
  99. package/components/list/demo/list-drag-and-drop-position.js +0 -102
  100. package/components/list/demo/list-drag-and-drop.html +0 -82
  101. package/components/list/demo/list-expand-collapse.html +0 -136
  102. package/components/list/demo/list-item-actions.html +0 -371
  103. package/components/list/demo/list-item-custom.js +0 -204
  104. package/components/list/demo/list-item-layouts.html +0 -331
  105. package/components/list/demo/list-item-scroll.html +0 -122
  106. package/components/list/demo/list-layout.html +0 -575
  107. package/components/list/demo/list-nav.html +0 -110
  108. package/components/list/demo/list-nested.html +0 -270
  109. package/components/list/demo/list-selection.html +0 -301
  110. package/components/list/demo/list.html +0 -319
  111. package/components/loading-spinner/demo/loading-spinner-override.js +0 -34
  112. package/components/loading-spinner/demo/loading-spinner.html +0 -63
  113. package/components/menu/demo/checkbox-menu.html +0 -52
  114. package/components/menu/demo/custom-menu-item.js +0 -37
  115. package/components/menu/demo/custom-view.js +0 -63
  116. package/components/menu/demo/menu.html +0 -211
  117. package/components/menu/demo/radio-menu.html +0 -52
  118. package/components/meter/demo/meter.html +0 -115
  119. package/components/more-less/demo/more-less-test.js +0 -67
  120. package/components/more-less/demo/more-less.html +0 -71
  121. package/components/object-property-list/demo/object-property-list.html +0 -99
  122. package/components/offscreen/demo/offscreen-demo.js +0 -16
  123. package/components/offscreen/demo/offscreen.html +0 -44
  124. package/components/overflow-group/demo/demo-overflow-group.js +0 -29
  125. package/components/overflow-group/demo/overflow-group.html +0 -110
  126. package/components/paging/demo/pager-load-more.html +0 -120
  127. package/components/popover/demo/popover.html +0 -309
  128. package/components/progress/demo/progress.html +0 -104
  129. package/components/scroll-wrapper/demo/scroll-wrapper-test.js +0 -108
  130. package/components/scroll-wrapper/demo/scroll-wrapper.html +0 -52
  131. package/components/selection/demo/demo-selection.js +0 -35
  132. package/components/selection/demo/selection.html +0 -198
  133. package/components/skeleton/demo/skeleton-group-nested-test.js +0 -71
  134. package/components/skeleton/demo/skeleton-group-test-wrapper.js +0 -18
  135. package/components/skeleton/demo/skeleton-group-test.js +0 -91
  136. package/components/skeleton/demo/skeleton-mixin.html +0 -78
  137. package/components/skeleton/demo/skeleton-test-box.js +0 -34
  138. package/components/skeleton/demo/skeleton-test-container.js +0 -45
  139. package/components/skeleton/demo/skeleton-test-heading.js +0 -44
  140. package/components/skeleton/demo/skeleton-test-link.js +0 -47
  141. package/components/skeleton/demo/skeleton-test-paragraph.js +0 -54
  142. package/components/skeleton/demo/skeleton-test-stack.js +0 -38
  143. package/components/skeleton/demo/skeleton-test-width.js +0 -20
  144. package/components/sorting/demo/sort.html +0 -37
  145. package/components/status-indicator/demo/status-indicator.html +0 -99
  146. package/components/switch/demo/switch.html +0 -95
  147. package/components/table/demo/table-test.js +0 -271
  148. package/components/table/demo/table.html +0 -107
  149. package/components/tabs/demo/tab-custom.js +0 -39
  150. package/components/tabs/demo/tabs-array.js +0 -43
  151. package/components/tabs/demo/tabs.html +0 -558
  152. package/components/tag-list/demo/tag-list.html +0 -117
  153. package/components/tooltip/demo/tooltip.html +0 -275
  154. package/components/typography/demo/typography.html +0 -93
  155. package/components/view-switcher/demo/demo-table-view.js +0 -41
  156. package/components/view-switcher/demo/view-switcher.html +0 -71
  157. package/directives/animate/demo/animate-test.js +0 -98
  158. package/directives/animate/demo/index.html +0 -23
  159. package/helpers/demo/announce-test.js +0 -37
  160. package/helpers/demo/announce.html +0 -19
  161. package/helpers/demo/dismissible-test.js +0 -66
  162. package/helpers/demo/dismissible.html +0 -38
  163. package/helpers/demo/gestures.html +0 -58
  164. package/helpers/demo/prism.html +0 -694
  165. package/helpers/demo/template-tags.html +0 -118
  166. package/mixins/arrow-keys/demo/arrow-keys-mixin.html +0 -29
  167. package/mixins/arrow-keys/demo/arrow-keys-test.js +0 -38
  168. package/mixins/async-container/demo/async-container.html +0 -109
  169. package/mixins/async-container/demo/async-container.js +0 -27
  170. package/mixins/async-container/demo/async-item.js +0 -80
  171. package/mixins/labelled/demo/labelled-mixin.html +0 -90
  172. package/mixins/localize/demo/localize-mixin-greeting.js +0 -39
  173. package/mixins/localize/demo/localize-mixin-mission.js +0 -25
  174. package/mixins/localize/demo/localize-mixin.html +0 -28
  175. package/templates/primary-secondary/demo/form.html +0 -55
  176. package/templates/primary-secondary/demo/index.html +0 -27
  177. package/templates/primary-secondary/demo/integration.html +0 -457
  178. package/templates/primary-secondary/demo/overflow-hidden.html +0 -22
  179. package/templates/primary-secondary/demo/width-type-normal.html +0 -26
@@ -1,23 +0,0 @@
1
- import '../../colors/colors.js';
2
- import { css, html, LitElement } from 'lit';
3
-
4
- class IconColorOverride extends LitElement {
5
-
6
- static get styles() {
7
- return css`
8
- :host {
9
- display: inline-block;
10
- }
11
- ::slotted(d2l-icon), ::slotted(d2l-icon-custom) {
12
- color: var(--d2l-color-celestine-minus-1);
13
- }
14
- `;
15
- }
16
-
17
- render() {
18
- return html`<slot></slot>`;
19
- }
20
-
21
- }
22
-
23
- customElements.define('d2l-icon-demo-color-override', IconColorOverride);
@@ -1,112 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
- <meta charset="UTF-8">
6
- <link rel="stylesheet" href="../../demo/styles.css" type="text/css">
7
- <script type="module">
8
- import '../../demo/demo-page.js';
9
- import '../icon-custom.js';
10
- import './icon-color-override.js';
11
- import './icon-size-override.js';
12
- </script>
13
- </head>
14
- <body unresolved>
15
-
16
- <d2l-demo-page page-title="d2l-icon-custom">
17
-
18
- <h3>Tiers</h3>
19
- <d2l-demo-snippet>
20
- <d2l-icon-custom size="tier1">
21
- <svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" mirror-in-rtl="true">
22
- <path fill="#494c4e" d="M18 12v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-5a1 1 0 0 1 2 0v4h14v-4a1 1 0 0 1 2 0z"/>
23
- <path fill="#494c4e" d="M13.85 3.15l-2.99-3A.507.507 0 0 0 10.5 0H5.4A1.417 1.417 0 0 0 4 1.43v11.14A1.417 1.417 0 0 0 5.4 14h7.2a1.417 1.417 0 0 0 1.4-1.43V3.5a.47.47 0 0 0-.15-.35zM7 2h1a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm4 10H7a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zm0-4H7a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2z"/>
24
- </svg>
25
- </d2l-icon-custom>
26
- <d2l-icon-custom size="tier2">
27
- <svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" mirror-in-rtl="true">
28
- <path fill="#494c4e" d="M19.71 4.29l-4-4C15.52.1 15.26 0 15 0H6C4.9 0 4 .9 4 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V5c0-.26-.1-.52-.29-.71zM15 2.42L17.58 5H15.5c-.28 0-.5-.22-.5-.5V2.42zm3 15.08c0 .28-.22.5-.5.5h-11c-.28 0-.5-.22-.5-.5v-15c0-.28.22-.5.5-.5h6c.28 0 .5.22.5.5V5c0 1.1.9 2 2 2h2.5c.28 0 .5.22.5.5v10z"/>
29
- <path fill="#494c4e" d="M24 16v4.99c0 1.65-1.35 3.01-3 3.01H3c-1.65 0-2.99-1.35-3-3v-5c0-.02 0-.04.01-.06.02-.52.46-.94.99-.94s.97.42.99.94c.01.02.01.04.01.06v4c.01 1.1.91 1.99 2 1.99h16c1.09 0 1.99-.89 2-1.99v-4c0-.02 0-.04.01-.06.02-.52.46-.94.99-.94s.97.42.99.94c.01.02.01.04.01.06z"/>
30
- <path fill="#494c4e" d="M15 16H9c-.553 0-1-.447-1-1s.447-1 1-1h6c.553 0 1 .447 1 1s-.447 1-1 1zM15 12H9c-.553 0-1-.447-1-1s.447-1 1-1h6c.553 0 1 .447 1 1s-.447 1-1 1zM11 8H9c-.553 0-1-.447-1-1s.447-1 1-1h2c.553 0 1 .447 1 1s-.447 1-1 1z"/>
31
- </svg>
32
- </d2l-icon-custom>
33
- <d2l-icon-custom size="tier3">
34
- <svg width="30" height="30" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" mirror-in-rtl="true">
35
- <path fill="#494c4e" d="M21.5,18H8.5a.5.5,0,0,1,0-1h13a.5.5,0,0,1,0,1Z"/>
36
- <path fill="#494c4e" d="M21.5,15H8.5a.5.5,0,0,1,0-1h13a.5.5,0,0,1,0,1Z"/>
37
- <path fill="#494c4e" d="M15.5,12h-7a.5.5,0,0,1,0-1h7a.5.5,0,0,1,0,1Z"/>
38
- <path fill="#494c4e" d="M13.5,9h-5a.5.5,0,0,1,0-1h5a.5.5,0,0,1,0,1Z"/>
39
- <path fill="#494c4e" d="M13.5,6h-5a.5.5,0,0,1,0-1h5a.5.5,0,0,1,0,1Z"/>
40
- <path fill="#494c4e" d="M25.87,8a.833.833,0,0,0-.16-.21L18.21.29A.833.833,0,0,0,18,.13.983.983,0,0,0,17.5,0H8A4.012,4.012,0,0,0,4,4V22a4.012,4.012,0,0,0,4,4H22a4.012,4.012,0,0,0,4-4V8.5A.982.982,0,0,0,25.87,8ZM18,2.92,23.08,8H20a2.006,2.006,0,0,1-2-2ZM24,22a2.006,2.006,0,0,1-2,2H8a2.006,2.006,0,0,1-2-2V4A2.006,2.006,0,0,1,8,2h8V6a4.012,4.012,0,0,0,4,4h4Z"/>
41
- <path fill="#494c4e" d="M21.5,21H8.5a.5.5,0,0,1,0-1h13a.5.5,0,0,1,0,1Z"/>
42
- <path fill="#494c4e" d="M30,20v4a6.018,6.018,0,0,1-6,6H6a6.018,6.018,0,0,1-6-6V20a1,1,0,0,1,2,0v4a4,4,0,0,0,4,4H24a4,4,0,0,0,4-4V20a1,1,0,0,1,2,0Z"/>
43
- </svg>
44
- </d2l-icon-custom>
45
- </d2l-demo-snippet>
46
-
47
- <h3>Color Override</h3>
48
- <d2l-demo-snippet>
49
- <d2l-icon-demo-color-override>
50
- <d2l-icon-custom size="tier1">
51
- <svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" mirror-in-rtl="true">
52
- <path fill="#494c4e" d="M18 12v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-5a1 1 0 0 1 2 0v4h14v-4a1 1 0 0 1 2 0z"/>
53
- <path fill="#494c4e" d="M13.85 3.15l-2.99-3A.507.507 0 0 0 10.5 0H5.4A1.417 1.417 0 0 0 4 1.43v11.14A1.417 1.417 0 0 0 5.4 14h7.2a1.417 1.417 0 0 0 1.4-1.43V3.5a.47.47 0 0 0-.15-.35zM7 2h1a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm4 10H7a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zm0-4H7a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2z"/>
54
- </svg>
55
- </d2l-icon-custom>
56
- <d2l-icon-custom size="tier2">
57
- <svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" mirror-in-rtl="true">
58
- <path fill="#494c4e" d="M19.71 4.29l-4-4C15.52.1 15.26 0 15 0H6C4.9 0 4 .9 4 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V5c0-.26-.1-.52-.29-.71zM15 2.42L17.58 5H15.5c-.28 0-.5-.22-.5-.5V2.42zm3 15.08c0 .28-.22.5-.5.5h-11c-.28 0-.5-.22-.5-.5v-15c0-.28.22-.5.5-.5h6c.28 0 .5.22.5.5V5c0 1.1.9 2 2 2h2.5c.28 0 .5.22.5.5v10z"/>
59
- <path fill="#494c4e" d="M24 16v4.99c0 1.65-1.35 3.01-3 3.01H3c-1.65 0-2.99-1.35-3-3v-5c0-.02 0-.04.01-.06.02-.52.46-.94.99-.94s.97.42.99.94c.01.02.01.04.01.06v4c.01 1.1.91 1.99 2 1.99h16c1.09 0 1.99-.89 2-1.99v-4c0-.02 0-.04.01-.06.02-.52.46-.94.99-.94s.97.42.99.94c.01.02.01.04.01.06z"/>
60
- <path fill="#494c4e" d="M15 16H9c-.553 0-1-.447-1-1s.447-1 1-1h6c.553 0 1 .447 1 1s-.447 1-1 1zM15 12H9c-.553 0-1-.447-1-1s.447-1 1-1h6c.553 0 1 .447 1 1s-.447 1-1 1zM11 8H9c-.553 0-1-.447-1-1s.447-1 1-1h2c.553 0 1 .447 1 1s-.447 1-1 1z"/>
61
- </svg>
62
- </d2l-icon-custom>
63
- <d2l-icon-custom size="tier3">
64
- <svg width="30" height="30" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" mirror-in-rtl="true">
65
- <path fill="#494c4e" d="M21.5,18H8.5a.5.5,0,0,1,0-1h13a.5.5,0,0,1,0,1Z"/>
66
- <path fill="#494c4e" d="M21.5,15H8.5a.5.5,0,0,1,0-1h13a.5.5,0,0,1,0,1Z"/>
67
- <path fill="#494c4e" d="M15.5,12h-7a.5.5,0,0,1,0-1h7a.5.5,0,0,1,0,1Z"/>
68
- <path fill="#494c4e" d="M13.5,9h-5a.5.5,0,0,1,0-1h5a.5.5,0,0,1,0,1Z"/>
69
- <path fill="#494c4e" d="M13.5,6h-5a.5.5,0,0,1,0-1h5a.5.5,0,0,1,0,1Z"/>
70
- <path fill="#494c4e" d="M25.87,8a.833.833,0,0,0-.16-.21L18.21.29A.833.833,0,0,0,18,.13.983.983,0,0,0,17.5,0H8A4.012,4.012,0,0,0,4,4V22a4.012,4.012,0,0,0,4,4H22a4.012,4.012,0,0,0,4-4V8.5A.982.982,0,0,0,25.87,8ZM18,2.92,23.08,8H20a2.006,2.006,0,0,1-2-2ZM24,22a2.006,2.006,0,0,1-2,2H8a2.006,2.006,0,0,1-2-2V4A2.006,2.006,0,0,1,8,2h8V6a4.012,4.012,0,0,0,4,4h4Z"/>
71
- <path fill="#494c4e" d="M21.5,21H8.5a.5.5,0,0,1,0-1h13a.5.5,0,0,1,0,1Z"/>
72
- <path fill="#494c4e" d="M30,20v4a6.018,6.018,0,0,1-6,6H6a6.018,6.018,0,0,1-6-6V20a1,1,0,0,1,2,0v4a4,4,0,0,0,4,4H24a4,4,0,0,0,4-4V20a1,1,0,0,1,2,0Z"/>
73
- </svg>
74
- </d2l-icon-custom>
75
- </d2l-icon-demo-color-override>
76
- </d2l-demo-snippet>
77
-
78
- <h3>Size Override</h3>
79
- <d2l-demo-snippet>
80
- <d2l-icon-demo-size-override>
81
- <d2l-icon-custom size="tier1">
82
- <svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" mirror-in-rtl="true">
83
- <path fill="#494c4e" d="M18 12v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-5a1 1 0 0 1 2 0v4h14v-4a1 1 0 0 1 2 0z"/>
84
- <path fill="#494c4e" d="M13.85 3.15l-2.99-3A.507.507 0 0 0 10.5 0H5.4A1.417 1.417 0 0 0 4 1.43v11.14A1.417 1.417 0 0 0 5.4 14h7.2a1.417 1.417 0 0 0 1.4-1.43V3.5a.47.47 0 0 0-.15-.35zM7 2h1a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm4 10H7a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zm0-4H7a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2z"/>
85
- </svg>
86
- </d2l-icon-custom>
87
- <d2l-icon-custom size="tier2">
88
- <svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" mirror-in-rtl="true">
89
- <path fill="#494c4e" d="M19.71 4.29l-4-4C15.52.1 15.26 0 15 0H6C4.9 0 4 .9 4 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V5c0-.26-.1-.52-.29-.71zM15 2.42L17.58 5H15.5c-.28 0-.5-.22-.5-.5V2.42zm3 15.08c0 .28-.22.5-.5.5h-11c-.28 0-.5-.22-.5-.5v-15c0-.28.22-.5.5-.5h6c.28 0 .5.22.5.5V5c0 1.1.9 2 2 2h2.5c.28 0 .5.22.5.5v10z"/>
90
- <path fill="#494c4e" d="M24 16v4.99c0 1.65-1.35 3.01-3 3.01H3c-1.65 0-2.99-1.35-3-3v-5c0-.02 0-.04.01-.06.02-.52.46-.94.99-.94s.97.42.99.94c.01.02.01.04.01.06v4c.01 1.1.91 1.99 2 1.99h16c1.09 0 1.99-.89 2-1.99v-4c0-.02 0-.04.01-.06.02-.52.46-.94.99-.94s.97.42.99.94c.01.02.01.04.01.06z"/>
91
- <path fill="#494c4e" d="M15 16H9c-.553 0-1-.447-1-1s.447-1 1-1h6c.553 0 1 .447 1 1s-.447 1-1 1zM15 12H9c-.553 0-1-.447-1-1s.447-1 1-1h6c.553 0 1 .447 1 1s-.447 1-1 1zM11 8H9c-.553 0-1-.447-1-1s.447-1 1-1h2c.553 0 1 .447 1 1s-.447 1-1 1z"/>
92
- </svg>
93
- </d2l-icon-custom>
94
- <d2l-icon-custom size="tier3">
95
- <svg width="30" height="30" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" mirror-in-rtl="true">
96
- <path fill="#494c4e" d="M21.5,18H8.5a.5.5,0,0,1,0-1h13a.5.5,0,0,1,0,1Z"/>
97
- <path fill="#494c4e" d="M21.5,15H8.5a.5.5,0,0,1,0-1h13a.5.5,0,0,1,0,1Z"/>
98
- <path fill="#494c4e" d="M15.5,12h-7a.5.5,0,0,1,0-1h7a.5.5,0,0,1,0,1Z"/>
99
- <path fill="#494c4e" d="M13.5,9h-5a.5.5,0,0,1,0-1h5a.5.5,0,0,1,0,1Z"/>
100
- <path fill="#494c4e" d="M13.5,6h-5a.5.5,0,0,1,0-1h5a.5.5,0,0,1,0,1Z"/>
101
- <path fill="#494c4e" d="M25.87,8a.833.833,0,0,0-.16-.21L18.21.29A.833.833,0,0,0,18,.13.983.983,0,0,0,17.5,0H8A4.012,4.012,0,0,0,4,4V22a4.012,4.012,0,0,0,4,4H22a4.012,4.012,0,0,0,4-4V8.5A.982.982,0,0,0,25.87,8ZM18,2.92,23.08,8H20a2.006,2.006,0,0,1-2-2ZM24,22a2.006,2.006,0,0,1-2,2H8a2.006,2.006,0,0,1-2-2V4A2.006,2.006,0,0,1,8,2h8V6a4.012,4.012,0,0,0,4,4h4Z"/>
102
- <path fill="#494c4e" d="M21.5,21H8.5a.5.5,0,0,1,0-1h13a.5.5,0,0,1,0,1Z"/>
103
- <path fill="#494c4e" d="M30,20v4a6.018,6.018,0,0,1-6,6H6a6.018,6.018,0,0,1-6-6V20a1,1,0,0,1,2,0v4a4,4,0,0,0,4,4H24a4,4,0,0,0,4-4V20a1,1,0,0,1,2,0Z"/>
104
- </svg>
105
- </d2l-icon-custom>
106
- </d2l-icon-demo-size-override>
107
- </d2l-demo-snippet>
108
-
109
- </d2l-demo-page>
110
-
111
- </body>
112
- </html>
@@ -1,24 +0,0 @@
1
- import { css, html, LitElement } from 'lit';
2
-
3
- class IconSizeOverride extends LitElement {
4
-
5
- static get styles() {
6
- return css`
7
- :host {
8
- display: inline-block;
9
- }
10
- .d2l-icon-size-override-container > ::slotted(d2l-icon),
11
- .d2l-icon-size-override-container > ::slotted(d2l-icon-custom) {
12
- height: 100px;
13
- width: 100px;
14
- }
15
- `;
16
- }
17
-
18
- render() {
19
- return html`<div class="d2l-icon-size-override-container"><slot></slot></div>`;
20
- }
21
-
22
- }
23
-
24
- customElements.define('d2l-icon-demo-size-override', IconSizeOverride);
@@ -1,52 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
- <meta charset="UTF-8">
6
- <link rel="stylesheet" href="../../demo/styles.css" type="text/css">
7
- <script type="module">
8
- import '../../demo/demo-page.js';
9
- import '../icon.js';
10
- import './icon-color-override.js';
11
- import './icon-size-override.js';
12
- </script>
13
- </head>
14
- <body unresolved>
15
-
16
- <d2l-demo-page page-title="d2l-icon">
17
-
18
- <h3>Tiers</h3>
19
- <d2l-demo-snippet>
20
- <template>
21
- <d2l-icon icon="tier1:assignments"></d2l-icon>
22
- <d2l-icon icon="tier2:assignments"></d2l-icon>
23
- <d2l-icon icon="tier3:assignments"></d2l-icon>
24
- </template>
25
- </d2l-demo-snippet>
26
-
27
- <h3>Color Override</h3>
28
- <d2l-demo-snippet>
29
- <template>
30
- <d2l-icon-demo-color-override>
31
- <d2l-icon icon="tier1:assignments"></d2l-icon>
32
- <d2l-icon icon="tier2:assignments"></d2l-icon>
33
- <d2l-icon icon="tier3:assignments"></d2l-icon>
34
- </d2l-icon-demo-color-override>
35
- </template>
36
- </d2l-demo-snippet>
37
-
38
- <h3>Size Override</h3>
39
- <d2l-demo-snippet>
40
- <template>
41
- <d2l-icon-demo-size-override>
42
- <d2l-icon icon="tier1:assignments"></d2l-icon>
43
- <d2l-icon icon="tier2:assignments"></d2l-icon>
44
- <d2l-icon icon="tier3:assignments"></d2l-icon>
45
- </d2l-icon-demo-size-override>
46
- </template>
47
- </d2l-demo-snippet>
48
-
49
- </d2l-demo-page>
50
-
51
- </body>
52
- </html>
@@ -1,118 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
- <meta charset="UTF-8">
6
- <link rel="stylesheet" href="../../demo/styles.css" type="text/css">
7
- <script type="module">
8
- import '../../demo/demo-page.js';
9
- import '../input-checkbox.js';
10
- import '../input-checkbox-group.js';
11
- </script>
12
- </head>
13
- <body unresolved>
14
- <d2l-demo-page page-title="d2l-input-checkbox">
15
-
16
- <h2>Simple checkbox with label</h2>
17
- <d2l-demo-snippet>
18
- <template>
19
- <d2l-input-checkbox-group label="Labelled checkboxes">
20
- <d2l-input-checkbox label="Checked item" checked></d2l-input-checkbox>
21
- <d2l-input-checkbox label="Unchecked item"></d2l-input-checkbox>
22
- </d2l-input-checkbox-group>
23
- </template>
24
- </d2l-demo-snippet>
25
-
26
- <h2>Checkbox with multi-line label</h2>
27
- <d2l-demo-snippet>
28
- <template>
29
- <d2l-input-checkbox-group label="Multi-line checkboxes">
30
- <d2l-input-checkbox style="overflow: hidden; width: 200px;" label="Label for checkbox that wraps nicely onto multiple lines and stays aligned"></d2l-input-checkbox>
31
- <d2l-input-checkbox style="overflow: hidden; width: 200px;" label="https://en.wikipedia.org/wiki/Dark_matter"></d2l-input-checkbox>
32
- </d2l-input-checkbox-group>
33
- </template>
34
- </d2l-demo-snippet>
35
-
36
- <h2>Checkbox with hidden label</h2>
37
- <d2l-demo-snippet>
38
- <template>
39
- <d2l-input-checkbox label="Label for checkbox" label-hidden></d2l-input-checkbox>
40
- </template>
41
- </d2l-demo-snippet>
42
-
43
- <h2>Disabled checkbox</h2>
44
- <d2l-demo-snippet>
45
- <template>
46
- <d2l-input-checkbox label="Disabled checkbox" checked disabled></d2l-input-checkbox>
47
- </template>
48
- </d2l-demo-snippet>
49
-
50
- <h2>Disabled checkbox with tooltip</h2>
51
- <d2l-demo-snippet>
52
- <template>
53
- <d2l-input-checkbox label="Disabled checkbox with tooltip" checked disabled disabled-tooltip="Explanation for why checkbox is disabled"></d2l-input-checkbox>
54
- </template>
55
- </d2l-demo-snippet>
56
-
57
- <h2>Checkbox with label and supporting content</h2>
58
- <d2l-demo-snippet>
59
- <template>
60
- <d2l-input-checkbox label="Label for checkbox">
61
- <div slot="supporting">
62
- Additional content can go here and will<br>
63
- also line up nicely with the checkbox.
64
- </div>
65
- </d2l-input-checkbox>
66
- </template>
67
- </d2l-demo-snippet>
68
-
69
- <h2>Checkbox with label and supporting content with progressive disclosure</h2>
70
- <d2l-demo-snippet>
71
- <template>
72
- <d2l-input-checkbox label="Toggle content with checkbox" supporting-hidden-when-unchecked>
73
- <div slot="supporting">
74
- Additional content can go here and will<br>
75
- also line up nicely with the checkbox.
76
- </div>
77
- </d2l-input-checkbox>
78
- </template>
79
- </d2l-demo-snippet>
80
-
81
- <h2>Indeterminate checkbox</h2>
82
- <d2l-demo-snippet>
83
- <template>
84
- <d2l-input-checkbox label="Indeterminate checkbox" indeterminate></d2l-input-checkbox>
85
- </template>
86
- </d2l-demo-snippet>
87
-
88
- <h2>Inline help checkbox</h2>
89
- <d2l-demo-snippet>
90
- <template>
91
- <d2l-input-checkbox label="Inline help checkbox">
92
- <div slot="inline-help">
93
- Help text <b>right here</b>!
94
- </div>
95
- </d2l-input-checkbox>
96
- </template>
97
- </d2l-demo-snippet>
98
-
99
- <h2>Inline help (multiline) checkbox</h2>
100
- <d2l-demo-snippet>
101
- <template>
102
- <d2l-input-checkbox label="Inline help checkbox">
103
- <div slot="inline-help">
104
- Lorem ipsum dolor sit amet, consectetur adipiscing elit,
105
- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
106
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
107
- nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
108
- reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
109
- pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa
110
- qui officia deserunt mollit anim id est laborum.
111
- </div>
112
- </d2l-input-checkbox>
113
- </template>
114
- </d2l-demo-snippet>
115
-
116
- </d2l-demo-page>
117
- </body>
118
- </html>
@@ -1,67 +0,0 @@
1
- import '../../button/button.js';
2
- import '../input-text.js';
3
- import { css, html, LitElement } from 'lit';
4
- import { ifDefined } from 'lit/directives/if-defined.js';
5
-
6
- class InputColorPalette extends LitElement {
7
-
8
- static get properties() {
9
- return {
10
- value: { type: String }
11
- };
12
- }
13
-
14
- static get styles() {
15
- return [ css`
16
- :host {
17
- display: block;
18
- padding: 12px;
19
- }
20
- :host([hidden]) {
21
- display: none;
22
- }
23
- p {
24
- margin-top: 0;
25
- }
26
- span {
27
- margin: 0 0.2rem 0 0.55rem;
28
- }
29
- div {
30
- align-items: flex-end;
31
- display: flex;
32
- gap: 6px;
33
- }
34
- `];
35
- }
36
-
37
- render() {
38
- return html`
39
- <p>On a MVC page, its color palette will render in here.</p>
40
- <div>
41
- <d2l-input-text input-width="120px" label="Value (HEX)" maxlength="6" value="${ifDefined(this.value)}"><span slot="left" aria-hidden="true">#</span></d2l-input-text>
42
- <d2l-button primary @click="${this._handleOK}">OK</d2l-button>
43
- <d2l-button @click="${this._handleCancel}">Cancel</d2l-button>
44
- </div>
45
- `;
46
- }
47
-
48
- _handleCancel() {
49
- this.dispatchEvent(new CustomEvent(
50
- 'd2l-input-color-dropdown-close', { bubbles: true, composed: false }
51
- ));
52
- }
53
-
54
- _handleOK() {
55
- let value = this.shadowRoot.querySelector('d2l-input-text').value.trim();
56
- if (value.length === 0) {
57
- value = undefined;
58
- } else {
59
- value = `#${value}`;
60
- }
61
- this.dispatchEvent(new CustomEvent(
62
- 'd2l-input-color-dropdown-close', { bubbles: true, composed: false, detail: { newValue: value } }
63
- ));
64
- }
65
-
66
- }
67
- customElements.define('d2l-test-input-color-palette', InputColorPalette);
@@ -1,110 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
- <meta charset="UTF-8">
6
- <link rel="stylesheet" href="../../demo/styles.css" type="text/css">
7
- <script type="module">
8
- import '../../demo/demo-page.js';
9
- import '../input-color.js';
10
- import './input-color-palette.js';
11
- </script>
12
- <style>
13
- d2l-input-color {
14
- margin-inline-end: 30px;
15
- vertical-align: top;
16
- }
17
- </style>
18
- </head>
19
- <body unresolved>
20
- <d2l-demo-page page-title="d2l-input-color">
21
-
22
- <h2>Normal (dropdown)</h2>
23
- <d2l-demo-snippet>
24
- <template>
25
- <d2l-input-color type="foreground" launch-type="dropdown" disallow-none value="#D97B32"><d2l-test-input-color-palette value="D97B32"></d2l-test-input-color-palette></d2l-input-color>
26
- <d2l-input-color type="background" launch-type="dropdown"><d2l-test-input-color-palette></d2l-test-input-color-palette></d2l-input-color>
27
- <d2l-input-color label="Custom Color" type="custom" launch-type="dropdown" value="#8ad934"><d2l-test-input-color-palette value="8ad934"></d2l-test-input-color-palette></d2l-input-color>
28
- </template>
29
- </d2l-demo-snippet>
30
-
31
- <h2>Readonly</h2>
32
- <d2l-demo-snippet>
33
- <template>
34
- <d2l-input-color type="foreground" disallow-none value="#D97B32" readonly></d2l-input-color>
35
- <d2l-input-color type="background" readonly></d2l-input-color>
36
- <d2l-input-color label="Custom Color" type="custom" value="#8ad934" readonly></d2l-input-color>
37
- </template>
38
- </d2l-demo-snippet>
39
-
40
- <h2>Disabled</h2>
41
- <d2l-demo-snippet>
42
- <template>
43
- <d2l-input-color type="foreground" disallow-none value="#D97B32" disabled></d2l-input-color>
44
- <d2l-input-color type="background" disabled></d2l-input-color>
45
- <d2l-input-color label="Custom Color" type="custom" value="#8ad934" disabled></d2l-input-color>
46
- </template>
47
- </d2l-demo-snippet>
48
-
49
- <h2>Inline Help</h2>
50
- <d2l-demo-snippet>
51
- <template>
52
- <d2l-input-color type="foreground" disallow-none value="#D97B32" disabled>
53
- <div slot="inline-help">
54
- Inline help 1
55
- </div>
56
- </d2l-input-color>
57
- <d2l-input-color type="background" disabled>
58
- <div slot="inline-help">
59
- <b>Inline</b> help 2
60
- </div>
61
- </d2l-input-color>
62
- <d2l-input-color label="Custom Color" type="custom" value="#8ad934" disabled>
63
- <div slot="inline-help">
64
- Inline help 3
65
- </div>
66
- </d2l-input-color>
67
- </template>
68
- </d2l-demo-snippet>
69
-
70
- <h2>Inline Help (multiline)</h2>
71
- <d2l-demo-snippet>
72
- <template>
73
- <d2l-input-color type="foreground" disallow-none value="#D97B32" disabled>
74
- <div slot="inline-help">
75
- Lorem ipsum dolor sit amet, consectetur adipiscing elit,
76
- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
77
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
78
- nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
79
- reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
80
- pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa
81
- qui officia deserunt mollit anim id est laborum.
82
- </div>
83
- </d2l-input-color>
84
- <d2l-input-color type="background" disabled>
85
- <div slot="inline-help">
86
- Lorem ipsum dolor sit amet, consectetur adipiscing elit,
87
- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
88
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
89
- nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
90
- reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
91
- pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa
92
- qui officia deserunt mollit anim id est laborum.
93
- </div>
94
- </d2l-input-color>
95
- <d2l-input-color label="Custom Color" type="custom" value="#8ad934" disabled>
96
- <div slot="inline-help">
97
- Lorem ipsum dolor sit amet, consectetur adipiscing elit,
98
- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
99
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
100
- nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
101
- reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
102
- pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa
103
- qui officia deserunt mollit anim id est laborum.
104
- </div>
105
- </d2l-input-color>
106
- </template>
107
- </d2l-demo-snippet>
108
- </d2l-demo-page>
109
- </body>
110
- </html>
@@ -1,114 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en" data-timezone='{"name":"Canada - Toronto", "identifier":"America/Toronto"}'>
3
- <head>
4
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
- <meta charset="UTF-8">
6
- <link rel="stylesheet" href="../../demo/styles.css" type="text/css">
7
- <script type="module">
8
- import '../../demo/demo-page.js';
9
- import '../input-date-range.js';
10
- </script>
11
- </head>
12
- <body unresolved>
13
- <d2l-demo-page page-title="d2l-input-date-range">
14
-
15
- <h2>Simple</h2>
16
- <d2l-demo-snippet>
17
- <template>
18
- <d2l-input-date-range label="Assignment Dates"></d2l-input-date-range>
19
- </template>
20
- </d2l-demo-snippet>
21
-
22
- <h2>Auto Shift Dates</h2>
23
- <d2l-demo-snippet>
24
- <template>
25
- <d2l-input-date-range label="Assignment Dates" auto-shift-dates></d2l-input-date-range>
26
- </template>
27
- </d2l-demo-snippet>
28
-
29
- <h2>Hidden Label</h2>
30
- <d2l-demo-snippet>
31
- <template>
32
- <d2l-input-date-range label="Assignment Dates" label-hidden></d2l-input-date-range>
33
- </template>
34
- </d2l-demo-snippet>
35
-
36
- <h2>Inclusive</h2>
37
- <d2l-demo-snippet>
38
- <template>
39
- <d2l-input-date-range label="Assignment Dates" inclusive-date-range></d2l-input-date-range>
40
- </template>
41
- </d2l-demo-snippet>
42
-
43
- <h2>Labels Specified</h2>
44
- <d2l-demo-snippet>
45
- <template>
46
- <d2l-input-date-range label="Assignment Dates" start-label="A long start date label explanation" end-label="Finish"></d2l-input-date-range>
47
- </template>
48
- </d2l-demo-snippet>
49
-
50
- <h2>Min and Max Value</h2>
51
- <d2l-demo-snippet>
52
- <template>
53
- <d2l-input-date-range label="Assignment Dates" min-value="2019-01-01" max-value="2019-06-30"></d2l-input-date-range>
54
- </template>
55
- </d2l-demo-snippet>
56
-
57
- <h2>Required</h2>
58
- <d2l-demo-snippet>
59
- <template>
60
- <d2l-input-date-range label="Assignment Dates" required></d2l-input-date-range>
61
- </template>
62
- </d2l-demo-snippet>
63
-
64
- <h2>Start/End Labels Hidden</h2>
65
- <d2l-demo-snippet>
66
- <template>
67
- <d2l-input-date-range child-labels-hidden label="Date Range"></d2l-input-date-range>
68
- </template>
69
- </d2l-demo-snippet>
70
-
71
- <h2>Values Specified</h2>
72
- <d2l-demo-snippet>
73
- <template>
74
- <d2l-input-date-range label="Assignment Dates" start-value="2019-02-01" end-value="2020-10-31"></d2l-input-date-range>
75
- </template>
76
- </d2l-demo-snippet>
77
-
78
- <h2>Disabled</h2>
79
- <d2l-demo-snippet>
80
- <template>
81
- <d2l-input-date-range label="Assignment Dates" disabled></d2l-input-date-range>
82
- </template>
83
- </d2l-demo-snippet>
84
-
85
- <h2>Inline Help</h2>
86
- <d2l-demo-snippet>
87
- <template>
88
- <d2l-input-date-range label="Assignment Dates">
89
- <div slot="inline-help">
90
- Help text <b>right here</b>!
91
- </div>
92
- </d2l-input-date-range>
93
- </template>
94
- </d2l-demo-snippet>
95
-
96
- <h2>Inline Help (multiline)</h2>
97
- <d2l-demo-snippet>
98
- <template>
99
- <d2l-input-date-range label="Assignment Dates">
100
- <div slot="inline-help">
101
- Lorem ipsum dolor sit amet, consectetur adipiscing elit,
102
- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
103
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
104
- nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
105
- reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
106
- pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa
107
- qui officia deserunt mollit anim id est laborum.
108
- </div>
109
- </d2l-input-date-range>
110
- </template>
111
- </d2l-demo-snippet>
112
- </d2l-demo-page>
113
- </body>
114
- </html>