@foxui/core 0.4.0 → 0.4.1
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
CHANGED
|
@@ -16,7 +16,6 @@ svelte 5 + tailwind 4 ui kit, base components
|
|
|
16
16
|
- [Head](https://flo-bit.dev/ui-kit/components/base/head)
|
|
17
17
|
- [Heading](https://flo-bit.dev/ui-kit/components/base/image)
|
|
18
18
|
- [Modals](https://flo-bit.dev/ui-kit/components/base/modal)
|
|
19
|
-
- [Number Input](https://flo-bit.dev/ui-kit/components/base/number-input)
|
|
20
19
|
- [Popover](https://flo-bit.dev/ui-kit/components/base/popover)
|
|
21
20
|
- [Prose](https://flo-bit.dev/ui-kit/components/base/prose)
|
|
22
21
|
- [Scroll Area](https://flo-bit.dev/ui-kit/components/base/scroll-area)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
1
|
+
<!-- <script lang="ts" module>
|
|
2
2
|
import type { WithElementRef } from 'bits-ui';
|
|
3
3
|
import { type VariantProps, tv } from 'tailwind-variants';
|
|
4
4
|
import { cn } from '../../utils';
|
|
@@ -198,4 +198,4 @@
|
|
|
198
198
|
display: none;
|
|
199
199
|
}
|
|
200
200
|
</style>
|
|
201
|
-
</noscript>
|
|
201
|
+
</noscript> -->
|
|
@@ -1,98 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
size: {
|
|
19
|
-
default: string;
|
|
20
|
-
sm: string;
|
|
21
|
-
lg: string;
|
|
22
|
-
};
|
|
23
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
24
|
-
variant: {
|
|
25
|
-
primary: string;
|
|
26
|
-
secondary: string;
|
|
27
|
-
};
|
|
28
|
-
size: {
|
|
29
|
-
default: string;
|
|
30
|
-
sm: string;
|
|
31
|
-
lg: string;
|
|
32
|
-
};
|
|
33
|
-
}, undefined, "group flex w-full max-w-44 touch-manipulation items-stretch justify-between rounded-2xl ring focus-within:ring-2", unknown, unknown, undefined>>;
|
|
34
|
-
export declare const numberInputButtonVariants: import("tailwind-variants").TVReturnType<{
|
|
35
|
-
variant: {
|
|
36
|
-
primary: string;
|
|
37
|
-
secondary: string;
|
|
38
|
-
};
|
|
39
|
-
}, undefined, "button-number-input flex cursor-pointer items-center pr-[.5em] pl-[.5em] transition-colors disabled:cursor-not-allowed disabled:opacity-50", {
|
|
40
|
-
variant: {
|
|
41
|
-
primary: string;
|
|
42
|
-
secondary: string;
|
|
43
|
-
};
|
|
44
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
45
|
-
variant: {
|
|
46
|
-
primary: string;
|
|
47
|
-
secondary: string;
|
|
48
|
-
};
|
|
49
|
-
}, undefined, "button-number-input flex cursor-pointer items-center pr-[.5em] pl-[.5em] transition-colors disabled:cursor-not-allowed disabled:opacity-50", unknown, unknown, undefined>>;
|
|
50
|
-
export declare const numberInputInputVariants: import("tailwind-variants").TVReturnType<{
|
|
51
|
-
variant: {
|
|
52
|
-
primary: string;
|
|
53
|
-
secondary: string;
|
|
54
|
-
};
|
|
55
|
-
size: {
|
|
56
|
-
default: string;
|
|
57
|
-
sm: string;
|
|
58
|
-
lg: string;
|
|
59
|
-
};
|
|
60
|
-
}, undefined, "number-input w-full [appearance:textfield] border-0 bg-transparent text-center font-[inherit] font-semibold text-transparent outline-none [-moz-appearance:_textfield] focus-visible:ring-0 [&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none", {
|
|
61
|
-
variant: {
|
|
62
|
-
primary: string;
|
|
63
|
-
secondary: string;
|
|
64
|
-
};
|
|
65
|
-
size: {
|
|
66
|
-
default: string;
|
|
67
|
-
sm: string;
|
|
68
|
-
lg: string;
|
|
69
|
-
};
|
|
70
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
71
|
-
variant: {
|
|
72
|
-
primary: string;
|
|
73
|
-
secondary: string;
|
|
74
|
-
};
|
|
75
|
-
size: {
|
|
76
|
-
default: string;
|
|
77
|
-
sm: string;
|
|
78
|
-
lg: string;
|
|
79
|
-
};
|
|
80
|
-
}, undefined, "number-input w-full [appearance:textfield] border-0 bg-transparent text-center font-[inherit] font-semibold text-transparent outline-none [-moz-appearance:_textfield] focus-visible:ring-0 [&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none", unknown, unknown, undefined>>;
|
|
81
|
-
export type NumberInputVariant = VariantProps<typeof numberInputVariants>['variant'];
|
|
82
|
-
export type NumberInputSize = VariantProps<typeof numberInputVariants>['size'];
|
|
83
|
-
export type NumberInputProps = WithElementRef<WithoutChildrenOrChild<HTMLAttributes<HTMLDivElement>>> & {
|
|
84
|
-
variant?: NumberInputVariant;
|
|
85
|
-
size?: NumberInputSize;
|
|
86
|
-
min?: number;
|
|
87
|
-
value?: number;
|
|
88
|
-
max?: number;
|
|
89
|
-
defaultValue?: number;
|
|
90
|
-
class?: string;
|
|
91
|
-
step?: number;
|
|
92
|
-
inputRef?: HTMLInputElement | null;
|
|
93
|
-
};
|
|
94
|
-
import type { WithoutChildrenOrChild } from 'bits-ui';
|
|
95
|
-
import type { HTMLAttributes } from 'svelte/elements';
|
|
96
|
-
declare const NumberInput: import("svelte").Component<NumberInputProps, {}, "ref" | "value" | "inputRef">;
|
|
97
|
-
type NumberInput = ReturnType<typeof NumberInput>;
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const NumberInput: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type NumberInput = InstanceType<typeof NumberInput>;
|
|
98
18
|
export default NumberInput;
|