@kickstartds/ds-agency-premium 1.6.69 → 1.6.70--canary.45.1746.0
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/dist/{BlogAsideProps-d9decb7c.d.ts → BlogAsideProps-c760fd2a.d.ts} +5 -5
- package/dist/{BlogAuthorProps-88a11566.d.ts → BlogAuthorProps-fb0241df.d.ts} +7 -2
- package/dist/{BlogOverviewProps-9f207f1c.d.ts → BlogOverviewProps-7caa223c.d.ts} +2 -2
- package/dist/{BlogPostProps-d9decb7c.d.ts → BlogPostProps-c760fd2a.d.ts} +3 -3
- package/dist/{ButtonProps-03ff6d21.d.ts → ButtonProps-00ddee3a.d.ts} +4 -4
- package/dist/{CtaProps-93230a76.d.ts → CtaProps-babe4ee6.d.ts} +21 -11
- package/dist/EventAppointmentProps-443cd1ce.d.ts +38 -0
- package/dist/EventDetailProps-42a7eebe.d.ts +387 -0
- package/dist/EventLatestTeaserProps-fc9d3281.d.ts +58 -0
- package/dist/EventLocationProps-871bc198.d.ts +41 -0
- package/dist/{FeaturesProps-e58616a5.d.ts → FeaturesProps-a9041d97.d.ts} +9 -4
- package/dist/{FooterProps-171a3067.d.ts → FooterProps-a0a104ca.d.ts} +2 -2
- package/dist/{HeaderProps-e22382f1.d.ts → HeaderProps-72763967.d.ts} +2 -2
- package/dist/{HeroProps-f704d270.d.ts → HeroProps-40f6c7f5.d.ts} +9 -4
- package/dist/{ImageStoryProps-e853e1e7.d.ts → ImageStoryProps-00ddee3a.d.ts} +1 -1
- package/dist/MosaicProps-d52c7151.d.ts +4 -4
- package/dist/{PageProps-aa29c554.d.ts → PageProps-7caa223c.d.ts} +1 -1
- package/dist/{SectionProps-1cfcf6e8.d.ts → SectionProps-00ddee3a.d.ts} +15 -10
- package/dist/{SliderProps-93230a76.d.ts → SliderProps-babe4ee6.d.ts} +4 -4
- package/dist/{StatProps-79109ad0.d.ts → StatProps-12a3eae0.d.ts} +1 -1
- package/dist/StatsProps-bf5ef578.d.ts +1 -1
- package/dist/{TeaserCardProps-b9c28e78.d.ts → TeaserCardProps-994cb119.d.ts} +4 -4
- package/dist/{VideoCurtainProps-6c625a69.d.ts → VideoCurtainProps-a2c0cc7f.d.ts} +5 -5
- package/dist/components/blog-aside/blog-aside.schema.dereffed.json +16 -8
- package/dist/components/blog-aside/blog-aside.schema.json +4 -4
- package/dist/components/blog-aside/index.d.ts +1 -1
- package/dist/components/blog-aside/index.js +1 -1
- package/dist/components/blog-author/blog-author.schema.dereffed.json +12 -4
- package/dist/components/blog-author/index.d.ts +1 -1
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +178 -85
- package/dist/components/blog-overview/index.d.ts +1 -1
- package/dist/components/blog-post/blog-post.schema.dereffed.json +194 -93
- package/dist/components/blog-post/index.d.ts +1 -1
- package/dist/components/blog-teaser/index.js +5 -7
- package/dist/components/button/button.css +2 -2
- package/dist/components/button/button.schema.dereffed.json +3 -3
- package/dist/components/button/button.schema.json +3 -3
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/button-group.schema.dereffed.json +3 -3
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/contact/contact.schema.dereffed.json +13 -5
- package/dist/components/contact/contact.schema.json +11 -5
- package/dist/components/contact/index.d.ts +6 -1
- package/dist/components/contact/index.js +1 -1
- package/dist/components/cta/cta.css +44 -56
- package/dist/components/cta/cta.schema.dereffed.json +28 -11
- package/dist/components/cta/cta.schema.json +23 -10
- package/dist/components/cta/index.d.ts +1 -1
- package/dist/components/cta/index.js +25 -26
- package/dist/components/downloads/downloads.css +153 -0
- package/dist/components/downloads/downloads.schema.dereffed.json +55 -0
- package/dist/components/downloads/downloads.schema.json +44 -0
- package/dist/components/downloads/index.d.ts +41 -0
- package/dist/components/downloads/index.js +18 -0
- package/dist/components/event-appointment/event-appointment.css +62 -0
- package/dist/components/event-appointment/event-appointment.schema.dereffed.json +56 -0
- package/dist/components/event-appointment/event-appointment.schema.json +47 -0
- package/dist/components/event-appointment/index.d.ts +7 -0
- package/dist/components/event-appointment/index.js +14 -0
- package/dist/components/event-detail/event-detail.schema.dereffed.json +287 -0
- package/dist/components/event-detail/event-detail.schema.json +74 -0
- package/dist/components/event-detail/index.d.ts +5 -0
- package/dist/components/event-detail/index.js +36 -0
- package/dist/components/event-header/event-header.css +6 -0
- package/dist/components/event-header/event-header.schema.dereffed.json +38 -0
- package/dist/components/event-header/event-header.schema.json +34 -0
- package/dist/components/event-header/index.d.ts +35 -0
- package/dist/components/event-header/index.js +20 -0
- package/dist/components/event-latest/event-latest.css +5 -0
- package/dist/components/event-latest/event-latest.schema.dereffed.json +142 -0
- package/dist/components/event-latest/event-latest.schema.json +46 -0
- package/dist/components/event-latest/index.d.ts +30 -0
- package/dist/components/event-latest/index.js +19 -0
- package/dist/components/event-latest-teaser/event-latest-teaser.css +128 -0
- package/dist/components/event-latest-teaser/event-latest-teaser.schema.dereffed.json +97 -0
- package/dist/components/event-latest-teaser/event-latest-teaser.schema.json +73 -0
- package/dist/components/event-latest-teaser/index.d.ts +8 -0
- package/dist/components/event-latest-teaser/index.js +18 -0
- package/dist/components/event-location/event-location.css +71 -0
- package/dist/components/event-location/event-location.schema.dereffed.json +126 -0
- package/dist/components/event-location/event-location.schema.json +61 -0
- package/dist/components/event-location/index.d.ts +7 -0
- package/dist/components/event-location/index.js +18 -0
- package/dist/components/feature/feature.schema.dereffed.json +13 -3
- package/dist/components/feature/feature.schema.json +11 -3
- package/dist/components/feature/index.d.ts +8 -3
- package/dist/components/feature/index.js +2 -3
- package/dist/components/features/features.css +15 -35
- package/dist/components/features/features.schema.dereffed.json +13 -3
- package/dist/components/features/features.schema.json +5 -2
- package/dist/components/features/index.d.ts +1 -1
- package/dist/components/features/index.js +2 -2
- package/dist/components/footer/footer.css +1 -1
- package/dist/components/footer/footer.schema.dereffed.json +12 -12
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/footer/index.js +1 -1
- package/dist/components/gallery/gallery.schema.dereffed.json +2 -1
- package/dist/components/gallery/gallery.schema.json +2 -1
- package/dist/components/gallery/index.js +1 -1
- package/dist/components/header/header.css +47 -9
- package/dist/components/header/header.schema.dereffed.json +12 -12
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/index.js +5 -5
- package/dist/components/headline/headline.css +2 -2
- package/dist/components/hero/hero.css +61 -25
- package/dist/components/hero/hero.schema.dereffed.json +9 -3
- package/dist/components/hero/hero.schema.json +8 -2
- package/dist/components/hero/index.d.ts +1 -1
- package/dist/components/hero/index.js +39 -39
- package/dist/components/image-story/image-story.css +5 -2
- package/dist/components/image-story/image-story.schema.dereffed.json +3 -3
- package/dist/components/image-story/index.d.ts +1 -1
- package/dist/components/index/index.d.ts +6 -5
- package/dist/components/logos/index.js +1 -1
- package/dist/components/mosaic/index.js +1 -1
- package/dist/components/mosaic/mosaic.css +1 -1
- package/dist/components/mosaic/mosaic.schema.dereffed.json +3 -3
- package/dist/components/nav-dropdown/index.d.ts +1 -1
- package/dist/components/nav-dropdown/index.js +2 -2
- package/dist/components/nav-dropdown/nav-dropdown.css +12 -3
- package/dist/components/nav-dropdown/nav-dropdown.schema.dereffed.json +1 -1
- package/dist/components/nav-flyout/index.d.ts +2 -2
- package/dist/components/nav-flyout/index.js +6 -8
- package/dist/components/nav-flyout/nav-flyout.css +29 -15
- package/dist/components/nav-flyout/nav-flyout.schema.dereffed.json +12 -12
- package/dist/components/nav-main/index.d.ts +5 -5
- package/dist/components/nav-main/index.js +0 -2
- package/dist/components/nav-main/nav-main.schema.dereffed.json +15 -15
- package/dist/components/nav-main/nav-main.schema.json +14 -14
- package/dist/components/nav-toggle/index.js +1 -1
- package/dist/components/nav-topbar/index.d.ts +2 -2
- package/dist/components/nav-topbar/index.js +2 -2
- package/dist/components/nav-topbar/nav-topbar.css +15 -2
- package/dist/components/nav-topbar/nav-topbar.schema.dereffed.json +12 -12
- package/dist/components/page/index.d.ts +1 -1
- package/dist/components/page/page.schema.dereffed.json +150 -74
- package/dist/components/page-wrapper/index.js +42 -0
- package/dist/components/page-wrapper/tokens.css +425 -729
- package/dist/components/pagination/index.d.ts +47 -0
- package/dist/components/pagination/index.js +52 -0
- package/dist/components/pagination/pagination.css +66 -0
- package/dist/components/pagination/pagination.schema.dereffed.json +64 -0
- package/dist/components/pagination/pagination.schema.json +57 -0
- package/dist/components/presets.json +832 -259
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/section/index.js +11 -3
- package/dist/components/section/section.css +38 -58
- package/dist/components/section/section.schema.dereffed.json +150 -74
- package/dist/components/section/section.schema.json +8 -10
- package/dist/components/settings/settings.schema.dereffed.json +24 -24
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/slider.schema.dereffed.json +59 -26
- package/dist/components/split/split.css +2 -2
- package/dist/components/stat/index.d.ts +1 -1
- package/dist/components/stat/index.js +3 -12
- package/dist/components/stat/stat.schema.dereffed.json +3 -4
- package/dist/components/stat/stat.schema.json +2 -2
- package/dist/components/stats/stats.schema.dereffed.json +3 -4
- package/dist/components/teaser-card/index.d.ts +1 -1
- package/dist/components/teaser-card/index.js +9 -9
- package/dist/components/teaser-card/teaser-card.css +67 -47
- package/dist/components/teaser-card/teaser-card.schema.dereffed.json +4 -4
- package/dist/components/teaser-card/teaser-card.schema.json +4 -4
- package/dist/components/testimonials/index.d.ts +1 -1
- package/dist/components/tile/tile.schema.dereffed.json +3 -3
- package/dist/components/tile/tile.schema.json +2 -2
- package/dist/components/video-curtain/index.d.ts +1 -1
- package/dist/components/video-curtain/index.js +12 -4
- package/dist/components/video-curtain/video-curtain.css +52 -29
- package/dist/components/video-curtain/video-curtain.schema.dereffed.json +6 -4
- package/dist/components/video-curtain/video-curtain.schema.json +3 -3
- package/dist/global.css +283 -59
- package/dist/static/fonts/systemics/Montserrat-Bold.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-Light.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-Medium.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-Regular.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-SemiBold.woff2 +0 -0
- package/dist/static/img/about/angled-image.png +0 -0
- package/dist/static/img/about/cta.png +0 -0
- package/dist/static/img/about/cutout.png +0 -0
- package/dist/static/img/about/disclaimer.png +0 -0
- package/dist/static/img/about/purpose.png +0 -0
- package/dist/static/img/about/spoiler.png +0 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-01.svg +72 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-02.svg +112 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-03.svg +197 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-04.svg +76 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-05.svg +82 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-06.svg +219 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-07.svg +85 -0
- package/dist/static/logo-dark.svg +13 -0
- package/dist/static/logo-dsa-inverted.svg +26 -0
- package/dist/static/logo-dsa.svg +26 -0
- package/dist/static/logo-inverted.svg +12 -25
- package/dist/static/logo.svg +12 -25
- package/dist/tokens/IconSprite.js +42 -0
- package/dist/tokens/icon-sprite.html +16 -0
- package/dist/tokens/themes.css +4 -4
- package/dist/tokens/tokens.css +425 -729
- package/dist/tokens/tokens.js +628 -730
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
6
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
7
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
8
|
+
*/
|
|
9
|
+
interface PaginationProps {
|
|
10
|
+
ariaLabels?: {
|
|
11
|
+
/**
|
|
12
|
+
* Aria label for the previous page link
|
|
13
|
+
*/
|
|
14
|
+
previousPage?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Aria label for the next page link
|
|
17
|
+
*/
|
|
18
|
+
nextPage?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Aria label for the link to skip to the first page
|
|
21
|
+
*/
|
|
22
|
+
skipToFirstPage?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Aria label for the link to skip to the last page
|
|
25
|
+
*/
|
|
26
|
+
skipToLastPage?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Aria label for the link to go to a specific page (will be placed before the page number)
|
|
29
|
+
*/
|
|
30
|
+
goToPage?: string;
|
|
31
|
+
};
|
|
32
|
+
pages?: {
|
|
33
|
+
/**
|
|
34
|
+
* The URL to the page
|
|
35
|
+
*/
|
|
36
|
+
url: string;
|
|
37
|
+
/**
|
|
38
|
+
* Indicates if the page is currently active
|
|
39
|
+
*/
|
|
40
|
+
active?: boolean;
|
|
41
|
+
}[];
|
|
42
|
+
}
|
|
43
|
+
declare const PaginationContextDefault: import("react").ForwardRefExoticComponent<PaginationProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
|
+
declare const PaginationContext: import("react").Context<import("react").ForwardRefExoticComponent<PaginationProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
45
|
+
declare const Pagination: import("react").ForwardRefExoticComponent<PaginationProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
46
|
+
export type { PaginationProps };
|
|
47
|
+
export { PaginationContextDefault, PaginationContext, Pagination };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "./pagination.css";
|
|
2
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
5
|
+
import { Icon } from '@kickstartds/base/lib/icon';
|
|
6
|
+
import { Link } from '@kickstartds/base/lib/link';
|
|
7
|
+
|
|
8
|
+
const PaginationContextDefault = forwardRef(({ pages, ariaLabels }, ref) => {
|
|
9
|
+
return (jsxs("div", { className: "dsa-pagination", ref: ref, children: [pages.findIndex((page) => page.active) !== 0 && (jsxs(Fragment, { children: [jsx(Link, { "aria-label": ariaLabels.skipToFirstPage || "Skip to first page", className: "dsa-pagination__link dsa-pagination__link--icon dsa-pagination__link--skip-back", href: pages[0]?.url, children: jsx(Icon, { icon: "skip-back" }) }), jsx(Link, { "aria-label": ariaLabels.previousPage || "Go to previous page", className: "dsa-pagination__link dsa-pagination__link--icon dsa-pagination__link--prev", href: (() => {
|
|
10
|
+
const activeIndex = pages.findIndex((page) => page.active);
|
|
11
|
+
// Use the url of the next item after the active one, or "#" if at the end
|
|
12
|
+
return pages[activeIndex - 1]?.url || "#";
|
|
13
|
+
})(), children: jsx(Icon, { icon: "chevron-left" }) })] })), (() => {
|
|
14
|
+
const activeIndex = pages.findIndex((page) => page.active);
|
|
15
|
+
let lastRenderedIndex = -1;
|
|
16
|
+
const result = [];
|
|
17
|
+
pages.forEach((page, index) => {
|
|
18
|
+
const isFirst = index === 0;
|
|
19
|
+
const isLast = index === pages.length - 1;
|
|
20
|
+
const isActive = page.active;
|
|
21
|
+
const isBeforeActive = index === activeIndex - 1;
|
|
22
|
+
const isAfterActive = index === activeIndex + 1;
|
|
23
|
+
const shouldRender = isFirst || isLast || isActive || isBeforeActive || isAfterActive;
|
|
24
|
+
if (!shouldRender) {
|
|
25
|
+
if (index - lastRenderedIndex > 1 &&
|
|
26
|
+
(result.length === 0 ||
|
|
27
|
+
result[result.length - 1]?.type !== "div" ||
|
|
28
|
+
result[result.length - 1]?.props?.className !==
|
|
29
|
+
"dsa-pagination__placeholder")) {
|
|
30
|
+
result.push(jsx("div", { className: "dsa-pagination__placeholder", children: jsx("span", { children: "\u2026" }) }, `dsa-pagination__placeholder-${index}`));
|
|
31
|
+
}
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
result.push(jsx(Link, { className: classnames("dsa-pagination__link", page.active && "dsa-pagination__link--active"), "aria-label": `${ariaLabels.goToPage} ${index + 1}` ||
|
|
35
|
+
`Go to page ${index + 1}`, href: page.url, children: (index + 1).toString() }, index));
|
|
36
|
+
lastRenderedIndex = index;
|
|
37
|
+
});
|
|
38
|
+
return result;
|
|
39
|
+
})(), pages.findIndex((page) => page.active) !== pages.length - 1 && (jsxs(Fragment, { children: [jsx(Link, { className: "dsa-pagination__link dsa-pagination__link--icon dsa-pagination__link--next", "aria-label": ariaLabels.nextPage || "Go to next page", href: (() => {
|
|
40
|
+
const activeIndex = pages.findIndex((page) => page.active);
|
|
41
|
+
// Use the url of the next item after the active one, or "#" if at the end
|
|
42
|
+
return pages[activeIndex + 1]?.url || "#";
|
|
43
|
+
})(), children: jsx(Icon, { icon: "chevron-right" }) }), jsx(Link, { "aria-label": ariaLabels.skipToLastPage || "Skip to last page", className: "dsa-pagination__link dsa-pagination__link--icon dsa-pagination__link--skip-forward", href: pages[pages.length - 1]?.url, children: jsx(Icon, { icon: "skip-forward" }) })] }))] }));
|
|
44
|
+
});
|
|
45
|
+
const PaginationContext = createContext(PaginationContextDefault);
|
|
46
|
+
const Pagination = forwardRef((props, ref) => {
|
|
47
|
+
const Component = useContext(PaginationContext);
|
|
48
|
+
return jsx(Component, { ...props, ref: ref });
|
|
49
|
+
});
|
|
50
|
+
Pagination.displayName = "Pagination";
|
|
51
|
+
|
|
52
|
+
export { Pagination, PaginationContext, PaginationContextDefault };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.dsa-pagination {
|
|
2
|
+
--dsa-pagination--gap: var(--ks-spacing-stack-xs);
|
|
3
|
+
--dsa-pagination--background: transparent;
|
|
4
|
+
--dsa-pagination--background_hover: var(--ks-color-fg-alpha-8);
|
|
5
|
+
--dsa-pagination--color: var(--ks-text-color-interface-interactive);
|
|
6
|
+
--dsa-pagination--color_hover: var(--ks-text-color-interface-interactive);
|
|
7
|
+
--dsa-pagination--border-radius: var(--ks-border-radius-control);
|
|
8
|
+
--dsa-pagination--border: var(--ks-border-width-default) solid var(--ks-border-color-interface-interactive);
|
|
9
|
+
--dsa-pagination--width: 3.75em;
|
|
10
|
+
--dsa-pagination--font: var(--ks-font-interface-s);
|
|
11
|
+
--dsa-pagination--padding: 0.5em;
|
|
12
|
+
--dsa-pagination__icon--size: 1.25em;
|
|
13
|
+
--dsa-pagination--background_active: var(--ks-background-color-primary-interactive);
|
|
14
|
+
--dsa-pagination--background_active_hover: var(--ks-background-color-primary-interactive-hover);
|
|
15
|
+
--dsa-pagination--color_active: var(--dsa-text-color-on-primary);
|
|
16
|
+
--dsa-pagination--color_active_hover: var(--dsa-text-color-on-primary);
|
|
17
|
+
}
|
|
18
|
+
@media (min-width: 768px) {
|
|
19
|
+
.dsa-pagination {
|
|
20
|
+
--dsa-pagination--border: none;
|
|
21
|
+
--dsa-pagination--width: 3em;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dsa-pagination {
|
|
26
|
+
display: flex;
|
|
27
|
+
gap: var(--dsa-pagination--gap, var(--ks-spacing-stack-xs));
|
|
28
|
+
flex-wrap: wrap;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
}
|
|
31
|
+
.dsa-pagination__link, .dsa-pagination__placeholder {
|
|
32
|
+
--g-link--background: var(--dsa-pagination--background, transparent);
|
|
33
|
+
--g-link--background-hover: var(--dsa-pagination--background_hover, var(--ks-color-fg-alpha-8));
|
|
34
|
+
--g-link--color: var(--dsa-pagination--color, var(--ks-text-color-interface-interactive));
|
|
35
|
+
--g-link--color-hover: var(--dsa-pagination--color_hover, var(--ks-text-color-interface-interactive));
|
|
36
|
+
--g-link--border-radius: var(--dsa-pagination--border-radius, var(--ks-border-radius-control));
|
|
37
|
+
border: var(--dsa-pagination--border, var(--ks-border-width-default) solid var(--ks-border-color-interface-interactive));
|
|
38
|
+
border-radius: var(--dsa-pagination--border-radius, var(--ks-border-radius-control));
|
|
39
|
+
width: var(--dsa-pagination--width, 4em);
|
|
40
|
+
font: var(--dsa-pagination--font, var(--ks-font-interface-s));
|
|
41
|
+
line-height: 1;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
padding: var(--dsa-pagination--padding, 0.5em);
|
|
46
|
+
aspect-ratio: 1;
|
|
47
|
+
}
|
|
48
|
+
.dsa-pagination__link--icon .icon, .dsa-pagination__placeholder--icon .icon {
|
|
49
|
+
width: var(--dsa-pagination__icon--size, 1.25em);
|
|
50
|
+
height: var(--dsa-pagination__icon--size, 1.25em);
|
|
51
|
+
}
|
|
52
|
+
.dsa-pagination__link--active, .dsa-pagination__placeholder--active {
|
|
53
|
+
--g-link--background: var(--dsa-pagination--background_active, var(--ks-background-color-primary-interactive));
|
|
54
|
+
--g-link--background-hover: var(
|
|
55
|
+
--dsa-pagination--background_active,
|
|
56
|
+
var(--ks-background-color-primary-interactive-hover)
|
|
57
|
+
);
|
|
58
|
+
--g-link--color: var(--dsa-pagination--color_active, var(--dsa-text-color-on-primary));
|
|
59
|
+
--g-link--color-hover: var(--dsa-pagination--color_active_hover, var(--dsa-text-color-on-primary));
|
|
60
|
+
}
|
|
61
|
+
.dsa-pagination__placeholder {
|
|
62
|
+
line-height: 0.25;
|
|
63
|
+
}
|
|
64
|
+
.dsa-pagination__placeholder span {
|
|
65
|
+
transform: translateY(-0.15em);
|
|
66
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/pagination.schema.json",
|
|
4
|
+
"title": "Pagination",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"ariaLabels": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"previousPage": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Aria label for the previous page link",
|
|
13
|
+
"default": "Go to previous page"
|
|
14
|
+
},
|
|
15
|
+
"nextPage": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Aria label for the next page link",
|
|
18
|
+
"default": "Go to next page"
|
|
19
|
+
},
|
|
20
|
+
"skipToFirstPage": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Aria label for the link to skip to the first page",
|
|
23
|
+
"default": "Skip to first page"
|
|
24
|
+
},
|
|
25
|
+
"skipToLastPage": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Aria label for the link to skip to the last page",
|
|
28
|
+
"default": "Skip to last page"
|
|
29
|
+
},
|
|
30
|
+
"goToPage": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Aria label for the link to go to a specific page (will be placed before the page number)",
|
|
33
|
+
"default": "Go to page"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
},
|
|
38
|
+
"pages": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"url": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "The URL to the page"
|
|
46
|
+
},
|
|
47
|
+
"active": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"description": "Indicates if the page is currently active",
|
|
50
|
+
"default": false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"url"
|
|
55
|
+
],
|
|
56
|
+
"additionalProperties": false
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"type": {
|
|
60
|
+
"const": "pagination"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"additionalProperties": false
|
|
64
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/pagination.schema.json",
|
|
4
|
+
"title": "Pagination",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"ariaLabels": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"previousPage": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Aria label for the previous page link",
|
|
13
|
+
"default": "Go to previous page"
|
|
14
|
+
},
|
|
15
|
+
"nextPage": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Aria label for the next page link",
|
|
18
|
+
"default": "Go to next page"
|
|
19
|
+
},
|
|
20
|
+
"skipToFirstPage": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Aria label for the link to skip to the first page",
|
|
23
|
+
"default": "Skip to first page"
|
|
24
|
+
},
|
|
25
|
+
"skipToLastPage": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Aria label for the link to skip to the last page",
|
|
28
|
+
"default": "Skip to last page"
|
|
29
|
+
},
|
|
30
|
+
"goToPage": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Aria label for the link to go to a specific page (will be placed before the page number)",
|
|
33
|
+
"default": "Go to page"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"pages": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"url": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "The URL to the page"
|
|
45
|
+
},
|
|
46
|
+
"active": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "Indicates if the page is currently active",
|
|
49
|
+
"default": false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": ["url"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"additionalProperties": false
|
|
57
|
+
}
|