@brightspace-ui/core 3.227.4 → 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.
- package/components/button/button.js +8 -8
- package/components/demo/test/demo-page-settings.test.js +25 -0
- package/components/demo/test/demo-page.test.js +17 -0
- package/package.json +1 -1
- package/components/alert/demo/alert-toast.html +0 -106
- package/components/alert/demo/alert.html +0 -82
- package/components/backdrop/demo/backdrop-loading.html +0 -166
- package/components/backdrop/demo/backdrop.html +0 -57
- package/components/breadcrumbs/demo/breadcrumbs.html +0 -53
- package/components/button/demo/button-add.html +0 -55
- package/components/button/demo/button-copy.html +0 -122
- package/components/button/demo/button-icon.html +0 -174
- package/components/button/demo/button-move.html +0 -38
- package/components/button/demo/button-split.html +0 -76
- package/components/button/demo/button-subtle.html +0 -132
- package/components/button/demo/button-toggle.html +0 -80
- package/components/button/demo/button.html +0 -67
- package/components/button/demo/floating-buttons-in-frame.html +0 -44
- package/components/button/demo/floating-buttons-in-tabs.html +0 -244
- package/components/button/demo/floating-buttons-page.html +0 -100
- package/components/button/demo/floating-buttons.html +0 -101
- package/components/calendar/demo/calendar.html +0 -76
- package/components/card/demo/card.html +0 -304
- package/components/collapsible-panel/demo/collapsible-panel.html +0 -218
- package/components/colors/demo/color-swatch.js +0 -240
- package/components/colors/demo/colors.html +0 -139
- package/components/count-badge/demo/count-badge-icon.html +0 -48
- package/components/count-badge/demo/count-badge.html +0 -73
- package/components/demo/demo/demo-snippet.html +0 -71
- package/components/description-list/demo/description-list-test.js +0 -142
- package/components/description-list/demo/description-list.html +0 -48
- package/components/dialog/demo/dialog-async-content-until.js +0 -89
- package/components/dialog/demo/dialog-async-content.js +0 -72
- package/components/dialog/demo/dialog-confirm.html +0 -102
- package/components/dialog/demo/dialog-container.js +0 -40
- package/components/dialog/demo/dialog-fullscreen.html +0 -273
- package/components/dialog/demo/dialog-nested.html +0 -94
- package/components/dialog/demo/dialog.html +0 -398
- package/components/dropdown/demo/dropdown-button.html +0 -102
- package/components/dropdown/demo/dropdown-context-menu.html +0 -129
- package/components/dropdown/demo/dropdown-flicker-inner.html +0 -70
- package/components/dropdown/demo/dropdown-flicker.html +0 -142
- package/components/dropdown/demo/dropdown-menu-demo-view.js +0 -37
- package/components/dropdown/demo/dropdown-menu.html +0 -227
- package/components/dropdown/demo/dropdown-more.html +0 -160
- package/components/dropdown/demo/dropdown-positioning.html +0 -127
- package/components/dropdown/demo/dropdown-tabs.html +0 -87
- package/components/dropdown/demo/dropdown.html +0 -217
- package/components/empty-state/demo/empty-state.html +0 -94
- package/components/expand-collapse/demo/expand-collapse-content.html +0 -58
- package/components/filter/demo/filter-load-more-demo.js +0 -182
- package/components/filter/demo/filter-overflow-group.html +0 -246
- package/components/filter/demo/filter-search-demo.js +0 -135
- package/components/filter/demo/filter-tags.html +0 -115
- package/components/filter/demo/filter.html +0 -230
- package/components/focus-trap/demo/focus-trap.html +0 -75
- package/components/form/demo/form-demo.js +0 -105
- package/components/form/demo/form-dialog-demo.js +0 -94
- package/components/form/demo/form-panel-demo.js +0 -89
- package/components/form/demo/form.html +0 -37
- package/components/hierarchical-view/demo/hierarchical-view.html +0 -221
- package/components/html-block/demo/html-block-code.html +0 -55
- package/components/html-block/demo/html-block.html +0 -696
- package/components/icons/demo/icon-color-override.js +0 -23
- package/components/icons/demo/icon-custom.html +0 -112
- package/components/icons/demo/icon-size-override.js +0 -24
- package/components/icons/demo/icon.html +0 -52
- package/components/inputs/demo/input-checkbox.html +0 -118
- package/components/inputs/demo/input-color-palette.js +0 -67
- package/components/inputs/demo/input-color.html +0 -110
- package/components/inputs/demo/input-date-range.html +0 -114
- package/components/inputs/demo/input-date-time-range.html +0 -128
- package/components/inputs/demo/input-date-time.html +0 -100
- package/components/inputs/demo/input-date.html +0 -81
- package/components/inputs/demo/input-group.html +0 -56
- package/components/inputs/demo/input-number.html +0 -136
- package/components/inputs/demo/input-percent.html +0 -99
- package/components/inputs/demo/input-radio-label-test.js +0 -45
- package/components/inputs/demo/input-radio-solo-test.js +0 -47
- package/components/inputs/demo/input-radio.html +0 -119
- package/components/inputs/demo/input-search.html +0 -75
- package/components/inputs/demo/input-select-test.js +0 -60
- package/components/inputs/demo/input-select.html +0 -45
- package/components/inputs/demo/input-text.html +0 -163
- package/components/inputs/demo/input-textarea.html +0 -124
- package/components/inputs/demo/input-time-range.html +0 -121
- package/components/inputs/demo/input-time.html +0 -95
- package/components/link/demo/link.html +0 -111
- package/components/list/demo/demo-list-nav.js +0 -170
- package/components/list/demo/demo-list-nested-iterations-helper.js +0 -168
- package/components/list/demo/demo-list-nested-lazy-load.js +0 -133
- package/components/list/demo/demo-list-nested.js +0 -291
- package/components/list/demo/demo-list.js +0 -241
- package/components/list/demo/list-color.html +0 -423
- package/components/list/demo/list-demo-scenarios.js +0 -380
- package/components/list/demo/list-drag-and-drop-position.js +0 -102
- package/components/list/demo/list-drag-and-drop.html +0 -82
- package/components/list/demo/list-expand-collapse.html +0 -136
- package/components/list/demo/list-item-actions.html +0 -371
- package/components/list/demo/list-item-custom.js +0 -204
- package/components/list/demo/list-item-layouts.html +0 -331
- package/components/list/demo/list-item-scroll.html +0 -122
- package/components/list/demo/list-layout.html +0 -575
- package/components/list/demo/list-nav.html +0 -110
- package/components/list/demo/list-nested.html +0 -270
- package/components/list/demo/list-selection.html +0 -301
- package/components/list/demo/list.html +0 -319
- package/components/loading-spinner/demo/loading-spinner-override.js +0 -34
- package/components/loading-spinner/demo/loading-spinner.html +0 -63
- package/components/menu/demo/checkbox-menu.html +0 -52
- package/components/menu/demo/custom-menu-item.js +0 -37
- package/components/menu/demo/custom-view.js +0 -63
- package/components/menu/demo/menu.html +0 -211
- package/components/menu/demo/radio-menu.html +0 -52
- package/components/meter/demo/meter.html +0 -115
- package/components/more-less/demo/more-less-test.js +0 -67
- package/components/more-less/demo/more-less.html +0 -71
- package/components/object-property-list/demo/object-property-list.html +0 -99
- package/components/offscreen/demo/offscreen-demo.js +0 -16
- package/components/offscreen/demo/offscreen.html +0 -44
- package/components/overflow-group/demo/demo-overflow-group.js +0 -29
- package/components/overflow-group/demo/overflow-group.html +0 -110
- package/components/paging/demo/pager-load-more.html +0 -120
- package/components/popover/demo/popover.html +0 -309
- package/components/progress/demo/progress.html +0 -104
- package/components/scroll-wrapper/demo/scroll-wrapper-test.js +0 -108
- package/components/scroll-wrapper/demo/scroll-wrapper.html +0 -52
- package/components/selection/demo/demo-selection.js +0 -35
- package/components/selection/demo/selection.html +0 -198
- package/components/skeleton/demo/skeleton-group-nested-test.js +0 -71
- package/components/skeleton/demo/skeleton-group-test-wrapper.js +0 -18
- package/components/skeleton/demo/skeleton-group-test.js +0 -91
- package/components/skeleton/demo/skeleton-mixin.html +0 -78
- package/components/skeleton/demo/skeleton-test-box.js +0 -34
- package/components/skeleton/demo/skeleton-test-container.js +0 -45
- package/components/skeleton/demo/skeleton-test-heading.js +0 -44
- package/components/skeleton/demo/skeleton-test-link.js +0 -47
- package/components/skeleton/demo/skeleton-test-paragraph.js +0 -54
- package/components/skeleton/demo/skeleton-test-stack.js +0 -38
- package/components/skeleton/demo/skeleton-test-width.js +0 -20
- package/components/sorting/demo/sort.html +0 -37
- package/components/status-indicator/demo/status-indicator.html +0 -99
- package/components/switch/demo/switch.html +0 -95
- package/components/table/demo/table-test.js +0 -271
- package/components/table/demo/table.html +0 -107
- package/components/tabs/demo/tab-custom.js +0 -39
- package/components/tabs/demo/tabs-array.js +0 -43
- package/components/tabs/demo/tabs.html +0 -558
- package/components/tag-list/demo/tag-list.html +0 -117
- package/components/tooltip/demo/tooltip.html +0 -275
- package/components/typography/demo/typography.html +0 -93
- package/components/view-switcher/demo/demo-table-view.js +0 -41
- package/components/view-switcher/demo/view-switcher.html +0 -71
- package/directives/animate/demo/animate-test.js +0 -98
- package/directives/animate/demo/index.html +0 -23
- package/helpers/demo/announce-test.js +0 -37
- package/helpers/demo/announce.html +0 -19
- package/helpers/demo/dismissible-test.js +0 -66
- package/helpers/demo/dismissible.html +0 -38
- package/helpers/demo/gestures.html +0 -58
- package/helpers/demo/prism.html +0 -694
- package/helpers/demo/template-tags.html +0 -118
- package/mixins/arrow-keys/demo/arrow-keys-mixin.html +0 -29
- package/mixins/arrow-keys/demo/arrow-keys-test.js +0 -38
- package/mixins/async-container/demo/async-container.html +0 -109
- package/mixins/async-container/demo/async-container.js +0 -27
- package/mixins/async-container/demo/async-item.js +0 -80
- package/mixins/labelled/demo/labelled-mixin.html +0 -90
- package/mixins/localize/demo/localize-mixin-greeting.js +0 -39
- package/mixins/localize/demo/localize-mixin-mission.js +0 -25
- package/mixins/localize/demo/localize-mixin.html +0 -28
- package/templates/primary-secondary/demo/form.html +0 -55
- package/templates/primary-secondary/demo/index.html +0 -27
- package/templates/primary-secondary/demo/integration.html +0 -457
- package/templates/primary-secondary/demo/overflow-hidden.html +0 -22
- package/templates/primary-secondary/demo/width-type-normal.html +0 -26
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import { css, html, LitElement } from 'lit';
|
|
2
|
-
|
|
3
|
-
class ColorSwatch extends LitElement {
|
|
4
|
-
|
|
5
|
-
static get properties() {
|
|
6
|
-
return {
|
|
7
|
-
name: { type: String, reflect: true }
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
static get styles() {
|
|
12
|
-
return css`
|
|
13
|
-
:host {
|
|
14
|
-
border-radius: 8px;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
color: #ffffff;
|
|
17
|
-
display: block;
|
|
18
|
-
font-size: 0.7rem;
|
|
19
|
-
font-weight: 400;
|
|
20
|
-
margin: 0.3rem;
|
|
21
|
-
padding: 0.3rem;
|
|
22
|
-
width: 300px;
|
|
23
|
-
}
|
|
24
|
-
:host([name="regolith"]) {
|
|
25
|
-
background-color: var(--d2l-color-regolith);
|
|
26
|
-
color: var(--d2l-color-ferrite);
|
|
27
|
-
}
|
|
28
|
-
:host([name="sylvite"]) {
|
|
29
|
-
background-color: var(--d2l-color-sylvite);
|
|
30
|
-
color: var(--d2l-color-ferrite);
|
|
31
|
-
}
|
|
32
|
-
:host([name="gypsum"]) {
|
|
33
|
-
background-color: var(--d2l-color-gypsum);
|
|
34
|
-
color: var(--d2l-color-ferrite);
|
|
35
|
-
}
|
|
36
|
-
:host([name="mica"]) {
|
|
37
|
-
background-color: var(--d2l-color-mica);
|
|
38
|
-
color: var(--d2l-color-ferrite);
|
|
39
|
-
}
|
|
40
|
-
:host([name="corundum"]) {
|
|
41
|
-
background-color: var(--d2l-color-corundum);
|
|
42
|
-
color: var(--d2l-color-ferrite);
|
|
43
|
-
}
|
|
44
|
-
:host([name="chromite"]) {
|
|
45
|
-
background-color: var(--d2l-color-chromite);
|
|
46
|
-
color: var(--d2l-color-ferrite);
|
|
47
|
-
}
|
|
48
|
-
:host([name="galena"]) {
|
|
49
|
-
background-color: var(--d2l-color-galena);
|
|
50
|
-
}
|
|
51
|
-
:host([name="tungsten"]) {
|
|
52
|
-
background-color: var(--d2l-color-tungsten);
|
|
53
|
-
}
|
|
54
|
-
:host([name="ferrite"]) {
|
|
55
|
-
background-color: var(--d2l-color-ferrite);
|
|
56
|
-
}
|
|
57
|
-
:host([name="primary-accent-action"]) {
|
|
58
|
-
background-color: var(--d2l-color-primary-accent-action);
|
|
59
|
-
}
|
|
60
|
-
:host([name="primary-accent-indicator"]) {
|
|
61
|
-
background-color: var(--d2l-color-primary-accent-indicator);
|
|
62
|
-
}
|
|
63
|
-
:host([name="feedback-error"]) {
|
|
64
|
-
background-color: var(--d2l-color-feedback-error);
|
|
65
|
-
}
|
|
66
|
-
:host([name="feedback-warning"]) {
|
|
67
|
-
background-color: var(--d2l-color-feedback-warning);
|
|
68
|
-
}
|
|
69
|
-
:host([name="feedback-success"]) {
|
|
70
|
-
background-color: var(--d2l-color-feedback-success);
|
|
71
|
-
}
|
|
72
|
-
:host([name="feedback-action"]) {
|
|
73
|
-
background-color: var(--d2l-color-feedback-action);
|
|
74
|
-
}
|
|
75
|
-
:host([name="zircon-plus-2"]) {
|
|
76
|
-
background-color: var(--d2l-color-zircon-plus-2);
|
|
77
|
-
color: var(--d2l-color-ferrite);
|
|
78
|
-
}
|
|
79
|
-
:host([name="zircon-plus-1"]) {
|
|
80
|
-
background-color: var(--d2l-color-zircon-plus-1);
|
|
81
|
-
color: var(--d2l-color-ferrite);
|
|
82
|
-
}
|
|
83
|
-
:host([name="zircon"]) {
|
|
84
|
-
background-color: var(--d2l-color-zircon);
|
|
85
|
-
}
|
|
86
|
-
:host([name="zircon-minus-1"]) {
|
|
87
|
-
background-color: var(--d2l-color-zircon-minus-1);
|
|
88
|
-
}
|
|
89
|
-
:host([name="celestine-plus-2"]) {
|
|
90
|
-
background-color: var(--d2l-color-celestine-plus-2);
|
|
91
|
-
color: var(--d2l-color-ferrite);
|
|
92
|
-
}
|
|
93
|
-
:host([name="celestine-plus-1"]) {
|
|
94
|
-
background-color: var(--d2l-color-celestine-plus-1);
|
|
95
|
-
color: var(--d2l-color-ferrite);
|
|
96
|
-
}
|
|
97
|
-
:host([name="celestine"]) {
|
|
98
|
-
background-color: var(--d2l-color-celestine);
|
|
99
|
-
}
|
|
100
|
-
:host([name="celestine-minus-1"]) {
|
|
101
|
-
background-color: var(--d2l-color-celestine-minus-1);
|
|
102
|
-
}
|
|
103
|
-
:host([name="amethyst-plus-2"]) {
|
|
104
|
-
background-color: var(--d2l-color-amethyst-plus-2);
|
|
105
|
-
color: var(--d2l-color-ferrite);
|
|
106
|
-
}
|
|
107
|
-
:host([name="amethyst-plus-1"]) {
|
|
108
|
-
background-color: var(--d2l-color-amethyst-plus-1);
|
|
109
|
-
color: var(--d2l-color-ferrite);
|
|
110
|
-
}
|
|
111
|
-
:host([name="amethyst"]) {
|
|
112
|
-
background-color: var(--d2l-color-amethyst);
|
|
113
|
-
}
|
|
114
|
-
:host([name="amethyst-minus-1"]) {
|
|
115
|
-
background-color: var(--d2l-color-amethyst-minus-1);
|
|
116
|
-
}
|
|
117
|
-
:host([name="fluorite-plus-2"]) {
|
|
118
|
-
background-color: var(--d2l-color-fluorite-plus-2);
|
|
119
|
-
color: var(--d2l-color-ferrite);
|
|
120
|
-
}
|
|
121
|
-
:host([name="fluorite-plus-1"]) {
|
|
122
|
-
background-color: var(--d2l-color-fluorite-plus-1);
|
|
123
|
-
color: var(--d2l-color-ferrite);
|
|
124
|
-
}
|
|
125
|
-
:host([name="fluorite"]) {
|
|
126
|
-
background-color: var(--d2l-color-fluorite);
|
|
127
|
-
}
|
|
128
|
-
:host([name="fluorite-minus-1"]) {
|
|
129
|
-
background-color: var(--d2l-color-fluorite-minus-1);
|
|
130
|
-
}
|
|
131
|
-
:host([name="tourmaline-plus-2"]) {
|
|
132
|
-
background-color: var(--d2l-color-tourmaline-plus-2);
|
|
133
|
-
color: var(--d2l-color-ferrite);
|
|
134
|
-
}
|
|
135
|
-
:host([name="tourmaline-plus-1"]) {
|
|
136
|
-
background-color: var(--d2l-color-tourmaline-plus-1);
|
|
137
|
-
color: var(--d2l-color-ferrite);
|
|
138
|
-
}
|
|
139
|
-
:host([name="tourmaline"]) {
|
|
140
|
-
background-color: var(--d2l-color-tourmaline);
|
|
141
|
-
}
|
|
142
|
-
:host([name="tourmaline-minus-1"]) {
|
|
143
|
-
background-color: var(--d2l-color-tourmaline-minus-1);
|
|
144
|
-
}
|
|
145
|
-
:host([name="cinnabar-plus-2"]) {
|
|
146
|
-
background-color: var(--d2l-color-cinnabar-plus-2);
|
|
147
|
-
color: var(--d2l-color-ferrite);
|
|
148
|
-
}
|
|
149
|
-
:host([name="cinnabar-plus-1"]) {
|
|
150
|
-
background-color: var(--d2l-color-cinnabar-plus-1);
|
|
151
|
-
color: var(--d2l-color-ferrite);
|
|
152
|
-
}
|
|
153
|
-
:host([name="cinnabar"]) {
|
|
154
|
-
background-color: var(--d2l-color-cinnabar);
|
|
155
|
-
}
|
|
156
|
-
:host([name="cinnabar-minus-1"]) {
|
|
157
|
-
background-color: var(--d2l-color-cinnabar-minus-1);
|
|
158
|
-
}
|
|
159
|
-
:host([name="carnelian-plus-1"]) {
|
|
160
|
-
background-color: var(--d2l-color-carnelian-plus-1);
|
|
161
|
-
color: var(--d2l-color-ferrite);
|
|
162
|
-
}
|
|
163
|
-
:host([name="carnelian"]) {
|
|
164
|
-
background-color: var(--d2l-color-carnelian);
|
|
165
|
-
color: var(--d2l-color-ferrite);
|
|
166
|
-
}
|
|
167
|
-
:host([name="carnelian-minus-1"]) {
|
|
168
|
-
background-color: var(--d2l-color-carnelian-minus-1);
|
|
169
|
-
}
|
|
170
|
-
:host([name="carnelian-minus-2"]) {
|
|
171
|
-
background-color: var(--d2l-color-carnelian-minus-2);
|
|
172
|
-
}
|
|
173
|
-
:host([name="citrine-plus-1"]) {
|
|
174
|
-
background-color: var(--d2l-color-citrine-plus-1);
|
|
175
|
-
color: var(--d2l-color-ferrite);
|
|
176
|
-
}
|
|
177
|
-
:host([name="citrine"]) {
|
|
178
|
-
background-color: var(--d2l-color-citrine);
|
|
179
|
-
color: var(--d2l-color-ferrite);
|
|
180
|
-
}
|
|
181
|
-
:host([name="citrine-minus-1"]) {
|
|
182
|
-
background-color: var(--d2l-color-citrine-minus-1);
|
|
183
|
-
}
|
|
184
|
-
:host([name="citrine-minus-2"]) {
|
|
185
|
-
background-color: var(--d2l-color-citrine-minus-2);
|
|
186
|
-
}
|
|
187
|
-
:host([name="peridot-plus-1"]) {
|
|
188
|
-
background-color: var(--d2l-color-peridot-plus-1);
|
|
189
|
-
color: var(--d2l-color-ferrite);
|
|
190
|
-
}
|
|
191
|
-
:host([name="peridot"]) {
|
|
192
|
-
background-color: var(--d2l-color-peridot);
|
|
193
|
-
color: var(--d2l-color-ferrite);
|
|
194
|
-
}
|
|
195
|
-
:host([name="peridot-minus-1"]) {
|
|
196
|
-
background-color: var(--d2l-color-peridot-minus-1);
|
|
197
|
-
}
|
|
198
|
-
:host([name="peridot-minus-2"]) {
|
|
199
|
-
background-color: var(--d2l-color-peridot-minus-2);
|
|
200
|
-
}
|
|
201
|
-
:host([name="olivine-plus-1"]) {
|
|
202
|
-
background-color: var(--d2l-color-olivine-plus-1);
|
|
203
|
-
color: var(--d2l-color-ferrite);
|
|
204
|
-
}
|
|
205
|
-
:host([name="olivine"]) {
|
|
206
|
-
background-color: var(--d2l-color-olivine);
|
|
207
|
-
color: var(--d2l-color-ferrite);
|
|
208
|
-
}
|
|
209
|
-
:host([name="olivine-minus-1"]) {
|
|
210
|
-
background-color: var(--d2l-color-olivine-minus-1);
|
|
211
|
-
}
|
|
212
|
-
:host([name="olivine-minus-2"]) {
|
|
213
|
-
background-color: var(--d2l-color-olivine-minus-2);
|
|
214
|
-
}
|
|
215
|
-
:host([name="malachite-plus-1"]) {
|
|
216
|
-
background-color: var(--d2l-color-malachite-plus-1);
|
|
217
|
-
color: var(--d2l-color-ferrite);
|
|
218
|
-
}
|
|
219
|
-
:host([name="malachite"]) {
|
|
220
|
-
background-color: var(--d2l-color-malachite);
|
|
221
|
-
color: var(--d2l-color-ferrite);
|
|
222
|
-
}
|
|
223
|
-
:host([name="malachite-minus-1"]) {
|
|
224
|
-
background-color: var(--d2l-color-malachite-minus-1);
|
|
225
|
-
}
|
|
226
|
-
:host([name="malachite-minus-2"]) {
|
|
227
|
-
background-color: var(--d2l-color-malachite-minus-2);
|
|
228
|
-
}
|
|
229
|
-
`;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
render() {
|
|
233
|
-
return html`
|
|
234
|
-
<div>${this.name}</div>
|
|
235
|
-
`;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
customElements.define('d2l-color-swatch', ColorSwatch);
|
|
@@ -1,139 +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 './color-swatch.js';
|
|
10
|
-
</script>
|
|
11
|
-
</head>
|
|
12
|
-
<body unresolved>
|
|
13
|
-
|
|
14
|
-
<d2l-demo-page page-title="d2l-colors">
|
|
15
|
-
|
|
16
|
-
<h2>Basic Greys (lightest to darkest)</h2>
|
|
17
|
-
|
|
18
|
-
<d2l-demo-snippet>
|
|
19
|
-
<d2l-color-swatch name="regolith"></d2l-color-swatch>
|
|
20
|
-
<d2l-color-swatch name="sylvite"></d2l-color-swatch>
|
|
21
|
-
<d2l-color-swatch name="gypsum"></d2l-color-swatch>
|
|
22
|
-
<d2l-color-swatch name="mica"></d2l-color-swatch>
|
|
23
|
-
<d2l-color-swatch name="corundum"></d2l-color-swatch>
|
|
24
|
-
<d2l-color-swatch name="chromite"></d2l-color-swatch>
|
|
25
|
-
<d2l-color-swatch name="galena"></d2l-color-swatch>
|
|
26
|
-
<d2l-color-swatch name="tungsten"></d2l-color-swatch>
|
|
27
|
-
<d2l-color-swatch name="ferrite"></d2l-color-swatch>
|
|
28
|
-
</d2l-demo-snippet>
|
|
29
|
-
|
|
30
|
-
<h2>Primary Accent<h2>
|
|
31
|
-
|
|
32
|
-
<d2l-demo-snippet>
|
|
33
|
-
<d2l-color-swatch name="primary-accent-action"></d2l-color-swatch>
|
|
34
|
-
<d2l-color-swatch name="primary-accent-indicator"></d2l-color-swatch>
|
|
35
|
-
</d2l-demo-snippet>
|
|
36
|
-
|
|
37
|
-
<h2>Feedback<h2>
|
|
38
|
-
|
|
39
|
-
<d2l-demo-snippet>
|
|
40
|
-
<d2l-color-swatch name="feedback-error"></d2l-color-swatch>
|
|
41
|
-
<d2l-color-swatch name="feedback-warning"></d2l-color-swatch>
|
|
42
|
-
<d2l-color-swatch name="feedback-success"></d2l-color-swatch>
|
|
43
|
-
<d2l-color-swatch name="feedback-action"></d2l-color-swatch>
|
|
44
|
-
</d2l-demo-snippet>
|
|
45
|
-
|
|
46
|
-
<h2>Full Pallette</h2>
|
|
47
|
-
|
|
48
|
-
<h3>Zircon</h3>
|
|
49
|
-
<d2l-demo-snippet>
|
|
50
|
-
<d2l-color-swatch name="zircon-plus-2"></d2l-color-swatch>
|
|
51
|
-
<d2l-color-swatch name="zircon-plus-1"></d2l-color-swatch>
|
|
52
|
-
<d2l-color-swatch name="zircon"></d2l-color-swatch>
|
|
53
|
-
<d2l-color-swatch name="zircon-minus-1"></d2l-color-swatch>
|
|
54
|
-
</d2l-demo-snippet>
|
|
55
|
-
|
|
56
|
-
<h3>Celestine</h3>
|
|
57
|
-
<d2l-demo-snippet>
|
|
58
|
-
<d2l-color-swatch name="celestine-plus-2"></d2l-color-swatch>
|
|
59
|
-
<d2l-color-swatch name="celestine-plus-1"></d2l-color-swatch>
|
|
60
|
-
<d2l-color-swatch name="celestine"></d2l-color-swatch>
|
|
61
|
-
<d2l-color-swatch name="celestine-minus-1"></d2l-color-swatch>
|
|
62
|
-
</d2l-demo-snippet>
|
|
63
|
-
|
|
64
|
-
<h3>Amethyst</h3>
|
|
65
|
-
<d2l-demo-snippet>
|
|
66
|
-
<d2l-color-swatch name="amethyst-plus-2"></d2l-color-swatch>
|
|
67
|
-
<d2l-color-swatch name="amethyst-plus-1"></d2l-color-swatch>
|
|
68
|
-
<d2l-color-swatch name="amethyst"></d2l-color-swatch>
|
|
69
|
-
<d2l-color-swatch name="amethyst-minus-1"></d2l-color-swatch>
|
|
70
|
-
</d2l-demo-snippet>
|
|
71
|
-
|
|
72
|
-
<h3>Fluorite</h3>
|
|
73
|
-
<d2l-demo-snippet>
|
|
74
|
-
<d2l-color-swatch name="fluorite-plus-2"></d2l-color-swatch>
|
|
75
|
-
<d2l-color-swatch name="fluorite-plus-1"></d2l-color-swatch>
|
|
76
|
-
<d2l-color-swatch name="fluorite"></d2l-color-swatch>
|
|
77
|
-
<d2l-color-swatch name="fluorite-minus-1"></d2l-color-swatch>
|
|
78
|
-
</d2l-demo-snippet>
|
|
79
|
-
|
|
80
|
-
<h3>Tourmaline</h3>
|
|
81
|
-
<d2l-demo-snippet>
|
|
82
|
-
<d2l-color-swatch name="tourmaline-plus-2"></d2l-color-swatch>
|
|
83
|
-
<d2l-color-swatch name="tourmaline-plus-1"></d2l-color-swatch>
|
|
84
|
-
<d2l-color-swatch name="tourmaline"></d2l-color-swatch>
|
|
85
|
-
<d2l-color-swatch name="tourmaline-minus-1"></d2l-color-swatch>
|
|
86
|
-
</d2l-demo-snippet>
|
|
87
|
-
|
|
88
|
-
<h3>Cinnabar</h3>
|
|
89
|
-
<d2l-demo-snippet>
|
|
90
|
-
<d2l-color-swatch name="cinnabar-plus-2"></d2l-color-swatch>
|
|
91
|
-
<d2l-color-swatch name="cinnabar-plus-1"></d2l-color-swatch>
|
|
92
|
-
<d2l-color-swatch name="cinnabar"></d2l-color-swatch>
|
|
93
|
-
<d2l-color-swatch name="cinnabar-minus-1"></d2l-color-swatch>
|
|
94
|
-
</d2l-demo-snippet>
|
|
95
|
-
|
|
96
|
-
<h3>Carnelian</h3>
|
|
97
|
-
<d2l-demo-snippet>
|
|
98
|
-
<d2l-color-swatch name="carnelian-plus-1"></d2l-color-swatch>
|
|
99
|
-
<d2l-color-swatch name="carnelian"></d2l-color-swatch>
|
|
100
|
-
<d2l-color-swatch name="carnelian-minus-1"></d2l-color-swatch>
|
|
101
|
-
<d2l-color-swatch name="carnelian-minus-2"></d2l-color-swatch>
|
|
102
|
-
</d2l-demo-snippet>
|
|
103
|
-
|
|
104
|
-
<h3>Citrine</h3>
|
|
105
|
-
<d2l-demo-snippet>
|
|
106
|
-
<d2l-color-swatch name="citrine-plus-1"></d2l-color-swatch>
|
|
107
|
-
<d2l-color-swatch name="citrine"></d2l-color-swatch>
|
|
108
|
-
<d2l-color-swatch name="citrine-minus-1"></d2l-color-swatch>
|
|
109
|
-
<d2l-color-swatch name="citrine-minus-2"></d2l-color-swatch>
|
|
110
|
-
</d2l-demo-snippet>
|
|
111
|
-
|
|
112
|
-
<h3>Peridot</h3>
|
|
113
|
-
<d2l-demo-snippet>
|
|
114
|
-
<d2l-color-swatch name="peridot-plus-1"></d2l-color-swatch>
|
|
115
|
-
<d2l-color-swatch name="peridot"></d2l-color-swatch>
|
|
116
|
-
<d2l-color-swatch name="peridot-minus-1"></d2l-color-swatch>
|
|
117
|
-
<d2l-color-swatch name="peridot-minus-2"></d2l-color-swatch>
|
|
118
|
-
</d2l-demo-snippet>
|
|
119
|
-
|
|
120
|
-
<h3>Olivine</h3>
|
|
121
|
-
<d2l-demo-snippet>
|
|
122
|
-
<d2l-color-swatch name="olivine-plus-1"></d2l-color-swatch>
|
|
123
|
-
<d2l-color-swatch name="olivine"></d2l-color-swatch>
|
|
124
|
-
<d2l-color-swatch name="olivine-minus-1"></d2l-color-swatch>
|
|
125
|
-
<d2l-color-swatch name="olivine-minus-2"></d2l-color-swatch>
|
|
126
|
-
</d2l-demo-snippet>
|
|
127
|
-
|
|
128
|
-
<h3>Malachite</h3>
|
|
129
|
-
<d2l-demo-snippet>
|
|
130
|
-
<d2l-color-swatch name="malachite-plus-1"></d2l-color-swatch>
|
|
131
|
-
<d2l-color-swatch name="malachite"></d2l-color-swatch>
|
|
132
|
-
<d2l-color-swatch name="malachite-minus-1"></d2l-color-swatch>
|
|
133
|
-
<d2l-color-swatch name="malachite-minus-2"></d2l-color-swatch>
|
|
134
|
-
</d2l-demo-snippet>
|
|
135
|
-
|
|
136
|
-
</d2l-demo-page>
|
|
137
|
-
|
|
138
|
-
</body>
|
|
139
|
-
</html>
|
|
@@ -1,48 +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 '../count-badge-icon.js';
|
|
10
|
-
import '../../button/button.js';
|
|
11
|
-
</script>
|
|
12
|
-
</head>
|
|
13
|
-
<body unresolved>
|
|
14
|
-
<d2l-demo-page page-title="d2l-count-badge-icon">
|
|
15
|
-
<h2>Small Badges with Icons</h2>
|
|
16
|
-
<d2l-demo-snippet>
|
|
17
|
-
<template>
|
|
18
|
-
<d2l-count-badge-icon size="small" tab-stop icon="tier1:gear" text="1 new notification." type="notification" number="1"></d2l-count-badge-icon>
|
|
19
|
-
<d2l-count-badge-icon size="small" tab-stop icon="tier2:gear" text="150 new notifications." type="notification" number="150"></d2l-count-badge-icon>
|
|
20
|
-
<d2l-count-badge-icon size="small" tab-stop icon="tier3:gear" text="1500000 new notifications." type="count" number="1500000"></d2l-count-badge-icon>
|
|
21
|
-
</template>
|
|
22
|
-
</d2l-demo-snippet>
|
|
23
|
-
|
|
24
|
-
<h2>Large Badges with Tooltip and Icons</h2>
|
|
25
|
-
<d2l-demo-snippet>
|
|
26
|
-
<template>
|
|
27
|
-
<d2l-count-badge-icon size="large" icon="tier1:gear" has-tooltip text="1 new notification." type="notification" number="1"></d2l-count-badge-icon>
|
|
28
|
-
<d2l-count-badge-icon size="large" icon="tier2:gear" has-tooltip text="150 new notifications." type="notification" number="150"></d2l-count-badge-icon>
|
|
29
|
-
<d2l-count-badge-icon size="large" hide-zero icon="tier3:gear" has-tooltip text="No new notifications." type="count" number="0"></d2l-count-badge-icon>
|
|
30
|
-
</template>
|
|
31
|
-
</d2l-demo-snippet>
|
|
32
|
-
|
|
33
|
-
<h2>Small Notification Badge with live region</h2>
|
|
34
|
-
<d2l-demo-snippet>
|
|
35
|
-
<template>
|
|
36
|
-
<d2l-count-badge-icon id="badge-announce-changes" size="small" icon="tier2:gear" announce-changes tab-stop text=" 1 new notification." type="notification" number="1"></d2l-count-badge-icon>
|
|
37
|
-
<d2l-button id="increment-count">Increment Count</d2l-button>
|
|
38
|
-
</template>
|
|
39
|
-
</d2l-demo-snippet>
|
|
40
|
-
</d2l-demo-page>
|
|
41
|
-
<script type="module">
|
|
42
|
-
document.getElementById('increment-count').addEventListener('click', () => {
|
|
43
|
-
document.getElementById('badge-announce-changes').number += 1;
|
|
44
|
-
document.getElementById('badge-announce-changes').text = `${document.getElementById('badge-announce-changes').number} new notifications.`;
|
|
45
|
-
});
|
|
46
|
-
</script>
|
|
47
|
-
</body>
|
|
48
|
-
</html>
|
|
@@ -1,73 +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 '../count-badge.js';
|
|
10
|
-
import '../../button/button.js';
|
|
11
|
-
</script>
|
|
12
|
-
</head>
|
|
13
|
-
<body unresolved>
|
|
14
|
-
<d2l-demo-page page-title="d2l-count-badge">
|
|
15
|
-
|
|
16
|
-
<h2>Small Notification Badge</h2>
|
|
17
|
-
<d2l-demo-snippet>
|
|
18
|
-
<template>
|
|
19
|
-
<d2l-count-badge size="small" tab-stop text=" 1 new notification." type="notification" number="1"></d2l-count-badge>
|
|
20
|
-
<d2l-count-badge size="small" text="10 new notifications." type="notification" number="10"></d2l-count-badge>
|
|
21
|
-
<d2l-count-badge size="small" tab-stop text="100 new notifications." type="notification" number="100"></d2l-count-badge>
|
|
22
|
-
</template>
|
|
23
|
-
</d2l-demo-snippet>
|
|
24
|
-
|
|
25
|
-
<h2>Small Notification Badge with live region</h2>
|
|
26
|
-
<d2l-demo-snippet>
|
|
27
|
-
<template>
|
|
28
|
-
<d2l-count-badge id="badge-announce-changes"size="small" announce-changes tab-stop text=" 1 new notification." type="notification" number="1"></d2l-count-badge>
|
|
29
|
-
<d2l-button id="increment-count">Increment Count</d2l-button>
|
|
30
|
-
<script type="module">
|
|
31
|
-
document.getElementById('increment-count').addEventListener('click', () => {
|
|
32
|
-
document.getElementById('badge-announce-changes').number += 1;
|
|
33
|
-
document.getElementById('badge-announce-changes').text = `${document.getElementById('badge-announce-changes').number} new notifications.`;
|
|
34
|
-
});
|
|
35
|
-
</script>
|
|
36
|
-
</template>
|
|
37
|
-
</d2l-demo-snippet>
|
|
38
|
-
|
|
39
|
-
<h2>Large Count Badge</h2>
|
|
40
|
-
<d2l-demo-snippet>
|
|
41
|
-
<template>
|
|
42
|
-
<d2l-count-badge size="large" text="1 new notification." type="count" number="1"></d2l-count-badge>
|
|
43
|
-
<d2l-count-badge size="large" text="10 new notifications." type="count" number="10"></d2l-count-badge>
|
|
44
|
-
<d2l-count-badge size="large" text="100 new notifications." type="count" number="100"></d2l-count-badge>
|
|
45
|
-
<d2l-count-badge size="large" text="777777 new notifications." type="count" number="777777"></d2l-count-badge>
|
|
46
|
-
<d2l-count-badge size="large" text="777777 new notifications."type="count" number="777777" max-digits="5"></d2l-count-badge>
|
|
47
|
-
</template>
|
|
48
|
-
</d2l-demo-snippet>
|
|
49
|
-
|
|
50
|
-
<h2>Override Colorway of Count Badge</h2>
|
|
51
|
-
<d2l-demo-snippet>
|
|
52
|
-
<template>
|
|
53
|
-
<d2l-count-badge id="colorway-override" size="large" text="1 new notification." type="count" number="1"></d2l-count-badge>
|
|
54
|
-
<style>
|
|
55
|
-
#colorway-override {
|
|
56
|
-
--d2l-count-badge-background-color: purple;
|
|
57
|
-
--d2l-count-badge-foreground-color: #ffffff;
|
|
58
|
-
}
|
|
59
|
-
</style>
|
|
60
|
-
</template>
|
|
61
|
-
</d2l-demo-snippet>
|
|
62
|
-
|
|
63
|
-
<h2>Small Notification Badge with Tooltip</h2>
|
|
64
|
-
<d2l-demo-snippet>
|
|
65
|
-
<template>
|
|
66
|
-
<d2l-count-badge size="small" has-tooltip text=" 1 new notification." type="notification" number="1"></d2l-count-badge>
|
|
67
|
-
<d2l-count-badge size="small" has-tooltip text=" 2 new notifications." type="notification" number="2"></d2l-count-badge>
|
|
68
|
-
</template>
|
|
69
|
-
</d2l-demo-snippet>
|
|
70
|
-
|
|
71
|
-
</d2l-demo-page>
|
|
72
|
-
</body>
|
|
73
|
-
</html>
|
|
@@ -1,71 +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="../styles.css" type="text/css">
|
|
7
|
-
<script type="module">
|
|
8
|
-
import '../demo-page.js';
|
|
9
|
-
import '../../button/button-icon.js';
|
|
10
|
-
</script>
|
|
11
|
-
</head>
|
|
12
|
-
<body unresolved>
|
|
13
|
-
|
|
14
|
-
<d2l-demo-page page-title="d2l-demo">
|
|
15
|
-
|
|
16
|
-
<h2>Demo Snippet</h2>
|
|
17
|
-
|
|
18
|
-
<d2l-demo-snippet>
|
|
19
|
-
<d2l-button-icon icon="tier1:gear" text="Icon Button"></d2l-button-icon>
|
|
20
|
-
</d2l-demo-snippet>
|
|
21
|
-
|
|
22
|
-
<h2>Demo Snippet (custom width)</h2>
|
|
23
|
-
|
|
24
|
-
<d2l-demo-snippet style="max-width: 80%;">
|
|
25
|
-
<d2l-button-icon icon="tier1:gear" text="Icon Button"></d2l-button-icon>
|
|
26
|
-
</d2l-demo-snippet>
|
|
27
|
-
|
|
28
|
-
<h2>Demo Snippet (using template)</h2>
|
|
29
|
-
|
|
30
|
-
<d2l-demo-snippet>
|
|
31
|
-
<template>
|
|
32
|
-
<d2l-button-icon icon="tier1:gear" text="Icon Button"></d2l-button-icon>
|
|
33
|
-
</template>
|
|
34
|
-
</d2l-demo-snippet>
|
|
35
|
-
|
|
36
|
-
<h2>Code View</h2>
|
|
37
|
-
|
|
38
|
-
<d2l-code-view language="javascript">
|
|
39
|
-
function helloGrumpy(name) {
|
|
40
|
-
console.log(`Hi there ${name}.`);
|
|
41
|
-
}
|
|
42
|
-
helloGrumpy('Wizard');
|
|
43
|
-
</d2l-code-view>
|
|
44
|
-
|
|
45
|
-
<d2l-code-view language="css">
|
|
46
|
-
.grumpy > img {
|
|
47
|
-
height: 100%;
|
|
48
|
-
width: 100%;
|
|
49
|
-
}
|
|
50
|
-
</d2l-code-view>
|
|
51
|
-
|
|
52
|
-
<d2l-code-view language="json">
|
|
53
|
-
{
|
|
54
|
-
"jinxed": "gnomes",
|
|
55
|
-
"grumpy": [ "wizards" ]
|
|
56
|
-
}
|
|
57
|
-
</d2l-code-view>
|
|
58
|
-
|
|
59
|
-
<d2l-code-view language="shell">
|
|
60
|
-
#!/bin/bash
|
|
61
|
-
if [ -d $directory ]; then
|
|
62
|
-
echo "Directory exists"
|
|
63
|
-
else
|
|
64
|
-
echo "Directory does not exists"
|
|
65
|
-
fi
|
|
66
|
-
</d2l-code-view>
|
|
67
|
-
|
|
68
|
-
</d2l-demo-page>
|
|
69
|
-
|
|
70
|
-
</body>
|
|
71
|
-
</html>
|