@sparkle-learning/core 0.0.43 → 0.0.46

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 (40) hide show
  1. package/dist/cjs/header-mobile-collapse_61.cjs.entry.js +10 -110
  2. package/dist/cjs/{icons-c61db785.js → icons-fda820af.js} +0 -0
  3. package/dist/cjs/sparkle-animation-player.cjs.entry.js +0 -1
  4. package/dist/cjs/sparkle-code.cjs.entry.js +1 -1
  5. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +1 -1
  6. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.js +0 -1
  7. package/dist/collection/components/sparkle-root/sparkle-root.css +3 -0
  8. package/dist/esm/header-mobile-collapse_61.entry.js +12 -112
  9. package/dist/esm/{icons-9b62a1ec.js → icons-1c794c74.js} +0 -0
  10. package/dist/esm/sparkle-animation-player.entry.js +0 -1
  11. package/dist/esm/sparkle-code.entry.js +1 -1
  12. package/dist/esm/sparkle-menu-collapsible.entry.js +1 -1
  13. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +49 -0
  14. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +208 -0
  15. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +31 -0
  16. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +245 -0
  17. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +115 -0
  18. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +255 -0
  19. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +232 -0
  20. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +3 -0
  21. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +25 -0
  22. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +71 -0
  23. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +194 -0
  24. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +4 -0
  25. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +67 -0
  26. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +18 -0
  27. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +93 -0
  28. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +52 -0
  29. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +98 -0
  30. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +8 -0
  31. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +37 -0
  32. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +64 -0
  33. package/dist/sparkle-core/{p-0fa3fd63.entry.js → p-11a6c175.entry.js} +1 -1
  34. package/dist/sparkle-core/p-41a9ece7.entry.js +1 -0
  35. package/dist/sparkle-core/{p-a102341e.entry.js → p-957715c5.entry.js} +1 -1
  36. package/dist/sparkle-core/{p-b401b101.entry.js → p-a465598d.entry.js} +26 -30
  37. package/dist/sparkle-core/{p-e8073714.js → p-cabe9139.js} +0 -0
  38. package/dist/sparkle-core/sparkle-core.esm.js +1 -1
  39. package/package.json +2 -2
  40. package/dist/sparkle-core/p-18cdd458.entry.js +0 -1
@@ -0,0 +1,194 @@
1
+ sparkle-nav {
2
+ display: block;
3
+ flex: 0 0 auto;
4
+ z-index: 1;
5
+ }
6
+
7
+ sparkle-nav .wrapper {
8
+ position: relative;
9
+ }
10
+
11
+ sparkle-nav .section-label {
12
+ margin-bottom: 0;
13
+ font-size: 14px;
14
+ font-weight: 600;
15
+ }
16
+
17
+ sparkle-nav .module-list li,
18
+ sparkle-nav .module-list ul li {
19
+ list-style-type: none;
20
+ margin: 0;
21
+ padding: 0;
22
+ }
23
+
24
+ sparkle-nav .module-list {
25
+ margin-top: 0;
26
+ padding: 0;
27
+ }
28
+
29
+ sparkle-nav .module-list .section-label:first-of-type {
30
+ margin-top: 0;
31
+ }
32
+
33
+ sparkle-nav .module-list li {
34
+ font-size: 14px;
35
+ padding: 10px 10px 0px 14px;
36
+ }
37
+
38
+ sparkle-nav .module-list > li {
39
+ margin-top: 10px;
40
+ }
41
+
42
+ sparkle-nav .module-list a {
43
+ font-weight: 400;
44
+ color: #6c6c8b;
45
+ text-decoration: none;
46
+ white-space: nowrap;
47
+ border: 0;
48
+ }
49
+
50
+ sparkle-nav .module-list a:not(.link-active) {
51
+ transition: color 0.2s;
52
+ }
53
+
54
+ sparkle-nav .module-list a:hover {
55
+ border: 0;
56
+ }
57
+
58
+ sparkle-nav .module-list .link-active {
59
+ font-weight: bold;
60
+ color: var(--ion-color-sparkle);
61
+ }
62
+
63
+ sparkle-nav .module-list .link-active a{
64
+ color: var(--ion-color-sparkle);
65
+ }
66
+
67
+ sparkle-nav .module-list a:hover:not(.link-active) {
68
+ color: var(--ion-color-sparkle);
69
+ }
70
+
71
+ sparkle-nav .module-list ul li {
72
+ padding-left: 12px;
73
+ transition: 80ms height;
74
+ display: block;
75
+ overflow: hidden;
76
+ text-overflow: ellipsis;
77
+ }
78
+
79
+ sparkle-nav .module-list ul.collapsed li {
80
+ height: 0;
81
+ }
82
+
83
+ sparkle-nav ul.session-list {
84
+ margin: 0;
85
+ padding: 10px 0px 0px 0px;
86
+ }
87
+
88
+ sparkle-nav ul.session-list li a {
89
+ display: flex;
90
+ flex-direction: column;
91
+ padding: 15px 24px;
92
+ position: relative;
93
+ }
94
+
95
+ sparkle-nav ul.session-list li a:before {
96
+ content: '';
97
+ width: 10px;
98
+ height: 10px;
99
+ border-radius: 50%;
100
+ background: #dfe1e3;
101
+ display: block;
102
+ position: absolute;
103
+ left: 1px;
104
+ top: 50%;
105
+ margin-top: -5px;
106
+ z-index: 5
107
+ }
108
+
109
+
110
+ sparkle-nav ul.session-list li a:after {
111
+ content: '';
112
+ background: #dfe1e3;
113
+ height: 100%;
114
+ position: absolute;
115
+ width: 2px;
116
+ display: block;
117
+ left: 5px;
118
+ top: 0
119
+ }
120
+
121
+ sparkle-nav ul.session-list li a.is-active {
122
+ color: var(--ion-color-sparkle);
123
+ }
124
+
125
+ sparkle-nav ul.session-list li a.is-active:before {
126
+ width: 14px;
127
+ height: 14px;
128
+ left: 23px;
129
+ margin-top: -7px;
130
+ background: var(--ion-color-sparkle);
131
+ box-shadow: 0 0 4px var(--ion-color-sparkle);
132
+ }
133
+
134
+
135
+ sparkle-nav ul.session-list li a.is-active:after {
136
+ background: #dfe1e3
137
+ }
138
+
139
+ sparkle-nav ul.session-list li stencil-route-link.is-completed a {
140
+ /* color: var(--ion-color-sparkle); */
141
+ }
142
+
143
+ sparkle-nav ul.session-list li stencil-route-link.is-completed a:before {
144
+ background: var(--ion-color-sparkle);
145
+ }
146
+
147
+ sparkle-nav ul.session-list li stencil-route-link.is-completed a:after {
148
+ background: var(--ion-color-sparkle);
149
+ }
150
+
151
+ sparkle-nav ul.session-list li a p {
152
+ color: #fff;
153
+ flex: 1;
154
+ white-space: nowrap;
155
+ overflow: hidden;
156
+ text-overflow: ellipsis;
157
+ transition: .2s ease-in-out color
158
+ }
159
+
160
+ sparkle-nav ul.session-list li a span {
161
+ display: block;
162
+ line-height: 12px;
163
+ }
164
+
165
+ sparkle-nav ul li span.coming-soon {
166
+ font-size: 0.7rem;
167
+ display: block;
168
+ background: 0 0;
169
+ color: #f6c95b;
170
+ line-height: 14px;
171
+ border-radius: 4px;
172
+ padding: 1px 4px 0;
173
+ box-shadow: none;
174
+ border: 1px solid #f6c95b;
175
+ width: 85px;
176
+ text-align: center;
177
+ }
178
+
179
+
180
+ sparkle-nav ul.session-list li a:hover p {
181
+ color: var(--ion-color-sparkle);
182
+ }
183
+
184
+
185
+
186
+ sparkle-nav ul.session-list li:first-child a:after {
187
+ height: 50%;
188
+ top: 50%
189
+ }
190
+
191
+ sparkle-nav ul.session-list li:last-child a:after {
192
+ height: 50%;
193
+ bottom: 50%
194
+ }
@@ -0,0 +1,67 @@
1
+ sparkle-overlay {
2
+ --sparkle-z-index-xl: 500;
3
+ --sparkle-transition-fast: 0.3s;
4
+ --sparkle-color-light-base: 197, 209, 218;
5
+ --sparkle-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
6
+ }
7
+ .sparkle-overlay {
8
+ -ms-flex-align: center;
9
+ align-items: center;
10
+ display: flex;
11
+ visibility: hidden;
12
+ -ms-flex-pack: center;
13
+ justify-content: center;
14
+ position: fixed;
15
+ top: 0;
16
+ left: 0;
17
+ right: 0;
18
+ bottom: 0;
19
+ pointer-events: auto;
20
+ -ms-touch-action: none;
21
+ touch-action: none;
22
+ opacity: 0;
23
+ z-index: var(--sparkle-z-index-xl);
24
+ }
25
+ .sparkle-overlay,
26
+ .sparkle-overlay.opened {
27
+ -webkit-transition: all var(--sparkle-transition-fast) ease-in-out;
28
+ transition: all var(--sparkle-transition-fast) ease-in-out;
29
+ }
30
+ .sparkle-overlay.opened {
31
+ visibility: visible;
32
+ opacity: 1;
33
+ }
34
+ .sparkle-overlay.opened .content {
35
+ -webkit-transition: all var(--sparkle-transition-fast) ease-in-out;
36
+ transition: all var(--sparkle-transition-fast) ease-in-out;
37
+ }
38
+ .sparkle-overlay.light {
39
+ background-color: rgba(var(--sparkle-color-light-base), 0.6);
40
+ }
41
+ .sparkle-overlay.dark {
42
+ background-color: rgba(var(--sparkle-color-dark-base), 0.6);
43
+ }
44
+ .sparkle-overlay.absolute {
45
+ position: absolute;
46
+ }
47
+ .sparkle-overlay .scrim {
48
+ border-radius: inherit;
49
+ height: 100%;
50
+ position: absolute;
51
+ top: 0;
52
+ bottom: 0;
53
+ left: 0;
54
+ right: 0;
55
+ -webkit-transition: inherit;
56
+ transition: inherit;
57
+ width: 100%;
58
+ will-change: opacity;
59
+ }
60
+ .sparkle-overlay .content {
61
+ position: relative;
62
+ outline: none;
63
+ -webkit-box-shadow: var(--sparkle-shadow-xl);
64
+ box-shadow: var(--sparkle-shadow-xl);
65
+ -webkit-transition: all var(--sparkle-transition-fast) ease-in-out;
66
+ transition: all var(--sparkle-transition-fast) ease-in-out;
67
+ }
@@ -0,0 +1,18 @@
1
+ sparkle-page-footer {
2
+ margin-top: 6rem;
3
+ }
4
+
5
+
6
+ sparkle-page-footer .last-updated {
7
+ color: var(--text-color--light);
8
+ font-weight: normal;
9
+ margin-left: auto;
10
+ text-decoration: underline;
11
+ }
12
+
13
+ sparkle-page-footer .page-footer__row {
14
+ align-items: center;
15
+ display: flex;
16
+ font-size: 12px;
17
+ margin-top: 2rem;
18
+ }
@@ -0,0 +1,93 @@
1
+ sparkle-pagination {
2
+ border-color: var(--line-rule-color);
3
+ border-style: solid;
4
+ border-width: 0 0 1px;
5
+ display: flex;
6
+ flex-wrap: wrap-reverse;
7
+ padding: var(--page-padding, 2rem 0rem) 0;
8
+ }
9
+
10
+ sparkle-pagination .next,
11
+ sparkle-pagination .previous {
12
+ max-width: 100%;
13
+ overflow: hidden;
14
+ }
15
+
16
+ sparkle-pagination .next {
17
+ margin-left: auto;
18
+ }
19
+
20
+ sparkle-pagination a {
21
+ border-radius: 4px;
22
+ display: flex;
23
+ align-items: flex-start;
24
+ flex-direction: column;
25
+ padding: 1em 1.5em;
26
+ color: rgb(var(--accent-color-rgb));
27
+ }
28
+
29
+ sparkle-pagination .previous a {
30
+ padding-left: 0;
31
+ }
32
+
33
+ sparkle-pagination .next a {
34
+ padding-right: 0;
35
+ align-items: flex-end;
36
+ }
37
+
38
+ @media (max-width: 700px) {
39
+ sparkle-pagination .previous a {
40
+ padding-right: 0.5rem;
41
+ }
42
+
43
+ sparkle-pagination .next a {
44
+ padding-left: 0.5rem;
45
+ }
46
+ }
47
+
48
+ @media (hover: hover) {
49
+ sparkle-pagination a:hover,
50
+ sparkle-pagination a:active {
51
+ filter: brightness(0.8);
52
+ }
53
+ }
54
+
55
+ sparkle-pagination .pagination__title {
56
+ color: var(--text-color--lighter);
57
+ font-size: 12px;
58
+ display: block;
59
+ }
60
+
61
+ sparkle-pagination .pagination__text {
62
+ white-space: nowrap;
63
+ overflow: hidden;
64
+ text-overflow: ellipsis;
65
+ display: block;
66
+ color: var(--ion-color-sparkle);
67
+ }
68
+
69
+ sparkle-pagination span {
70
+ overflow: hidden;
71
+ text-overflow: ellipsis;
72
+ white-space: nowrap;
73
+ }
74
+
75
+ sparkle-pagination svg {
76
+ fill: currentColor;
77
+ flex: none;
78
+ height: 1em;
79
+ margin-bottom: -0.125em;
80
+ width: 1em;
81
+ }
82
+
83
+ sparkle-pagination .next svg {
84
+ margin-left: 0.5em;
85
+ }
86
+
87
+ sparkle-pagination .previous svg {
88
+ margin-right: 0.5em;
89
+ }
90
+
91
+ .completed-toast {
92
+ z-index: 999999999999999999999999999 !important;
93
+ }
@@ -0,0 +1,52 @@
1
+ .Select {
2
+ cursor: pointer;
3
+ display: inline-block;
4
+ font-weight: 500;
5
+ }
6
+
7
+ .Select .Dropdown-button {
8
+ align-items: center;
9
+ border: solid 1px #dee3ea;
10
+ border-radius: 6px;
11
+ display: inline-flex;
12
+ justify-content: space-between;
13
+ min-width: 100px;
14
+ padding: 0.5em 1em;
15
+ }
16
+
17
+ .Select .Dropdown-panel {
18
+ padding: 0.5em 0;
19
+ }
20
+
21
+ .Select .Dropdown-arrow {
22
+ margin-left: 0.5em;
23
+ }
24
+
25
+ .Select-option {
26
+ --bg-alpha: 0;
27
+ background-color: rgba(0, 0, 0, var(--bg-alpha));
28
+ padding: 0.5em 1.5em;
29
+ }
30
+
31
+ .Select-option:focus {
32
+ --bg-alpha: 0.025;
33
+ outline: none;
34
+ }
35
+
36
+ .Select-option--selected {
37
+ --bg-alpha: 0.05;
38
+ }
39
+
40
+ .Select-option--selected:focus {
41
+ --bg-alpha: 0.075;
42
+ }
43
+
44
+ @media (hover: hover) {
45
+ .Select-option:hover {
46
+ --bg-alpha: 0.025;
47
+ }
48
+
49
+ .Select-option--selected:hover {
50
+ --bg-alpha: 0.075;
51
+ }
52
+ }
@@ -0,0 +1,98 @@
1
+ sparkle-sidebar {
2
+ --sparkle-spacing-size-lg: 1rem;
3
+ --sparkle-transition-med: 0.5s;
4
+ --sparkle-color-dark-lighter: 89, 109, 127;
5
+ --sparkle-font-size-md: 1.25rem;
6
+ --sparkle-spacing-size-none: 0;
7
+ --sparkle-spacing-size-xxxs: 0.0625rem;
8
+ --sparkle-color-light-base: 1197, 209, 218;
9
+ --sparkle-font-size-lg: 1.5rem;
10
+ --sparkle-color-dark-base: 55, 68, 79;
11
+ }
12
+ .sparkle-sidebar {
13
+ height: 100%;
14
+ max-width: 90%;
15
+ position: fixed;
16
+ top: 0;
17
+ bottom: 0;
18
+ overflow-x: hidden;
19
+ overflow-y: auto;
20
+ background-color: #fff;
21
+ padding: var(--sparkle-spacing-size-lg);
22
+ -webkit-transition: all var(--sparkle-transition-med) ease-in-out;
23
+ transition: all var(--sparkle-transition-med) ease-in-out;
24
+ }
25
+ .sparkle-sidebar.left {
26
+ border-right: var(--sparkle-spacing-size-xxxs) solid rgba(var(--sparkle-color-dark-lighter), 1);
27
+ }
28
+ .sparkle-sidebar.left.size-sm {
29
+ width: 16rem;
30
+ left: -16rem;
31
+ }
32
+ .sparkle-sidebar.left.size-md {
33
+ width: 22.5rem;
34
+ left: -22.5rem;
35
+ }
36
+ .sparkle-sidebar.left.size-lg {
37
+ width: 30rem;
38
+ left: -30rem;
39
+ }
40
+ .sparkle-sidebar.left.size-xl {
41
+ width: 45rem;
42
+ left: -45rem;
43
+ }
44
+ .sparkle-sidebar.left.show {
45
+ visibility: visible;
46
+ left: 0;
47
+ }
48
+ .sparkle-sidebar.right {
49
+ border-right: var(--sparkle-spacing-size-xxxs) solid rgba(var(--sparkle-color-dark-lighter), 1);
50
+ }
51
+ .sparkle-sidebar.right.size-sm {
52
+ width: 16rem;
53
+ right: -16rem;
54
+ }
55
+ .sparkle-sidebar.right.size-md {
56
+ width: 22.5rem;
57
+ right: -22.5rem;
58
+ }
59
+ .sparkle-sidebar.right.size-lg {
60
+ width: 30rem;
61
+ right: -30rem;
62
+ }
63
+ .sparkle-sidebar.right.size-xl {
64
+ width: 45rem;
65
+ right: -45rem;
66
+ }
67
+ .sparkle-sidebar.right.show {
68
+ visibility: visible;
69
+ right: 0;
70
+ }
71
+ .sparkle-sidebar .drawer-header {
72
+ display: -ms-flexbox;
73
+ display: flex;
74
+ -ms-flex-pack: justify;
75
+ justify-content: space-between;
76
+ -ms-flex-line-pack: center;
77
+ align-content: center;
78
+ border-bottom: var(--sparkle-spacing-size-xxxs) solid rgba(var(--sparkle-color-light-base), 1);
79
+ font-size: var(--sparkle-font-size-lg);
80
+ color: rgba(var(--sparkle-color-dark-base), 1);
81
+ }
82
+ .sparkle-sidebar .drawer-header .drawer-title {
83
+ line-height: 1;
84
+ }
85
+ .sparkle-sidebar .drawer-header .drawer-close .ks-button .button {
86
+ padding: var(--sparkle-spacing-size-none);
87
+ }
88
+ .sparkle-sidebar .drawer-header .drawer-close .ks-button .button .button-text {
89
+ display: -ms-inline-flexbox;
90
+ display: inline-flex;
91
+ }
92
+ .sparkle-sidebar .drawer-header .drawer-close .ks-button .button .icon {
93
+ font-size: var(--sparkle-font-size-md);
94
+ }
95
+ .sparkle-sidebar .drawer-body {
96
+ padding-top: var(--sparkle-spacing-size-lg);
97
+ padding-bottom: var(--sparkle-spacing-size-lg);
98
+ }
@@ -0,0 +1,8 @@
1
+ lower-content-nav {
2
+ display: flex;
3
+ justify-content: space-between;
4
+ }
5
+
6
+ lower-content-nav > stencil-route-link {
7
+ display: inline-block;
8
+ }
@@ -0,0 +1,37 @@
1
+ sparkle-table-of-contents {
2
+ display: block;
3
+ font-size: 13px;
4
+ margin-bottom: 2rem;
5
+ }
6
+
7
+ sparkle-table-of-contents .Nav-header {
8
+ color: var(--text-color--lighter);
9
+ font-size: 0.75em;
10
+ font-weight: 800;
11
+ letter-spacing: 1px;
12
+ text-transform: uppercase;
13
+ padding-left: 0;
14
+ }
15
+
16
+ sparkle-table-of-contents ul {
17
+ padding: 0;
18
+ list-style: none;
19
+ line-height: 1.23em;
20
+ }
21
+
22
+ sparkle-table-of-contents .Nav-link {
23
+ padding-left: 0;
24
+ margin-left: 0;
25
+ }
26
+
27
+ sparkle-table-of-contents a {
28
+ color: inherit;
29
+ display: inline-block;
30
+ transition: .2s color, .3s transform ease-out;
31
+ }
32
+
33
+ sparkle-table-of-contents .Nav-link.selected a {
34
+ color: var(--accent-color);
35
+ transform: translateX(2px);
36
+ }
37
+
@@ -0,0 +1,64 @@
1
+ .Tabs,
2
+ .Tabs-tab {
3
+ display: block;
4
+ }
5
+
6
+ .Tabs-tab:not([selected]) {
7
+ display: none;
8
+ }
9
+
10
+ .Tabs-header {
11
+ border-bottom: solid 1px rgba(0, 32, 88, 0.1);
12
+ white-space: nowrap;
13
+ }
14
+
15
+ .Tabs-button {
16
+ --bg-alpha: 0;
17
+ appearance: none;
18
+ background-color: rgba(0, 0, 0, var(--bg-alpha));
19
+ border: none;
20
+ color: var(--text-color--light);
21
+ cursor: pointer;
22
+ font-family: inherit;
23
+ font-size: 10px;
24
+ font-weight: 600;
25
+ letter-spacing: 0.04em;
26
+ padding: 1rem;
27
+ text-transform: uppercase;
28
+ transform: translateY(1px);
29
+ }
30
+
31
+ .Tabs-button:first-child {
32
+ border-top-left-radius: 6px;
33
+ }
34
+
35
+ .Tabs-button:last-child {
36
+ border-top-right-radius: 6px;
37
+ }
38
+
39
+ .Tabs-button:focus {
40
+ outline: none;
41
+ }
42
+
43
+ .Tabs-button:focus {
44
+ --bg-alpha: 0.015;
45
+ }
46
+
47
+ @media (hover: hover) {
48
+ .Tabs-button:hover {
49
+ --bg-alpha: 0.015;
50
+ }
51
+ }
52
+
53
+ .Tabs-button:active {
54
+ --bg-alpha: 0.03;
55
+ }
56
+
57
+ .Tabs-button.is-selected {
58
+ border-bottom: solid 1px currentColor;
59
+ color: var(--accent-color);
60
+ }
61
+
62
+ .Tabs-tab sparkle-code pre {
63
+ margin-top: 0;
64
+ }
@@ -1 +1 @@
1
- import{r as e,h as o,H as t,e as n}from"./p-ee1e0eb4.js";import{C as a}from"./p-e8073714.js";const r=class{constructor(o){e(this,o),this.language="",this.showCopyConfirmation=!1}copyCodeText(){this.showCopyConfirmation=!0;const e=this.el.querySelector("code"),o=e&&e.textContent||"",t=document.createElement("textarea");t.value=o,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),setTimeout((()=>{this.showCopyConfirmation=!1}),2e3)}render(){return o(t,null,["shell","bash","sh"].includes(this.language)?"":o("div",{class:{"code-text__copy":!0,"show-confirmation":this.showCopyConfirmation}},o("a",{class:"code-text__copy-link",onClick:this.copyCodeText.bind(this)},"Copy"),o("span",{class:"code-text__copy-confirmation"},a({height:"26px",width:"26px"}),"Copied")))}get el(){return n(this)}};r.style='code[class*="language-"],pre[class*="language-"]{color:#4d4d4c;background:none;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*="language-"],:not(pre)>code[class*="language-"]{background:hsl(30, 20%, 25%)}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid hsl(30, 20%, 40%);border-radius:.5em;box-shadow:1px 1px .5em black inset}:not(pre)>code[class*="language-"]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid hsl(30, 20%, 40%);box-shadow:1px 1px .3em -.1em black inset;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#8c9296}.token.punctuation{opacity:.7}.namespace{opacity:.7}.token.tag{color:#91c5ff}.token.tag .token.tag{color:#2b90ff}.token.property,.token.attr-name,.token.boolean,.token.number,.token.constant,.token.symbol{color:#8454ff}.token.selector,.token.char,.token.function,.token.builtin,.token.inserted{color:#ff6810}.token.operator,.token.string,.token.entity,.token.url,.token.attr-value,.language-css .token.string,.style .token.string,.token.variable{color:#42b983}.token.atrule{color:#ffbb01}.token.regex,.token.keyword,.token.important{color:#f55073}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}.token.deleted{color:red}sparkle-code[language="shell"]>pre{background-color:var(--text-color--dark);border-radius:7px}sparkle-code[language="shell"]:before{display:none}sparkle-code[language="shell"] code{color:rgba(255, 255, 255, 0.7);font-size:13px}sparkle-code[language="shell"] .token{color:inherit}sparkle-code[language="shell"] .token.prompt{color:#fb96f9;user-select:none}sparkle-code[language="shell"] .token.comment{color:rgba(255, 255, 255, 0.45)}sparkle-code{display:block;position:relative}sparkle-code:before{color:#bdc5d1;content:attr(language);font-family:var(--code-font-family);font-size:10px;letter-spacing:0.05em;line-height:1;padding:0.75em;position:absolute;right:0;text-transform:uppercase;top:0}sparkle-code[language="shell"] pre{white-space:pre-wrap}.code-text__copy{position:absolute;right:0;top:-1.6rem;height:20px}.code-text__copy-link,.code-text__copy-confirmation{padding:4px 5px;font-size:12px;line-height:12px;font-weight:600;position:absolute;right:0;top:0}.code-text__copy-link{transition:0.2s transform ,\r\n 0.2s opacity,\r\n 0.2s color;color:#70A4FF;background-color:#E0EEFF;border-radius:4px;display:inline-block;cursor:pointer;opacity:1;transform:translate3d(0,0,0);z-index:5}.code-text__copy-link:hover{color:var(--blue)}.code-text__copy-confirmation{transition:0.2s transform ,\r\n 0.2s opacity;color:#0ec254;opacity:0;transform:translate3d(0,5px,0);z-index:1;display:flex;align-items:center;height:20px;padding:0}.code-text__copy-confirmation svg{fill:#0ec254;margin-right:-4px}.show-confirmation .code-text__copy-link{opacity:0;transform:translate3d(0,-5px,0);pointer-events:none}.show-confirmation .code-text__copy-confirmation{opacity:1;transform:translate3d(0,0,0)}';export{r as sparkle_code}
1
+ import{r as e,h as o,H as t,e as n}from"./p-ee1e0eb4.js";import{C as a}from"./p-cabe9139.js";const r=class{constructor(o){e(this,o),this.language="",this.showCopyConfirmation=!1}copyCodeText(){this.showCopyConfirmation=!0;const e=this.el.querySelector("code"),o=e&&e.textContent||"",t=document.createElement("textarea");t.value=o,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),setTimeout((()=>{this.showCopyConfirmation=!1}),2e3)}render(){return o(t,null,["shell","bash","sh"].includes(this.language)?"":o("div",{class:{"code-text__copy":!0,"show-confirmation":this.showCopyConfirmation}},o("a",{class:"code-text__copy-link",onClick:this.copyCodeText.bind(this)},"Copy"),o("span",{class:"code-text__copy-confirmation"},a({height:"26px",width:"26px"}),"Copied")))}get el(){return n(this)}};r.style='code[class*="language-"],pre[class*="language-"]{color:#4d4d4c;background:none;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*="language-"],:not(pre)>code[class*="language-"]{background:hsl(30, 20%, 25%)}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid hsl(30, 20%, 40%);border-radius:.5em;box-shadow:1px 1px .5em black inset}:not(pre)>code[class*="language-"]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid hsl(30, 20%, 40%);box-shadow:1px 1px .3em -.1em black inset;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#8c9296}.token.punctuation{opacity:.7}.namespace{opacity:.7}.token.tag{color:#91c5ff}.token.tag .token.tag{color:#2b90ff}.token.property,.token.attr-name,.token.boolean,.token.number,.token.constant,.token.symbol{color:#8454ff}.token.selector,.token.char,.token.function,.token.builtin,.token.inserted{color:#ff6810}.token.operator,.token.string,.token.entity,.token.url,.token.attr-value,.language-css .token.string,.style .token.string,.token.variable{color:#42b983}.token.atrule{color:#ffbb01}.token.regex,.token.keyword,.token.important{color:#f55073}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}.token.deleted{color:red}sparkle-code[language="shell"]>pre{background-color:var(--text-color--dark);border-radius:7px}sparkle-code[language="shell"]:before{display:none}sparkle-code[language="shell"] code{color:rgba(255, 255, 255, 0.7);font-size:13px}sparkle-code[language="shell"] .token{color:inherit}sparkle-code[language="shell"] .token.prompt{color:#fb96f9;user-select:none}sparkle-code[language="shell"] .token.comment{color:rgba(255, 255, 255, 0.45)}sparkle-code{display:block;position:relative}sparkle-code:before{color:#bdc5d1;content:attr(language);font-family:var(--code-font-family);font-size:10px;letter-spacing:0.05em;line-height:1;padding:0.75em;position:absolute;right:0;text-transform:uppercase;top:0}sparkle-code[language="shell"] pre{white-space:pre-wrap}.code-text__copy{position:absolute;right:0;top:-1.6rem;height:20px}.code-text__copy-link,.code-text__copy-confirmation{padding:4px 5px;font-size:12px;line-height:12px;font-weight:600;position:absolute;right:0;top:0}.code-text__copy-link{transition:0.2s transform ,\r\n 0.2s opacity,\r\n 0.2s color;color:#70A4FF;background-color:#E0EEFF;border-radius:4px;display:inline-block;cursor:pointer;opacity:1;transform:translate3d(0,0,0);z-index:5}.code-text__copy-link:hover{color:var(--blue)}.code-text__copy-confirmation{transition:0.2s transform ,\r\n 0.2s opacity;color:#0ec254;opacity:0;transform:translate3d(0,5px,0);z-index:1;display:flex;align-items:center;height:20px;padding:0}.code-text__copy-confirmation svg{fill:#0ec254;margin-right:-4px}.show-confirmation .code-text__copy-link{opacity:0;transform:translate3d(0,-5px,0);pointer-events:none}.show-confirmation .code-text__copy-confirmation{opacity:1;transform:translate3d(0,0,0)}';export{r as sparkle_code}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,c as s,e}from"./p-ee1e0eb4.js";import{g as a}from"./p-5d409601.js";import{S as o}from"./p-935e7cfc.js";class n{constructor(){this.pItems={}}fromSrt(t,i){var s=!!i;(t=(t=t.replace(/\r/g,"")).split(/(\d+)\n(\d{2}:\d{2}:\d{2},\d{3}) --> (\d{2}:\d{2}:\d{2},\d{3})/g)).shift();for(var e={},a=0;a<t.length;a+=4)e[s?this.timeS(t[a+1].trim()):t[a+1].trim()]=t[a+3].trim();return e}toSrt(t){if(!(t instanceof Array))return"";for(var i="",s=0;s<t.length;s++){var e=t[s];isNaN(e.startTime)||isNaN(e.endTime)||(e.startTime=this.msTime(parseInt(e.startTime,10)),e.endTime=this.msTime(parseInt(e.endTime,10))),i+=e.id+"\r\n",i+=e.startTime+" --\x3e "+e.endTime+"\r\n",i+=e.text.replace("\n","\r\n")+"\r\n\r\n"}return i}timeS(t){var i=/(\d+):(\d{2}):(\d{2}),(\d{3})/.exec(t);if(null===i)return 0;for(var s=1;s<5;s++)i[s]=parseInt(i[s],10).toString(),isNaN(parseInt(i[s],10))&&(i[s]="0");return 3600*parseInt(i[1],10)+60*parseInt(i[2],10)+parseInt(i[3],10)+Math.floor(parseInt(i[4],10)/1e3)}msTime(t){var i=[36e5,6e4,1e3],s=[];for(var e in i){var a=(t/i[e]>>0).toString();a.length<2&&(a="0"+a),t%=i[e],s.push(a)}var o=t.toString();if(o.length<3)for(let t=0;t<=3-o.length;t++)o="0"+o;return s.join(":")+","+o}}const r=class{constructor(i){t(this,i),this.showCaption=!1,this.paused=!0,this.dataLoaded=!1,this.currentProgressWidth=0,this.captionText="",this.showFirstFrame=!1,this.firstFramePath="",this.isBusy=!1,this.animationVideoProgress="0",this.captionData={}}closedCaptionChange(t){this.showCaption=!this.showCaption}onClassRoomModeChanged(t){this.classMode=t.detail}componentWillLoad(){this.classMode=a(o.LOCALSTORAGE_CLASSROOM_MODE);const t=document.createElement("script");this.firstFramePath=this.src.replace(".js",".png"),t.src=this.src,document.body.appendChild(t),this.readTextFile(this.src.replace(".js",".srt")),this.rergisterSoundControls()}readTextFile(t){let i=this;var s=new XMLHttpRequest;s.open("GET",t,!1),s.onreadystatechange=function(){if(4===s.readyState&&(200===s.status||0==s.status)){var t=s.responseText,e=new n;i.captionData=e.fromSrt(t,!0)}},s.send(null)}isScriptLoaded(t){for(var i=document.getElementsByTagName("script"),s=i.length;s--;)if(i[s].getAttribute("src")==t)return!0;return!1}rergisterSoundControls(){window.playSound=t=>(this.sound&&this.sound.stop(),this.sound=createjs.Sound.play(t,{interrupt:createjs.Sound.INTERRUPT_EARLY,loop:0,volume:1}),this.sound),window.resetToStart=()=>{console.log("reset"),this.rewindAnimationToStart()}}startLoading(){this.isBusy=!0,this.paused=!1}doneLoading(){this.isBusy=!1,this.dataLoaded=!0,this.paused=!1}handleFileLoad(t){var i=this.comp.getImages();t&&"image"==t.item.type&&(i[t.item.id]=t.result)}handleQueueProgress(t){return t=>{this.animationVideoProgress=t.loaded?(100*t.loaded).toFixed(0):"0",1==t.loaded&&this.doneLoading()}}handleComplete(t){for(var i=this.comp.getSpriteSheet(),s=t.target,e=this.library.ssMetadata,a=0;a<e.length;a++)i[e[a].name]=new createjs.SpriteSheet({images:[s.getResult(e[a].name)],frames:e[a].frames});var o=this.src.substring(this.src.lastIndexOf("/")+1,this.src.lastIndexOf("."));this.exportRoot=new this.library[o],this.stage=new this.library.Stage(this.canvas),this.makeResponsive(!0,"both",!1,1),AdobeAn.compositionLoaded(this.library.properties.id),this.stage.addChild(this.exportRoot),createjs.Ticker.framerate=this.library.properties.fps,createjs.Ticker.paused=!1,createjs.Ticker.addEventListener("tick",this.stage),createjs.Ticker.addEventListener("tick",(t=>{this.tickHandler(t)}))}loadAnimation(){this.startLoading(),createjs.Sound.initializeDefaultPlugins()&&(this.canvas=this.el.querySelector(".video-canvas"),this.anim_container=this.el.querySelector(".canvas-container"),this.comp=AdobeAn.getComposition(this.composition),this.canvas.style.width="100%",this.canvas.style.height=this.canvas.offsetWidth+"px",this.anim_container.style.height=this.canvas.offsetWidth+"px",this.library=this.comp.getLibrary(),this.loader=new createjs.LoadQueue(!1),this.loader.setMaxConnections(3),this.loader.maintainScriptOrder=!0,this.loader.installPlugin(createjs.Sound),this.loader.addEventListener("complete",(t=>{this.handleComplete(t)})),this.loader.addEventListener("fileload",(t=>{this.handleFileLoad(t)})),this.loader.addEventListener("progress",this.handleQueueProgress(this)),this.loader.loadManifest(this.library.properties.manifest,!0,this.src.substring(0,this.src.lastIndexOf("/")+1)))}playButtonAction(){this.dataLoaded?this.playPauseAnimation():this.loadAnimation()}playPauseAnimation(){createjs.Ticker.paused?this.playAnimation():this.pauseAnimation()}async playAnimation(){if(this.showFirstFrame=!1,null!=this.loader&&this.loader.close(),createjs&&createjs.Ticker){let t=!1,i=this.sound;i&&(i.paused=t),createjs.Ticker.paused=t,createjs.Ticker.addEventListener("tick",this.stage),this.paused=t}}async pauseAnimation(){if(null!=this.loader&&this.loader.close(),createjs&&createjs.Ticker){let t=!0,i=this.sound;i&&(i.paused=t),createjs.Ticker.paused=t,createjs.Ticker.removeEventListener("tick",this.stage),this.paused=t}}disconnectedCallback(){this.pauseAnimation(),createjs.Sound.removeAllSounds()}async classRoomModeChanged(t){this.classMode=t}async destroyAnimation(){this.pauseAnimation()}makeResponsive(t,i,s,e){window.addEventListener("resize",(()=>this.resizeCanvas(t,i,s,e))),this.resizeCanvas(t,i,s,e)}resizeCanvas(t,i,s,e){var a,o,n=1,r=this.library.properties.width,h=this.library.properties.height,l=window.innerWidth,c=window.innerHeight,d=window.devicePixelRatio||1,p=l/r,u=c/h,m=1;t&&("width"==i&&a==l||"height"==i&&o==c?m=n:s?1==e?m=Math.min(p,u):2==e&&(m=Math.max(p,u)):(l<r||c<h)&&(m=Math.min(p,u)));var g=this.el.querySelector(".canvas-container");this.canvas.width=r*d*m,this.canvas.height=h*d*m,this.canvas.style.width="100%",this.canvas.style.height=this.canvas.offsetWidth+"px",g.style.height=this.canvas.offsetWidth+"px",this.stage.scaleX=d*m,this.stage.scaleY=d*m,a=l,o=c,n=m,this.sizeOfCanvas=this.canvas.offsetWidth;var v=this.el.querySelector(".progressBar");this.sizeofProgressBar=v.offsetWidth,this.stage.tickOnUpdate=!1,this.stage.update(),this.stage.tickOnUpdate=!0}tickHandler(t){t.paused||(this.timeline=this.stage.children[0].timeline,this.captionData[Math.floor(this.timeline.position/this.library.properties.fps)]&&(this.captionText=this.captionData[Math.floor(this.timeline.position/this.library.properties.fps)]),this.timeline.position%10==0&&(this.timeline.position>this.timeline.duration-10&&this.animationCompleted(),this.currentProgressWidth=parseFloat((this.timeline.position/this.timeline.duration*this.sizeofProgressBar).toFixed(0))))}animationCompleted(){console.log("completed"),this.showFirstFrame=!0,this.rewindAnimationTo(0),this.pauseAnimation()}rewindAnimationTo(t){let i=this.sound;i&&(i.paused=!0);let s=this.stage.children[0],e=s.timeline;t<0&&(t=0),t>e.duration&&(t=e.duration-10),this.paused?(s.gotoAndStop(t),this.stage.update(),i&&!i.getPaused()&&(createjs.Ticker.paused=!0)):(s.gotoAndPlay(t),createjs.Ticker.paused=!1)}rewindAnimationToStart(){this.paused=!0,this.rewindAnimationTo(0)}rewindAnimation(t){t.stopPropagation();let i=Math.round(t.offsetX/this.sizeofProgressBar*this.stage.children[0].timeline.duration);this.rewindAnimationTo(i)}rewind5Sec(){this.rewindAnimationTo(this.stage.children[0].timeline.position-5*this.library.properties.fps)}fastForward5Sec(){this.rewindAnimationTo(this.stage.children[0].timeline.position+5*this.library.properties.fps)}muteVolume(){let t=this.sound;t&&(t.volume=0)}downVolume(){let t=this.sound;t&&t._getVolume()>.9&&(t.volume=t._getVolume()-.1)}upVolume(){let t=this.sound;t&&t._getVolume()<1&&(t.volume=t._getVolume()+.1)}render(){return i("div",{class:"cavase-main-container"},i("div",{class:"canvas-container",id:"canvas-container"},this.classMode?"":i("div",null,i("canvas",{class:"video-canvas",onClick:()=>this.playButtonAction()}),this.showCaption?i("div",{class:"caption"},this.captionText):""),!this.dataLoaded||this.showFirstFrame?i("img",{class:"frame-img",src:this.firstFramePath}):"",this.classMode?i("img",{class:"overlay-img",src:s("./assets/play-button-disabled-overlay.png")}):"",!this.classMode&&this.paused?i("img",{class:"overlay-img",onClick:()=>this.playButtonAction(),src:s("./assets/play-button-overlay.png")}):"",this.isBusy?i("div",{class:"loading-container"},i("div",{class:"uil-ring-css"},i("div",null),i("a",null,"Loading ",this.animationVideoProgress,"%"))):""),this.dataLoaded?i("div",{class:"navControls"},i("div",{class:"progressBar",onClick:t=>this.rewindAnimation(t)},i("div",{class:"currentProgress",style:{width:this.currentProgressWidth+"px"}})),i("div",{class:"button-panel"},i("ion-button",{size:"small",color:"transperant",onClick:()=>this.rewind5Sec()}," ",i("ion-icon",{name:"play-back-outline"})," "),i("ion-button",{size:"small",color:"transperant",onClick:()=>this.playButtonAction()}," ",i("ion-icon",this.paused?{name:"pause-outline"}:{name:"play-outline"})),i("ion-button",{size:"small",color:"transperant",onClick:()=>this.fastForward5Sec()}," ",i("ion-icon",{name:"play-forward-outline"})))):"",this.dataLoaded&&this.captionText?i("div",{class:"closed-caption"},i("ion-item",{lines:"none"},i("ion-label",null,"Closed Caption"),i("ion-toggle",{slot:"end",color:"primary",checked:this.showCaption}))):"")}static get assetsDirs(){return["assets"]}get el(){return e(this)}};r.style='.video-canvas{position:absolute;display:block;background-color:#f5f5f5;width:auto}.closed-caption{justify-content:flex-end;width:100%;display:flex}sparkle-animation-player{width:100%;margin:0 auto}.caption{position:absolute;bottom:0px;color:white;text-align:center;width:100%;text-shadow:1px 1px 2px #e50539}.canvas-container{width:680px;height:680px;background-color:#f5f5f5;border-radius:10px;position:relative}.frame-img{position:absolute;display:block;max-width:100%;width:100%;height:auto}.overlay-img{position:absolute;z-index:9999;top:0px;display:block;max-width:100%;width:100%;height:auto}.button-panel{display:flex;justify-content:center}ion-icon{color:var(--ion-color-primary)}.navControls{width:680px;background:transparent;border-radius:10px;position:relative;padding-top:15px;display:flex;flex-direction:column;align-items:center}.navControls .progressBar{flex:100%;border-radius:20px;position:relative;left:0;right:0;height:4px;background-color:rgba(205, 205, 205, 0.7);width:100%}.navControls .progressBar .currentProgress{border-radius:20px;position:absolute;height:25px;background-color:var(--ion-color-primary);transition:width 0.5s;width:100%}.navControls .progressBar .currentProgress:before{position:absolute;top:50%;right:4px;content:" ";display:block;width:12px;height:12px;margin-top:-10px;background:#e5053a;border-radius:10px;border:4px solid #d9d4d4;z-index:10}#dom_overlay_container{pointer-events:none;overflow:hidden;position:absolute;left:0px;top:0px;display:block}.cavase-main-container{width:100%;display:flex;flex-wrap:wrap;justify-content:center;padding:15px;background-position:center;background-size:cover;background-repeat:no-repeat}.loading-container{height:100%;display:flex;justify-content:center;align-items:center}.uil-ring-css{position:absolute}ion-button{--ion-color-base:transparent;--ion-color-contrast:var(--ion-color-primary);--box-shadow:none !important}@media screen and (min-width: 760px){.navControls{flex-direction:row}.navControls .progressBar{height:24px;flex:75%;width:75%}.button-panel{flex:25%;width:25%}}';export{r as sparkle_animation_player}
@@ -1 +1 @@
1
- import{r as s,h as e,e as l,H as t}from"./p-ee1e0eb4.js";import{D as a}from"./p-e8073714.js";const i=class{constructor(e){s(this,e),this.isOpen=!0}hostData(){return{class:"sparkle-menu-collapsible--status-open",role:"button",tabindex:"0","aria-label":"Collapsible Menu"}}toggle(){this.isOpen=!this.isOpen,r(this.el,"sparkle-menu-collapsible--status-"),this.el.classList.add("sparkle-menu-collapsible--status-"+(this.isOpen?"open":"closed"))}__stencil_render(){return[e("a",{onClick:()=>this.toggle(),class:"sparkle-menu-collapsible__title"},this.heading,e(a,null)),e("div",{class:"sparkle-menu-collapsible__contents"},e("slot",null))]}get el(){return l(this)}render(){return e(t,this.hostData(),this.__stencil_render())}},r=(s,e)=>{s.classList.forEach((l=>{l.startsWith(e)&&s.classList.remove(l)}))};i.style="collapsible{}";export{i as sparkle_menu_collapsible}
1
+ import{r as s,h as e,e as l,H as t}from"./p-ee1e0eb4.js";import{D as a}from"./p-cabe9139.js";const i=class{constructor(e){s(this,e),this.isOpen=!0}hostData(){return{class:"sparkle-menu-collapsible--status-open",role:"button",tabindex:"0","aria-label":"Collapsible Menu"}}toggle(){this.isOpen=!this.isOpen,r(this.el,"sparkle-menu-collapsible--status-"),this.el.classList.add("sparkle-menu-collapsible--status-"+(this.isOpen?"open":"closed"))}__stencil_render(){return[e("a",{onClick:()=>this.toggle(),class:"sparkle-menu-collapsible__title"},this.heading,e(a,null)),e("div",{class:"sparkle-menu-collapsible__contents"},e("slot",null))]}get el(){return l(this)}render(){return e(t,this.hostData(),this.__stencil_render())}},r=(s,e)=>{s.classList.forEach((l=>{l.startsWith(e)&&s.classList.remove(l)}))};i.style="collapsible{}";export{i as sparkle_menu_collapsible}