@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.10.1](https://github.com/grantcodes/ui/compare/ui-v2.10.0...ui-v2.10.1) (2026-05-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **astro-blocks:** some block rendering issues ([54b61c5](https://github.com/grantcodes/ui/commit/54b61c5ee45d12f8990a7ad69f2f4374f261d4ed))
|
|
9
|
+
|
|
3
10
|
## [2.10.0](https://github.com/grantcodes/ui/compare/ui-v2.9.2...ui-v2.10.0) (2026-04-23)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
|
@@ -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 accordionStyles from "./accordion.css" with { type: "css" };
|
|
5
7
|
|
|
6
8
|
export class GrantCodesAccordion extends LitElement {
|
|
@@ -1,83 +1,88 @@
|
|
|
1
1
|
*,
|
|
2
2
|
*::before,
|
|
3
3
|
*::after {
|
|
4
|
-
|
|
4
|
+
box-sizing: border-box;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
:host {
|
|
8
|
-
|
|
8
|
+
display: block;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.accordion {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: var(--g-theme-spacing-sm);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.accordion__item {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
border: 1px solid
|
|
19
|
+
var(--g-theme-color-border-subtle, var(--g-theme-color-border-default));
|
|
20
|
+
border-radius: var(--g-theme-border-radius-md, 0.5rem);
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.accordion__item::details-content {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
block-size: 0;
|
|
25
|
+
overflow: clip;
|
|
26
|
+
transition:
|
|
27
|
+
block-size 0.25s ease,
|
|
28
|
+
content-visibility 0.25s allow-discrete;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.accordion__item[open]::details-content {
|
|
31
|
-
|
|
32
|
+
block-size: auto;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.accordion__summary {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
padding: var(--g-theme-spacing-md);
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
background: var(--g-theme-color-background-subtle);
|
|
39
|
+
font-weight: var(--g-typography-font-weight-500);
|
|
40
|
+
list-style: none;
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: var(--g-theme-spacing-md);
|
|
45
|
+
border-radius: var(--g-theme-border-radius-md, 0.5rem);
|
|
46
|
+
transition-property: background-color, outline-width, outline-color;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.accordion__summary:hover {
|
|
49
|
-
|
|
50
|
+
background: var(
|
|
51
|
+
--g-theme-color-background-subtle-hover,
|
|
52
|
+
var(--g-theme-color-background-subtle)
|
|
53
|
+
);
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
.accordion__summary::-webkit-details-marker {
|
|
53
|
-
|
|
57
|
+
display: none;
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
.accordion__chevron {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
display: block;
|
|
62
|
+
inline-size: 1em;
|
|
63
|
+
block-size: 1em;
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
transition: transform 0.25s ease;
|
|
66
|
+
color: var(--g-theme-color-content-subtle, currentColor);
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
.accordion__item[open] .accordion__chevron {
|
|
66
|
-
|
|
70
|
+
transform: rotateX(180deg);
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
.accordion__content {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
padding: var(--g-theme-spacing-md);
|
|
75
|
+
background: var(--g-theme-color-background-default);
|
|
76
|
+
border-radius: 0 0 var(--g-theme-border-radius-md, 0.5rem)
|
|
77
|
+
var(--g-theme-border-radius-md, 0.5rem);
|
|
73
78
|
}
|
|
74
79
|
|
|
75
80
|
@media (prefers-reduced-motion: reduce) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
.accordion__chevron {
|
|
82
|
+
transition: none;
|
|
83
|
+
}
|
|
79
84
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
85
|
+
.accordion__item::details-content {
|
|
86
|
+
transition: none;
|
|
87
|
+
}
|
|
83
88
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { createComponent } from "@lit/react"
|
|
3
|
-
import { GrantCodesAccordion } from "./accordion.js"
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createComponent } from "@lit/react";
|
|
3
|
+
import { GrantCodesAccordion } from "./accordion.js";
|
|
4
4
|
|
|
5
5
|
export const Accordion = createComponent({
|
|
6
6
|
tagName: "grantcodes-accordion",
|
|
7
7
|
elementClass: GrantCodesAccordion,
|
|
8
8
|
react: React,
|
|
9
|
-
})
|
|
9
|
+
});
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import { html } from "lit";
|
|
3
3
|
import { classMap } from "lit/directives/class-map.js";
|
|
4
|
-
import focusRingStyles from "../../lib/styles/focus-ring.css" with {
|
|
4
|
+
import focusRingStyles from "../../lib/styles/focus-ring.css" with {
|
|
5
|
+
type: "css",
|
|
6
|
+
};
|
|
5
7
|
import appBarStyles from "./app-bar.css" with { type: "css" };
|
|
6
8
|
|
|
7
9
|
export class GrantCodesAppBar extends LitElement {
|
|
@@ -38,15 +40,19 @@ export class GrantCodesAppBar extends LitElement {
|
|
|
38
40
|
* Close mobile menu when the component crosses the desktop breakpoint.
|
|
39
41
|
* Matches the 768px container query in app-bar.css.
|
|
40
42
|
*/
|
|
41
|
-
this._resizeObserver =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
this._resizeObserver =
|
|
44
|
+
typeof ResizeObserver !== "undefined"
|
|
45
|
+
? new ResizeObserver((entries) => {
|
|
46
|
+
for (const entry of entries) {
|
|
47
|
+
if (
|
|
48
|
+
entry.contentBoxSize[0].inlineSize >= 768 &&
|
|
49
|
+
this._mobileMenuOpen
|
|
50
|
+
) {
|
|
51
|
+
this._mobileMenuOpen = false;
|
|
52
|
+
}
|
|
46
53
|
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
: null;
|
|
54
|
+
})
|
|
55
|
+
: null;
|
|
50
56
|
}
|
|
51
57
|
|
|
52
58
|
connectedCallback() {
|