@sparkle-learning/core 0.0.45 → 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.
- package/dist/cjs/header-mobile-collapse_61.cjs.entry.js +6 -106
- package/dist/cjs/{icons-c61db785.js → icons-fda820af.js} +0 -0
- package/dist/cjs/sparkle-code.cjs.entry.js +1 -1
- package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +1 -1
- package/dist/esm/header-mobile-collapse_61.entry.js +8 -108
- package/dist/esm/{icons-9b62a1ec.js → icons-1c794c74.js} +0 -0
- package/dist/esm/sparkle-code.entry.js +1 -1
- package/dist/esm/sparkle-menu-collapsible.entry.js +1 -1
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +49 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +208 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +31 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +245 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +115 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +255 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +232 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +3 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +25 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +71 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +194 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +4 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +67 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +18 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +93 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +52 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +98 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +8 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +37 -0
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +64 -0
- package/dist/sparkle-core/{p-0fa3fd63.entry.js → p-11a6c175.entry.js} +1 -1
- package/dist/sparkle-core/{p-a102341e.entry.js → p-957715c5.entry.js} +1 -1
- package/dist/sparkle-core/{p-421d4a6e.entry.js → p-a465598d.entry.js} +26 -30
- package/dist/sparkle-core/{p-e8073714.js → p-cabe9139.js} +0 -0
- package/dist/sparkle-core/sparkle-core.esm.js +1 -1
- package/package.json +2 -2
package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css
ADDED
@@ -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,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
|
+
|
package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css
ADDED
@@ -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-
|
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}
|
@@ -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-
|
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}
|