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
|
@@ -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, ReactNode } from "react";
|
|
4
4
|
//#region src/molecules/menu/menu-item/menu-item.d.ts
|
|
5
|
-
type MenuItemProps = {
|
|
5
|
+
export type MenuItemProps = {
|
|
6
6
|
to: string;
|
|
7
7
|
linkComponent?: LinkComponent;
|
|
8
8
|
selected: boolean;
|
|
@@ -11,6 +11,5 @@ type MenuItemProps = {
|
|
|
11
11
|
onClick?: () => void;
|
|
12
12
|
external?: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare const MenuItem: FC<MenuItemProps>;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { MenuItem, MenuItemProps };
|
|
14
|
+
export declare const MenuItem: FC<MenuItemProps>;
|
|
15
|
+
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
2
|
//#region src/molecules/stat-card/stat-card.d.ts
|
|
3
|
-
interface StatCardProps {
|
|
3
|
+
export interface StatCardProps {
|
|
4
4
|
value: number | string;
|
|
5
5
|
label: string;
|
|
6
6
|
icon?: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare const StatCard: FC<StatCardProps>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { StatCard, StatCardProps };
|
|
8
|
+
export declare const StatCard: FC<StatCardProps>;
|
|
9
|
+
//#endregion
|
|
@@ -4,15 +4,15 @@ const StatCard = ({ value, label, icon }) => /* @__PURE__ */ jsxs("div", {
|
|
|
4
4
|
className: "glow-container flex min-h-30 min-w-0 flex-col items-center justify-between p-5",
|
|
5
5
|
children: [
|
|
6
6
|
icon && /* @__PURE__ */ jsx("span", {
|
|
7
|
-
className: "text-accent text-2xl
|
|
7
|
+
className: "text-accent mb-1 text-2xl",
|
|
8
8
|
children: icon
|
|
9
9
|
}),
|
|
10
10
|
/* @__PURE__ */ jsx("span", {
|
|
11
|
-
className: "text-accent
|
|
11
|
+
className: "text-accent w-full text-center text-2xl leading-none font-medium break-words tabular-nums text-shadow-lg sm:text-3xl md:text-4xl lg:text-6xl",
|
|
12
12
|
children: value
|
|
13
13
|
}),
|
|
14
14
|
/* @__PURE__ */ jsx("span", {
|
|
15
|
-
className: "text-accent text-base
|
|
15
|
+
className: "text-accent mt-2 text-base",
|
|
16
16
|
children: label
|
|
17
17
|
})
|
|
18
18
|
]
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
//#region src/molecules/terminal-list-item/terminal-list-item.d.ts
|
|
3
|
-
interface TerminalListItemProps {
|
|
3
|
+
export interface TerminalListItemProps {
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
6
|
}
|
|
7
|
-
declare const TerminalListItem: FC<TerminalListItemProps>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { TerminalListItem, TerminalListItemProps };
|
|
7
|
+
export declare const TerminalListItem: FC<TerminalListItemProps>;
|
|
8
|
+
//#endregion
|
|
@@ -6,6 +6,5 @@ interface TerminalProgressBarProps {
|
|
|
6
6
|
completeMessage: string;
|
|
7
7
|
shouldReduceMotion?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const TerminalProgressBar: FC<TerminalProgressBarProps>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { TerminalProgressBar };
|
|
9
|
+
export declare const TerminalProgressBar: FC<TerminalProgressBarProps>;
|
|
10
|
+
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
2
|
//#region src/molecules/typography/page-title/page-title.d.ts
|
|
3
|
-
declare const PageTitle: FC<PropsWithChildren>;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { PageTitle };
|
|
3
|
+
export declare const PageTitle: FC<PropsWithChildren>;
|
|
4
|
+
//#endregion
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
//#region src/molecules/typography/paragraph-title-with-icon/paragraph-title-with-icon.d.ts
|
|
3
|
-
declare const ParagraphTitleWithIcon: React.FC<{
|
|
3
|
+
export declare const ParagraphTitleWithIcon: React.FC<{
|
|
4
4
|
icon: React.ReactNode;
|
|
5
5
|
children: string;
|
|
6
6
|
}>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ParagraphTitleWithIcon };
|
|
7
|
+
//#endregion
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
//#region src/molecules/typography/section-heading/section-heading.d.ts
|
|
3
|
-
interface SectionHeadingProps {
|
|
3
|
+
export interface SectionHeadingProps {
|
|
4
4
|
title: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const SectionHeading: FC<SectionHeadingProps>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { SectionHeading, SectionHeadingProps };
|
|
7
|
+
export declare const SectionHeading: FC<SectionHeadingProps>;
|
|
8
|
+
//#endregion
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
const SectionHeading = ({ title, description }) => /* @__PURE__ */ jsxs("div", {
|
|
4
4
|
className: "mb-5",
|
|
5
5
|
children: [/* @__PURE__ */ jsxs("h2", {
|
|
6
|
-
className: "text-accent
|
|
6
|
+
className: "text-accent mb-1 text-lg font-bold text-shadow-md",
|
|
7
7
|
children: [/* @__PURE__ */ jsx("span", {
|
|
8
8
|
"aria-hidden": "true",
|
|
9
9
|
children: ">\xA0"
|
|
@@ -24,8 +24,7 @@ const SelfHostedVideo = ({ src, poster, caption, captions, autoPlay, muted, onEn
|
|
|
24
24
|
label: "English",
|
|
25
25
|
src: captions
|
|
26
26
|
}),
|
|
27
|
-
"Your browser does not support the video tag.",
|
|
28
|
-
" ",
|
|
27
|
+
"Your browser does not support the video tag. ",
|
|
29
28
|
/* @__PURE__ */ jsx("a", {
|
|
30
29
|
href: src,
|
|
31
30
|
children: "Download the video"
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { CommandPaletteTrigger } from "../../../state/command-palette/command-palette-trigger.mjs";
|
|
2
2
|
import { FC, ReactNode } from "react";
|
|
3
3
|
//#region src/organism/command-palette/command-palette/command-palette.d.ts
|
|
4
|
-
interface CommandPaletteProps {
|
|
4
|
+
export interface CommandPaletteProps {
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
onOpenChange?: (open: boolean, trigger: CommandPaletteTrigger) => void;
|
|
7
7
|
onQueryChange?: (query: string) => void;
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare const CommandPalette: FC<CommandPaletteProps>;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { CommandPalette, CommandPaletteProps };
|
|
10
|
+
export declare const CommandPalette: FC<CommandPaletteProps>;
|
|
11
|
+
//#endregion
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
2
|
//#region src/organism/command-palette/command-palette-group/command-palette-group.d.ts
|
|
3
|
-
interface CommandPaletteGroupProps {
|
|
3
|
+
export interface CommandPaletteGroupProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
declare const CommandPaletteGroup: FC<CommandPaletteGroupProps>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { CommandPaletteGroup, CommandPaletteGroupProps };
|
|
7
|
+
export declare const CommandPaletteGroup: FC<CommandPaletteGroupProps>;
|
|
8
|
+
//#endregion
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
2
|
//#region src/organism/command-palette/command-palette-item/command-palette-item.d.ts
|
|
3
|
-
interface CommandPaletteItemProps {
|
|
3
|
+
export interface CommandPaletteItemProps {
|
|
4
4
|
value: string;
|
|
5
5
|
onSelect?: () => void;
|
|
6
6
|
closeOnSelect?: boolean;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
}
|
|
9
|
-
declare const CommandPaletteItem: FC<CommandPaletteItemProps>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { CommandPaletteItem, CommandPaletteItemProps };
|
|
9
|
+
export declare const CommandPaletteItem: FC<CommandPaletteItemProps>;
|
|
10
|
+
//#endregion
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
//#region src/organism/command-palette/toggle-motion-item/toggle-motion-item.d.ts
|
|
3
|
-
interface ToggleMotionItemProps {
|
|
3
|
+
export interface ToggleMotionItemProps {
|
|
4
4
|
onTrack?: () => void;
|
|
5
5
|
}
|
|
6
|
-
declare const ToggleMotionItem: FC<ToggleMotionItemProps>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ToggleMotionItem, ToggleMotionItemProps };
|
|
6
|
+
export declare const ToggleMotionItem: FC<ToggleMotionItemProps>;
|
|
7
|
+
//#endregion
|
|
@@ -4,6 +4,5 @@ interface CookieConsentBannerProps {
|
|
|
4
4
|
onAccept: () => void;
|
|
5
5
|
onReject: () => void;
|
|
6
6
|
}
|
|
7
|
-
declare const CookieConsentBanner: ({ decided, onAccept, onReject }: CookieConsentBannerProps) => import("react
|
|
8
|
-
//#endregion
|
|
9
|
-
export { CookieConsentBanner };
|
|
7
|
+
export declare const CookieConsentBanner: ({ decided, onAccept, onReject }: CookieConsentBannerProps) => import("react").JSX.Element;
|
|
8
|
+
//#endregion
|
|
@@ -20,20 +20,20 @@ const CookieConsentBanner = (t0) => {
|
|
|
20
20
|
let t2;
|
|
21
21
|
if ($[1] !== acceptConsent || $[2] !== decided || $[3] !== glassmorphismClass || $[4] !== rejectConsent) {
|
|
22
22
|
t2 = !decided && /* @__PURE__ */ jsxs("div", {
|
|
23
|
-
className: `${glassmorphismClass} fixed right-0 bottom-5 left-0 mx-auto my-0
|
|
23
|
+
className: `${glassmorphismClass} fixed right-0 bottom-5 left-0 z-50 mx-auto my-0 flex max-w-[95%] flex-col items-center gap-4 p-4 lg:max-w-[60%] lg:flex-row`,
|
|
24
24
|
role: "dialog",
|
|
25
25
|
"aria-live": "polite",
|
|
26
26
|
"aria-label": "Cookie consent banner",
|
|
27
27
|
children: [/* @__PURE__ */ jsxs("p", {
|
|
28
28
|
className: "text-shadow-md",
|
|
29
29
|
children: [
|
|
30
|
-
"This website uses cookies. Take the",
|
|
31
|
-
" ",
|
|
30
|
+
"This website uses cookies. Take the ",
|
|
32
31
|
/* @__PURE__ */ jsx("span", {
|
|
33
32
|
className: "text-confirm",
|
|
34
33
|
children: "red pill"
|
|
35
34
|
}),
|
|
36
|
-
", and you'll see how deep the rabbit hole goes. Take the
|
|
35
|
+
", and you'll see how deep the rabbit hole goes. Take the",
|
|
36
|
+
" ",
|
|
37
37
|
/* @__PURE__ */ jsx("span", {
|
|
38
38
|
className: "text-undo",
|
|
39
39
|
children: "blue pill"
|
|
@@ -5,7 +5,7 @@ import { SocialContactLinks } from "../social-contacts/social-contacts.mjs";
|
|
|
5
5
|
import "../social-contacts/index.mjs";
|
|
6
6
|
import { FC } from "react";
|
|
7
7
|
//#region src/organism/footer/footer.d.ts
|
|
8
|
-
interface FooterNavHrefs {
|
|
8
|
+
export interface FooterNavHrefs {
|
|
9
9
|
blog: string;
|
|
10
10
|
art: string;
|
|
11
11
|
aboutMe: string;
|
|
@@ -13,7 +13,7 @@ interface FooterNavHrefs {
|
|
|
13
13
|
tags: string;
|
|
14
14
|
contact: string;
|
|
15
15
|
}
|
|
16
|
-
interface FooterProps {
|
|
16
|
+
export interface FooterProps {
|
|
17
17
|
linkComponent?: LinkComponent;
|
|
18
18
|
author: string;
|
|
19
19
|
navHrefs: FooterNavHrefs;
|
|
@@ -21,6 +21,6 @@ interface FooterProps {
|
|
|
21
21
|
navTracking?: FooterNavTrackingCallbacks;
|
|
22
22
|
socialTracking?: FooterSocialTrackingCallbacks;
|
|
23
23
|
}
|
|
24
|
-
declare const Footer: FC<FooterProps>;
|
|
24
|
+
export declare const Footer: FC<FooterProps>;
|
|
25
25
|
//#endregion
|
|
26
|
-
export {
|
|
26
|
+
export type { SocialContactLinks };
|
|
@@ -97,7 +97,7 @@ const Footer = (t0) => {
|
|
|
97
97
|
let t7;
|
|
98
98
|
if ($[23] !== t1 || $[24] !== t2 || $[25] !== t3 || $[26] !== t4 || $[27] !== t5 || $[28] !== t6) {
|
|
99
99
|
t7 = /* @__PURE__ */ jsxs("div", {
|
|
100
|
-
className: "grid grid-cols-2 gap-3 py-7
|
|
100
|
+
className: "grid w-full grid-cols-2 gap-3 px-5 py-7 sm:mx-auto sm:max-w-4xl sm:grid-cols-[repeat(6,auto)] sm:justify-center",
|
|
101
101
|
children: [
|
|
102
102
|
t1,
|
|
103
103
|
t2,
|
|
@@ -163,7 +163,7 @@ const Footer = (t0) => {
|
|
|
163
163
|
let t13;
|
|
164
164
|
if ($[46] !== t12 || $[47] !== t9) {
|
|
165
165
|
t13 = /* @__PURE__ */ jsxs("div", {
|
|
166
|
-
className: "w-full flex
|
|
166
|
+
className: "from-general-background-light to-primary-color-dark flex w-full flex-col items-center justify-center gap-3 bg-gradient-to-b px-4 py-6",
|
|
167
167
|
children: [t9, t12]
|
|
168
168
|
});
|
|
169
169
|
$[46] = t12;
|
|
@@ -175,7 +175,7 @@ const Footer = (t0) => {
|
|
|
175
175
|
t14 = /* @__PURE__ */ jsx("footer", {
|
|
176
176
|
className: "bg-primary-dark border-t-accent relative w-full shrink-0 snap-start border-t-2 border-solid shadow-lg",
|
|
177
177
|
children: /* @__PURE__ */ jsxs("div", {
|
|
178
|
-
className: "flex flex-col
|
|
178
|
+
className: "flex w-full flex-col items-center",
|
|
179
179
|
children: [
|
|
180
180
|
t7,
|
|
181
181
|
t8,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "matrix-component-store";
|
|
2
2
|
//#region src/organism/footer/use-footer-store.d.ts
|
|
3
|
-
interface FooterNavTrackingCallbacks {
|
|
3
|
+
export interface FooterNavTrackingCallbacks {
|
|
4
4
|
onTrackHome?: () => void;
|
|
5
5
|
onTrackBlog?: () => void;
|
|
6
6
|
onTrackArt?: () => void;
|
|
@@ -8,7 +8,7 @@ interface FooterNavTrackingCallbacks {
|
|
|
8
8
|
onTrackArchive?: () => void;
|
|
9
9
|
onTrackTags?: () => void;
|
|
10
10
|
}
|
|
11
|
-
interface FooterSocialTrackingCallbacks {
|
|
11
|
+
export interface FooterSocialTrackingCallbacks {
|
|
12
12
|
onTrackGithub?: () => void;
|
|
13
13
|
onTrackLinkedin?: () => void;
|
|
14
14
|
onTrackContact?: () => void;
|
|
@@ -18,5 +18,4 @@ interface FooterSocialTrackingCallbacks {
|
|
|
18
18
|
onTrackFacebook?: () => void;
|
|
19
19
|
onTrackInstagram?: () => void;
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { FooterNavTrackingCallbacks, FooterSocialTrackingCallbacks };
|
|
21
|
+
//#endregion
|
|
@@ -2,13 +2,12 @@ import { ImageComponent, ImageSource } from "../../../atoms/effects/plain-image/
|
|
|
2
2
|
import "../../../atoms/effects/plain-image/index.mjs";
|
|
3
3
|
import { FC, PropsWithChildren } from "react";
|
|
4
4
|
//#region src/organism/header/brand-header/brand-header.d.ts
|
|
5
|
-
interface BrandHeaderProps {
|
|
5
|
+
export interface BrandHeaderProps {
|
|
6
6
|
big: boolean;
|
|
7
7
|
wrapper?: FC<PropsWithChildren>;
|
|
8
8
|
/** Injected by the consumer: the design system ships no site assets of its own. */
|
|
9
9
|
logo: ImageSource;
|
|
10
10
|
imageComponent?: ImageComponent;
|
|
11
11
|
}
|
|
12
|
-
declare const BrandHeader: FC<BrandHeaderProps>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { BrandHeader, BrandHeaderProps };
|
|
12
|
+
export declare const BrandHeader: FC<BrandHeaderProps>;
|
|
13
|
+
//#endregion
|
|
@@ -37,7 +37,7 @@ const BrandHeader = (t0) => {
|
|
|
37
37
|
$[2] = t4;
|
|
38
38
|
} else t4 = $[2];
|
|
39
39
|
const t5 = `flex items-center ${margins}`;
|
|
40
|
-
const t6 = `${glassmorphismClass} w-full p-5 md:p-9
|
|
40
|
+
const t6 = `${glassmorphismClass} z-30 w-full p-5 md:p-9`;
|
|
41
41
|
let t7;
|
|
42
42
|
if ($[3] !== imageComponent || $[4] !== logo) {
|
|
43
43
|
t7 = /* @__PURE__ */ jsx(ImageGlow, {
|
|
@@ -114,7 +114,7 @@ const FullscreenModal = (t0) => {
|
|
|
114
114
|
let t8;
|
|
115
115
|
if ($[24] !== stopPropagation || $[25] !== t6 || $[26] !== t7) {
|
|
116
116
|
t8 = /* @__PURE__ */ jsxs("div", {
|
|
117
|
-
className: "glow-container relative flex h-10/12
|
|
117
|
+
className: "glow-container bg-general-background relative flex h-10/12 w-full max-w-11/12 items-center justify-center overflow-hidden sm:h-full sm:max-w-10/12",
|
|
118
118
|
onClick: stopPropagation,
|
|
119
119
|
children: [t6, t7]
|
|
120
120
|
});
|
|
@@ -2,13 +2,12 @@ import { ImageComponent } from "../../atoms/effects/plain-image/plain-image.mjs"
|
|
|
2
2
|
import "../../atoms/effects/plain-image/index.mjs";
|
|
3
3
|
import { FC } from "react";
|
|
4
4
|
//#region src/organism/image-carousel/image-carousel.d.ts
|
|
5
|
-
interface ImageCarouselProps {
|
|
5
|
+
export interface ImageCarouselProps {
|
|
6
6
|
images: string[];
|
|
7
7
|
alt: string;
|
|
8
8
|
caption?: string;
|
|
9
9
|
className?: string;
|
|
10
10
|
imageComponent?: ImageComponent;
|
|
11
11
|
}
|
|
12
|
-
declare const ImageCarousel: FC<ImageCarouselProps>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { ImageCarousel, ImageCarouselProps };
|
|
12
|
+
export declare const ImageCarousel: FC<ImageCarouselProps>;
|
|
13
|
+
//#endregion
|
|
@@ -27,7 +27,7 @@ const ImageCarousel = (t0) => {
|
|
|
27
27
|
alt,
|
|
28
28
|
width: 800,
|
|
29
29
|
height: 450,
|
|
30
|
-
className: "h-96 w-full cursor-pointer object-contain
|
|
30
|
+
className: "bg-general-background-light h-96 w-full cursor-pointer overflow-hidden object-contain",
|
|
31
31
|
onClick: openFullscreen
|
|
32
32
|
});
|
|
33
33
|
$[0] = Image;
|
|
@@ -107,7 +107,7 @@ const ImageCarousel = (t0) => {
|
|
|
107
107
|
width: 800,
|
|
108
108
|
height: 450,
|
|
109
109
|
loading: index === 0 ? "eager" : "lazy",
|
|
110
|
-
className: "h-96 w-full cursor-pointer object-contain
|
|
110
|
+
className: "bg-general-background-light h-96 w-full cursor-pointer overflow-hidden object-contain",
|
|
111
111
|
onClick: openFullscreen,
|
|
112
112
|
placeholder: imageShimmerPlaceholder
|
|
113
113
|
})
|
|
@@ -8,12 +8,12 @@ const NavigationButtons = ({ onPrevious, onNext, stopPropagation = false }) => {
|
|
|
8
8
|
const { handlePrevious, handleNext } = effects;
|
|
9
9
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Button, {
|
|
10
10
|
onClick: handlePrevious,
|
|
11
|
-
className: "absolute top-1/2 left-4 -translate-y-1/2
|
|
11
|
+
className: "absolute top-1/2 left-4 hidden -translate-y-1/2 md:flex",
|
|
12
12
|
"aria-label": "Previous image",
|
|
13
13
|
children: /* @__PURE__ */ jsx(BiChevronLeft, { className: "size-10 md:size-12" })
|
|
14
14
|
}), /* @__PURE__ */ jsx(Button, {
|
|
15
15
|
onClick: handleNext,
|
|
16
|
-
className: "absolute top-1/2 right-4 -translate-y-1/2
|
|
16
|
+
className: "absolute top-1/2 right-4 hidden -translate-y-1/2 md:flex",
|
|
17
17
|
"aria-label": "Next image",
|
|
18
18
|
children: /* @__PURE__ */ jsx(BiChevronRight, { className: "size-10 md:size-12" })
|
|
19
19
|
})] });
|
|
@@ -3,7 +3,7 @@ import "../../atoms/links/anchor-link/index.mjs";
|
|
|
3
3
|
import { MenuTrackingCallbacks } from "./use-menu-store.mjs";
|
|
4
4
|
import { FC } from "react";
|
|
5
5
|
//#region src/organism/menu/menu.d.ts
|
|
6
|
-
interface MenuNavHrefs {
|
|
6
|
+
export interface MenuNavHrefs {
|
|
7
7
|
blog: string;
|
|
8
8
|
blogAuthors: string;
|
|
9
9
|
blogAuthor: string;
|
|
@@ -20,7 +20,7 @@ interface MenuNavHrefs {
|
|
|
20
20
|
videogames: string;
|
|
21
21
|
contact: string;
|
|
22
22
|
}
|
|
23
|
-
interface MenuProps {
|
|
23
|
+
export interface MenuProps {
|
|
24
24
|
linkComponent?: LinkComponent;
|
|
25
25
|
/** The path currently being viewed, used to mark the active entry. Injected by the consumer's router. */
|
|
26
26
|
currentPath: string;
|
|
@@ -28,6 +28,5 @@ interface MenuProps {
|
|
|
28
28
|
onPaletteTrigger?: () => void;
|
|
29
29
|
tracking?: MenuTrackingCallbacks;
|
|
30
30
|
}
|
|
31
|
-
declare const Menu: FC<MenuProps>;
|
|
32
|
-
//#endregion
|
|
33
|
-
export { Menu, MenuNavHrefs, MenuProps };
|
|
31
|
+
export declare const Menu: FC<MenuProps>;
|
|
32
|
+
//#endregion
|
|
@@ -163,7 +163,7 @@ const Menu = (t0) => {
|
|
|
163
163
|
label: "Computer Graphics",
|
|
164
164
|
items: [{
|
|
165
165
|
label: "Matrix Rain",
|
|
166
|
-
to: "https://chicio.github.io/matrix-rain
|
|
166
|
+
to: "https://chicio.github.io/chicio-blog/matrix-rain/",
|
|
167
167
|
external: true,
|
|
168
168
|
onClick: onClickMatrixRain
|
|
169
169
|
}]
|
|
@@ -250,7 +250,7 @@ const Menu = (t0) => {
|
|
|
250
250
|
const renderMenuItems = t2;
|
|
251
251
|
const t3 = `menu-container container-fixed fixed right-0 left-0 z-50 my-3 ${shouldOpenMenu ? "xs:block hidden" : ""}`;
|
|
252
252
|
const t4 = shouldHideMenu ? "hidden" : "visible";
|
|
253
|
-
const t5 = `${glassmorphismClass}
|
|
253
|
+
const t5 = `${glassmorphismClass} xs:py-0 xs:pt-0 m-0 my-0 flex min-h-16 flex-row items-center gap-1 overflow-hidden px-2 sm:overflow-visible`;
|
|
254
254
|
let t6;
|
|
255
255
|
if ($[35] !== renderMenuItems) {
|
|
256
256
|
t6 = renderMenuItems(false);
|
|
@@ -270,9 +270,9 @@ const Menu = (t0) => {
|
|
|
270
270
|
let t8;
|
|
271
271
|
let t9;
|
|
272
272
|
if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
|
|
273
|
-
t8 = /* @__PURE__ */ jsx(BiSearchAlt, { className: "
|
|
273
|
+
t8 = /* @__PURE__ */ jsx(BiSearchAlt, { className: "text-accent group-hover:text-accent size-3.5 shrink-0 transition-colors duration-200" });
|
|
274
274
|
t9 = /* @__PURE__ */ jsx("span", {
|
|
275
|
-
className: "
|
|
275
|
+
className: "text-accent/40 group-hover:text-accent/60 hidden flex-1 text-left font-mono text-sm leading-none transition-colors duration-200 md:block",
|
|
276
276
|
children: "Search..."
|
|
277
277
|
});
|
|
278
278
|
$[40] = t8;
|
|
@@ -284,18 +284,18 @@ const Menu = (t0) => {
|
|
|
284
284
|
let t10;
|
|
285
285
|
if ($[42] !== modifierKey) {
|
|
286
286
|
t10 = modifierKey !== null && /* @__PURE__ */ jsxs("span", {
|
|
287
|
-
className: "hidden
|
|
287
|
+
className: "hidden items-center gap-1 md:inline-flex",
|
|
288
288
|
children: [
|
|
289
289
|
/* @__PURE__ */ jsx("kbd", {
|
|
290
|
-
className: "
|
|
290
|
+
className: "border-accent/50 text-accent/70 group-hover:border-accent group-hover:text-accent inline-flex size-6 items-center justify-center rounded border font-mono text-sm leading-none transition-colors duration-200",
|
|
291
291
|
children: modifierKey === "meta" ? /* @__PURE__ */ jsx(LuCommand, { className: "size-3" }) : /* @__PURE__ */ jsx(ImCtrl, { className: "size-3" })
|
|
292
292
|
}),
|
|
293
293
|
/* @__PURE__ */ jsx("span", {
|
|
294
|
-
className: "
|
|
294
|
+
className: "text-accent/70 group-hover:text-accent font-mono text-sm leading-none transition-colors duration-200",
|
|
295
295
|
children: "+"
|
|
296
296
|
}),
|
|
297
297
|
/* @__PURE__ */ jsx("kbd", {
|
|
298
|
-
className: "
|
|
298
|
+
className: "border-accent/50 text-accent/70 group-hover:border-accent group-hover:text-accent inline-flex size-6 items-center justify-center rounded border font-mono text-base leading-none transition-colors duration-200",
|
|
299
299
|
children: "K"
|
|
300
300
|
})
|
|
301
301
|
]
|
|
@@ -306,7 +306,7 @@ const Menu = (t0) => {
|
|
|
306
306
|
let t11;
|
|
307
307
|
if ($[44] !== handlePaletteTrigger || $[45] !== t10) {
|
|
308
308
|
t11 = /* @__PURE__ */ jsxs("button", {
|
|
309
|
-
className: "
|
|
309
|
+
className: "group border-accent bg-accent/10 hover:border-accent hover:bg-accent/20 ml-auto flex min-h-10 w-auto cursor-pointer items-center gap-2 rounded-lg border px-3 py-1.5 transition-all duration-200 sm:mr-3 md:w-60",
|
|
310
310
|
onClick: handlePaletteTrigger,
|
|
311
311
|
"aria-label": "Open command palette",
|
|
312
312
|
children: [
|
|
@@ -352,7 +352,7 @@ const Menu = (t0) => {
|
|
|
352
352
|
let t14;
|
|
353
353
|
if ($[56] !== closeMenu || $[57] !== renderMenuItems || $[58] !== shouldOpenMenu) {
|
|
354
354
|
t14 = shouldOpenMenu && /* @__PURE__ */ jsx(MotionDiv, {
|
|
355
|
-
className: "
|
|
355
|
+
className: "bg-black-alpha-75 fixed top-0 left-0 z-50 h-full w-full touch-pan-y overflow-y-auto backdrop-blur-sm sm:hidden",
|
|
356
356
|
style: { willChange: "transform" },
|
|
357
357
|
variants: panelVariants,
|
|
358
358
|
initial: "closed",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "matrix-component-store";
|
|
2
2
|
//#region src/organism/menu/use-menu-store.d.ts
|
|
3
|
-
interface MenuTrackingCallbacks {
|
|
3
|
+
export interface MenuTrackingCallbacks {
|
|
4
4
|
onTrackHome?: () => void;
|
|
5
5
|
onTrackBlog?: () => void;
|
|
6
6
|
onTrackBlogAuthors?: () => void;
|
|
@@ -18,5 +18,4 @@ interface MenuTrackingCallbacks {
|
|
|
18
18
|
onTrackVideogames?: () => void;
|
|
19
19
|
onTrackContact?: () => void;
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { MenuTrackingCallbacks };
|
|
21
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { ImageComponent } from "../../atoms/effects/plain-image/plain-image.mjs"
|
|
|
2
2
|
import "../../atoms/effects/plain-image/index.mjs";
|
|
3
3
|
import { FC, ReactNode } from "react";
|
|
4
4
|
//#region src/organism/profile-hero/profile-hero.d.ts
|
|
5
|
-
interface ProfileHeroProps {
|
|
5
|
+
export interface ProfileHeroProps {
|
|
6
6
|
name: string;
|
|
7
7
|
role?: string;
|
|
8
8
|
imageSrc?: string;
|
|
@@ -10,6 +10,5 @@ interface ProfileHeroProps {
|
|
|
10
10
|
children?: ReactNode;
|
|
11
11
|
imageComponent?: ImageComponent;
|
|
12
12
|
}
|
|
13
|
-
declare const ProfileHero: FC<ProfileHeroProps>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { ProfileHero, ProfileHeroProps };
|
|
13
|
+
export declare const ProfileHero: FC<ProfileHeroProps>;
|
|
14
|
+
//#endregion
|
|
@@ -2,11 +2,10 @@ import { ImageComponent } from "../../atoms/effects/plain-image/plain-image.mjs"
|
|
|
2
2
|
import "../../atoms/effects/plain-image/index.mjs";
|
|
3
3
|
import { FC } from "react";
|
|
4
4
|
//#region src/organism/profile-photo/profile-photo.d.ts
|
|
5
|
-
interface ProfilePhotoProps {
|
|
5
|
+
export interface ProfilePhotoProps {
|
|
6
6
|
author: string;
|
|
7
7
|
src?: string;
|
|
8
8
|
imageComponent?: ImageComponent;
|
|
9
9
|
}
|
|
10
|
-
declare const ProfilePhoto: FC<ProfilePhotoProps>;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { ProfilePhoto, ProfilePhotoProps };
|
|
10
|
+
export declare const ProfilePhoto: FC<ProfilePhotoProps>;
|
|
11
|
+
//#endregion
|
|
@@ -6,7 +6,7 @@ const ProfilePhoto = ({ author, src = defaultProfilePhoto, imageComponent }) =>
|
|
|
6
6
|
className: "flex items-center justify-center",
|
|
7
7
|
children: /* @__PURE__ */ jsx(ImageGlow, {
|
|
8
8
|
imageComponent,
|
|
9
|
-
className: "
|
|
9
|
+
className: "h-[150px] w-[150px] rounded-full",
|
|
10
10
|
src,
|
|
11
11
|
alt: author,
|
|
12
12
|
width: 150,
|
|
@@ -3,6 +3,5 @@ import React from "react";
|
|
|
3
3
|
interface ContentProgressBarProps {
|
|
4
4
|
contentId: string;
|
|
5
5
|
}
|
|
6
|
-
declare const ContentProgressBar: React.FC<ContentProgressBarProps>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ContentProgressBar };
|
|
6
|
+
export declare const ContentProgressBar: React.FC<ContentProgressBarProps>;
|
|
7
|
+
//#endregion
|