@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,75 +1,74 @@
|
|
|
1
1
|
*,
|
|
2
2
|
*::before,
|
|
3
3
|
*::after {
|
|
4
|
-
|
|
4
|
+
box-sizing: border-box;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.dialog {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
width: 100%;
|
|
9
|
+
padding: 0;
|
|
10
|
+
max-width: 1200px;
|
|
11
|
+
background: var(--g-theme-color-background-default);
|
|
12
|
+
border-style: solid;
|
|
13
|
+
border-width: var(--g-theme-border-width-sm);
|
|
14
|
+
border-color: var(--g-theme-color-border-default);
|
|
15
|
+
border-radius: var(--g-theme-border-radius-md);
|
|
16
|
+
overflow: hidden;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.dialog::backdrop {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
position: fixed;
|
|
21
|
+
inset: 0;
|
|
22
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
23
|
+
backdrop-filter: blur(6px);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.dialog__dismiss {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
27
|
+
display: block;
|
|
28
|
+
position: absolute;
|
|
29
|
+
border: none;
|
|
30
|
+
line-height: 1;
|
|
31
|
+
font-size: var(--g-theme-typography-h4-font-size);
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
background: transparent;
|
|
34
|
+
inset-block-start: var(--g-theme-spacing-md);
|
|
35
|
+
inset-inline-end: var(--g-theme-spacing-md);
|
|
36
|
+
margin-block-start: -0.25rem;
|
|
37
|
+
margin-inline-end: -0.25rem;
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
width: 2rem;
|
|
40
|
+
height: 2rem;
|
|
41
|
+
padding: var(--g-theme-spacing-xs);
|
|
42
|
+
justify-content: center;
|
|
43
|
+
align-items: center;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.dialog__content {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
justify-content: flex-start;
|
|
50
|
+
gap: var(--g-theme-spacing-md);
|
|
51
|
+
padding: var(--g-theme-spacing-md);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.dialog__header,
|
|
55
55
|
.dialog__footer {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
&:empty,
|
|
57
|
+
&:has(slot:empty) {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.dialog__header {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: row;
|
|
65
|
+
justify-content: space-between;
|
|
66
|
+
align-items: center;
|
|
67
|
+
padding: var(--g-theme-spacing-md);
|
|
68
|
+
border-bottom: var(--g-theme-border-width-sm) solid
|
|
69
|
+
var(--g-theme-color-border-default);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.dialog__footer ::slotted(grantcodes-button-group) {
|
|
73
|
-
|
|
73
|
+
--g-theme-border-radius-md: 0;
|
|
74
74
|
}
|
|
75
|
-
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesDialog } from "./dialog.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesDialog } from "./dialog.js";
|
|
4
4
|
|
|
5
5
|
export const Dialog = createComponent({
|
|
6
6
|
tagName: "grantcodes-dialog",
|
|
7
7
|
elementClass: GrantCodesDialog,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -1,124 +1,126 @@
|
|
|
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
|
-
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:host,
|
|
8
|
+
.dropdown {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dropdown__trigger {
|
|
13
|
+
display: inline-block;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dropdown__menu {
|
|
18
|
+
display: none;
|
|
19
|
+
position: fixed;
|
|
20
|
+
anchor-name: --dropdown-trigger;
|
|
21
|
+
z-index: 1000;
|
|
22
|
+
min-inline-size: 12rem;
|
|
23
|
+
margin-block: var(--g-theme-spacing-xs);
|
|
24
|
+
padding-block: var(--g-theme-spacing-sm);
|
|
25
|
+
background-color: var(--g-theme-color-background-default);
|
|
26
|
+
border: 1px solid var(--g-theme-color-border-default);
|
|
27
|
+
border-radius: var(--g-theme-border-radius-md);
|
|
28
|
+
animation: dropdown-fade-in 0.15s ease-out;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dropdown__menu--open {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Position using anchor positioning when available */
|
|
36
|
+
@supports (anchor-name: --dropdown-trigger) {
|
|
31
37
|
.dropdown__menu--open {
|
|
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
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
119
|
-
@supports (view-transition-name: auto) {
|
|
120
|
-
.dropdown__menu {
|
|
121
|
-
view-transition-name: dropdown-menu;
|
|
122
|
-
}
|
|
38
|
+
position-area: bottom span-right;
|
|
39
|
+
position-try:
|
|
40
|
+
block-end,
|
|
41
|
+
block-start span-inline-start;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.dropdown__menu ::slotted(*) {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Dropdown item */
|
|
51
|
+
.dropdown-item {
|
|
52
|
+
display: flex;
|
|
53
|
+
width: 100%;
|
|
54
|
+
align-items: center;
|
|
55
|
+
gap: var(--g-theme-spacing-sm);
|
|
56
|
+
padding-block: var(--g-theme-spacing-sm);
|
|
57
|
+
padding-inline: var(--g-theme-spacing-md);
|
|
58
|
+
font-size: var(--g-typography-font-size-16);
|
|
59
|
+
color: var(--g-theme-color-content-default);
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition: background-color 0.15s ease;
|
|
62
|
+
user-select: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.dropdown-item:hover {
|
|
66
|
+
background-color: var(--g-theme-color-background-subtle-hover);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.dropdown-item:focus {
|
|
70
|
+
outline: none;
|
|
71
|
+
background-color: var(--g-theme-color-background-subtle-hover);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.dropdown-item:active {
|
|
75
|
+
background-color: var(--g-theme-color-background-subtle);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.dropdown-item--disabled {
|
|
79
|
+
color: var(--g-theme-color-content-disabled);
|
|
80
|
+
cursor: not-allowed;
|
|
81
|
+
opacity: 0.6;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.dropdown-item--disabled:hover,
|
|
85
|
+
.dropdown-item--disabled:focus,
|
|
86
|
+
.dropdown-item--disabled:active {
|
|
87
|
+
background-color: transparent;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Animation */
|
|
91
|
+
@keyframes dropdown-fade-in {
|
|
92
|
+
from {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
transform: translateY(-0.5rem);
|
|
95
|
+
}
|
|
96
|
+
to {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
transform: translateY(0);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* For top placement, reverse animation */
|
|
103
|
+
.dropdown__menu--top-start,
|
|
104
|
+
.dropdown__menu--top-end {
|
|
105
|
+
animation: dropdown-fade-in-top 0.15s ease-out;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes dropdown-fade-in-top {
|
|
109
|
+
from {
|
|
110
|
+
opacity: 0;
|
|
111
|
+
transform: translateY(0.5rem);
|
|
112
|
+
}
|
|
113
|
+
to {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
transform: translateY(0);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* View transitions support */
|
|
120
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
121
|
+
@supports (view-transition-name: auto) {
|
|
122
|
+
.dropdown__menu {
|
|
123
|
+
view-transition-name: dropdown-menu;
|
|
123
124
|
}
|
|
124
125
|
}
|
|
126
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesDropdown, GrantCodesDropdownItem } from "./dropdown.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesDropdown, GrantCodesDropdownItem } from "./dropdown.js";
|
|
4
4
|
|
|
5
5
|
export const Dropdown = createComponent({
|
|
6
6
|
tagName: "grantcodes-dropdown",
|
|
@@ -9,7 +9,7 @@ export const Dropdown = createComponent({
|
|
|
9
9
|
events: {
|
|
10
10
|
onToggle: "toggle",
|
|
11
11
|
},
|
|
12
|
-
})
|
|
12
|
+
});
|
|
13
13
|
|
|
14
14
|
export const DropdownItem = createComponent({
|
|
15
15
|
tagName: "grantcodes-dropdown-item",
|
|
@@ -18,4 +18,4 @@ export const DropdownItem = createComponent({
|
|
|
18
18
|
events: {
|
|
19
19
|
onSelect: "select",
|
|
20
20
|
},
|
|
21
|
-
})
|
|
21
|
+
});
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
align-items: center;
|
|
16
16
|
justify-content: center;
|
|
17
17
|
padding: var(--g-theme-spacing-xl);
|
|
18
|
-
border: max(var(--g-theme-border-width-md), 0.2rem) dashed
|
|
18
|
+
border: max(var(--g-theme-border-width-md), 0.2rem) dashed
|
|
19
|
+
var(--g-theme-color-border-default);
|
|
19
20
|
border-radius: var(--g-theme-border-radius-md);
|
|
20
21
|
background-color: var(--g-theme-color-background-subtle);
|
|
21
22
|
}
|
|
@@ -28,14 +29,15 @@
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.dropzone--fullscreen::after {
|
|
31
|
-
content:
|
|
32
|
+
content: "";
|
|
32
33
|
display: flex;
|
|
33
34
|
position: fixed;
|
|
34
35
|
inset: var(--g-theme-spacing-xl);
|
|
35
36
|
justify-content: center;
|
|
36
37
|
align-items: center;
|
|
37
38
|
padding: var(--g-theme-spacing-xl);
|
|
38
|
-
border: max(calc(var(--g-theme-border-width-md) * 2), 0.4rem) dashed
|
|
39
|
+
border: max(calc(var(--g-theme-border-width-md) * 2), 0.4rem) dashed
|
|
40
|
+
var(--g-theme-color-border-default);
|
|
39
41
|
border-radius: calc(var(--g-theme-border-radius-md) * 2);
|
|
40
42
|
z-index: 11;
|
|
41
43
|
font-weight: var(--g-typography-font-weight-700);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesDropzone } from "./dropzone.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesDropzone } from "./dropzone.js";
|
|
4
4
|
|
|
5
5
|
export const Dropzone = createComponent({
|
|
6
6
|
tagName: "grantcodes-dropzone",
|
|
7
7
|
elementClass: GrantCodesDropzone,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -1,84 +1,84 @@
|
|
|
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
|
-
|
|
11
|
+
.feature-list {
|
|
12
|
+
padding-block: var(--g-theme-spacing-3xl);
|
|
13
|
+
padding-inline: var(--g-theme-spacing-md);
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
.feature-list__container {
|
|
17
|
+
max-width: 1200px;
|
|
18
|
+
margin: 0 auto;
|
|
19
|
+
}
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
.feature-list__title {
|
|
22
|
+
margin: 0 0 var(--g-theme-spacing-sm);
|
|
23
|
+
font: var(--g-typography-h4-font);
|
|
24
|
+
text-align: center;
|
|
25
|
+
color: var(--g-theme-color-content-default);
|
|
26
|
+
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
.feature-list__subtitle {
|
|
29
|
+
margin: 0 auto var(--g-theme-spacing-2xl);
|
|
30
|
+
font-size: var(--g-theme-typography-body-lg-font-size);
|
|
31
|
+
text-align: center;
|
|
32
|
+
color: var(--g-theme-color-content-subtle);
|
|
33
|
+
max-width: 55ch;
|
|
34
|
+
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
.feature-list__grid {
|
|
37
|
+
display: grid;
|
|
38
|
+
grid-template-columns: repeat(var(--columns, 3), 1fr);
|
|
39
|
+
gap: var(--g-theme-spacing-xl);
|
|
40
|
+
padding: 0;
|
|
41
|
+
margin: 0;
|
|
42
|
+
list-style: none;
|
|
43
|
+
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
@media (max-width: 768px) {
|
|
46
|
+
.feature-list__grid {
|
|
47
|
+
grid-template-columns: 1fr;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
@media (min-width: 769px) and (max-width: 1024px) {
|
|
52
|
+
.feature-list__grid {
|
|
53
|
+
grid-template-columns: repeat(min(var(--columns, 3), 2), 1fr);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
.feature-list__link,
|
|
58
|
+
.feature-list__content {
|
|
59
|
+
display: block;
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
color: inherit;
|
|
62
|
+
}
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
.feature-list__link:hover .feature-list__item-title {
|
|
65
|
+
color: var(--g-theme-color-content-primary, #7c3aed);
|
|
66
|
+
}
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
.feature-list__icon {
|
|
69
|
+
display: block;
|
|
70
|
+
padding: var(--g-theme-spacing-md);
|
|
71
|
+
border-radius: 50%;
|
|
72
|
+
inline-size: fit-content;
|
|
73
|
+
margin-block-end: var(--g-theme-spacing-md);
|
|
74
|
+
color: var(--g-theme-color-content-primary, currentColor);
|
|
75
|
+
background-color: var(--g-theme-color-background-primary);
|
|
76
|
+
}
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
.feature-list__item-title {
|
|
79
|
+
font: var(--g-typography-h5-font);
|
|
80
|
+
}
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
.feature-list__item-desc {
|
|
83
|
+
color: var(--g-theme-color-content-subtle);
|
|
84
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesFeatureList } from "./feature-list.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesFeatureList } from "./feature-list.js";
|
|
4
4
|
|
|
5
5
|
export const FeatureList = createComponent({
|
|
6
6
|
tagName: "grantcodes-feature-list",
|
|
7
7
|
elementClass: GrantCodesFeatureList,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|