@node-core/ui-components 1.0.1-a459447336d99556960d6f9e1c997327b29e4974 → 1.0.1-ab0ba1dcb1d91392c44e91b1e74e9f565e460543
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/.lintstagedrc.json +5 -0
- package/.postcssrc.json +6 -0
- package/.storybook/constants.ts +28 -0
- package/.storybook/main.ts +38 -0
- package/.storybook/preview-head.html +20 -0
- package/.storybook/preview.tsx +32 -0
- package/.stylelintignore +1 -0
- package/.stylelintrc.mjs +56 -0
- package/__design__/colors.stories.tsx +82 -0
- package/__design__/effects.stories.tsx +7 -0
- package/__design__/font-family.stories.tsx +76 -0
- package/__design__/list.stories.tsx +27 -0
- package/__design__/node-logos.stories.tsx +61 -0
- package/__design__/platform-logos.stories.tsx +31 -0
- package/__design__/social-logos.stories.tsx +33 -0
- package/__design__/table.stories.tsx +56 -0
- package/__design__/text.stories.tsx +100 -0
- package/eslint.config.js +61 -0
- package/package.json +45 -6
- package/src/Common/AlertBox/index.module.css +83 -0
- package/src/Common/AlertBox/index.stories.tsx +96 -0
- package/src/Common/AlertBox/index.tsx +24 -0
- package/src/Common/AvatarGroup/Avatar/index.module.css +40 -0
- package/src/Common/AvatarGroup/Avatar/index.stories.tsx +22 -0
- package/src/Common/AvatarGroup/Avatar/index.tsx +67 -0
- package/src/Common/AvatarGroup/Overlay/index.module.css +31 -0
- package/src/Common/AvatarGroup/Overlay/index.stories.tsx +33 -0
- package/src/Common/AvatarGroup/Overlay/index.tsx +37 -0
- package/src/Common/AvatarGroup/__tests__/index.test.jsx +55 -0
- package/src/Common/AvatarGroup/index.module.css +21 -0
- package/src/Common/AvatarGroup/index.stories.tsx +56 -0
- package/src/Common/AvatarGroup/index.tsx +83 -0
- package/src/Common/Badge/index.module.css +38 -0
- package/src/Common/Badge/index.stories.tsx +38 -0
- package/src/Common/Badge/index.tsx +35 -0
- package/src/Common/BadgeGroup/index.module.css +77 -0
- package/src/Common/BadgeGroup/index.stories.tsx +35 -0
- package/src/Common/BadgeGroup/index.tsx +35 -0
- package/src/Common/Banner/index.module.css +42 -0
- package/src/Common/Banner/index.stories.tsx +29 -0
- package/src/Common/Banner/index.tsx +18 -0
- package/src/Common/BaseActiveLink/__tests__/index.test.jsx +52 -0
- package/src/Common/BaseActiveLink/index.tsx +34 -0
- package/src/Common/BaseButton/index.module.css +145 -0
- package/src/Common/BaseButton/index.stories.tsx +67 -0
- package/src/Common/BaseButton/index.tsx +59 -0
- package/src/Common/BaseCodeBox/index.module.css +78 -0
- package/src/Common/BaseCodeBox/index.stories.tsx +39 -0
- package/src/Common/BaseCodeBox/index.tsx +122 -0
- package/src/Common/BaseCrossLink/index.module.css +51 -0
- package/src/Common/BaseCrossLink/index.stories.tsx +38 -0
- package/src/Common/BaseCrossLink/index.tsx +46 -0
- package/src/Common/BaseLinkTabs/index.module.css +43 -0
- package/src/Common/BaseLinkTabs/index.stories.tsx +34 -0
- package/src/Common/BaseLinkTabs/index.tsx +53 -0
- package/src/Common/BasePagination/Ellipsis/index.module.css +10 -0
- package/src/Common/BasePagination/Ellipsis/index.stories.tsx +10 -0
- package/src/Common/BasePagination/Ellipsis/index.tsx +11 -0
- package/src/Common/BasePagination/PaginationListItem/__tests__/index.test.jsx +58 -0
- package/src/Common/BasePagination/PaginationListItem/index.module.css +27 -0
- package/src/Common/BasePagination/PaginationListItem/index.stories.tsx +40 -0
- package/src/Common/BasePagination/PaginationListItem/index.tsx +39 -0
- package/src/Common/BasePagination/PrevNextArrow.tsx +15 -0
- package/src/Common/BasePagination/__tests__/index.test.jsx +180 -0
- package/src/Common/BasePagination/index.module.css +39 -0
- package/src/Common/BasePagination/index.stories.tsx +67 -0
- package/src/Common/BasePagination/index.tsx +77 -0
- package/src/Common/BasePagination/useGetPageElements.tsx +132 -0
- package/src/Common/Blockquote/index.module.css +29 -0
- package/src/Common/Blockquote/index.stories.tsx +45 -0
- package/src/Common/Blockquote/index.tsx +11 -0
- package/src/Common/Breadcrumbs/BreadcrumbHomeLink/index.module.css +5 -0
- package/src/Common/Breadcrumbs/BreadcrumbHomeLink/index.tsx +30 -0
- package/src/Common/Breadcrumbs/BreadcrumbItem/index.module.css +41 -0
- package/src/Common/Breadcrumbs/BreadcrumbItem/index.tsx +42 -0
- package/src/Common/Breadcrumbs/BreadcrumbLink/index.module.css +22 -0
- package/src/Common/Breadcrumbs/BreadcrumbLink/index.tsx +37 -0
- package/src/Common/Breadcrumbs/BreadcrumbRoot/index.module.css +9 -0
- package/src/Common/Breadcrumbs/BreadcrumbRoot/index.tsx +20 -0
- package/src/Common/Breadcrumbs/BreadcrumbTruncatedItem/index.tsx +9 -0
- package/src/Common/Breadcrumbs/index.stories.tsx +94 -0
- package/src/Common/Breadcrumbs/index.tsx +81 -0
- package/src/Common/ChangeHistory/index.module.css +83 -0
- package/src/Common/ChangeHistory/index.stories.tsx +130 -0
- package/src/Common/ChangeHistory/index.tsx +67 -0
- package/src/Common/CodeTabs/index.module.css +56 -0
- package/src/Common/CodeTabs/index.stories.tsx +73 -0
- package/src/Common/CodeTabs/index.tsx +16 -0
- package/src/Common/DataTag/index.module.css +56 -0
- package/src/Common/DataTag/index.stories.tsx +40 -0
- package/src/Common/DataTag/index.tsx +39 -0
- package/src/Common/GlowingBackdrop/index.module.css +32 -0
- package/src/Common/GlowingBackdrop/index.stories.tsx +10 -0
- package/src/Common/GlowingBackdrop/index.tsx +13 -0
- package/src/Common/LanguageDropDown/index.module.css +53 -0
- package/src/Common/LanguageDropDown/index.stories.tsx +19 -0
- package/src/Common/LanguageDropDown/index.tsx +56 -0
- package/src/Common/Modal/index.module.css +79 -0
- package/src/Common/Modal/index.stories.tsx +34 -0
- package/src/Common/Modal/index.tsx +50 -0
- package/src/Common/NodejsLogo/index.module.css +6 -0
- package/src/Common/NodejsLogo/index.stories.tsx +14 -0
- package/src/Common/NodejsLogo/index.tsx +26 -0
- package/src/Common/Notification/index.module.css +20 -0
- package/src/Common/Notification/index.stories.tsx +36 -0
- package/src/Common/Notification/index.tsx +34 -0
- package/src/Common/Preview/index.module.css +79 -0
- package/src/Common/Preview/index.stories.tsx +44 -0
- package/src/Common/Preview/index.tsx +25 -0
- package/src/Common/Select/__tests__/index.test.jsx +67 -0
- package/src/Common/Select/index.module.css +161 -0
- package/src/Common/Select/index.stories.tsx +111 -0
- package/src/Common/Select/index.tsx +187 -0
- package/src/Common/Separator/index.module.css +16 -0
- package/src/Common/Separator/index.stories.tsx +32 -0
- package/src/Common/Separator/index.tsx +27 -0
- package/src/Common/Skeleton/index.module.css +30 -0
- package/src/Common/Skeleton/index.tsx +39 -0
- package/src/Common/Tabs/__tests__/index.test.jsx +52 -0
- package/src/Common/Tabs/index.module.css +54 -0
- package/src/Common/Tabs/index.stories.tsx +50 -0
- package/src/Common/Tabs/index.tsx +54 -0
- package/src/Common/ThemeToggle/__tests__/index.test.jsx +35 -0
- package/src/Common/ThemeToggle/index.module.css +15 -0
- package/src/Common/ThemeToggle/index.stories.tsx +10 -0
- package/src/Common/ThemeToggle/index.tsx +15 -0
- package/src/Common/Tooltip/index.module.css +43 -0
- package/src/Common/Tooltip/index.stories.tsx +73 -0
- package/src/Common/Tooltip/index.tsx +48 -0
- package/src/Containers/Article/index.module.css +70 -0
- package/src/Containers/Article/index.stories.tsx +39 -0
- package/src/Containers/Article/index.tsx +9 -0
- package/src/Containers/DocSideBar/index.tsx +0 -0
- package/src/Containers/Footer/index.module.css +46 -0
- package/src/Containers/Footer/index.stories.tsx +27 -0
- package/src/Containers/Footer/index.tsx +95 -0
- package/src/Containers/MetaBar/__tests__/index.test.jsx +63 -0
- package/src/Containers/MetaBar/index.module.css +91 -0
- package/src/Containers/MetaBar/index.stories.tsx +80 -0
- package/src/Containers/MetaBar/index.tsx +72 -0
- package/src/Containers/NavBar/NavItem/index.module.css +60 -0
- package/src/Containers/NavBar/NavItem/index.stories.tsx +38 -0
- package/src/Containers/NavBar/NavItem/index.tsx +44 -0
- package/src/Containers/NavBar/index.module.css +125 -0
- package/src/Containers/NavBar/index.stories.tsx +45 -0
- package/src/Containers/NavBar/index.tsx +94 -0
- package/src/Containers/Sidebar/ProgressionIcon/index.tsx +16 -0
- package/src/Containers/Sidebar/SidebarGroup/index.module.css +64 -0
- package/src/Containers/Sidebar/SidebarGroup/index.stories.tsx +36 -0
- package/src/Containers/Sidebar/SidebarGroup/index.tsx +49 -0
- package/src/Containers/Sidebar/SidebarItem/index.module.css +56 -0
- package/src/Containers/Sidebar/SidebarItem/index.stories.tsx +15 -0
- package/src/Containers/Sidebar/SidebarItem/index.tsx +43 -0
- package/src/Containers/Sidebar/index.module.css +30 -0
- package/src/Containers/Sidebar/index.stories.tsx +88 -0
- package/src/Containers/Sidebar/index.tsx +70 -0
- package/src/Icons/HexagonGrid.stories.tsx +10 -0
- package/src/Icons/HexagonGrid.tsx +1434 -0
- package/src/Icons/InstallationMethod/Choco.tsx +78 -0
- package/src/Icons/InstallationMethod/Devbox.tsx +21 -0
- package/src/Icons/InstallationMethod/Docker.tsx +20 -0
- package/src/Icons/InstallationMethod/FNM.tsx +132 -0
- package/src/Icons/InstallationMethod/Homebrew.tsx +69 -0
- package/src/Icons/InstallationMethod/N.tsx +32 -0
- package/src/Icons/InstallationMethod/NVM.tsx +63 -0
- package/src/Icons/InstallationMethod/Volta.tsx +34 -0
- package/{Icons/InstallationMethod/index.js → src/Icons/InstallationMethod/index.ts} +1 -0
- package/src/Icons/Logos/JsGreen.tsx +24 -0
- package/src/Icons/Logos/JsWhite.tsx +37 -0
- package/src/Icons/Logos/Nodejs.tsx +372 -0
- package/src/Icons/Logos/NodejsStackedBlack.tsx +98 -0
- package/src/Icons/Logos/NodejsStackedDark.tsx +124 -0
- package/src/Icons/Logos/NodejsStackedLight.tsx +123 -0
- package/src/Icons/Logos/NodejsStackedWhite.tsx +98 -0
- package/src/Icons/Logos/index.ts +17 -0
- package/src/Icons/OperatingSystem/AIX.tsx +46 -0
- package/src/Icons/OperatingSystem/Apple.tsx +23 -0
- package/src/Icons/OperatingSystem/Linux.tsx +969 -0
- package/src/Icons/OperatingSystem/Microsoft.tsx +19 -0
- package/{Icons/OperatingSystem/index.js → src/Icons/OperatingSystem/index.ts} +1 -0
- package/src/Icons/PackageManager/Npm.tsx +21 -0
- package/src/Icons/PackageManager/Pnpm.tsx +22 -0
- package/src/Icons/PackageManager/Yarn.tsx +22 -0
- package/{Icons/PackageManager/index.js → src/Icons/PackageManager/index.ts} +1 -0
- package/src/Icons/Social/Bluesky.tsx +19 -0
- package/src/Icons/Social/Discord.tsx +20 -0
- package/src/Icons/Social/GitHub.tsx +16 -0
- package/src/Icons/Social/LinkedIn.tsx +16 -0
- package/src/Icons/Social/Mastodon.tsx +36 -0
- package/src/Icons/Social/Slack.tsx +31 -0
- package/src/Icons/Social/X.tsx +16 -0
- package/{Icons/Social/index.js → src/Icons/Social/index.ts} +1 -0
- package/src/MDX/CodeTabs.tsx +47 -0
- package/src/global.d.ts +4 -0
- package/src/stylelint/__tests__/index.test.mjs +80 -0
- package/src/stylelint/one-utility-class-per-line.mjs +64 -0
- package/{stylelint → src/stylelint}/utils.mjs +25 -19
- package/src/styles/animations.css +47 -0
- package/src/styles/base.css +17 -0
- package/src/styles/effects.css +12 -0
- package/src/styles/index.css +38 -0
- package/src/styles/markdown.css +173 -0
- package/src/styles/theme.css +175 -0
- package/src/types.ts +25 -0
- package/tsconfig.json +20 -0
- package/turbo.json +31 -0
- package/Common/AlertBox/index.js +0 -5
- package/Common/AlertBox/index.module.css +0 -77
- package/Common/AvatarGroup/Avatar/index.js +0 -11
- package/Common/AvatarGroup/Avatar/index.module.css +0 -60
- package/Common/AvatarGroup/Overlay/index.js +0 -6
- package/Common/AvatarGroup/Overlay/index.module.css +0 -38
- package/Common/AvatarGroup/index.js +0 -21
- package/Common/AvatarGroup/index.module.css +0 -22
- package/Common/Badge/index.js +0 -7
- package/Common/Badge/index.module.css +0 -46
- package/Common/BadgeGroup/index.js +0 -6
- package/Common/BadgeGroup/index.module.css +0 -101
- package/Common/Banner/index.js +0 -4
- package/Common/Banner/index.module.css +0 -45
- package/Common/BaseActiveLink/index.js +0 -14
- package/Common/BaseButton/index.js +0 -10
- package/Common/BaseButton/index.module.css +0 -372
- package/Common/BaseCodeBox/index.js +0 -50
- package/Common/BaseCodeBox/index.module.css +0 -96
- package/Common/BaseCrossLink/index.js +0 -12
- package/Common/BaseCrossLink/index.module.css +0 -69
- package/Common/BaseLinkTabs/index.js +0 -5
- package/Common/BaseLinkTabs/index.module.css +0 -77
- package/Common/BasePagination/Ellipsis/index.js +0 -4
- package/Common/BasePagination/Ellipsis/index.module.css +0 -16
- package/Common/BasePagination/PaginationListItem/index.js +0 -6
- package/Common/BasePagination/PaginationListItem/index.module.css +0 -42
- package/Common/BasePagination/PrevNextArrow.js +0 -7
- package/Common/BasePagination/index.js +0 -10
- package/Common/BasePagination/index.module.css +0 -40
- package/Common/BasePagination/useGetPageElements.js +0 -77
- package/Common/Blockquote/index.js +0 -4
- package/Common/Blockquote/index.module.css +0 -50
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.js +0 -9
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.module.css +0 -5
- package/Common/Breadcrumbs/BreadcrumbItem/index.js +0 -6
- package/Common/Breadcrumbs/BreadcrumbItem/index.module.css +0 -52
- package/Common/Breadcrumbs/BreadcrumbLink/index.js +0 -5
- package/Common/Breadcrumbs/BreadcrumbLink/index.module.css +0 -32
- package/Common/Breadcrumbs/BreadcrumbRoot/index.js +0 -4
- package/Common/Breadcrumbs/BreadcrumbRoot/index.module.css +0 -10
- package/Common/Breadcrumbs/BreadcrumbTruncatedItem/index.js +0 -4
- package/Common/Breadcrumbs/index.js +0 -22
- package/Common/ChangeHistory/index.js +0 -9
- package/Common/ChangeHistory/index.module.css +0 -198
- package/Common/CodeTabs/index.js +0 -5
- package/Common/CodeTabs/index.module.css +0 -67
- package/Common/DataTag/index.js +0 -18
- package/Common/DataTag/index.module.css +0 -54
- package/Common/GlowingBackdrop/index.js +0 -5
- package/Common/GlowingBackdrop/index.module.css +0 -130
- package/Common/LanguageDropDown/index.js +0 -11
- package/Common/LanguageDropDown/index.module.css +0 -151
- package/Common/Modal/index.js +0 -10
- package/Common/Modal/index.module.css +0 -234
- package/Common/NodejsLogo/index.js +0 -7
- package/Common/NodejsLogo/index.module.css +0 -5
- package/Common/Notification/index.js +0 -6
- package/Common/Notification/index.module.css +0 -104
- package/Common/Preview/index.js +0 -7
- package/Common/Preview/index.module.css +0 -283
- package/Common/Select/index.js +0 -49
- package/Common/Select/index.module.css +0 -328
- package/Common/Separator/index.js +0 -7
- package/Common/Separator/index.module.css +0 -13
- package/Common/Skeleton/index.js +0 -18
- package/Common/Skeleton/index.module.css +0 -127
- package/Common/Tabs/index.js +0 -6
- package/Common/Tabs/index.module.css +0 -72
- package/Common/ThemeToggle/index.js +0 -7
- package/Common/ThemeToggle/index.module.css +0 -22
- package/Common/Tooltip/index.js +0 -8
- package/Common/Tooltip/index.module.css +0 -133
- package/Containers/Article/index.js +0 -4
- package/Containers/Article/index.module.css +0 -139
- package/Containers/DocSideBar/index.js +0 -1
- package/Containers/Footer/index.js +0 -22
- package/Containers/Footer/index.module.css +0 -61
- package/Containers/MetaBar/index.js +0 -12
- package/Containers/MetaBar/index.module.css +0 -123
- package/Containers/NavBar/NavItem/index.js +0 -7
- package/Containers/NavBar/NavItem/index.module.css +0 -74
- package/Containers/NavBar/index.js +0 -18
- package/Containers/NavBar/index.module.css +0 -205
- package/Containers/Sidebar/ProgressionIcon/index.js +0 -3
- package/Containers/Sidebar/SidebarGroup/index.js +0 -9
- package/Containers/Sidebar/SidebarGroup/index.module.css +0 -192
- package/Containers/Sidebar/SidebarItem/index.js +0 -11
- package/Containers/Sidebar/SidebarItem/index.module.css +0 -67
- package/Containers/Sidebar/index.js +0 -15
- package/Containers/Sidebar/index.module.css +0 -48
- package/Icons/HexagonGrid.js +0 -3
- package/Icons/InstallationMethod/Choco.js +0 -3
- package/Icons/InstallationMethod/Devbox.js +0 -3
- package/Icons/InstallationMethod/Docker.js +0 -3
- package/Icons/InstallationMethod/FNM.js +0 -3
- package/Icons/InstallationMethod/Homebrew.js +0 -3
- package/Icons/InstallationMethod/N.js +0 -5
- package/Icons/InstallationMethod/NVM.js +0 -3
- package/Icons/InstallationMethod/Volta.js +0 -3
- package/Icons/Logos/JsWhite.js +0 -3
- package/Icons/Logos/Nodejs.js +0 -12
- package/Icons/Logos/index.js +0 -3
- package/Icons/OperatingSystem/AIX.js +0 -3
- package/Icons/OperatingSystem/Apple.js +0 -3
- package/Icons/OperatingSystem/Linux.js +0 -3
- package/Icons/OperatingSystem/Microsoft.js +0 -3
- package/Icons/PackageManager/Npm.js +0 -3
- package/Icons/PackageManager/Pnpm.js +0 -3
- package/Icons/PackageManager/Yarn.js +0 -3
- package/Icons/Social/Bluesky.js +0 -3
- package/Icons/Social/Discord.js +0 -3
- package/Icons/Social/GitHub.js +0 -3
- package/Icons/Social/LinkedIn.js +0 -3
- package/Icons/Social/Mastodon.js +0 -3
- package/Icons/Social/Slack.js +0 -3
- package/Icons/Social/X.js +0 -3
- package/MDX/CodeTabs.js +0 -16
- package/stylelint/one-utility-class-per-line.mjs +0 -48
- package/styles/index.css +0 -1136
- package/types.js +0 -1
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.root {
|
|
3
|
-
width: 100%;
|
|
4
|
-
border-radius: var(--radius-sm, 0.25rem);
|
|
5
|
-
border-style: var(--tw-border-style);
|
|
6
|
-
border-width: 1px;
|
|
7
|
-
border-color: var(--color-neutral-900, #2c3437);
|
|
8
|
-
background-color: var(--color-neutral-950, #0d121c);
|
|
9
|
-
.content {
|
|
10
|
-
margin: calc(var(--spacing, 0.25rem)*0);
|
|
11
|
-
padding: calc(var(--spacing, 0.25rem)*4);
|
|
12
|
-
& > code {
|
|
13
|
-
display: grid;
|
|
14
|
-
overflow-x: auto;
|
|
15
|
-
background-color: transparent;
|
|
16
|
-
padding: calc(var(--spacing, 0.25rem)*0);
|
|
17
|
-
font-family: var(--font-ibm-plex-mono, var(--font-ibm-plex-mono));
|
|
18
|
-
font-size: var(--text-sm, 0.875rem);
|
|
19
|
-
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
20
|
-
--tw-leading: var(--leading-snug, 1.375);
|
|
21
|
-
line-height: var(--leading-snug, 1.375);
|
|
22
|
-
--tw-font-weight: var(--font-weight-regular, 400);
|
|
23
|
-
font-weight: var(--font-weight-regular, 400);
|
|
24
|
-
color: var(--color-neutral-400, #cbd4d9);
|
|
25
|
-
counter-reset: line;
|
|
26
|
-
scrollbar-width: thin;
|
|
27
|
-
& > [class='line'] {
|
|
28
|
-
position: relative;
|
|
29
|
-
min-width: calc(var(--spacing, 0.25rem)*0);
|
|
30
|
-
padding-left: calc(var(--spacing, 0.25rem)*8);
|
|
31
|
-
&:not(:empty:last-child)::before {
|
|
32
|
-
display: inline-block;
|
|
33
|
-
--tw-content: '';
|
|
34
|
-
content: var(--tw-content);
|
|
35
|
-
}
|
|
36
|
-
&:not(:empty:last-child)::after {
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: calc(var(--spacing, 0.25rem)*0);
|
|
39
|
-
left: calc(var(--spacing, 0.25rem)*0);
|
|
40
|
-
margin-right: calc(var(--spacing, 0.25rem)*4);
|
|
41
|
-
width: calc(var(--spacing, 0.25rem)*4.5);
|
|
42
|
-
text-align: right;
|
|
43
|
-
font-family: var(--font-ibm-plex-mono, var(--font-ibm-plex-mono));
|
|
44
|
-
color: var(--color-neutral-600, #929fa5);
|
|
45
|
-
content: counter(line);
|
|
46
|
-
counter-increment: line;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
& > .footer {
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: space-between;
|
|
55
|
-
border-top-style: var(--tw-border-style);
|
|
56
|
-
border-top-width: 1px;
|
|
57
|
-
border-top-color: var(--color-neutral-900, #2c3437);
|
|
58
|
-
padding-inline: calc(var(--spacing, 0.25rem)*4);
|
|
59
|
-
padding-block: calc(var(--spacing, 0.25rem)*3);
|
|
60
|
-
font-size: var(--text-sm, 0.875rem);
|
|
61
|
-
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
62
|
-
--tw-font-weight: var(--font-weight-medium, 500);
|
|
63
|
-
font-weight: var(--font-weight-medium, 500);
|
|
64
|
-
& > .language {
|
|
65
|
-
color: var(--color-neutral-400, #cbd4d9);
|
|
66
|
-
}
|
|
67
|
-
& > .action {
|
|
68
|
-
padding-inline: calc(var(--spacing, 0.25rem)*3);
|
|
69
|
-
padding-block: calc(var(--spacing, 0.25rem)*1.5);
|
|
70
|
-
--tw-font-weight: var(--font-weight-medium, 500);
|
|
71
|
-
font-weight: var(--font-weight-medium, 500);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
.icon {
|
|
76
|
-
width: calc(var(--spacing, 0.25rem)*4);
|
|
77
|
-
height: calc(var(--spacing, 0.25rem)*4);
|
|
78
|
-
}
|
|
79
|
-
@property --tw-border-style {
|
|
80
|
-
syntax: "*";
|
|
81
|
-
inherits: false;
|
|
82
|
-
initial-value: solid;
|
|
83
|
-
}
|
|
84
|
-
@property --tw-leading {
|
|
85
|
-
syntax: "*";
|
|
86
|
-
inherits: false;
|
|
87
|
-
}
|
|
88
|
-
@property --tw-font-weight {
|
|
89
|
-
syntax: "*";
|
|
90
|
-
inherits: false;
|
|
91
|
-
}
|
|
92
|
-
@property --tw-content {
|
|
93
|
-
syntax: "*";
|
|
94
|
-
inherits: false;
|
|
95
|
-
initial-value: "";
|
|
96
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import PrevNextArrow from '#ui/Common/BasePagination/PrevNextArrow';
|
|
4
|
-
import styles from './index.module.css';
|
|
5
|
-
const BaseCrossLink = ({ type, label, text, link, as: Component = 'a', }) => {
|
|
6
|
-
return (_jsxs(Component, { className: styles.crossLink, href: link, children: [_jsxs("span", { className: classNames(styles.header, {
|
|
7
|
-
[styles.reverse]: type === 'next',
|
|
8
|
-
}), children: [_jsx(PrevNextArrow, { className: styles.icon, type: type }), label] }), _jsx("span", { className: classNames(styles.content, {
|
|
9
|
-
[styles.reverse]: type === 'next',
|
|
10
|
-
}), children: text })] }));
|
|
11
|
-
};
|
|
12
|
-
export default BaseCrossLink;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.crossLink {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
align-items: flex-start;
|
|
6
|
-
gap: calc(var(--spacing, 0.25rem)*2);
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
text-overflow: ellipsis;
|
|
9
|
-
white-space: nowrap;
|
|
10
|
-
border-radius: var(--radius-sm, 0.25rem);
|
|
11
|
-
border-style: var(--tw-border-style);
|
|
12
|
-
border-width: 1px;
|
|
13
|
-
--tw-border-style: solid;
|
|
14
|
-
border-style: solid;
|
|
15
|
-
border-color: var(--color-neutral-300, #d9e1e4);
|
|
16
|
-
background-color: var(--color-white, #fff);
|
|
17
|
-
padding: calc(var(--spacing, 0.25rem)*3);
|
|
18
|
-
text-decoration-line: none;
|
|
19
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
20
|
-
border-color: var(--color-neutral-900, #2c3437);
|
|
21
|
-
}
|
|
22
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
23
|
-
background-color: var(--color-neutral-950, #0d121c);
|
|
24
|
-
}
|
|
25
|
-
.header {
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
gap: calc(var(--spacing, 0.25rem)*2);
|
|
29
|
-
align-self: stretch;
|
|
30
|
-
font-size: var(--text-xs, 0.75rem);
|
|
31
|
-
line-height: var(--tw-leading, var(--text-xs--line-height, 1.33333));
|
|
32
|
-
color: var(--color-neutral-800, #556066);
|
|
33
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
34
|
-
color: var(--color-neutral-100, #f6f7f9);
|
|
35
|
-
}
|
|
36
|
-
&.reverse {
|
|
37
|
-
flex-direction: row-reverse;
|
|
38
|
-
justify-content: flex-start;
|
|
39
|
-
}
|
|
40
|
-
.icon {
|
|
41
|
-
width: calc(var(--spacing, 0.25rem)*4);
|
|
42
|
-
height: calc(var(--spacing, 0.25rem)*4);
|
|
43
|
-
color: var(--color-neutral-600, #929fa5);
|
|
44
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
45
|
-
color: var(--color-neutral-400, #cbd4d9);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
.content {
|
|
50
|
-
align-self: stretch;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
text-overflow: ellipsis;
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
font-size: var(--text-sm, 0.875rem);
|
|
55
|
-
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
56
|
-
color: var(--color-neutral-900, #2c3437);
|
|
57
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
58
|
-
color: var(--color-white, #fff);
|
|
59
|
-
}
|
|
60
|
-
&.reverse {
|
|
61
|
-
text-align: right;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
@property --tw-border-style {
|
|
66
|
-
syntax: "*";
|
|
67
|
-
inherits: false;
|
|
68
|
-
initial-value: solid;
|
|
69
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import Select from '#ui/Common/Select';
|
|
3
|
-
import styles from './index.module.css';
|
|
4
|
-
const BaseLinkTabs = ({ tabs, label, activeTab, children, as: Component = 'a', onSelect, }) => (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.tabsList, children: tabs.map(tab => (_jsx(Component, { href: tab.link, className: styles.tabsTrigger, "data-state": tab.key === activeTab ? 'active' : 'inactive', children: tab.label }, tab.key))) }), _jsx("div", { className: styles.tabsSelect, children: _jsx(Select, { label: label, defaultValue: tabs.find(tab => tab.key === activeTab)?.link, values: tabs.map(tab => ({ label: tab.label, value: tab.link })), onChange: onSelect }) }), children] }));
|
|
5
|
-
export default BaseLinkTabs;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.tabsList {
|
|
3
|
-
margin-top: calc(var(--spacing, 0.25rem)*10);
|
|
4
|
-
margin-bottom: calc(var(--spacing, 0.25rem)*6);
|
|
5
|
-
display: flex;
|
|
6
|
-
gap: calc(var(--spacing, 0.25rem)*2);
|
|
7
|
-
border-bottom-style: var(--tw-border-style);
|
|
8
|
-
border-bottom-width: 1px;
|
|
9
|
-
border-bottom-color: var(--color-neutral-200, #e9edf0);
|
|
10
|
-
font-family: var(--font-open-sans, var(--font-open-sans));
|
|
11
|
-
@media (width < 670px) {
|
|
12
|
-
display: none;
|
|
13
|
-
}
|
|
14
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
15
|
-
border-bottom-color: var(--color-neutral-800, #556066);
|
|
16
|
-
}
|
|
17
|
-
.tabsTrigger {
|
|
18
|
-
border-bottom-style: var(--tw-border-style);
|
|
19
|
-
border-bottom-width: 2px;
|
|
20
|
-
border-bottom-color: transparent;
|
|
21
|
-
padding-inline: calc(var(--spacing, 0.25rem)*1);
|
|
22
|
-
padding-bottom: 11px;
|
|
23
|
-
font-size: var(--text-sm, 0.875rem);
|
|
24
|
-
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
25
|
-
--tw-font-weight: var(--font-weight-semibold, 600);
|
|
26
|
-
font-weight: var(--font-weight-semibold, 600);
|
|
27
|
-
color: var(--color-neutral-800, #556066);
|
|
28
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
29
|
-
color: var(--color-neutral-200, #e9edf0);
|
|
30
|
-
}
|
|
31
|
-
&:not([data-state='active']):hover {
|
|
32
|
-
border-bottom-color: var(--color-neutral-900, #2c3437);
|
|
33
|
-
color: var(--color-neutral-900, #2c3437);
|
|
34
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
35
|
-
border-bottom-color: var(--color-neutral-300, #d9e1e4);
|
|
36
|
-
}
|
|
37
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
38
|
-
color: var(--color-neutral-300, #d9e1e4);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
&[data-state='active'] {
|
|
42
|
-
border-bottom-color: var(--color-green-600, #417e38);
|
|
43
|
-
color: var(--color-green-600, #417e38);
|
|
44
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
45
|
-
border-bottom-color: var(--color-green-400, #84ba64);
|
|
46
|
-
}
|
|
47
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
48
|
-
color: var(--color-green-400, #84ba64);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
.tabsSelect {
|
|
54
|
-
@media (width >= 40rem) {
|
|
55
|
-
visibility: visible;
|
|
56
|
-
}
|
|
57
|
-
@media (width >= 48rem) {
|
|
58
|
-
display: none;
|
|
59
|
-
}
|
|
60
|
-
> span {
|
|
61
|
-
margin-block: calc(var(--spacing, 0.25rem)*6);
|
|
62
|
-
display: none;
|
|
63
|
-
width: 100%;
|
|
64
|
-
@media (width < 670px) {
|
|
65
|
-
display: flex;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
@property --tw-border-style {
|
|
70
|
-
syntax: "*";
|
|
71
|
-
inherits: false;
|
|
72
|
-
initial-value: solid;
|
|
73
|
-
}
|
|
74
|
-
@property --tw-font-weight {
|
|
75
|
-
syntax: "*";
|
|
76
|
-
inherits: false;
|
|
77
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.ellipsis {
|
|
3
|
-
width: calc(var(--spacing, 0.25rem)*10);
|
|
4
|
-
padding-inline: calc(var(--spacing, 0.25rem)*3);
|
|
5
|
-
padding-block: calc(var(--spacing, 0.25rem)*2.5);
|
|
6
|
-
--tw-leading: 1;
|
|
7
|
-
line-height: 1;
|
|
8
|
-
color: var(--color-neutral-800, #556066);
|
|
9
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10
|
-
color: var(--color-neutral-200, #e9edf0);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
@property --tw-leading {
|
|
14
|
-
syntax: "*";
|
|
15
|
-
inherits: false;
|
|
16
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import styles from './index.module.css';
|
|
3
|
-
const PaginationListItem = ({ url, pageNumber, currentPage, totalPages, as: Component = 'a', label, }) => {
|
|
4
|
-
return (_jsx("li", { "aria-setsize": totalPages, "aria-posinset": pageNumber, children: _jsx(Component, { href: url, "aria-label": label, className: styles.listItem, ...(pageNumber === currentPage && { 'aria-current': 'page' }), children: _jsx("span", { children: pageNumber }) }) }, pageNumber));
|
|
5
|
-
};
|
|
6
|
-
export default PaginationListItem;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.listItem,
|
|
3
|
-
.listItem:link,
|
|
4
|
-
.listItem:active {
|
|
5
|
-
display: flex;
|
|
6
|
-
width: calc(var(--spacing, 0.25rem)*10);
|
|
7
|
-
height: calc(var(--spacing, 0.25rem)*10);
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
border-radius: var(--radius-sm, 0.25rem);
|
|
12
|
-
padding-inline: calc(var(--spacing, 0.25rem)*3);
|
|
13
|
-
padding-block: calc(var(--spacing, 0.25rem)*2.5);
|
|
14
|
-
color: var(--color-neutral-800, #556066);
|
|
15
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
16
|
-
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
17
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
|
|
18
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
|
|
19
|
-
}
|
|
20
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
21
|
-
color: var(--color-neutral-200, #e9edf0);
|
|
22
|
-
}
|
|
23
|
-
&[aria-current="page"] {
|
|
24
|
-
cursor: default;
|
|
25
|
-
}
|
|
26
|
-
&[aria-current="page"] {
|
|
27
|
-
background-color: var(--color-green-600, #417e38);
|
|
28
|
-
}
|
|
29
|
-
&[aria-current="page"] {
|
|
30
|
-
color: var(--color-white, #fff);
|
|
31
|
-
}
|
|
32
|
-
&:hover:not([aria-current='page']) {
|
|
33
|
-
background-color: var(--color-neutral-100, #f6f7f9);
|
|
34
|
-
color: var(--color-neutral-800, #556066);
|
|
35
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
36
|
-
background-color: var(--color-neutral-900, #2c3437);
|
|
37
|
-
}
|
|
38
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
39
|
-
color: var(--color-neutral-200, #e9edf0);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/24/solid';
|
|
3
|
-
const PrevNextArrow = ({ type, ...extra }) => {
|
|
4
|
-
const ChevronComponent = type === 'previous' ? ChevronLeftIcon : ChevronRightIcon;
|
|
5
|
-
return _jsx(ChevronComponent, { ...extra });
|
|
6
|
-
};
|
|
7
|
-
export default PrevNextArrow;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ArrowRightIcon, ArrowLeftIcon } from '@heroicons/react/20/solid';
|
|
3
|
-
import Button from '#ui/Common/BaseButton';
|
|
4
|
-
import { useGetPageElements } from '#ui/Common/BasePagination/useGetPageElements';
|
|
5
|
-
import styles from './index.module.css';
|
|
6
|
-
const BasePagination = ({ currentPage, pages, as = 'a', currentPageSiblingsCount = 1, labels, getPageLabel, }) => {
|
|
7
|
-
const parsedPages = useGetPageElements(currentPage, pages, currentPageSiblingsCount, as, getPageLabel);
|
|
8
|
-
return (_jsxs("nav", { "aria-label": labels.aria, className: styles.pagination, children: [_jsxs(Button, { as: as, "aria-label": labels.prevAria, disabled: currentPage === 1, kind: "secondary", className: styles.previousButton, href: pages[currentPage - 2]?.url, children: [_jsx(ArrowLeftIcon, { className: styles.arrowIcon }), _jsx("span", { children: labels.prev })] }), _jsx("ol", { className: styles.list, children: parsedPages }), _jsxs(Button, { as: as, "aria-label": labels.nextAria, disabled: currentPage === pages.length, kind: "secondary", className: styles.nextButton, href: pages[currentPage]?.url, children: [_jsx("span", { children: labels.next }), _jsx(ArrowRightIcon, { className: styles.arrowIcon })] })] }));
|
|
9
|
-
};
|
|
10
|
-
export default BasePagination;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.pagination {
|
|
3
|
-
display: grid;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
row-gap: calc(var(--spacing, 0.25rem)*5);
|
|
7
|
-
grid-template-areas: 'pages pages pages''prev . next';
|
|
8
|
-
@media (width >= 48rem) {
|
|
9
|
-
row-gap: calc(var(--spacing, 0.25rem)*0);
|
|
10
|
-
}
|
|
11
|
-
@media (width >= 48rem) {
|
|
12
|
-
grid-template-areas: 'prev pages next';
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
.previousButton,
|
|
16
|
-
.nextButton {
|
|
17
|
-
font-size: var(--text-sm, 0.875rem);
|
|
18
|
-
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
19
|
-
}
|
|
20
|
-
.previousButton {
|
|
21
|
-
grid-area: prev;
|
|
22
|
-
}
|
|
23
|
-
.nextButton {
|
|
24
|
-
grid-area: next;
|
|
25
|
-
}
|
|
26
|
-
.arrowIcon {
|
|
27
|
-
height: calc(var(--spacing, 0.25rem)*5);
|
|
28
|
-
flex-shrink: 0;
|
|
29
|
-
color: var(--color-neutral-600, #929fa5);
|
|
30
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
31
|
-
color: var(--color-neutral-400, #cbd4d9);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
.list {
|
|
35
|
-
display: flex;
|
|
36
|
-
list-style-type: none;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
gap: calc(var(--spacing, 0.25rem)*1);
|
|
39
|
-
grid-area: pages;
|
|
40
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import Ellipsis from '#ui/Common/BasePagination/Ellipsis';
|
|
3
|
-
import PaginationListItem from '#ui/Common/BasePagination/PaginationListItem';
|
|
4
|
-
const parsePages = (pages, currentPage, totalPages, as, getLabel) => pages.map(({ url }, index) => ({
|
|
5
|
-
url: url,
|
|
6
|
-
pageNumber: index + 1,
|
|
7
|
-
currentPage: currentPage,
|
|
8
|
-
totalPages: totalPages,
|
|
9
|
-
label: getLabel(index + 1),
|
|
10
|
-
as: as,
|
|
11
|
-
}));
|
|
12
|
-
const createPaginationListItems = (parsedPages) => parsedPages.map(page => _jsx(PaginationListItem, { ...page }, page.url));
|
|
13
|
-
// The minimum amount of elements are first page, current page, and last page
|
|
14
|
-
const MINIMUM_AMOUNT_OF_ELEMENTS = 3;
|
|
15
|
-
// Not more than two ellipses will be shown at the same time
|
|
16
|
-
const MAXIMUM_AMOUNT_OF_ELLIPSES = 2;
|
|
17
|
-
// The logic of this custom hook has taken the internal logic of
|
|
18
|
-
// React MUI's Pagination component as reference. More info here:
|
|
19
|
-
// https://github.com/mui/material-ui/blob/master/packages/mui-material/src/usePagination/usePagination.js
|
|
20
|
-
export const useGetPageElements = (currentPage, pages, currentPageSiblingsCount, as, getLabel) => {
|
|
21
|
-
const totalPages = pages.length;
|
|
22
|
-
const parsedPages = parsePages(pages, currentPage, totalPages, as, getLabel);
|
|
23
|
-
const currentPageIndex = currentPage - 1;
|
|
24
|
-
// We multiply it by two (2) as siblings are located on both left and right sides
|
|
25
|
-
// of the current page
|
|
26
|
-
const totalSiblingsCount = 2 * currentPageSiblingsCount;
|
|
27
|
-
const visiblePages = totalSiblingsCount +
|
|
28
|
-
MINIMUM_AMOUNT_OF_ELEMENTS +
|
|
29
|
-
MAXIMUM_AMOUNT_OF_ELLIPSES;
|
|
30
|
-
// When there are more pages than the visible pages to be shown
|
|
31
|
-
// we do not need to perform any calculations
|
|
32
|
-
if (totalPages <= visiblePages) {
|
|
33
|
-
return createPaginationListItems(parsedPages);
|
|
34
|
-
}
|
|
35
|
-
// The index of the far-left sibling of the current page
|
|
36
|
-
const leftSiblingsFirstIndex = Math.max(currentPageIndex - currentPageSiblingsCount, 1);
|
|
37
|
-
// The index of the far-right sibling of the current page
|
|
38
|
-
const rightSiblingsLastIndex = Math.min(currentPageIndex + currentPageSiblingsCount + 1, totalPages);
|
|
39
|
-
const firstIndex = 0;
|
|
40
|
-
const lastIndex = totalPages - 1;
|
|
41
|
-
// If there are at least two (2) elements between the far-left sibling of
|
|
42
|
-
// the current page, and the first page, we should show left ellipsis
|
|
43
|
-
// between them
|
|
44
|
-
const hasLeftEllipsis = leftSiblingsFirstIndex > firstIndex + 2;
|
|
45
|
-
// If there are at least two (2) elements between the far-right sibling of
|
|
46
|
-
// the current page, and the last page, we should show right ellipsis
|
|
47
|
-
// between them
|
|
48
|
-
const hasRightEllipsis = rightSiblingsLastIndex < lastIndex - 1;
|
|
49
|
-
if (!hasLeftEllipsis && hasRightEllipsis) {
|
|
50
|
-
const leftPagesLastIndex = MINIMUM_AMOUNT_OF_ELEMENTS + totalSiblingsCount;
|
|
51
|
-
const leftPages = parsedPages.slice(firstIndex, leftPagesLastIndex);
|
|
52
|
-
return [
|
|
53
|
-
...createPaginationListItems(leftPages),
|
|
54
|
-
_jsx(Ellipsis, {}, "ellipsis"),
|
|
55
|
-
...createPaginationListItems(parsedPages.slice(lastIndex)),
|
|
56
|
-
];
|
|
57
|
-
}
|
|
58
|
-
if (hasLeftEllipsis && !hasRightEllipsis) {
|
|
59
|
-
const rightPagesFirstIndex = MINIMUM_AMOUNT_OF_ELEMENTS + totalSiblingsCount;
|
|
60
|
-
const rightPages = parsedPages.slice(totalPages - rightPagesFirstIndex);
|
|
61
|
-
return [
|
|
62
|
-
...createPaginationListItems(parsedPages.slice(firstIndex, firstIndex + 1)),
|
|
63
|
-
_jsx(Ellipsis, {}, "ellipsis"),
|
|
64
|
-
...createPaginationListItems(rightPages),
|
|
65
|
-
];
|
|
66
|
-
}
|
|
67
|
-
if (hasLeftEllipsis && hasRightEllipsis) {
|
|
68
|
-
const middlePages = parsedPages.slice(leftSiblingsFirstIndex, rightSiblingsLastIndex);
|
|
69
|
-
return [
|
|
70
|
-
...createPaginationListItems(parsedPages.slice(firstIndex, firstIndex + 1)),
|
|
71
|
-
_jsx(Ellipsis, {}, "ellipsis-1"),
|
|
72
|
-
...createPaginationListItems(middlePages),
|
|
73
|
-
_jsx(Ellipsis, {}, "ellipsis-2"),
|
|
74
|
-
...createPaginationListItems(parsedPages.slice(lastIndex)),
|
|
75
|
-
];
|
|
76
|
-
}
|
|
77
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.wrapper {
|
|
3
|
-
display: flex;
|
|
4
|
-
max-width: var(--container-2xl, 42rem);
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
align-items: flex-start;
|
|
7
|
-
gap: calc(var(--spacing, 0.25rem)*4);
|
|
8
|
-
align-self: stretch;
|
|
9
|
-
border-left-style: var(--tw-border-style);
|
|
10
|
-
border-left-width: 2px;
|
|
11
|
-
border-color: var(--color-green-600, #417e38);
|
|
12
|
-
padding-block: calc(var(--spacing, 0.25rem)*2);
|
|
13
|
-
padding-left: calc(var(--spacing, 0.25rem)*5);
|
|
14
|
-
font-size: var(--text-lg, 1.125rem);
|
|
15
|
-
line-height: var(--tw-leading, var(--text-lg--line-height, 1.55556));
|
|
16
|
-
--tw-font-weight: var(--font-weight-semibold, 600);
|
|
17
|
-
font-weight: var(--font-weight-semibold, 600);
|
|
18
|
-
color: var(--color-neutral-900, #2c3437);
|
|
19
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
20
|
-
border-color: var(--color-green-400, #84ba64);
|
|
21
|
-
}
|
|
22
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
23
|
-
color: var(--color-white, #fff);
|
|
24
|
-
}
|
|
25
|
-
& cite {
|
|
26
|
-
font-size: var(--text-base, 1rem);
|
|
27
|
-
line-height: var(--tw-leading, var(--text-base--line-height, 1.5));
|
|
28
|
-
--tw-font-weight: var(--font-weight-regular, 400);
|
|
29
|
-
font-weight: var(--font-weight-regular, 400);
|
|
30
|
-
font-style: normal;
|
|
31
|
-
&::before {
|
|
32
|
-
--tw-content: '— ';
|
|
33
|
-
content: var(--tw-content);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
@property --tw-border-style {
|
|
38
|
-
syntax: "*";
|
|
39
|
-
inherits: false;
|
|
40
|
-
initial-value: solid;
|
|
41
|
-
}
|
|
42
|
-
@property --tw-font-weight {
|
|
43
|
-
syntax: "*";
|
|
44
|
-
inherits: false;
|
|
45
|
-
}
|
|
46
|
-
@property --tw-content {
|
|
47
|
-
syntax: "*";
|
|
48
|
-
inherits: false;
|
|
49
|
-
initial-value: "";
|
|
50
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import HomeIcon from '@heroicons/react/24/outline/HomeIcon';
|
|
3
|
-
import BreadcrumbLink from '#ui/Common/Breadcrumbs/BreadcrumbLink';
|
|
4
|
-
import styles from './index.module.css';
|
|
5
|
-
const BreadcrumbHomeLink = ({ href = '/', ...props }) => {
|
|
6
|
-
const ariaLabel = props['aria-label'];
|
|
7
|
-
return (_jsx(BreadcrumbLink, { href: href, ...props, children: _jsx(HomeIcon, { title: ariaLabel, "aria-label": ariaLabel, className: styles.icon }) }));
|
|
8
|
-
};
|
|
9
|
-
export default BreadcrumbHomeLink;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import ChevronRightIcon from '@heroicons/react/24/outline/ChevronRightIcon';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import styles from './index.module.css';
|
|
5
|
-
const BreadcrumbItem = ({ disableMicrodata, children, hidden = false, hideSeparator = false, position, ...props }) => (_jsxs("li", { ...props, itemProp: !disableMicrodata ? 'itemListElement' : undefined, itemScope: !disableMicrodata ? true : undefined, itemType: !disableMicrodata ? 'https://schema.org/ListItem' : undefined, className: classNames(styles.item, { [styles.visuallyHidden]: hidden }, props.className), "aria-hidden": hidden ? 'true' : undefined, children: [children, position && _jsx("meta", { itemProp: "position", content: `${position}` }), !hideSeparator && (_jsx(ChevronRightIcon, { "aria-hidden": "true", className: styles.separator }))] }));
|
|
6
|
-
export default BreadcrumbItem;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.item {
|
|
3
|
-
display: flex;
|
|
4
|
-
max-width: fit-content;
|
|
5
|
-
align-items: center;
|
|
6
|
-
gap: calc(var(--spacing, 0.25rem)*5);
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
text-overflow: ellipsis;
|
|
9
|
-
white-space: nowrap;
|
|
10
|
-
font-size: var(--text-sm, 0.875rem);
|
|
11
|
-
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
12
|
-
--tw-font-weight: var(--font-weight-medium, 500);
|
|
13
|
-
font-weight: var(--font-weight-medium, 500);
|
|
14
|
-
&:last-child {
|
|
15
|
-
width: 100%;
|
|
16
|
-
}
|
|
17
|
-
a {
|
|
18
|
-
flex-shrink: 1;
|
|
19
|
-
flex-grow: 1;
|
|
20
|
-
}
|
|
21
|
-
&,
|
|
22
|
-
> a,
|
|
23
|
-
> a:hover {
|
|
24
|
-
color: var(--color-neutral-800, #556066);
|
|
25
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
26
|
-
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
27
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
|
|
28
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
|
|
29
|
-
}
|
|
30
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
31
|
-
color: var(--color-neutral-200, #e9edf0);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
&.visuallyHidden {
|
|
35
|
-
display: none;
|
|
36
|
-
}
|
|
37
|
-
.separator {
|
|
38
|
-
width: calc(var(--spacing, 0.25rem)*4);
|
|
39
|
-
height: calc(var(--spacing, 0.25rem)*4);
|
|
40
|
-
max-width: fit-content;
|
|
41
|
-
flex-shrink: 0;
|
|
42
|
-
flex-grow: 1;
|
|
43
|
-
color: var(--color-neutral-600, #929fa5);
|
|
44
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
45
|
-
color: var(--color-neutral-400, #cbd4d9);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
@property --tw-font-weight {
|
|
50
|
-
syntax: "*";
|
|
51
|
-
inherits: false;
|
|
52
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import styles from './index.module.css';
|
|
4
|
-
const BreadcrumbLink = ({ href, active, as: Component = 'a', ...props }) => (_jsx(Component, { itemScope: true, itemType: "http://schema.org/Thing", itemProp: "item", itemID: href?.toString(), href: href, className: classNames(styles.link, { [styles.active]: active }, props.className), "aria-current": active ? 'page' : undefined, ...props, children: _jsx("span", { itemProp: "name", children: props.children }) }));
|
|
5
|
-
export default BreadcrumbLink;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.link {
|
|
3
|
-
max-width: fit-content;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
text-overflow: ellipsis;
|
|
6
|
-
white-space: nowrap;
|
|
7
|
-
&.active {
|
|
8
|
-
border-radius: 0.25rem;
|
|
9
|
-
background-color: var(--color-green-600, #417e38);
|
|
10
|
-
padding-inline: calc(var(--spacing, 0.25rem)*2);
|
|
11
|
-
padding-block: calc(var(--spacing, 0.25rem)*1);
|
|
12
|
-
--tw-font-weight: var(--font-weight-semibold, 600);
|
|
13
|
-
font-weight: var(--font-weight-semibold, 600);
|
|
14
|
-
color: var(--color-white, #fff);
|
|
15
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
16
|
-
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
17
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
|
|
18
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
|
|
19
|
-
}
|
|
20
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
21
|
-
color: var(--color-white, #fff);
|
|
22
|
-
}
|
|
23
|
-
&:hover {
|
|
24
|
-
background-color: var(--color-green-700, #2c682c);
|
|
25
|
-
color: var(--color-white, #fff);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
@property --tw-font-weight {
|
|
30
|
-
syntax: "*";
|
|
31
|
-
inherits: false;
|
|
32
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import styles from './index.module.css';
|
|
3
|
-
const BreadcrumbRoot = ({ children, ...props }) => (_jsx("nav", { "aria-label": "breadcrumb", ...props, children: _jsx("ol", { itemScope: true, itemType: "https://schema.org/BreadcrumbList", className: styles.list, children: children }) }));
|
|
4
|
-
export default BreadcrumbRoot;
|