yaxa-svelte 1.14.0 → 1.14.2
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.
- package/README.md +3 -3
- package/dist/admin/handler.d.ts +2 -2
- package/dist/admin/handler.js +2 -2
- package/dist/admin/hook.d.ts +2 -2
- package/dist/admin/hook.js +2 -2
- package/dist/components/ai/AiChat.svelte +1 -1
- package/dist/components/ai/PromptBar.svelte +1 -1
- package/dist/components/blocks/FAQ.svelte +1 -1
- package/dist/components/blocks/FAQ.svelte.d.ts +1 -1
- package/dist/components/blocks/FeatureGrid.svelte +1 -1
- package/dist/components/blocks/FeatureGrid.svelte.d.ts +1 -1
- package/dist/components/blocks/Testimonials.svelte +1 -1
- package/dist/components/blocks/Testimonials.svelte.d.ts +1 -1
- package/dist/components/elements/Avatar.svelte +1 -1
- package/dist/components/elements/Avatar.svelte.d.ts +1 -1
- package/dist/components/elements/Badge.svelte +1 -1
- package/dist/components/elements/Badge.svelte.d.ts +1 -1
- package/dist/components/elements/Button.svelte +1 -1
- package/dist/components/elements/Button.svelte.d.ts +1 -1
- package/dist/components/elements/Carousel.svelte +1 -1
- package/dist/components/elements/Carousel.svelte.d.ts +1 -1
- package/dist/components/elements/CodeBlock.svelte +1 -1
- package/dist/components/elements/CodeDiff.svelte +1 -1
- package/dist/components/elements/CodeDiff.test.js +1 -1
- package/dist/components/elements/DataTable.dom.test.js +1 -1
- package/dist/components/elements/EmptyState.svelte +1 -1
- package/dist/components/elements/EmptyState.svelte.d.ts +1 -1
- package/dist/components/elements/Icon.svelte +1 -1
- package/dist/components/elements/Icon.test.js +1 -1
- package/dist/components/elements/Kbd.svelte +1 -1
- package/dist/components/elements/Kbd.svelte.d.ts +1 -1
- package/dist/components/elements/MetricCard.svelte +1 -1
- package/dist/components/elements/Progress.svelte +1 -1
- package/dist/components/elements/Progress.svelte.d.ts +1 -1
- package/dist/components/elements/Skeleton.svelte +1 -1
- package/dist/components/elements/Skeleton.svelte.d.ts +1 -1
- package/dist/components/elements/Skeleton.test.js +1 -1
- package/dist/components/elements/SortableList.svelte +1 -1
- package/dist/components/elements/Terminal.svelte +2 -2
- package/dist/components/elements/Terminal.svelte.d.ts +1 -1
- package/dist/components/elements/Timeline.svelte +1 -1
- package/dist/components/elements/Timeline.svelte.d.ts +1 -1
- package/dist/components/elements/Tree.svelte +1 -1
- package/dist/components/elements/Tree.svelte.d.ts +1 -1
- package/dist/components/elements/VirtualList.svelte +1 -1
- package/dist/components/elements/VirtualList.svelte.d.ts +1 -1
- package/dist/components/forms/Combobox.dom.test.js +1 -1
- package/dist/components/forms/Combobox.svelte +1 -1
- package/dist/components/forms/Combobox.svelte.d.ts +1 -1
- package/dist/components/forms/DatePicker.svelte +1 -1
- package/dist/components/forms/DateRangePicker.svelte +1 -1
- package/dist/components/forms/Dropzone.svelte +1 -1
- package/dist/components/forms/Form.dom.test.js +1 -1
- package/dist/components/forms/Input.svelte +1 -1
- package/dist/components/forms/Input.svelte.d.ts +1 -1
- package/dist/components/forms/InputOTP.svelte +1 -1
- package/dist/components/forms/InputOTP.test.js +1 -1
- package/dist/components/forms/MultiSelect.svelte +1 -1
- package/dist/components/forms/MultiSelect.svelte.d.ts +1 -1
- package/dist/components/forms/NumberInput.svelte +1 -1
- package/dist/components/forms/NumberInput.svelte.d.ts +1 -1
- package/dist/components/forms/Select.svelte +1 -1
- package/dist/components/forms/Select.svelte.d.ts +1 -1
- package/dist/components/forms/Switch.svelte +1 -1
- package/dist/components/forms/Switch.svelte.d.ts +1 -1
- package/dist/components/forms/Textarea.svelte +2 -2
- package/dist/components/forms/Textarea.svelte.d.ts +1 -1
- package/dist/components/forms/ToggleGroup.svelte +1 -1
- package/dist/components/forms/advanced-forms.test.js +1 -1
- package/dist/components/layout/Card.svelte +1 -1
- package/dist/components/layout/Card.svelte.d.ts +1 -1
- package/dist/components/layout/Container.svelte +1 -1
- package/dist/components/layout/Container.svelte.d.ts +1 -1
- package/dist/components/layout/DashboardShell.svelte +1 -1
- package/dist/components/layout/DashboardShell.svelte.d.ts +1 -1
- package/dist/components/layout/Footer.svelte +2 -2
- package/dist/components/layout/Footer.svelte.d.ts +1 -1
- package/dist/components/layout/Header.svelte +3 -3
- package/dist/components/layout/Header.svelte.d.ts +1 -1
- package/dist/components/layout/ResizablePanels.svelte +1 -1
- package/dist/components/layout/ResizablePanels.svelte.d.ts +1 -1
- package/dist/components/layout/YaxaApp.svelte +3 -3
- package/dist/components/layout/YaxaApp.svelte.d.ts +2 -2
- package/dist/components/legal/LegalDocument.svelte +2 -2
- package/dist/components/legal/LegalDocument.svelte.d.ts +1 -1
- package/dist/components/navigation/Stepper.svelte +1 -1
- package/dist/components/navigation/Stepper.svelte.d.ts +1 -1
- package/dist/components/overlays/Alert.svelte +1 -1
- package/dist/components/overlays/Alert.svelte.d.ts +1 -1
- package/dist/components/overlays/Drawer.svelte +1 -1
- package/dist/components/overlays/Drawer.svelte.d.ts +1 -1
- package/dist/components/overlays/Modal.dom.test.js +1 -1
- package/dist/components/overlays/Modal.svelte +1 -1
- package/dist/components/overlays/Modal.svelte.d.ts +1 -1
- package/dist/components/overlays/NotificationCenter.svelte +1 -1
- package/dist/components/overlays/NotificationCenter.svelte.d.ts +1 -1
- package/dist/components/overlays/Slideover.svelte +1 -1
- package/dist/components/overlays/Slideover.svelte.d.ts +1 -1
- package/dist/components/overlays/Toast.svelte +3 -3
- package/dist/components/overlays/Toast.svelte.d.ts +2 -2
- package/dist/components/overlays/Toast.test.js +2 -2
- package/dist/components/overlays/Toaster.svelte +2 -2
- package/dist/components/overlays/Toaster.svelte.d.ts +1 -1
- package/dist/components/overlays/Tooltip.dom.test.js +1 -1
- package/dist/components/saas/Gate.svelte +2 -2
- package/dist/components/saas/Gate.svelte.d.ts +1 -1
- package/dist/components/saas/OrgSwitcher.svelte +1 -1
- package/dist/components/saas/OrgSwitcher.svelte.d.ts +1 -1
- package/dist/components/saas/PasskeyUI.svelte +1 -1
- package/dist/components/saas/PasskeyUI.svelte.d.ts +1 -1
- package/dist/components/seo/Favicons.svelte +2 -2
- package/dist/components/seo/Favicons.svelte.d.ts +1 -1
- package/dist/components/seo/OgImage.svelte +2 -2
- package/dist/components/seo/OgImage.svelte.d.ts +1 -1
- package/dist/components/seo/Seo.svelte +3 -3
- package/dist/components/seo/Seo.svelte.d.ts +1 -1
- package/dist/components/theme/ThemeStudio.svelte +2 -2
- package/dist/composables/useColorMode.svelte.d.ts +1 -1
- package/dist/composables/useColorMode.svelte.js +1 -1
- package/dist/composables/useGate.svelte.d.ts +1 -1
- package/dist/composables/useGate.svelte.js +1 -1
- package/dist/composables/useInfiniteScroll.svelte.js +1 -1
- package/dist/index.js +1 -1
- package/dist/server/endpoints.test.js +5 -5
- package/dist/server/storage/storage.test.js +1 -1
- package/dist/site/schema.js +1 -1
- package/dist/site/sitemap-xsl.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
# Yaxa
|
|
4
4
|
|
|
5
5
|
**The Intuitive Svelte UI & Solo SaaS Library**
|
|
6
|
-
_Nuxt UI v4 & Nuxt UI Pro Equivalent for SvelteKit 2
|
|
6
|
+
_Nuxt UI v4 & Nuxt UI Pro Equivalent for SvelteKit 2 & 3 and Svelte 5 with Built-in SEO & SaaS Parity._
|
|
7
7
|
|
|
8
8
|
[](https://www.npmjs.com/package/yaxa-svelte)
|
|
9
9
|
[](https://www.npmjs.com/package/yaxa-svelte)
|
|
10
10
|
[](https://svelte.dev)
|
|
11
|
-
[](https://kit.svelte.dev)
|
|
12
12
|
[](https://tailwindcss.com)
|
|
13
13
|
[](https://bits-ui.com)
|
|
14
14
|
[](LICENSE)
|
|
@@ -21,7 +21,7 @@ _Nuxt UI v4 & Nuxt UI Pro Equivalent for SvelteKit 2.7+ & Svelte 5 with Built-in
|
|
|
21
21
|
|
|
22
22
|
## 🌟 Overview
|
|
23
23
|
|
|
24
|
-
**Yaxa** brings the full developer experience, visual elegance, and full-stack toolkit of **Nuxt UI** and the **Nuxt SEO + SaaS ecosystem** to **SvelteKit 2
|
|
24
|
+
**Yaxa** brings the full developer experience, visual elegance, and full-stack toolkit of **Nuxt UI** and the **Nuxt SEO + SaaS ecosystem** to **SvelteKit 2 & 3** and **Svelte 5**.
|
|
25
25
|
|
|
26
26
|
- 🎨 **Tailwind CSS v4 Native Tokens**: Styled with `@theme` variables; harmonic radius scale (`--radius-xs` to `--radius-4xl`), chart palette tokens (`--color-chart-1` to `--color-chart-5`), and auto-adaptive scrollbars.
|
|
27
27
|
- 🎛️ **Visual Web Theme Studio**: Interactive runtime palette designer (`/theme` and `<ThemeStudio />`) with live sandbox preview and 1-click token export.
|
package/dist/admin/handler.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export declare class DrizzleAdminService {
|
|
|
39
39
|
* Example:
|
|
40
40
|
* ```ts
|
|
41
41
|
* // src/routes/admin/+page.server.ts
|
|
42
|
-
* import { db } from '
|
|
43
|
-
* import * as schema from '
|
|
42
|
+
* import { db } from '../server/db/index.js';
|
|
43
|
+
* import * as schema from '../server/db/schema-pg.js';
|
|
44
44
|
* import { createDrizzleAdmin } from 'yaxa-svelte/admin';
|
|
45
45
|
*
|
|
46
46
|
* export const { load, actions } = createDrizzleAdmin({ db, schema });
|
package/dist/admin/handler.js
CHANGED
|
@@ -232,8 +232,8 @@ export class DrizzleAdminService {
|
|
|
232
232
|
* Example:
|
|
233
233
|
* ```ts
|
|
234
234
|
* // src/routes/admin/+page.server.ts
|
|
235
|
-
* import { db } from '
|
|
236
|
-
* import * as schema from '
|
|
235
|
+
* import { db } from '../server/db/index.js';
|
|
236
|
+
* import * as schema from '../server/db/schema-pg.js';
|
|
237
237
|
* import { createDrizzleAdmin } from 'yaxa-svelte/admin';
|
|
238
238
|
*
|
|
239
239
|
* export const { load, actions } = createDrizzleAdmin({ db, schema });
|
package/dist/admin/hook.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import type { YaxaAdminHookOptions } from './types';
|
|
|
8
8
|
* // src/hooks.server.ts
|
|
9
9
|
* import { sequence } from '@sveltejs/kit/hooks';
|
|
10
10
|
* import { createYaxaAdminHook } from 'yaxa-svelte/admin';
|
|
11
|
-
* import { db } from '
|
|
12
|
-
* import * as schema from '
|
|
11
|
+
* import { db } from '../server/db/index.js';
|
|
12
|
+
* import * as schema from '../server/db/schema-pg.js';
|
|
13
13
|
*
|
|
14
14
|
* export const handle = sequence(
|
|
15
15
|
* createYaxaAdminHook({ db, schema, path: '/admin' })
|
package/dist/admin/hook.js
CHANGED
|
@@ -9,8 +9,8 @@ import { createPresignedUploadUrl } from '../server/storage/index';
|
|
|
9
9
|
* // src/hooks.server.ts
|
|
10
10
|
* import { sequence } from '@sveltejs/kit/hooks';
|
|
11
11
|
* import { createYaxaAdminHook } from 'yaxa-svelte/admin';
|
|
12
|
-
* import { db } from '
|
|
13
|
-
* import * as schema from '
|
|
12
|
+
* import { db } from '../server/db/index.js';
|
|
13
|
+
* import * as schema from '../server/db/schema-pg.js';
|
|
14
14
|
*
|
|
15
15
|
* export const handle = sequence(
|
|
16
16
|
* createYaxaAdminHook({ db, schema, path: '/admin' })
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
import PromptBar from './PromptBar.svelte';
|
|
50
50
|
import AiThought from './AiThought.svelte';
|
|
51
51
|
import AiToolCall from './AiToolCall.svelte';
|
|
52
|
-
import { useToast } from '
|
|
52
|
+
import { useToast } from '../../composables/useToast.svelte.js';
|
|
53
53
|
|
|
54
54
|
let {
|
|
55
55
|
messages = [],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { tv, type VariantProps } from '
|
|
2
|
+
import { tv, type VariantProps } from '../../utils/cn.js';
|
|
3
3
|
|
|
4
4
|
export const avatarVariants = tv({
|
|
5
5
|
base: 'relative inline-flex shrink-0 items-center justify-center font-medium select-none overflow-hidden rounded-full bg-neutral-200 text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../utils/cn.js';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
import type { IconSource } from './Icon.svelte';
|
|
4
4
|
export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { tv, type VariantProps } from '
|
|
2
|
+
import { tv, type VariantProps } from '../../utils/cn.js';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
import type { HTMLButtonAttributes, HTMLAnchorAttributes } from 'svelte/elements';
|
|
5
5
|
import type { IconSource } from './Icon.svelte';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../utils/cn.js';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
import type { IconSource } from './Icon.svelte';
|
|
4
4
|
export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
<script lang="ts">
|
|
244
244
|
import Button from './Button.svelte';
|
|
245
245
|
import Icon from './Icon.svelte';
|
|
246
|
-
import { useToast } from '
|
|
246
|
+
import { useToast } from '../../composables/useToast.svelte.js';
|
|
247
247
|
|
|
248
248
|
let {
|
|
249
249
|
code,
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
import Button from './Button.svelte';
|
|
157
157
|
import Icon from './Icon.svelte';
|
|
158
158
|
import Badge from './Badge.svelte';
|
|
159
|
-
import { useToast } from '
|
|
159
|
+
import { useToast } from '../../composables/useToast.svelte.js';
|
|
160
160
|
|
|
161
161
|
let {
|
|
162
162
|
original = '',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { renderComponent } from '
|
|
2
|
+
import { renderComponent } from '../../testing/index.js';
|
|
3
3
|
import CodeDiff, { computeDiff } from './CodeDiff.svelte';
|
|
4
4
|
describe('CodeDiff Component & Diff Algorithm', () => {
|
|
5
5
|
it('should correctly compute line additions, deletions, and unchanged lines', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, it, expect, vi } from 'vitest';
|
|
2
2
|
import { flushSync } from 'svelte';
|
|
3
|
-
import { renderComponent } from '
|
|
3
|
+
import { renderComponent } from '../../testing/index.js';
|
|
4
4
|
import DataTable, {} from './DataTable.svelte';
|
|
5
5
|
const testData = [
|
|
6
6
|
{ id: '1', name: 'Alice Smith', role: 'Engineer', score: 95 },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../utils/cn.js';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
import type { IconSource } from './Icon.svelte';
|
|
4
4
|
export declare const emptyStateVariants: import("tailwind-variants").TVReturnType<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { renderComponent } from '
|
|
2
|
+
import { renderComponent } from '../../testing/index.js';
|
|
3
3
|
import Icon from './Icon.svelte';
|
|
4
4
|
describe('Icon Component', () => {
|
|
5
5
|
it('renders built-in SVG icons by string name', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { tv, type VariantProps } from '
|
|
2
|
+
import { tv, type VariantProps } from '../../utils/cn.js';
|
|
3
3
|
|
|
4
4
|
export const progressVariants = tv({
|
|
5
5
|
base: 'relative w-full overflow-hidden rounded-full bg-neutral-200 dark:bg-neutral-800',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { tv, type VariantProps } from '
|
|
2
|
+
import { tv, type VariantProps } from '../../utils/cn.js';
|
|
3
3
|
|
|
4
4
|
export const skeletonVariants = tv({
|
|
5
5
|
base: 'relative overflow-hidden bg-neutral-200 dark:bg-neutral-800 select-none',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { renderComponent } from '
|
|
2
|
+
import { renderComponent } from '../../testing/index.js';
|
|
3
3
|
import Skeleton, { skeletonVariants } from './Skeleton.svelte';
|
|
4
4
|
describe('Skeleton Component (DOM & Variants)', () => {
|
|
5
5
|
it('generates pulse animation classes by default', () => {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<script lang="ts" generics="T extends Record<string, any> | string | number">
|
|
12
12
|
import type { Snippet } from 'svelte';
|
|
13
13
|
import Icon from './Icon.svelte';
|
|
14
|
-
import { useSortable } from '
|
|
14
|
+
import { useSortable } from '../../composables/useSortable.svelte.js';
|
|
15
15
|
|
|
16
16
|
interface Props extends SortableListProps<T> {
|
|
17
17
|
children?: Snippet<
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { tv, type VariantProps } from '
|
|
2
|
+
import { tv, type VariantProps } from '../../utils/cn.js';
|
|
3
3
|
|
|
4
4
|
export interface TerminalLine {
|
|
5
5
|
command?: string;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
<script lang="ts">
|
|
24
24
|
import Icon from './Icon.svelte';
|
|
25
|
-
import { useClipboard } from '
|
|
25
|
+
import { useClipboard } from '../../composables/useClipboard.svelte.js';
|
|
26
26
|
|
|
27
27
|
let {
|
|
28
28
|
title = 'bash',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { renderComponent } from '
|
|
2
|
+
import { renderComponent } from '../../testing/index.js';
|
|
3
3
|
import Combobox, { comboboxVariants } from './Combobox.svelte';
|
|
4
4
|
const testOptions = [
|
|
5
5
|
{ value: 'svelte', label: 'Svelte 5' },
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
import Icon from '../elements/Icon.svelte';
|
|
25
25
|
import Button from '../elements/Button.svelte';
|
|
26
26
|
import Progress from '../elements/Progress.svelte';
|
|
27
|
-
import { useUpload } from '
|
|
27
|
+
import { useUpload } from '../../composables/useUpload.svelte.js';
|
|
28
28
|
|
|
29
29
|
let {
|
|
30
30
|
id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { renderComponent } from '
|
|
2
|
+
import { renderComponent } from '../../testing/index.js';
|
|
3
3
|
import Form from './Form.svelte';
|
|
4
4
|
import FormField from './FormField.svelte';
|
|
5
5
|
describe('Form & FormField Components with Context Auto-Wiring', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { tv, type VariantProps } from '
|
|
2
|
+
import { tv, type VariantProps } from '../../utils/cn.js';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
5
5
|
import type { IconSource } from '../elements/Icon.svelte';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../utils/cn.js';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
4
4
|
import type { IconSource } from '../elements/Icon.svelte';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { renderComponent } from '
|
|
2
|
+
import { renderComponent } from '../../testing/index.js';
|
|
3
3
|
import InputOTP from './InputOTP.svelte';
|
|
4
4
|
describe('InputOTP Component (DOM & Interactions)', () => {
|
|
5
5
|
it('renders specified number of input slots with aria-labels', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { tv, type VariantProps } from '
|
|
2
|
+
import { tv, type VariantProps } from '../../utils/cn.js';
|
|
3
3
|
|
|
4
4
|
export const numberInputVariants = tv({
|
|
5
5
|
base: 'flex items-center rounded-lg border bg-white text-neutral-900 transition-all duration-150 focus-within:ring-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-neutral-900 dark:text-neutral-100',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { tv, type VariantProps } from '
|
|
2
|
+
import { tv, type VariantProps } from '../../utils/cn.js';
|
|
3
3
|
import type { HTMLTextareaAttributes } from 'svelte/elements';
|
|
4
4
|
|
|
5
5
|
export const textareaVariants = tv({
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
</script>
|
|
45
45
|
|
|
46
46
|
<script lang="ts">
|
|
47
|
-
import { autosize as autosizeAction } from '
|
|
47
|
+
import { autosize as autosizeAction } from '../../actions/autosize.js';
|
|
48
48
|
import { getFormFieldContext } from './form-context';
|
|
49
49
|
|
|
50
50
|
let {
|