@node-core/ui-components 1.0.1-df203d0fe21ee5d80d258c60dc821e8ac0601ce4 → 1.0.1-e1f87bde264af01e260a8efa4fab1749a2c6bc29
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/Common/AlertBox/index.js +5 -0
- package/Common/AlertBox/index.module.css +47 -46
- package/Common/AvatarGroup/Avatar/index.js +11 -0
- package/Common/AvatarGroup/Avatar/index.module.css +50 -30
- package/Common/AvatarGroup/Overlay/index.js +6 -0
- package/Common/AvatarGroup/Overlay/index.module.css +28 -21
- package/Common/AvatarGroup/index.js +21 -0
- package/Common/AvatarGroup/index.module.css +12 -15
- package/Common/Badge/index.js +7 -0
- package/Common/Badge/index.module.css +34 -26
- package/Common/BadgeGroup/index.js +6 -0
- package/Common/BadgeGroup/index.module.css +75 -51
- package/Common/Banner/index.js +4 -0
- package/Common/Banner/index.module.css +30 -27
- package/Common/BaseActiveLink/index.js +14 -0
- package/Common/BaseButton/index.js +10 -0
- package/Common/BaseButton/index.module.css +332 -102
- package/Common/BaseCodeBox/index.js +50 -0
- package/Common/BaseCodeBox/index.module.css +76 -64
- package/Common/BaseCrossLink/index.js +12 -0
- package/Common/BaseCrossLink/index.module.css +57 -39
- package/Common/BaseLinkTabs/index.js +5 -0
- package/Common/BaseLinkTabs/index.module.css +67 -33
- package/Common/BasePagination/Ellipsis/index.js +4 -0
- package/Common/BasePagination/Ellipsis/index.module.css +14 -8
- package/Common/BasePagination/PaginationListItem/index.js +6 -0
- package/Common/BasePagination/PaginationListItem/index.module.css +36 -21
- package/Common/BasePagination/PrevNextArrow.js +7 -0
- package/Common/BasePagination/index.js +10 -0
- package/Common/BasePagination/index.module.css +27 -26
- package/Common/BasePagination/useGetPageElements.js +77 -0
- package/Common/Blockquote/index.js +4 -0
- package/Common/Blockquote/index.module.css +44 -23
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.js +9 -0
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.module.css +3 -3
- package/Common/Breadcrumbs/BreadcrumbItem/index.js +6 -0
- package/Common/Breadcrumbs/BreadcrumbItem/index.module.css +38 -27
- package/Common/Breadcrumbs/BreadcrumbLink/index.js +5 -0
- package/Common/Breadcrumbs/BreadcrumbLink/index.module.css +26 -16
- package/Common/Breadcrumbs/BreadcrumbRoot/index.js +4 -0
- package/Common/Breadcrumbs/BreadcrumbRoot/index.module.css +8 -7
- package/Common/Breadcrumbs/BreadcrumbTruncatedItem/index.js +4 -0
- package/Common/Breadcrumbs/index.js +22 -0
- package/Common/ChangeHistory/index.js +9 -0
- package/Common/ChangeHistory/index.module.css +198 -0
- package/Common/CodeTabs/index.js +5 -0
- package/Common/CodeTabs/index.module.css +47 -36
- package/Common/DataTag/index.js +18 -0
- package/Common/DataTag/index.module.css +54 -0
- package/Common/GlowingBackdrop/index.js +5 -0
- package/Common/GlowingBackdrop/index.module.css +126 -28
- package/Common/LanguageDropDown/index.js +11 -0
- package/Common/LanguageDropDown/index.module.css +140 -42
- package/Common/Modal/index.js +10 -0
- package/Common/Modal/index.module.css +217 -62
- package/Common/NodejsLogo/index.js +7 -0
- package/Common/NodejsLogo/index.module.css +3 -4
- package/Common/Notification/index.js +6 -0
- package/Common/Notification/index.module.css +101 -17
- package/Common/Preview/index.js +7 -0
- package/Common/Preview/index.module.css +269 -65
- package/Common/Select/index.js +46 -0
- package/Common/Select/index.module.css +294 -127
- package/Common/Separator/index.js +7 -0
- package/Common/Separator/index.module.css +7 -10
- package/Common/Skeleton/index.js +18 -0
- package/Common/Skeleton/index.module.css +118 -21
- package/Common/Tabs/index.js +6 -0
- package/Common/Tabs/index.module.css +58 -40
- package/Common/ThemeToggle/index.js +7 -0
- package/Common/ThemeToggle/index.module.css +18 -11
- package/Common/Tooltip/index.js +8 -0
- package/Common/Tooltip/index.module.css +119 -29
- package/Containers/Article/index.js +4 -0
- package/Containers/Article/index.module.css +127 -58
- package/Containers/DocSideBar/index.js +1 -0
- package/Containers/Footer/index.js +22 -0
- package/Containers/Footer/index.module.css +51 -36
- package/Containers/MetaBar/index.js +12 -0
- package/Containers/MetaBar/index.module.css +101 -69
- package/Containers/NavBar/NavItem/index.js +7 -0
- package/Containers/NavBar/NavItem/index.module.css +50 -36
- package/Containers/NavBar/index.js +18 -0
- package/Containers/NavBar/index.module.css +176 -96
- package/Containers/Sidebar/ProgressionIcon/index.js +3 -0
- package/Containers/Sidebar/SidebarGroup/index.js +9 -0
- package/Containers/Sidebar/SidebarGroup/index.module.css +188 -22
- package/Containers/Sidebar/SidebarItem/index.js +11 -0
- package/Containers/Sidebar/SidebarItem/index.module.css +60 -28
- package/Containers/Sidebar/index.js +15 -0
- package/Containers/Sidebar/index.module.css +44 -27
- package/Icons/HexagonGrid.js +3 -0
- package/Icons/InstallationMethod/Choco.js +3 -0
- package/Icons/InstallationMethod/Devbox.js +3 -0
- package/Icons/InstallationMethod/Docker.js +3 -0
- package/Icons/InstallationMethod/FNM.js +3 -0
- package/Icons/InstallationMethod/Homebrew.js +3 -0
- package/Icons/InstallationMethod/N.js +5 -0
- package/Icons/InstallationMethod/NVM.js +3 -0
- package/Icons/InstallationMethod/Volta.js +3 -0
- package/Icons/InstallationMethod/{index.ts → index.js} +0 -1
- package/Icons/Logos/JsWhite.js +3 -0
- package/Icons/Logos/Nodejs.js +12 -0
- package/Icons/Logos/index.js +3 -0
- package/Icons/OperatingSystem/AIX.js +3 -0
- package/Icons/OperatingSystem/Apple.js +3 -0
- package/Icons/OperatingSystem/Linux.js +3 -0
- package/Icons/OperatingSystem/Microsoft.js +3 -0
- package/Icons/OperatingSystem/{index.ts → index.js} +0 -1
- package/Icons/PackageManager/Npm.js +3 -0
- package/Icons/PackageManager/Pnpm.js +3 -0
- package/Icons/PackageManager/Yarn.js +3 -0
- package/Icons/PackageManager/{index.ts → index.js} +0 -1
- package/Icons/Social/Bluesky.js +3 -0
- package/Icons/Social/Discord.js +3 -0
- package/Icons/Social/GitHub.js +3 -0
- package/Icons/Social/LinkedIn.js +3 -0
- package/Icons/Social/Mastodon.js +3 -0
- package/Icons/Social/Slack.js +3 -0
- package/Icons/Social/X.js +3 -0
- package/Icons/Social/{index.ts → index.js} +0 -1
- package/MDX/CodeTabs.js +16 -0
- package/package.json +19 -69
- package/stylelint/one-utility-class-per-line.mjs +34 -50
- package/stylelint/utils.mjs +19 -25
- package/styles/index.css +1124 -26
- package/types.js +1 -0
- package/Common/AlertBox/index.stories.tsx +0 -73
- package/Common/AlertBox/index.tsx +0 -24
- package/Common/AvatarGroup/Avatar/index.stories.tsx +0 -22
- package/Common/AvatarGroup/Avatar/index.tsx +0 -67
- package/Common/AvatarGroup/Overlay/index.stories.tsx +0 -33
- package/Common/AvatarGroup/Overlay/index.tsx +0 -37
- package/Common/AvatarGroup/__tests__/index.test.jsx +0 -55
- package/Common/AvatarGroup/index.stories.tsx +0 -56
- package/Common/AvatarGroup/index.tsx +0 -87
- package/Common/Badge/index.stories.tsx +0 -38
- package/Common/Badge/index.tsx +0 -35
- package/Common/BadgeGroup/index.stories.tsx +0 -35
- package/Common/BadgeGroup/index.tsx +0 -35
- package/Common/Banner/index.stories.tsx +0 -29
- package/Common/Banner/index.tsx +0 -18
- package/Common/BaseActiveLink/__tests__/index.test.jsx +0 -52
- package/Common/BaseActiveLink/index.tsx +0 -34
- package/Common/BaseButton/index.stories.tsx +0 -67
- package/Common/BaseButton/index.tsx +0 -59
- package/Common/BaseCodeBox/index.stories.tsx +0 -39
- package/Common/BaseCodeBox/index.tsx +0 -133
- package/Common/BaseCrossLink/index.stories.tsx +0 -38
- package/Common/BaseCrossLink/index.tsx +0 -46
- package/Common/BaseLinkTabs/index.stories.tsx +0 -34
- package/Common/BaseLinkTabs/index.tsx +0 -53
- package/Common/BasePagination/Ellipsis/index.stories.tsx +0 -10
- package/Common/BasePagination/Ellipsis/index.tsx +0 -11
- package/Common/BasePagination/PaginationListItem/__tests__/index.test.jsx +0 -58
- package/Common/BasePagination/PaginationListItem/index.stories.tsx +0 -40
- package/Common/BasePagination/PaginationListItem/index.tsx +0 -39
- package/Common/BasePagination/PrevNextArrow.tsx +0 -15
- package/Common/BasePagination/__tests__/index.test.jsx +0 -180
- package/Common/BasePagination/index.stories.tsx +0 -67
- package/Common/BasePagination/index.tsx +0 -77
- package/Common/BasePagination/useGetPageElements.tsx +0 -132
- package/Common/Blockquote/index.stories.tsx +0 -45
- package/Common/Blockquote/index.tsx +0 -11
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.tsx +0 -30
- package/Common/Breadcrumbs/BreadcrumbItem/index.tsx +0 -42
- package/Common/Breadcrumbs/BreadcrumbLink/index.tsx +0 -37
- package/Common/Breadcrumbs/BreadcrumbRoot/index.tsx +0 -20
- package/Common/Breadcrumbs/BreadcrumbTruncatedItem/index.tsx +0 -9
- package/Common/Breadcrumbs/index.stories.tsx +0 -94
- package/Common/Breadcrumbs/index.tsx +0 -81
- package/Common/CodeTabs/index.stories.tsx +0 -74
- package/Common/CodeTabs/index.tsx +0 -16
- package/Common/GlowingBackdrop/index.stories.tsx +0 -10
- package/Common/GlowingBackdrop/index.tsx +0 -13
- package/Common/LanguageDropDown/index.stories.tsx +0 -19
- package/Common/LanguageDropDown/index.tsx +0 -56
- package/Common/Modal/index.stories.tsx +0 -32
- package/Common/Modal/index.tsx +0 -48
- package/Common/NodejsLogo/index.stories.tsx +0 -14
- package/Common/NodejsLogo/index.tsx +0 -26
- package/Common/Notification/index.stories.tsx +0 -36
- package/Common/Notification/index.tsx +0 -34
- package/Common/Preview/index.stories.tsx +0 -44
- package/Common/Preview/index.tsx +0 -25
- package/Common/ProgressionSidebar/ProgressionSidebarGroup/index.module.css +0 -47
- package/Common/ProgressionSidebar/ProgressionSidebarGroup/index.tsx +0 -35
- package/Common/ProgressionSidebar/ProgressionSidebarIcon/index.tsx +0 -16
- package/Common/ProgressionSidebar/ProgressionSidebarItem/index.module.css +0 -39
- package/Common/ProgressionSidebar/ProgressionSidebarItem/index.tsx +0 -32
- package/Common/ProgressionSidebar/index.module.css +0 -30
- package/Common/ProgressionSidebar/index.stories.tsx +0 -79
- package/Common/ProgressionSidebar/index.tsx +0 -59
- package/Common/Select/__tests__/index.test.jsx +0 -67
- package/Common/Select/index.stories.tsx +0 -111
- package/Common/Select/index.tsx +0 -187
- package/Common/Separator/index.stories.tsx +0 -32
- package/Common/Separator/index.tsx +0 -27
- package/Common/Skeleton/index.tsx +0 -39
- package/Common/Tabs/__tests__/index.test.jsx +0 -52
- package/Common/Tabs/index.stories.tsx +0 -50
- package/Common/Tabs/index.tsx +0 -54
- package/Common/ThemeToggle/__tests__/index.test.jsx +0 -35
- package/Common/ThemeToggle/index.stories.tsx +0 -10
- package/Common/ThemeToggle/index.tsx +0 -15
- package/Common/Tooltip/index.stories.tsx +0 -73
- package/Common/Tooltip/index.tsx +0 -48
- package/Containers/Article/index.stories.tsx +0 -39
- package/Containers/Article/index.tsx +0 -9
- package/Containers/Footer/index.stories.tsx +0 -27
- package/Containers/Footer/index.tsx +0 -95
- package/Containers/MetaBar/__tests__/index.test.jsx +0 -63
- package/Containers/MetaBar/index.stories.tsx +0 -80
- package/Containers/MetaBar/index.tsx +0 -72
- package/Containers/NavBar/NavItem/index.stories.tsx +0 -38
- package/Containers/NavBar/NavItem/index.tsx +0 -44
- package/Containers/NavBar/index.stories.tsx +0 -45
- package/Containers/NavBar/index.tsx +0 -94
- package/Containers/Sidebar/SidebarGroup/index.stories.tsx +0 -36
- package/Containers/Sidebar/SidebarGroup/index.tsx +0 -30
- package/Containers/Sidebar/SidebarItem/index.stories.tsx +0 -15
- package/Containers/Sidebar/SidebarItem/index.tsx +0 -26
- package/Containers/Sidebar/index.stories.tsx +0 -84
- package/Containers/Sidebar/index.tsx +0 -58
- package/Icons/HexagonGrid.stories.tsx +0 -10
- package/Icons/HexagonGrid.tsx +0 -1434
- package/Icons/InstallationMethod/Choco.tsx +0 -78
- package/Icons/InstallationMethod/Devbox.tsx +0 -21
- package/Icons/InstallationMethod/Docker.tsx +0 -20
- package/Icons/InstallationMethod/FNM.tsx +0 -132
- package/Icons/InstallationMethod/Homebrew.tsx +0 -69
- package/Icons/InstallationMethod/N.tsx +0 -32
- package/Icons/InstallationMethod/NVM.tsx +0 -63
- package/Icons/InstallationMethod/Volta.tsx +0 -34
- package/Icons/Logos/JsGreen.tsx +0 -24
- package/Icons/Logos/JsWhite.tsx +0 -37
- package/Icons/Logos/Nodejs.tsx +0 -188
- package/Icons/Logos/NodejsStackedBlack.tsx +0 -98
- package/Icons/Logos/NodejsStackedDark.tsx +0 -124
- package/Icons/Logos/NodejsStackedLight.tsx +0 -123
- package/Icons/Logos/NodejsStackedWhite.tsx +0 -98
- package/Icons/Logos/index.ts +0 -17
- package/Icons/OperatingSystem/AIX.tsx +0 -46
- package/Icons/OperatingSystem/Apple.tsx +0 -23
- package/Icons/OperatingSystem/Linux.tsx +0 -969
- package/Icons/OperatingSystem/Microsoft.tsx +0 -19
- package/Icons/PackageManager/Npm.tsx +0 -21
- package/Icons/PackageManager/Pnpm.tsx +0 -22
- package/Icons/PackageManager/Yarn.tsx +0 -22
- package/Icons/Social/Bluesky.tsx +0 -19
- package/Icons/Social/Discord.tsx +0 -20
- package/Icons/Social/GitHub.tsx +0 -16
- package/Icons/Social/LinkedIn.tsx +0 -16
- package/Icons/Social/Mastodon.tsx +0 -36
- package/Icons/Social/Slack.tsx +0 -31
- package/Icons/Social/X.tsx +0 -16
- package/stylelint/__tests__/index.test.mjs +0 -80
- package/styles/animations.css +0 -47
- package/styles/base.css +0 -17
- package/styles/effects.css +0 -12
- package/styles/markdown.css +0 -173
- package/styles/theme.css +0 -175
- package/types.ts +0 -25
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import styles from './index.module.css';
|
|
4
|
+
const AlertBox = ({ level, title, children, size = 'default', }) => (_jsxs("div", { className: classNames(styles.alertBox, styles[level], styles[size]), children: [_jsx("span", { className: styles.title, children: title }), _jsx("span", { children: children })] }));
|
|
5
|
+
export default AlertBox;
|
|
@@ -1,76 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
3
2
|
.alertBox {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: calc(var(--spacing, 0.25rem)*2);
|
|
7
|
+
border-radius: var(--radius-sm, 0.25rem);
|
|
8
|
+
padding-inline: calc(var(--spacing, 0.25rem)*4);
|
|
9
|
+
padding-block: calc(var(--spacing, 0.25rem)*3);
|
|
10
|
+
font-size: var(--text-sm, 0.875rem);
|
|
11
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
12
|
+
color: var(--color-white, #fff);
|
|
14
13
|
a {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
--tw-font-weight: var(--font-weight-bold, 700);
|
|
15
|
+
font-weight: var(--font-weight-bold, 700);
|
|
16
|
+
color: var(--color-white, #fff);
|
|
17
|
+
text-decoration-line: underline;
|
|
20
18
|
&:hover {
|
|
21
|
-
@
|
|
19
|
+
@media (hover: hover) {
|
|
20
|
+
color: var(--color-white, #fff);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
&:hover {
|
|
24
|
+
text-decoration-line: none;
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
|
-
|
|
25
27
|
&.small {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
gap: calc(var(--spacing, 0.25rem)*1);
|
|
29
|
+
padding-block: calc(var(--spacing, 0.25rem)*2);
|
|
30
|
+
font-size: var(--text-xs, 0.75rem);
|
|
31
|
+
line-height: var(--tw-leading, var(--text-xs--line-height, 1.33333));
|
|
30
32
|
.title {
|
|
31
|
-
|
|
33
|
+
padding-inline: calc(var(--spacing, 0.25rem)*1);
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
|
-
|
|
35
36
|
.title {
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
border-radius: var(--radius-xs, 0.125rem);
|
|
38
|
+
padding-inline: calc(var(--spacing, 0.25rem)*1.5);
|
|
38
39
|
}
|
|
39
|
-
|
|
40
40
|
svg {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
display: inline;
|
|
42
|
+
width: calc(var(--spacing, 0.25rem)*5);
|
|
43
|
+
height: calc(var(--spacing, 0.25rem)*5);
|
|
43
44
|
}
|
|
44
|
-
|
|
45
45
|
&.info {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
background-color: var(--color-info-600, #0c7bb3);
|
|
48
47
|
.title {
|
|
49
|
-
|
|
48
|
+
background-color: var(--color-info-700, #066291);
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
|
-
|
|
53
51
|
&.success {
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
background-color: var(--color-green-600, #417e38);
|
|
56
53
|
.title {
|
|
57
|
-
|
|
54
|
+
background-color: var(--color-green-700, #2c682c);
|
|
58
55
|
}
|
|
59
56
|
}
|
|
60
|
-
|
|
61
57
|
&.warning {
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
background-color: var(--color-warning-600, #ae5f00);
|
|
64
59
|
.title {
|
|
65
|
-
|
|
60
|
+
background-color: var(--color-warning-700, #8b4d04);
|
|
66
61
|
}
|
|
67
62
|
}
|
|
68
|
-
|
|
69
63
|
&.danger {
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
background-color: var(--color-danger-600, #de1a1b);
|
|
72
65
|
.title {
|
|
73
|
-
|
|
66
|
+
background-color: var(--color-danger-700, #b80c0c);
|
|
74
67
|
}
|
|
75
68
|
}
|
|
69
|
+
code {
|
|
70
|
+
all: unset;
|
|
71
|
+
font-family: var(--font-ibm-plex-mono, var(--font-ibm-plex-mono));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
@property --tw-font-weight {
|
|
75
|
+
syntax: "*";
|
|
76
|
+
inherits: false;
|
|
76
77
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as RadixAvatar from '@radix-ui/react-avatar';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import styles from './index.module.css';
|
|
6
|
+
const Avatar = forwardRef(({ image, nickname, name, fallback, url, size = 'small', as: Component = 'a', ...props }, ref) => {
|
|
7
|
+
if (!url)
|
|
8
|
+
Component = 'div';
|
|
9
|
+
return (_jsx(RadixAvatar.Root, { ...props, ref: ref, className: classNames(styles.avatar, styles[size], props.className), children: _jsxs(Component, { href: url || undefined, target: url ? '_blank' : undefined, className: styles.wrapper, children: [_jsx(RadixAvatar.Image, { loading: "lazy", decoding: "async", src: image, alt: name || nickname, className: styles.item }), _jsx(RadixAvatar.Fallback, { className: classNames(styles.item, styles[size]), children: fallback })] }) }));
|
|
10
|
+
});
|
|
11
|
+
export default Avatar;
|
|
@@ -1,40 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
3
2
|
.item {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
3
|
+
display: flex;
|
|
4
|
+
height: 100%;
|
|
5
|
+
max-height: calc(var(--spacing, 0.25rem)*12);
|
|
6
|
+
width: 100%;
|
|
7
|
+
max-width: calc(var(--spacing, 0.25rem)*12);
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
border-radius: calc(infinity*1px);
|
|
11
|
+
border-style: var(--tw-border-style);
|
|
12
|
+
border-width: 2px;
|
|
13
|
+
border-color: transparent;
|
|
14
|
+
background-color: var(--color-neutral-100, #f6f7f9);
|
|
15
|
+
object-fit: cover;
|
|
16
|
+
font-size: var(--text-xs, 0.75rem);
|
|
17
|
+
line-height: var(--tw-leading, var(--text-xs--line-height, 1.33333));
|
|
18
|
+
color: var(--color-neutral-800, #556066);
|
|
19
|
+
@media (width >= 670px) {
|
|
20
|
+
max-height: calc(var(--spacing, 0.25rem)*10);
|
|
21
|
+
}
|
|
22
|
+
@media (width >= 670px) {
|
|
23
|
+
max-width: calc(var(--spacing, 0.25rem)*10);
|
|
24
|
+
}
|
|
25
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
26
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
27
|
+
}
|
|
28
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
29
|
+
color: var(--color-neutral-300, #d9e1e4);
|
|
30
|
+
}
|
|
22
31
|
}
|
|
23
|
-
|
|
24
32
|
.avatar {
|
|
25
|
-
|
|
26
|
-
|
|
33
|
+
width: calc(var(--spacing, 0.25rem)*8);
|
|
34
|
+
height: calc(var(--spacing, 0.25rem)*8);
|
|
27
35
|
.wrapper {
|
|
28
|
-
@
|
|
29
|
-
|
|
36
|
+
@media (width < 670px) {
|
|
37
|
+
display: block;
|
|
38
|
+
}
|
|
39
|
+
@media (width < 670px) {
|
|
40
|
+
padding-block: calc(var(--spacing, 0.25rem)*0);
|
|
41
|
+
}
|
|
30
42
|
}
|
|
31
43
|
}
|
|
32
|
-
|
|
33
44
|
.small {
|
|
34
|
-
|
|
35
|
-
|
|
45
|
+
width: calc(var(--spacing, 0.25rem)*10);
|
|
46
|
+
height: calc(var(--spacing, 0.25rem)*10);
|
|
47
|
+
@media (width >= 670px) {
|
|
48
|
+
width: calc(var(--spacing, 0.25rem)*8);
|
|
49
|
+
height: calc(var(--spacing, 0.25rem)*8);
|
|
50
|
+
}
|
|
36
51
|
}
|
|
37
|
-
|
|
38
52
|
.medium {
|
|
39
|
-
|
|
53
|
+
width: calc(var(--spacing, 0.25rem)*10);
|
|
54
|
+
height: calc(var(--spacing, 0.25rem)*10);
|
|
55
|
+
}
|
|
56
|
+
@property --tw-border-style {
|
|
57
|
+
syntax: "*";
|
|
58
|
+
inherits: false;
|
|
59
|
+
initial-value: solid;
|
|
40
60
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowUpRightIcon } from '@heroicons/react/24/solid';
|
|
3
|
+
import Avatar from '#ui/Common/AvatarGroup/Avatar';
|
|
4
|
+
import styles from './index.module.css';
|
|
5
|
+
const AvatarOverlay = ({ image, name, nickname, fallback, url, as: Component = 'a', }) => (_jsxs(Component, { className: styles.overlay, href: url, target: "_blank", children: [_jsx(Avatar, { image: image, name: name, nickname: nickname, fallback: fallback, size: "medium" }), _jsxs("div", { className: styles.user, children: [name && _jsx("div", { className: styles.name, children: name }), nickname && _jsx("div", { className: styles.nickname, children: nickname })] }), _jsx(ArrowUpRightIcon, { className: styles.arrow })] }));
|
|
6
|
+
export default AvatarOverlay;
|
|
@@ -1,31 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
3
2
|
.overlay {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
display: flex;
|
|
4
|
+
min-width: calc(var(--spacing, 0.25rem)*56);
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: calc(var(--spacing, 0.25rem)*2);
|
|
7
|
+
padding: calc(var(--spacing, 0.25rem)*3);
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
.user {
|
|
12
|
-
|
|
10
|
+
flex-grow: 1;
|
|
13
11
|
}
|
|
14
|
-
|
|
15
12
|
.name {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
--tw-font-weight: var(--font-weight-semibold, 600);
|
|
14
|
+
font-weight: var(--font-weight-semibold, 600);
|
|
15
|
+
color: var(--color-neutral-900, #2c3437);
|
|
16
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
17
|
+
color: var(--color-neutral-300, #d9e1e4);
|
|
18
|
+
}
|
|
19
19
|
}
|
|
20
|
-
|
|
21
20
|
.nickname {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
--tw-font-weight: var(--font-weight-medium, 500);
|
|
22
|
+
font-weight: var(--font-weight-medium, 500);
|
|
23
|
+
color: var(--color-neutral-700, #6e7b83);
|
|
24
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
25
|
+
color: var(--color-neutral-500, #b1bcc2);
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
|
-
|
|
27
28
|
.arrow {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
width: calc(var(--spacing, 0.25rem)*3);
|
|
30
|
+
fill: var(--color-neutral-600, #929fa5);
|
|
31
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
32
|
+
fill: var(--color-white, #fff);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@property --tw-font-weight {
|
|
36
|
+
syntax: "*";
|
|
37
|
+
inherits: false;
|
|
31
38
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { useState, useMemo } from 'react';
|
|
5
|
+
import Avatar from '#ui/Common/AvatarGroup/Avatar';
|
|
6
|
+
import avatarstyles from '#ui/Common/AvatarGroup/Avatar/index.module.css';
|
|
7
|
+
import AvatarOverlay from '#ui/Common/AvatarGroup/Overlay';
|
|
8
|
+
import Tooltip from '#ui/Common/Tooltip';
|
|
9
|
+
import styles from './index.module.css';
|
|
10
|
+
const AvatarGroup = ({ avatars, limit = 10, isExpandable = true, size = 'small', container, as, }) => {
|
|
11
|
+
const [showMore, setShowMore] = useState(false);
|
|
12
|
+
const renderAvatars = useMemo(() => avatars.slice(0, showMore ? avatars.length : limit), [avatars, limit, showMore]);
|
|
13
|
+
const handleShowMoreClick = isExpandable
|
|
14
|
+
? () => setShowMore(prev => !prev)
|
|
15
|
+
: undefined;
|
|
16
|
+
return (_jsxs("div", { className: classNames(styles.avatarGroup, styles[size]), children: [renderAvatars.map(avatar => (_jsx(Tooltip, { asChild: true, container: container, content: _jsx(AvatarOverlay, { ...avatar, as: as }), children: _jsx(Avatar, { ...avatar, size: size, className: classNames({
|
|
17
|
+
'cursor-pointer': avatar.url,
|
|
18
|
+
'pointer-events-none': !avatar.url,
|
|
19
|
+
}), as: as }) }, avatar.nickname))), avatars.length > limit && (_jsx("span", { onClick: handleShowMoreClick, className: classNames(avatarstyles.avatar, avatarstyles[size], 'cursor-pointer'), children: _jsx("span", { className: avatarstyles.item, children: `${showMore ? '-' : '+'}${avatars.length - limit}` }) }))] }));
|
|
20
|
+
};
|
|
21
|
+
export default AvatarGroup;
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
3
2
|
.avatarGroup {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
&:not(.expandable) {
|
|
9
|
-
> span {
|
|
10
|
-
@apply ml-0;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
align-items: center;
|
|
13
6
|
}
|
|
14
|
-
|
|
15
7
|
.small {
|
|
16
8
|
> span {
|
|
17
|
-
|
|
9
|
+
margin-left: calc(var(--spacing, 0.25rem)*-2);
|
|
10
|
+
&:first-child {
|
|
11
|
+
margin-left: calc(var(--spacing, 0.25rem)*0);
|
|
12
|
+
}
|
|
18
13
|
}
|
|
19
14
|
}
|
|
20
|
-
|
|
21
15
|
.medium {
|
|
22
16
|
> span {
|
|
23
|
-
|
|
17
|
+
margin-left: calc(var(--spacing, 0.25rem)*-2.5);
|
|
18
|
+
&:first-child {
|
|
19
|
+
margin-left: calc(var(--spacing, 0.25rem)*0);
|
|
20
|
+
}
|
|
24
21
|
}
|
|
25
22
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import styles from './index.module.css';
|
|
4
|
+
const Badge = ({ kind = 'default', size = 'medium', className, children, ...props }) => {
|
|
5
|
+
return (_jsx("span", { className: classNames(styles.badge, styles[kind], styles[size], className), ...props, children: children }));
|
|
6
|
+
};
|
|
7
|
+
export default Badge;
|
|
@@ -1,38 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
3
2
|
.badge {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
border-radius: calc(infinity*1px);
|
|
4
|
+
border-style: var(--tw-border-style);
|
|
5
|
+
border-width: 1px;
|
|
6
|
+
text-align: center;
|
|
7
|
+
color: var(--color-white, #fff);
|
|
9
8
|
&.small {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
padding-inline: calc(var(--spacing, 0.25rem)*1.5);
|
|
10
|
+
padding-block: calc(var(--spacing, 0.25rem)*0.5);
|
|
11
|
+
font-size: var(--text-xs, 0.75rem);
|
|
12
|
+
line-height: var(--tw-leading, var(--text-xs--line-height, 1.33333));
|
|
13
13
|
}
|
|
14
|
-
|
|
15
14
|
&.medium {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
padding-inline: calc(var(--spacing, 0.25rem)*2.5);
|
|
16
|
+
padding-block: calc(var(--spacing, 0.25rem)*0.5);
|
|
17
|
+
font-size: var(--text-base, 1rem);
|
|
18
|
+
line-height: var(--tw-leading, var(--text-base--line-height, 1.5));
|
|
19
19
|
}
|
|
20
|
-
|
|
21
20
|
&.default {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
border-color: var(--color-green-200, #c5e5b4);
|
|
22
|
+
background-color: var(--color-green-600, #417e38);
|
|
23
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
24
|
+
border-color: var(--color-green-800, #2c682c);
|
|
25
|
+
}
|
|
25
26
|
}
|
|
26
|
-
|
|
27
27
|
&.error {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
border-color: var(--color-danger-200, #fad3d4);
|
|
29
|
+
background-color: var(--color-danger-600, #de1a1b);
|
|
30
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
31
|
+
border-color: var(--color-danger-800, #900e0e);
|
|
32
|
+
}
|
|
31
33
|
}
|
|
32
|
-
|
|
33
34
|
&.warning {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
border-color: var(--color-warning-200, #fad9b0);
|
|
36
|
+
background-color: var(--color-warning-600, #ae5f00);
|
|
37
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
38
|
+
border-color: var(--color-warning-600, #ae5f00);
|
|
39
|
+
}
|
|
37
40
|
}
|
|
38
41
|
}
|
|
42
|
+
@property --tw-border-style {
|
|
43
|
+
syntax: "*";
|
|
44
|
+
inherits: false;
|
|
45
|
+
initial-value: solid;
|
|
46
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import ArrowRightIcon from '@heroicons/react/24/solid/ArrowRightIcon';
|
|
3
|
+
import Badge from '#ui/Common/Badge';
|
|
4
|
+
import styles from './index.module.css';
|
|
5
|
+
const BadgeGroup = ({ kind = 'default', badgeText, children, as: Component = 'a', ...args }) => (_jsxs(Component, { className: `${styles.wrapper} ${styles[kind]}`, ...args, children: [badgeText && (_jsx(Badge, { kind: kind, className: styles.badge, children: badgeText })), _jsx("span", { className: styles.message, children: children }), args.href && _jsx(ArrowRightIcon, { className: styles.icon })] }));
|
|
6
|
+
export default BadgeGroup;
|
|
@@ -1,77 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
3
2
|
.wrapper {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
display: flex;
|
|
4
|
+
width: fit-content;
|
|
5
|
+
align-items: center;
|
|
6
|
+
border-radius: calc(infinity*1px);
|
|
7
|
+
border-style: var(--tw-border-style);
|
|
8
|
+
border-width: 1px;
|
|
9
|
+
padding-block: calc(var(--spacing, 0.25rem)*1);
|
|
10
|
+
padding-right: calc(var(--spacing, 0.25rem)*2.5);
|
|
11
|
+
padding-left: calc(var(--spacing, 0.25rem)*1);
|
|
12
|
+
font-size: var(--text-sm, 0.875rem);
|
|
13
|
+
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
14
|
+
--tw-font-weight: var(--font-weight-medium, 500);
|
|
15
|
+
font-weight: var(--font-weight-medium, 500);
|
|
15
16
|
.icon {
|
|
16
|
-
|
|
17
|
+
width: calc(var(--spacing, 0.25rem)*4);
|
|
18
|
+
height: calc(var(--spacing, 0.25rem)*4);
|
|
17
19
|
}
|
|
18
|
-
|
|
19
20
|
.badge {
|
|
20
|
-
|
|
21
|
+
margin-right: calc(var(--spacing, 0.25rem)*2);
|
|
21
22
|
}
|
|
22
|
-
|
|
23
23
|
.message {
|
|
24
|
-
|
|
24
|
+
margin-right: calc(var(--spacing, 0.25rem)*1);
|
|
25
25
|
}
|
|
26
|
-
|
|
27
26
|
&.default {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
border-color: var(--color-green-200, #c5e5b4);
|
|
28
|
+
background-color: var(--color-green-100, #edf2eb);
|
|
29
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
30
|
+
border-color: var(--color-green-700, #2c682c);
|
|
31
|
+
}
|
|
32
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
33
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
34
|
+
}
|
|
33
35
|
.icon {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
color: var(--color-green-500, #5fa04e);
|
|
37
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
38
|
+
color: var(--color-green-300, #99cc7d);
|
|
39
|
+
}
|
|
36
40
|
}
|
|
37
|
-
|
|
38
41
|
.message {
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
color: var(--color-green-700, #2c682c);
|
|
43
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
44
|
+
color: var(--color-green-300, #99cc7d);
|
|
45
|
+
}
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
|
-
|
|
44
48
|
&.error {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
border-color: var(--color-danger-200, #fad3d4);
|
|
50
|
+
background-color: var(--color-danger-100, #fbf1f0);
|
|
51
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
52
|
+
border-color: var(--color-danger-700, #b80c0c);
|
|
53
|
+
}
|
|
54
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
55
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
56
|
+
}
|
|
50
57
|
.icon {
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
color: var(--color-danger-500, #f65354);
|
|
59
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
60
|
+
color: var(--color-danger-300, #fab6b7);
|
|
61
|
+
}
|
|
53
62
|
}
|
|
54
|
-
|
|
55
63
|
.message {
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
color: var(--color-danger-700, #b80c0c);
|
|
65
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
66
|
+
color: var(--color-danger-300, #fab6b7);
|
|
67
|
+
}
|
|
58
68
|
}
|
|
59
69
|
}
|
|
60
|
-
|
|
61
70
|
&.warning {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
71
|
+
border-color: var(--color-warning-200, #fad9b0);
|
|
72
|
+
background-color: var(--color-warning-100, #fdf3e7);
|
|
73
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
74
|
+
border-color: var(--color-warning-700, #8b4d04);
|
|
75
|
+
}
|
|
76
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
77
|
+
background-color: var(--color-neutral-900, #2c3437);
|
|
78
|
+
}
|
|
67
79
|
.icon {
|
|
68
|
-
|
|
69
|
-
|
|
80
|
+
color: var(--color-warning-500, #d07912);
|
|
81
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
82
|
+
color: var(--color-warning-300, #f5bc75);
|
|
83
|
+
}
|
|
70
84
|
}
|
|
71
|
-
|
|
72
85
|
.message {
|
|
73
|
-
|
|
74
|
-
|
|
86
|
+
color: var(--color-warning-700, #8b4d04);
|
|
87
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
88
|
+
color: var(--color-warning-300, #f5bc75);
|
|
89
|
+
}
|
|
75
90
|
}
|
|
76
91
|
}
|
|
77
92
|
}
|
|
93
|
+
@property --tw-border-style {
|
|
94
|
+
syntax: "*";
|
|
95
|
+
inherits: false;
|
|
96
|
+
initial-value: solid;
|
|
97
|
+
}
|
|
98
|
+
@property --tw-font-weight {
|
|
99
|
+
syntax: "*";
|
|
100
|
+
inherits: false;
|
|
101
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from './index.module.css';
|
|
3
|
+
const Banner = ({ type = 'default', children, }) => (_jsx("div", { className: `${styles.banner} ${styles[type] || styles.default}`, children: children }));
|
|
4
|
+
export default Banner;
|