@grantcodes/ui 2.10.0 → 2.10.2
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 +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/elements/forms/input.css +1 -1
- 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/src/lib/styles/all.css
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
@layer components {
|
|
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
|
-
|
|
2
|
+
@import "./focus-ring.css";
|
|
3
|
+
@import "../../components/accordion/accordion.css";
|
|
4
|
+
@import "../../components/app-bar/app-bar.css";
|
|
5
|
+
@import "../../components/avatar/avatar.css";
|
|
6
|
+
@import "../../components/badge/badge.css";
|
|
7
|
+
@import "../../components/breadcrumb/breadcrumb.css";
|
|
8
|
+
@import "../../components/button/button.css";
|
|
9
|
+
@import "../../components/button-group/button-group.css";
|
|
10
|
+
@import "../../components/card/card.css";
|
|
11
|
+
@import "../../components/code-preview/code-preview.css";
|
|
12
|
+
@import "../../components/container/container.css";
|
|
13
|
+
@import "../../components/countdown/countdown.css";
|
|
14
|
+
@import "../../components/cta/cta.css";
|
|
15
|
+
@import "../../components/dialog/dialog.css";
|
|
16
|
+
@import "../../components/dropdown/dropdown.css";
|
|
17
|
+
@import "../../components/dropzone/dropzone.css";
|
|
18
|
+
@import "../../components/feature-list/feature-list.css";
|
|
19
|
+
@import "../../components/footer/footer.css";
|
|
20
|
+
@import "../../components/footer/footer-column.css";
|
|
21
|
+
@import "../../components/form-field/form-field.css";
|
|
22
|
+
@import "../../components/gallery/gallery.css";
|
|
23
|
+
@import "../../components/hero/hero.css";
|
|
24
|
+
@import "../../components/icon/icon.css";
|
|
25
|
+
@import "../../components/loading/loading.css";
|
|
26
|
+
@import "../../components/logo-cloud/logo-cloud.css";
|
|
27
|
+
@import "../../components/map/map.css";
|
|
28
|
+
@import "../../components/media-text/media-text.css";
|
|
29
|
+
@import "../../components/newsletter/newsletter.css";
|
|
30
|
+
@import "../../components/notice/notice.css";
|
|
31
|
+
@import "../../components/pagination/pagination.css";
|
|
32
|
+
@import "../../components/pricing/pricing.css";
|
|
33
|
+
@import "../../components/sidebar/sidebar.css";
|
|
34
|
+
@import "../../components/stats/stats.css";
|
|
35
|
+
@import "../../components/tabs/tabs.css";
|
|
36
|
+
@import "../../components/testimonials/testimonials.css";
|
|
37
|
+
@import "../../components/toast/toast.css";
|
|
38
|
+
@import "../../components/tooltip/tooltip.css";
|
|
39
39
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
.focus-ring,
|
|
2
2
|
:host(.focus-ring) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
outline: 0px solid transparent;
|
|
4
|
+
outline-offset: var(--g-theme-focus-ring-offset-default);
|
|
5
|
+
transition-duration: var(--g-animation-duration-20);
|
|
6
|
+
transition-property: outline-color, width;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.focus-ring:focus-visible,
|
|
10
10
|
:host(.focus-ring):focus-visible {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
outline: var(--g-theme-focus-ring-width-default) solid
|
|
12
|
+
var(--g-theme-focus-ring-color-default);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@media (prefers-contrast: more) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
.focus-ring:focus-visible,
|
|
17
|
+
:host(.focus-ring):focus-visible {
|
|
18
|
+
outline: var(--g-theme-focus-ring-width-default) solid
|
|
19
|
+
var(--g-theme-focus-ring-color-contrast);
|
|
20
|
+
box-shadow: 0 0 0
|
|
21
|
+
calc(
|
|
22
|
+
(
|
|
23
|
+
var(--g-theme-focus-ring-width-default) +
|
|
24
|
+
var(--g-theme-focus-ring-offset-default)
|
|
25
|
+
) *
|
|
26
|
+
1.5
|
|
27
|
+
)
|
|
28
|
+
var(--g-theme-focus-ring-color-contrast-shadow);
|
|
29
|
+
}
|
|
30
30
|
}
|
package/src/react.js
CHANGED
|
@@ -1,39 +1,45 @@
|
|
|
1
|
-
export { Accordion } from "./components/accordion/accordion.react.js"
|
|
2
|
-
export { AppBar } from "./components/app-bar/app-bar.react.js"
|
|
3
|
-
export { NavLink } from "./components/app-bar/nav-link.react.js"
|
|
4
|
-
export { Avatar } from "./components/avatar/avatar.react.js"
|
|
5
|
-
export { Badge } from "./components/badge/badge.react.js"
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
1
|
+
export { Accordion } from "./components/accordion/accordion.react.js";
|
|
2
|
+
export { AppBar } from "./components/app-bar/app-bar.react.js";
|
|
3
|
+
export { NavLink } from "./components/app-bar/nav-link.react.js";
|
|
4
|
+
export { Avatar } from "./components/avatar/avatar.react.js";
|
|
5
|
+
export { Badge } from "./components/badge/badge.react.js";
|
|
6
|
+
export {
|
|
7
|
+
Breadcrumb,
|
|
8
|
+
BreadcrumbItem,
|
|
9
|
+
} from "./components/breadcrumb/breadcrumb.react.js";
|
|
10
|
+
export { Button } from "./components/button/button.react.js";
|
|
11
|
+
export { ButtonGroup } from "./components/button-group/button-group.react.js";
|
|
12
|
+
export { Card } from "./components/card/card.react.js";
|
|
13
|
+
export { CodePreview } from "./components/code-preview/code-preview.react.js";
|
|
14
|
+
export { Container } from "./components/container/container.react.js";
|
|
15
|
+
export { Countdown } from "./components/countdown/countdown.react.js";
|
|
16
|
+
export { Cta } from "./components/cta/cta.react.js";
|
|
17
|
+
export { Dialog } from "./components/dialog/dialog.react.js";
|
|
18
|
+
export {
|
|
19
|
+
Dropdown,
|
|
20
|
+
DropdownItem,
|
|
21
|
+
} from "./components/dropdown/dropdown.react.js";
|
|
22
|
+
export { Dropzone } from "./components/dropzone/dropzone.react.js";
|
|
23
|
+
export { FeatureList } from "./components/feature-list/feature-list.react.js";
|
|
24
|
+
export { Footer, FooterColumn } from "./components/footer/footer.react.js";
|
|
25
|
+
export { FormField } from "./components/form-field/form-field.react.js";
|
|
26
|
+
export { Gallery } from "./components/gallery/gallery.react.js";
|
|
27
|
+
export { GalleryImage } from "./components/gallery/gallery-image.react.js";
|
|
28
|
+
export { Hero } from "./components/hero/hero.react.js";
|
|
29
|
+
export { Icon } from "./components/icon/icon.react.js";
|
|
30
|
+
export { Loading } from "./components/loading/loading.react.js";
|
|
31
|
+
export { LogoCloud } from "./components/logo-cloud/logo-cloud.react.js";
|
|
32
|
+
export { MapEmbed } from "./components/map/map.react.js";
|
|
33
|
+
export { MediaText } from "./components/media-text/media-text.react.js";
|
|
34
|
+
export { Newsletter } from "./components/newsletter/newsletter.react.js";
|
|
35
|
+
export { Notice } from "./components/notice/notice.react.js";
|
|
36
|
+
export { Pagination } from "./components/pagination/pagination.react.js";
|
|
37
|
+
export { Pricing } from "./components/pricing/pricing.react.js";
|
|
38
|
+
export { Sidebar } from "./components/sidebar/sidebar.react.js";
|
|
39
|
+
export { Stats } from "./components/stats/stats.react.js";
|
|
40
|
+
export { Tab } from "./components/tabs/tab.react.js";
|
|
41
|
+
export { Tabs } from "./components/tabs/tabs.react.js";
|
|
42
|
+
export { TabsButton } from "./components/tabs/internal/tabs-button.react.js";
|
|
43
|
+
export { Testimonials } from "./components/testimonials/testimonials.react.js";
|
|
44
|
+
export { Toast, ToastContainer } from "./components/toast/toast.react.js";
|
|
45
|
+
export { Tooltip } from "./components/tooltip/tooltip.react.js";
|
|
@@ -45,12 +45,15 @@ export function cssImportAttributes() {
|
|
|
45
45
|
);
|
|
46
46
|
const regex = new RegExp(
|
|
47
47
|
escapedSource +
|
|
48
|
-
`['"]
|
|
48
|
+
`['"]\\s*(?:with|assert)\\s*{\\s*type:\\s*['"]css['"]`,
|
|
49
49
|
);
|
|
50
50
|
if (!regex.test(importerContent)) return;
|
|
51
51
|
|
|
52
52
|
// Resolve to absolute path
|
|
53
|
-
const resolved = (await this.resolve(source, importer,
|
|
53
|
+
const resolved = (await this.resolve(source, importer, {
|
|
54
|
+
...options,
|
|
55
|
+
skipSelf: true,
|
|
56
|
+
}))
|
|
54
57
|
?.id;
|
|
55
58
|
if (!resolved) return;
|
|
56
59
|
|