@profidev/pleiades 1.9.5 → 1.9.6

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.
@@ -85,14 +85,13 @@
85
85
  onUpdate: async ({ form, cancel }) => {
86
86
  if (!form.valid) return;
87
87
 
88
- isError = false;
89
88
  isLoading = true;
90
-
91
89
  let ret = await onsubmit(form.data);
92
-
93
90
  isLoading = false;
91
+
94
92
  if (ret) {
95
93
  if (ret.field) {
94
+ isError = true;
96
95
  setError(form, ret.field as '', ret.error, undefined);
97
96
  } else {
98
97
  if (ret.error !== '') {
@@ -100,6 +99,8 @@
100
99
  if (!noErrorToast) {
101
100
  toast.error(ret.error);
102
101
  }
102
+ } else {
103
+ isError = false;
103
104
  }
104
105
  cancel();
105
106
  }
@@ -30,7 +30,7 @@
30
30
  {#snippet child({ props })}
31
31
  <a href="/" {...props}>
32
32
  <div
33
- class="bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg"
33
+ class="bg-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg"
34
34
  >
35
35
  <AppIcon class={cn('size-4 text-[#9db6ed]', iconClass)} />
36
36
  </div>
@@ -50,7 +50,7 @@
50
50
  >
51
51
  <div
52
52
  data-open={!isOpen}
53
- class="data-[open=true]:bg-sidebar-primary data-[open=true]:text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg"
53
+ class="data-[open=true]:bg-primary data-[open=true]:text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg"
54
54
  >
55
55
  {#if isOpen}
56
56
  <PanelLeftClose class="size-6!" />
@@ -14,7 +14,7 @@
14
14
  bind:this={ref}
15
15
  data-slot="alert-title"
16
16
  class={cn(
17
- '[&_a]:hover:text-foreground font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3',
17
+ 'font-heading [&_a]:hover:text-foreground font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3',
18
18
  className
19
19
  )}
20
20
  {...restProps}
@@ -13,7 +13,7 @@
13
13
  bind:ref
14
14
  data-slot="alert-dialog-title"
15
15
  class={cn(
16
- 'text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2',
16
+ 'font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2',
17
17
  className
18
18
  )}
19
19
  {...restProps}
@@ -14,7 +14,7 @@
14
14
  bind:this={ref}
15
15
  data-slot="card-title"
16
16
  class={cn(
17
- 'text-base leading-snug font-medium group-data-[size=sm]/card:text-sm',
17
+ 'font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm',
18
18
  className
19
19
  )}
20
20
  {...restProps}
@@ -34,7 +34,7 @@
34
34
 
35
35
  {#if themeContents}
36
36
  {#key id}
37
- <svelte:element this={'style'}>
37
+ <svelte:element this={"style"}>
38
38
  {themeContents}
39
39
  </svelte:element>
40
40
  {/key}
@@ -12,6 +12,6 @@
12
12
  <DialogPrimitive.Title
13
13
  bind:ref
14
14
  data-slot="dialog-title"
15
- class={cn('text-base leading-none font-medium', className)}
15
+ class={cn('font-heading text-base leading-none font-medium', className)}
16
16
  {...restProps}
17
17
  />
@@ -12,6 +12,6 @@
12
12
  <DrawerPrimitive.Title
13
13
  bind:ref
14
14
  data-slot="drawer-title"
15
- class={cn('text-foreground text-base font-medium', className)}
15
+ class={cn('font-heading text-foreground text-base font-medium', className)}
16
16
  {...restProps}
17
17
  />
@@ -13,7 +13,7 @@
13
13
  <div
14
14
  bind:this={ref}
15
15
  data-slot="empty-title"
16
- class={cn('text-sm font-medium tracking-tight', className)}
16
+ class={cn('font-heading text-sm font-medium tracking-tight', className)}
17
17
  {...restProps}
18
18
  >
19
19
  {@render children?.()}
@@ -14,7 +14,7 @@
14
14
  bind:this={ref}
15
15
  data-slot="field-label"
16
16
  class={cn(
17
- 'flex w-fit items-center gap-2 text-sm leading-snug leading-snug font-medium group-data-[disabled=true]/field:opacity-50',
17
+ 'font-heading flex w-fit items-center gap-2 text-sm leading-snug leading-snug font-medium group-data-[disabled=true]/field:opacity-50',
18
18
  className
19
19
  )}
20
20
  {...restProps}
@@ -14,7 +14,7 @@
14
14
  bind:this={ref}
15
15
  data-slot="item-title"
16
16
  class={cn(
17
- 'line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4',
17
+ 'font-heading line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4',
18
18
  className
19
19
  )}
20
20
  {...restProps}
@@ -13,7 +13,7 @@
13
13
  <div
14
14
  bind:this={ref}
15
15
  data-slot="popover-title"
16
- class={cn('font-medium', className)}
16
+ class={cn('font-heading font-medium', className)}
17
17
  {...restProps}
18
18
  >
19
19
  {@render children?.()}
@@ -12,6 +12,6 @@
12
12
  <SheetPrimitive.Title
13
13
  bind:ref
14
14
  data-slot="sheet-title"
15
- class={cn('text-foreground text-base font-medium', className)}
15
+ class={cn('font-heading text-foreground text-base font-medium', className)}
16
16
  {...restProps}
17
17
  />
@@ -7,7 +7,7 @@
7
7
  variant: {
8
8
  default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
9
9
  outline:
10
- 'bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]'
10
+ 'bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)]'
11
11
  },
12
12
  size: {
13
13
  default: 'h-8 text-sm',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profidev/pleiades",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Profiidev/pleiades"
@@ -796,25 +796,25 @@
796
796
  "zod": "^4.0.0"
797
797
  },
798
798
  "devDependencies": {
799
- "@fontsource-variable/inter": "5.2.8",
799
+ "@fontsource-variable/geist": "5.2.9",
800
800
  "@jsrepo/transform-oxfmt": "^7.0.0",
801
801
  "@sveltejs/adapter-auto": "7.0.1",
802
- "@sveltejs/package": "2.5.7",
802
+ "@sveltejs/package": "2.5.8",
803
803
  "@sveltejs/vite-plugin-svelte": "7.1.2",
804
804
  "@tailwindcss/typography": "0.5.19",
805
805
  "@types/node": "25.9.1",
806
806
  "jsrepo": "3.7.0",
807
- "oxfmt": "0.51.0",
808
- "oxlint": "1.66.0",
807
+ "oxfmt": "0.53.0",
808
+ "oxlint": "1.68.0",
809
809
  "oxlint-tsgolint": "0.23.0",
810
- "prettier-plugin-svelte": "4.0.1",
810
+ "prettier-plugin-svelte": "4.1.0",
811
811
  "publint": "0.3.21",
812
- "shadcn-svelte": "1.2.7",
813
- "svelte-check": "4.4.8",
812
+ "shadcn-svelte": "1.3.0",
813
+ "svelte-check": "4.5.0",
814
814
  "tailwindcss": "4.3.0",
815
815
  "tw-animate-css": "1.4.0",
816
816
  "typescript": "6.0.3",
817
- "vite": "8.0.14"
817
+ "vite": "8.0.16"
818
818
  },
819
819
  "peerDependencies": {
820
820
  "@sveltejs/kit": "^2.0.0",