@grantcodes/ui 2.10.0 → 2.10.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 +7 -0
- package/package.json +1 -1
- package/src/components/accordion/accordion.component.js +3 -1
- package/src/components/accordion/accordion.css +47 -42
- package/src/components/accordion/accordion.react.js +4 -4
- package/src/components/app-bar/app-bar.component.js +15 -9
- package/src/components/app-bar/app-bar.css +256 -250
- package/src/components/app-bar/app-bar.react.js +4 -4
- package/src/components/app-bar/app-bar.test.js +1 -3
- package/src/components/app-bar/nav-link.component.js +3 -1
- package/src/components/app-bar/nav-link.css +50 -45
- package/src/components/app-bar/nav-link.react.js +4 -4
- package/src/components/avatar/avatar.css +19 -21
- package/src/components/avatar/avatar.react.js +4 -4
- package/src/components/badge/badge.css +51 -51
- package/src/components/badge/badge.react.js +4 -4
- package/src/components/breadcrumb/breadcrumb.component.js +3 -1
- package/src/components/breadcrumb/breadcrumb.css +73 -73
- package/src/components/breadcrumb/breadcrumb.react.js +8 -5
- package/src/components/button/button.component.js +3 -1
- package/src/components/button/button.css +38 -38
- package/src/components/button/button.react.js +4 -4
- package/src/components/button-group/button-group.css +33 -33
- package/src/components/button-group/button-group.react.js +4 -4
- package/src/components/card/card.css +150 -150
- package/src/components/card/card.react.js +4 -4
- package/src/components/code-preview/code-preview.css +11 -12
- package/src/components/code-preview/code-preview.react.js +4 -4
- package/src/components/container/container.css +37 -37
- package/src/components/container/container.react.js +4 -4
- package/src/components/countdown/countdown.component.js +5 -3
- package/src/components/countdown/countdown.stories.js +1 -2
- package/src/components/cta/cta.css +55 -55
- package/src/components/cta/cta.react.js +4 -4
- package/src/components/dialog/dialog.css +48 -49
- package/src/components/dialog/dialog.react.js +4 -4
- package/src/components/dropdown/dropdown.css +123 -121
- package/src/components/dropdown/dropdown.react.js +5 -5
- package/src/components/dropzone/dropzone.css +5 -3
- package/src/components/dropzone/dropzone.react.js +4 -4
- package/src/components/feature-list/feature-list.css +71 -71
- package/src/components/feature-list/feature-list.react.js +4 -4
- package/src/components/footer/footer-column.css +39 -39
- package/src/components/footer/footer.css +68 -69
- package/src/components/footer/footer.react.js +5 -5
- package/src/components/form-field/form-field.css +40 -40
- package/src/components/form-field/form-field.react.js +4 -4
- package/src/components/gallery/gallery-image.react.js +4 -4
- package/src/components/gallery/gallery.css +72 -72
- package/src/components/gallery/gallery.react.js +4 -4
- package/src/components/gallery/gallery.test.js +5 -1
- package/src/components/hero/hero.css +61 -57
- package/src/components/hero/hero.react.js +4 -4
- package/src/components/icon/icon.css +27 -27
- package/src/components/icon/icon.react.js +4 -4
- package/src/components/loading/loading.css +30 -31
- package/src/components/loading/loading.react.js +4 -4
- package/src/components/logo-cloud/logo-cloud.css +60 -60
- package/src/components/logo-cloud/logo-cloud.react.js +4 -4
- package/src/components/map/map.component.js +3 -4
- package/src/components/map/map.css +36 -36
- package/src/components/media-text/media-text.css +58 -58
- package/src/components/media-text/media-text.react.js +4 -4
- package/src/components/newsletter/newsletter.css +78 -78
- package/src/components/newsletter/newsletter.react.js +4 -4
- package/src/components/notice/notice.css +38 -38
- package/src/components/notice/notice.react.js +4 -4
- package/src/components/pagination/pagination.css +6 -7
- package/src/components/pagination/pagination.react.js +4 -4
- package/src/components/pricing/pricing.css +137 -137
- package/src/components/pricing/pricing.react.js +4 -4
- package/src/components/sidebar/sidebar.component.js +3 -1
- package/src/components/sidebar/sidebar.css +180 -180
- package/src/components/sidebar/sidebar.react.js +4 -4
- package/src/components/stats/stats.css +58 -58
- package/src/components/stats/stats.react.js +4 -4
- package/src/components/tabs/internal/tabs-button.component.js +3 -1
- package/src/components/tabs/internal/tabs-button.react.js +4 -4
- package/src/components/tabs/tab.component.js +3 -1
- package/src/components/tabs/tab.react.js +4 -4
- package/src/components/tabs/tabs.component.js +3 -1
- package/src/components/tabs/tabs.css +82 -82
- package/src/components/tabs/tabs.react.js +4 -4
- package/src/components/testimonials/testimonials.css +72 -72
- package/src/components/testimonials/testimonials.react.js +4 -4
- package/src/components/toast/toast.component.js +3 -1
- package/src/components/toast/toast.css +198 -198
- package/src/components/toast/toast.react.js +5 -5
- package/src/components/tooltip/tooltip.css +52 -51
- package/src/components/tooltip/tooltip.react.js +4 -4
- package/src/css/reset.css +102 -102
- package/src/css/typography.css +13 -11
- package/src/exports.test.js +101 -95
- package/src/lib/styles/all.css +37 -37
- package/src/lib/styles/focus-ring.css +20 -20
- package/src/react.js +45 -39
- package/vite-plugin-css-import-attributes.js +5 -2
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
1
|
+
/* Inlined component-base mixin */
|
|
2
|
+
*,
|
|
3
|
+
*::before,
|
|
4
|
+
*::after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host {
|
|
9
|
+
display: block;
|
|
10
|
+
flex-grow: 1;
|
|
11
|
+
/* Enable container queries for responsive card layouts */
|
|
12
|
+
container-type: inline-size;
|
|
13
|
+
container-name: card;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.card {
|
|
17
|
+
display: flex;
|
|
18
|
+
inline-size: 100%;
|
|
19
|
+
min-block-size: 100%;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
justify-content: flex-start;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
background: var(--g-theme-color-background-default);
|
|
24
|
+
border-style: solid;
|
|
25
|
+
border-width: var(--g-theme-border-width-sm);
|
|
26
|
+
border-color: var(--g-theme-color-border-default);
|
|
27
|
+
border-radius: var(--g-theme-border-radius-md);
|
|
28
|
+
box-shadow: var(--g-theme-box-shadow-md);
|
|
29
|
+
transition:
|
|
30
|
+
box-shadow 0.2s ease,
|
|
31
|
+
transform 0.2s ease,
|
|
32
|
+
border-color 0.2s ease,
|
|
33
|
+
background-color 0.2s ease;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Image support - images in header or content will be styled appropriately */
|
|
37
|
+
.card__header img,
|
|
38
|
+
.card__content img {
|
|
39
|
+
display: block;
|
|
40
|
+
inline-size: 100%;
|
|
41
|
+
block-size: auto;
|
|
42
|
+
border-radius: inherit;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.card__header {
|
|
46
|
+
padding-inline: var(--g-theme-spacing-md);
|
|
47
|
+
padding-block: var(--g-spacing-12);
|
|
48
|
+
border-block-end: 1px solid var(--g-theme-color-border-default);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.card__header:not([data-has-content]) {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.card__header ::slotted(*) {
|
|
56
|
+
margin: 0;
|
|
57
|
+
font: var(--g-typography-h5-font);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.card__content {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
justify-content: flex-start;
|
|
64
|
+
gap: var(--g-theme-spacing-md);
|
|
65
|
+
padding-block: var(--g-theme-spacing-md);
|
|
66
|
+
padding-inline: var(--g-theme-spacing-md);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.card__content:has(::slotted(:empty)) {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.card__content > * {
|
|
74
|
+
margin: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.card__footer {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: row;
|
|
80
|
+
flex-wrap: wrap;
|
|
81
|
+
justify-content: flex-start;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: var(--g-theme-spacing-sm);
|
|
84
|
+
padding-inline: var(--g-theme-spacing-md);
|
|
85
|
+
padding-block: var(--g-spacing-12);
|
|
86
|
+
border-block-start: 1px solid var(--g-theme-color-border-default);
|
|
87
|
+
background: var(--g-theme-color-background-default);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.card__footer:not([data-has-content]) {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.card__footer ::slotted(grantcodes-button-group) {
|
|
95
|
+
width: 100%;
|
|
96
|
+
justify-content: flex-end;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.card__meta {
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: row;
|
|
102
|
+
align-items: center;
|
|
103
|
+
flex-wrap: wrap;
|
|
104
|
+
gap: var(--g-theme-spacing-md);
|
|
105
|
+
margin: 0;
|
|
106
|
+
padding-inline: var(--g-theme-spacing-md);
|
|
107
|
+
padding-block: 1em;
|
|
108
|
+
font-size: var(--g-theme-typography-meta-sm-font-size);
|
|
109
|
+
/* Use color-mix() for modern color manipulation */
|
|
110
|
+
background-color: color-mix(
|
|
111
|
+
in srgb,
|
|
112
|
+
var(--g-theme-color-background-default) 90%,
|
|
113
|
+
var(--g-theme-color-primary-500) 10%
|
|
114
|
+
);
|
|
115
|
+
color: var(--g-theme-color-content-default);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.card__meta__item {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: row;
|
|
121
|
+
align-items: center;
|
|
122
|
+
flex-wrap: nowrap;
|
|
123
|
+
gap: 0.3em;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.card__meta__item dt,
|
|
127
|
+
.card__meta__item dd {
|
|
128
|
+
display: block;
|
|
129
|
+
margin: 0;
|
|
130
|
+
padding: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.card__meta__item dt::after {
|
|
134
|
+
content: ":";
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host(.is-clickable) .card {
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:host(.is-clickable:hover) .card {
|
|
142
|
+
transform: translateY(-2px);
|
|
143
|
+
box-shadow: var(--g-theme-box-shadow-lg);
|
|
144
|
+
border-color: var(--g-theme-color-border-default);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:host(.is-clickable:active) .card {
|
|
148
|
+
transform: translateY(-1px);
|
|
149
|
+
border-color: var(--g-theme-color-border-active);
|
|
150
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesCard } from "./card.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesCard } from "./card.js";
|
|
4
4
|
|
|
5
5
|
export const Card = createComponent({
|
|
6
6
|
tagName: "grantcodes-card",
|
|
7
7
|
elementClass: GrantCodesCard,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
*,
|
|
2
2
|
*::before,
|
|
3
3
|
*::after {
|
|
4
|
-
|
|
4
|
+
box-sizing: border-box;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.code-preview > pre {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
display: block;
|
|
9
|
+
font-family: var(--g-typography-font-family-system);
|
|
10
|
+
line-height: 1.2;
|
|
11
|
+
width: 100%;
|
|
12
|
+
overflow: auto;
|
|
13
|
+
border-radius: var(--g-theme-border-radius-md);
|
|
14
|
+
box-shadow: var(--g-theme-box-shadow-sm);
|
|
15
|
+
font-size: var(--g-typography-font-size-14);
|
|
16
|
+
font-weight: var(--g-typography-font-weight-400);
|
|
17
|
+
padding: var(--g-theme-spacing-md);
|
|
18
18
|
}
|
|
19
|
-
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesCodePreview } from "./code-preview.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesCodePreview } from "./code-preview.js";
|
|
4
4
|
|
|
5
5
|
export const CodePreview = createComponent({
|
|
6
6
|
tagName: "grantcodes-code-preview",
|
|
7
7
|
elementClass: GrantCodesCodePreview,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
.container {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
justify-content: flex-start;
|
|
11
|
+
align-items: stretch;
|
|
12
|
+
inline-size: 1200px;
|
|
13
|
+
max-inline-size: 100%;
|
|
14
|
+
padding-inline: var(--g-theme-spacing-md);
|
|
15
|
+
margin-inline: auto;
|
|
16
|
+
background-color: inherit;
|
|
17
|
+
}
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
.container--prose {
|
|
20
|
+
max-inline-size: 65ch;
|
|
21
|
+
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
.container--wide {
|
|
24
|
+
inline-size: 1400px;
|
|
25
|
+
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
.container--full {
|
|
28
|
+
inline-size: 100%;
|
|
29
|
+
}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
.container--viewport {
|
|
32
|
+
inset-inline-start: 50%;
|
|
33
|
+
position: relative;
|
|
34
|
+
inset-inline-end: 50%;
|
|
35
|
+
margin-inline-start: -50dvw;
|
|
36
|
+
margin-inline-end: -50dvw;
|
|
37
|
+
max-inline-size: 100dvw;
|
|
38
|
+
inline-size: 100dvw;
|
|
39
|
+
}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
.container--nopad {
|
|
42
|
+
padding-inline: 0;
|
|
43
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesContainer } from "./container.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesContainer } from "./container.js";
|
|
4
4
|
|
|
5
5
|
export const Container = createComponent({
|
|
6
6
|
tagName: "grantcodes-container",
|
|
7
7
|
elementClass: GrantCodesContainer,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -166,14 +166,16 @@ export class GrantCodesCountdown extends LitElement {
|
|
|
166
166
|
<span class="countdown__value" data-unit="minutes">${this._minutes}</span>
|
|
167
167
|
<span class="countdown__label">${this["minutes-label"]}</span>
|
|
168
168
|
</div>
|
|
169
|
-
${
|
|
170
|
-
|
|
169
|
+
${
|
|
170
|
+
this["show-seconds"]
|
|
171
|
+
? html`
|
|
171
172
|
<div class="countdown__unit">
|
|
172
173
|
<span class="countdown__value" data-unit="seconds">${this._seconds}</span>
|
|
173
174
|
<span class="countdown__label">${this["seconds-label"]}</span>
|
|
174
175
|
</div>
|
|
175
176
|
`
|
|
176
|
-
|
|
177
|
+
: nothing
|
|
178
|
+
}
|
|
177
179
|
</div>
|
|
178
180
|
`;
|
|
179
181
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { getStorybookHelpers } from "@wc-toolkit/storybook-helpers";
|
|
2
2
|
import "./countdown.js";
|
|
3
3
|
|
|
4
|
-
const { events, args, argTypes } =
|
|
5
|
-
getStorybookHelpers("grantcodes-countdown");
|
|
4
|
+
const { events, args, argTypes } = getStorybookHelpers("grantcodes-countdown");
|
|
6
5
|
|
|
7
6
|
const meta = {
|
|
8
7
|
title: "Components/Countdown",
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
.cta {
|
|
12
|
+
padding-block: var(--g-theme-spacing-3xl);
|
|
13
|
+
padding-inline: var(--g-theme-spacing-md);
|
|
14
|
+
background: var(--g-theme-color-background-subtle);
|
|
15
|
+
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
.cta__container {
|
|
18
|
+
max-width: 65ch;
|
|
19
|
+
margin: 0 auto;
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
:host([align="center"]) .cta {
|
|
23
|
+
text-align: center;
|
|
24
|
+
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
:host([align="center"]) .cta__actions {
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
.cta__eyebrow {
|
|
31
|
+
margin: 0 0 var(--g-theme-spacing-sm);
|
|
32
|
+
font-size: var(--g-theme-typography-meta-default-font-size);
|
|
33
|
+
font-weight: var(--g-theme-typography-meta-default-font-weight);
|
|
34
|
+
letter-spacing: var(--g-theme-typography-meta-default-letter-spacing);
|
|
35
|
+
text-transform: uppercase;
|
|
36
|
+
color: var(--g-theme-color-content-primary, #7c3aed);
|
|
37
|
+
}
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
.cta__title {
|
|
40
|
+
margin: 0 0 var(--g-theme-spacing-md);
|
|
41
|
+
font: var(--g-typography-h2-font);
|
|
42
|
+
color: var(--g-theme-color-content-default);
|
|
43
|
+
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
.cta__text {
|
|
46
|
+
margin: 0 0 var(--g-theme-spacing-xl);
|
|
47
|
+
font: var(--g-theme-typography-body-lg);
|
|
48
|
+
color: var(--g-theme-color-content-subtle);
|
|
49
|
+
}
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
.cta__actions {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
gap: var(--g-theme-spacing-md);
|
|
55
|
+
align-items: center;
|
|
56
|
+
}
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
.cta__secondary-link {
|
|
59
|
+
font-size: var(--g-theme-typography-body-default-font-size);
|
|
60
|
+
font-weight: var(--g-typography-font-weight-500);
|
|
61
|
+
color: var(--g-theme-color-content-default);
|
|
62
|
+
}
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
.cta__secondary-link:hover {
|
|
65
|
+
color: var(--g-theme-color-content-primary, #7c3aed);
|
|
66
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesCta } from "./cta.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesCta } from "./cta.js";
|
|
4
4
|
|
|
5
5
|
export const Cta = createComponent({
|
|
6
6
|
tagName: "grantcodes-cta",
|
|
7
7
|
elementClass: GrantCodesCta,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|