@tanglemedia/svelte-starter-auth-shadcn 0.0.1 → 0.0.3

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.
@@ -0,0 +1 @@
1
+ export * from './lib';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './lib';
@@ -1,33 +1,35 @@
1
1
  <script lang="ts">
2
- import { Button } from '@tanglemedia/svelte-starter-ui-shadcn/Button';
2
+ import { Button } from '@tanglemedia/svelte-starter-ui-shadcn';
3
3
  // import { getConfig } from '@tanglemedia/svelte-starter-core';
4
4
 
5
5
  interface Props {
6
- logo?: string;
7
- name?: string;
8
- quote?: string;
9
- quoteAuthor?: string;
10
- layoutMode?: string;
11
- leftSideBackground?: string;
12
- rightSideBackground?: string;
13
- opacity?: number;
14
- logoClass?: string;
15
- filterClass?: string;
16
- imageClass?: string;
6
+ logo?: string | null;
7
+ backgroundImage?: string | null;
8
+ name?: string | null;
9
+ quote?: string | null;
10
+ quoteAuthor?: string | null;
11
+ layoutMode?: string | null;
12
+ leftSideBackground?: string | null;
13
+ rightSideBackground?: string | null;
14
+ opacity?: number | null;
15
+ logoClass?: string | null;
16
+ filterClass?: string | null;
17
+ backgroundImageClass?: string | null;
17
18
  }
18
19
 
19
20
  let {
20
- logo,
21
- name,
22
- quote,
23
- quoteAuthor,
21
+ logo = null,
22
+ backgroundImage = "https://images.unsplash.com/photo-1590069261209-f8e9b8642343?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1376&q=80",
23
+ name = "Tangle Media Inc.",
24
+ quote = "",
25
+ quoteAuthor = "",
24
26
  layoutMode,
25
27
  leftSideBackground,
26
28
  rightSideBackground,
27
29
  opacity,
28
- logoClass,
30
+ logoClass = "",
29
31
  filterClass,
30
- imageClass,
32
+ backgroundImageClass = "",
31
33
  children
32
34
  }: Props = $props();
33
35
  </script>
@@ -37,41 +39,45 @@
37
39
  >
38
40
  <div class="bg-muted relative hidden h-full flex-col p-10 text-white lg:flex dark:border-r">
39
41
  <div
40
- class="absolute inset-0 bg-background"
42
+ class="absolute inset-0 bg-background {backgroundImageClass}"
41
43
  style="
42
44
  background-image:
43
- url(https://images.unsplash.com/photo-1590069261209-f8e9b8642343?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1376&q=80);"
45
+ url({backgroundImage});"
44
46
  ></div>
45
47
  <div class="relative z-20 flex items-center text-lg font-medium text-shadow-lg">
46
- Acme Inc
48
+ {#if logo}
49
+ <img src={logo} alt="logo" class={logoClass} />
50
+ {:else}
51
+ {name}
52
+ {/if}
47
53
  </div>
48
54
  <div class="relative z-20 mt-auto">
49
55
  <blockquote class="space-y-2">
50
56
  <p class="text-lg text-shadow-lg">
51
- &ldquo;This library has saved me countless hours of work and helped me deliver
52
- stunning designs to my clients faster than ever before. Highly
53
- recommended!&rdquo;
57
+ {quote}
54
58
  </p>
55
- <footer class="text-sm text-shadow-lg">Sofia Davis</footer>
59
+ <footer class="text-sm text-shadow-lg">{quoteAuthor}</footer>
56
60
  </blockquote>
57
61
  </div>
58
62
  <div class="absolute top-0 bottom-0 left-0 right-0 bg-primary-500/10 filter blur(2px)"></div>
59
63
  </div>
60
- <div class="lg:hidden absolute top-0 left-0 right-0 bottom-1/2 z-[-1]" style="
64
+ <div class="lg:hidden absolute top-0 left-0 right-0 bottom-1/2 z-[-1] {backgroundImageClass}" style="
61
65
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
62
66
  background-image:
63
- url(https://images.unsplash.com/photo-1590069261209-f8e9b8642343?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx);
67
+ url({backgroundImage});
64
68
  background-size: cover;
65
69
  background-position: center">
66
70
  <div class="text-white top-6 left-6 absolute text-lg font-medium z-20 text-shadow-lg">
67
- Acme Inc
71
+ {#if logo}
72
+ <img src={logo} alt="logo" class={logoClass} />
73
+ {:else}
74
+ {name}
75
+ {/if}
68
76
  <blockquote class="space-y-2 mt-2 mr-4">
69
77
  <p class="text-sm text-shadow-lg">
70
- &ldquo;This library has saved me countless hours of work and helped me deliver
71
- stunning designs to my clients faster than ever before. Highly
72
- recommended!&rdquo;
78
+ {quote}
73
79
  </p>
74
- <footer class="text-xs text-shadow-lg">Sofia Davis</footer>
80
+ <footer class="text-xs text-shadow-lg">{quoteAuthor}</footer>
75
81
  </blockquote>
76
82
  </div>
77
83
  <div class="absolute top-0 bottom-0 left-0 right-0 bg-primary-500/10 filter blur(2px)"></div>
@@ -1,15 +1,16 @@
1
1
  interface Props {
2
- logo?: string;
3
- name?: string;
4
- quote?: string;
5
- quoteAuthor?: string;
6
- layoutMode?: string;
7
- leftSideBackground?: string;
8
- rightSideBackground?: string;
9
- opacity?: number;
10
- logoClass?: string;
11
- filterClass?: string;
12
- imageClass?: string;
2
+ logo?: string | null;
3
+ backgroundImage?: string | null;
4
+ name?: string | null;
5
+ quote?: string | null;
6
+ quoteAuthor?: string | null;
7
+ layoutMode?: string | null;
8
+ leftSideBackground?: string | null;
9
+ rightSideBackground?: string | null;
10
+ opacity?: number | null;
11
+ logoClass?: string | null;
12
+ filterClass?: string | null;
13
+ backgroundImageClass?: string | null;
13
14
  }
14
15
  declare const AuthLayout: import("svelte").Component<Props, {}, "">;
15
16
  type AuthLayout = ReturnType<typeof AuthLayout>;
@@ -1,9 +1,5 @@
1
1
  <script lang="ts">
2
- import * as Card from '@tanglemedia/svelte-starter-ui-shadcn/Card';
3
- import { Button } from '@tanglemedia/svelte-starter-ui-shadcn/Button';
4
- import { Input } from '@tanglemedia/svelte-starter-ui-shadcn/Input';
5
- import { Label } from '@tanglemedia/svelte-starter-ui-shadcn/Label';
6
- import * as Form from '@tanglemedia/svelte-starter-ui-shadcn/Form';
2
+ import { Button, Card, Input, Label, Form } from '@tanglemedia/svelte-starter-ui-shadcn';
7
3
  import type { Snippet } from 'svelte';
8
4
 
9
5
  interface Props {
@@ -0,0 +1,5 @@
1
+ export * from './auth-layout';
2
+ export * from './login-form';
3
+ export * from './register-form';
4
+ export * from './reset-password';
5
+ export * from './forgot-password';
@@ -0,0 +1,5 @@
1
+ export * from './auth-layout';
2
+ export * from './login-form';
3
+ export * from './register-form';
4
+ export * from './reset-password';
5
+ export * from './forgot-password';
@@ -1,9 +1,5 @@
1
1
  <script lang="ts">
2
- import * as Card from '@tanglemedia/svelte-starter-ui-shadcn/Card';
3
- import { Button } from '@tanglemedia/svelte-starter-ui-shadcn/Button';
4
- import { Input } from '@tanglemedia/svelte-starter-ui-shadcn/Input';
5
- import { Label } from '@tanglemedia/svelte-starter-ui-shadcn/Label';
6
- import * as Form from '@tanglemedia/svelte-starter-ui-shadcn/Form';
2
+ import { Button, Card, Input, Label, Form } from '@tanglemedia/svelte-starter-ui-shadcn';
7
3
  import type { Snippet } from 'svelte';
8
4
 
9
5
  interface Props {
@@ -1,9 +1,5 @@
1
1
  <script lang="ts">
2
- import * as Card from '@tanglemedia/svelte-starter-ui-shadcn/Card';
3
- import { Button } from '@tanglemedia/svelte-starter-ui-shadcn/Button';
4
- import { Input } from '@tanglemedia/svelte-starter-ui-shadcn/Input';
5
- import { Label } from '@tanglemedia/svelte-starter-ui-shadcn/Label';
6
- import * as Form from '@tanglemedia/svelte-starter-ui-shadcn/Form';
2
+ import { Button, Card, Input, Label, Form } from '@tanglemedia/svelte-starter-ui-shadcn';
7
3
 
8
4
  interface Props {
9
5
  superform: any;
@@ -1,9 +1,5 @@
1
1
  <script lang="ts">
2
- import * as Card from '@tanglemedia/svelte-starter-ui-shadcn/Card';
3
- import { Button } from '@tanglemedia/svelte-starter-ui-shadcn/Button';
4
- import { Input } from '@tanglemedia/svelte-starter-ui-shadcn/Input';
5
- import { Label } from '@tanglemedia/svelte-starter-ui-shadcn/Label';
6
- import * as Form from '@tanglemedia/svelte-starter-ui-shadcn/Form';
2
+ import { Button, Card, Input, Label, Form } from '@tanglemedia/svelte-starter-ui-shadcn';
7
3
  import type { Snippet } from 'svelte';
8
4
 
9
5
  interface Props {
@@ -0,0 +1 @@
1
+ export * from './is-mobile.svelte';
@@ -0,0 +1 @@
1
+ export * from './is-mobile.svelte';
@@ -0,0 +1,3 @@
1
+ export * from './utils';
2
+ export * from './hooks';
3
+ export * from './components/ui';
@@ -0,0 +1,3 @@
1
+ export * from './utils';
2
+ export * from './hooks';
3
+ export * from './components/ui';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanglemedia/svelte-starter-auth-shadcn",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "main": "src/index.ts",
5
5
  "types": "src/index.ts",
6
6
  "description": "Auth features and components for use in svelte websites",
@@ -16,45 +16,7 @@
16
16
  "exports": {
17
17
  ".": {
18
18
  "types": "./dist/index.d.ts",
19
- "svelte": "./dist/index.js",
20
- "import": "./dist/index.js",
21
- "default": "./dist/index.js"
22
- },
23
- "./Login-Form": {
24
- "default": "./src/lib/components/ui/login-form/index.ts",
25
- "types": "./src/lib/components/ui/login-form/index.ts",
26
- "svelte": "./src/lib/components/ui/login-form/index.ts",
27
- "import": "./src/lib/components/ui/login-form/index.ts"
28
- },
29
- "./Register-Form": {
30
- "default": "./src/lib/components/ui/register-form/index.ts",
31
- "types": "./src/lib/components/ui/register-form/index.ts",
32
- "svelte": "./src/lib/components/ui/register-form/index.ts",
33
- "import": "./src/lib/components/ui/register-form/index.ts"
34
- },
35
- "./Reset-Password-Form": {
36
- "default": "./src/lib/components/ui/reset-password/index.ts",
37
- "types": "./src/lib/components/ui/reset-password/index.ts",
38
- "svelte": "./src/lib/components/ui/reset-password/index.ts",
39
- "import": "./src/lib/components/ui/reset-password/index.ts"
40
- },
41
- "./Forgot-Password-Form": {
42
- "default": "./src/lib/components/ui/forgot-password/index.ts",
43
- "types": "./src/lib/components/ui/forgot-password/index.ts",
44
- "svelte": "./src/lib/components/ui/forgot-password/index.ts",
45
- "import": "./src/lib/components/ui/forgot-password/index.ts"
46
- },
47
- "./Auth-Layout": {
48
- "default": "./src/lib/components/ui/auth-layout/index.ts",
49
- "types": "./src/lib/components/ui/auth-layout/index.ts",
50
- "svelte": "./src/lib/components/ui/auth-layout/index.ts",
51
- "import": "./src/lib/components/ui/auth-layout/index.ts"
52
- },
53
- "./hooks": {
54
- "default": "./src/lib/hooks"
55
- },
56
- "./utils": {
57
- "default": "./src/lib/utils"
19
+ "svelte": "./dist/index.js"
58
20
  }
59
21
  },
60
22
  "devDependencies": {
@@ -82,9 +44,9 @@
82
44
  "typescript-eslint": "^8.20.0",
83
45
  "vite": "^6.0.0",
84
46
  "vitest": "^3.0.0",
85
- "@tanglemedia/svelte-starter-ui-shadcn": "0.0.1",
86
47
  "@internal/eslint-config": "0.0.0",
87
- "@tanglemedia/svelte-starter-core": "2.0.0"
48
+ "@tanglemedia/svelte-starter-core": "2.0.0",
49
+ "@tanglemedia/svelte-starter-ui-shadcn": "0.0.6"
88
50
  },
89
51
  "dependencies": {},
90
52
  "peerDependencies": {
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lib';
@@ -1,33 +1,35 @@
1
1
  <script lang="ts">
2
- import { Button } from '@tanglemedia/svelte-starter-ui-shadcn/Button';
2
+ import { Button } from '@tanglemedia/svelte-starter-ui-shadcn';
3
3
  // import { getConfig } from '@tanglemedia/svelte-starter-core';
4
4
 
5
5
  interface Props {
6
- logo?: string;
7
- name?: string;
8
- quote?: string;
9
- quoteAuthor?: string;
10
- layoutMode?: string;
11
- leftSideBackground?: string;
12
- rightSideBackground?: string;
13
- opacity?: number;
14
- logoClass?: string;
15
- filterClass?: string;
16
- imageClass?: string;
6
+ logo?: string | null;
7
+ backgroundImage?: string | null;
8
+ name?: string | null;
9
+ quote?: string | null;
10
+ quoteAuthor?: string | null;
11
+ layoutMode?: string | null;
12
+ leftSideBackground?: string | null;
13
+ rightSideBackground?: string | null;
14
+ opacity?: number | null;
15
+ logoClass?: string | null;
16
+ filterClass?: string | null;
17
+ backgroundImageClass?: string | null;
17
18
  }
18
19
 
19
20
  let {
20
- logo,
21
- name,
22
- quote,
23
- quoteAuthor,
21
+ logo = null,
22
+ backgroundImage = "https://images.unsplash.com/photo-1590069261209-f8e9b8642343?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1376&q=80",
23
+ name = "Tangle Media Inc.",
24
+ quote = "",
25
+ quoteAuthor = "",
24
26
  layoutMode,
25
27
  leftSideBackground,
26
28
  rightSideBackground,
27
29
  opacity,
28
- logoClass,
30
+ logoClass = "",
29
31
  filterClass,
30
- imageClass,
32
+ backgroundImageClass = "",
31
33
  children
32
34
  }: Props = $props();
33
35
  </script>
@@ -37,41 +39,45 @@
37
39
  >
38
40
  <div class="bg-muted relative hidden h-full flex-col p-10 text-white lg:flex dark:border-r">
39
41
  <div
40
- class="absolute inset-0 bg-background"
42
+ class="absolute inset-0 bg-background {backgroundImageClass}"
41
43
  style="
42
44
  background-image:
43
- url(https://images.unsplash.com/photo-1590069261209-f8e9b8642343?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1376&q=80);"
45
+ url({backgroundImage});"
44
46
  ></div>
45
47
  <div class="relative z-20 flex items-center text-lg font-medium text-shadow-lg">
46
- Acme Inc
48
+ {#if logo}
49
+ <img src={logo} alt="logo" class={logoClass} />
50
+ {:else}
51
+ {name}
52
+ {/if}
47
53
  </div>
48
54
  <div class="relative z-20 mt-auto">
49
55
  <blockquote class="space-y-2">
50
56
  <p class="text-lg text-shadow-lg">
51
- &ldquo;This library has saved me countless hours of work and helped me deliver
52
- stunning designs to my clients faster than ever before. Highly
53
- recommended!&rdquo;
57
+ {quote}
54
58
  </p>
55
- <footer class="text-sm text-shadow-lg">Sofia Davis</footer>
59
+ <footer class="text-sm text-shadow-lg">{quoteAuthor}</footer>
56
60
  </blockquote>
57
61
  </div>
58
62
  <div class="absolute top-0 bottom-0 left-0 right-0 bg-primary-500/10 filter blur(2px)"></div>
59
63
  </div>
60
- <div class="lg:hidden absolute top-0 left-0 right-0 bottom-1/2 z-[-1]" style="
64
+ <div class="lg:hidden absolute top-0 left-0 right-0 bottom-1/2 z-[-1] {backgroundImageClass}" style="
61
65
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
62
66
  background-image:
63
- url(https://images.unsplash.com/photo-1590069261209-f8e9b8642343?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx);
67
+ url({backgroundImage});
64
68
  background-size: cover;
65
69
  background-position: center">
66
70
  <div class="text-white top-6 left-6 absolute text-lg font-medium z-20 text-shadow-lg">
67
- Acme Inc
71
+ {#if logo}
72
+ <img src={logo} alt="logo" class={logoClass} />
73
+ {:else}
74
+ {name}
75
+ {/if}
68
76
  <blockquote class="space-y-2 mt-2 mr-4">
69
77
  <p class="text-sm text-shadow-lg">
70
- &ldquo;This library has saved me countless hours of work and helped me deliver
71
- stunning designs to my clients faster than ever before. Highly
72
- recommended!&rdquo;
78
+ {quote}
73
79
  </p>
74
- <footer class="text-xs text-shadow-lg">Sofia Davis</footer>
80
+ <footer class="text-xs text-shadow-lg">{quoteAuthor}</footer>
75
81
  </blockquote>
76
82
  </div>
77
83
  <div class="absolute top-0 bottom-0 left-0 right-0 bg-primary-500/10 filter blur(2px)"></div>
@@ -1,9 +1,5 @@
1
1
  <script lang="ts">
2
- import * as Card from '@tanglemedia/svelte-starter-ui-shadcn/Card';
3
- import { Button } from '@tanglemedia/svelte-starter-ui-shadcn/Button';
4
- import { Input } from '@tanglemedia/svelte-starter-ui-shadcn/Input';
5
- import { Label } from '@tanglemedia/svelte-starter-ui-shadcn/Label';
6
- import * as Form from '@tanglemedia/svelte-starter-ui-shadcn/Form';
2
+ import { Button, Card, Input, Label, Form } from '@tanglemedia/svelte-starter-ui-shadcn';
7
3
  import type { Snippet } from 'svelte';
8
4
 
9
5
  interface Props {
@@ -0,0 +1,5 @@
1
+ export * from './auth-layout';
2
+ export * from './login-form';
3
+ export * from './register-form';
4
+ export * from './reset-password';
5
+ export * from './forgot-password';
@@ -1,9 +1,5 @@
1
1
  <script lang="ts">
2
- import * as Card from '@tanglemedia/svelte-starter-ui-shadcn/Card';
3
- import { Button } from '@tanglemedia/svelte-starter-ui-shadcn/Button';
4
- import { Input } from '@tanglemedia/svelte-starter-ui-shadcn/Input';
5
- import { Label } from '@tanglemedia/svelte-starter-ui-shadcn/Label';
6
- import * as Form from '@tanglemedia/svelte-starter-ui-shadcn/Form';
2
+ import { Button, Card, Input, Label, Form } from '@tanglemedia/svelte-starter-ui-shadcn';
7
3
  import type { Snippet } from 'svelte';
8
4
 
9
5
  interface Props {
@@ -1,9 +1,5 @@
1
1
  <script lang="ts">
2
- import * as Card from '@tanglemedia/svelte-starter-ui-shadcn/Card';
3
- import { Button } from '@tanglemedia/svelte-starter-ui-shadcn/Button';
4
- import { Input } from '@tanglemedia/svelte-starter-ui-shadcn/Input';
5
- import { Label } from '@tanglemedia/svelte-starter-ui-shadcn/Label';
6
- import * as Form from '@tanglemedia/svelte-starter-ui-shadcn/Form';
2
+ import { Button, Card, Input, Label, Form } from '@tanglemedia/svelte-starter-ui-shadcn';
7
3
 
8
4
  interface Props {
9
5
  superform: any;
@@ -1,9 +1,5 @@
1
1
  <script lang="ts">
2
- import * as Card from '@tanglemedia/svelte-starter-ui-shadcn/Card';
3
- import { Button } from '@tanglemedia/svelte-starter-ui-shadcn/Button';
4
- import { Input } from '@tanglemedia/svelte-starter-ui-shadcn/Input';
5
- import { Label } from '@tanglemedia/svelte-starter-ui-shadcn/Label';
6
- import * as Form from '@tanglemedia/svelte-starter-ui-shadcn/Form';
2
+ import { Button, Card, Input, Label, Form } from '@tanglemedia/svelte-starter-ui-shadcn';
7
3
  import type { Snippet } from 'svelte';
8
4
 
9
5
  interface Props {
@@ -0,0 +1 @@
1
+ export * from './is-mobile.svelte';
@@ -0,0 +1,3 @@
1
+ export * from './utils';
2
+ export * from './hooks';
3
+ export * from './components/ui';