@dnanpm/ui-components 0.8.0 → 0.10.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/README.md +13 -0
- package/dist/components/Accordion/Accordion.css +9 -2
- package/dist/components/AccordionItem/AccordionItem.cjs +4 -4
- package/dist/components/AccordionItem/AccordionItem.cjs.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.css +8 -2
- package/dist/components/AccordionItem/AccordionItem.d.ts.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.js +2 -2
- package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/dist/components/Avatar/Avatar.cjs +83 -0
- package/dist/components/Avatar/Avatar.cjs.map +1 -0
- package/dist/components/Avatar/Avatar.css +188 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.js +83 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Avatar/Avatar.module.css.cjs +40 -0
- package/dist/components/Avatar/Avatar.module.css.cjs.map +1 -0
- package/dist/components/Avatar/Avatar.module.css.js +40 -0
- package/dist/components/Avatar/Avatar.module.css.js.map +1 -0
- package/dist/components/Avatar/Avatar.types.d.ts +66 -0
- package/dist/components/Avatar/Avatar.types.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.utils.cjs +17 -0
- package/dist/components/Avatar/Avatar.utils.cjs.map +1 -0
- package/dist/components/Avatar/Avatar.utils.d.ts +6 -0
- package/dist/components/Avatar/Avatar.utils.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.utils.js +17 -0
- package/dist/components/Avatar/Avatar.utils.js.map +1 -0
- package/dist/components/Avatar/index.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs +9 -12
- package/dist/components/Breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.css +20 -17
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -5
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +5 -8
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js +5 -8
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js.map +1 -1
- package/dist/components/Button/Button.cjs +29 -3
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.css +76 -30
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +28 -2
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.module.css.cjs +19 -11
- package/dist/components/Button/Button.module.css.cjs.map +1 -1
- package/dist/components/Button/Button.module.css.js +19 -11
- package/dist/components/Button/Button.module.css.js.map +1 -1
- package/dist/components/Button/Button.types.d.ts +20 -3
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.cjs +19 -14
- package/dist/components/ButtonCard/ButtonCard.cjs.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.css +62 -20
- package/dist/components/ButtonCard/ButtonCard.d.ts +2 -1
- package/dist/components/ButtonCard/ButtonCard.d.ts.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.js +17 -12
- package/dist/components/ButtonCard/ButtonCard.js.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.module.css.cjs +14 -12
- package/dist/components/ButtonCard/ButtonCard.module.css.cjs.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.module.css.js +14 -12
- package/dist/components/ButtonCard/ButtonCard.module.css.js.map +1 -1
- package/dist/components/ButtonCard/ButtonCard.types.d.ts +3 -2
- package/dist/components/ButtonCard/ButtonCard.types.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +105 -0
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -0
- package/dist/components/Checkbox/Checkbox.css +323 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +105 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.module.css.cjs +35 -0
- package/dist/components/Checkbox/Checkbox.module.css.cjs.map +1 -0
- package/dist/components/Checkbox/Checkbox.module.css.js +35 -0
- package/dist/components/Checkbox/Checkbox.module.css.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +47 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/ContentCard/ContentCard.cjs +97 -0
- package/dist/components/ContentCard/ContentCard.cjs.map +1 -0
- package/dist/components/ContentCard/ContentCard.css +254 -0
- package/dist/components/ContentCard/ContentCard.d.ts +3 -0
- package/dist/components/ContentCard/ContentCard.d.ts.map +1 -0
- package/dist/components/ContentCard/ContentCard.js +97 -0
- package/dist/components/ContentCard/ContentCard.js.map +1 -0
- package/dist/components/ContentCard/ContentCard.module.css.cjs +24 -0
- package/dist/components/ContentCard/ContentCard.module.css.cjs.map +1 -0
- package/dist/components/ContentCard/ContentCard.module.css.js +25 -0
- package/dist/components/ContentCard/ContentCard.module.css.js.map +1 -0
- package/dist/components/ContentCard/ContentCard.types.d.ts +100 -0
- package/dist/components/ContentCard/ContentCard.types.d.ts.map +1 -0
- package/dist/components/ContentCard/index.d.ts +3 -0
- package/dist/components/ContentCard/index.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.cjs +15 -7
- package/dist/components/Drawer/Drawer.cjs.map +1 -1
- package/dist/components/Drawer/Drawer.css +47 -45
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.js +12 -4
- package/dist/components/Drawer/Drawer.js.map +1 -1
- package/dist/components/Drawer/Drawer.module.css.cjs +16 -16
- package/dist/components/Drawer/Drawer.module.css.js +16 -16
- package/dist/components/Footer/Footer.cjs +8 -9
- package/dist/components/Footer/Footer.cjs.map +1 -1
- package/dist/components/Footer/Footer.css +91 -84
- package/dist/components/Footer/Footer.d.ts.map +1 -1
- package/dist/components/Footer/Footer.js +1 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.module.css.cjs +39 -39
- package/dist/components/Footer/Footer.module.css.js +39 -39
- package/dist/components/FunctionButton/FunctionButton.cjs +2 -2
- package/dist/components/FunctionButton/FunctionButton.cjs.map +1 -1
- package/dist/components/FunctionButton/FunctionButton.css +5 -2
- package/dist/components/FunctionButton/FunctionButton.js +1 -1
- package/dist/components/FunctionButton/FunctionButton.js.map +1 -1
- package/dist/components/Hero/Hero.cjs +30 -29
- package/dist/components/Hero/Hero.cjs.map +1 -1
- package/dist/components/Hero/Hero.css +86 -74
- package/dist/components/Hero/Hero.d.ts +1 -1
- package/dist/components/Hero/Hero.d.ts.map +1 -1
- package/dist/components/Hero/Hero.js +30 -29
- package/dist/components/Hero/Hero.js.map +1 -1
- package/dist/components/Hero/Hero.module.css.cjs +20 -17
- package/dist/components/Hero/Hero.module.css.cjs.map +1 -1
- package/dist/components/Hero/Hero.module.css.js +20 -17
- package/dist/components/Hero/Hero.module.css.js.map +1 -1
- package/dist/components/Hero/Hero.types.d.ts +2 -6
- package/dist/components/Hero/Hero.types.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.cjs +3 -4
- package/dist/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.css +5 -2
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +1 -2
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/Label/Label.css +5 -2
- package/dist/components/MainNavigation/MainNavigation.cjs +556 -191
- package/dist/components/MainNavigation/MainNavigation.cjs.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.css +297 -170
- package/dist/components/MainNavigation/MainNavigation.d.ts +1 -1
- package/dist/components/MainNavigation/MainNavigation.d.ts.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.js +526 -161
- package/dist/components/MainNavigation/MainNavigation.js.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.module.css.cjs +80 -68
- package/dist/components/MainNavigation/MainNavigation.module.css.cjs.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.module.css.js +80 -68
- package/dist/components/MainNavigation/MainNavigation.module.css.js.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.types.d.ts +55 -21
- package/dist/components/MainNavigation/MainNavigation.types.d.ts.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.utils.cjs +28 -4
- package/dist/components/MainNavigation/MainNavigation.utils.cjs.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.utils.d.ts +11 -1
- package/dist/components/MainNavigation/MainNavigation.utils.d.ts.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.utils.js +28 -4
- package/dist/components/MainNavigation/MainNavigation.utils.js.map +1 -1
- package/dist/components/MainNavigation/index.d.ts +1 -1
- package/dist/components/MainNavigation/index.d.ts.map +1 -1
- package/dist/components/Modal/Modal.cjs +14 -6
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.css +43 -40
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +12 -4
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/Modal.module.css.cjs +18 -18
- package/dist/components/Modal/Modal.module.css.js +18 -18
- package/dist/components/Notification/Notification.cjs +3 -2
- package/dist/components/Notification/Notification.cjs.map +1 -1
- package/dist/components/Notification/Notification.css +20 -12
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.js +2 -1
- package/dist/components/Notification/Notification.js.map +1 -1
- package/dist/components/Notification/Notification.module.css.cjs +9 -9
- package/dist/components/Notification/Notification.module.css.js +9 -9
- package/dist/components/Pagination/Pagination.cjs +142 -0
- package/dist/components/Pagination/Pagination.cjs.map +1 -0
- package/dist/components/Pagination/Pagination.css +256 -0
- package/dist/components/Pagination/Pagination.d.ts +3 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.js +142 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/Pagination.module.css.cjs +34 -0
- package/dist/components/Pagination/Pagination.module.css.cjs.map +1 -0
- package/dist/components/Pagination/Pagination.module.css.js +34 -0
- package/dist/components/Pagination/Pagination.module.css.js.map +1 -0
- package/dist/components/Pagination/Pagination.types.d.ts +20 -0
- package/dist/components/Pagination/Pagination.types.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.utils.cjs +76 -0
- package/dist/components/Pagination/Pagination.utils.cjs.map +1 -0
- package/dist/components/Pagination/Pagination.utils.d.ts +21 -0
- package/dist/components/Pagination/Pagination.utils.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.utils.js +76 -0
- package/dist/components/Pagination/Pagination.utils.js.map +1 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Pictograph/Pictograph.css +9 -2
- package/dist/components/Pictograph/PictographItem.css +9 -2
- package/dist/components/Quote/Quote.css +5 -2
- package/dist/components/Spinner/Spinner.css +9 -2
- package/dist/design-tokens/dist/tokens.cjs +5 -0
- package/dist/design-tokens/dist/tokens.cjs.map +1 -0
- package/dist/design-tokens/dist/tokens.js +5 -0
- package/dist/design-tokens/dist/tokens.js.map +1 -0
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/utilities.css +6 -0
- package/dist/styles/utils/elevation.css +34 -26
- package/dist/styles/utils/focus.css +63 -65
- package/dist/styles/utils/index.cjs +33 -0
- package/dist/styles/utils/index.cjs.map +1 -0
- package/dist/styles/utils/index.d.ts +20 -0
- package/dist/styles/utils/index.d.ts.map +1 -0
- package/dist/styles/utils/index.js +33 -0
- package/dist/styles/utils/index.js.map +1 -0
- package/dist/styles/utils/overlay.css +35 -28
- package/dist/styles/utils/text-decoration.css +19 -12
- package/dist/styles.css +46 -12
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/isRenderable/index.d.ts +2 -0
- package/dist/utils/isRenderable/index.d.ts.map +1 -0
- package/dist/utils/isRenderable/isRenderable.cjs +5 -0
- package/dist/utils/isRenderable/isRenderable.cjs.map +1 -0
- package/dist/utils/isRenderable/isRenderable.d.ts +4 -0
- package/dist/utils/isRenderable/isRenderable.d.ts.map +1 -0
- package/dist/utils/isRenderable/isRenderable.js +5 -0
- package/dist/utils/isRenderable/isRenderable.js.map +1 -0
- package/package.json +12 -4
- package/dist/styles/utils/elevation.module.css.cjs +0 -16
- package/dist/styles/utils/elevation.module.css.cjs.map +0 -1
- package/dist/styles/utils/elevation.module.css.js +0 -16
- package/dist/styles/utils/elevation.module.css.js.map +0 -1
- package/dist/styles/utils/focus.module.css.cjs +0 -16
- package/dist/styles/utils/focus.module.css.cjs.map +0 -1
- package/dist/styles/utils/focus.module.css.js +0 -16
- package/dist/styles/utils/focus.module.css.js.map +0 -1
- package/dist/styles/utils/overlay.module.css.cjs +0 -13
- package/dist/styles/utils/overlay.module.css.cjs.map +0 -1
- package/dist/styles/utils/overlay.module.css.js +0 -13
- package/dist/styles/utils/overlay.module.css.js.map +0 -1
- package/dist/styles/utils/text-decoration.module.css.cjs +0 -13
- package/dist/styles/utils/text-decoration.module.css.cjs.map +0 -1
- package/dist/styles/utils/text-decoration.module.css.js +0 -13
- package/dist/styles/utils/text-decoration.module.css.js.map +0 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const pageBudgets = [3, 5, 7, 9];
|
|
2
|
+
const validatePages = (currentPage, totalPages) => {
|
|
3
|
+
if (!Number.isSafeInteger(totalPages) || totalPages < 0) {
|
|
4
|
+
throw new RangeError("Pagination: totalPages must be a nonnegative safe integer.");
|
|
5
|
+
}
|
|
6
|
+
if (!Number.isSafeInteger(currentPage) || currentPage < 1 || totalPages > 0 && currentPage > totalPages) {
|
|
7
|
+
throw new RangeError(
|
|
8
|
+
"Pagination: currentPage must be a positive safe integer within totalPages."
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const pageItem = (page) => ({
|
|
13
|
+
key: `page-${page}`,
|
|
14
|
+
kind: "page",
|
|
15
|
+
page
|
|
16
|
+
});
|
|
17
|
+
const getPageItems = (currentPage, totalPages, budget) => {
|
|
18
|
+
if (totalPages === 0) return [];
|
|
19
|
+
const count = Math.min(budget, totalPages);
|
|
20
|
+
if (totalPages <= budget || budget < 7) {
|
|
21
|
+
const start2 = Math.max(
|
|
22
|
+
1,
|
|
23
|
+
Math.min(currentPage - Math.floor(count / 2), totalPages - count + 1)
|
|
24
|
+
);
|
|
25
|
+
return Array.from({ length: count }, (_, index) => pageItem(start2 + index));
|
|
26
|
+
}
|
|
27
|
+
const siblings = (budget - 5) / 2;
|
|
28
|
+
const windowSize = budget - 4;
|
|
29
|
+
const start = Math.max(2, Math.min(currentPage - siblings, totalPages - windowSize));
|
|
30
|
+
const pages = [1];
|
|
31
|
+
if (currentPage <= siblings + 2) {
|
|
32
|
+
for (let page = 2; page <= budget - 2; page++) pages.push(page);
|
|
33
|
+
} else if (currentPage >= totalPages - siblings - 1) {
|
|
34
|
+
for (let offset = budget - 3; offset >= 1; offset--) pages.push(totalPages - offset);
|
|
35
|
+
} else {
|
|
36
|
+
for (let offset = 0; offset < windowSize; offset++) pages.push(start + offset);
|
|
37
|
+
}
|
|
38
|
+
pages.push(totalPages);
|
|
39
|
+
return pages.flatMap((page, index) => {
|
|
40
|
+
const previous = pages[index - 1];
|
|
41
|
+
if (previous === void 0 || page === previous + 1) return [pageItem(page)];
|
|
42
|
+
if (page === previous + 2) return [pageItem(previous + 1), pageItem(page)];
|
|
43
|
+
return [
|
|
44
|
+
{ key: `gap-${previous}-${page}`, kind: "gap", after: previous, before: page },
|
|
45
|
+
pageItem(page)
|
|
46
|
+
];
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
const getPageCandidates = (currentPage, totalPages) => {
|
|
50
|
+
const candidates = /* @__PURE__ */ new Map();
|
|
51
|
+
for (const budget of pageBudgets) {
|
|
52
|
+
for (const item of getPageItems(currentPage, totalPages, budget)) {
|
|
53
|
+
const existing = candidates.get(item.key);
|
|
54
|
+
if (existing) existing.budgets.push(budget);
|
|
55
|
+
else candidates.set(item.key, { item, budgets: [budget] });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return [...candidates.values()].sort((a, b) => {
|
|
59
|
+
const aPosition = a.item.kind === "page" ? a.item.page : a.item.after;
|
|
60
|
+
const bPosition = b.item.kind === "page" ? b.item.page : b.item.after;
|
|
61
|
+
return aPosition - bPosition || Number(a.item.kind === "gap") - Number(b.item.kind === "gap");
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
const getPageWidth = (totalPages) => {
|
|
65
|
+
const digits = String(totalPages).length;
|
|
66
|
+
if (digits <= 2) return "normal";
|
|
67
|
+
return "wide";
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
getPageCandidates,
|
|
71
|
+
getPageItems,
|
|
72
|
+
getPageWidth,
|
|
73
|
+
pageBudgets,
|
|
74
|
+
validatePages
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=Pagination.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.utils.js","sources":["../../../src/components/Pagination/Pagination.utils.ts"],"sourcesContent":["export const pageBudgets = [3, 5, 7, 9] as const;\nexport type PageBudget = (typeof pageBudgets)[number];\n\nexport type PaginationItem =\n | { readonly key: string; readonly kind: 'page'; readonly page: number }\n | {\n readonly key: string;\n readonly kind: 'gap';\n readonly after: number;\n readonly before: number;\n };\n\nexport interface PaginationCandidate {\n readonly item: PaginationItem;\n readonly budgets: readonly PageBudget[];\n}\n\nexport const validatePages = (currentPage: number, totalPages: number) => {\n if (!Number.isSafeInteger(totalPages) || totalPages < 0) {\n throw new RangeError('Pagination: totalPages must be a nonnegative safe integer.');\n }\n if (\n !Number.isSafeInteger(currentPage) ||\n currentPage < 1 ||\n (totalPages > 0 && currentPage > totalPages)\n ) {\n throw new RangeError(\n 'Pagination: currentPage must be a positive safe integer within totalPages.',\n );\n }\n};\n\nconst pageItem = (page: number): PaginationItem => ({\n key: `page-${page}`,\n kind: 'page',\n page,\n});\n\nexport const getPageItems = (\n currentPage: number,\n totalPages: number,\n budget: PageBudget,\n): PaginationItem[] => {\n if (totalPages === 0) return [];\n\n const count = Math.min(budget, totalPages);\n if (totalPages <= budget || budget < 7) {\n const start = Math.max(\n 1,\n Math.min(currentPage - Math.floor(count / 2), totalPages - count + 1),\n );\n return Array.from({ length: count }, (_, index) => pageItem(start + index));\n }\n\n const siblings = (budget - 5) / 2;\n const windowSize = budget - 4;\n const start = Math.max(2, Math.min(currentPage - siblings, totalPages - windowSize));\n const pages = [1];\n if (currentPage <= siblings + 2) {\n for (let page = 2; page <= budget - 2; page++) pages.push(page);\n } else if (currentPage >= totalPages - siblings - 1) {\n for (let offset = budget - 3; offset >= 1; offset--) pages.push(totalPages - offset);\n } else {\n for (let offset = 0; offset < windowSize; offset++) pages.push(start + offset);\n }\n pages.push(totalPages);\n\n return pages.flatMap((page, index): PaginationItem[] => {\n const previous = pages[index - 1];\n if (previous === undefined || page === previous + 1) return [pageItem(page)];\n if (page === previous + 2) return [pageItem(previous + 1), pageItem(page)];\n return [\n { key: `gap-${previous}-${page}`, kind: 'gap', after: previous, before: page },\n pageItem(page),\n ];\n });\n};\n\nexport const getPageCandidates = (\n currentPage: number,\n totalPages: number,\n): PaginationCandidate[] => {\n const candidates = new Map<string, { item: PaginationItem; budgets: PageBudget[] }>();\n for (const budget of pageBudgets) {\n for (const item of getPageItems(currentPage, totalPages, budget)) {\n const existing = candidates.get(item.key);\n if (existing) existing.budgets.push(budget);\n else candidates.set(item.key, { item, budgets: [budget] });\n }\n }\n return [...candidates.values()].sort((a, b) => {\n const aPosition = a.item.kind === 'page' ? a.item.page : a.item.after;\n const bPosition = b.item.kind === 'page' ? b.item.page : b.item.after;\n return (\n aPosition - bPosition || Number(a.item.kind === 'gap') - Number(b.item.kind === 'gap')\n );\n });\n};\n\nexport const getPageWidth = (totalPages: number) => {\n const digits = String(totalPages).length;\n if (digits <= 2) return 'normal';\n return 'wide';\n};\n"],"names":["start"],"mappings":"AAAO,MAAM,cAAc,CAAC,GAAG,GAAG,GAAG,CAAC;AAiB/B,MAAM,gBAAgB,CAAC,aAAqB,eAAuB;AACtE,MAAI,CAAC,OAAO,cAAc,UAAU,KAAK,aAAa,GAAG;AACrD,UAAM,IAAI,WAAW,4DAA4D;AAAA,EACrF;AACA,MACI,CAAC,OAAO,cAAc,WAAW,KACjC,cAAc,KACb,aAAa,KAAK,cAAc,YACnC;AACE,UAAM,IAAI;AAAA,MACN;AAAA,IAAA;AAAA,EAER;AACJ;AAEA,MAAM,WAAW,CAAC,UAAkC;AAAA,EAChD,KAAK,QAAQ,IAAI;AAAA,EACjB,MAAM;AAAA,EACN;AACJ;AAEO,MAAM,eAAe,CACxB,aACA,YACA,WACmB;AACnB,MAAI,eAAe,EAAG,QAAO,CAAA;AAE7B,QAAM,QAAQ,KAAK,IAAI,QAAQ,UAAU;AACzC,MAAI,cAAc,UAAU,SAAS,GAAG;AACpC,UAAMA,SAAQ,KAAK;AAAA,MACf;AAAA,MACA,KAAK,IAAI,cAAc,KAAK,MAAM,QAAQ,CAAC,GAAG,aAAa,QAAQ,CAAC;AAAA,IAAA;A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AAAA,UACrC,YAAW,IAAI,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC,MAAM,GAAG;AAAA,IAC7D;AAAA,EACJ;AACA,SAAO,CAAC,GAAG,WAAW,OAAA,CAAQ,EAAE,KAAK,CAAC,GAAG,MAAM;AAC3C,UAAM,YAAY,EAAE,KAAK,SAAS,SAAS,EAAE,KAAK,OAAO,EAAE,KAAK;AAChE,UAAM,YAAY,EAAE,KAAK,SAAS,SAAS,EAAE,KAAK,OAAO,EAAE,KAAK;AAChE,WACI,YAAY,aAAa,OAAO,EAAE,KAAK,SAAS,KAAK,IAAI,OAAO,EAAE,KAAK,SAAS,KAAK;AAAA,EAE7F,CAAC;AACL;AAEO,MAAM,eAAe,CAAC,eAAuB;AAChD,QAAM,SAAS,OAAO,UAAU,EAAE;AAClC,MAAI,UAAU,EAAG,QAAO;AACxB,SAAO;AACX;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
@layer dds-components
|
|
1
|
+
@layer dds-base, dds-components;
|
|
2
|
+
|
|
3
|
+
@layer dds-components { @layer fallback, components; }
|
|
4
|
+
|
|
5
|
+
@layer dds-components.components{/**
|
|
2
6
|
* Pictograph Component Styles
|
|
3
7
|
*
|
|
4
8
|
* Grid-based layout for pictograph items with responsive columns,
|
|
@@ -199,4 +203,7 @@
|
|
|
199
203
|
--_pictograph-icon-color: var(--color-semantic-foreground-inverse);
|
|
200
204
|
}
|
|
201
205
|
}
|
|
202
|
-
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Do not edit directly, this file was auto-generated.
|
|
209
|
+
*/ }
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
@layer dds-components
|
|
1
|
+
@layer dds-base, dds-components;
|
|
2
|
+
|
|
3
|
+
@layer dds-components { @layer fallback, components; }
|
|
4
|
+
|
|
5
|
+
@layer dds-components.components{/**
|
|
2
6
|
* PictographItem Component Styles
|
|
3
7
|
*
|
|
4
8
|
* Individual pictograph item containing an icon and text area.
|
|
@@ -63,4 +67,7 @@
|
|
|
63
67
|
._pictograph-item_1jsnm_9[data-pictograph-content='long'] ._pictograph-item__text_1jsnm_35 > p {
|
|
64
68
|
font: var(--_pictograph-long-body-font);
|
|
65
69
|
}
|
|
66
|
-
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Do not edit directly, this file was auto-generated.
|
|
73
|
+
*/ }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer dds-components {._quote_1dakr_1 {
|
|
1
|
+
@layer dds-base, dds-components;@layer dds-components { @layer fallback, components; }@layer dds-components.components{._quote_1dakr_1 {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: flex-start;
|
|
4
4
|
gap: var(--spacing-space-20);
|
|
@@ -92,4 +92,7 @@
|
|
|
92
92
|
color: CanvasText;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Do not edit directly, this file was auto-generated.
|
|
98
|
+
*/ }
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
@layer dds-components
|
|
1
|
+
@layer dds-base, dds-components;
|
|
2
|
+
|
|
3
|
+
@layer dds-components { @layer fallback, components; }
|
|
4
|
+
|
|
5
|
+
@layer dds-components.components{/* ─────────────────────────────────────────────────────────────
|
|
2
6
|
Spinner — base
|
|
3
7
|
───────────────────────────────────────────────────────────── */
|
|
4
8
|
|
|
@@ -113,4 +117,7 @@
|
|
|
113
117
|
animation-duration: 3s;
|
|
114
118
|
}
|
|
115
119
|
}
|
|
116
|
-
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Do not edit directly, this file was auto-generated.
|
|
123
|
+
*/ }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.cjs","sources":["../../../../design-tokens/dist/tokens.js"],"sourcesContent":["/**\n * Do not edit directly, this file was auto-generated.\n */\n\nexport const ColorSemanticForegroundDefault = \"#121212\";\nexport const ColorSemanticForegroundMuted = \"#505050\";\nexport const ColorSemanticForegroundInverse = \"#ffffff\";\nexport const ColorSemanticForegroundPrimaryStrong = \"#da0070\";\nexport const ColorSemanticForegroundPrimaryMid = \"#ff82c1\";\nexport const ColorSemanticForegroundPrimarySoft = \"#ffbfe0\";\nexport const ColorSemanticForegroundSecondaryStrong = \"#551c3e\";\nexport const ColorSemanticForegroundSecondaryMid = \"#69214c\";\nexport const ColorSemanticForegroundSecondarySoft = \"#792a59\";\nexport const ColorSemanticForegroundStatusError = \"#dd0a0a\";\nexport const ColorSemanticForegroundStatusWarning = \"#eb6600\";\nexport const ColorSemanticForegroundStatusSuccess = \"#008500\";\nexport const ColorSemanticForegroundStatusInfo = \"#0b7c99\";\nexport const ColorSemanticForegroundLink = \"#da0070\";\nexport const ColorSemanticForegroundLinkInverse = \"#ffffff\";\nexport const ColorSemanticForegroundLinkHover = \"#ae005a\";\nexport const ColorSemanticForegroundLinkInverseHover = \"#ffffffcc\";\nexport const ColorSemanticForegroundInverseMuted = \"#ffffffb3\";\nexport const ColorSemanticSurfaceBase = \"#ffffff\";\nexport const ColorSemanticSurfaceNeutralSoft = \"#fdfbfa\";\nexport const ColorSemanticSurfaceNeutralMid = \"#f8f4f1\";\nexport const ColorSemanticSurfaceNeutralStrong = \"#ede8e1\";\nexport const ColorSemanticSurfacePrimaryStrong = \"#da0070\";\nexport const ColorSemanticSurfacePrimaryMid = \"#ff82c1\";\nexport const ColorSemanticSurfacePrimarySoft = \"#ffbfe0\";\nexport const ColorSemanticSurfaceSecondaryStrong = \"#551c3e\";\nexport const ColorSemanticSurfaceSecondaryMid = \"#69214c\";\nexport const ColorSemanticSurfaceSecondarySoft = \"#792a59\";\nexport const ColorSemanticSurfaceBaseInverse = \"#121212\";\nexport const ColorSemanticBorderNeutralMid = \"#d4d2ce\";\nexport const ColorSemanticBorderNeutralSoft = \"#e7e5e3\";\nexport const ColorSemanticBorderNeutralBase = \"#efeeed\";\nexport const ColorSemanticBorderNeutralStrong = \"#948b89\";\nexport const ColorSemanticBorderSecondary = \"#551c3e\";\nexport const ColorSemanticBorderPrimary = \"#da0070\";\nexport const ColorSemanticBorderFocus = \"#0064e2\";\nexport const ColorSemanticBorderInverse = \"#ffffff\";\nexport const ColorSemanticBorderError = \"#dd0a0a\";\nexport const ColorSemanticBorderWarning = \"#eb6600\";\nexport const ColorSemanticBorderSuccess = \"#008500\";\nexport const ColorSemanticBorderInfo = \"#0b7c99\";\nexport const ColorSemanticUtilityFocusSoft = \"#d8e9ff\";\nexport const ColorSemanticUtilityFocusStrong = \"#0064e2\";\nexport const ColorSemanticUtilityOverlayStrong = \"#551c3e66\";\nexport const ColorSemanticUtilityOverlaySoft = \"#551c3e1a\";\nexport const ColorSemanticStatusInfo = \"#0b7c99\";\nexport const ColorSemanticStatusSuccess = \"#008500\";\nexport const ColorSemanticStatusWarning = \"#eb6600\";\nexport const ColorSemanticStatusError = \"#dd0a0a\";\nexport const ColorSemanticAccentLemonStrong = \"#fff347\";\nexport const ColorSemanticAccentLemonMid = \"#fff9a3\";\nexport const ColorSemanticAccentLemonSoft = \"#fffaba\";\nexport const ColorSemanticAccentOrangeStrong = \"#ffa633\";\nexport const ColorSemanticAccentOrangeMid = \"#ffca85\";\nexport const ColorSemanticAccentOrangeSoft = \"#ffdbad\";\nexport const ColorSemanticAccentSkyStrong = \"#2ecaf0\";\nexport const ColorSemanticAccentSkyMid = \"#77dcf5\";\nexport const ColorSemanticAccentSkySoft = \"#96e4f8\";\nexport const ColorSemanticInteractivePrimaryDefault = \"#da0070\";\nexport const ColorSemanticInteractivePrimaryHover = \"#ae005a\";\nexport const ColorSemanticInteractivePrimaryActive = \"#f7007f\";\nexport const ColorSemanticInteractivePrimaryDisabled = \"#da00704d\";\nexport const ColorSemanticInteractivePrimaryFocus = \"#ae005a\";\nexport const ColorSemanticInteractiveSecondaryDefault = \"#551c3e\";\nexport const ColorSemanticInteractiveSecondaryHover = \"#441632\";\nexport const ColorSemanticInteractiveSecondaryFocus = \"#441632\";\nexport const ColorSemanticInteractiveSecondaryActive = \"#732654\";\nexport const ColorSemanticInteractiveSecondaryDisabled = \"#551c3e4d\";\nexport const ColorSemanticInteractiveNeutralDefault = \"#ede8e1\";\nexport const ColorSemanticInteractiveNeutralHover = \"#cabca7\";\nexport const ColorSemanticInteractiveNeutralFocus = \"#cabca7\";\nexport const ColorSemanticInteractiveNeutralActive = \"#efeae4\";\nexport const ColorSemanticInteractiveNeutralDisabled = \"#ede8e14d\";\nexport const ColorSemanticInteractiveFocusRing = \"#0064e2\";\nexport const ColorSemanticInteractiveFocusRingWeak = \"#d8e9ff\";\nexport const ColorSemanticInteractiveInverseDefault = \"#ffffff\";\nexport const ColorSemanticInteractiveInverseHover = \"#ffffff\";\nexport const ColorSemanticInteractiveInverseFocus = \"#ffffff\";\nexport const ColorSemanticInteractiveInverseActive = \"#ffffffe6\";\nexport const ColorSemanticInteractiveInverseDisabled = \"#ffffff4d\";\nexport const ColorSemanticInteractiveAuxiliaryDefault = \"#ffdbad\";\nexport const ColorSemanticInteractiveAuxiliaryHover = \"#ffb557\";\nexport const ColorSemanticInteractiveAuxiliaryFocus = \"#ffb557\";\nexport const ColorSemanticInteractiveAuxiliaryActive = \"#ffdbad\";\nexport const ColorSemanticInteractiveAuxiliaryDisabled = \"#ffdbad4d\";\nexport const RadiusSemanticNone = \"0px\";\nexport const RadiusSemanticSm = \"4px\";\nexport const RadiusSemanticMd = \"8px\";\nexport const RadiusSemanticLg = \"12px\";\nexport const RadiusSemanticFull = \"1000px\";\nexport const BorderwidthSemanticNone = \"0px\";\nexport const BorderwidthSemanticXs = \"1px\";\nexport const BorderwidthSemanticMd = \"3px\";\nexport const BorderwidthSemanticLg = \"4px\";\nexport const BorderwidthSemanticXl = \"5px\";\nexport const BorderwidthSemanticXxl = \"6px\";\nexport const BorderwidthSemanticSm = \"2px\";\nexport const SpacingSpace0 = \"0px\";\nexport const SpacingSpace4 = \"4px\";\nexport const SpacingSpace8 = \"8px\";\nexport const SpacingSpace12 = \"12px\";\nexport const SpacingSpace16 = \"16px\";\nexport const SpacingSpace20 = \"20px\";\nexport const SpacingSpace24 = \"24px\";\nexport const SpacingSpace32 = \"32px\";\nexport const SpacingSpace40 = \"40px\";\nexport const SpacingSpace48 = \"48px\";\nexport const SpacingSpace64 = \"64px\";\nexport const SpacingSpace80 = \"80px\";\nexport const SpacingSpace96 = \"96px\";\nexport const SpacingSpace112 = \"112px\";\nexport const SpacingSpace128 = \"128px\";\nexport const SpacingSpace144 = \"144px\";\nexport const SpacingSpace160 = \"160px\";\nexport const TypographyFontSizeHeadingXxl = \"48px\";\nexport const TypographyFontSizeHeadingXl = \"40px\";\nexport const TypographyFontSizeHeadingLg = \"34px\";\nexport const TypographyFontSizeHeadingMd = \"28px\";\nexport const TypographyFontSizeHeadingSm = \"24px\";\nexport const TypographyFontSizeHeadingXs = \"20px\";\nexport const TypographyFontSizeHeadingXxs = \"18px\";\nexport const TypographyFontSizeTextLg = \"20px\";\nexport const TypographyFontSizeTextMd = \"16px\";\nexport const TypographyFontSizeTextSm = \"14px\";\nexport const TypographyFontSizeTextXs = \"12px\";\nexport const TypographyFontSizePricingLg = \"34px\";\nexport const TypographyFontSizePricingMd = \"30px\";\nexport const TypographyFontSizePricingSm = \"24px\";\nexport const TypographyFontSizePricingXs = \"20px\";\nexport const TypographyFontWeightRegular = 400;\nexport const TypographyFontWeightMedium = 500;\nexport const TypographyFontWeightBold = 700;\nexport const TypographyFontWeightBlack = 900;\nexport const TypographyFontWeightDemiBold = 600;\nexport const TypographyLineHeightXs = 1;\nexport const TypographyLineHeightSm = 1.15;\nexport const TypographyLineHeightMd = 1.25;\nexport const TypographyLineHeightLg = 1.5;\nexport const TypographyLetterSpacingTight = \"-0.02em\";\nexport const TypographyLetterSpacingNormal = \"0em\";\nexport const TypographyLetterSpacingWide = \"0.02em\";\nexport const TypographyFontFamilyHeading = \"DNA Heading\";\nexport const TypographyFontFamilyText = \"DNA Text\";\nexport const ElevationSemanticElevationLowColor = \"#1212120f\";\nexport const ElevationSemanticElevationLowOffsetX = \"0px\";\nexport const ElevationSemanticElevationLowOffsetY = \"2px\";\nexport const ElevationSemanticElevationLowBlur = \"16px\";\nexport const ElevationSemanticElevationLowSpread = \"0px\";\nexport const ElevationSemanticElevationMediumColor = \"#12121214\";\nexport const ElevationSemanticElevationMediumOffsetX = \"0px\";\nexport const ElevationSemanticElevationMediumOffsetY = \"4px\";\nexport const ElevationSemanticElevationMediumBlur = \"24px\";\nexport const ElevationSemanticElevationMediumSpread = \"0px\";\nexport const ElevationSemanticElevationHighColor = \"#12121229\";\nexport const ElevationSemanticElevationHighOffsetX = \"0px\";\nexport const ElevationSemanticElevationHighOffsetY = \"8px\";\nexport const ElevationSemanticElevationHighBlur = \"64px\";\nexport const ElevationSemanticElevationHighSpread = \"0px\";\nexport const ZindexSemanticBelow = -1;\nexport const ZindexSemanticBase = 0;\nexport const ZindexSemanticRaised = 200;\nexport const ZindexSemanticSticky = 400;\nexport const ZindexSemanticPopup = 600;\nexport const ZindexSemanticNavigation = 1000;\nexport const ZindexSemanticWidget = 1040;\nexport const ZindexSemanticOverlay = 1100;\nexport const ZindexSemanticDialog = 1200;\nexport const ZindexSemanticSystem = 1300;\nexport const LayoutSemanticBreakpointSmallMobile = \"360px\";\nexport const LayoutSemanticBreakpointLargeMobile = \"480px\";\nexport const LayoutSemanticBreakpointTablet = \"768px\";\nexport const LayoutSemanticBreakpointDesktop = \"1024px\";\nexport const LayoutSemanticBreakpointLargeDesktop = \"1344px\";\nexport const LayoutSemanticPageMinWidth = \"320px\";\nexport const LayoutSemanticPageMaxWidth = \"2560px\";\nexport const LayoutSemanticContainerNarrow = \"628px\";\nexport const LayoutSemanticContainerDefault = \"845px\";\nexport const LayoutSemanticContainerWide = \"1280px\";\n"],"names":[],"mappings":";;AA+KY,MAAC,kCAAkC;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sources":["../../../../design-tokens/dist/tokens.js"],"sourcesContent":["/**\n * Do not edit directly, this file was auto-generated.\n */\n\nexport const ColorSemanticForegroundDefault = \"#121212\";\nexport const ColorSemanticForegroundMuted = \"#505050\";\nexport const ColorSemanticForegroundInverse = \"#ffffff\";\nexport const ColorSemanticForegroundPrimaryStrong = \"#da0070\";\nexport const ColorSemanticForegroundPrimaryMid = \"#ff82c1\";\nexport const ColorSemanticForegroundPrimarySoft = \"#ffbfe0\";\nexport const ColorSemanticForegroundSecondaryStrong = \"#551c3e\";\nexport const ColorSemanticForegroundSecondaryMid = \"#69214c\";\nexport const ColorSemanticForegroundSecondarySoft = \"#792a59\";\nexport const ColorSemanticForegroundStatusError = \"#dd0a0a\";\nexport const ColorSemanticForegroundStatusWarning = \"#eb6600\";\nexport const ColorSemanticForegroundStatusSuccess = \"#008500\";\nexport const ColorSemanticForegroundStatusInfo = \"#0b7c99\";\nexport const ColorSemanticForegroundLink = \"#da0070\";\nexport const ColorSemanticForegroundLinkInverse = \"#ffffff\";\nexport const ColorSemanticForegroundLinkHover = \"#ae005a\";\nexport const ColorSemanticForegroundLinkInverseHover = \"#ffffffcc\";\nexport const ColorSemanticForegroundInverseMuted = \"#ffffffb3\";\nexport const ColorSemanticSurfaceBase = \"#ffffff\";\nexport const ColorSemanticSurfaceNeutralSoft = \"#fdfbfa\";\nexport const ColorSemanticSurfaceNeutralMid = \"#f8f4f1\";\nexport const ColorSemanticSurfaceNeutralStrong = \"#ede8e1\";\nexport const ColorSemanticSurfacePrimaryStrong = \"#da0070\";\nexport const ColorSemanticSurfacePrimaryMid = \"#ff82c1\";\nexport const ColorSemanticSurfacePrimarySoft = \"#ffbfe0\";\nexport const ColorSemanticSurfaceSecondaryStrong = \"#551c3e\";\nexport const ColorSemanticSurfaceSecondaryMid = \"#69214c\";\nexport const ColorSemanticSurfaceSecondarySoft = \"#792a59\";\nexport const ColorSemanticSurfaceBaseInverse = \"#121212\";\nexport const ColorSemanticBorderNeutralMid = \"#d4d2ce\";\nexport const ColorSemanticBorderNeutralSoft = \"#e7e5e3\";\nexport const ColorSemanticBorderNeutralBase = \"#efeeed\";\nexport const ColorSemanticBorderNeutralStrong = \"#948b89\";\nexport const ColorSemanticBorderSecondary = \"#551c3e\";\nexport const ColorSemanticBorderPrimary = \"#da0070\";\nexport const ColorSemanticBorderFocus = \"#0064e2\";\nexport const ColorSemanticBorderInverse = \"#ffffff\";\nexport const ColorSemanticBorderError = \"#dd0a0a\";\nexport const ColorSemanticBorderWarning = \"#eb6600\";\nexport const ColorSemanticBorderSuccess = \"#008500\";\nexport const ColorSemanticBorderInfo = \"#0b7c99\";\nexport const ColorSemanticUtilityFocusSoft = \"#d8e9ff\";\nexport const ColorSemanticUtilityFocusStrong = \"#0064e2\";\nexport const ColorSemanticUtilityOverlayStrong = \"#551c3e66\";\nexport const ColorSemanticUtilityOverlaySoft = \"#551c3e1a\";\nexport const ColorSemanticStatusInfo = \"#0b7c99\";\nexport const ColorSemanticStatusSuccess = \"#008500\";\nexport const ColorSemanticStatusWarning = \"#eb6600\";\nexport const ColorSemanticStatusError = \"#dd0a0a\";\nexport const ColorSemanticAccentLemonStrong = \"#fff347\";\nexport const ColorSemanticAccentLemonMid = \"#fff9a3\";\nexport const ColorSemanticAccentLemonSoft = \"#fffaba\";\nexport const ColorSemanticAccentOrangeStrong = \"#ffa633\";\nexport const ColorSemanticAccentOrangeMid = \"#ffca85\";\nexport const ColorSemanticAccentOrangeSoft = \"#ffdbad\";\nexport const ColorSemanticAccentSkyStrong = \"#2ecaf0\";\nexport const ColorSemanticAccentSkyMid = \"#77dcf5\";\nexport const ColorSemanticAccentSkySoft = \"#96e4f8\";\nexport const ColorSemanticInteractivePrimaryDefault = \"#da0070\";\nexport const ColorSemanticInteractivePrimaryHover = \"#ae005a\";\nexport const ColorSemanticInteractivePrimaryActive = \"#f7007f\";\nexport const ColorSemanticInteractivePrimaryDisabled = \"#da00704d\";\nexport const ColorSemanticInteractivePrimaryFocus = \"#ae005a\";\nexport const ColorSemanticInteractiveSecondaryDefault = \"#551c3e\";\nexport const ColorSemanticInteractiveSecondaryHover = \"#441632\";\nexport const ColorSemanticInteractiveSecondaryFocus = \"#441632\";\nexport const ColorSemanticInteractiveSecondaryActive = \"#732654\";\nexport const ColorSemanticInteractiveSecondaryDisabled = \"#551c3e4d\";\nexport const ColorSemanticInteractiveNeutralDefault = \"#ede8e1\";\nexport const ColorSemanticInteractiveNeutralHover = \"#cabca7\";\nexport const ColorSemanticInteractiveNeutralFocus = \"#cabca7\";\nexport const ColorSemanticInteractiveNeutralActive = \"#efeae4\";\nexport const ColorSemanticInteractiveNeutralDisabled = \"#ede8e14d\";\nexport const ColorSemanticInteractiveFocusRing = \"#0064e2\";\nexport const ColorSemanticInteractiveFocusRingWeak = \"#d8e9ff\";\nexport const ColorSemanticInteractiveInverseDefault = \"#ffffff\";\nexport const ColorSemanticInteractiveInverseHover = \"#ffffff\";\nexport const ColorSemanticInteractiveInverseFocus = \"#ffffff\";\nexport const ColorSemanticInteractiveInverseActive = \"#ffffffe6\";\nexport const ColorSemanticInteractiveInverseDisabled = \"#ffffff4d\";\nexport const ColorSemanticInteractiveAuxiliaryDefault = \"#ffdbad\";\nexport const ColorSemanticInteractiveAuxiliaryHover = \"#ffb557\";\nexport const ColorSemanticInteractiveAuxiliaryFocus = \"#ffb557\";\nexport const ColorSemanticInteractiveAuxiliaryActive = \"#ffdbad\";\nexport const ColorSemanticInteractiveAuxiliaryDisabled = \"#ffdbad4d\";\nexport const RadiusSemanticNone = \"0px\";\nexport const RadiusSemanticSm = \"4px\";\nexport const RadiusSemanticMd = \"8px\";\nexport const RadiusSemanticLg = \"12px\";\nexport const RadiusSemanticFull = \"1000px\";\nexport const BorderwidthSemanticNone = \"0px\";\nexport const BorderwidthSemanticXs = \"1px\";\nexport const BorderwidthSemanticMd = \"3px\";\nexport const BorderwidthSemanticLg = \"4px\";\nexport const BorderwidthSemanticXl = \"5px\";\nexport const BorderwidthSemanticXxl = \"6px\";\nexport const BorderwidthSemanticSm = \"2px\";\nexport const SpacingSpace0 = \"0px\";\nexport const SpacingSpace4 = \"4px\";\nexport const SpacingSpace8 = \"8px\";\nexport const SpacingSpace12 = \"12px\";\nexport const SpacingSpace16 = \"16px\";\nexport const SpacingSpace20 = \"20px\";\nexport const SpacingSpace24 = \"24px\";\nexport const SpacingSpace32 = \"32px\";\nexport const SpacingSpace40 = \"40px\";\nexport const SpacingSpace48 = \"48px\";\nexport const SpacingSpace64 = \"64px\";\nexport const SpacingSpace80 = \"80px\";\nexport const SpacingSpace96 = \"96px\";\nexport const SpacingSpace112 = \"112px\";\nexport const SpacingSpace128 = \"128px\";\nexport const SpacingSpace144 = \"144px\";\nexport const SpacingSpace160 = \"160px\";\nexport const TypographyFontSizeHeadingXxl = \"48px\";\nexport const TypographyFontSizeHeadingXl = \"40px\";\nexport const TypographyFontSizeHeadingLg = \"34px\";\nexport const TypographyFontSizeHeadingMd = \"28px\";\nexport const TypographyFontSizeHeadingSm = \"24px\";\nexport const TypographyFontSizeHeadingXs = \"20px\";\nexport const TypographyFontSizeHeadingXxs = \"18px\";\nexport const TypographyFontSizeTextLg = \"20px\";\nexport const TypographyFontSizeTextMd = \"16px\";\nexport const TypographyFontSizeTextSm = \"14px\";\nexport const TypographyFontSizeTextXs = \"12px\";\nexport const TypographyFontSizePricingLg = \"34px\";\nexport const TypographyFontSizePricingMd = \"30px\";\nexport const TypographyFontSizePricingSm = \"24px\";\nexport const TypographyFontSizePricingXs = \"20px\";\nexport const TypographyFontWeightRegular = 400;\nexport const TypographyFontWeightMedium = 500;\nexport const TypographyFontWeightBold = 700;\nexport const TypographyFontWeightBlack = 900;\nexport const TypographyFontWeightDemiBold = 600;\nexport const TypographyLineHeightXs = 1;\nexport const TypographyLineHeightSm = 1.15;\nexport const TypographyLineHeightMd = 1.25;\nexport const TypographyLineHeightLg = 1.5;\nexport const TypographyLetterSpacingTight = \"-0.02em\";\nexport const TypographyLetterSpacingNormal = \"0em\";\nexport const TypographyLetterSpacingWide = \"0.02em\";\nexport const TypographyFontFamilyHeading = \"DNA Heading\";\nexport const TypographyFontFamilyText = \"DNA Text\";\nexport const ElevationSemanticElevationLowColor = \"#1212120f\";\nexport const ElevationSemanticElevationLowOffsetX = \"0px\";\nexport const ElevationSemanticElevationLowOffsetY = \"2px\";\nexport const ElevationSemanticElevationLowBlur = \"16px\";\nexport const ElevationSemanticElevationLowSpread = \"0px\";\nexport const ElevationSemanticElevationMediumColor = \"#12121214\";\nexport const ElevationSemanticElevationMediumOffsetX = \"0px\";\nexport const ElevationSemanticElevationMediumOffsetY = \"4px\";\nexport const ElevationSemanticElevationMediumBlur = \"24px\";\nexport const ElevationSemanticElevationMediumSpread = \"0px\";\nexport const ElevationSemanticElevationHighColor = \"#12121229\";\nexport const ElevationSemanticElevationHighOffsetX = \"0px\";\nexport const ElevationSemanticElevationHighOffsetY = \"8px\";\nexport const ElevationSemanticElevationHighBlur = \"64px\";\nexport const ElevationSemanticElevationHighSpread = \"0px\";\nexport const ZindexSemanticBelow = -1;\nexport const ZindexSemanticBase = 0;\nexport const ZindexSemanticRaised = 200;\nexport const ZindexSemanticSticky = 400;\nexport const ZindexSemanticPopup = 600;\nexport const ZindexSemanticNavigation = 1000;\nexport const ZindexSemanticWidget = 1040;\nexport const ZindexSemanticOverlay = 1100;\nexport const ZindexSemanticDialog = 1200;\nexport const ZindexSemanticSystem = 1300;\nexport const LayoutSemanticBreakpointSmallMobile = \"360px\";\nexport const LayoutSemanticBreakpointLargeMobile = \"480px\";\nexport const LayoutSemanticBreakpointTablet = \"768px\";\nexport const LayoutSemanticBreakpointDesktop = \"1024px\";\nexport const LayoutSemanticBreakpointLargeDesktop = \"1344px\";\nexport const LayoutSemanticPageMinWidth = \"320px\";\nexport const LayoutSemanticPageMaxWidth = \"2560px\";\nexport const LayoutSemanticContainerNarrow = \"628px\";\nexport const LayoutSemanticContainerDefault = \"845px\";\nexport const LayoutSemanticContainerWide = \"1280px\";\n"],"names":[],"mappings":"AA+KY,MAAC,kCAAkC;"}
|
package/dist/index.cjs
CHANGED
|
@@ -3,10 +3,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
;/* empty css */
|
|
4
4
|
const Accordion = require("./components/Accordion/Accordion.cjs");
|
|
5
5
|
const AccordionItem = require("./components/AccordionItem/AccordionItem.cjs");
|
|
6
|
+
const Avatar = require("./components/Avatar/Avatar.cjs");
|
|
6
7
|
const Breadcrumb = require("./components/Breadcrumb/Breadcrumb.cjs");
|
|
7
8
|
const Button = require("./components/Button/Button.cjs");
|
|
8
9
|
const ButtonCard = require("./components/ButtonCard/ButtonCard.cjs");
|
|
10
|
+
const Checkbox = require("./components/Checkbox/Checkbox.cjs");
|
|
9
11
|
const ColorScheme = require("./components/ColorScheme/ColorScheme.cjs");
|
|
12
|
+
const ContentCard = require("./components/ContentCard/ContentCard.cjs");
|
|
10
13
|
const Drawer = require("./components/Drawer/Drawer.cjs");
|
|
11
14
|
const Footer = require("./components/Footer/Footer.cjs");
|
|
12
15
|
const FunctionButton = require("./components/FunctionButton/FunctionButton.cjs");
|
|
@@ -16,6 +19,7 @@ const Label = require("./components/Label/Label.cjs");
|
|
|
16
19
|
const MainNavigation = require("./components/MainNavigation/MainNavigation.cjs");
|
|
17
20
|
const Modal = require("./components/Modal/Modal.cjs");
|
|
18
21
|
const Notification = require("./components/Notification/Notification.cjs");
|
|
22
|
+
const Pagination = require("./components/Pagination/Pagination.cjs");
|
|
19
23
|
const Pictograph = require("./components/Pictograph/Pictograph.cjs");
|
|
20
24
|
const PictographItem = require("./components/Pictograph/PictographItem.cjs");
|
|
21
25
|
const Quote = require("./components/Quote/Quote.cjs");
|
|
@@ -23,10 +27,13 @@ const Spinner = require("./components/Spinner/Spinner.cjs");
|
|
|
23
27
|
const cn = require("./utils/cn/cn.cjs");
|
|
24
28
|
exports.Accordion = Accordion.Accordion;
|
|
25
29
|
exports.AccordionItem = AccordionItem.AccordionItem;
|
|
30
|
+
exports.Avatar = Avatar.Avatar;
|
|
26
31
|
exports.Breadcrumb = Breadcrumb.Breadcrumb;
|
|
27
32
|
exports.Button = Button.Button;
|
|
28
33
|
exports.ButtonCard = ButtonCard.ButtonCard;
|
|
34
|
+
exports.Checkbox = Checkbox.Checkbox;
|
|
29
35
|
exports.ColorScheme = ColorScheme.ColorScheme;
|
|
36
|
+
exports.ContentCard = ContentCard.ContentCard;
|
|
30
37
|
exports.Drawer = Drawer.Drawer;
|
|
31
38
|
exports.Footer = Footer.Footer;
|
|
32
39
|
exports.FunctionButton = FunctionButton.FunctionButton;
|
|
@@ -36,6 +43,7 @@ exports.Label = Label.Label;
|
|
|
36
43
|
exports.MainNavigation = MainNavigation.MainNavigation;
|
|
37
44
|
exports.Modal = Modal.Modal;
|
|
38
45
|
exports.Notification = Notification.Notification;
|
|
46
|
+
exports.Pagination = Pagination.Pagination;
|
|
39
47
|
exports.Pictograph = Pictograph.Pictograph;
|
|
40
48
|
exports.PictographItem = PictographItem.PictographItem;
|
|
41
49
|
exports.Quote = Quote.Quote;
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { Accordion } from './components/Accordion';
|
|
2
2
|
export { AccordionItem } from './components/AccordionItem';
|
|
3
|
+
export { Avatar } from './components/Avatar';
|
|
3
4
|
export { Breadcrumb } from './components/Breadcrumb';
|
|
4
5
|
export { Button } from './components/Button';
|
|
5
6
|
export { ButtonCard } from './components/ButtonCard';
|
|
6
7
|
export { ColorScheme } from './components/ColorScheme';
|
|
8
|
+
export { ContentCard } from './components/ContentCard';
|
|
7
9
|
export { Drawer } from './components/Drawer';
|
|
8
10
|
export { Footer } from './components/Footer';
|
|
9
11
|
export { Hero } from './components/Hero';
|
|
@@ -16,16 +18,20 @@ export { Quote } from './components/Quote';
|
|
|
16
18
|
export { Spinner } from './components/Spinner';
|
|
17
19
|
export { IconButton } from './components/IconButton';
|
|
18
20
|
export { FunctionButton } from './components/FunctionButton';
|
|
21
|
+
export { Pagination } from './components/Pagination';
|
|
22
|
+
export { Checkbox } from './components/Checkbox';
|
|
19
23
|
export type { AccordionProps } from './components/Accordion';
|
|
20
24
|
export type { AccordionItemProps } from './components/AccordionItem';
|
|
25
|
+
export type { AvatarBackground, AvatarIcon, AvatarOrientation, AvatarProps, AvatarSize, AvatarVariant, } from './components/Avatar';
|
|
21
26
|
export type { BreadcrumbItem, BreadcrumbLinkProps, BreadcrumbProps } from './components/Breadcrumb';
|
|
22
|
-
export type { ButtonProps, ButtonLinkProps, ButtonVariant, ButtonSize } from './components/Button';
|
|
27
|
+
export type { ButtonProps, ButtonLinkProps, ButtonVariant, ButtonSize, ButtonIcon, ButtonIconPosition, } from './components/Button';
|
|
23
28
|
export type { ButtonCardIcon, ButtonCardLinkProps, ButtonCardProps, ButtonCardSize, } from './components/ButtonCard';
|
|
24
29
|
export type { ColorSchemeProps, ColorSchemeValue } from './components/ColorScheme';
|
|
30
|
+
export type { ContentCardAppearance, ContentCardArticleProps, ContentCardDivProps, ContentCardElement, ContentCardHeadingLevel, ContentCardLiProps, ContentCardLogoBackground, ContentCardMediaKind, ContentCardMediaPosition, ContentCardMediaWidth, ContentCardProps, ContentCardSectionProps, } from './components/ContentCard';
|
|
25
31
|
export type { DrawerHeaderStyle, DrawerProps, DrawerSide, DrawerSize } from './components/Drawer';
|
|
26
32
|
export type { FooterAppLink, FooterAppLinks, FooterLanguage, FooterLink, FooterLinkMeta, FooterLinkProps, FooterMandatoryLink, FooterNavigationGroup, FooterOrganization, FooterProps, FooterRenderLink, FooterSocialLink, FooterSocialPlatform, FooterTopSectionGroup, FooterTopSectionLink, } from './components/Footer';
|
|
27
33
|
export type { HeroProps, HeroHeadingLevel, HeroCommonImageProps, HeroImageComponent, } from './components/Hero';
|
|
28
|
-
export type { MainNavigationItem, MainNavigationLink, MainNavigationOrganizationLink, MainNavigationPanel, MainNavigationProps, MainNavigationSubmenuColumn, } from './components/MainNavigation';
|
|
34
|
+
export type { MainNavigationItem, MainNavigationLanguageCode, MainNavigationLanguageLinkProps, MainNavigationLanguageOption, MainNavigationLink, MainNavigationOrganizationLink, MainNavigationPanel, MainNavigationProps, MainNavigationRenderLanguageLink, MainNavigationSubmenuColumn, } from './components/MainNavigation';
|
|
29
35
|
export type { NotificationProps, NotificationVariant } from './components/Notification';
|
|
30
36
|
export type { LabelProps, LabelVariant } from './components/Label';
|
|
31
37
|
export type { ModalHeaderStyle, ModalProps, ModalSize } from './components/Modal';
|
|
@@ -34,6 +40,8 @@ export type { QuoteProps } from './components/Quote';
|
|
|
34
40
|
export type { SpinnerColor, SpinnerProps, SpinnerSize } from './components/Spinner';
|
|
35
41
|
export type { Icon, IconPosition, IconButtonLinkProps, IconButtonProps, IconButtonSize, } from './components/IconButton';
|
|
36
42
|
export type { FunctionButtonIcon, FunctionButtonProps, FunctionButtonSize, FunctionButtonVariant, } from './components/FunctionButton';
|
|
43
|
+
export type { PaginationProps } from './components/Pagination';
|
|
44
|
+
export type { CheckboxProps } from './components/Checkbox';
|
|
37
45
|
export { cn } from './utils';
|
|
38
46
|
export type { CnDictionary, CnInput } from './utils';
|
|
39
47
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.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M,oBAAoB,CAAC;AACnE,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAClF,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACpF,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACpF,YAAY,EACR,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,GACjB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACR,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,GACxB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { Accordion } from "./components/Accordion/Accordion.js";
|
|
3
3
|
import { AccordionItem } from "./components/AccordionItem/AccordionItem.js";
|
|
4
|
+
import { Avatar } from "./components/Avatar/Avatar.js";
|
|
4
5
|
import { Breadcrumb } from "./components/Breadcrumb/Breadcrumb.js";
|
|
5
6
|
import { Button } from "./components/Button/Button.js";
|
|
6
7
|
import { ButtonCard } from "./components/ButtonCard/ButtonCard.js";
|
|
8
|
+
import { Checkbox } from "./components/Checkbox/Checkbox.js";
|
|
7
9
|
import { ColorScheme } from "./components/ColorScheme/ColorScheme.js";
|
|
10
|
+
import { ContentCard } from "./components/ContentCard/ContentCard.js";
|
|
8
11
|
import { Drawer } from "./components/Drawer/Drawer.js";
|
|
9
12
|
import { Footer } from "./components/Footer/Footer.js";
|
|
10
13
|
import { FunctionButton } from "./components/FunctionButton/FunctionButton.js";
|
|
@@ -14,6 +17,7 @@ import { Label } from "./components/Label/Label.js";
|
|
|
14
17
|
import { MainNavigation } from "./components/MainNavigation/MainNavigation.js";
|
|
15
18
|
import { Modal } from "./components/Modal/Modal.js";
|
|
16
19
|
import { Notification } from "./components/Notification/Notification.js";
|
|
20
|
+
import { Pagination } from "./components/Pagination/Pagination.js";
|
|
17
21
|
import { Pictograph } from "./components/Pictograph/Pictograph.js";
|
|
18
22
|
import { PictographItem } from "./components/Pictograph/PictographItem.js";
|
|
19
23
|
import { Quote } from "./components/Quote/Quote.js";
|
|
@@ -22,10 +26,13 @@ import { cn } from "./utils/cn/cn.js";
|
|
|
22
26
|
export {
|
|
23
27
|
Accordion,
|
|
24
28
|
AccordionItem,
|
|
29
|
+
Avatar,
|
|
25
30
|
Breadcrumb,
|
|
26
31
|
Button,
|
|
27
32
|
ButtonCard,
|
|
33
|
+
Checkbox,
|
|
28
34
|
ColorScheme,
|
|
35
|
+
ContentCard,
|
|
29
36
|
Drawer,
|
|
30
37
|
Footer,
|
|
31
38
|
FunctionButton,
|
|
@@ -35,6 +42,7 @@ export {
|
|
|
35
42
|
MainNavigation,
|
|
36
43
|
Modal,
|
|
37
44
|
Notification,
|
|
45
|
+
Pagination,
|
|
38
46
|
Pictograph,
|
|
39
47
|
PictographItem,
|
|
40
48
|
Quote,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,31 +1,39 @@
|
|
|
1
|
-
@layer dds-components
|
|
2
|
-
--_elevation-style: var(--elevation-semantic-elevation-low-offset-x)
|
|
3
|
-
var(--elevation-semantic-elevation-low-offset-y)
|
|
4
|
-
var(--elevation-semantic-elevation-low-blur) var(--elevation-semantic-elevation-low-spread)
|
|
5
|
-
var(--elevation-semantic-elevation-low-color);
|
|
6
|
-
}
|
|
1
|
+
@layer dds-base, dds-components;
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var(--elevation-semantic-elevation-medium-offset-y)
|
|
11
|
-
var(--elevation-semantic-elevation-medium-blur)
|
|
12
|
-
var(--elevation-semantic-elevation-medium-spread)
|
|
13
|
-
var(--elevation-semantic-elevation-medium-color);
|
|
3
|
+
@layer dds-components {
|
|
4
|
+
@layer fallback, components;
|
|
14
5
|
}
|
|
15
6
|
|
|
16
|
-
.
|
|
17
|
-
|
|
18
|
-
var(--elevation-semantic-elevation-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
@layer dds-components.components {
|
|
8
|
+
.dds-elevation-low {
|
|
9
|
+
--_elevation-style: var(--elevation-semantic-elevation-low-offset-x)
|
|
10
|
+
var(--elevation-semantic-elevation-low-offset-y)
|
|
11
|
+
var(--elevation-semantic-elevation-low-blur)
|
|
12
|
+
var(--elevation-semantic-elevation-low-spread)
|
|
13
|
+
var(--elevation-semantic-elevation-low-color);
|
|
14
|
+
}
|
|
23
15
|
|
|
24
|
-
.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
16
|
+
.dds-elevation-medium {
|
|
17
|
+
--_elevation-style: var(--elevation-semantic-elevation-medium-offset-x)
|
|
18
|
+
var(--elevation-semantic-elevation-medium-offset-y)
|
|
19
|
+
var(--elevation-semantic-elevation-medium-blur)
|
|
20
|
+
var(--elevation-semantic-elevation-medium-spread)
|
|
21
|
+
var(--elevation-semantic-elevation-medium-color);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dds-elevation-high {
|
|
25
|
+
--_elevation-style: var(--elevation-semantic-elevation-high-offset-x)
|
|
26
|
+
var(--elevation-semantic-elevation-high-offset-y)
|
|
27
|
+
var(--elevation-semantic-elevation-high-blur)
|
|
28
|
+
var(--elevation-semantic-elevation-high-spread)
|
|
29
|
+
var(--elevation-semantic-elevation-high-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dds-elevation-low,
|
|
33
|
+
.dds-elevation-medium,
|
|
34
|
+
.dds-elevation-high {
|
|
35
|
+
border: var(--borderwidth-semantic-xs) solid var(--color-semantic-border-neutral-base);
|
|
36
|
+
box-shadow: var(--_elevation-style);
|
|
37
|
+
border-radius: var(--radius-semantic-md);
|
|
38
|
+
}
|
|
31
39
|
}
|
|
@@ -1,88 +1,86 @@
|
|
|
1
|
-
@layer dds-components
|
|
2
|
-
/* Marker class for shared focus treatment */
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
._focusable_bhneb_1:where(:focus, :focus-visible) {
|
|
6
|
-
border-radius: var(--radius-semantic-sm);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
._focusable_bhneb_1:focus {
|
|
10
|
-
outline-color: transparent;
|
|
11
|
-
}
|
|
1
|
+
@layer dds-base, dds-components;
|
|
12
2
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
outline: 2px solid transparent;
|
|
16
|
-
outline-offset: 2px;
|
|
17
|
-
box-shadow:
|
|
18
|
-
0 0 0 2px var(--color-semantic-utility-focus-soft),
|
|
19
|
-
0 0 0 4px var(--color-semantic-utility-focus-strong);
|
|
3
|
+
@layer dds-components {
|
|
4
|
+
@layer fallback, components;
|
|
20
5
|
}
|
|
21
6
|
|
|
22
|
-
@
|
|
23
|
-
.
|
|
24
|
-
|
|
25
|
-
|
|
7
|
+
@layer dds-components.fallback {
|
|
8
|
+
.dds-focusable:where(:focus, :focus-visible),
|
|
9
|
+
.dds-focusable-inset:where(:focus, :focus-visible) {
|
|
10
|
+
border-radius: var(--radius-semantic-sm);
|
|
26
11
|
}
|
|
27
12
|
}
|
|
28
13
|
|
|
29
|
-
.
|
|
30
|
-
|
|
31
|
-
|
|
14
|
+
@layer dds-components.components {
|
|
15
|
+
.dds-focusable {
|
|
16
|
+
/* Marker class for shared focus treatment */
|
|
17
|
+
}
|
|
32
18
|
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
}
|
|
19
|
+
.dds-focusable:focus {
|
|
20
|
+
outline-color: transparent;
|
|
21
|
+
}
|
|
36
22
|
|
|
37
|
-
.
|
|
38
|
-
|
|
39
|
-
|
|
23
|
+
.dds-focusable:focus-visible {
|
|
24
|
+
outline: 2px solid transparent;
|
|
25
|
+
outline-offset: 2px;
|
|
26
|
+
box-shadow:
|
|
27
|
+
0 0 0 2px var(--color-semantic-utility-focus-soft),
|
|
28
|
+
0 0 0 4px var(--color-semantic-utility-focus-strong);
|
|
29
|
+
}
|
|
40
30
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
31
|
+
@media (forced-colors: active) {
|
|
32
|
+
.dds-focusable:focus-visible {
|
|
33
|
+
outline-color: Highlight;
|
|
34
|
+
box-shadow: none;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
47
37
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
outline-color: Highlight;
|
|
51
|
-
box-shadow: none;
|
|
38
|
+
.dds-focusable-inset {
|
|
39
|
+
/* Marker class for inset focus treatment (ring stays inside the element boundary) */
|
|
52
40
|
}
|
|
53
|
-
}
|
|
54
41
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
box-shadow:
|
|
58
|
-
0 0 0 2px var(--color-semantic-utility-focus-strong),
|
|
59
|
-
0 0 0 4px var(--color-semantic-utility-focus-soft);
|
|
42
|
+
.dds-focusable-inset:focus {
|
|
43
|
+
outline-color: transparent;
|
|
60
44
|
}
|
|
61
45
|
|
|
62
|
-
.
|
|
46
|
+
.dds-focusable-inset:focus-visible {
|
|
47
|
+
outline: 2px solid transparent;
|
|
63
48
|
box-shadow:
|
|
64
|
-
inset 0 0 0 2px var(--color-semantic-utility-focus-
|
|
65
|
-
inset 0 0 0 4px var(--color-semantic-utility-focus-
|
|
49
|
+
inset 0 0 0 2px var(--color-semantic-utility-focus-strong),
|
|
50
|
+
inset 0 0 0 4px var(--color-semantic-utility-focus-soft);
|
|
66
51
|
}
|
|
67
52
|
|
|
68
53
|
@media (forced-colors: active) {
|
|
69
|
-
.
|
|
70
|
-
|
|
54
|
+
.dds-focusable-inset:focus-visible {
|
|
55
|
+
outline-color: Highlight;
|
|
71
56
|
box-shadow: none;
|
|
72
57
|
}
|
|
73
58
|
}
|
|
74
|
-
}
|
|
75
59
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
60
|
+
@scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
|
|
61
|
+
.dds-focusable:focus-visible {
|
|
62
|
+
box-shadow:
|
|
63
|
+
0 0 0 2px var(--color-semantic-utility-focus-strong),
|
|
64
|
+
0 0 0 4px var(--color-semantic-utility-focus-soft);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.dds-focusable-inset:focus-visible {
|
|
68
|
+
box-shadow:
|
|
69
|
+
inset 0 0 0 2px var(--color-semantic-utility-focus-soft),
|
|
70
|
+
inset 0 0 0 4px var(--color-semantic-utility-focus-strong);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (forced-colors: active) {
|
|
74
|
+
.dds-focusable:focus-visible,
|
|
75
|
+
.dds-focusable-inset:focus-visible {
|
|
76
|
+
box-shadow: none;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.dds-focus-clip-guard {
|
|
82
|
+
--focus-clip-guard-bleed-inline: var(--spacing-space-4);
|
|
83
|
+
margin-inline: calc(var(--focus-clip-guard-bleed-inline) * -1);
|
|
84
|
+
padding-inline: var(--focus-clip-guard-bleed-inline);
|
|
85
|
+
}
|
|
88
86
|
}
|