Skip to content

Commit 934a0b9

Browse files
committed
next: updated shadcn
1 parent c9c2c47 commit 934a0b9

File tree

7 files changed

+15
-36
lines changed

7 files changed

+15
-36
lines changed

src/Exceptionless.Web/ClientApp/.storybook/main.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import type { StorybookConfig } from '@storybook/sveltekit';
22

33
const config: StorybookConfig = {
4-
addons: [
5-
'@storybook/addon-svelte-csf',
6-
'@chromatic-com/storybook',
7-
'@storybook/addon-a11y',
8-
'@storybook/addon-docs'
9-
],
4+
addons: ['@storybook/addon-svelte-csf', '@chromatic-com/storybook', '@storybook/addon-a11y', '@storybook/addon-docs'],
105
framework: {
116
name: '@storybook/sveltekit',
127
options: {}

src/Exceptionless.Web/ClientApp/eslint.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
2-
import storybook from "eslint-plugin-storybook";
3-
41
import { includeIgnoreFile } from '@eslint/compat';
52
import js from '@eslint/js';
63
import prettier from 'eslint-config-prettier';
74
import perfectionist from 'eslint-plugin-perfectionist';
5+
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
6+
import storybook from 'eslint-plugin-storybook';
87
import svelte from 'eslint-plugin-svelte';
98
import globals from 'globals';
109
import { fileURLToPath } from 'node:url';
@@ -43,5 +42,5 @@ export default ts.config(
4342
'perfectionist/sort-svelte-attributes': 'off'
4443
}
4544
},
46-
storybook.configs["flat/recommended"]
45+
storybook.configs['flat/recommended']
4746
);

src/Exceptionless.Web/ClientApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@
9595
"overrides": {
9696
"storybook": "$storybook"
9797
}
98-
}
98+
}

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/form/form-element-field.svelte

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
<script lang="ts" module>
2-
import type { FormPathLeaves as _FormPathLeaves } from "sveltekit-superforms";
3-
type T = Record<string, unknown>;
4-
type U = _FormPathLeaves<T>;
5-
</script>
6-
7-
<script lang="ts" generics="T extends Record<string, unknown>, U extends _FormPathLeaves<T>">
1+
<script lang="ts" generics="T extends Record<string, unknown>, U extends FormPathLeaves<T>">
82
import * as FormPrimitive from "formsnap";
3+
import type { FormPathLeaves } from "sveltekit-superforms";
94
import type { HTMLAttributes } from "svelte/elements";
105
import { cn, type WithElementRef, type WithoutChildren } from "$lib/utils.js";
116

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/form/form-field.svelte

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
<script lang="ts" module>
2-
import type { FormPath as _FormPath } from "sveltekit-superforms";
3-
type T = Record<string, unknown>;
4-
type U = _FormPath<T>;
5-
</script>
6-
7-
<script lang="ts" generics="T extends Record<string, unknown>, U extends _FormPath<T>">
1+
<script lang="ts" generics="T extends Record<string, unknown>, U extends FormPath<T>">
82
import * as FormPrimitive from "formsnap";
3+
import type { FormPath } from "sveltekit-superforms";
94
import { cn, type WithElementRef, type WithoutChildren } from "$lib/utils.js";
105
import type { HTMLAttributes } from "svelte/elements";
116

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/form/form-fieldset.svelte

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
<script lang="ts" module>
2-
import type { FormPath as _FormPath } from "sveltekit-superforms";
3-
type T = Record<string, unknown>;
4-
type U = _FormPath<T>;
5-
</script>
6-
7-
<script lang="ts" generics="T extends Record<string, unknown>, U extends _FormPath<T>">
1+
<script lang="ts" generics="T extends Record<string, unknown>, U extends FormPath<T>">
82
import * as FormPrimitive from "formsnap";
3+
import type { FormPath } from "sveltekit-superforms";
94
import { cn, type WithoutChild } from "$lib/utils.js";
105
116
let {

src/Exceptionless.Web/ClientApp/src/lib/features/shared/components/ui/tooltip/tooltip-content.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
<div
3434
class={cn(
3535
"bg-primary z-50 size-2.5 rotate-45 rounded-[2px]",
36-
side === "top" && "translate-x-1/2 translate-y-[calc(-50%_+_2px)]",
37-
side === "bottom" && "-translate-x-1/2 -translate-y-[calc(-50%_+_1px)]",
38-
side === "right" && "translate-x-[calc(50%_+_2px)] translate-y-1/2",
39-
side === "left" && "-translate-y-[calc(50%_-_3px)]",
36+
"data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_2px)]",
37+
"data-[side=bottom]:-translate-y-[calc(-50%_+_1px)] data-[side=bottom]:translate-x-1/2",
38+
"data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2",
39+
"data-[side=left]:translate-y-[calc(50%_-_3px)]",
4040
arrowClasses
4141
)}
4242
{...props}

0 commit comments

Comments
 (0)