@grantcodes/ui 2.0.2 → 2.1.1
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 +15 -0
- package/custom-elements.json +1926 -191
- package/package.json +22 -21
- package/src/components/accordion/accordion.component.js +33 -0
- package/src/components/accordion/accordion.js +6 -0
- package/src/components/accordion/accordion.stories.js +88 -0
- package/src/components/accordion/accordion.styles.js +66 -0
- package/src/components/accordion/index.js +6 -0
- package/src/components/app-bar/app-bar.component.js +1 -3
- package/src/components/app-bar/app-bar.js +0 -2
- package/src/components/app-bar/app-bar.styles.js +222 -221
- package/src/components/app-bar/app-bar.test.js +58 -17
- package/src/components/app-bar/index.js +0 -2
- package/src/components/avatar/avatar.js +0 -12
- package/src/components/avatar/avatar.stories.js +0 -12
- package/src/components/avatar/avatar.styles.js +19 -19
- package/src/components/avatar/avatar.test.js +4 -4
- package/src/components/avatar/index.js +1 -13
- package/src/components/badge/badge.js +0 -2
- package/src/components/badge/badge.styles.js +78 -81
- package/src/components/badge/badge.test.js +18 -5
- package/src/components/badge/index.js +0 -2
- package/src/components/breadcrumb/breadcrumb.component.js +9 -10
- package/src/components/breadcrumb/breadcrumb.js +6 -4
- package/src/components/breadcrumb/breadcrumb.styles.js +86 -90
- package/src/components/breadcrumb/breadcrumb.test.js +15 -5
- package/src/components/breadcrumb/index.js +0 -2
- package/src/components/button/button.component.js +2 -2
- package/src/components/button/button.styles.js +58 -86
- package/src/components/button/button.test.js +8 -4
- package/src/components/button/index.js +1 -1
- package/src/components/button-group/button-group.test.js +0 -2
- package/src/components/button-group/index.js +1 -1
- package/src/components/card/card.component.js +40 -9
- package/src/components/card/card.js +3 -1
- package/src/components/card/card.stories.js +18 -5
- package/src/components/card/card.styles.js +46 -20
- package/src/components/card/card.test.js +0 -2
- package/src/components/card/index.js +1 -1
- package/src/components/code-preview/code-preview.component.js +9 -9
- package/src/components/code-preview/code-preview.js +0 -1
- package/src/components/code-preview/code-preview.styles.js +3 -3
- package/src/components/code-preview/code-preview.test.js +29 -8
- package/src/components/code-preview/index.js +1 -1
- package/src/components/container/container.component.js +1 -0
- package/src/components/container/container.js +0 -1
- package/src/components/container/container.stories.js +12 -4
- package/src/components/container/container.styles.js +37 -35
- package/src/components/container/container.test.js +0 -2
- package/src/components/container/index.js +1 -1
- package/src/components/cta/cta.component.js +108 -0
- package/src/components/cta/cta.js +6 -0
- package/src/components/cta/cta.stories.js +56 -0
- package/src/components/cta/cta.styles.js +64 -0
- package/src/components/cta/index.js +1 -0
- package/src/components/dialog/dialog.js +0 -1
- package/src/components/dialog/dialog.styles.js +8 -8
- package/src/components/dialog/dialog.test.js +11 -5
- package/src/components/dialog/index.js +1 -1
- package/src/components/dropdown/dropdown.component.js +5 -3
- package/src/components/dropdown/dropdown.js +6 -4
- package/src/components/dropdown/dropdown.styles.js +5 -5
- package/src/components/dropdown/dropdown.test.js +20 -4
- package/src/components/dropdown/index.js +0 -2
- package/src/components/dropzone/dropzone.component.js +7 -6
- package/src/components/dropzone/dropzone.styles.js +4 -4
- package/src/components/dropzone/dropzone.test.js +6 -4
- package/src/components/dropzone/index.js +1 -1
- package/src/components/feature-list/feature-list.component.js +130 -0
- package/src/components/feature-list/feature-list.js +6 -0
- package/src/components/feature-list/feature-list.stories.js +117 -0
- package/src/components/feature-list/feature-list.styles.js +82 -0
- package/src/components/feature-list/index.js +1 -0
- package/src/components/footer/footer-column.styles.js +46 -47
- package/src/components/footer/footer.js +6 -2
- package/src/components/footer/footer.styles.js +6 -6
- package/src/components/footer/footer.test.js +9 -4
- package/src/components/footer/index.js +1 -1
- package/src/components/form-field/form-field.component.js +1 -3
- package/src/components/form-field/form-field.js +0 -1
- package/src/components/form-field/form-field.styles.js +35 -37
- package/src/components/form-field/form-field.test.js +9 -4
- package/src/components/form-field/index.js +1 -1
- package/src/components/gallery/gallery-image.js +0 -1
- package/src/components/gallery/gallery.js +0 -1
- package/src/components/gallery/gallery.styles.js +1 -1
- package/src/components/gallery/gallery.test.js +5 -3
- package/src/components/gallery/index.js +2 -2
- package/src/components/hero/hero.component.js +66 -0
- package/src/components/hero/hero.js +6 -0
- package/src/components/hero/hero.stories.js +53 -0
- package/src/components/hero/hero.styles.js +46 -0
- package/src/components/hero/index.js +1 -0
- package/src/components/icon/icon.js +3 -2
- package/src/components/icon/icon.stories.js +2 -1
- package/src/components/icon/icon.styles.js +23 -21
- package/src/components/icon/icon.test.js +2 -3
- package/src/components/icon/index.js +1 -1
- package/src/components/loading/index.js +1 -1
- package/src/components/loading/loading.js +3 -2
- package/src/components/loading/loading.styles.js +1 -1
- package/src/components/loading/loading.test.js +0 -2
- package/src/components/logo-cloud/index.js +1 -0
- package/src/components/logo-cloud/logo-cloud.component.js +81 -0
- package/src/components/logo-cloud/logo-cloud.js +6 -0
- package/src/components/logo-cloud/logo-cloud.stories.js +107 -0
- package/src/components/logo-cloud/logo-cloud.styles.js +68 -0
- package/src/components/media-text/index.js +1 -0
- package/src/components/media-text/media-text.component.js +100 -0
- package/src/components/media-text/media-text.js +6 -0
- package/src/components/media-text/media-text.stories.js +69 -0
- package/src/components/media-text/media-text.styles.js +66 -0
- package/src/components/newsletter/index.js +1 -0
- package/src/components/newsletter/newsletter.component.js +101 -0
- package/src/components/newsletter/newsletter.js +6 -0
- package/src/components/newsletter/newsletter.stories.js +59 -0
- package/src/components/newsletter/newsletter.styles.js +89 -0
- package/src/components/notice/index.js +1 -1
- package/src/components/notice/notice.js +0 -1
- package/src/components/notice/notice.styles.js +7 -7
- package/src/components/notice/notice.test.js +15 -5
- package/src/components/pagination/index.js +1 -1
- package/src/components/pagination/pagination.stories.js +1 -3
- package/src/components/pagination/pagination.styles.js +1 -1
- package/src/components/pagination/pagination.test.js +9 -4
- package/src/components/pricing/index.js +1 -0
- package/src/components/pricing/pricing.component.js +119 -0
- package/src/components/pricing/pricing.js +6 -0
- package/src/components/pricing/pricing.stories.js +123 -0
- package/src/components/pricing/pricing.styles.js +135 -0
- package/src/components/sidebar/index.js +0 -2
- package/src/components/sidebar/sidebar.component.js +12 -10
- package/src/components/sidebar/sidebar.js +3 -3
- package/src/components/sidebar/sidebar.stories.js +0 -2
- package/src/components/sidebar/sidebar.styles.js +181 -186
- package/src/components/sidebar/sidebar.test.js +48 -13
- package/src/components/stats/index.js +1 -0
- package/src/components/stats/stats.component.js +73 -0
- package/src/components/stats/stats.js +6 -0
- package/src/components/stats/stats.stories.js +64 -0
- package/src/components/stats/stats.styles.js +66 -0
- package/src/components/tabs/index.js +2 -2
- package/src/components/tabs/internal/tabs-button.component.js +1 -1
- package/src/components/tabs/internal/tabs-button.js +0 -1
- package/src/components/tabs/tab.js +0 -1
- package/src/components/tabs/tabs.js +3 -2
- package/src/components/tabs/tabs.styles.js +84 -74
- package/src/components/testimonials/index.js +1 -0
- package/src/components/testimonials/testimonials.component.js +97 -0
- package/src/components/testimonials/testimonials.js +6 -0
- package/src/components/testimonials/testimonials.stories.js +78 -0
- package/src/components/testimonials/testimonials.styles.js +82 -0
- package/src/components/toast/index.js +0 -2
- package/src/components/toast/toast.component.js +1 -3
- package/src/components/toast/toast.js +10 -5
- package/src/components/toast/toast.stories.js +9 -5
- package/src/components/toast/toast.styles.js +199 -201
- package/src/components/toast/toast.test.js +38 -10
- package/src/components/tooltip/index.js +1 -1
- package/src/components/tooltip/tooltip.js +3 -2
- package/src/components/tooltip/tooltip.styles.js +3 -3
- package/src/components/tooltip/tooltip.test.js +10 -4
- package/src/css/base.css +8 -5
- package/src/css/colors.stories.js +27 -28
- package/src/css/elements/forms/input.css +9 -41
- package/src/css/elements/media/image.css +1 -1
- package/src/css/themes/todomap.css +1 -0
- package/src/css/tokens.stories.js +26 -21
- package/src/css/typography.css +1 -3
- package/src/css/util/focus-ring.css +30 -0
- package/src/css/util/index.css +1 -2
- package/src/lib/styles/focus-ring.styles.js +34 -0
- package/src/main.js +10 -1
- package/src/pages/agency.stories.js +164 -0
- package/src/pages/blog-post.stories.js +381 -0
- package/src/pages/saas-landing.stories.js +307 -0
- package/src/test-utils/assert-helpers.js +10 -8
- package/src/css/util/functions.css +0 -16
- package/src/css/util/mixins.css +0 -63
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { getStorybookHelpers } from "@wc-toolkit/storybook-helpers";
|
|
2
|
+
import "./pricing.js";
|
|
3
|
+
|
|
4
|
+
const { events, args, argTypes } = getStorybookHelpers("grantcodes-pricing");
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: "Blocks/Pricing",
|
|
8
|
+
component: "grantcodes-pricing",
|
|
9
|
+
args,
|
|
10
|
+
argTypes,
|
|
11
|
+
parameters: {
|
|
12
|
+
actions: {
|
|
13
|
+
handles: events,
|
|
14
|
+
},
|
|
15
|
+
layout: "fullscreen",
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
|
|
21
|
+
const tiers = JSON.stringify([
|
|
22
|
+
{
|
|
23
|
+
name: "Starter",
|
|
24
|
+
price: "$0",
|
|
25
|
+
period: "month",
|
|
26
|
+
description: "Perfect for side projects and open source.",
|
|
27
|
+
features: [
|
|
28
|
+
{ text: "5 projects", included: true },
|
|
29
|
+
{ text: "Community support", included: true },
|
|
30
|
+
{ text: "Basic analytics", included: true },
|
|
31
|
+
{ text: "Custom domain", included: false },
|
|
32
|
+
{ text: "Priority support", included: false },
|
|
33
|
+
],
|
|
34
|
+
cta: { label: "Get started free", href: "/signup" },
|
|
35
|
+
highlighted: false,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "Pro",
|
|
39
|
+
price: "$19",
|
|
40
|
+
period: "month",
|
|
41
|
+
description: "Everything you need for a growing team.",
|
|
42
|
+
features: [
|
|
43
|
+
{ text: "Unlimited projects", included: true },
|
|
44
|
+
{ text: "Priority support", included: true },
|
|
45
|
+
{ text: "Advanced analytics", included: true },
|
|
46
|
+
{ text: "Custom domain", included: true },
|
|
47
|
+
{ text: "SLA guarantee", included: false },
|
|
48
|
+
],
|
|
49
|
+
cta: { label: "Start free trial", href: "/signup?plan=pro" },
|
|
50
|
+
highlighted: true,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "Enterprise",
|
|
54
|
+
price: "$99",
|
|
55
|
+
period: "month",
|
|
56
|
+
description: "Dedicated support and compliance features.",
|
|
57
|
+
features: [
|
|
58
|
+
{ text: "Unlimited projects", included: true },
|
|
59
|
+
{ text: "Dedicated support", included: true },
|
|
60
|
+
{ text: "Advanced analytics", included: true },
|
|
61
|
+
{ text: "Custom domain", included: true },
|
|
62
|
+
{ text: "SLA guarantee", included: true },
|
|
63
|
+
],
|
|
64
|
+
cta: { label: "Contact sales", href: "/contact" },
|
|
65
|
+
highlighted: false,
|
|
66
|
+
},
|
|
67
|
+
]);
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Three-tier pricing with one highlighted plan.
|
|
71
|
+
*/
|
|
72
|
+
export const Default = {
|
|
73
|
+
args: {
|
|
74
|
+
title: "Simple, transparent pricing",
|
|
75
|
+
subtitle: "No hidden fees. Cancel any time.",
|
|
76
|
+
tiers,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Pricing without the section heading.
|
|
82
|
+
*/
|
|
83
|
+
export const NoHeading = {
|
|
84
|
+
args: {
|
|
85
|
+
tiers,
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Two-tier pricing — free vs paid.
|
|
91
|
+
*/
|
|
92
|
+
export const TwoTiers = {
|
|
93
|
+
args: {
|
|
94
|
+
title: "Choose a plan",
|
|
95
|
+
tiers: JSON.stringify([
|
|
96
|
+
{
|
|
97
|
+
name: "Free",
|
|
98
|
+
price: "$0",
|
|
99
|
+
description: "Get started at no cost.",
|
|
100
|
+
features: [
|
|
101
|
+
{ text: "3 projects", included: true },
|
|
102
|
+
{ text: "Community support", included: true },
|
|
103
|
+
{ text: "Custom domain", included: false },
|
|
104
|
+
],
|
|
105
|
+
cta: { label: "Sign up free", href: "/signup" },
|
|
106
|
+
highlighted: false,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "Paid",
|
|
110
|
+
price: "$9",
|
|
111
|
+
period: "month",
|
|
112
|
+
description: "Unlock the full platform.",
|
|
113
|
+
features: [
|
|
114
|
+
{ text: "Unlimited projects", included: true },
|
|
115
|
+
{ text: "Email support", included: true },
|
|
116
|
+
{ text: "Custom domain", included: true },
|
|
117
|
+
],
|
|
118
|
+
cta: { label: "Upgrade", href: "/upgrade" },
|
|
119
|
+
highlighted: true,
|
|
120
|
+
},
|
|
121
|
+
]),
|
|
122
|
+
},
|
|
123
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
|
|
3
|
+
export const pricingStyles = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.pricing {
|
|
9
|
+
padding-block: var(--g-theme-spacing-3xl);
|
|
10
|
+
padding-inline: var(--g-theme-spacing-md);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pricing__container {
|
|
14
|
+
max-width: 1200px;
|
|
15
|
+
margin: 0 auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pricing__title {
|
|
19
|
+
margin: 0 0 var(--g-theme-spacing-sm);
|
|
20
|
+
font-size: var(--g-theme-typography-headline-sm-font-size);
|
|
21
|
+
font-weight: var(--g-theme-typography-headline-sm-font-weight);
|
|
22
|
+
text-align: center;
|
|
23
|
+
color: var(--g-theme-color-content-default);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pricing__subtitle {
|
|
27
|
+
margin: 0 auto var(--g-theme-spacing-2xl);
|
|
28
|
+
font-size: var(--g-theme-typography-body-lg-font-size);
|
|
29
|
+
text-align: center;
|
|
30
|
+
color: var(--g-theme-color-content-secondary);
|
|
31
|
+
max-width: 55ch;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pricing__grid {
|
|
35
|
+
display: grid;
|
|
36
|
+
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
37
|
+
gap: var(--g-theme-spacing-lg);
|
|
38
|
+
align-items: start;
|
|
39
|
+
padding: 0;
|
|
40
|
+
margin: 0;
|
|
41
|
+
list-style: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.pricing__tier {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
gap: var(--g-theme-spacing-lg);
|
|
48
|
+
padding: var(--g-theme-spacing-xl);
|
|
49
|
+
border: 1px solid var(--g-theme-color-border-default);
|
|
50
|
+
border-radius: var(--g-theme-border-radius-md, 0.5rem);
|
|
51
|
+
background: var(--g-theme-color-background-default);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pricing__tier--highlighted {
|
|
55
|
+
border-color: var(--g-theme-color-border-brand, #7c3aed);
|
|
56
|
+
background: var(--g-theme-color-background-subtle);
|
|
57
|
+
box-shadow: var(--g-theme-shadow-lg);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pricing__tier-header {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
gap: var(--g-theme-spacing-sm);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pricing__tier-name {
|
|
67
|
+
margin: 0;
|
|
68
|
+
font-size: var(--g-theme-typography-body-lg-font-size);
|
|
69
|
+
font-weight: var(--g-theme-typography-label-lg-font-weight);
|
|
70
|
+
color: var(--g-theme-color-content-default);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.pricing__price-wrap {
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: baseline;
|
|
76
|
+
gap: var(--g-theme-spacing-xs);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.pricing__price {
|
|
80
|
+
font: var(--g-theme-typography-headline-lg);
|
|
81
|
+
color: var(--g-theme-color-content-default);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.pricing__period {
|
|
85
|
+
font-size: var(--g-theme-typography-body-default-font-size);
|
|
86
|
+
color: var(--g-theme-color-content-secondary);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.pricing__tier-desc {
|
|
90
|
+
margin: 0;
|
|
91
|
+
font: var(--g-theme-typography-body-sm);
|
|
92
|
+
color: var(--g-theme-color-content-secondary);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.pricing__features {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
gap: var(--g-theme-spacing-sm);
|
|
99
|
+
padding: 0;
|
|
100
|
+
margin: 0;
|
|
101
|
+
list-style: none;
|
|
102
|
+
flex: 1;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.pricing__feature {
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
gap: var(--g-theme-spacing-sm);
|
|
109
|
+
font-size: var(--g-theme-typography-body-default-font-size);
|
|
110
|
+
color: var(--g-theme-color-content-default);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.pricing__feature--excluded {
|
|
114
|
+
color: var(--g-theme-color-content-secondary);
|
|
115
|
+
text-decoration: line-through;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.pricing__feature-icon {
|
|
119
|
+
font: var(--g-theme-typography-body-sm);
|
|
120
|
+
color: var(--g-theme-color-content-brand, #7c3aed);
|
|
121
|
+
flex-shrink: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.pricing__feature--excluded .pricing__feature-icon {
|
|
125
|
+
color: var(--g-theme-color-content-secondary);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.pricing__cta {
|
|
129
|
+
margin-top: auto;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.pricing__cta grantcodes-button {
|
|
133
|
+
width: 100%;
|
|
134
|
+
}
|
|
135
|
+
`;
|
|
@@ -114,7 +114,7 @@ export class GrantCodesSidebar extends LitElement {
|
|
|
114
114
|
<!-- Mobile Toggle Button -->
|
|
115
115
|
<button
|
|
116
116
|
type="button"
|
|
117
|
-
class="sidebar__mobile-toggle"
|
|
117
|
+
class="sidebar__mobile-toggle focus-ring"
|
|
118
118
|
@click=${this._toggleDrawer}
|
|
119
119
|
aria-label="${this._drawerOpen ? "Close sidebar" : "Open sidebar"}"
|
|
120
120
|
>
|
|
@@ -122,8 +122,9 @@ export class GrantCodesSidebar extends LitElement {
|
|
|
122
122
|
</button>
|
|
123
123
|
|
|
124
124
|
<!-- Overlay for mobile -->
|
|
125
|
-
${
|
|
126
|
-
|
|
125
|
+
${
|
|
126
|
+
this._drawerOpen
|
|
127
|
+
? html`
|
|
127
128
|
<div
|
|
128
129
|
class="sidebar__overlay"
|
|
129
130
|
@click=${() => {
|
|
@@ -131,7 +132,8 @@ export class GrantCodesSidebar extends LitElement {
|
|
|
131
132
|
}}
|
|
132
133
|
></div>
|
|
133
134
|
`
|
|
134
|
-
|
|
135
|
+
: ""
|
|
136
|
+
}
|
|
135
137
|
|
|
136
138
|
<!-- Sidebar -->
|
|
137
139
|
<aside
|
|
@@ -139,11 +141,12 @@ export class GrantCodesSidebar extends LitElement {
|
|
|
139
141
|
style="--sidebar-width: ${this.width}"
|
|
140
142
|
>
|
|
141
143
|
<!-- Collapse Toggle (Desktop) -->
|
|
142
|
-
${
|
|
143
|
-
|
|
144
|
+
${
|
|
145
|
+
this.collapsible
|
|
146
|
+
? html`
|
|
144
147
|
<button
|
|
145
148
|
type="button"
|
|
146
|
-
class="sidebar__toggle"
|
|
149
|
+
class="sidebar__toggle focus-ring"
|
|
147
150
|
@click=${this._toggleCollapsed}
|
|
148
151
|
aria-label="${this.collapsed ? "Expand sidebar" : "Collapse sidebar"}"
|
|
149
152
|
aria-expanded="${!this.collapsed}"
|
|
@@ -151,7 +154,8 @@ export class GrantCodesSidebar extends LitElement {
|
|
|
151
154
|
${this.position === "left" ? (this.collapsed ? "→" : "←") : this.collapsed ? "←" : "→"}
|
|
152
155
|
</button>
|
|
153
156
|
`
|
|
154
|
-
|
|
157
|
+
: ""
|
|
158
|
+
}
|
|
155
159
|
|
|
156
160
|
<!-- Content -->
|
|
157
161
|
<div class="sidebar__content">
|
|
@@ -161,5 +165,3 @@ export class GrantCodesSidebar extends LitElement {
|
|
|
161
165
|
`;
|
|
162
166
|
}
|
|
163
167
|
}
|
|
164
|
-
|
|
165
|
-
|
|
@@ -3,6 +3,6 @@ import { GrantCodesSidebar } from "./sidebar.component.js";
|
|
|
3
3
|
export * from "./sidebar.component.js";
|
|
4
4
|
export default GrantCodesSidebar;
|
|
5
5
|
|
|
6
|
-
customElements.
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
if (!customElements.get("grantcodes-sidebar")) {
|
|
7
|
+
customElements.define("grantcodes-sidebar", GrantCodesSidebar);
|
|
8
|
+
}
|