@xplortech/apollo-core 0.1.1 → 0.2.0
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/CHANGELOG.md +10 -0
- package/build/style.css +703 -201
- package/dist/apollo-core/apollo-core.css +4 -2114
- package/dist/apollo-core/apollo-core.esm.js +1 -125
- package/dist/apollo-core/index.esm.js +0 -1
- package/dist/apollo-core/{p-6c4f9227.entry.js → p-fc589c84.entry.js} +3 -3
- package/dist/cjs/apollo-core.cjs.js +4 -112
- package/dist/cjs/index.cjs.js +0 -1
- package/dist/cjs/loader.cjs.js +2 -18
- package/dist/cjs/{xpl-avatar_9.cjs.entry.js → xpl-avatar_13.cjs.entry.js} +48 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -1
- package/dist/cjs/xpl-pagination.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +7 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +3 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +3 -0
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +39 -0
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +43 -0
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +10 -0
- package/dist/custom-elements/index.d.ts +36 -0
- package/dist/custom-elements/index.js +56 -527
- package/dist/esm/apollo-core.js +4 -112
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +2 -18
- package/dist/esm/{xpl-avatar_9.entry.js → xpl-avatar_13.entry.js} +45 -1
- package/dist/esm/xpl-choicelist.entry.js +1 -1
- package/dist/esm/xpl-pagination.entry.js +1 -1
- package/dist/stories/backdrop.stories.js +18 -0
- package/dist/stories/breadcrumbs.stories.js +6 -6
- package/dist/stories/content-area.stories.js +53 -0
- package/dist/stories/main-nav.stories.js +308 -0
- package/dist/types/Users/awentt/Sites/apollo/.stencil/stories/backdrop.stories.d.ts +16 -0
- package/dist/types/Users/awentt/Sites/apollo/.stencil/stories/content-area.stories.d.ts +29 -0
- package/dist/types/Users/awentt/Sites/apollo/.stencil/stories/main-nav.stories.d.ts +30 -0
- package/dist/types/Users/{fernandogelin/Projects → awentt/Sites}/apollo/.stencil/stories/table.stories.d.ts +1 -2
- package/dist/types/components/xpl-backdrop/xpl-backdrop.d.ts +3 -0
- package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.d.ts +3 -0
- package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.d.ts +3 -0
- package/dist/types/components/xpl-content-area/xpl-content-area.d.ts +7 -0
- package/dist/types/components/xpl-main-nav/xpl-main-nav.d.ts +7 -0
- package/dist/types/components/xpl-nav-item/xpl-nav-item.d.ts +3 -0
- package/dist/types/components.d.ts +94 -0
- package/package.json +3 -2
- package/dist/apollo-core/app-globals-0f993ce5.js +0 -3
- package/dist/apollo-core/css-shim-bbdf0cc6.js +0 -4
- package/dist/apollo-core/dom-1f98a75f.js +0 -73
- package/dist/apollo-core/index-912d1a21.js +0 -584
- package/dist/apollo-core/index-f313719f.js +0 -2938
- package/dist/apollo-core/shadow-css-67b66845.js +0 -389
- package/dist/apollo-core/xpl-avatar.entry.js +0 -19
- package/dist/apollo-core/xpl-badge.entry.js +0 -17
- package/dist/apollo-core/xpl-breadcrumb-item.entry.js +0 -19
- package/dist/apollo-core/xpl-breadcrumbs.entry.js +0 -14
- package/dist/apollo-core/xpl-button.entry.js +0 -16086
- package/dist/apollo-core/xpl-checkbox.entry.js +0 -14
- package/dist/apollo-core/xpl-choicelist.entry.js +0 -12
- package/dist/apollo-core/xpl-pagination.entry.js +0 -72
- package/dist/apollo-core/xpl-radio.entry.js +0 -14
- package/dist/apollo-core/xpl-table.entry.js +0 -85
- package/dist/apollo-core/xpl-utility-bar.entry.js +0 -12
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-a7379e2b.js +0 -6
- package/dist/cjs/dom-3e7d9c3b.js +0 -75
- package/dist/cjs/index-318d5fc7.js +0 -586
- package/dist/cjs/index-fca88002.js +0 -2973
- package/dist/cjs/shadow-css-09555044.js +0 -391
- package/dist/cjs/xpl-avatar.cjs.entry.js +0 -23
- package/dist/cjs/xpl-badge.cjs.entry.js +0 -21
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +0 -23
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +0 -18
- package/dist/cjs/xpl-button.cjs.entry.js +0 -16090
- package/dist/cjs/xpl-checkbox.cjs.entry.js +0 -18
- package/dist/cjs/xpl-radio.cjs.entry.js +0 -18
- package/dist/cjs/xpl-table.cjs.entry.js +0 -89
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +0 -16
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/css-shim-bbdf0cc6.js +0 -4
- package/dist/esm/dom-1f98a75f.js +0 -73
- package/dist/esm/index-912d1a21.js +0 -584
- package/dist/esm/index-f313719f.js +0 -2938
- package/dist/esm/shadow-css-67b66845.js +0 -389
- package/dist/esm/xpl-avatar.entry.js +0 -19
- package/dist/esm/xpl-badge.entry.js +0 -17
- package/dist/esm/xpl-breadcrumb-item.entry.js +0 -19
- package/dist/esm/xpl-breadcrumbs.entry.js +0 -14
- package/dist/esm/xpl-button.entry.js +0 -16086
- package/dist/esm/xpl-checkbox.entry.js +0 -14
- package/dist/esm/xpl-radio.entry.js +0 -14
- package/dist/esm/xpl-table.entry.js +0 -85
- package/dist/esm/xpl-utility-bar.entry.js +0 -12
- /package/dist/types/Users/{fernandogelin/Projects → awentt/Sites}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → awentt/Sites}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → awentt/Sites}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → awentt/Sites}/apollo/.stencil/stories/button.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → awentt/Sites}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → awentt/Sites}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → awentt/Sites}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → awentt/Sites}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → awentt/Sites}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: "Components/Navigation/Main Nav",
|
|
3
|
+
argTypes: {
|
|
4
|
+
width: {
|
|
5
|
+
options: ["default", "sm", "md"],
|
|
6
|
+
control: {
|
|
7
|
+
type: "select",
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export const MainNav = ({ width }) => `
|
|
13
|
+
<xpl-main-nav width="${width}">
|
|
14
|
+
<svg
|
|
15
|
+
slot="logo"
|
|
16
|
+
width="42"
|
|
17
|
+
height="42"
|
|
18
|
+
viewBox="0 0 42 42"
|
|
19
|
+
fill="none"
|
|
20
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
21
|
+
>
|
|
22
|
+
<path
|
|
23
|
+
d="M0 4C0 1.79086 1.79086 0 4 0H38C40.2091 0 42 1.79086 42 4V38C42 40.2091 40.2091 42 38 42H4C1.79086 42 0 40.2091 0 38V4Z"
|
|
24
|
+
fill="white"
|
|
25
|
+
/>
|
|
26
|
+
<g clip-path="url(#clip0_1237:41953)">
|
|
27
|
+
<path
|
|
28
|
+
d="M33.6029 8.55469C26.4683 8.88391 19.9116 12.5273 15.9331 18.3875C13.266 17.9266 10.5321 18.5851 8.39844 20.2092V21.7895C14.9107 21.7895 20.1783 26.9913 20.2005 33.4002V33.4221H21.8008C23.4455 31.3151 24.1345 28.6154 23.6456 25.9816C29.5799 22.0748 33.2695 15.6001 33.6029 8.55469ZM22.3564 16.8731C22.3564 15.3367 23.6233 14.0857 25.1792 14.0857C26.735 14.0857 28.0019 15.3367 28.0019 16.8731C28.0019 18.4095 26.735 19.6605 25.1792 19.6605C23.6233 19.6605 22.3564 18.4095 22.3564 16.8731Z"
|
|
29
|
+
fill="#F44E27"
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
d="M12.3762 27.431C10.7314 26.9701 8.9978 27.8919 8.53105 29.538C8.44215 29.8014 8.41992 30.0867 8.41992 30.3721V33.4448H11.5316C11.7983 33.4448 12.0428 33.4229 12.2873 33.357C13.9542 32.94 14.9544 31.2719 14.5321 29.6258C14.2432 28.5503 13.4208 27.7383 12.3762 27.431Z"
|
|
33
|
+
fill="#F44E27"
|
|
34
|
+
/>
|
|
35
|
+
</g>
|
|
36
|
+
<defs>
|
|
37
|
+
<clipPath id="clip0_1237:41953">
|
|
38
|
+
<rect
|
|
39
|
+
width="25.3165"
|
|
40
|
+
height="25"
|
|
41
|
+
fill="white"
|
|
42
|
+
transform="translate(8.3418 8.5)"
|
|
43
|
+
/>
|
|
44
|
+
</clipPath>
|
|
45
|
+
</defs>
|
|
46
|
+
</svg>
|
|
47
|
+
<p slot="brand-name">Client Name</p>
|
|
48
|
+
<ul slot="navigation">
|
|
49
|
+
<xpl-nav-item>
|
|
50
|
+
<a slot="link" href="javascript:;">
|
|
51
|
+
<svg
|
|
52
|
+
slot="icon"
|
|
53
|
+
viewBox="0 0 16 16"
|
|
54
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
55
|
+
>
|
|
56
|
+
<path
|
|
57
|
+
d="M13.8795 7.82083L12.6661 6.82312V4.83311C12.6661 4.7889 12.6486 4.74651 12.6173 4.71525C12.5861 4.684 12.5437 4.66644 12.4995 4.66644H11.8328C11.7892 4.66671 11.7474 4.68404 11.7165 4.71473C11.6855 4.74542 11.6678 4.78702 11.6672 4.83061V6.00186L8.74673 3.60393C8.5369 3.42922 8.27248 3.33356 7.99944 3.33356C7.72639 3.33356 7.46198 3.42922 7.25214 3.60393L2.1194 7.82083C2.08583 7.84893 2.05812 7.88336 2.03786 7.92217C2.01759 7.96097 2.00517 8.00339 2.0013 8.047C1.99744 8.0906 2.00219 8.13454 2.01531 8.17631C2.02842 8.21808 2.04963 8.25685 2.07773 8.29042L2.29107 8.54667C2.3478 8.61441 2.42912 8.65685 2.51713 8.66466C2.60515 8.67248 2.69266 8.64502 2.76045 8.58834L3.33274 8.11833V11.9998C3.33324 12.1765 3.40363 12.3458 3.52855 12.4707C3.65347 12.5956 3.82275 12.666 3.99941 12.6665H6.66609C6.84275 12.666 7.01204 12.5956 7.13696 12.4707C7.26187 12.3458 7.33227 12.1765 7.33277 11.9998V9.83314H8.66611V11.9998C8.6666 12.1765 8.737 12.3458 8.86192 12.4707C8.98683 12.5956 9.15612 12.666 9.33278 12.6665H11.9995C12.1753 12.6661 12.3439 12.5964 12.4687 12.4726C12.5935 12.3487 12.6644 12.1806 12.6661 12.0048V8.11792L13.2397 8.58917C13.3075 8.64586 13.395 8.67331 13.483 8.6655C13.571 8.65768 13.6523 8.61524 13.7091 8.5475L13.9222 8.29146C13.9504 8.2578 13.9717 8.2189 13.9848 8.17699C13.9979 8.13509 14.0026 8.091 13.9986 8.04727C13.9947 8.00354 13.9821 7.96102 13.9616 7.92216C13.9412 7.8833 13.9133 7.84887 13.8795 7.82083V7.82083ZM11.663 11.6665H9.66611V9.4998C9.66562 9.32314 9.59522 9.15386 9.4703 9.02894C9.34539 8.90402 9.1761 8.83363 8.99944 8.83313H6.99943C6.82277 8.83363 6.65349 8.90402 6.52857 9.02894C6.40365 9.15386 6.33325 9.32314 6.33276 9.4998V11.6665H4.33275V7.29708L7.99944 4.28414L11.6661 7.29583L11.663 11.6665Z"
|
|
58
|
+
/>
|
|
59
|
+
</svg>
|
|
60
|
+
<p>Dashboard</p>
|
|
61
|
+
</a>
|
|
62
|
+
</xpl-nav-item>
|
|
63
|
+
<xpl-nav-item>
|
|
64
|
+
<a slot="link" href="javascript:;">
|
|
65
|
+
<svg
|
|
66
|
+
slot="icon"
|
|
67
|
+
viewBox="0 0 16 16"
|
|
68
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
69
|
+
>
|
|
70
|
+
<path
|
|
71
|
+
d="M13.4375 4.25H11.1875C10.877 4.25 10.625 4.50172 10.625 4.8125V7.0625C10.625 7.37305 10.877 7.625 11.1875 7.625H13.4375C13.748 7.625 14 7.37305 14 7.0625V4.8125C14 4.50172 13.748 4.25 13.4375 4.25ZM12.875 6.5H11.75V5.375H12.875V6.5ZM13.4375 8.375H11.1875C10.877 8.375 10.625 8.62672 10.625 8.9375V11.1875C10.625 11.498 10.877 11.75 11.1875 11.75H13.4375C13.748 11.75 14 11.498 14 11.1875V8.9375C14 8.62672 13.748 8.375 13.4375 8.375ZM12.875 10.625H11.75V9.5H12.875V10.625ZM4.8125 4.25H2.5625C2.25195 4.25 2 4.50172 2 4.8125V7.0625C2 7.37305 2.25195 7.625 2.5625 7.625H4.8125C5.12305 7.625 5.375 7.37305 5.375 7.0625V4.8125C5.375 4.50172 5.12305 4.25 4.8125 4.25ZM4.25 6.5H3.125V5.375H4.25V6.5ZM4.8125 8.375H2.5625C2.25195 8.375 2 8.62672 2 8.9375V11.1875C2 11.498 2.25195 11.75 2.5625 11.75H4.8125C5.12305 11.75 5.375 11.498 5.375 11.1875V8.9375C5.375 8.62672 5.12305 8.375 4.8125 8.375ZM4.25 10.625H3.125V9.5H4.25V10.625ZM9.125 4.25H6.875C6.56445 4.25 6.3125 4.50172 6.3125 4.8125V7.0625C6.3125 7.37305 6.56445 7.625 6.875 7.625H9.125C9.43555 7.625 9.6875 7.37305 9.6875 7.0625V4.8125C9.6875 4.50172 9.43555 4.25 9.125 4.25ZM8.5625 6.5H7.4375V5.375H8.5625V6.5ZM9.125 8.375H6.875C6.56445 8.375 6.3125 8.62672 6.3125 8.9375V11.1875C6.3125 11.498 6.56445 11.75 6.875 11.75H9.125C9.43555 11.75 9.6875 11.498 9.6875 11.1875V8.9375C9.6875 8.62672 9.43555 8.375 9.125 8.375ZM8.5625 10.625H7.4375V9.5H8.5625V10.625Z"
|
|
72
|
+
/>
|
|
73
|
+
</svg>
|
|
74
|
+
<p>Classes</p>
|
|
75
|
+
</a>
|
|
76
|
+
</xpl-nav-item>
|
|
77
|
+
<xpl-nav-item>
|
|
78
|
+
<a slot="link" href="javascript:;" class="active">
|
|
79
|
+
<svg
|
|
80
|
+
slot="icon"
|
|
81
|
+
viewBox="0 0 16 16"
|
|
82
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
83
|
+
>
|
|
84
|
+
<path
|
|
85
|
+
d="M8 2C5.51335 2 3.5 4.01595 3.5 6.5C3.5 8.16681 4.06229 8.68768 7.04542 13.4709C7.48569 14.1768 8.51481 14.176 8.95457 13.4709C11.9393 8.68518 12.5 8.16648 12.5 6.5C12.5 4.01335 10.4841 2 8 2ZM8 12.875C5.0135 8.08639 4.625 7.7841 4.625 6.5C4.625 4.63604 6.13604 3.125 8 3.125C9.86396 3.125 11.375 4.63604 11.375 6.5C11.375 7.77859 11.0196 8.0334 8 12.875ZM6.125 6.5C6.125 5.46446 6.96446 4.625 8 4.625C9.03554 4.625 9.875 5.46446 9.875 6.5C9.875 7.53554 9.03554 8.375 8 8.375C6.96446 8.375 6.125 7.53554 6.125 6.5Z"
|
|
86
|
+
/>
|
|
87
|
+
</svg>
|
|
88
|
+
|
|
89
|
+
<p>Locations</p>
|
|
90
|
+
</a>
|
|
91
|
+
</xpl-nav-item>
|
|
92
|
+
<xpl-nav-item>
|
|
93
|
+
<a slot="link" href="javascript:;">
|
|
94
|
+
<svg
|
|
95
|
+
slot="icon"
|
|
96
|
+
viewBox="0 0 16 16"
|
|
97
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
98
|
+
>
|
|
99
|
+
<path
|
|
100
|
+
d="M12.125 3.5H11V2.28125C11 2.12656 10.8734 2 10.7188 2H9.78125C9.62656 2 9.5 2.12656 9.5 2.28125V3.5H6.5V2.28125C6.5 2.12656 6.37344 2 6.21875 2H5.28125C5.12656 2 5 2.12656 5 2.28125V3.5H3.875C3.25391 3.5 2.75 4.00391 2.75 4.625V12.875C2.75 13.4961 3.25391 14 3.875 14H12.125C12.7461 14 13.25 13.4961 13.25 12.875V4.625C13.25 4.00391 12.7461 3.5 12.125 3.5ZM11.9844 12.875H4.01562C3.93828 12.875 3.875 12.8117 3.875 12.7344V5.75H12.125V12.7344C12.125 12.8117 12.0617 12.875 11.9844 12.875Z"
|
|
101
|
+
/>
|
|
102
|
+
</svg>
|
|
103
|
+
|
|
104
|
+
<p>Schedule</p>
|
|
105
|
+
</a>
|
|
106
|
+
</xpl-nav-item>
|
|
107
|
+
<xpl-nav-item>
|
|
108
|
+
<a slot="link" href="javascript:;">
|
|
109
|
+
<svg
|
|
110
|
+
slot="icon"
|
|
111
|
+
viewBox="0 0 16 16"
|
|
112
|
+
fill="none"
|
|
113
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
114
|
+
>
|
|
115
|
+
<path
|
|
116
|
+
d="M11.3 10.25H11.825C11.975 10.25 12.125 10.1 12.125 9.95V4.55C12.125 4.4 11.975 4.25 11.825 4.25H11.3C11.15 4.25 11 4.4 11 4.55V9.95C11 10.1 11.15 10.25 11.3 10.25ZM6.8 10.25H7.325C7.475 10.25 7.625 10.1 7.625 9.95V5.3C7.625 5.15 7.475 5 7.325 5H6.8C6.65 5 6.5 5.15 6.5 5.3V9.95C6.5 10.1 6.65 10.25 6.8 10.25ZM9.05 10.25H9.575C9.725 10.25 9.875 10.1 9.875 9.95V6.8C9.875 6.65 9.725 6.5 9.575 6.5H9.05C8.9 6.5 8.75 6.65 8.75 6.8V9.95C8.75 10.1 8.9 10.25 9.05 10.25ZM13.625 11.375H3.125V3.875C3.125 3.66781 2.95719 3.5 2.75 3.5H2.375C2.16781 3.5 2 3.66781 2 3.875V11.75C2 12.1641 2.33586 12.5 2.75 12.5H13.625C13.8322 12.5 14 12.3322 14 12.125V11.75C14 11.5428 13.8322 11.375 13.625 11.375ZM4.55 10.25H5.075C5.225 10.25 5.375 10.1 5.375 9.95V8.3C5.375 8.15 5.225 8 5.075 8H4.55C4.4 8 4.25 8.15 4.25 8.3V9.95C4.25 10.1 4.4 10.25 4.55 10.25Z"
|
|
117
|
+
/>
|
|
118
|
+
</svg>
|
|
119
|
+
<p>Reports</p>
|
|
120
|
+
</a>
|
|
121
|
+
</xpl-nav-item>
|
|
122
|
+
<xpl-nav-item>
|
|
123
|
+
<a slot="link" href="javascript:;">
|
|
124
|
+
<svg
|
|
125
|
+
slot="icon"
|
|
126
|
+
viewBox="0 0 16 16"
|
|
127
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
128
|
+
>
|
|
129
|
+
<path
|
|
130
|
+
d="M10.6667 5.33329C10.4825 5.33329 10.3333 5.48246 10.3333 5.66663C10.3333 5.85079 10.4825 5.99996 10.6667 5.99996C10.8508 5.99996 11 5.85079 11 5.66663C11 5.48246 10.8508 5.33329 10.6667 5.33329ZM13.4069 2.75308C13.2789 2.69608 13.1403 2.66662 13.0002 2.66663C12.7577 2.66663 12.5183 2.75475 12.331 2.92329L11.5052 3.66663H11.1617L10.3358 2.92329C10.1921 2.79401 10.014 2.70913 9.82301 2.67892C9.63205 2.64872 9.43642 2.67447 9.25979 2.75308C8.89917 2.91392 8.66667 3.27163 8.66667 3.66663V5.99996C8.66667 6.08829 8.68438 6.17163 8.69271 6.25788L7.71354 6.40621C6.30771 6.61933 5.11729 7.37288 4.33333 8.43788V6.49996C4.33333 5.48892 3.51104 4.66663 2.5 4.66663C2.22396 4.66663 2 4.89058 2 5.16663C2 5.44725 2.23167 5.67433 2.51417 5.66642C2.97958 5.6535 3.33333 6.09517 3.33333 6.56079V10.9854C3.33333 12.5148 4.15417 13.3333 5.16667 13.3333H9C9.18417 13.3333 9.33333 13.1841 9.33333 13C9.33333 12.6318 9.03479 12.3333 8.66667 12.3333H8.33042C8.32812 12.1798 8.31417 12.0285 8.29188 11.8789L10 10.8739V12.6666C10 13.0348 10.2985 13.3333 10.6667 13.3333H12C12.3681 13.3333 12.6667 13.0348 12.6667 12.6666V8.29579C13.4598 7.83329 14 6.98267 14 6.00017V3.66663C14 3.27183 13.7675 2.91392 13.4069 2.75308ZM11.6667 12.3333H11V10.2912C11 10.0527 10.8717 9.831 10.6648 9.71267C10.4583 9.59413 10.2019 9.59558 9.99563 9.71663L7.98833 10.8975C7.73667 10.377 7.35854 9.92079 6.87479 9.58267C6.71813 9.47308 6.49833 9.53663 6.40542 9.70371L6.25042 9.98267C6.16771 10.1316 6.19729 10.3262 6.33521 10.4262C6.94396 10.8673 7.31167 11.5729 7.3275 12.3333H5.16667C4.70708 12.3333 4.33333 11.9595 4.33333 11.5C4.33333 9.43163 5.81771 7.70496 7.86333 7.39517L8.97938 7.226C9.425 8.07788 10.3073 8.66663 11.3333 8.66663C11.4475 8.66663 11.5563 8.64683 11.6667 8.63288V12.3333ZM13 5.99996C13 6.92038 12.2537 7.66663 11.3333 7.66663C10.4129 7.66663 9.66667 6.92038 9.66667 5.99996V3.66663L10.7777 4.66663H11.8888L13 3.66663V5.99996ZM11.6667 5.66663C11.6667 5.85079 11.8158 5.99996 12 5.99996C12.1842 5.99996 12.3333 5.85079 12.3333 5.66663C12.3333 5.48246 12.1842 5.33329 12 5.33329C11.8158 5.33329 11.6667 5.48246 11.6667 5.66663Z"
|
|
131
|
+
/>
|
|
132
|
+
</svg>
|
|
133
|
+
<p>Cats</p>
|
|
134
|
+
</a>
|
|
135
|
+
</xpl-nav-item>
|
|
136
|
+
</ul>
|
|
137
|
+
<ul slot="footer">
|
|
138
|
+
<xpl-nav-item>
|
|
139
|
+
<a slot="link" href="javascript:;">
|
|
140
|
+
<xpl-avatar name="Jean-Luc Picard">JP</xpl-avatar>
|
|
141
|
+
<div>
|
|
142
|
+
<p>Jean-Luc Picard</p>
|
|
143
|
+
<p>jl@picard.space</p>
|
|
144
|
+
</div>
|
|
145
|
+
</a>
|
|
146
|
+
</xpl-nav-item>
|
|
147
|
+
</ul>
|
|
148
|
+
</xpl-main-nav>
|
|
149
|
+
`;
|
|
150
|
+
const HtmlMainNav = ({ width }) => `
|
|
151
|
+
<div class="xpl-main-nav xpl-main-nav__${width}">
|
|
152
|
+
<nav aria-label="Sidebar">
|
|
153
|
+
<header aria-label="Sidebar Header">
|
|
154
|
+
<svg
|
|
155
|
+
slot="logo"
|
|
156
|
+
width="42"
|
|
157
|
+
height="42"
|
|
158
|
+
viewBox="0 0 42 42"
|
|
159
|
+
fill="none"
|
|
160
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
161
|
+
>
|
|
162
|
+
<path
|
|
163
|
+
d="M0 4C0 1.79086 1.79086 0 4 0H38C40.2091 0 42 1.79086 42 4V38C42 40.2091 40.2091 42 38 42H4C1.79086 42 0 40.2091 0 38V4Z"
|
|
164
|
+
fill="white"
|
|
165
|
+
/>
|
|
166
|
+
<g clip-path="url(#clip0_1237:41953)">
|
|
167
|
+
<path
|
|
168
|
+
d="M33.6029 8.55469C26.4683 8.88391 19.9116 12.5273 15.9331 18.3875C13.266 17.9266 10.5321 18.5851 8.39844 20.2092V21.7895C14.9107 21.7895 20.1783 26.9913 20.2005 33.4002V33.4221H21.8008C23.4455 31.3151 24.1345 28.6154 23.6456 25.9816C29.5799 22.0748 33.2695 15.6001 33.6029 8.55469ZM22.3564 16.8731C22.3564 15.3367 23.6233 14.0857 25.1792 14.0857C26.735 14.0857 28.0019 15.3367 28.0019 16.8731C28.0019 18.4095 26.735 19.6605 25.1792 19.6605C23.6233 19.6605 22.3564 18.4095 22.3564 16.8731Z"
|
|
169
|
+
fill="#F44E27"
|
|
170
|
+
/>
|
|
171
|
+
<path
|
|
172
|
+
d="M12.3762 27.431C10.7314 26.9701 8.9978 27.8919 8.53105 29.538C8.44215 29.8014 8.41992 30.0867 8.41992 30.3721V33.4448H11.5316C11.7983 33.4448 12.0428 33.4229 12.2873 33.357C13.9542 32.94 14.9544 31.2719 14.5321 29.6258C14.2432 28.5503 13.4208 27.7383 12.3762 27.431Z"
|
|
173
|
+
fill="#F44E27"
|
|
174
|
+
/>
|
|
175
|
+
</g>
|
|
176
|
+
<defs>
|
|
177
|
+
<clipPath id="clip0_1237:41953">
|
|
178
|
+
<rect
|
|
179
|
+
width="25.3165"
|
|
180
|
+
height="25"
|
|
181
|
+
fill="white"
|
|
182
|
+
transform="translate(8.3418 8.5)"
|
|
183
|
+
/>
|
|
184
|
+
</clipPath>
|
|
185
|
+
</defs>
|
|
186
|
+
</svg>
|
|
187
|
+
<p slot="brand-name">Client Name</p>
|
|
188
|
+
</header>
|
|
189
|
+
<ul>
|
|
190
|
+
<li class="xpl-nav-item">
|
|
191
|
+
<a slot="link" href="javascript:;">
|
|
192
|
+
<svg
|
|
193
|
+
slot="icon"
|
|
194
|
+
viewBox="0 0 16 16"
|
|
195
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
196
|
+
>
|
|
197
|
+
<path
|
|
198
|
+
d="M13.8795 7.82083L12.6661 6.82312V4.83311C12.6661 4.7889 12.6486 4.74651 12.6173 4.71525C12.5861 4.684 12.5437 4.66644 12.4995 4.66644H11.8328C11.7892 4.66671 11.7474 4.68404 11.7165 4.71473C11.6855 4.74542 11.6678 4.78702 11.6672 4.83061V6.00186L8.74673 3.60393C8.5369 3.42922 8.27248 3.33356 7.99944 3.33356C7.72639 3.33356 7.46198 3.42922 7.25214 3.60393L2.1194 7.82083C2.08583 7.84893 2.05812 7.88336 2.03786 7.92217C2.01759 7.96097 2.00517 8.00339 2.0013 8.047C1.99744 8.0906 2.00219 8.13454 2.01531 8.17631C2.02842 8.21808 2.04963 8.25685 2.07773 8.29042L2.29107 8.54667C2.3478 8.61441 2.42912 8.65685 2.51713 8.66466C2.60515 8.67248 2.69266 8.64502 2.76045 8.58834L3.33274 8.11833V11.9998C3.33324 12.1765 3.40363 12.3458 3.52855 12.4707C3.65347 12.5956 3.82275 12.666 3.99941 12.6665H6.66609C6.84275 12.666 7.01204 12.5956 7.13696 12.4707C7.26187 12.3458 7.33227 12.1765 7.33277 11.9998V9.83314H8.66611V11.9998C8.6666 12.1765 8.737 12.3458 8.86192 12.4707C8.98683 12.5956 9.15612 12.666 9.33278 12.6665H11.9995C12.1753 12.6661 12.3439 12.5964 12.4687 12.4726C12.5935 12.3487 12.6644 12.1806 12.6661 12.0048V8.11792L13.2397 8.58917C13.3075 8.64586 13.395 8.67331 13.483 8.6655C13.571 8.65768 13.6523 8.61524 13.7091 8.5475L13.9222 8.29146C13.9504 8.2578 13.9717 8.2189 13.9848 8.17699C13.9979 8.13509 14.0026 8.091 13.9986 8.04727C13.9947 8.00354 13.9821 7.96102 13.9616 7.92216C13.9412 7.8833 13.9133 7.84887 13.8795 7.82083V7.82083ZM11.663 11.6665H9.66611V9.4998C9.66562 9.32314 9.59522 9.15386 9.4703 9.02894C9.34539 8.90402 9.1761 8.83363 8.99944 8.83313H6.99943C6.82277 8.83363 6.65349 8.90402 6.52857 9.02894C6.40365 9.15386 6.33325 9.32314 6.33276 9.4998V11.6665H4.33275V7.29708L7.99944 4.28414L11.6661 7.29583L11.663 11.6665Z"
|
|
199
|
+
/>
|
|
200
|
+
</svg>
|
|
201
|
+
<p>Dashboard</p>
|
|
202
|
+
</a>
|
|
203
|
+
</li>
|
|
204
|
+
<li class="xpl-nav-item">
|
|
205
|
+
<a slot="link" href="javascript:;">
|
|
206
|
+
<svg
|
|
207
|
+
slot="icon"
|
|
208
|
+
viewBox="0 0 16 16"
|
|
209
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
210
|
+
>
|
|
211
|
+
<path
|
|
212
|
+
d="M13.4375 4.25H11.1875C10.877 4.25 10.625 4.50172 10.625 4.8125V7.0625C10.625 7.37305 10.877 7.625 11.1875 7.625H13.4375C13.748 7.625 14 7.37305 14 7.0625V4.8125C14 4.50172 13.748 4.25 13.4375 4.25ZM12.875 6.5H11.75V5.375H12.875V6.5ZM13.4375 8.375H11.1875C10.877 8.375 10.625 8.62672 10.625 8.9375V11.1875C10.625 11.498 10.877 11.75 11.1875 11.75H13.4375C13.748 11.75 14 11.498 14 11.1875V8.9375C14 8.62672 13.748 8.375 13.4375 8.375ZM12.875 10.625H11.75V9.5H12.875V10.625ZM4.8125 4.25H2.5625C2.25195 4.25 2 4.50172 2 4.8125V7.0625C2 7.37305 2.25195 7.625 2.5625 7.625H4.8125C5.12305 7.625 5.375 7.37305 5.375 7.0625V4.8125C5.375 4.50172 5.12305 4.25 4.8125 4.25ZM4.25 6.5H3.125V5.375H4.25V6.5ZM4.8125 8.375H2.5625C2.25195 8.375 2 8.62672 2 8.9375V11.1875C2 11.498 2.25195 11.75 2.5625 11.75H4.8125C5.12305 11.75 5.375 11.498 5.375 11.1875V8.9375C5.375 8.62672 5.12305 8.375 4.8125 8.375ZM4.25 10.625H3.125V9.5H4.25V10.625ZM9.125 4.25H6.875C6.56445 4.25 6.3125 4.50172 6.3125 4.8125V7.0625C6.3125 7.37305 6.56445 7.625 6.875 7.625H9.125C9.43555 7.625 9.6875 7.37305 9.6875 7.0625V4.8125C9.6875 4.50172 9.43555 4.25 9.125 4.25ZM8.5625 6.5H7.4375V5.375H8.5625V6.5ZM9.125 8.375H6.875C6.56445 8.375 6.3125 8.62672 6.3125 8.9375V11.1875C6.3125 11.498 6.56445 11.75 6.875 11.75H9.125C9.43555 11.75 9.6875 11.498 9.6875 11.1875V8.9375C9.6875 8.62672 9.43555 8.375 9.125 8.375ZM8.5625 10.625H7.4375V9.5H8.5625V10.625Z"
|
|
213
|
+
/>
|
|
214
|
+
</svg>
|
|
215
|
+
|
|
216
|
+
<p>Classes</p>
|
|
217
|
+
</a>
|
|
218
|
+
</li>
|
|
219
|
+
<li class="xpl-nav-item">
|
|
220
|
+
<a slot="link" href="javascript:;" class="active">
|
|
221
|
+
<svg
|
|
222
|
+
slot="icon"
|
|
223
|
+
viewBox="0 0 16 16"
|
|
224
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
225
|
+
>
|
|
226
|
+
<path
|
|
227
|
+
d="M8 2C5.51335 2 3.5 4.01595 3.5 6.5C3.5 8.16681 4.06229 8.68768 7.04542 13.4709C7.48569 14.1768 8.51481 14.176 8.95457 13.4709C11.9393 8.68518 12.5 8.16648 12.5 6.5C12.5 4.01335 10.4841 2 8 2ZM8 12.875C5.0135 8.08639 4.625 7.7841 4.625 6.5C4.625 4.63604 6.13604 3.125 8 3.125C9.86396 3.125 11.375 4.63604 11.375 6.5C11.375 7.77859 11.0196 8.0334 8 12.875ZM6.125 6.5C6.125 5.46446 6.96446 4.625 8 4.625C9.03554 4.625 9.875 5.46446 9.875 6.5C9.875 7.53554 9.03554 8.375 8 8.375C6.96446 8.375 6.125 7.53554 6.125 6.5Z"
|
|
228
|
+
/>
|
|
229
|
+
</svg>
|
|
230
|
+
|
|
231
|
+
<p>Locations</p>
|
|
232
|
+
</a>
|
|
233
|
+
</li>
|
|
234
|
+
<li class="xpl-nav-item">
|
|
235
|
+
<a slot="link" href="javascript:;">
|
|
236
|
+
<svg
|
|
237
|
+
slot="icon"
|
|
238
|
+
viewBox="0 0 16 16"
|
|
239
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
240
|
+
>
|
|
241
|
+
<path
|
|
242
|
+
d="M12.125 3.5H11V2.28125C11 2.12656 10.8734 2 10.7188 2H9.78125C9.62656 2 9.5 2.12656 9.5 2.28125V3.5H6.5V2.28125C6.5 2.12656 6.37344 2 6.21875 2H5.28125C5.12656 2 5 2.12656 5 2.28125V3.5H3.875C3.25391 3.5 2.75 4.00391 2.75 4.625V12.875C2.75 13.4961 3.25391 14 3.875 14H12.125C12.7461 14 13.25 13.4961 13.25 12.875V4.625C13.25 4.00391 12.7461 3.5 12.125 3.5ZM11.9844 12.875H4.01562C3.93828 12.875 3.875 12.8117 3.875 12.7344V5.75H12.125V12.7344C12.125 12.8117 12.0617 12.875 11.9844 12.875Z"
|
|
243
|
+
/>
|
|
244
|
+
</svg>
|
|
245
|
+
|
|
246
|
+
<p>Schedule</p>
|
|
247
|
+
</a>
|
|
248
|
+
</li>
|
|
249
|
+
<li class="xpl-nav-item">
|
|
250
|
+
<a slot="link" href="javascript:;">
|
|
251
|
+
<svg
|
|
252
|
+
slot="icon"
|
|
253
|
+
viewBox="0 0 16 16"
|
|
254
|
+
fill="none"
|
|
255
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
256
|
+
>
|
|
257
|
+
<path
|
|
258
|
+
d="M11.3 10.25H11.825C11.975 10.25 12.125 10.1 12.125 9.95V4.55C12.125 4.4 11.975 4.25 11.825 4.25H11.3C11.15 4.25 11 4.4 11 4.55V9.95C11 10.1 11.15 10.25 11.3 10.25ZM6.8 10.25H7.325C7.475 10.25 7.625 10.1 7.625 9.95V5.3C7.625 5.15 7.475 5 7.325 5H6.8C6.65 5 6.5 5.15 6.5 5.3V9.95C6.5 10.1 6.65 10.25 6.8 10.25ZM9.05 10.25H9.575C9.725 10.25 9.875 10.1 9.875 9.95V6.8C9.875 6.65 9.725 6.5 9.575 6.5H9.05C8.9 6.5 8.75 6.65 8.75 6.8V9.95C8.75 10.1 8.9 10.25 9.05 10.25ZM13.625 11.375H3.125V3.875C3.125 3.66781 2.95719 3.5 2.75 3.5H2.375C2.16781 3.5 2 3.66781 2 3.875V11.75C2 12.1641 2.33586 12.5 2.75 12.5H13.625C13.8322 12.5 14 12.3322 14 12.125V11.75C14 11.5428 13.8322 11.375 13.625 11.375ZM4.55 10.25H5.075C5.225 10.25 5.375 10.1 5.375 9.95V8.3C5.375 8.15 5.225 8 5.075 8H4.55C4.4 8 4.25 8.15 4.25 8.3V9.95C4.25 10.1 4.4 10.25 4.55 10.25Z"
|
|
259
|
+
/>
|
|
260
|
+
</svg>
|
|
261
|
+
<p>Reports</p>
|
|
262
|
+
</a>
|
|
263
|
+
</li>
|
|
264
|
+
<li class="xpl-nav-item">
|
|
265
|
+
<a slot="link" href="javascript:;">
|
|
266
|
+
<svg
|
|
267
|
+
slot="icon"
|
|
268
|
+
viewBox="0 0 16 16"
|
|
269
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
270
|
+
>
|
|
271
|
+
<path
|
|
272
|
+
d="M10.6667 5.33329C10.4825 5.33329 10.3333 5.48246 10.3333 5.66663C10.3333 5.85079 10.4825 5.99996 10.6667 5.99996C10.8508 5.99996 11 5.85079 11 5.66663C11 5.48246 10.8508 5.33329 10.6667 5.33329ZM13.4069 2.75308C13.2789 2.69608 13.1403 2.66662 13.0002 2.66663C12.7577 2.66663 12.5183 2.75475 12.331 2.92329L11.5052 3.66663H11.1617L10.3358 2.92329C10.1921 2.79401 10.014 2.70913 9.82301 2.67892C9.63205 2.64872 9.43642 2.67447 9.25979 2.75308C8.89917 2.91392 8.66667 3.27163 8.66667 3.66663V5.99996C8.66667 6.08829 8.68438 6.17163 8.69271 6.25788L7.71354 6.40621C6.30771 6.61933 5.11729 7.37288 4.33333 8.43788V6.49996C4.33333 5.48892 3.51104 4.66663 2.5 4.66663C2.22396 4.66663 2 4.89058 2 5.16663C2 5.44725 2.23167 5.67433 2.51417 5.66642C2.97958 5.6535 3.33333 6.09517 3.33333 6.56079V10.9854C3.33333 12.5148 4.15417 13.3333 5.16667 13.3333H9C9.18417 13.3333 9.33333 13.1841 9.33333 13C9.33333 12.6318 9.03479 12.3333 8.66667 12.3333H8.33042C8.32812 12.1798 8.31417 12.0285 8.29188 11.8789L10 10.8739V12.6666C10 13.0348 10.2985 13.3333 10.6667 13.3333H12C12.3681 13.3333 12.6667 13.0348 12.6667 12.6666V8.29579C13.4598 7.83329 14 6.98267 14 6.00017V3.66663C14 3.27183 13.7675 2.91392 13.4069 2.75308ZM11.6667 12.3333H11V10.2912C11 10.0527 10.8717 9.831 10.6648 9.71267C10.4583 9.59413 10.2019 9.59558 9.99563 9.71663L7.98833 10.8975C7.73667 10.377 7.35854 9.92079 6.87479 9.58267C6.71813 9.47308 6.49833 9.53663 6.40542 9.70371L6.25042 9.98267C6.16771 10.1316 6.19729 10.3262 6.33521 10.4262C6.94396 10.8673 7.31167 11.5729 7.3275 12.3333H5.16667C4.70708 12.3333 4.33333 11.9595 4.33333 11.5C4.33333 9.43163 5.81771 7.70496 7.86333 7.39517L8.97938 7.226C9.425 8.07788 10.3073 8.66663 11.3333 8.66663C11.4475 8.66663 11.5563 8.64683 11.6667 8.63288V12.3333ZM13 5.99996C13 6.92038 12.2537 7.66663 11.3333 7.66663C10.4129 7.66663 9.66667 6.92038 9.66667 5.99996V3.66663L10.7777 4.66663H11.8888L13 3.66663V5.99996ZM11.6667 5.66663C11.6667 5.85079 11.8158 5.99996 12 5.99996C12.1842 5.99996 12.3333 5.85079 12.3333 5.66663C12.3333 5.48246 12.1842 5.33329 12 5.33329C11.8158 5.33329 11.6667 5.48246 11.6667 5.66663Z"
|
|
273
|
+
/>
|
|
274
|
+
</svg>
|
|
275
|
+
|
|
276
|
+
<p>Cats</p>
|
|
277
|
+
</a>
|
|
278
|
+
</li>
|
|
279
|
+
</ul>
|
|
280
|
+
</nav>
|
|
281
|
+
<footer aria-label="Sidebar Header">
|
|
282
|
+
<ul>
|
|
283
|
+
<div class="xpl-nav-item">
|
|
284
|
+
<a slot="link" href="javascript:;">
|
|
285
|
+
<xpl-avatar name="Jean-Luc Picard">JP</xpl-avatar>
|
|
286
|
+
<div>
|
|
287
|
+
<p>Jean-Luc Picard</p>
|
|
288
|
+
<p>jlp@enterprise.space</p>
|
|
289
|
+
</div>
|
|
290
|
+
</a>
|
|
291
|
+
</div>
|
|
292
|
+
</ul>
|
|
293
|
+
</footer>
|
|
294
|
+
</div>
|
|
295
|
+
|
|
296
|
+
`;
|
|
297
|
+
MainNav.parameters = {
|
|
298
|
+
layout: "centered",
|
|
299
|
+
"web-component": {
|
|
300
|
+
render: MainNav,
|
|
301
|
+
},
|
|
302
|
+
html: {
|
|
303
|
+
render: HtmlMainNav
|
|
304
|
+
},
|
|
305
|
+
};
|
|
306
|
+
MainNav.args = {
|
|
307
|
+
width: "default"
|
|
308
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Backdrop: {
|
|
6
|
+
(): string;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
"web-component": {
|
|
10
|
+
render: any;
|
|
11
|
+
};
|
|
12
|
+
html: {
|
|
13
|
+
render(): string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
argTypes: {
|
|
4
|
+
size: {
|
|
5
|
+
options: string[];
|
|
6
|
+
control: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
interface ContentAreaSlot {
|
|
14
|
+
size: 'string';
|
|
15
|
+
}
|
|
16
|
+
export declare const ContentArea: {
|
|
17
|
+
({ size }: ContentAreaSlot): string;
|
|
18
|
+
parameters: {
|
|
19
|
+
"web-component": {
|
|
20
|
+
render: any;
|
|
21
|
+
};
|
|
22
|
+
html: {
|
|
23
|
+
render: ({ size }: ContentAreaSlot) => string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
args: {
|
|
27
|
+
size: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
argTypes: {
|
|
4
|
+
width: {
|
|
5
|
+
options: string[];
|
|
6
|
+
control: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
interface MainNavProps {
|
|
14
|
+
width: 'string';
|
|
15
|
+
}
|
|
16
|
+
export declare const MainNav: {
|
|
17
|
+
({ width }: MainNavProps): string;
|
|
18
|
+
parameters: {
|
|
19
|
+
layout: string;
|
|
20
|
+
"web-component": {
|
|
21
|
+
render: any;
|
|
22
|
+
};
|
|
23
|
+
html: {
|
|
24
|
+
render: ({ width }: MainNavProps) => string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
args: {
|
|
28
|
+
width: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -16,10 +16,16 @@ export namespace Components {
|
|
|
16
16
|
"status"?: "active" | "warning" | "inactive";
|
|
17
17
|
"target"?: string;
|
|
18
18
|
}
|
|
19
|
+
interface XplBackdrop {
|
|
20
|
+
}
|
|
19
21
|
interface XplBadge {
|
|
20
22
|
"dot"?: boolean;
|
|
21
23
|
"variant"?: "success" | "warning" | "inactive" | "error";
|
|
22
24
|
}
|
|
25
|
+
interface XplBreadcrumbItem {
|
|
26
|
+
}
|
|
27
|
+
interface XplBreadcrumbs {
|
|
28
|
+
}
|
|
23
29
|
interface XplButton {
|
|
24
30
|
"disabled"?: boolean;
|
|
25
31
|
"href"?: string;
|
|
@@ -43,6 +49,20 @@ export namespace Components {
|
|
|
43
49
|
}
|
|
44
50
|
interface XplChoicelist {
|
|
45
51
|
}
|
|
52
|
+
interface XplContentArea {
|
|
53
|
+
/**
|
|
54
|
+
* @property {string} size - The content-area size.
|
|
55
|
+
*/
|
|
56
|
+
"size": "wide" | "narrow" | "full";
|
|
57
|
+
}
|
|
58
|
+
interface XplMainNav {
|
|
59
|
+
/**
|
|
60
|
+
* @property {string} width - The width of the Main Nav.
|
|
61
|
+
*/
|
|
62
|
+
"width": "default" | "md" | "sm";
|
|
63
|
+
}
|
|
64
|
+
interface XplNavItem {
|
|
65
|
+
}
|
|
46
66
|
interface XplPagination {
|
|
47
67
|
/**
|
|
48
68
|
* Calling `goto` with a page number (which should probably be taken from the `page` event) updates the pagination's state and re-renders it, showing the appropriate buttons given the current page.
|
|
@@ -78,12 +98,30 @@ declare global {
|
|
|
78
98
|
prototype: HTMLXplAvatarElement;
|
|
79
99
|
new (): HTMLXplAvatarElement;
|
|
80
100
|
};
|
|
101
|
+
interface HTMLXplBackdropElement extends Components.XplBackdrop, HTMLStencilElement {
|
|
102
|
+
}
|
|
103
|
+
var HTMLXplBackdropElement: {
|
|
104
|
+
prototype: HTMLXplBackdropElement;
|
|
105
|
+
new (): HTMLXplBackdropElement;
|
|
106
|
+
};
|
|
81
107
|
interface HTMLXplBadgeElement extends Components.XplBadge, HTMLStencilElement {
|
|
82
108
|
}
|
|
83
109
|
var HTMLXplBadgeElement: {
|
|
84
110
|
prototype: HTMLXplBadgeElement;
|
|
85
111
|
new (): HTMLXplBadgeElement;
|
|
86
112
|
};
|
|
113
|
+
interface HTMLXplBreadcrumbItemElement extends Components.XplBreadcrumbItem, HTMLStencilElement {
|
|
114
|
+
}
|
|
115
|
+
var HTMLXplBreadcrumbItemElement: {
|
|
116
|
+
prototype: HTMLXplBreadcrumbItemElement;
|
|
117
|
+
new (): HTMLXplBreadcrumbItemElement;
|
|
118
|
+
};
|
|
119
|
+
interface HTMLXplBreadcrumbsElement extends Components.XplBreadcrumbs, HTMLStencilElement {
|
|
120
|
+
}
|
|
121
|
+
var HTMLXplBreadcrumbsElement: {
|
|
122
|
+
prototype: HTMLXplBreadcrumbsElement;
|
|
123
|
+
new (): HTMLXplBreadcrumbsElement;
|
|
124
|
+
};
|
|
87
125
|
interface HTMLXplButtonElement extends Components.XplButton, HTMLStencilElement {
|
|
88
126
|
}
|
|
89
127
|
var HTMLXplButtonElement: {
|
|
@@ -102,6 +140,24 @@ declare global {
|
|
|
102
140
|
prototype: HTMLXplChoicelistElement;
|
|
103
141
|
new (): HTMLXplChoicelistElement;
|
|
104
142
|
};
|
|
143
|
+
interface HTMLXplContentAreaElement extends Components.XplContentArea, HTMLStencilElement {
|
|
144
|
+
}
|
|
145
|
+
var HTMLXplContentAreaElement: {
|
|
146
|
+
prototype: HTMLXplContentAreaElement;
|
|
147
|
+
new (): HTMLXplContentAreaElement;
|
|
148
|
+
};
|
|
149
|
+
interface HTMLXplMainNavElement extends Components.XplMainNav, HTMLStencilElement {
|
|
150
|
+
}
|
|
151
|
+
var HTMLXplMainNavElement: {
|
|
152
|
+
prototype: HTMLXplMainNavElement;
|
|
153
|
+
new (): HTMLXplMainNavElement;
|
|
154
|
+
};
|
|
155
|
+
interface HTMLXplNavItemElement extends Components.XplNavItem, HTMLStencilElement {
|
|
156
|
+
}
|
|
157
|
+
var HTMLXplNavItemElement: {
|
|
158
|
+
prototype: HTMLXplNavItemElement;
|
|
159
|
+
new (): HTMLXplNavItemElement;
|
|
160
|
+
};
|
|
105
161
|
interface HTMLXplPaginationElement extends Components.XplPagination, HTMLStencilElement {
|
|
106
162
|
}
|
|
107
163
|
var HTMLXplPaginationElement: {
|
|
@@ -128,10 +184,16 @@ declare global {
|
|
|
128
184
|
};
|
|
129
185
|
interface HTMLElementTagNameMap {
|
|
130
186
|
"xpl-avatar": HTMLXplAvatarElement;
|
|
187
|
+
"xpl-backdrop": HTMLXplBackdropElement;
|
|
131
188
|
"xpl-badge": HTMLXplBadgeElement;
|
|
189
|
+
"xpl-breadcrumb-item": HTMLXplBreadcrumbItemElement;
|
|
190
|
+
"xpl-breadcrumbs": HTMLXplBreadcrumbsElement;
|
|
132
191
|
"xpl-button": HTMLXplButtonElement;
|
|
133
192
|
"xpl-checkbox": HTMLXplCheckboxElement;
|
|
134
193
|
"xpl-choicelist": HTMLXplChoicelistElement;
|
|
194
|
+
"xpl-content-area": HTMLXplContentAreaElement;
|
|
195
|
+
"xpl-main-nav": HTMLXplMainNavElement;
|
|
196
|
+
"xpl-nav-item": HTMLXplNavItemElement;
|
|
135
197
|
"xpl-pagination": HTMLXplPaginationElement;
|
|
136
198
|
"xpl-radio": HTMLXplRadioElement;
|
|
137
199
|
"xpl-table": HTMLXplTableElement;
|
|
@@ -149,10 +211,16 @@ declare namespace LocalJSX {
|
|
|
149
211
|
"status"?: "active" | "warning" | "inactive";
|
|
150
212
|
"target"?: string;
|
|
151
213
|
}
|
|
214
|
+
interface XplBackdrop {
|
|
215
|
+
}
|
|
152
216
|
interface XplBadge {
|
|
153
217
|
"dot"?: boolean;
|
|
154
218
|
"variant"?: "success" | "warning" | "inactive" | "error";
|
|
155
219
|
}
|
|
220
|
+
interface XplBreadcrumbItem {
|
|
221
|
+
}
|
|
222
|
+
interface XplBreadcrumbs {
|
|
223
|
+
}
|
|
156
224
|
interface XplButton {
|
|
157
225
|
"disabled"?: boolean;
|
|
158
226
|
"href"?: string;
|
|
@@ -176,6 +244,20 @@ declare namespace LocalJSX {
|
|
|
176
244
|
}
|
|
177
245
|
interface XplChoicelist {
|
|
178
246
|
}
|
|
247
|
+
interface XplContentArea {
|
|
248
|
+
/**
|
|
249
|
+
* @property {string} size - The content-area size.
|
|
250
|
+
*/
|
|
251
|
+
"size"?: "wide" | "narrow" | "full";
|
|
252
|
+
}
|
|
253
|
+
interface XplMainNav {
|
|
254
|
+
/**
|
|
255
|
+
* @property {string} width - The width of the Main Nav.
|
|
256
|
+
*/
|
|
257
|
+
"width"?: "default" | "md" | "sm";
|
|
258
|
+
}
|
|
259
|
+
interface XplNavItem {
|
|
260
|
+
}
|
|
179
261
|
interface XplPagination {
|
|
180
262
|
"onPage"?: (event: CustomEvent<any>) => void;
|
|
181
263
|
"perPage"?: number;
|
|
@@ -202,10 +284,16 @@ declare namespace LocalJSX {
|
|
|
202
284
|
}
|
|
203
285
|
interface IntrinsicElements {
|
|
204
286
|
"xpl-avatar": XplAvatar;
|
|
287
|
+
"xpl-backdrop": XplBackdrop;
|
|
205
288
|
"xpl-badge": XplBadge;
|
|
289
|
+
"xpl-breadcrumb-item": XplBreadcrumbItem;
|
|
290
|
+
"xpl-breadcrumbs": XplBreadcrumbs;
|
|
206
291
|
"xpl-button": XplButton;
|
|
207
292
|
"xpl-checkbox": XplCheckbox;
|
|
208
293
|
"xpl-choicelist": XplChoicelist;
|
|
294
|
+
"xpl-content-area": XplContentArea;
|
|
295
|
+
"xpl-main-nav": XplMainNav;
|
|
296
|
+
"xpl-nav-item": XplNavItem;
|
|
209
297
|
"xpl-pagination": XplPagination;
|
|
210
298
|
"xpl-radio": XplRadio;
|
|
211
299
|
"xpl-table": XplTable;
|
|
@@ -217,10 +305,16 @@ declare module "@stencil/core" {
|
|
|
217
305
|
export namespace JSX {
|
|
218
306
|
interface IntrinsicElements {
|
|
219
307
|
"xpl-avatar": LocalJSX.XplAvatar & JSXBase.HTMLAttributes<HTMLXplAvatarElement>;
|
|
308
|
+
"xpl-backdrop": LocalJSX.XplBackdrop & JSXBase.HTMLAttributes<HTMLXplBackdropElement>;
|
|
220
309
|
"xpl-badge": LocalJSX.XplBadge & JSXBase.HTMLAttributes<HTMLXplBadgeElement>;
|
|
310
|
+
"xpl-breadcrumb-item": LocalJSX.XplBreadcrumbItem & JSXBase.HTMLAttributes<HTMLXplBreadcrumbItemElement>;
|
|
311
|
+
"xpl-breadcrumbs": LocalJSX.XplBreadcrumbs & JSXBase.HTMLAttributes<HTMLXplBreadcrumbsElement>;
|
|
221
312
|
"xpl-button": LocalJSX.XplButton & JSXBase.HTMLAttributes<HTMLXplButtonElement>;
|
|
222
313
|
"xpl-checkbox": LocalJSX.XplCheckbox & JSXBase.HTMLAttributes<HTMLXplCheckboxElement>;
|
|
223
314
|
"xpl-choicelist": LocalJSX.XplChoicelist & JSXBase.HTMLAttributes<HTMLXplChoicelistElement>;
|
|
315
|
+
"xpl-content-area": LocalJSX.XplContentArea & JSXBase.HTMLAttributes<HTMLXplContentAreaElement>;
|
|
316
|
+
"xpl-main-nav": LocalJSX.XplMainNav & JSXBase.HTMLAttributes<HTMLXplMainNavElement>;
|
|
317
|
+
"xpl-nav-item": LocalJSX.XplNavItem & JSXBase.HTMLAttributes<HTMLXplNavItemElement>;
|
|
224
318
|
"xpl-pagination": LocalJSX.XplPagination & JSXBase.HTMLAttributes<HTMLXplPaginationElement>;
|
|
225
319
|
"xpl-radio": LocalJSX.XplRadio & JSXBase.HTMLAttributes<HTMLXplRadioElement>;
|
|
226
320
|
"xpl-table": LocalJSX.XplTable & JSXBase.HTMLAttributes<HTMLXplTableElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xplortech/apollo-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/custom-elements/index.js",
|
|
6
6
|
"types": "dist/custom-elements/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"collection:main": "dist/collection/index.js",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "npm-run-all build:*",
|
|
11
|
-
"build:css": "NODE_ENV=production postcss src/style.css -o build/style.css",
|
|
11
|
+
"build:css": "NODE_ENV=production postcss src/style.css -o build/style.css && cp build/style.css .storybook",
|
|
12
12
|
"build:stencil": "stencil build --docs --prod && cp -r dist .storybook && cp -r loader .storybook",
|
|
13
13
|
"clean": "rm -rf dist/ loader/ storybook-static/ www/ build/ src/components/components.d.ts",
|
|
14
14
|
"build:storybook": "build-storybook -s build",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"@typescript-eslint/eslint-plugin": "^4.30.0",
|
|
53
53
|
"@typescript-eslint/parser": "^4.30.0",
|
|
54
54
|
"@whitespace/storybook-addon-html": "^5.0.0",
|
|
55
|
+
"@xplortech/apollo-foundation": "0.0.3",
|
|
55
56
|
"auto-changelog": "^2.3.0",
|
|
56
57
|
"autoprefixer": "^10.2.6",
|
|
57
58
|
"babel-loader": "^8.2.2",
|