@valerius_petrini/corekit-ui 0.1.49 → 0.1.51

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.
Files changed (44) hide show
  1. package/dist/index.d.ts +15 -14
  2. package/dist/index.js +14 -13
  3. package/package.json +3 -3
  4. package/dist/actions/fbm.d.ts +0 -10
  5. package/dist/actions/fbm.js +0 -199
  6. package/dist/components/Analytics.svelte +0 -28
  7. package/dist/components/Analytics.svelte.d.ts +0 -4
  8. package/dist/components/Button.svelte +0 -64
  9. package/dist/components/Button.svelte.d.ts +0 -4
  10. package/dist/components/Card.svelte +0 -24
  11. package/dist/components/Card.svelte.d.ts +0 -4
  12. package/dist/components/Checkbox.svelte +0 -35
  13. package/dist/components/Checkbox.svelte.d.ts +0 -4
  14. package/dist/components/FloatingInput.svelte +0 -78
  15. package/dist/components/FloatingInput.svelte.d.ts +0 -4
  16. package/dist/components/FloatingSelect.svelte +0 -39
  17. package/dist/components/FloatingSelect.svelte.d.ts +0 -4
  18. package/dist/components/Navbar.svelte +0 -30
  19. package/dist/components/Navbar.svelte.d.ts +0 -4
  20. package/dist/components/NavbarElement.svelte +0 -35
  21. package/dist/components/NavbarElement.svelte.d.ts +0 -4
  22. package/dist/components/NavbarSeparator.svelte +0 -1
  23. package/dist/components/NavbarSeparator.svelte.d.ts +0 -26
  24. package/dist/components/SEO.svelte +0 -43
  25. package/dist/components/SEO.svelte.d.ts +0 -4
  26. package/dist/components/Text.svelte +0 -65
  27. package/dist/components/Text.svelte.d.ts +0 -4
  28. package/dist/components/Typewriter.svelte +0 -86
  29. package/dist/components/Typewriter.svelte.d.ts +0 -4
  30. package/dist/styles/color.d.ts +0 -4
  31. package/dist/styles/color.js +0 -62
  32. package/dist/styles/layout.css +0 -44
  33. package/dist/styles/size.d.ts +0 -15
  34. package/dist/styles/size.js +0 -92
  35. package/dist/types/Analytics.d.ts +0 -3
  36. package/dist/types/Button.d.ts +0 -17
  37. package/dist/types/Card.d.ts +0 -6
  38. package/dist/types/Checkbox.d.ts +0 -9
  39. package/dist/types/FloatingInput.d.ts +0 -13
  40. package/dist/types/FloatingSelect.d.ts +0 -10
  41. package/dist/types/Navbar.d.ts +0 -17
  42. package/dist/types/SEO.d.ts +0 -6
  43. package/dist/types/Text.d.ts +0 -10
  44. package/dist/types/Typewriter.d.ts +0 -18
@@ -1,35 +0,0 @@
1
- <script lang="ts">
2
- import { twMerge } from "tailwind-merge";
3
- import Button from "./Button.svelte";
4
- import type { NavbarElementProps } from "../types/Navbar.js";
5
- import { page } from "$app/state";
6
-
7
- let {
8
- children = undefined,
9
- class: className = "",
10
- classTop = "",
11
- activeClass = "",
12
- href = undefined,
13
- threshold = 10,
14
- ...restProps
15
- }: NavbarElementProps = $props();
16
-
17
- let defaultClass = "navbar-element w-fit h-full px-5 py-0 text-main-text";
18
-
19
- let scrollY = $state(0);
20
- let isAtTop = $derived(scrollY <= threshold);
21
- let isActive = $derived(page.url.pathname === href);
22
-
23
- const combinedClass = $derived(twMerge(
24
- defaultClass,
25
- className,
26
- isActive ? activeClass : "",
27
- isAtTop ? classTop : "",
28
- ));
29
- </script>
30
-
31
- <svelte:window bind:scrollY={scrollY}/>
32
-
33
- <Button radius={0} {href} color="none" class={combinedClass} {...restProps} aria-current={isActive ? 'page' : undefined}>
34
- {@render children?.()}
35
- </Button>
@@ -1,4 +0,0 @@
1
- import type { NavbarElementProps } from "../types/Navbar.js";
2
- declare const NavbarElement: import("svelte").Component<NavbarElementProps, {}, "">;
3
- type NavbarElement = ReturnType<typeof NavbarElement>;
4
- export default NavbarElement;
@@ -1 +0,0 @@
1
- <div class="ml-auto"></div>
@@ -1,26 +0,0 @@
1
- export default NavbarSeparator;
2
- type NavbarSeparator = SvelteComponent<{
3
- [x: string]: never;
4
- }, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> & {
7
- $$bindings?: string | undefined;
8
- };
9
- declare const NavbarSeparator: $$__sveltets_2_IsomorphicComponent<{
10
- [x: string]: never;
11
- }, {
12
- [evt: string]: CustomEvent<any>;
13
- }, {}, {}, string>;
14
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
15
- new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
16
- $$bindings?: Bindings;
17
- } & Exports;
18
- (internal: unknown, props: {
19
- $$events?: Events;
20
- $$slots?: Slots;
21
- }): Exports & {
22
- $set?: any;
23
- $on?: any;
24
- };
25
- z_$$bindings?: Bindings;
26
- }
@@ -1,43 +0,0 @@
1
- <script lang="ts">
2
- import { page } from '$app/state';
3
- import type { SEOProps } from '../types/SEO.js';
4
-
5
- const DEFAULT_TITLE = "My SvelteKit App";
6
- const DEFAULT_DESCRIPTION = "Description of your website.";
7
- const DEFAULT_IMAGE = "/favicon.png";
8
-
9
- let {
10
- websiteName,
11
- title = DEFAULT_TITLE,
12
- description = DEFAULT_DESCRIPTION,
13
- image = DEFAULT_IMAGE
14
- }: SEOProps = $props();
15
-
16
- let fullUrl = $derived(`${websiteName}${page.url.pathname.toString()}`);
17
- </script>
18
-
19
- <svelte:head>
20
- <title>{title}</title>
21
- <meta name="description" content={description}>
22
- <meta property="og_site_name" content={websiteName}>
23
- <meta property="og:url" content={fullUrl}>
24
- <meta property="og:type" content="website">
25
- <meta property="og:title" content="{title}">
26
- <meta property="og:description" content={description}>
27
- <meta property="og:image" content={websiteName + image}>
28
-
29
- <meta name="twitter:card" content="summary_large_image">
30
- <meta property="twitter:domain" content={websiteName}>
31
- <meta property="twitter:url" content={fullUrl}>
32
- <meta name="twitter:title" content="{title}">
33
- <meta name="twitter:description" content={description}>
34
- <meta name="twitter:image" content={websiteName + image}>
35
- {@html ` <script type="application/ld+json">{
36
- "@context": "https://schema.org",
37
- "@type": "Website",
38
- "name": "${title}",
39
- "url": "${fullUrl}",
40
- "logo": "${websiteName}${image}" }</script>`}
41
-
42
- <meta name="google-site-verification" content="F6vDzwDyZfebc9kWIZlhzpsAm5zhanaPkOArdCZdDSU" />
43
- </svelte:head>
@@ -1,4 +0,0 @@
1
- import type { SEOProps } from '../types/SEO.js';
2
- declare const SEO: import("svelte").Component<SEOProps, {}, "">;
3
- type SEO = ReturnType<typeof SEO>;
4
- export default SEO;
@@ -1,65 +0,0 @@
1
- <script lang="ts">
2
- import { sizeStyleParts, textStyle, type SizeStyle } from "../styles/size.js";
3
- import type { TextProps } from "../types/Text.js";
4
- import { twMerge } from "tailwind-merge";
5
-
6
- let {
7
- children = undefined,
8
- class: className = "",
9
- tag = "p",
10
- shrink = false,
11
- size = "none",
12
- ...restProps
13
- }: TextProps = $props();
14
-
15
- const tagStyles: Record<string, { class: string; size: keyof typeof textStyle }> = {
16
- "p": { class: "", size: "text-base" },
17
- "div": { class: "", size: "text-base" },
18
- "span": { class: "", size: "text-base" },
19
- "label": { class: "", size: "text-sm" },
20
- "strong": { class: "font-bold", size: "text-base" },
21
- "b": { class: "font-bold", size: "text-base" },
22
- "em": { class: "italic", size: "text-base" },
23
- "i": { class: "italic", size: "text-base" },
24
- "u": { class: "underline", size: "text-base" },
25
- "small": { class: "", size: "text-sm" },
26
- "blockquote": { class: "border-l-4 border-gray-500 pl-2 opacity-70", size: "text-base" },
27
- "pre": { class: "font-mono bg-sub-background px-3 py-2 radius overflow-x-auto whitespace-pre", size: "text-base" },
28
- "code": { class: "font-mono bg-sub-background px-3 py-2 radius inline-block", size: "text-base" },
29
- "a": { class: "text-blue-400 hover:text-blue-500 hover:underline transition-colors cursor-pointer", size: "text-base" },
30
- "li": { class: "text-base list-disc list-inside", size: "text-base" },
31
- "h1": { class: "font-extrabold", size: "text-6xl" },
32
- "h2": { class: "font-bold", size: "text-5xl" },
33
- "h3": { class: "font-semibold", size: "text-4xl" },
34
- "h4": { class: "font-medium", size: "text-3xl" },
35
- "h5": { class: "font-medium", size: "text-2xl" },
36
- "h6": { class: "font-medium", size: "text-xl" }
37
- };
38
-
39
- function getTextSizeInRem(): string {
40
- if (size !== "none") {
41
- const sizeKey = (sizeStyleParts[size as SizeStyle]?.text ?? "text-base") as keyof typeof textStyle;
42
- return textStyle[sizeKey] ?? textStyle["text-base"];
43
- }
44
-
45
- return textStyle[tagStyles[tag]?.size || "text-base"] ?? textStyle["text-base"];
46
- }
47
-
48
- let shrinkStyle = $derived(shrink
49
- ? `font-size: clamp(8px, 12cqi, ${getTextSizeInRem()}); white-space: nowrap; display: block; width: fit-content;`
50
- : ""
51
- );
52
-
53
- let defaultClass = "text-main-text";
54
- let combinedClass = $derived(twMerge(
55
- defaultClass,
56
- tagStyles[tag]?.class || "",
57
- tagStyles[tag]?.size || "",
58
- sizeStyleParts[size]?.text || "",
59
- className
60
- ));
61
- </script>
62
-
63
- <svelte:element this={tag} style={shrinkStyle} class={combinedClass} {...restProps}>
64
- {@render children?.()}
65
- </svelte:element>
@@ -1,4 +0,0 @@
1
- import type { TextProps } from "../types/Text.js";
2
- declare const Text: import("svelte").Component<TextProps, {}, "">;
3
- type Text = ReturnType<typeof Text>;
4
- export default Text;
@@ -1,86 +0,0 @@
1
- <script lang="ts">
2
- import { twMerge } from "tailwind-merge";
3
- import { onMount } from "svelte";
4
-
5
- import type { DisplaySegment, TypewriterProps } from "../types/Typewriter.d.js";
6
- import Text from "./Text.svelte";
7
-
8
- let {
9
- actions,
10
- class: className = "",
11
- textClass = "",
12
- ...restProps
13
- }: TypewriterProps = $props();
14
-
15
- let displaySegments = $state<DisplaySegment[]>([]);
16
-
17
- async function execute() {
18
- for (let i = 0; i < actions.length; i++) {
19
- const action = actions[i];
20
- switch (action.type) {
21
- case "write":
22
- const segment = { text: "", color: "", label: action.label };
23
- displaySegments.push(segment);
24
-
25
- const segmentProxy = displaySegments[displaySegments.length - 1];
26
-
27
- const resolvedValue = typeof action.value === "function" ? action.value() : action.value;
28
- const resolvedColor = typeof action.color === "function" ? action.color() : action.color;
29
- segmentProxy.color = resolvedColor;
30
- for (const char of resolvedValue) {
31
- segmentProxy.text += char;
32
- const speed = Math.random() * ((action.maxspeed || 100) - (action.minspeed || 50)) + (action.minspeed || 50);
33
- await new Promise(resolve => setTimeout(resolve, speed));
34
- }
35
- break;
36
- case "delete":
37
- const index = displaySegments.findIndex(s => s.label === action.to);
38
- if (index === -1) break;
39
- for (let j = displaySegments.length - 1; j >= index; j--) {
40
- const deleteSegment = displaySegments[j];
41
- while (deleteSegment.text.length > 0) {
42
- deleteSegment.text = deleteSegment.text.slice(0, -1);
43
- const speed = Math.random() * ((action.maxspeed || 100) - (action.minspeed || 50)) + (action.minspeed || 50);
44
- await new Promise(resolve => setTimeout(resolve, speed));
45
- }
46
- }
47
- displaySegments.splice(index, 1);
48
- break;
49
- case "pause":
50
- await new Promise(resolve => setTimeout(resolve, action.duration || 1000));
51
- break;
52
- case "jump":
53
- const position = actions.findIndex(a => a.label === action.position);
54
- if (position !== -1)
55
- i = position - 1;
56
- break;
57
- }
58
- }
59
- }
60
-
61
- onMount(() => {
62
- execute();
63
- });
64
-
65
- let combinedClass = $derived(twMerge("typewriter w-fit text-main-text", className));
66
- </script>
67
-
68
- <div class={combinedClass} {...restProps}>
69
- {#each displaySegments as segment}
70
- {#key segment}
71
- <Text tag="span" class={textClass} style="color: {segment.color}">{segment.text}</Text>
72
- {/key}
73
- {/each}
74
- </div>
75
-
76
- <style>
77
- .typewriter::after {
78
- content: "\00a0";
79
- animation: blink .7s step-start infinite;
80
- text-decoration: underline;
81
- }
82
-
83
- @keyframes blink {
84
- 50% { opacity: 0; }
85
- }
86
- </style>
@@ -1,4 +0,0 @@
1
- import type { TypewriterProps } from "../types/Typewriter.d.ts";
2
- declare const Typewriter: import("svelte").Component<TypewriterProps, {}, "">;
3
- type Typewriter = ReturnType<typeof Typewriter>;
4
- export default Typewriter;
@@ -1,4 +0,0 @@
1
- export type ColorStyle = "red" | "yellow" | "lightgreen" | "blue" | "pink" | "purple" | "gray" | "sub" | "none";
2
- export type ColorStyleType = "full" | "light" | "outline" | "ghost";
3
- export declare const colorStyleParts: Record<ColorStyle, Record<ColorStyleType, string>>;
4
- export declare function generateColorStyle(color: ColorStyle, variant: ColorStyleType): string;
@@ -1,62 +0,0 @@
1
- export const colorStyleParts = {
2
- red: {
3
- full: "bg-red-500 hover:bg-red-600",
4
- light: "bg-red-500/35 hover:bg-red-600/35 text-white/60",
5
- outline: "border border-red-500 hover:border-red-600 text-red-500 hover:text-red-600 hover:bg-red-500/10",
6
- ghost: "hover:bg-red-500"
7
- },
8
- yellow: {
9
- full: "bg-yellow-500 hover:bg-yellow-600",
10
- light: "bg-yellow-500/35 hover:bg-yellow-600/35 text-white/60",
11
- outline: "border border-yellow-500 hover:border-yellow-600 text-yellow-500 hover:text-yellow-600 hover:bg-yellow-500/10",
12
- ghost: "hover:bg-yellow-500"
13
- },
14
- lightgreen: {
15
- full: "bg-green-500 hover:bg-green-600",
16
- light: "bg-green-500/35 hover:bg-green-600/35 text-white/60",
17
- outline: "border border-green-500 hover:border-green-600 text-green-500 hover:text-green-600 hover:bg-green-500/10",
18
- ghost: "hover:bg-green-500"
19
- },
20
- blue: {
21
- full: "bg-blue-500 hover:bg-blue-600",
22
- light: "bg-blue-500/35 hover:bg-blue-600/35 text-white/60",
23
- outline: "border border-blue-500 hover:border-blue-600 text-blue-500 hover:text-blue-600 hover:bg-blue-500/10",
24
- ghost: "hover:bg-blue-500"
25
- },
26
- pink: {
27
- full: "bg-pink-500 hover:bg-pink-600",
28
- light: "bg-pink-500/35 hover:bg-pink-600/35 text-white/60",
29
- outline: "border border-pink-500 hover:border-pink-600 text-pink-500 hover:text-pink-600 hover:bg-pink-500/10",
30
- ghost: "hover:bg-pink-500"
31
- },
32
- purple: {
33
- full: "bg-purple-500 hover:bg-purple-600",
34
- light: "bg-purple-500/35 hover:bg-purple-600/35 text-white/60",
35
- outline: "border border-purple-500 hover:border-purple-600 text-purple-500 hover:text-purple-600 hover:bg-purple-500/10",
36
- ghost: "hover:bg-purple-500"
37
- },
38
- gray: {
39
- full: "bg-gray-500 hover:bg-gray-600",
40
- light: "bg-gray-500/35 hover:bg-gray-600/35 text-white/60",
41
- outline: "border border-gray-500 hover:border-gray-600 text-gray-500 hover:text-gray-600 hover:bg-gray-500/10",
42
- ghost: "hover:bg-gray-500"
43
- },
44
- sub: {
45
- full: "bg-sub-background hover:bg-sub-background-hover",
46
- light: "bg-sub-background hover:bg-sub-background-hover text-white/60",
47
- outline: "border border-sub-background hover:border-sub-background-hover text-sub-background hover:text-sub-background-hover hover:bg-sub-background/10",
48
- ghost: "hover:bg-sub-background"
49
- },
50
- none: {
51
- full: "",
52
- light: "",
53
- outline: "",
54
- ghost: ""
55
- }
56
- };
57
- export function generateColorStyle(color, variant) {
58
- const styles = colorStyleParts[color];
59
- if (!styles)
60
- return "";
61
- return styles[variant] || "";
62
- }
@@ -1,44 +0,0 @@
1
- @import 'tailwindcss';
2
-
3
- @utility flex-center {
4
- @apply flex items-center justify-center;
5
- }
6
-
7
- @custom-variant dark (&:where(.dark, .dark *));
8
-
9
- @theme {
10
- --color-main-background: var(--vpcui-color-main-background);
11
- --color-sub-background: var(--vpcui-color-sub-background);
12
- --color-sub-background-hover: var(--vpcui-color-sub-background-hover);
13
- --color-main-text: var(--vpcui-color-main-text);
14
- --color-sub-text: var(--vpcui-color-sub-text);
15
- --color-form-input-background: var(--vpcui-color-form-input-background);
16
- --color-form-input-hover: var(--vpcui-color-form-input-hover);
17
- --color-navbar-element-hover-background: var(--vpcui-color-navbar-element-hover-background);
18
- }
19
-
20
- :root {
21
- --vpcui-color-main-background: var(--color-mist-50);
22
- --vpcui-color-sub-background: var(--color-mist-300);
23
- --vpcui-color-sub-background-hover: var(--color-mist-400);
24
- --vpcui-color-main-text: #000;
25
- --vpcui-color-sub-text: #555;
26
- --vpcui-color-form-input-background: var(--color-mist-100);
27
- --vpcui-color-form-input-hover: var(--color-mist-200);
28
- --vpcui-color-navbar-element-hover-background: var(--color-mist-100);
29
- }
30
-
31
- html.dark {
32
- --vpcui-color-main-background: #121212;
33
- --vpcui-color-sub-background: #1c1c1c;
34
- --vpcui-color-sub-background-hover: #242424;
35
- --vpcui-color-main-text: #fff;
36
- --vpcui-color-sub-text: #aaa;
37
- --vpcui-color-form-input-background: #1c1c1c;
38
- --vpcui-color-form-input-hover: #2c2c2c;
39
- --vpcui-color-navbar-element-hover-background: var(--color-zinc-900);
40
- }
41
-
42
- html {
43
- background-color: var(--color-main-background);
44
- }
@@ -1,15 +0,0 @@
1
- export type SizeStyle = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full" | "none" | number;
2
- export type SizeStyleType = "button" | "buttonIcon" | "radius" | "text";
3
- export declare const sizeStyleParts: Record<SizeStyle, Record<SizeStyleType, string>>;
4
- export declare const textStyle: {
5
- "text-xs": string;
6
- "text-sm": string;
7
- "text-base": string;
8
- "text-lg": string;
9
- "text-xl": string;
10
- "text-2xl": string;
11
- "text-3xl": string;
12
- "text-4xl": string;
13
- "text-5xl": string;
14
- "text-6xl": string;
15
- };
@@ -1,92 +0,0 @@
1
- export const sizeStyleParts = {
2
- xs: {
3
- button: "text-xs h-4 px-1 py-0.5",
4
- buttonIcon: "text-xs h-4 w-4 p-0.5",
5
- radius: "rounded-xs",
6
- text: "text-xs"
7
- },
8
- sm: {
9
- button: "text-sm h-6 px-2 py-1",
10
- buttonIcon: "text-sm h-6 w-6 p-1",
11
- radius: "rounded-sm",
12
- text: "text-sm"
13
- },
14
- md: {
15
- button: "text-base h-8 px-3 py-1.5",
16
- buttonIcon: "text-base h-8 w-8 p-1.5",
17
- radius: "rounded-md",
18
- text: "text-base"
19
- },
20
- lg: {
21
- button: "text-lg h-10 px-4 py-2",
22
- buttonIcon: "text-lg h-10 w-10 p-2",
23
- radius: "rounded-lg",
24
- text: "text-lg"
25
- },
26
- xl: {
27
- button: "text-xl h-12 px-5 py-2.5",
28
- buttonIcon: "text-xl h-12 w-12 p-2.5",
29
- radius: "rounded-xl",
30
- text: "text-xl"
31
- },
32
- "2xl": {
33
- button: "text-2xl h-14 px-6 py-3",
34
- buttonIcon: "text-2xl h-14 w-14 p-3",
35
- radius: "rounded-2xl",
36
- text: "text-2xl"
37
- },
38
- "3xl": {
39
- button: "text-3xl h-16 px-7 py-3.5",
40
- buttonIcon: "text-3xl h-16 w-16 p-3.5",
41
- radius: "rounded-3xl",
42
- text: "text-3xl"
43
- },
44
- "4xl": {
45
- button: "text-4xl h-18 px-8 py-4",
46
- buttonIcon: "text-4xl h-18 w-18 p-4",
47
- radius: "rounded-4xl",
48
- text: "text-4xl"
49
- },
50
- "5xl": {
51
- button: "text-5xl h-20 px-9 py-4.5",
52
- buttonIcon: "text-5xl h-20 w-20 p-4.5",
53
- radius: "rounded-[2.5rem]",
54
- text: "text-5xl"
55
- },
56
- "6xl": {
57
- button: "text-6xl h-24 px-10 py-5",
58
- buttonIcon: "text-6xl h-24 w-24 p-5",
59
- radius: "rounded-[3rem]",
60
- text: "text-6xl"
61
- },
62
- full: {
63
- button: "w-full text-base h-8 px-3 py-1",
64
- buttonIcon: "w-full aspect-square text-base p-1",
65
- radius: "rounded-full",
66
- text: "w-full text-base"
67
- },
68
- none: {
69
- button: "p-0 h-auto text-base",
70
- buttonIcon: "p-0 h-auto w-auto text-base",
71
- radius: "rounded-none",
72
- text: ""
73
- },
74
- 0: {
75
- button: "",
76
- buttonIcon: "",
77
- radius: "rounded-none",
78
- text: ""
79
- }
80
- };
81
- export const textStyle = {
82
- "text-xs": "0.75rem",
83
- "text-sm": "0.875rem",
84
- "text-base": "1rem",
85
- "text-lg": "1.125rem",
86
- "text-xl": "1.25rem",
87
- "text-2xl": "1.5rem",
88
- "text-3xl": "1.875rem",
89
- "text-4xl": "2.25rem",
90
- "text-5xl": "3rem",
91
- "text-6xl": "3.75rem"
92
- };
@@ -1,3 +0,0 @@
1
- export interface AnalyticsProps {
2
- measurementId: string;
3
- }
@@ -1,17 +0,0 @@
1
- import type { ColorStyle, ColorStyleType } from "../styles/color.ts";
2
- import type { SizeStyle } from "../styles/size.ts";
3
-
4
- export interface ButtonProps {
5
- children?: any;
6
- class?: string;
7
- pill?: boolean;
8
- icon?: boolean;
9
- href?: string;
10
- color?: ColorStyle;
11
- variant?: ColorStyleType;
12
- disabled?: boolean;
13
- external?: boolean;
14
- size?: SizeStyle;
15
- radius?: SizeStyle;
16
- [key: string]: any;
17
- }
@@ -1,6 +0,0 @@
1
- export interface CardProps {
2
- children?: any;
3
- class?: string;
4
- href?: string;
5
- [key: string]: any;
6
- }
@@ -1,9 +0,0 @@
1
- export interface CheckboxProps {
2
- children?: any;
3
- class?: string;
4
- labelClass?: string;
5
- divClass?: string;
6
- checked?: boolean;
7
- id?: string;
8
- [key: string]: any;
9
- };
@@ -1,13 +0,0 @@
1
- export interface FloatingInputProps {
2
- children?: any;
3
- class?: string;
4
- labelClass?: string;
5
- divClass?: string;
6
- value?: string;
7
- isTextArea?: boolean;
8
- onfocus?: (e?: FocusEvent) => void;
9
- onblur?: (e?: FocusEvent) => void;
10
- validInputRegex?: RegExp;
11
- id?: `${string}-${string}-${string}-${string}-${string}`;
12
- [key: string]: any;
13
- };
@@ -1,10 +0,0 @@
1
- export interface FloatingSelectProps {
2
- children?: any;
3
- class?: string;
4
- divClass?: string;
5
- optionClass?: string;
6
- value?: any;
7
- options: { value: any; label: string }[];
8
- id?: `${string}-${string}-${string}-${string}-${string}`;
9
- [key: string]: any;
10
- };
@@ -1,17 +0,0 @@
1
- export interface NavbarProps {
2
- children?: any;
3
- class?: string;
4
- classTop?: string;
5
- threshold?: number;
6
- [key: string]: any;
7
- };
8
-
9
- export interface NavbarElementProps {
10
- children?: any;
11
- class?: string;
12
- classTop?: string;
13
- activeClass?: string;
14
- href?: string;
15
- threshold?: number;
16
- [key: string]: any;
17
- }
@@ -1,6 +0,0 @@
1
- export interface SEOProps {
2
- websiteName: string;
3
- title?: string;
4
- description?: string;
5
- image?: any;
6
- }
@@ -1,10 +0,0 @@
1
- type TextTagOptions = "p" | "div" | "span" | "label" | "strong" | "em" | "b" | "i" | "u" | "small" | "blockquote" | "pre" | "code" | "a" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
2
-
3
- export interface TextProps {
4
- children?: any;
5
- class?: string;
6
- tag?: TextTagOptions;
7
- shrink?: boolean;
8
- size?: SizeStyle;
9
- [key: string]: any;
10
- };
@@ -1,18 +0,0 @@
1
- export type TypewriterAction =
2
- | { type: "write", value: string | (() => string), color?: string | (() => string), minspeed?: number, maxspeed?: number, label?: string }
3
- | { type: "delete", to: string, minspeed?: number, maxspeed?: number, label?: string }
4
- | { type: "pause", duration: number, label?: string }
5
- | { type: "jump", position: string, label?: string };
6
-
7
- export interface DisplaySegment {
8
- text: string;
9
- color?: string;
10
- label?: string;
11
- };
12
-
13
- export interface TypewriterProps {
14
- actions: TypewriterAction[];
15
- class?: string;
16
- textClass?: string;
17
- [key: string]: any;
18
- }