@grantcodes/ui 2.9.2 → 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 +14 -0
- package/package.json +1 -1
- package/src/components/accordion/accordion.component.js +3 -1
- package/src/components/accordion/accordion.css +78 -57
- 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 +7 -3
- 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,180 +1,180 @@
|
|
|
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
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
display: contents;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.sidebar {
|
|
12
|
+
position: relative;
|
|
13
|
+
inline-size: var(--sidebar-width, 280px);
|
|
14
|
+
block-size: 100%;
|
|
15
|
+
background-color: var(--g-theme-color-background-default);
|
|
16
|
+
border-inline-end: 1px solid var(--g-theme-color-border-default);
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
transition: inline-size 0.3s ease;
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sidebar--right {
|
|
23
|
+
border-inline-end: none;
|
|
24
|
+
border-inline-start: 1px solid var(--g-theme-color-border-default);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sidebar--collapsed {
|
|
28
|
+
inline-size: 60px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sidebar--collapsed .sidebar__content {
|
|
32
|
+
padding-inline: var(--g-theme-spacing-sm);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.sidebar--collapsed
|
|
36
|
+
.sidebar__content
|
|
37
|
+
> *:not(.sidebar__toggle):not(.sidebar__mobile-toggle) {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sidebar--collapsed .sidebar__toggle {
|
|
42
|
+
inset-inline-end: 50%;
|
|
43
|
+
transform: translateX(50%);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Mobile Toggle Button */
|
|
47
|
+
.sidebar__mobile-toggle {
|
|
48
|
+
all: unset;
|
|
49
|
+
display: none;
|
|
50
|
+
position: fixed;
|
|
51
|
+
inset-block-start: var(--g-theme-spacing-md);
|
|
52
|
+
inset-inline-start: var(--g-theme-spacing-md);
|
|
53
|
+
z-index: 1001;
|
|
54
|
+
inline-size: 2.5rem;
|
|
55
|
+
block-size: 2.5rem;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
background-color: var(--g-theme-color-background-default);
|
|
59
|
+
border: 1px solid var(--g-theme-color-border-default);
|
|
60
|
+
border-radius: var(--g-theme-border-radius-md);
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
font-size: var(--g-theme-typography-h5-font-size);
|
|
63
|
+
transition: all 0.2s ease;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.sidebar__mobile-toggle:hover {
|
|
67
|
+
background-color: var(--g-theme-color-background-subtle-hover);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Show mobile toggle on small screens */
|
|
71
|
+
@media (max-width: 768px) {
|
|
72
|
+
.sidebar__mobile-toggle {
|
|
73
|
+
display: flex;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.sidebar {
|
|
77
|
+
position: fixed;
|
|
78
|
+
inset-block-start: 0;
|
|
79
|
+
inset-block-end: 0;
|
|
80
|
+
inset-inline-start: -100%;
|
|
81
|
+
z-index: 1000;
|
|
82
|
+
transition: inset-inline-start 0.3s ease;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.sidebar--right {
|
|
86
|
+
inset-inline-start: auto;
|
|
87
|
+
inset-inline-end: -100%;
|
|
88
|
+
transition: inset-inline-end 0.3s ease;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.sidebar--drawer-open {
|
|
92
|
+
inset-inline-start: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.sidebar--right.sidebar--drawer-open {
|
|
96
|
+
inset-inline-end: 0;
|
|
97
|
+
inset-inline-start: auto;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Overlay */
|
|
102
|
+
.sidebar__overlay {
|
|
103
|
+
display: none;
|
|
104
|
+
position: fixed;
|
|
105
|
+
inset: 0;
|
|
106
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
107
|
+
z-index: 999;
|
|
108
|
+
animation: overlay-fade-in 0.2s ease-out;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (max-width: 768px) {
|
|
112
|
+
.sidebar__overlay {
|
|
113
|
+
display: block;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@keyframes overlay-fade-in {
|
|
118
|
+
from {
|
|
119
|
+
opacity: 0;
|
|
120
|
+
}
|
|
121
|
+
to {
|
|
122
|
+
opacity: 1;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Collapse Toggle */
|
|
127
|
+
.sidebar__toggle {
|
|
128
|
+
all: unset;
|
|
129
|
+
position: absolute;
|
|
130
|
+
inset-block-start: var(--g-theme-spacing-md);
|
|
131
|
+
inset-inline-end: var(--g-theme-spacing-sm);
|
|
132
|
+
inline-size: 1.5rem;
|
|
133
|
+
block-size: 1.5rem;
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
background-color: var(--g-theme-color-background-default);
|
|
138
|
+
border: 1px solid var(--g-theme-color-border-default);
|
|
139
|
+
border-radius: var(--g-theme-border-radius-md);
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
font-size: var(--g-typography-font-size-14);
|
|
142
|
+
transition: all 0.2s ease;
|
|
143
|
+
z-index: 10;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.sidebar__toggle:hover {
|
|
147
|
+
background-color: var(--g-theme-color-background-subtle-hover);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.sidebar--right .sidebar__toggle {
|
|
151
|
+
inset-inline-end: auto;
|
|
152
|
+
inset-inline-start: var(--g-theme-spacing-sm);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.sidebar--right.sidebar--collapsed .sidebar__toggle {
|
|
156
|
+
inset-inline-start: 50%;
|
|
157
|
+
inset-inline-end: auto;
|
|
158
|
+
transform: translateX(-50%);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media (max-width: 768px) {
|
|
162
|
+
.sidebar__toggle {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* Content */
|
|
168
|
+
.sidebar__content {
|
|
169
|
+
padding-block: var(--g-theme-spacing-md);
|
|
170
|
+
padding-inline: var(--g-theme-spacing-md);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* View transitions */
|
|
174
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
175
|
+
@supports (view-transition-name: auto) {
|
|
176
|
+
.sidebar {
|
|
177
|
+
view-transition-name: sidebar;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesSidebar } from "./sidebar.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesSidebar } from "./sidebar.js";
|
|
4
4
|
|
|
5
5
|
export const Sidebar = createComponent({
|
|
6
6
|
tagName: "grantcodes-sidebar",
|
|
@@ -10,4 +10,4 @@ export const Sidebar = createComponent({
|
|
|
10
10
|
onToggle: "toggle",
|
|
11
11
|
onDrawerToggle: "drawer-toggle",
|
|
12
12
|
},
|
|
13
|
-
})
|
|
13
|
+
});
|
|
@@ -1,68 +1,68 @@
|
|
|
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
|
+
.stats {
|
|
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
|
+
.stats__container {
|
|
18
|
+
max-width: 1200px;
|
|
19
|
+
margin: 0 auto;
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
.stats__title {
|
|
23
|
+
margin: 0 0 var(--g-theme-spacing-xl);
|
|
24
|
+
font-size: var(--g-theme-typography-h4-font-size);
|
|
25
|
+
font-weight: var(--g-theme-typography-h4-font-weight);
|
|
26
|
+
text-align: center;
|
|
27
|
+
color: var(--g-theme-color-content-default);
|
|
28
|
+
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
.stats__grid {
|
|
31
|
+
display: grid;
|
|
32
|
+
grid-template-columns: repeat(var(--columns, 4), 1fr);
|
|
33
|
+
gap: var(--g-theme-spacing-xl);
|
|
34
|
+
padding: 0;
|
|
35
|
+
margin: 0;
|
|
36
|
+
list-style: none;
|
|
37
|
+
text-align: center;
|
|
38
|
+
}
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
@media (max-width: 640px) {
|
|
41
|
+
.stats__grid {
|
|
42
|
+
grid-template-columns: repeat(2, 1fr);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
.stats__item {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
gap: var(--g-theme-spacing-xs);
|
|
50
|
+
}
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
.stats__value {
|
|
53
|
+
font: var(--g-theme-typography-h2);
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
line-height: 1;
|
|
56
|
+
color: var(--g-theme-color-content-primary, #7c3aed);
|
|
57
|
+
}
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
.stats__label {
|
|
60
|
+
font-size: var(--g-theme-typography-label-default-font-size);
|
|
61
|
+
font-weight: var(--g-theme-typography-label-default-font-weight);
|
|
62
|
+
color: var(--g-theme-color-content-default);
|
|
63
|
+
}
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
.stats__context {
|
|
66
|
+
font-size: var(--g-theme-typography-body-sm-font-size);
|
|
67
|
+
color: var(--g-theme-color-content-subtle);
|
|
68
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesStats } from "./stats.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesStats } from "./stats.js";
|
|
4
4
|
|
|
5
5
|
export const Stats = createComponent({
|
|
6
6
|
tagName: "grantcodes-stats",
|
|
7
7
|
elementClass: GrantCodesStats,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -2,7 +2,9 @@ import { LitElement } from "lit";
|
|
|
2
2
|
import { html } from "lit/static-html.js";
|
|
3
3
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
4
4
|
import { GrantCodesTabsItem } from "./tabs-item.component.js";
|
|
5
|
-
import focusRingStyles from "../../../lib/styles/focus-ring.css" with {
|
|
5
|
+
import focusRingStyles from "../../../lib/styles/focus-ring.css" with {
|
|
6
|
+
type: "css",
|
|
7
|
+
};
|
|
6
8
|
import tabsStyles from "../tabs.css" with { type: "css" };
|
|
7
9
|
|
|
8
10
|
export class GrantCodesTabsButton extends GrantCodesTabsItem {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesTabsButton } from "./tabs-button.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesTabsButton } from "./tabs-button.js";
|
|
4
4
|
|
|
5
5
|
export const TabsButton = createComponent({
|
|
6
6
|
tagName: "grantcodes-tabs-button",
|
|
7
7
|
elementClass: GrantCodesTabsButton,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { GrantCodesTabsItem } from "./internal/tabs-item.component.js";
|
|
2
2
|
import { html } from "lit/static-html.js";
|
|
3
|
-
import focusRingStyles from "../../lib/styles/focus-ring.css" with {
|
|
3
|
+
import focusRingStyles from "../../lib/styles/focus-ring.css" with {
|
|
4
|
+
type: "css",
|
|
5
|
+
};
|
|
4
6
|
import tabsStyles from "./tabs.css" with { type: "css" };
|
|
5
7
|
|
|
6
8
|
export class GrantCodesTab extends GrantCodesTabsItem {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesTab } from "./tab.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesTab } from "./tab.js";
|
|
4
4
|
|
|
5
5
|
export const Tab = createComponent({
|
|
6
6
|
tagName: "grantcodes-tab",
|
|
7
7
|
elementClass: GrantCodesTab,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { html, LitElement } from "lit";
|
|
2
2
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
3
|
-
import focusRingStyles from "../../lib/styles/focus-ring.css" with {
|
|
3
|
+
import focusRingStyles from "../../lib/styles/focus-ring.css" with {
|
|
4
|
+
type: "css",
|
|
5
|
+
};
|
|
4
6
|
import tabsStyles from "./tabs.css" with { type: "css" };
|
|
5
7
|
import { GrantCodesTab } from "./tab.component.js";
|
|
6
8
|
import { GrantCodesTabsButton } from "./internal/tabs-button.component.js";
|