@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,38 +1,36 @@
|
|
|
1
|
-
|
|
2
1
|
/* Inlined component-base mixin */
|
|
3
2
|
*,
|
|
4
3
|
*::before,
|
|
5
4
|
*::after {
|
|
6
|
-
|
|
5
|
+
box-sizing: border-box;
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
:host {
|
|
10
|
-
|
|
9
|
+
display: block;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
.avatar {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
inline-size: var(--g-theme-spacing-2xl);
|
|
17
|
+
block-size: var(--g-theme-spacing-2xl);
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
background-color: var(--g-theme-color-primary-200);
|
|
21
|
+
color: var(--g-theme-color-primary-900);
|
|
22
|
+
text-align: center;
|
|
23
|
+
font-size: var(--g-theme-typography-h6-font-size);
|
|
24
|
+
font-weight: var(--g-theme-typography-label-default-font-weight);
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
.avatar__image {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
inline-size: 100%;
|
|
29
|
+
block-size: 100%;
|
|
30
|
+
object-fit: cover;
|
|
31
|
+
object-position: center;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
.avatar__fallback {
|
|
36
|
-
|
|
35
|
+
line-height: 1;
|
|
37
36
|
}
|
|
38
|
-
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesAvatar } from "./avatar.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesAvatar } from "./avatar.js";
|
|
4
4
|
|
|
5
5
|
export const Avatar = createComponent({
|
|
6
6
|
tagName: "grantcodes-avatar",
|
|
7
7
|
elementClass: GrantCodesAvatar,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
*,
|
|
2
2
|
*::before,
|
|
3
3
|
*::after {
|
|
4
|
-
|
|
4
|
+
box-sizing: border-box;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
:host {
|
|
8
|
-
|
|
8
|
+
display: inline-flex;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.badge {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: var(--g-theme-spacing-xs);
|
|
15
|
+
padding-inline: 0.625em;
|
|
16
|
+
padding-block: 0.375em;
|
|
17
|
+
border-radius: var(--g-theme-border-radius-md, 0.375rem);
|
|
18
|
+
font: var(--g-theme-typography-meta);
|
|
19
|
+
line-height: 1;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
border-width: 1px;
|
|
22
|
+
border-style: solid;
|
|
23
|
+
transition: all 0.2s ease;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/* Soft style variants */
|
|
27
27
|
.badge--primary {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
background-color: var(--g-theme-color-primary-200);
|
|
29
|
+
color: var(--g-theme-color-primary-600);
|
|
30
|
+
border-color: transparent;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.badge--success {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
background-color: color-mix(
|
|
35
|
+
in srgb,
|
|
36
|
+
var(--g-color-utility-green-500) 15%,
|
|
37
|
+
transparent
|
|
38
|
+
);
|
|
39
|
+
color: var(--g-color-utility-green-700);
|
|
40
|
+
border-color: transparent;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.badge--warning {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
background-color: color-mix(
|
|
45
|
+
in srgb,
|
|
46
|
+
var(--g-color-utility-yellow-500) 15%,
|
|
47
|
+
transparent
|
|
48
|
+
);
|
|
49
|
+
color: var(--g-color-utility-yellow-700);
|
|
50
|
+
border-color: transparent;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.badge--error {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
background-color: color-mix(
|
|
55
|
+
in srgb,
|
|
56
|
+
var(--g-color-utility-red-500) 15%,
|
|
57
|
+
transparent
|
|
58
|
+
);
|
|
59
|
+
color: var(--g-color-utility-red-700);
|
|
60
|
+
border-color: transparent;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.badge--info {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
background-color: color-mix(
|
|
65
|
+
in srgb,
|
|
66
|
+
var(--g-color-utility-blue-500) 15%,
|
|
67
|
+
transparent
|
|
68
|
+
);
|
|
69
|
+
color: var(--g-color-utility-blue-700);
|
|
70
|
+
border-color: transparent;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.badge--neutral {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
background-color: var(--g-theme-color-background-subtle);
|
|
75
|
+
color: var(--g-theme-color-content-default);
|
|
76
|
+
border-color: transparent;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.badge__content {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: 0.25em;
|
|
83
83
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesBadge } from "./badge.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesBadge } from "./badge.js";
|
|
4
4
|
|
|
5
5
|
export const Badge = createComponent({
|
|
6
6
|
tagName: "grantcodes-badge",
|
|
7
7
|
elementClass: GrantCodesBadge,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
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 breadcrumbStyles from "./breadcrumb.css" with { type: "css" };
|
|
5
7
|
|
|
6
8
|
export class GrantCodesBreadcrumb extends LitElement {
|
|
@@ -1,85 +1,85 @@
|
|
|
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
|
-
|
|
11
|
+
.breadcrumb {
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
.breadcrumb__list {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-wrap: wrap;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: var(--g-theme-spacing-sm);
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
list-style: none;
|
|
23
|
+
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
.breadcrumb__item {
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: var(--g-theme-spacing-sm);
|
|
29
|
+
font-size: var(--g-typography-font-size-14);
|
|
30
|
+
color: var(--g-theme-color-primary-700);
|
|
31
|
+
}
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
/* Separator using ::after pseudo-element; driven by parent via data-has-separator */
|
|
34
|
+
:host([data-has-separator]) .breadcrumb__item::after {
|
|
35
|
+
content: var(--component-breadcrumb-separator, "/");
|
|
36
|
+
display: inline-block;
|
|
37
|
+
color: var(--g-theme-color-primary-400);
|
|
38
|
+
font-weight: var(--g-typography-font-weight-400);
|
|
39
|
+
user-select: none;
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
}
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
/* Current page styling */
|
|
44
|
+
.breadcrumb__item[data-current] {
|
|
45
|
+
font-weight: var(--g-typography-font-weight-600);
|
|
46
|
+
color: var(--color-base-primary-900);
|
|
47
|
+
}
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
.breadcrumb__item[data-current]::after {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
.breadcrumb__link {
|
|
54
|
+
color: var(--g-theme-color-primary-600);
|
|
55
|
+
text-decoration: none;
|
|
56
|
+
transition: color 0.2s ease;
|
|
57
|
+
border-radius: var(--g-theme-border-radius-md, 0.25rem);
|
|
58
|
+
padding-inline: 0.25em;
|
|
59
|
+
padding-block: 0.125em;
|
|
60
|
+
margin-inline: -0.25em;
|
|
61
|
+
margin-block: -0.125em;
|
|
62
|
+
}
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
.breadcrumb__link:hover {
|
|
65
|
+
color: var(--g-theme-color-primary-700);
|
|
66
|
+
text-decoration: underline;
|
|
67
|
+
}
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
.breadcrumb__text {
|
|
70
|
+
display: inline-block;
|
|
71
|
+
}
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
/* Responsive: Show only last few items on small screens */
|
|
74
|
+
@media (max-width: 640px) {
|
|
75
|
+
.breadcrumb__item:not(:last-child):not(:nth-last-child(2)) {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
.breadcrumb__item:nth-last-child(2)::before {
|
|
80
|
+
content: "...";
|
|
81
|
+
display: inline-block;
|
|
82
|
+
margin-inline-end: 0.5rem;
|
|
83
|
+
color: var(--g-theme-color-primary-400);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import {
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import {
|
|
4
|
+
GrantCodesBreadcrumb,
|
|
5
|
+
GrantCodesBreadcrumbItem,
|
|
6
|
+
} from "./breadcrumb.js";
|
|
4
7
|
|
|
5
8
|
export const Breadcrumb = createComponent({
|
|
6
9
|
tagName: "grantcodes-breadcrumb",
|
|
7
10
|
elementClass: GrantCodesBreadcrumb,
|
|
8
11
|
react: React,
|
|
9
|
-
})
|
|
12
|
+
});
|
|
10
13
|
|
|
11
14
|
export const BreadcrumbItem = createComponent({
|
|
12
15
|
tagName: "grantcodes-breadcrumb-item",
|
|
13
16
|
elementClass: GrantCodesBreadcrumbItem,
|
|
14
17
|
react: React,
|
|
15
|
-
})
|
|
18
|
+
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { html, LitElement } from "lit";
|
|
2
|
-
import focusRingStyles from "../../lib/styles/focus-ring.css" with {
|
|
2
|
+
import focusRingStyles from "../../lib/styles/focus-ring.css" with {
|
|
3
|
+
type: "css",
|
|
4
|
+
};
|
|
3
5
|
import buttonStyles from "./button.css" with { type: "css" };
|
|
4
6
|
|
|
5
7
|
export class GrantCodesButton extends LitElement {
|
|
@@ -2,61 +2,61 @@
|
|
|
2
2
|
*,
|
|
3
3
|
*::before,
|
|
4
4
|
*::after {
|
|
5
|
-
|
|
5
|
+
box-sizing: border-box;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
:host {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
display: block;
|
|
10
|
+
--button-border-radius-start: var(--g-theme-border-radius-md);
|
|
11
|
+
--button-border-radius-end: var(--g-theme-border-radius-md);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.button {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: var(--g-theme-spacing-sm);
|
|
19
|
+
background: var(--g-theme-button-primary-color-background-default);
|
|
20
|
+
color: var(--g-theme-button-primary-color-content-default);
|
|
21
|
+
border-width: var(--g-theme-border-width-md);
|
|
22
|
+
border-style: solid;
|
|
23
|
+
border-color: var(--g-theme-button-primary-color-border-default);
|
|
24
|
+
padding-block: var(--g-theme-spacing-sm);
|
|
25
|
+
padding-inline: var(--g-theme-spacing-md);
|
|
26
|
+
border-start-start-radius: var(--button-border-radius-start);
|
|
27
|
+
border-start-end-radius: var(--button-border-radius-end);
|
|
28
|
+
border-end-start-radius: var(--button-border-radius-start);
|
|
29
|
+
border-end-end-radius: var(--button-border-radius-end);
|
|
30
|
+
font: var(--g-theme-typography-label-default);
|
|
31
|
+
font-family: var(--g-theme-typography-label-font-family);
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
transition-property: color, border-color, background-color, outline;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.button:hover,
|
|
37
37
|
.button:focus-visible {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
color: var(--g-theme-button-primary-color-content-hover);
|
|
39
|
+
background: var(--g-theme-button-primary-color-background-hover);
|
|
40
|
+
border-color: var(--g-theme-button-primary-color-border-hover);
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
text-decoration: none;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.button:active {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
color: var(--g-theme-button-primary-color-content-active);
|
|
47
|
+
background: var(--g-theme-button-primary-color-background-active);
|
|
48
|
+
border-color: var(--g-theme-button-primary-color-border-active);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.button:active {
|
|
52
|
-
|
|
52
|
+
transform: translateY(1px);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.button[disabled] {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
background: var(--g-theme-button-primary-color-background-disabled);
|
|
57
|
+
color: var(--g-theme-button-primary-color-content-disabled);
|
|
58
|
+
border-color: var(--g-theme-button-primary-color-border-disabled);
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
filter: grayscale(70%);
|
|
61
|
+
opacity: 0.8;
|
|
62
62
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesButton } from "./button.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesButton } from "./button.js";
|
|
4
4
|
|
|
5
5
|
export const Button = createComponent({
|
|
6
6
|
tagName: "grantcodes-button",
|
|
7
7
|
elementClass: GrantCodesButton,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/* Inlined component-base mixin */
|
|
2
|
+
*,
|
|
3
|
+
*::before,
|
|
4
|
+
*::after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
:host {
|
|
9
|
+
display: block;
|
|
10
|
+
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
.button-group {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
background: var(--g-theme-color-background-default);
|
|
17
|
+
border-radius: var(--g-theme-border-radius-md);
|
|
18
|
+
min-width: fit-content;
|
|
19
|
+
max-width: 100%;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
.button-group ::slotted(grantcodes-button) {
|
|
24
|
+
--button-border-radius-start: 0;
|
|
25
|
+
--button-border-radius-end: 0;
|
|
26
|
+
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
.button-group ::slotted(grantcodes-button:first-child) {
|
|
29
|
+
--button-border-radius-start: var(--g-theme-border-radius-md);
|
|
30
|
+
}
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
.button-group ::slotted(grantcodes-button:last-child) {
|
|
33
|
+
--button-border-radius-end: var(--g-theme-border-radius-md);
|
|
34
|
+
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
.button-group ::slotted(grantcodes-button:focus-visible) {
|
|
37
|
+
position: relative;
|
|
38
|
+
z-index: 1;
|
|
39
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesButtonGroup } from "./button-group.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesButtonGroup } from "./button-group.js";
|
|
4
4
|
|
|
5
5
|
export const ButtonGroup = createComponent({
|
|
6
6
|
tagName: "grantcodes-button-group",
|
|
7
7
|
elementClass: GrantCodesButtonGroup,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|