@valerius_petrini/corekit-ui 0.1.49 → 0.1.52

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 (54) hide show
  1. package/dist/components/Analytics.svelte.d.ts +1 -1
  2. package/dist/components/Button.svelte +35 -18
  3. package/dist/components/Button.svelte.d.ts +1 -1
  4. package/dist/components/Card.svelte +46 -6
  5. package/dist/components/Card.svelte.d.ts +1 -1
  6. package/dist/components/Checkbox.svelte +2 -1
  7. package/dist/components/Checkbox.svelte.d.ts +1 -1
  8. package/dist/components/FloatingInput.svelte +142 -30
  9. package/dist/components/FloatingInput.svelte.d.ts +3 -2
  10. package/dist/components/FloatingSelect.svelte +3 -2
  11. package/dist/components/FloatingSelect.svelte.d.ts +1 -1
  12. package/dist/components/Navbar.svelte +2 -2
  13. package/dist/components/Navbar.svelte.d.ts +1 -1
  14. package/dist/components/NavbarElement.svelte +1 -1
  15. package/dist/components/NavbarElement.svelte.d.ts +1 -1
  16. package/dist/components/Progress.svelte +69 -0
  17. package/dist/components/Progress.svelte.d.ts +4 -0
  18. package/dist/components/SEO.svelte.d.ts +1 -1
  19. package/dist/components/Text.svelte +6 -6
  20. package/dist/components/Text.svelte.d.ts +1 -1
  21. package/dist/components/Typewriter.svelte +1 -1
  22. package/dist/components/Typewriter.svelte.d.ts +1 -1
  23. package/dist/index.d.ts +2 -1
  24. package/dist/index.js +1 -0
  25. package/dist/styles/color.d.ts +2 -2
  26. package/dist/styles/color.js +148 -6
  27. package/dist/styles/layout.css +31 -23
  28. package/dist/styles/size.d.ts +4 -3
  29. package/dist/styles/size.js +72 -18
  30. package/dist/types/Analytics.d.ts +1 -1
  31. package/dist/types/Analytics.js +1 -0
  32. package/dist/types/Button.d.ts +2 -2
  33. package/dist/types/Button.js +1 -0
  34. package/dist/types/Card.d.ts +8 -1
  35. package/dist/types/Card.js +4 -0
  36. package/dist/types/Checkbox.d.ts +2 -1
  37. package/dist/types/Checkbox.js +2 -0
  38. package/dist/types/FloatingInput.d.ts +14 -4
  39. package/dist/types/FloatingInput.js +2 -0
  40. package/dist/types/FloatingSelect.d.ts +7 -3
  41. package/dist/types/FloatingSelect.js +2 -0
  42. package/dist/types/Navbar.d.ts +2 -3
  43. package/dist/types/Navbar.js +2 -0
  44. package/dist/types/Progress.d.ts +20 -0
  45. package/dist/types/Progress.js +2 -0
  46. package/dist/types/SEO.d.ts +1 -1
  47. package/dist/types/SEO.js +1 -0
  48. package/dist/types/Text.d.ts +5 -4
  49. package/dist/types/Text.js +2 -0
  50. package/dist/types/Typewriter.d.ts +24 -9
  51. package/dist/types/Typewriter.js +2 -0
  52. package/dist/utils/link.d.ts +9 -0
  53. package/dist/utils/link.js +9 -0
  54. package/package.json +3 -3
@@ -1,10 +1,11 @@
1
+ import type { SizeStyle } from "../styles/size.ts";
1
2
  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
3
  export interface TextProps {
4
4
  children?: any;
5
5
  class?: string;
6
6
  tag?: TextTagOptions;
7
- shrink?: boolean;
7
+ shrink?: number;
8
8
  size?: SizeStyle;
9
- [key: string]: any;
10
- };
9
+ [key: string]: any;
10
+ }
11
+ export {};
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
@@ -1,18 +1,33 @@
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
-
1
+ export type TypewriterAction = {
2
+ type: "write";
3
+ value: string | (() => string);
4
+ color?: string | (() => string);
5
+ minspeed?: number;
6
+ maxspeed?: number;
7
+ label?: string;
8
+ } | {
9
+ type: "delete";
10
+ to: string;
11
+ minspeed?: number;
12
+ maxspeed?: number;
13
+ label?: string;
14
+ } | {
15
+ type: "pause";
16
+ duration: number;
17
+ label?: string;
18
+ } | {
19
+ type: "jump";
20
+ position: string;
21
+ label?: string;
22
+ };
7
23
  export interface DisplaySegment {
8
24
  text: string;
9
25
  color?: string;
10
26
  label?: string;
11
- };
12
-
27
+ }
13
28
  export interface TypewriterProps {
14
29
  actions: TypewriterAction[];
15
30
  class?: string;
16
31
  textClass?: string;
17
32
  [key: string]: any;
18
- }
33
+ }
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare function getLinkProps(href?: string, external?: boolean): {
2
+ href?: undefined;
3
+ target?: undefined;
4
+ rel?: undefined;
5
+ } | {
6
+ href: string;
7
+ target: string | undefined;
8
+ rel: string | undefined;
9
+ };
@@ -0,0 +1,9 @@
1
+ export function getLinkProps(href, external) {
2
+ if (!href)
3
+ return {};
4
+ return {
5
+ href,
6
+ target: external ? "_blank" : undefined,
7
+ rel: external ? "noopener noreferrer" : undefined,
8
+ };
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valerius_petrini/corekit-ui",
3
- "version": "0.1.49",
3
+ "version": "0.1.52",
4
4
  "description": "Component Library used across all my projects",
5
5
  "author": "Valerius Petrini Jr.",
6
6
  "license": "MIT",
@@ -28,8 +28,7 @@
28
28
  ".": {
29
29
  "types": "./dist/index.d.ts",
30
30
  "svelte": "./dist/index.js"
31
- },
32
- "./layout.css": "./dist/styles/layout.css"
31
+ }
33
32
  },
34
33
  "peerDependencies": {
35
34
  "svelte": "^5.0.0"
@@ -54,6 +53,7 @@
54
53
  "svelte"
55
54
  ],
56
55
  "dependencies": {
56
+ "@lucide/svelte": "^1.3.0",
57
57
  "tailwind-merge": "^3.5.0"
58
58
  }
59
59
  }