@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,283 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.root {
|
|
3
|
-
container-type: inline-size;
|
|
4
|
-
container-name: preview;
|
|
5
|
-
position: relative;
|
|
6
|
-
display: flex;
|
|
7
|
-
aspect-ratio: 1.90/1;
|
|
8
|
-
align-items: center;
|
|
9
|
-
border-radius: var(--radius-sm, 0.25rem);
|
|
10
|
-
border-style: var(--tw-border-style);
|
|
11
|
-
border-width: 1px;
|
|
12
|
-
border-color: var(--color-neutral-900, #2c3437);
|
|
13
|
-
background-color: var(--color-neutral-950, #0d121c);
|
|
14
|
-
&::after {
|
|
15
|
-
content: var(--tw-content);
|
|
16
|
-
position: absolute;
|
|
17
|
-
}
|
|
18
|
-
&::after {
|
|
19
|
-
content: var(--tw-content);
|
|
20
|
-
inset: calc(var(--spacing, 0.25rem)*0);
|
|
21
|
-
}
|
|
22
|
-
&::after {
|
|
23
|
-
content: var(--tw-content);
|
|
24
|
-
margin: auto;
|
|
25
|
-
}
|
|
26
|
-
&::after {
|
|
27
|
-
content: var(--tw-content);
|
|
28
|
-
aspect-ratio: 1 / 1;
|
|
29
|
-
}
|
|
30
|
-
&::after {
|
|
31
|
-
content: var(--tw-content);
|
|
32
|
-
width: 33.33333%;
|
|
33
|
-
}
|
|
34
|
-
&::after {
|
|
35
|
-
content: var(--tw-content);
|
|
36
|
-
border-radius: calc(infinity*1px);
|
|
37
|
-
}
|
|
38
|
-
&::after {
|
|
39
|
-
content: var(--tw-content);
|
|
40
|
-
background-image: radial-gradient( var(--tw-gradient-from), var(--tw-gradient-to) );
|
|
41
|
-
}
|
|
42
|
-
&::after {
|
|
43
|
-
content: var(--tw-content);
|
|
44
|
-
--tw-blur: blur(var(--blur-2xl, 40px));
|
|
45
|
-
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
46
|
-
}
|
|
47
|
-
&::after {
|
|
48
|
-
content: var(--tw-content);
|
|
49
|
-
--tw-content: '';
|
|
50
|
-
content: var(--tw-content);
|
|
51
|
-
}
|
|
52
|
-
&.announcements {
|
|
53
|
-
&::after {
|
|
54
|
-
content: var(--tw-content);
|
|
55
|
-
--tw-gradient-from: color-mix(in srgb, #2c682c 90%, transparent);
|
|
56
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
57
|
-
--tw-gradient-from: color-mix(in oklab, var(--color-green-700, #2c682c) 90%, transparent);
|
|
58
|
-
}
|
|
59
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
&.release {
|
|
63
|
-
&::after {
|
|
64
|
-
content: var(--tw-content);
|
|
65
|
-
--tw-gradient-from: color-mix(in srgb, #0c7bb3 90%, transparent);
|
|
66
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
67
|
-
--tw-gradient-from: color-mix(in oklab, var(--color-info-600, #0c7bb3) 90%, transparent);
|
|
68
|
-
}
|
|
69
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
&.vulnerability {
|
|
73
|
-
&::after {
|
|
74
|
-
content: var(--tw-content);
|
|
75
|
-
--tw-gradient-from: color-mix(in srgb, #ae5f00 90%, transparent);
|
|
76
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
77
|
-
--tw-gradient-from: color-mix(in oklab, var(--color-warning-600, #ae5f00) 90%, transparent);
|
|
78
|
-
}
|
|
79
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
.container {
|
|
83
|
-
z-index: 10;
|
|
84
|
-
margin-inline: auto;
|
|
85
|
-
display: flex;
|
|
86
|
-
width: 66.66667%;
|
|
87
|
-
max-width: var(--container-xl, 36rem);
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
gap: calc(var(--spacing, 0.25rem)*4);
|
|
90
|
-
text-align: center;
|
|
91
|
-
font-size: var(--text-xs, 0.75rem);
|
|
92
|
-
line-height: var(--tw-leading, var(--text-xs--line-height, 1.33333));
|
|
93
|
-
--tw-font-weight: var(--font-weight-semibold, 600);
|
|
94
|
-
font-weight: var(--font-weight-semibold, 600);
|
|
95
|
-
color: var(--color-white, #fff);
|
|
96
|
-
@container preview (width >= 24rem) {
|
|
97
|
-
font-size: var(--text-base, 1rem);
|
|
98
|
-
line-height: var(--tw-leading, var(--text-base--line-height, 1.5));
|
|
99
|
-
}
|
|
100
|
-
@container preview (width >= 28rem) {
|
|
101
|
-
gap: calc(var(--spacing, 0.25rem)*6);
|
|
102
|
-
}
|
|
103
|
-
@container preview (width >= 28rem) {
|
|
104
|
-
font-size: var(--text-lg, 1.125rem);
|
|
105
|
-
line-height: var(--tw-leading, var(--text-lg--line-height, 1.55556));
|
|
106
|
-
}
|
|
107
|
-
@container preview (width >= 32rem) {
|
|
108
|
-
gap: calc(var(--spacing, 0.25rem)*8);
|
|
109
|
-
}
|
|
110
|
-
@container preview (width >= 32rem) {
|
|
111
|
-
font-size: var(--text-xl, 1.25rem);
|
|
112
|
-
line-height: var(--tw-leading, var(--text-xl--line-height, 1.4));
|
|
113
|
-
}
|
|
114
|
-
@container preview (width >= 36rem) {
|
|
115
|
-
gap: calc(var(--spacing, 0.25rem)*12);
|
|
116
|
-
}
|
|
117
|
-
@container preview (width >= 36rem) {
|
|
118
|
-
font-size: var(--text-2xl, 1.5rem);
|
|
119
|
-
line-height: var(--tw-leading, var(--text-2xl--line-height, 1.33333));
|
|
120
|
-
}
|
|
121
|
-
@container preview (width >= 42rem) {
|
|
122
|
-
font-size: var(--text-3xl, 1.875rem);
|
|
123
|
-
line-height: var(--tw-leading, var(--text-3xl--line-height, 1.2));
|
|
124
|
-
}
|
|
125
|
-
.hexagon {
|
|
126
|
-
position: absolute;
|
|
127
|
-
inset: calc(var(--spacing, 0.25rem)*0);
|
|
128
|
-
margin: auto;
|
|
129
|
-
width: 100%;
|
|
130
|
-
height: 100%;
|
|
131
|
-
@container preview (width >= 28rem) {
|
|
132
|
-
height: 60%;
|
|
133
|
-
}
|
|
134
|
-
@container preview (width >= 28rem) {
|
|
135
|
-
width: 60%;
|
|
136
|
-
}
|
|
137
|
-
@container preview (width >= 32rem) {
|
|
138
|
-
height: 66.66667%;
|
|
139
|
-
}
|
|
140
|
-
@container preview (width >= 32rem) {
|
|
141
|
-
width: 66.66667%;
|
|
142
|
-
}
|
|
143
|
-
@container preview (width >= 36rem) {
|
|
144
|
-
height: 60%;
|
|
145
|
-
}
|
|
146
|
-
@container preview (width >= 36rem) {
|
|
147
|
-
width: 60%;
|
|
148
|
-
}
|
|
149
|
-
@container preview (width >= 42rem) {
|
|
150
|
-
height: 66.66667%;
|
|
151
|
-
}
|
|
152
|
-
@container preview (width >= 42rem) {
|
|
153
|
-
width: 66.66667%;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
.logo {
|
|
157
|
-
margin-inline: auto;
|
|
158
|
-
width: calc(var(--spacing, 0.25rem)*6);
|
|
159
|
-
height: calc(var(--spacing, 0.25rem)*6);
|
|
160
|
-
@container preview (width >= 28rem) {
|
|
161
|
-
width: calc(var(--spacing, 0.25rem)*14);
|
|
162
|
-
height: calc(var(--spacing, 0.25rem)*14);
|
|
163
|
-
}
|
|
164
|
-
@container preview (width >= 32rem) {
|
|
165
|
-
width: calc(var(--spacing, 0.25rem)*16);
|
|
166
|
-
height: calc(var(--spacing, 0.25rem)*16);
|
|
167
|
-
}
|
|
168
|
-
@container preview (width >= 36rem) {
|
|
169
|
-
width: calc(var(--spacing, 0.25rem)*20);
|
|
170
|
-
height: calc(var(--spacing, 0.25rem)*20);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
@property --tw-border-style {
|
|
176
|
-
syntax: "*";
|
|
177
|
-
inherits: false;
|
|
178
|
-
initial-value: solid;
|
|
179
|
-
}
|
|
180
|
-
@property --tw-content {
|
|
181
|
-
syntax: "*";
|
|
182
|
-
initial-value: "";
|
|
183
|
-
inherits: false;
|
|
184
|
-
}
|
|
185
|
-
@property --tw-blur {
|
|
186
|
-
syntax: "*";
|
|
187
|
-
inherits: false;
|
|
188
|
-
}
|
|
189
|
-
@property --tw-brightness {
|
|
190
|
-
syntax: "*";
|
|
191
|
-
inherits: false;
|
|
192
|
-
}
|
|
193
|
-
@property --tw-contrast {
|
|
194
|
-
syntax: "*";
|
|
195
|
-
inherits: false;
|
|
196
|
-
}
|
|
197
|
-
@property --tw-grayscale {
|
|
198
|
-
syntax: "*";
|
|
199
|
-
inherits: false;
|
|
200
|
-
}
|
|
201
|
-
@property --tw-hue-rotate {
|
|
202
|
-
syntax: "*";
|
|
203
|
-
inherits: false;
|
|
204
|
-
}
|
|
205
|
-
@property --tw-invert {
|
|
206
|
-
syntax: "*";
|
|
207
|
-
inherits: false;
|
|
208
|
-
}
|
|
209
|
-
@property --tw-opacity {
|
|
210
|
-
syntax: "*";
|
|
211
|
-
inherits: false;
|
|
212
|
-
}
|
|
213
|
-
@property --tw-saturate {
|
|
214
|
-
syntax: "*";
|
|
215
|
-
inherits: false;
|
|
216
|
-
}
|
|
217
|
-
@property --tw-sepia {
|
|
218
|
-
syntax: "*";
|
|
219
|
-
inherits: false;
|
|
220
|
-
}
|
|
221
|
-
@property --tw-drop-shadow {
|
|
222
|
-
syntax: "*";
|
|
223
|
-
inherits: false;
|
|
224
|
-
}
|
|
225
|
-
@property --tw-drop-shadow-color {
|
|
226
|
-
syntax: "*";
|
|
227
|
-
inherits: false;
|
|
228
|
-
}
|
|
229
|
-
@property --tw-drop-shadow-alpha {
|
|
230
|
-
syntax: "<percentage>";
|
|
231
|
-
inherits: false;
|
|
232
|
-
initial-value: 100%;
|
|
233
|
-
}
|
|
234
|
-
@property --tw-drop-shadow-size {
|
|
235
|
-
syntax: "*";
|
|
236
|
-
inherits: false;
|
|
237
|
-
}
|
|
238
|
-
@property --tw-gradient-position {
|
|
239
|
-
syntax: "*";
|
|
240
|
-
inherits: false;
|
|
241
|
-
}
|
|
242
|
-
@property --tw-gradient-from {
|
|
243
|
-
syntax: "<color>";
|
|
244
|
-
inherits: false;
|
|
245
|
-
initial-value: #0000;
|
|
246
|
-
}
|
|
247
|
-
@property --tw-gradient-via {
|
|
248
|
-
syntax: "<color>";
|
|
249
|
-
inherits: false;
|
|
250
|
-
initial-value: #0000;
|
|
251
|
-
}
|
|
252
|
-
@property --tw-gradient-to {
|
|
253
|
-
syntax: "<color>";
|
|
254
|
-
inherits: false;
|
|
255
|
-
initial-value: #0000;
|
|
256
|
-
}
|
|
257
|
-
@property --tw-gradient-stops {
|
|
258
|
-
syntax: "*";
|
|
259
|
-
inherits: false;
|
|
260
|
-
}
|
|
261
|
-
@property --tw-gradient-via-stops {
|
|
262
|
-
syntax: "*";
|
|
263
|
-
inherits: false;
|
|
264
|
-
}
|
|
265
|
-
@property --tw-gradient-from-position {
|
|
266
|
-
syntax: "<length-percentage>";
|
|
267
|
-
inherits: false;
|
|
268
|
-
initial-value: 0%;
|
|
269
|
-
}
|
|
270
|
-
@property --tw-gradient-via-position {
|
|
271
|
-
syntax: "<length-percentage>";
|
|
272
|
-
inherits: false;
|
|
273
|
-
initial-value: 50%;
|
|
274
|
-
}
|
|
275
|
-
@property --tw-gradient-to-position {
|
|
276
|
-
syntax: "<length-percentage>";
|
|
277
|
-
inherits: false;
|
|
278
|
-
initial-value: 100%;
|
|
279
|
-
}
|
|
280
|
-
@property --tw-font-weight {
|
|
281
|
-
syntax: "*";
|
|
282
|
-
inherits: false;
|
|
283
|
-
}
|
package/Common/Select/index.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/24/outline';
|
|
4
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
5
|
-
import classNames from 'classnames';
|
|
6
|
-
import { useEffect, useId, useMemo, useState } from 'react';
|
|
7
|
-
import Skeleton from '#ui/Common/Skeleton';
|
|
8
|
-
import styles from './index.module.css';
|
|
9
|
-
const isStringArray = (values) => Boolean(values[0] && typeof values[0] === 'string');
|
|
10
|
-
const isValuesArray = (values) => Boolean(values[0] && typeof values[0] === 'object' && 'value' in values[0]);
|
|
11
|
-
const Select = ({ values = [], defaultValue, placeholder, label, inline, onChange, className, ariaLabel, loading = false, disabled = false, }) => {
|
|
12
|
-
const id = useId();
|
|
13
|
-
const [value, setValue] = useState(defaultValue);
|
|
14
|
-
useEffect(() => setValue(defaultValue), [defaultValue]);
|
|
15
|
-
const mappedValues = useMemo(() => {
|
|
16
|
-
let mappedValues = values;
|
|
17
|
-
if (isStringArray(mappedValues)) {
|
|
18
|
-
mappedValues = mappedValues.map(value => ({
|
|
19
|
-
label: value,
|
|
20
|
-
value: value,
|
|
21
|
-
}));
|
|
22
|
-
}
|
|
23
|
-
if (isValuesArray(mappedValues)) {
|
|
24
|
-
return [{ items: mappedValues }];
|
|
25
|
-
}
|
|
26
|
-
return mappedValues;
|
|
27
|
-
}, [values]);
|
|
28
|
-
// We render the actual item slotted to fix/prevent the issue
|
|
29
|
-
// of the tirgger flashing on the initial render
|
|
30
|
-
const currentItem = useMemo(() => mappedValues
|
|
31
|
-
.flatMap(({ items }) => items)
|
|
32
|
-
.find(item => item.value === value), [mappedValues, value]);
|
|
33
|
-
const memoizedMappedValues = useMemo(() => {
|
|
34
|
-
return mappedValues.map(({ label, items }, key) => (_jsxs(SelectPrimitive.Group, { children: [label && (_jsx(SelectPrimitive.Label, { className: classNames(styles.item, styles.label), children: label })), items.map(({ value, label, iconImage, disabled }) => (_jsx(SelectPrimitive.Item, { value: value, disabled: disabled, className: classNames(styles.item, styles.text), children: _jsxs(SelectPrimitive.ItemText, { children: [iconImage, _jsx("span", { children: label })] }) }, value)))] }, label?.toString() ?? key)));
|
|
35
|
-
// We explicitly want to recalculate these values only when the values themselves changed
|
|
36
|
-
// This is to prevent re-rendering and re-calcukating the values on every render
|
|
37
|
-
}, [JSON.stringify(values)]);
|
|
38
|
-
// Both change the internal state and emit the change event
|
|
39
|
-
const handleChange = (value) => {
|
|
40
|
-
setValue(value);
|
|
41
|
-
if (typeof onChange === 'function') {
|
|
42
|
-
onChange(value);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
return (_jsx(Skeleton, { loading: loading, children: _jsxs("span", { className: classNames(styles.select, { [styles.inline]: inline }, className), children: [label && (_jsx("label", { className: styles.label, htmlFor: id, children: label })), _jsxs(SelectPrimitive.Root, { value: currentItem !== undefined ? value : undefined, onValueChange: handleChange, disabled: disabled, children: [_jsxs(SelectPrimitive.Trigger, { className: styles.trigger, "aria-label": ariaLabel, id: id, children: [_jsx(SelectPrimitive.Value, { placeholder: placeholder, children: currentItem !== undefined && (_jsxs(_Fragment, { children: [currentItem.iconImage, _jsx("span", { children: currentItem.label })] })) }), _jsx(ChevronDownIcon, { className: styles.icon })] }), _jsx(SelectPrimitive.Portal, { children: _jsxs(SelectPrimitive.Content, { position: inline ? 'popper' : 'item-aligned', className: classNames(styles.dropdown, {
|
|
46
|
-
[styles.inline]: inline,
|
|
47
|
-
}), children: [_jsx(SelectPrimitive.ScrollUpButton, { children: _jsx(ChevronUpIcon, { className: styles.scrollIcon }) }), _jsx(SelectPrimitive.Viewport, { children: memoizedMappedValues }), _jsx(SelectPrimitive.ScrollDownButton, { children: _jsx(ChevronDownIcon, { className: styles.scrollIcon }) })] }) })] })] }) }));
|
|
48
|
-
};
|
|
49
|
-
export default Select;
|
|
@@ -1,328 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.select {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: calc(var(--spacing, 0.25rem)*1.5);
|
|
6
|
-
.label {
|
|
7
|
-
display: block;
|
|
8
|
-
width: 100%;
|
|
9
|
-
font-size: var(--text-sm, 0.875rem);
|
|
10
|
-
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
11
|
-
--tw-font-weight: var(--font-weight-medium, 500);
|
|
12
|
-
font-weight: var(--font-weight-medium, 500);
|
|
13
|
-
color: var(--color-neutral-800, #556066);
|
|
14
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
15
|
-
color: var(--color-neutral-200, #e9edf0);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
.trigger {
|
|
19
|
-
display: inline-flex;
|
|
20
|
-
height: calc(var(--spacing, 0.25rem)*11);
|
|
21
|
-
width: 100%;
|
|
22
|
-
min-width: 17rem;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
gap: calc(var(--spacing, 0.25rem)*2);
|
|
26
|
-
border-radius: var(--radius-sm, 0.25rem);
|
|
27
|
-
border-style: var(--tw-border-style);
|
|
28
|
-
border-width: 1px;
|
|
29
|
-
border-color: var(--color-neutral-300, #d9e1e4);
|
|
30
|
-
background-color: var(--color-white, #fff);
|
|
31
|
-
padding-inline: calc(var(--spacing, 0.25rem)*3.5);
|
|
32
|
-
padding-block: calc(var(--spacing, 0.25rem)*2.5);
|
|
33
|
-
text-align: left;
|
|
34
|
-
font-size: var(--text-base, 1rem);
|
|
35
|
-
line-height: var(--tw-leading, var(--text-base--line-height, 1.5));
|
|
36
|
-
--tw-font-weight: var(--font-weight-medium, 500);
|
|
37
|
-
font-weight: var(--font-weight-medium, 500);
|
|
38
|
-
color: var(--color-neutral-900, #2c3437);
|
|
39
|
-
--tw-shadow: 0px 1px 2px 0px var(--tw-shadow-color, color-mix(in srgb, #101828 5%, transparent));
|
|
40
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
41
|
-
--tw-shadow: 0px 1px 2px 0px var(--tw-shadow-color, color-mix(in oklab, var(--color-shadow, #101828) 5%, transparent));
|
|
42
|
-
}
|
|
43
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
44
|
-
--tw-outline-style: none;
|
|
45
|
-
outline-style: none;
|
|
46
|
-
@media (forced-colors: active) {
|
|
47
|
-
outline: 2px solid transparent;
|
|
48
|
-
outline-offset: 2px;
|
|
49
|
-
}
|
|
50
|
-
&:focus {
|
|
51
|
-
border-color: var(--color-neutral-500, #b1bcc2);
|
|
52
|
-
}
|
|
53
|
-
&:focus {
|
|
54
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
55
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
56
|
-
}
|
|
57
|
-
&:focus {
|
|
58
|
-
--tw-ring-color: var(--color-neutral-500, #b1bcc2);
|
|
59
|
-
}
|
|
60
|
-
&[data-placeholder] {
|
|
61
|
-
color: var(--color-neutral-800, #556066);
|
|
62
|
-
}
|
|
63
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
64
|
-
border-color: var(--color-neutral-800, #556066);
|
|
65
|
-
}
|
|
66
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
67
|
-
background-color: var(--color-neutral-950, #0d121c);
|
|
68
|
-
}
|
|
69
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
70
|
-
color: var(--color-white, #fff);
|
|
71
|
-
}
|
|
72
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
73
|
-
&:focus {
|
|
74
|
-
border-color: var(--color-neutral-600, #929fa5);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
78
|
-
&:focus {
|
|
79
|
-
--tw-ring-color: var(--color-neutral-600, #929fa5);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
83
|
-
&[data-placeholder] {
|
|
84
|
-
color: var(--color-neutral-200, #e9edf0);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
.trigger span {
|
|
89
|
-
display: flex;
|
|
90
|
-
height: calc(var(--spacing, 0.25rem)*5);
|
|
91
|
-
align-items: center;
|
|
92
|
-
gap: calc(var(--spacing, 0.25rem)*2);
|
|
93
|
-
}
|
|
94
|
-
.icon {
|
|
95
|
-
width: calc(var(--spacing, 0.25rem)*5);
|
|
96
|
-
height: calc(var(--spacing, 0.25rem)*5);
|
|
97
|
-
color: var(--color-neutral-600, #929fa5);
|
|
98
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
99
|
-
color: var(--color-neutral-400, #cbd4d9);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
.dropdown {
|
|
104
|
-
max-height: calc(var(--spacing, 0.25rem)*48);
|
|
105
|
-
max-width: var(--container-xs, 20rem);
|
|
106
|
-
overflow: hidden;
|
|
107
|
-
overflow-y: auto;
|
|
108
|
-
border-radius: var(--radius-md, 0.375rem);
|
|
109
|
-
border-style: var(--tw-border-style);
|
|
110
|
-
border-width: 1px;
|
|
111
|
-
border-color: var(--color-neutral-200, #e9edf0);
|
|
112
|
-
background-color: var(--color-white, #fff);
|
|
113
|
-
--tw-shadow: 0px 4px 6px -2px var(--tw-shadow-color, color-mix(in srgb, #101828 3%, transparent)), 0px 12px 16px -4px var(--tw-shadow-color, color-mix(in srgb, #101828 8%, transparent));
|
|
114
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
115
|
-
--tw-shadow: 0px 4px 6px -2px var(--tw-shadow-color, color-mix(in oklab, var(--color-shadow, #101828) 3%, transparent)), 0px 12px 16px -4px var(--tw-shadow-color, color-mix(in oklab, var(--color-shadow, #101828) 8%, transparent));
|
|
116
|
-
}
|
|
117
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
118
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
119
|
-
border-color: var(--color-neutral-800, #556066);
|
|
120
|
-
}
|
|
121
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
122
|
-
background-color: var(--color-neutral-950, #0d121c);
|
|
123
|
-
}
|
|
124
|
-
.item {
|
|
125
|
-
overflow: hidden;
|
|
126
|
-
text-overflow: ellipsis;
|
|
127
|
-
white-space: nowrap;
|
|
128
|
-
padding-inline: calc(var(--spacing, 0.25rem)*2.5);
|
|
129
|
-
padding-block: calc(var(--spacing, 0.25rem)*1.5);
|
|
130
|
-
font-size: var(--text-sm, 0.875rem);
|
|
131
|
-
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
132
|
-
--tw-font-weight: var(--font-weight-medium, 500);
|
|
133
|
-
font-weight: var(--font-weight-medium, 500);
|
|
134
|
-
-webkit-user-select: none;
|
|
135
|
-
user-select: none;
|
|
136
|
-
}
|
|
137
|
-
.text {
|
|
138
|
-
color: var(--color-neutral-800, #556066);
|
|
139
|
-
&[data-highlighted] {
|
|
140
|
-
background-color: var(--color-green-500, #5fa04e);
|
|
141
|
-
}
|
|
142
|
-
&[data-highlighted] {
|
|
143
|
-
color: var(--color-white, #fff);
|
|
144
|
-
}
|
|
145
|
-
&[data-highlighted] {
|
|
146
|
-
--tw-outline-style: none;
|
|
147
|
-
outline-style: none;
|
|
148
|
-
@media (forced-colors: active) {
|
|
149
|
-
outline: 2px solid transparent;
|
|
150
|
-
outline-offset: 2px;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
154
|
-
color: var(--color-neutral-200, #e9edf0);
|
|
155
|
-
}
|
|
156
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
157
|
-
&[data-highlighted] {
|
|
158
|
-
background-color: var(--color-green-600, #417e38);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
162
|
-
&[data-highlighted] {
|
|
163
|
-
color: var(--color-white, #fff);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
.text > span {
|
|
168
|
-
display: flex;
|
|
169
|
-
align-items: center;
|
|
170
|
-
gap: calc(var(--spacing, 0.25rem)*2);
|
|
171
|
-
}
|
|
172
|
-
.text > span > span {
|
|
173
|
-
max-width: calc(var(--spacing, 0.25rem)*64);
|
|
174
|
-
overflow: hidden;
|
|
175
|
-
text-overflow: ellipsis;
|
|
176
|
-
white-space: nowrap;
|
|
177
|
-
text-wrap: wrap;
|
|
178
|
-
}
|
|
179
|
-
.label {
|
|
180
|
-
color: var(--color-neutral-600, #929fa5);
|
|
181
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
182
|
-
color: var(--color-neutral-400, #cbd4d9);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
.dropdown:has(.label) .text > span {
|
|
187
|
-
&:has(svg) > svg {
|
|
188
|
-
margin-left: calc(var(--spacing, 0.25rem)*3);
|
|
189
|
-
}
|
|
190
|
-
&:not(&:has(svg)) > span {
|
|
191
|
-
margin-left: calc(var(--spacing, 0.25rem)*3);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
.inline {
|
|
195
|
-
.trigger {
|
|
196
|
-
height: auto;
|
|
197
|
-
min-width: fit-content;
|
|
198
|
-
padding-inline: calc(var(--spacing, 0.25rem)*2.5);
|
|
199
|
-
padding-block: calc(var(--spacing, 0.25rem)*2);
|
|
200
|
-
font-size: var(--text-sm, 0.875rem);
|
|
201
|
-
line-height: var(--tw-leading, var(--text-sm--line-height, 1.42857));
|
|
202
|
-
--tw-font-weight: var(--font-weight-medium, 500);
|
|
203
|
-
font-weight: var(--font-weight-medium, 500);
|
|
204
|
-
}
|
|
205
|
-
.icon {
|
|
206
|
-
width: calc(var(--spacing, 0.25rem)*4);
|
|
207
|
-
height: calc(var(--spacing, 0.25rem)*4);
|
|
208
|
-
}
|
|
209
|
-
.text {
|
|
210
|
-
color: var(--color-neutral-900, #2c3437);
|
|
211
|
-
&[data-disabled] {
|
|
212
|
-
color: var(--color-neutral-600, #929fa5);
|
|
213
|
-
}
|
|
214
|
-
&[data-highlighted] {
|
|
215
|
-
background-color: var(--color-neutral-100, #f6f7f9);
|
|
216
|
-
}
|
|
217
|
-
&[data-highlighted] {
|
|
218
|
-
color: var(--color-neutral-900, #2c3437);
|
|
219
|
-
}
|
|
220
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
221
|
-
color: var(--color-white, #fff);
|
|
222
|
-
}
|
|
223
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
224
|
-
&[data-disabled] {
|
|
225
|
-
color: var(--color-neutral-700, #6e7b83);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
229
|
-
&[data-highlighted] {
|
|
230
|
-
background-color: var(--color-neutral-900, #2c3437);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
234
|
-
&[data-highlighted] {
|
|
235
|
-
color: var(--color-white, #fff);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
&.dropdown {
|
|
240
|
-
margin-top: calc(var(--spacing, 0.25rem)*1);
|
|
241
|
-
width: calc(100% + 1.5rem);
|
|
242
|
-
border-radius: 0.25rem;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
.scrollIcon {
|
|
246
|
-
margin-inline: auto;
|
|
247
|
-
margin-block: calc(var(--spacing, 0.25rem)*1);
|
|
248
|
-
width: calc(var(--spacing, 0.25rem)*4);
|
|
249
|
-
height: calc(var(--spacing, 0.25rem)*4);
|
|
250
|
-
color: var(--color-neutral-700, #6e7b83);
|
|
251
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
252
|
-
color: var(--color-neutral-200, #e9edf0);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
@property --tw-font-weight {
|
|
256
|
-
syntax: "*";
|
|
257
|
-
inherits: false;
|
|
258
|
-
}
|
|
259
|
-
@property --tw-border-style {
|
|
260
|
-
syntax: "*";
|
|
261
|
-
inherits: false;
|
|
262
|
-
initial-value: solid;
|
|
263
|
-
}
|
|
264
|
-
@property --tw-shadow {
|
|
265
|
-
syntax: "*";
|
|
266
|
-
inherits: false;
|
|
267
|
-
initial-value: 0 0 #0000;
|
|
268
|
-
}
|
|
269
|
-
@property --tw-shadow-color {
|
|
270
|
-
syntax: "*";
|
|
271
|
-
inherits: false;
|
|
272
|
-
}
|
|
273
|
-
@property --tw-shadow-alpha {
|
|
274
|
-
syntax: "<percentage>";
|
|
275
|
-
inherits: false;
|
|
276
|
-
initial-value: 100%;
|
|
277
|
-
}
|
|
278
|
-
@property --tw-inset-shadow {
|
|
279
|
-
syntax: "*";
|
|
280
|
-
inherits: false;
|
|
281
|
-
initial-value: 0 0 #0000;
|
|
282
|
-
}
|
|
283
|
-
@property --tw-inset-shadow-color {
|
|
284
|
-
syntax: "*";
|
|
285
|
-
inherits: false;
|
|
286
|
-
}
|
|
287
|
-
@property --tw-inset-shadow-alpha {
|
|
288
|
-
syntax: "<percentage>";
|
|
289
|
-
inherits: false;
|
|
290
|
-
initial-value: 100%;
|
|
291
|
-
}
|
|
292
|
-
@property --tw-ring-color {
|
|
293
|
-
syntax: "*";
|
|
294
|
-
inherits: false;
|
|
295
|
-
}
|
|
296
|
-
@property --tw-ring-shadow {
|
|
297
|
-
syntax: "*";
|
|
298
|
-
inherits: false;
|
|
299
|
-
initial-value: 0 0 #0000;
|
|
300
|
-
}
|
|
301
|
-
@property --tw-inset-ring-color {
|
|
302
|
-
syntax: "*";
|
|
303
|
-
inherits: false;
|
|
304
|
-
}
|
|
305
|
-
@property --tw-inset-ring-shadow {
|
|
306
|
-
syntax: "*";
|
|
307
|
-
inherits: false;
|
|
308
|
-
initial-value: 0 0 #0000;
|
|
309
|
-
}
|
|
310
|
-
@property --tw-ring-inset {
|
|
311
|
-
syntax: "*";
|
|
312
|
-
inherits: false;
|
|
313
|
-
}
|
|
314
|
-
@property --tw-ring-offset-width {
|
|
315
|
-
syntax: "<length>";
|
|
316
|
-
inherits: false;
|
|
317
|
-
initial-value: 0px;
|
|
318
|
-
}
|
|
319
|
-
@property --tw-ring-offset-color {
|
|
320
|
-
syntax: "*";
|
|
321
|
-
inherits: false;
|
|
322
|
-
initial-value: #fff;
|
|
323
|
-
}
|
|
324
|
-
@property --tw-ring-offset-shadow {
|
|
325
|
-
syntax: "*";
|
|
326
|
-
inherits: false;
|
|
327
|
-
initial-value: 0 0 #0000;
|
|
328
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
4
|
-
import classNames from 'classnames';
|
|
5
|
-
import styles from './index.module.css';
|
|
6
|
-
const Separator = ({ className, orientation = 'horizontal', decorative = true, ...props }) => (_jsx(SeparatorPrimitive.Root, { decorative: decorative, orientation: orientation, className: classNames(styles.root, orientation === 'horizontal' ? styles.horizontal : styles.vertical, className), ...props }));
|
|
7
|
-
export default Separator;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.root {
|
|
3
|
-
flex-shrink: 0;
|
|
4
|
-
background-color: var(--color-neutral-800, #556066);
|
|
5
|
-
&.horizontal {
|
|
6
|
-
height: 1px;
|
|
7
|
-
width: 100%;
|
|
8
|
-
}
|
|
9
|
-
&.vertical {
|
|
10
|
-
height: 100%;
|
|
11
|
-
width: 1px;
|
|
12
|
-
}
|
|
13
|
-
}
|
package/Common/Skeleton/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import { isValidElement } from 'react';
|
|
4
|
-
import styles from './index.module.css';
|
|
5
|
-
const Skeleton = ({ children, className, hide = false, loading = true, }) => {
|
|
6
|
-
// This can be used to completely hide the children after the Skeleton has loaded
|
|
7
|
-
// If certain criterias do not match. This is useful for conditional rendering without
|
|
8
|
-
// changing the actual tree that the Skeleton is wrapping
|
|
9
|
-
if (!loading && hide) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
// If we finished loading, we can hide the Skeleton and render the children tree
|
|
13
|
-
if (!loading) {
|
|
14
|
-
return children;
|
|
15
|
-
}
|
|
16
|
-
return (_jsx("span", { tabIndex: -1, "aria-hidden": "true", className: classNames(styles.skeleton, className), "data-inline-skeleton": isValidElement(children) ? undefined : true, children: children }));
|
|
17
|
-
};
|
|
18
|
-
export default Skeleton;
|