compote-ui 0.10.0 → 0.11.0
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/dist/components/fieldset/fieldset-error-text.svelte +11 -0
- package/dist/components/fieldset/fieldset-error-text.svelte.d.ts +4 -0
- package/dist/components/fieldset/fieldset-helper-text.svelte +11 -0
- package/dist/components/fieldset/fieldset-helper-text.svelte.d.ts +4 -0
- package/dist/components/fieldset/fieldset-legend.svelte +17 -0
- package/dist/components/fieldset/fieldset-legend.svelte.d.ts +4 -0
- package/dist/components/fieldset/fieldset.svelte +11 -0
- package/dist/components/fieldset/fieldset.svelte.d.ts +5 -0
- package/dist/components/fieldset/index.d.ts +5 -0
- package/dist/components/fieldset/index.js +4 -0
- package/dist/components/fieldset/types.d.ts +13 -0
- package/dist/components/fieldset/types.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Fieldset } from '@ark-ui/svelte/fieldset';
|
|
3
|
+
import type { FieldsetErrorTextProps } from './types';
|
|
4
|
+
import { cn } from 'tailwind-variants';
|
|
5
|
+
|
|
6
|
+
let { class: className, children, ...rest }: FieldsetErrorTextProps = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<Fieldset.ErrorText {...rest} class={cn('text-xs font-medium text-danger', className)}>
|
|
10
|
+
{@render children?.()}
|
|
11
|
+
</Fieldset.ErrorText>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Fieldset } from '@ark-ui/svelte/fieldset';
|
|
3
|
+
import type { FieldsetHelperTextProps } from './types';
|
|
4
|
+
import { cn } from 'tailwind-variants';
|
|
5
|
+
|
|
6
|
+
let { class: className, children, ...rest }: FieldsetHelperTextProps = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<Fieldset.HelperText {...rest} class={cn('text-sm text-ink-dim', className)}>
|
|
10
|
+
{@render children?.()}
|
|
11
|
+
</Fieldset.HelperText>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Fieldset } from '@ark-ui/svelte/fieldset';
|
|
3
|
+
import type { FieldsetLegendProps } from './types';
|
|
4
|
+
import { cn } from 'tailwind-variants';
|
|
5
|
+
|
|
6
|
+
let { class: className, children, ...rest }: FieldsetLegendProps = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<Fieldset.Legend
|
|
10
|
+
{...rest}
|
|
11
|
+
class={cn(
|
|
12
|
+
'mb-1 font-semibold data-disabled:cursor-not-allowed data-disabled:opacity-70',
|
|
13
|
+
className
|
|
14
|
+
)}
|
|
15
|
+
>
|
|
16
|
+
{@render children?.()}
|
|
17
|
+
</Fieldset.Legend>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Fieldset } from '@ark-ui/svelte/fieldset';
|
|
3
|
+
import type { FieldsetRootProps } from './types';
|
|
4
|
+
import { cn } from 'tailwind-variants';
|
|
5
|
+
|
|
6
|
+
let { class: className, children, ...rest }: FieldsetRootProps = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<Fieldset.Root {...rest} class={cn('m-0 flex min-w-0 flex-col gap-3 border-0 p-0', className)}>
|
|
10
|
+
{@render children?.()}
|
|
11
|
+
</Fieldset.Root>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Root } from './fieldset.svelte';
|
|
2
|
+
export { default as Legend } from './fieldset-legend.svelte';
|
|
3
|
+
export { default as HelperText } from './fieldset-helper-text.svelte';
|
|
4
|
+
export { default as ErrorText } from './fieldset-error-text.svelte';
|
|
5
|
+
export type { FieldsetRootProps, FieldsetLegendProps, FieldsetHelperTextProps, FieldsetErrorTextProps } from './types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FieldsetRootBaseProps, FieldsetLegendBaseProps, FieldsetHelperTextBaseProps, FieldsetErrorTextBaseProps } from '@ark-ui/svelte/fieldset';
|
|
2
|
+
export interface FieldsetRootProps extends FieldsetRootBaseProps {
|
|
3
|
+
class?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface FieldsetLegendProps extends FieldsetLegendBaseProps {
|
|
6
|
+
class?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FieldsetHelperTextProps extends FieldsetHelperTextBaseProps {
|
|
9
|
+
class?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FieldsetErrorTextProps extends FieldsetErrorTextBaseProps {
|
|
12
|
+
class?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export { default as Switch } from './components/switch/switch.svelte';
|
|
|
25
25
|
export * as Tabs from './components/tabs';
|
|
26
26
|
export * as Menu from './components/menu';
|
|
27
27
|
export * as Field from './components/field';
|
|
28
|
+
export * as Fieldset from './components/fieldset';
|
|
28
29
|
export { default as TreeView } from './components/tree-view/tree-view.svelte';
|
|
29
30
|
export { createListCollection, createTreeCollection } from './utils/collections';
|
|
30
31
|
export type { ListItem, TreeItem } from './utils/collections';
|
package/dist/index.js
CHANGED
|
@@ -19,5 +19,6 @@ export { default as Switch } from './components/switch/switch.svelte';
|
|
|
19
19
|
export * as Tabs from './components/tabs';
|
|
20
20
|
export * as Menu from './components/menu';
|
|
21
21
|
export * as Field from './components/field';
|
|
22
|
+
export * as Fieldset from './components/fieldset';
|
|
22
23
|
export { default as TreeView } from './components/tree-view/tree-view.svelte';
|
|
23
24
|
export { createListCollection, createTreeCollection } from './utils/collections';
|