matrix-design-system 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -10
- package/dist/atoms/animation/motion-div/motion-div.d.mts +2 -3
- package/dist/atoms/buttons/button/button.d.mts +2 -3
- package/dist/atoms/buttons/button/button.mjs +1 -1
- package/dist/atoms/buttons/switch/switch.d.mts +2 -3
- package/dist/atoms/buttons/switch/switch.mjs +2 -2
- package/dist/atoms/call-to-actions/call-to-action-external-with-tracking/call-to-action-external-with-tracking.d.mts +2 -3
- package/dist/atoms/call-to-actions/call-to-action-internal-with-tracking/call-to-action-internal-with-tracking.d.mts +3 -4
- package/dist/atoms/chip/chip.d.mts +3 -4
- package/dist/atoms/chip/chip.mjs +1 -1
- package/dist/atoms/effects/glassmorphism-background/glassmorphism-background.d.mts +2 -3
- package/dist/atoms/effects/image-glow/image-glow.d.mts +3 -4
- package/dist/atoms/effects/image-shimmer-placeholder/image-shimmer-placeholder.d.mts +2 -3
- package/dist/atoms/effects/matrix-rain/matrix-rain/matrix-rain.d.mts +2 -3
- package/dist/atoms/effects/overlay/overlay.d.mts +3 -4
- package/dist/atoms/effects/overlay/overlay.mjs +1 -1
- package/dist/atoms/effects/pills/pills.d.mts +4 -5
- package/dist/atoms/effects/plain-image/plain-image.d.mts +6 -7
- package/dist/atoms/icons/chat-icon/chat-icon.d.mts +2 -3
- package/dist/atoms/icons/chat-icon/chat-icon.mjs +1 -1
- package/dist/atoms/icons/copy-icon/copy-icon.d.mts +4 -5
- package/dist/atoms/icons/rounded-icon/rounded-icon.d.mts +2 -3
- package/dist/atoms/links/anchor-link/anchor-link.d.mts +5 -6
- package/dist/atoms/links/external-link/external-link.d.mts +2 -3
- package/dist/atoms/links/internal-link/internal-link.d.mts +3 -4
- package/dist/atoms/loader/loader/loader.d.mts +2 -3
- package/dist/atoms/loader/loader/loader.mjs +1 -1
- package/dist/atoms/typography/input-field/input-field.d.mts +2 -3
- package/dist/atoms/typography/label/label.d.mts +3 -4
- package/dist/atoms/typography/markdown/markdown.d.mts +3 -4
- package/dist/atoms/typography/terminal-blocks/terminal-blocks.d.mts +8 -9
- package/dist/atoms/typography/terminal-blocks/terminal-blocks.mjs +3 -3
- package/dist/atoms/typography/textarea/textarea.d.mts +2 -3
- package/dist/hooks/use-clipboard-available.d.mts +2 -3
- package/dist/hooks/use-device-capabilities.d.mts +2 -3
- package/dist/hooks/use-glassmorphism.d.mts +2 -3
- package/dist/hooks/use-in-view-list.d.mts +2 -3
- package/dist/hooks/use-in-view.d.mts +2 -3
- package/dist/hooks/use-is-ios.d.mts +2 -3
- package/dist/hooks/use-lock-body-scroll.d.mts +2 -3
- package/dist/hooks/use-matrix-settings-store.d.mts +2 -3
- package/dist/hooks/use-motion-store.d.mts +2 -3
- package/dist/hooks/use-os-modifier-key.d.mts +3 -4
- package/dist/hooks/use-reading-progress.d.mts +2 -3
- package/dist/hooks/use-reduced-motions.d.mts +2 -3
- package/dist/hooks/use-scroll-direction.d.mts +3 -4
- package/dist/hooks/use-typewriter.d.mts +3 -4
- package/dist/hooks/use-webgpu-supported.d.mts +2 -3
- package/dist/molecules/accordion/accordion/accordion.d.mts +2 -3
- package/dist/molecules/breadcrumbs/breadcrumb/breadcrumb.d.mts +4 -5
- package/dist/molecules/breadcrumbs/breadcrumb/breadcrumb.mjs +5 -5
- package/dist/molecules/buttons/pagination-navigation/pagination-navigation.d.mts +3 -4
- package/dist/molecules/buttons/pills-buttons/pills-buttons.d.mts +3 -4
- package/dist/molecules/buttons/pills-buttons/pills-buttons.mjs +2 -2
- package/dist/molecules/buttons/segmented-control/segmented-control.d.mts +3 -4
- package/dist/molecules/buttons/segmented-control/segmented-control.mjs +2 -2
- package/dist/molecules/buttons/social-contact/social-contact.d.mts +3 -4
- package/dist/molecules/buttons/tag/tag.d.mts +3 -4
- package/dist/molecules/buttons/terminal-button/terminal-button.d.mts +3 -4
- package/dist/molecules/buttons/terminal-button/terminal-button.mjs +2 -2
- package/dist/molecules/chart/chart-panel/chart-panel.d.mts +3 -4
- package/dist/molecules/chart/chart-tooltip/chart-tooltip.d.mts +3 -4
- package/dist/molecules/chart/donut-chart/donut-chart.d.mts +3 -4
- package/dist/molecules/chart/donut-chart/donut-chart.mjs +1 -1
- package/dist/molecules/containers/content-container/content-container.d.mts +2 -3
- package/dist/molecules/containers/content-container/content-container.mjs +1 -1
- package/dist/molecules/controls/control-slider/control-slider.d.mts +2 -3
- package/dist/molecules/controls/control-slider/control-slider.mjs +2 -2
- package/dist/molecules/effects/matrix-background/matrix-background.d.mts +2 -3
- package/dist/molecules/effects/matrix-background/matrix-background.mjs +3 -3
- package/dist/molecules/effects/matrix-header-background/matrix-header-background.d.mts +2 -3
- package/dist/molecules/effects/matrix-header-background/matrix-header-background.mjs +2 -2
- package/dist/molecules/effects/matrix-terminal/matrix-terminal.d.mts +2 -3
- package/dist/molecules/effects/matrix-terminal/matrix-terminal.mjs +1 -1
- package/dist/molecules/form/filter-input/filter-input.d.mts +3 -4
- package/dist/molecules/form/form-error-summary/form-error-summary.d.mts +3 -4
- package/dist/molecules/form/form-field/form-field.d.mts +3 -4
- package/dist/molecules/form/form-success-message/form-success-message.d.mts +3 -4
- package/dist/molecules/form/form-success-message/form-success-message.mjs +2 -2
- package/dist/molecules/form/form-textarea/form-textarea.d.mts +3 -4
- package/dist/molecules/lightbox-image/lightbox-image.d.mts +2 -3
- package/dist/molecules/links/pills-links/pills-links.d.mts +4 -5
- package/dist/molecules/menu/close/close.d.mts +2 -3
- package/dist/molecules/menu/close/close.mjs +1 -1
- package/dist/molecules/menu/dropdown-menu/dropdown-menu.d.mts +3 -4
- package/dist/molecules/menu/dropdown-menu/dropdown-menu.mjs +3 -3
- package/dist/molecules/menu/hamburger-menu/hamburger-menu.d.mts +2 -3
- package/dist/molecules/menu/menu-item/menu-item.d.mts +3 -4
- package/dist/molecules/stat-card/stat-card.d.mts +3 -4
- package/dist/molecules/stat-card/stat-card.mjs +3 -3
- package/dist/molecules/terminal-list-item/terminal-list-item.d.mts +3 -4
- package/dist/molecules/terminal-progress-bar/terminal-progress-bar.d.mts +2 -3
- package/dist/molecules/typography/page-title/page-title.d.mts +2 -3
- package/dist/molecules/typography/paragraph-title-with-icon/paragraph-title-with-icon.d.mts +2 -3
- package/dist/molecules/typography/section-heading/section-heading.d.mts +3 -4
- package/dist/molecules/typography/section-heading/section-heading.mjs +1 -1
- package/dist/molecules/video/self-hosted-video/self-hosted-video.d.mts +2 -3
- package/dist/molecules/video/self-hosted-video/self-hosted-video.mjs +1 -2
- package/dist/molecules/video/youtube/youtube.d.mts +2 -3
- package/dist/organism/command-palette/command-palette/command-palette.d.mts +3 -4
- package/dist/organism/command-palette/command-palette-group/command-palette-group.d.mts +3 -4
- package/dist/organism/command-palette/command-palette-item/command-palette-item.d.mts +3 -4
- package/dist/organism/command-palette/toggle-motion-item/toggle-motion-item.d.mts +3 -4
- package/dist/organism/cookie-consent-banner/cookie-consent-banner.d.mts +2 -3
- package/dist/organism/cookie-consent-banner/cookie-consent-banner.mjs +4 -4
- package/dist/organism/footer/footer.d.mts +4 -4
- package/dist/organism/footer/footer.mjs +3 -3
- package/dist/organism/footer/use-footer-store.d.mts +3 -4
- package/dist/organism/header/brand-header/brand-header.d.mts +3 -4
- package/dist/organism/header/brand-header/brand-header.mjs +1 -1
- package/dist/organism/image-carousel/fullscreen-modal/fullscreen-modal.mjs +1 -1
- package/dist/organism/image-carousel/image-carousel.d.mts +3 -4
- package/dist/organism/image-carousel/image-carousel.mjs +2 -2
- package/dist/organism/image-carousel/navigation-buttons/navigation-buttons.mjs +2 -2
- package/dist/organism/lightbox/lightbox.d.mts +2 -3
- package/dist/organism/loading-bar/loading-bar.d.mts +2 -3
- package/dist/organism/menu/menu.d.mts +4 -5
- package/dist/organism/menu/menu.mjs +10 -10
- package/dist/organism/menu/use-menu-store.d.mts +2 -3
- package/dist/organism/profile-hero/profile-hero.d.mts +3 -4
- package/dist/organism/profile-photo/profile-photo.d.mts +3 -4
- package/dist/organism/profile-photo/profile-photo.mjs +1 -1
- package/dist/organism/reading-content-progress-bar/reading-content-progress-bar.d.mts +2 -3
- package/dist/organism/social-contacts/social-contacts.d.mts +4 -5
- package/dist/state/command-palette/command-palette-context.d.mts +3 -4
- package/dist/state/command-palette/command-palette-events.d.mts +5 -6
- package/dist/state/command-palette/command-palette-trigger.d.mts +2 -3
- package/dist/state/lightbox/lightbox-events.d.mts +4 -5
- package/dist/state/matrix-rain/matrix-settings.d.mts +9 -10
- package/dist/state/motion/motion.d.mts +4 -5
- package/package.json +23 -22
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
//#region src/hooks/use-scroll-direction.d.ts
|
|
2
|
-
declare enum ScrollDirection {
|
|
2
|
+
export declare enum ScrollDirection {
|
|
3
3
|
up = "up",
|
|
4
4
|
down = "down"
|
|
5
5
|
}
|
|
6
|
-
declare const useScrollDirection: () => ScrollDirection;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ScrollDirection, useScrollDirection };
|
|
6
|
+
export declare const useScrollDirection: () => ScrollDirection;
|
|
7
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/hooks/use-typewriter.d.ts
|
|
2
2
|
interface TypewriterLine {
|
|
3
3
|
text: string;
|
|
4
|
-
type?:
|
|
4
|
+
type?: "normal" | "error" | "success" | "quote";
|
|
5
5
|
delay?: number;
|
|
6
6
|
}
|
|
7
7
|
interface TypewriterState {
|
|
@@ -10,6 +10,5 @@ interface TypewriterState {
|
|
|
10
10
|
currentText: string;
|
|
11
11
|
isComplete: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare const useTypewriter: (lines: TypewriterLine[], speed?: number, shouldStart?: boolean) => TypewriterState;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { useTypewriter };
|
|
13
|
+
export declare const useTypewriter: (lines: TypewriterLine[], speed?: number, shouldStart?: boolean) => TypewriterState;
|
|
14
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { LinkComponent } from "../../../atoms/links/anchor-link/anchor-link.mjs"
|
|
|
2
2
|
import "../../../atoms/links/anchor-link/index.mjs";
|
|
3
3
|
import { FC } from "react";
|
|
4
4
|
//#region src/molecules/breadcrumbs/breadcrumb/breadcrumb.d.ts
|
|
5
|
-
type BreadcrumbItem = {
|
|
5
|
+
export type BreadcrumbItem = {
|
|
6
6
|
label: string;
|
|
7
7
|
href: string;
|
|
8
8
|
isCurrent: false;
|
|
@@ -12,10 +12,9 @@ type BreadcrumbItem = {
|
|
|
12
12
|
href: string;
|
|
13
13
|
isCurrent: true;
|
|
14
14
|
};
|
|
15
|
-
interface BreadcrumbProps {
|
|
15
|
+
export interface BreadcrumbProps {
|
|
16
16
|
items: BreadcrumbItem[];
|
|
17
17
|
linkComponent?: LinkComponent;
|
|
18
18
|
}
|
|
19
|
-
declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { Breadcrumb, BreadcrumbItem, BreadcrumbProps };
|
|
19
|
+
export declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
20
|
+
//#endregion
|
|
@@ -17,7 +17,7 @@ const BreadcrumbContent = (t0) => {
|
|
|
17
17
|
children: /* @__PURE__ */ jsxs("li", {
|
|
18
18
|
className: "flex min-w-0 items-center",
|
|
19
19
|
children: [/* @__PURE__ */ jsx("span", {
|
|
20
|
-
className: "text-secondary
|
|
20
|
+
className: "text-secondary mr-1.5 shrink-0 text-sm select-none",
|
|
21
21
|
"aria-hidden": "true",
|
|
22
22
|
children: /* @__PURE__ */ jsx(IoMdArrowRoundBack, {})
|
|
23
23
|
}), /* @__PURE__ */ jsx(InternalLink, {
|
|
@@ -40,7 +40,7 @@ const BreadcrumbContent = (t0) => {
|
|
|
40
40
|
t3 = (item, index) => /* @__PURE__ */ jsxs("li", {
|
|
41
41
|
className: `flex items-center text-sm ${item.isCurrent ? "min-w-0 shrink" : "shrink-0"}`,
|
|
42
42
|
children: [index > 0 && /* @__PURE__ */ jsx("span", {
|
|
43
|
-
className: "text-secondary
|
|
43
|
+
className: "text-secondary mx-1.5 shrink-0 text-sm select-none",
|
|
44
44
|
"aria-hidden": "true",
|
|
45
45
|
children: ">"
|
|
46
46
|
}), item.isCurrent ? /* @__PURE__ */ jsx("span", {
|
|
@@ -51,7 +51,7 @@ const BreadcrumbContent = (t0) => {
|
|
|
51
51
|
linkComponent,
|
|
52
52
|
to: item.href,
|
|
53
53
|
onClick: item.onClick,
|
|
54
|
-
className: "block truncate py-2 whitespace-nowrap
|
|
54
|
+
className: "block truncate py-2 text-sm whitespace-nowrap",
|
|
55
55
|
children: item.label
|
|
56
56
|
})]
|
|
57
57
|
}, item.href);
|
|
@@ -66,7 +66,7 @@ const BreadcrumbContent = (t0) => {
|
|
|
66
66
|
let t3;
|
|
67
67
|
if ($[8] !== t2) {
|
|
68
68
|
t3 = /* @__PURE__ */ jsx("ol", {
|
|
69
|
-
className: "hidden min-w-0 flex-row flex-nowrap items-center overflow-hidden sm:flex
|
|
69
|
+
className: "hidden min-w-0 flex-row flex-nowrap items-center overflow-hidden text-sm sm:flex",
|
|
70
70
|
children: t2
|
|
71
71
|
});
|
|
72
72
|
$[8] = t2;
|
|
@@ -113,7 +113,7 @@ const Breadcrumb = (t0) => {
|
|
|
113
113
|
$[6] = t2;
|
|
114
114
|
} else t2 = $[6];
|
|
115
115
|
const t3 = !isVisible;
|
|
116
|
-
const t4 = `${glassmorphismClass} container-fixed fixed top-17
|
|
116
|
+
const t4 = `${glassmorphismClass} container-fixed fixed top-17 right-0 left-0 z-55 px-3 py-1 font-mono text-sm sm:top-19`;
|
|
117
117
|
const t5 = isVisible ? 0 : -200;
|
|
118
118
|
const t6 = isVisible ? "auto" : "none";
|
|
119
119
|
let t7;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
//#region src/molecules/buttons/pagination-navigation/pagination-navigation.d.ts
|
|
3
|
-
interface PageNavigationProps {
|
|
3
|
+
export interface PageNavigationProps {
|
|
4
4
|
previousPageUrl: string | undefined;
|
|
5
5
|
onPreviousClick?: () => void;
|
|
6
6
|
nextPageUrl: string | undefined;
|
|
7
7
|
onNextClick?: () => void;
|
|
8
8
|
}
|
|
9
|
-
declare const PaginationNavigation: FC<PageNavigationProps>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { PageNavigationProps, PaginationNavigation };
|
|
9
|
+
export declare const PaginationNavigation: FC<PageNavigationProps>;
|
|
10
|
+
//#endregion
|
|
@@ -4,7 +4,6 @@ type PillProps = PropsWithChildren<{
|
|
|
4
4
|
onClick: () => void;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
}>;
|
|
7
|
-
declare const RedPillButton: FC<PillProps>;
|
|
8
|
-
declare const BluePillButton: FC<PillProps>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { BluePillButton, RedPillButton };
|
|
7
|
+
export declare const RedPillButton: FC<PillProps>;
|
|
8
|
+
export declare const BluePillButton: FC<PillProps>;
|
|
9
|
+
//#endregion
|
|
@@ -15,7 +15,7 @@ const RedPillButton = (t0) => {
|
|
|
15
15
|
let t2;
|
|
16
16
|
if ($[2] !== disabled || $[3] !== onClick || $[4] !== t1) {
|
|
17
17
|
t2 = /* @__PURE__ */ jsx("button", {
|
|
18
|
-
className: "
|
|
18
|
+
className: "cursor-pointer border-none bg-transparent p-0",
|
|
19
19
|
onClick,
|
|
20
20
|
disabled,
|
|
21
21
|
children: t1
|
|
@@ -39,7 +39,7 @@ const BluePillButton = (t0) => {
|
|
|
39
39
|
let t2;
|
|
40
40
|
if ($[2] !== disabled || $[3] !== onClick || $[4] !== t1) {
|
|
41
41
|
t2 = /* @__PURE__ */ jsx("button", {
|
|
42
|
-
className: "
|
|
42
|
+
className: "cursor-pointer border-none bg-transparent p-0",
|
|
43
43
|
onClick,
|
|
44
44
|
disabled,
|
|
45
45
|
children: t1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/molecules/buttons/segmented-control/segmented-control.d.ts
|
|
2
|
-
type SegmentOption<T extends string> = {
|
|
2
|
+
export type SegmentOption<T extends string> = {
|
|
3
3
|
label: string;
|
|
4
4
|
value: T;
|
|
5
5
|
};
|
|
@@ -8,6 +8,5 @@ type SegmentedControlProps<T extends string> = {
|
|
|
8
8
|
value: T;
|
|
9
9
|
onChange: (value: T) => void;
|
|
10
10
|
};
|
|
11
|
-
declare const SegmentedControl: <T extends string>({ options, value, onChange }: SegmentedControlProps<T>) => import("react
|
|
12
|
-
//#endregion
|
|
13
|
-
export { SegmentOption, SegmentedControl };
|
|
11
|
+
export declare const SegmentedControl: <T extends string>({ options, value, onChange }: SegmentedControlProps<T>) => import("react").JSX.Element;
|
|
12
|
+
//#endregion
|
|
@@ -17,7 +17,7 @@ const SegmentedControl = (t0) => {
|
|
|
17
17
|
const isActive = option.value === value;
|
|
18
18
|
return /* @__PURE__ */ jsx("button", {
|
|
19
19
|
onClick: triggerChange(option.value),
|
|
20
|
-
className: `cursor-pointer rounded-full px-5 py-2 text-sm font-medium transition-all duration-200
|
|
20
|
+
className: `cursor-pointer rounded-full border-none px-5 py-2 text-sm font-medium transition-all duration-200 ${isActive ? "bg-accent text-text-above-primary" : "hover:bg-white/10"}`,
|
|
21
21
|
children: option.label
|
|
22
22
|
}, option.value);
|
|
23
23
|
};
|
|
@@ -34,7 +34,7 @@ const SegmentedControl = (t0) => {
|
|
|
34
34
|
let t2;
|
|
35
35
|
if ($[7] !== t1) {
|
|
36
36
|
t2 = /* @__PURE__ */ jsx(GlassmorphismBackground, {
|
|
37
|
-
className: "rounded-full p-1!
|
|
37
|
+
className: "gap-1 rounded-full p-1!",
|
|
38
38
|
children: t1
|
|
39
39
|
});
|
|
40
40
|
$[7] = t1;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { FC, ReactElement } from "react";
|
|
2
2
|
//#region src/molecules/buttons/social-contact/social-contact.d.ts
|
|
3
|
-
interface SocialContactProps {
|
|
3
|
+
export interface SocialContactProps {
|
|
4
4
|
link: string;
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
icon: ReactElement;
|
|
7
7
|
}
|
|
8
|
-
declare const SocialContact: FC<SocialContactProps>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { SocialContact, SocialContactProps };
|
|
8
|
+
export declare const SocialContact: FC<SocialContactProps>;
|
|
9
|
+
//#endregion
|
|
@@ -5,13 +5,12 @@ import { FC } from "react";
|
|
|
5
5
|
interface TagContentProps {
|
|
6
6
|
big: boolean;
|
|
7
7
|
}
|
|
8
|
-
type TagProps = TagContentProps & {
|
|
8
|
+
export type TagProps = TagContentProps & {
|
|
9
9
|
link: string;
|
|
10
10
|
tag: string;
|
|
11
11
|
prefetch?: PrefetchStrategy;
|
|
12
12
|
onClick?: () => void;
|
|
13
13
|
linkComponent?: LinkComponent;
|
|
14
14
|
};
|
|
15
|
-
declare const Tag: FC<TagProps>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { Tag, TagProps };
|
|
15
|
+
export declare const Tag: FC<TagProps>;
|
|
16
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { LinkComponent } from "../../../atoms/links/anchor-link/anchor-link.mjs"
|
|
|
2
2
|
import "../../../atoms/links/anchor-link/index.mjs";
|
|
3
3
|
import { FC } from "react";
|
|
4
4
|
//#region src/molecules/buttons/terminal-button/terminal-button.d.ts
|
|
5
|
-
interface TerminalButtonProps {
|
|
5
|
+
export interface TerminalButtonProps {
|
|
6
6
|
label: string;
|
|
7
7
|
to?: string;
|
|
8
8
|
onClick?: () => void;
|
|
@@ -10,6 +10,5 @@ interface TerminalButtonProps {
|
|
|
10
10
|
ariaExpanded?: boolean;
|
|
11
11
|
linkComponent?: LinkComponent;
|
|
12
12
|
}
|
|
13
|
-
declare const TerminalButton: FC<TerminalButtonProps>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { TerminalButton, TerminalButtonProps };
|
|
13
|
+
export declare const TerminalButton: FC<TerminalButtonProps>;
|
|
14
|
+
//#endregion
|
|
@@ -19,7 +19,7 @@ const TerminalButton = ({ label, to, onClick, className, ariaExpanded, linkCompo
|
|
|
19
19
|
onClick,
|
|
20
20
|
className: "font-mono text-lg no-underline hover:no-underline",
|
|
21
21
|
children: /* @__PURE__ */ jsx("span", {
|
|
22
|
-
className: "text-shadow-sm
|
|
22
|
+
className: "text-accent text-shadow-sm",
|
|
23
23
|
children: /* @__PURE__ */ jsx(TerminalContent, { label })
|
|
24
24
|
})
|
|
25
25
|
})
|
|
@@ -29,7 +29,7 @@ const TerminalButton = ({ label, to, onClick, className, ariaExpanded, linkCompo
|
|
|
29
29
|
"aria-expanded": ariaExpanded,
|
|
30
30
|
className: buttonClassName,
|
|
31
31
|
children: /* @__PURE__ */ jsx("span", {
|
|
32
|
-
className: "font-mono text-lg text-shadow-sm
|
|
32
|
+
className: "text-accent font-mono text-lg text-shadow-sm",
|
|
33
33
|
children: /* @__PURE__ */ jsx(TerminalContent, { label })
|
|
34
34
|
})
|
|
35
35
|
});
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
2
|
//#region src/molecules/chart/chart-panel/chart-panel.d.ts
|
|
3
|
-
interface ChartPanelProps {
|
|
3
|
+
export interface ChartPanelProps {
|
|
4
4
|
title?: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const ChartPanel: FC<PropsWithChildren<ChartPanelProps>>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { ChartPanel, ChartPanelProps };
|
|
7
|
+
export declare const ChartPanel: FC<PropsWithChildren<ChartPanelProps>>;
|
|
8
|
+
//#endregion
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { TooltipContentProps } from "recharts";
|
|
2
2
|
//#region src/molecules/chart/chart-tooltip/chart-tooltip.d.ts
|
|
3
|
-
interface ChartTooltipProps extends Partial<TooltipContentProps> {
|
|
3
|
+
export interface ChartTooltipProps extends Partial<TooltipContentProps> {
|
|
4
4
|
labelPrefix?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const ChartTooltip: ({ active, payload, label, labelPrefix }: ChartTooltipProps) => import("react
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ChartTooltip, ChartTooltipProps };
|
|
6
|
+
export declare const ChartTooltip: ({ active, payload, label, labelPrefix }: ChartTooltipProps) => import("react").JSX.Element | null;
|
|
7
|
+
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
//#region src/molecules/chart/donut-chart/donut-chart.d.ts
|
|
3
|
-
interface DonutDatum {
|
|
3
|
+
export interface DonutDatum {
|
|
4
4
|
label: string;
|
|
5
5
|
value: number;
|
|
6
6
|
}
|
|
@@ -10,6 +10,5 @@ interface DonutChartProps {
|
|
|
10
10
|
centerLabel?: string;
|
|
11
11
|
centerSublabel?: string;
|
|
12
12
|
}
|
|
13
|
-
declare const DonutChart: FC<DonutChartProps>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { DonutChart, DonutDatum };
|
|
13
|
+
export declare const DonutChart: FC<DonutChartProps>;
|
|
14
|
+
//#endregion
|
|
@@ -62,7 +62,7 @@ const DonutChart = (t0) => {
|
|
|
62
62
|
t5 = centerLabel && /* @__PURE__ */ jsxs("div", {
|
|
63
63
|
className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center text-center",
|
|
64
64
|
children: [/* @__PURE__ */ jsx("span", {
|
|
65
|
-
className: "text-accent text-
|
|
65
|
+
className: "text-accent text-lg font-bold tabular-nums text-shadow-md",
|
|
66
66
|
children: centerLabel
|
|
67
67
|
}), centerSublabel && /* @__PURE__ */ jsx("span", {
|
|
68
68
|
className: "text-secondary text-xs",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
2
|
//#region src/molecules/containers/content-container/content-container.d.ts
|
|
3
|
-
declare const ContentContainer: FC<PropsWithChildren>;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { ContentContainer };
|
|
3
|
+
export declare const ContentContainer: FC<PropsWithChildren>;
|
|
4
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
//#region src/molecules/containers/content-container/content-container.tsx
|
|
3
3
|
const ContentContainer = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
4
|
-
className: "container-fixed flex-1 basis-auto
|
|
4
|
+
className: "container-fixed mt-13 mb-8 flex-1 basis-auto",
|
|
5
5
|
children
|
|
6
6
|
});
|
|
7
7
|
//#endregion
|
|
@@ -9,6 +9,5 @@ interface ControlSliderProps {
|
|
|
9
9
|
onChange: (v: number) => void;
|
|
10
10
|
displayValue?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const ControlSlider: FC<ControlSliderProps>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { ControlSlider };
|
|
12
|
+
export declare const ControlSlider: FC<ControlSliderProps>;
|
|
13
|
+
//#endregion
|
|
@@ -28,7 +28,7 @@ const ControlSlider = (t0) => {
|
|
|
28
28
|
let t4;
|
|
29
29
|
if ($[4] !== t1 || $[5] !== t3) {
|
|
30
30
|
t4 = /* @__PURE__ */ jsxs("div", {
|
|
31
|
-
className: "flex justify-between
|
|
31
|
+
className: "flex items-center justify-between",
|
|
32
32
|
children: [t1, t3]
|
|
33
33
|
});
|
|
34
34
|
$[4] = t1;
|
|
@@ -51,7 +51,7 @@ const ControlSlider = (t0) => {
|
|
|
51
51
|
step,
|
|
52
52
|
value,
|
|
53
53
|
onChange: t5,
|
|
54
|
-
className: "w-full
|
|
54
|
+
className: "accent-accent w-full cursor-pointer"
|
|
55
55
|
});
|
|
56
56
|
$[10] = max;
|
|
57
57
|
$[11] = min;
|
|
@@ -3,6 +3,5 @@ import { FC, ReactNode } from "react";
|
|
|
3
3
|
interface ContainerFullscreenWithMatrixProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
declare const MatrixBackground: FC<ContainerFullscreenWithMatrixProps>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { MatrixBackground };
|
|
6
|
+
export declare const MatrixBackground: FC<ContainerFullscreenWithMatrixProps>;
|
|
7
|
+
//#endregion
|
|
@@ -2,12 +2,12 @@ import { MatrixRain } from "../../../atoms/effects/matrix-rain/matrix-rain/matri
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
//#region src/molecules/effects/matrix-background/matrix-background.tsx
|
|
4
4
|
const MatrixBackground = ({ children }) => /* @__PURE__ */ jsxs("div", {
|
|
5
|
-
className: "relative flex
|
|
5
|
+
className: "relative flex h-dvh min-h-dvh w-full flex-col items-center justify-center",
|
|
6
6
|
children: [/* @__PURE__ */ jsx("div", {
|
|
7
|
-
className: "absolute top-0 left-0
|
|
7
|
+
className: "absolute top-0 left-0 h-full w-full overflow-hidden",
|
|
8
8
|
children: /* @__PURE__ */ jsx(MatrixRain, {})
|
|
9
9
|
}), /* @__PURE__ */ jsx("div", {
|
|
10
|
-
className: "relative z-10 flex
|
|
10
|
+
className: "relative z-10 flex h-full w-full snap-start flex-col items-center justify-center",
|
|
11
11
|
children
|
|
12
12
|
})]
|
|
13
13
|
});
|
|
@@ -3,6 +3,5 @@ import { FC } from "react";
|
|
|
3
3
|
interface MatrixHeaderBackgroundProps {
|
|
4
4
|
big: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const MatrixHeaderBackground: FC<MatrixHeaderBackgroundProps>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { MatrixHeaderBackground };
|
|
6
|
+
export declare const MatrixHeaderBackground: FC<MatrixHeaderBackgroundProps>;
|
|
7
|
+
//#endregion
|
|
@@ -3,9 +3,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
//#region src/molecules/effects/matrix-header-background/matrix-header-background.tsx
|
|
4
4
|
const MatrixHeaderBackground = ({ big }) => {
|
|
5
5
|
return /* @__PURE__ */ jsx("div", {
|
|
6
|
-
className: `absolute -z-10 ${big ? "h-[350px] sm:h-[400px] md:h-[500px]" : "h-[240px] sm:h-[250px] md:h-[270px]"} top-0
|
|
6
|
+
className: `absolute -z-10 ${big ? "h-[350px] sm:h-[400px] md:h-[500px]" : "h-[240px] sm:h-[250px] md:h-[270px]"} border-accent top-0 right-0 left-0 overflow-hidden border-b-2 border-solid shadow-lg`,
|
|
7
7
|
children: /* @__PURE__ */ jsx("div", {
|
|
8
|
-
className: "absolute top-0
|
|
8
|
+
className: "remove-scroll-width absolute top-0 right-0 bottom-0 left-0",
|
|
9
9
|
children: /* @__PURE__ */ jsx(MatrixRain, {})
|
|
10
10
|
})
|
|
11
11
|
});
|
|
@@ -10,6 +10,5 @@ interface MatrixTerminalProps {
|
|
|
10
10
|
onComplete?: () => void;
|
|
11
11
|
widthClassName?: string;
|
|
12
12
|
}
|
|
13
|
-
declare const MatrixTerminal: FC<MatrixTerminalProps>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { MatrixTerminal };
|
|
13
|
+
export declare const MatrixTerminal: FC<MatrixTerminalProps>;
|
|
14
|
+
//#endregion
|
|
@@ -29,7 +29,7 @@ const MatrixTerminal = (t0) => {
|
|
|
29
29
|
const { state } = useMatrixTerminalStore(lines, onComplete);
|
|
30
30
|
const { containerRef, completedLines, currentLine, currentText } = state;
|
|
31
31
|
const { glassmorphismClass } = useGlassmorphism();
|
|
32
|
-
const t2 = `${glassmorphismClass} ${widthClassName}
|
|
32
|
+
const t2 = `${glassmorphismClass} ${widthClassName} min-h-[150px] p-4 sm:min-h-[200px]`;
|
|
33
33
|
let t3;
|
|
34
34
|
let t4;
|
|
35
35
|
let t5;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ChangeEvent, FC } from "react";
|
|
2
2
|
//#region src/molecules/form/filter-input/filter-input.d.ts
|
|
3
|
-
interface FilterInputProps {
|
|
3
|
+
export interface FilterInputProps {
|
|
4
4
|
value: string;
|
|
5
5
|
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
}
|
|
8
|
-
declare const FilterInput: FC<FilterInputProps>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { FilterInput, FilterInputProps };
|
|
8
|
+
export declare const FilterInput: FC<FilterInputProps>;
|
|
9
|
+
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
//#region src/molecules/form/form-error-summary/form-error-summary.d.ts
|
|
3
|
-
interface FormErrorSummaryProps {
|
|
3
|
+
export interface FormErrorSummaryProps {
|
|
4
4
|
errorsList?: Record<string, string>;
|
|
5
5
|
errorName?: string;
|
|
6
6
|
show: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const FormErrorSummary: FC<FormErrorSummaryProps>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { FormErrorSummary, FormErrorSummaryProps };
|
|
8
|
+
export declare const FormErrorSummary: FC<FormErrorSummaryProps>;
|
|
9
|
+
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { FC, InputHTMLAttributes, ReactElement } from "react";
|
|
2
2
|
//#region src/molecules/form/form-field/form-field.d.ts
|
|
3
|
-
interface FormFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "className"> {
|
|
3
|
+
export interface FormFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "className"> {
|
|
4
4
|
label: string;
|
|
5
5
|
icon: ReactElement;
|
|
6
6
|
hasError?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const FormField: FC<FormFieldProps>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { FormField, FormFieldProps };
|
|
8
|
+
export declare const FormField: FC<FormFieldProps>;
|
|
9
|
+
//#endregion
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
//#region src/molecules/form/form-success-message/form-success-message.d.ts
|
|
3
|
-
interface FormSuccessMessageProps {
|
|
3
|
+
export interface FormSuccessMessageProps {
|
|
4
4
|
message: string;
|
|
5
5
|
}
|
|
6
|
-
declare const FormSuccessMessage: FC<FormSuccessMessageProps>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { FormSuccessMessage, FormSuccessMessageProps };
|
|
6
|
+
export declare const FormSuccessMessage: FC<FormSuccessMessageProps>;
|
|
7
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { BiCheckCircle } from "react-icons/bi";
|
|
3
3
|
//#region src/molecules/form/form-success-message/form-success-message.tsx
|
|
4
4
|
const FormSuccessMessage = ({ message }) => /* @__PURE__ */ jsx("div", {
|
|
5
|
-
className: "glow-container
|
|
5
|
+
className: "glow-container border-accent-color bg-accent-color/10 rounded-lg border p-6",
|
|
6
6
|
children: /* @__PURE__ */ jsxs("div", {
|
|
7
7
|
className: "flex items-center gap-4",
|
|
8
8
|
children: [/* @__PURE__ */ jsx(BiCheckCircle, {
|
|
@@ -11,7 +11,7 @@ const FormSuccessMessage = ({ message }) => /* @__PURE__ */ jsx("div", {
|
|
|
11
11
|
}), /* @__PURE__ */ jsx("div", {
|
|
12
12
|
className: "flex flex-col gap-2",
|
|
13
13
|
children: /* @__PURE__ */ jsx("p", {
|
|
14
|
-
className: "text-accent text-lg font-bold
|
|
14
|
+
className: "text-accent text-lg leading-relaxed font-bold",
|
|
15
15
|
children: message
|
|
16
16
|
})
|
|
17
17
|
})]
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { FC, ReactElement, TextareaHTMLAttributes } from "react";
|
|
2
2
|
//#region src/molecules/form/form-textarea/form-textarea.d.ts
|
|
3
|
-
interface FormTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "className"> {
|
|
3
|
+
export interface FormTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "className"> {
|
|
4
4
|
label: string;
|
|
5
5
|
icon: ReactElement;
|
|
6
6
|
hasError?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const FormTextarea: FC<FormTextareaProps>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { FormTextarea, FormTextareaProps };
|
|
8
|
+
export declare const FormTextarea: FC<FormTextareaProps>;
|
|
9
|
+
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC } from "react";
|
|
2
2
|
//#region src/molecules/lightbox-image/lightbox-image.d.ts
|
|
3
3
|
type LightboxImageProps = ComponentPropsWithoutRef<"img">;
|
|
4
|
-
declare const LightboxImage: FC<LightboxImageProps>;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { LightboxImage };
|
|
4
|
+
export declare const LightboxImage: FC<LightboxImageProps>;
|
|
5
|
+
//#endregion
|
|
@@ -2,12 +2,11 @@ import { LinkComponent } from "../../../atoms/links/anchor-link/anchor-link.mjs"
|
|
|
2
2
|
import "../../../atoms/links/anchor-link/index.mjs";
|
|
3
3
|
import { FC, PropsWithChildren } from "react";
|
|
4
4
|
//#region src/molecules/links/pills-links/pills-links.d.ts
|
|
5
|
-
type PillProps = PropsWithChildren<{
|
|
5
|
+
export type PillProps = PropsWithChildren<{
|
|
6
6
|
to: string;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
linkComponent?: LinkComponent;
|
|
9
9
|
}>;
|
|
10
|
-
declare const RedPillLink: FC<PillProps>;
|
|
11
|
-
declare const BluePillLink: FC<PillProps>;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { BluePillLink, PillProps, RedPillLink };
|
|
10
|
+
export declare const RedPillLink: FC<PillProps>;
|
|
11
|
+
export declare const BluePillLink: FC<PillProps>;
|
|
12
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { BiX } from "react-icons/bi";
|
|
3
3
|
//#region src/molecules/menu/close/close.tsx
|
|
4
4
|
const Close = ({ onClick }) => /* @__PURE__ */ jsx(BiX, {
|
|
5
|
-
className: "
|
|
5
|
+
className: "text-primary-text size-9",
|
|
6
6
|
onClick
|
|
7
7
|
});
|
|
8
8
|
//#endregion
|
|
@@ -13,13 +13,12 @@ interface DropdownMenuGroup {
|
|
|
13
13
|
label: string;
|
|
14
14
|
items: DropdownMenuItem[];
|
|
15
15
|
}
|
|
16
|
-
interface DropdownMenuProps {
|
|
16
|
+
export interface DropdownMenuProps {
|
|
17
17
|
linkComponent?: LinkComponent;
|
|
18
18
|
label: string;
|
|
19
19
|
items: DropdownMenuGroup[];
|
|
20
20
|
className?: string;
|
|
21
21
|
chevronClassName?: string;
|
|
22
22
|
}
|
|
23
|
-
declare const DropdownMenu: FC<DropdownMenuProps>;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { DropdownMenu, DropdownMenuProps };
|
|
23
|
+
export declare const DropdownMenu: FC<DropdownMenuProps>;
|
|
24
|
+
//#endregion
|
|
@@ -64,7 +64,7 @@ const DropdownMenu = (t0) => {
|
|
|
64
64
|
id: panelId,
|
|
65
65
|
"aria-label": label,
|
|
66
66
|
role: "list",
|
|
67
|
-
className: `glow-container ${shouldReduceMotions ? "xs:bg-general-background" : "xs:bg-general-background/90"} relative mt-2 min-w-max list-none
|
|
67
|
+
className: `glow-container ${shouldReduceMotions ? "xs:bg-general-background" : "xs:bg-general-background/90"} xs:absolute xs:right-0 xs:left-0 xs:w-60 relative m-0 mt-2 min-w-max list-none rounded-xl p-0 py-2`,
|
|
68
68
|
tabIndex: -1,
|
|
69
69
|
children: items.map((group_0, idx) => {
|
|
70
70
|
const groupId = getGroupId(idx);
|
|
@@ -77,13 +77,13 @@ const DropdownMenu = (t0) => {
|
|
|
77
77
|
}),
|
|
78
78
|
/* @__PURE__ */ jsx("span", {
|
|
79
79
|
id: groupId,
|
|
80
|
-
className: "text-secondary-text block px-4 pt-3 pb-1 text-sm font-bold
|
|
80
|
+
className: "text-secondary-text block cursor-default px-4 pt-3 pb-1 text-sm font-bold tracking-wider uppercase select-none",
|
|
81
81
|
children: group_0.label
|
|
82
82
|
}),
|
|
83
83
|
/* @__PURE__ */ jsx("ul", {
|
|
84
84
|
"aria-labelledby": groupId,
|
|
85
85
|
role: "list",
|
|
86
|
-
className: "list-none
|
|
86
|
+
className: "m-0 list-none p-0",
|
|
87
87
|
children: group_0.items.map((item_0, itemIdx) => /* @__PURE__ */ jsx("li", {
|
|
88
88
|
className: "mb-0 pl-0 before:content-none",
|
|
89
89
|
children: /* @__PURE__ */ jsx(MenuItem, {
|