motus-ui 0.1.0
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/LICENSE +21 -0
- package/README.md +38 -0
- package/dist/ExpandableTab.d.ts +2 -0
- package/dist/ExpandableTab.d.ts.map +1 -0
- package/dist/PortfolioPieces.d.ts +39 -0
- package/dist/PortfolioPieces.d.ts.map +1 -0
- package/dist/buttons/ClickKey.d.ts +6 -0
- package/dist/buttons/ClickKey.d.ts.map +1 -0
- package/dist/buttons/CopyLinkButton.d.ts +7 -0
- package/dist/buttons/CopyLinkButton.d.ts.map +1 -0
- package/dist/buttons/ResumeDownloadButton.d.ts +9 -0
- package/dist/buttons/ResumeDownloadButton.d.ts.map +1 -0
- package/dist/effects/MagneticHalftone.d.ts +2 -0
- package/dist/effects/MagneticHalftone.d.ts.map +1 -0
- package/dist/effects/MercuryFlow.d.ts +2 -0
- package/dist/effects/MercuryFlow.d.ts.map +1 -0
- package/dist/effects/SpectralVeil.d.ts +2 -0
- package/dist/effects/SpectralVeil.d.ts.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2420 -0
- package/dist/motion/TextMotion.d.ts +67 -0
- package/dist/motion/TextMotion.d.ts.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.d.ts.map +1 -0
- package/package.json +79 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 John Charles Frederick Mamanao
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Motus UI
|
|
2
|
+
|
|
3
|
+
Expressive React components with polished motion and clear interaction feedback.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install motus-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Import the stylesheet once:
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import 'motus-ui/styles.css';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Use any exported component:
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import { CopyLinkButton, TextMotion } from 'motus-ui';
|
|
21
|
+
|
|
22
|
+
export function Example() {
|
|
23
|
+
return (
|
|
24
|
+
<>
|
|
25
|
+
<TextMotion text="Selected work" variant="ripple" />
|
|
26
|
+
<CopyLinkButton value="https://example.com/project" />
|
|
27
|
+
</>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Exports
|
|
33
|
+
|
|
34
|
+
`ClickKey`, `CopyLinkButton`, `ResumeDownloadButton`, `TextMotion`, `ExpandableTab`, `PortfolioNav`, `ProjectCard`, `ProjectList`, `SkillsList`, `ContactCard`, `TechStack`, `SilkBackground`, `HalftoneBackground`, `LightBackground`, `LiquidGlassCard`, and `RouteLens`.
|
|
35
|
+
|
|
36
|
+
Motus supports React 18.2 and React 19. ESM and TypeScript declarations are included.
|
|
37
|
+
|
|
38
|
+
Source, previews, and contribution instructions are available in the [Motus UI repository](https://github.com/johnmamanao/motus-ui).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpandableTab.d.ts","sourceRoot":"","sources":["../src/ExpandableTab.tsx"],"names":[],"mappings":"AAyQA,wBAAgB,aAAa,gCAoI5B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { TextMotionVariant } from './motion/TextMotion.js';
|
|
3
|
+
/**
|
|
4
|
+
* Small decorative filters only. The glass surfaces themselves use native blur,
|
|
5
|
+
* keeping every edge stable while the colour fields receive subtle distortion.
|
|
6
|
+
*/
|
|
7
|
+
export declare function LiquidGlassDefs(): import("react").JSX.Element;
|
|
8
|
+
type LiquidGlassCardProps = {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
draggable?: boolean;
|
|
12
|
+
borderRadius?: string;
|
|
13
|
+
blurIntensity?: 'sm' | 'md' | 'lg';
|
|
14
|
+
glowIntensity?: 'none' | 'sm' | 'md';
|
|
15
|
+
shadowIntensity?: 'sm' | 'md' | 'lg';
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* A layered glass primitive: the background is blurred by the lowest layer,
|
|
19
|
+
* the middle layer carries the tint, and the top layers draw the optical rim
|
|
20
|
+
* and pointer-tracked specular light. No separate component CSS is required.
|
|
21
|
+
*/
|
|
22
|
+
export declare function LiquidGlassCard({ children, className, draggable, borderRadius, blurIntensity, glowIntensity, shadowIntensity, }: LiquidGlassCardProps): import("react").JSX.Element;
|
|
23
|
+
export declare function RibbonNavigation(): import("react").JSX.Element;
|
|
24
|
+
export declare function ProjectAperture(): import("react").JSX.Element;
|
|
25
|
+
export declare function PressureStack(): import("react").JSX.Element;
|
|
26
|
+
export declare function SpatialIndex(): import("react").JSX.Element;
|
|
27
|
+
export declare function ContactCapsule(): import("react").JSX.Element;
|
|
28
|
+
export declare function BuildReceipt(): import("react").JSX.Element;
|
|
29
|
+
export declare function RouteLens(): import("react").JSX.Element;
|
|
30
|
+
export declare function MercuryFlowPiece(): import("react").JSX.Element;
|
|
31
|
+
export declare function MagneticHalftonePiece(): import("react").JSX.Element;
|
|
32
|
+
export declare function SpectralVeilPiece(): import("react").JSX.Element;
|
|
33
|
+
export type PieceId = 'text-motion' | 'lens-dock' | 'refraction-card' | 'mercury-tabs' | 'viscous-reel' | 'prism-contact' | 'glass-code' | 'expandable-tab' | 'click-key' | 'resume-download' | 'copy-link' | 'liquid-mesh' | 'chromatic-lens' | 'solar-fabric';
|
|
34
|
+
export declare function PortfolioPiece({ id, textMotionVariant, }: {
|
|
35
|
+
id: PieceId;
|
|
36
|
+
textMotionVariant?: TextMotionVariant;
|
|
37
|
+
}): import("react").JSX.Element;
|
|
38
|
+
export default PortfolioPiece;
|
|
39
|
+
//# sourceMappingURL=PortfolioPieces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PortfolioPieces.d.ts","sourceRoot":"","sources":["../src/PortfolioPieces.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAoBf,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAShE;;;GAGG;AACH,wBAAgB,eAAe,gCA4B9B;AAED,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;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,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAgB,EAAE,EAAE,aAAa,+BAgD7E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type CopyLinkButtonProps = {
|
|
2
|
+
value?: string;
|
|
3
|
+
onCopy?: (value: string) => void | Promise<void>;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export default function CopyLinkButton({ value, onCopy, disabled, }: CopyLinkButtonProps): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=CopyLinkButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyLinkButton.d.ts","sourceRoot":"","sources":["../../src/buttons/CopyLinkButton.tsx"],"names":[],"mappings":"AAiHA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,KAAkC,EAClC,MAAM,EACN,QAAgB,GACjB,EAAE,mBAAmB,+BAoFrB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type ResumeDownloadButtonProps = {
|
|
2
|
+
href?: string;
|
|
3
|
+
filename?: string;
|
|
4
|
+
fileLabel?: string;
|
|
5
|
+
onDownload?: () => void | Promise<void>;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export default function ResumeDownloadButton({ href, filename, fileLabel, onDownload, disabled, }: ResumeDownloadButtonProps): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=ResumeDownloadButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResumeDownloadButton.d.ts","sourceRoot":"","sources":["../../src/buttons/ResumeDownloadButton.tsx"],"names":[],"mappings":"AAuGA,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,IAAoB,EACpB,QAAuB,EACvB,SAA0B,EAC1B,UAAU,EACV,QAAgB,GACjB,EAAE,yBAAyB,+BAyH3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MagneticHalftone.d.ts","sourceRoot":"","sources":["../../src/effects/MagneticHalftone.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,gBAAgB,gCAqHvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MercuryFlow.d.ts","sourceRoot":"","sources":["../../src/effects/MercuryFlow.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,WAAW,gCAkIlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpectralVeil.d.ts","sourceRoot":"","sources":["../../src/effects/SpectralVeil.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,YAAY,gCA0InC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as ClickKey } from './buttons/ClickKey.js';
|
|
2
|
+
export type { ClickKeyProps } from './buttons/ClickKey.js';
|
|
3
|
+
export { default as CopyLinkButton } from './buttons/CopyLinkButton.js';
|
|
4
|
+
export type { CopyLinkButtonProps } from './buttons/CopyLinkButton.js';
|
|
5
|
+
export { default as ResumeDownloadButton } from './buttons/ResumeDownloadButton.js';
|
|
6
|
+
export type { ResumeDownloadButtonProps } from './buttons/ResumeDownloadButton.js';
|
|
7
|
+
export { ExpandableTab } from './ExpandableTab.js';
|
|
8
|
+
export { default as TextMotion } from './motion/TextMotion.js';
|
|
9
|
+
export type { TextMotionProps, TextMotionVariant } from './motion/TextMotion.js';
|
|
10
|
+
export { default as SilkBackground } from './effects/MercuryFlow.js';
|
|
11
|
+
export { default as HalftoneBackground } from './effects/MagneticHalftone.js';
|
|
12
|
+
export { default as LightBackground } from './effects/SpectralVeil.js';
|
|
13
|
+
export { BuildReceipt as TechStack, ContactCapsule as ContactCard, LiquidGlassCard, LiquidGlassDefs, PressureStack as SkillsList, ProjectAperture as ProjectCard, RibbonNavigation as PortfolioNav, RouteLens, SpatialIndex as ProjectList, PortfolioPiece, } from './PortfolioPieces.js';
|
|
14
|
+
export type { PieceId } from './PortfolioPieces.js';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACpF,YAAY,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEjF,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EACL,YAAY,IAAI,SAAS,EACzB,cAAc,IAAI,WAAW,EAC7B,eAAe,EACf,eAAe,EACf,aAAa,IAAI,UAAU,EAC3B,eAAe,IAAI,WAAW,EAC9B,gBAAgB,IAAI,YAAY,EAChC,SAAS,EACT,YAAY,IAAI,WAAW,EAC3B,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|