@max-ts/svelte 1.13.0 → 1.14.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/assets/styles.css +88 -2
- package/dist/components/Drawer/index.d.ts +10 -11
- package/dist/components/InputOTP/Group/Group.js +31 -0
- package/dist/components/InputOTP/Group/Group.svelte.d.ts +4 -0
- package/dist/components/InputOTP/Group/index.d.ts +1 -0
- package/dist/components/InputOTP/InputOTP.js +49 -0
- package/dist/components/InputOTP/InputOTP.svelte.d.ts +4 -0
- package/dist/components/InputOTP/Separator/Separator.js +44 -0
- package/dist/components/InputOTP/Separator/Separator.svelte.d.ts +4 -0
- package/dist/components/InputOTP/Separator/index.d.ts +1 -0
- package/dist/components/InputOTP/Slot/Slot.js +74 -0
- package/dist/components/InputOTP/Slot/Slot.svelte.d.ts +4 -0
- package/dist/components/InputOTP/Slot/index.d.ts +1 -0
- package/dist/components/InputOTP/index.d.ts +11 -0
- package/dist/components/InputOTP/index.js +13 -0
- package/dist/components/InputOTP/styles.css.d.ts +10 -0
- package/dist/components/InputOTP/styles.css.js +12 -0
- package/dist/components/InputOTP/types.d.ts +7 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -1
- package/dist/node_modules/.pnpm/@vanilla-extract_css@1.20.1/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.cjs.d.ts +1 -1
- package/dist/stories/InputOTP.stories.svelte.d.ts +19 -0
- package/package.json +20 -20
package/dist/assets/styles.css
CHANGED
|
@@ -277,7 +277,7 @@ img, picture, video, canvas {
|
|
|
277
277
|
justify-content: center;
|
|
278
278
|
gap: var(--spacing-1);
|
|
279
279
|
overflow: hidden;
|
|
280
|
-
border-radius:
|
|
280
|
+
border-radius: var(--radius-small);
|
|
281
281
|
border: 1px solid transparent;
|
|
282
282
|
padding: 2px var(--spacing-2);
|
|
283
283
|
font-size: var(--fontSize-xs);
|
|
@@ -303,7 +303,7 @@ img, picture, video, canvas {
|
|
|
303
303
|
background-color: color-mix(in oklch, var(--colors-primary) 90%, transparent);
|
|
304
304
|
}
|
|
305
305
|
.styles_badgeVariants_secondary__l5k2ok2 {
|
|
306
|
-
background-color: var(--colors-
|
|
306
|
+
background-color: var(--colors-background-elementHover);
|
|
307
307
|
color: var(--colors-foreground-secondary);
|
|
308
308
|
}
|
|
309
309
|
.styles_badgeVariants_secondary__l5k2ok2[href]:hover {
|
|
@@ -2603,6 +2603,92 @@ img, picture, video, canvas {
|
|
|
2603
2603
|
opacity: 0.5;
|
|
2604
2604
|
cursor: not-allowed;
|
|
2605
2605
|
}
|
|
2606
|
+
@keyframes styles_caretBlink__oe9d1a5 {
|
|
2607
|
+
0%, 70%, 100% {
|
|
2608
|
+
opacity: 1;
|
|
2609
|
+
}
|
|
2610
|
+
20%, 50% {
|
|
2611
|
+
opacity: 0;
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
.styles_root__oe9d1a0 {
|
|
2615
|
+
display: flex;
|
|
2616
|
+
align-items: center;
|
|
2617
|
+
gap: var(--spacing-2);
|
|
2618
|
+
}
|
|
2619
|
+
.styles_root__oe9d1a0:has(input:disabled) {
|
|
2620
|
+
opacity: 0.5;
|
|
2621
|
+
}
|
|
2622
|
+
.styles_root__oe9d1a0 input:disabled {
|
|
2623
|
+
cursor: not-allowed;
|
|
2624
|
+
}
|
|
2625
|
+
.styles_group__oe9d1a1 {
|
|
2626
|
+
display: flex;
|
|
2627
|
+
align-items: center;
|
|
2628
|
+
}
|
|
2629
|
+
.styles_slot__oe9d1a2 {
|
|
2630
|
+
position: relative;
|
|
2631
|
+
z-index: 0;
|
|
2632
|
+
display: flex;
|
|
2633
|
+
align-items: center;
|
|
2634
|
+
justify-content: center;
|
|
2635
|
+
width: var(--spacing-9);
|
|
2636
|
+
height: var(--spacing-9);
|
|
2637
|
+
border-color: var(--colors-border);
|
|
2638
|
+
border-style: solid;
|
|
2639
|
+
border-width: 1px 1px 1px 0;
|
|
2640
|
+
background-color: var(--colors-background-paper);
|
|
2641
|
+
color: var(--colors-text-primary);
|
|
2642
|
+
font-size: var(--fontSize-sm);
|
|
2643
|
+
line-height: var(--lineHeight-none);
|
|
2644
|
+
outline: none;
|
|
2645
|
+
transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
|
|
2646
|
+
}
|
|
2647
|
+
.styles_slot__oe9d1a2:first-child {
|
|
2648
|
+
border-inline-start-width: 1px;
|
|
2649
|
+
border-start-start-radius: var(--radius-medium);
|
|
2650
|
+
border-end-start-radius: var(--radius-medium);
|
|
2651
|
+
}
|
|
2652
|
+
.styles_slot__oe9d1a2:last-child {
|
|
2653
|
+
border-start-end-radius: var(--radius-medium);
|
|
2654
|
+
border-end-end-radius: var(--radius-medium);
|
|
2655
|
+
}
|
|
2656
|
+
.styles_slot__oe9d1a2[aria-invalid="true"] {
|
|
2657
|
+
border-color: var(--colors-error);
|
|
2658
|
+
}
|
|
2659
|
+
.styles_slotActive__oe9d1a3 {
|
|
2660
|
+
z-index: 1;
|
|
2661
|
+
border-color: var(--colors-primary);
|
|
2662
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--colors-primary) 20%, transparent);
|
|
2663
|
+
}
|
|
2664
|
+
.styles_slotActive__oe9d1a3[aria-invalid="true"] {
|
|
2665
|
+
border-color: var(--colors-error);
|
|
2666
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--colors-error) 20%, transparent);
|
|
2667
|
+
}
|
|
2668
|
+
.styles_caretWrapper__oe9d1a4 {
|
|
2669
|
+
pointer-events: none;
|
|
2670
|
+
position: absolute;
|
|
2671
|
+
inset: 0;
|
|
2672
|
+
display: flex;
|
|
2673
|
+
align-items: center;
|
|
2674
|
+
justify-content: center;
|
|
2675
|
+
}
|
|
2676
|
+
.styles_caret__oe9d1a6 {
|
|
2677
|
+
width: 1px;
|
|
2678
|
+
height: var(--spacing-4);
|
|
2679
|
+
background-color: var(--colors-text-primary);
|
|
2680
|
+
animation: styles_caretBlink__oe9d1a5 1s ease-in-out infinite;
|
|
2681
|
+
}
|
|
2682
|
+
.styles_separator__oe9d1a7 {
|
|
2683
|
+
display: flex;
|
|
2684
|
+
align-items: center;
|
|
2685
|
+
justify-content: center;
|
|
2686
|
+
color: var(--colors-text-secondary);
|
|
2687
|
+
}
|
|
2688
|
+
.styles_separator__oe9d1a7 svg {
|
|
2689
|
+
width: var(--spacing-4);
|
|
2690
|
+
height: var(--spacing-4);
|
|
2691
|
+
}
|
|
2606
2692
|
.styles_item__b9ajag0 {
|
|
2607
2693
|
display: flex;
|
|
2608
2694
|
flex-wrap: wrap;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { DrawerCloseProps, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerOverlayProps, DrawerPortalProps, DrawerProps, DrawerTitleProps, DrawerTriggerProps } from "./types.js";
|
|
2
|
-
import * as _$svelte_legacy0 from "svelte/legacy";
|
|
3
2
|
|
|
4
3
|
//#region src/components/Drawer/index.d.ts
|
|
5
4
|
declare const Drawer: {
|
|
6
|
-
Root:
|
|
7
|
-
Trigger:
|
|
8
|
-
Close:
|
|
9
|
-
Content:
|
|
10
|
-
Overlay:
|
|
11
|
-
Portal:
|
|
12
|
-
Header:
|
|
13
|
-
Footer:
|
|
14
|
-
Title:
|
|
15
|
-
Description:
|
|
5
|
+
Root: import("svelte/legacy").LegacyComponentType;
|
|
6
|
+
Trigger: import("svelte/legacy").LegacyComponentType;
|
|
7
|
+
Close: import("svelte/legacy").LegacyComponentType;
|
|
8
|
+
Content: import("svelte/legacy").LegacyComponentType;
|
|
9
|
+
Overlay: import("svelte/legacy").LegacyComponentType;
|
|
10
|
+
Portal: import("svelte/legacy").LegacyComponentType;
|
|
11
|
+
Header: import("svelte/legacy").LegacyComponentType;
|
|
12
|
+
Footer: import("svelte/legacy").LegacyComponentType;
|
|
13
|
+
Title: import("svelte/legacy").LegacyComponentType;
|
|
14
|
+
Description: import("svelte/legacy").LegacyComponentType;
|
|
16
15
|
};
|
|
17
16
|
//#endregion
|
|
18
17
|
export { Drawer };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import __default__ from "../styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
//#region src/components/InputOTP/Group/Group.svelte
|
|
5
|
+
var root = $.from_html(`<div><!></div>`);
|
|
6
|
+
function Group($$anchor, $$props) {
|
|
7
|
+
$.push($$props, true);
|
|
8
|
+
let ref = $.prop($$props, "ref", 15, null), dataSlot = $.prop($$props, "data-slot", 3, "input-otp-group"), restProps = $.rest_props($$props, [
|
|
9
|
+
"$$slots",
|
|
10
|
+
"$$events",
|
|
11
|
+
"$$legacy",
|
|
12
|
+
"ref",
|
|
13
|
+
"class",
|
|
14
|
+
"children",
|
|
15
|
+
"data-slot"
|
|
16
|
+
]);
|
|
17
|
+
var div = root();
|
|
18
|
+
$.attribute_effect(div, () => ({
|
|
19
|
+
"data-slot": dataSlot(),
|
|
20
|
+
class: [__default__.group, $$props.class],
|
|
21
|
+
...restProps
|
|
22
|
+
}));
|
|
23
|
+
var node = $.child(div);
|
|
24
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
25
|
+
$.reset(div);
|
|
26
|
+
$.bind_this(div, ($$value) => ref($$value), () => ref());
|
|
27
|
+
$.append($$anchor, div);
|
|
28
|
+
$.pop();
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Group as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Group } from './Group.svelte';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import __default__ from "./styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
import { PinInput } from "bits-ui";
|
|
5
|
+
//#region src/components/InputOTP/InputOTP.svelte
|
|
6
|
+
function InputOTP($$anchor, $$props) {
|
|
7
|
+
$.push($$props, true);
|
|
8
|
+
let ref = $.prop($$props, "ref", 15, null), value = $.prop($$props, "value", 15, ""), dataSlot = $.prop($$props, "data-slot", 3, "input-otp"), restProps = $.rest_props($$props, [
|
|
9
|
+
"$$slots",
|
|
10
|
+
"$$events",
|
|
11
|
+
"$$legacy",
|
|
12
|
+
"ref",
|
|
13
|
+
"value",
|
|
14
|
+
"class",
|
|
15
|
+
"data-slot"
|
|
16
|
+
]);
|
|
17
|
+
var fragment = $.comment();
|
|
18
|
+
var node = $.first_child(fragment);
|
|
19
|
+
{
|
|
20
|
+
let $0 = $.derived(() => [__default__.root, $$props.class]);
|
|
21
|
+
$.component(node, () => PinInput.Root, ($$anchor, InputOTPPrimitive_Root) => {
|
|
22
|
+
InputOTPPrimitive_Root($$anchor, $.spread_props({
|
|
23
|
+
get "data-slot"() {
|
|
24
|
+
return dataSlot();
|
|
25
|
+
},
|
|
26
|
+
get class() {
|
|
27
|
+
return $.get($0);
|
|
28
|
+
}
|
|
29
|
+
}, () => restProps, {
|
|
30
|
+
get ref() {
|
|
31
|
+
return ref();
|
|
32
|
+
},
|
|
33
|
+
set ref($$value) {
|
|
34
|
+
ref($$value);
|
|
35
|
+
},
|
|
36
|
+
get value() {
|
|
37
|
+
return value();
|
|
38
|
+
},
|
|
39
|
+
set value($$value) {
|
|
40
|
+
value($$value);
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
$.append($$anchor, fragment);
|
|
46
|
+
$.pop();
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { InputOTP as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import __default__ from "../styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
import MinusIcon from "@lucide/svelte/icons/minus";
|
|
5
|
+
//#region src/components/InputOTP/Separator/Separator.svelte
|
|
6
|
+
var root = $.from_html(`<div><!></div>`);
|
|
7
|
+
function Separator($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), dataSlot = $.prop($$props, "data-slot", 3, "input-otp-separator"), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"class",
|
|
15
|
+
"children",
|
|
16
|
+
"data-slot"
|
|
17
|
+
]);
|
|
18
|
+
var div = root();
|
|
19
|
+
$.attribute_effect(div, () => ({
|
|
20
|
+
"data-slot": dataSlot(),
|
|
21
|
+
class: [__default__.separator, $$props.class],
|
|
22
|
+
...restProps
|
|
23
|
+
}));
|
|
24
|
+
var node = $.child(div);
|
|
25
|
+
var consequent = ($$anchor) => {
|
|
26
|
+
var fragment = $.comment();
|
|
27
|
+
var node_1 = $.first_child(fragment);
|
|
28
|
+
$.snippet(node_1, () => $$props.children ?? $.noop);
|
|
29
|
+
$.append($$anchor, fragment);
|
|
30
|
+
};
|
|
31
|
+
var alternate = ($$anchor) => {
|
|
32
|
+
MinusIcon($$anchor, {});
|
|
33
|
+
};
|
|
34
|
+
$.if(node, ($$render) => {
|
|
35
|
+
if ($$props.children) $$render(consequent);
|
|
36
|
+
else $$render(alternate, -1);
|
|
37
|
+
});
|
|
38
|
+
$.reset(div);
|
|
39
|
+
$.bind_this(div, ($$value) => ref($$value), () => ref());
|
|
40
|
+
$.append($$anchor, div);
|
|
41
|
+
$.pop();
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { Separator as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Separator } from './Separator.svelte';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import __default__ from "../styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
import { PinInput } from "bits-ui";
|
|
5
|
+
//#region src/components/InputOTP/Slot/Slot.svelte
|
|
6
|
+
var root_2 = $.from_html(`<div><div></div></div>`);
|
|
7
|
+
var root_1 = $.from_html(` <!>`, 1);
|
|
8
|
+
function Slot($$anchor, $$props) {
|
|
9
|
+
$.push($$props, true);
|
|
10
|
+
let ref = $.prop($$props, "ref", 15, null), dataSlot = $.prop($$props, "data-slot", 3, "input-otp-slot"), restProps = $.rest_props($$props, [
|
|
11
|
+
"$$slots",
|
|
12
|
+
"$$events",
|
|
13
|
+
"$$legacy",
|
|
14
|
+
"ref",
|
|
15
|
+
"cell",
|
|
16
|
+
"class",
|
|
17
|
+
"data-slot"
|
|
18
|
+
]);
|
|
19
|
+
var fragment = $.comment();
|
|
20
|
+
var node = $.first_child(fragment);
|
|
21
|
+
{
|
|
22
|
+
let $0 = $.derived(() => [
|
|
23
|
+
__default__.slot,
|
|
24
|
+
$$props.cell.isActive && __default__.slotActive,
|
|
25
|
+
$$props.class
|
|
26
|
+
]);
|
|
27
|
+
$.component(node, () => PinInput.Cell, ($$anchor, InputOTPPrimitive_Cell) => {
|
|
28
|
+
InputOTPPrimitive_Cell($$anchor, $.spread_props({
|
|
29
|
+
get cell() {
|
|
30
|
+
return $$props.cell;
|
|
31
|
+
},
|
|
32
|
+
get "data-slot"() {
|
|
33
|
+
return dataSlot();
|
|
34
|
+
},
|
|
35
|
+
get class() {
|
|
36
|
+
return $.get($0);
|
|
37
|
+
}
|
|
38
|
+
}, () => restProps, {
|
|
39
|
+
get ref() {
|
|
40
|
+
return ref();
|
|
41
|
+
},
|
|
42
|
+
set ref($$value) {
|
|
43
|
+
ref($$value);
|
|
44
|
+
},
|
|
45
|
+
children: ($$anchor, $$slotProps) => {
|
|
46
|
+
$.next();
|
|
47
|
+
var fragment_1 = root_1();
|
|
48
|
+
var text = $.first_child(fragment_1);
|
|
49
|
+
var node_1 = $.sibling(text);
|
|
50
|
+
var consequent = ($$anchor) => {
|
|
51
|
+
var div = root_2();
|
|
52
|
+
var div_1 = $.child(div);
|
|
53
|
+
$.reset(div);
|
|
54
|
+
$.template_effect(() => {
|
|
55
|
+
$.set_class(div, 1, $.clsx(__default__.caretWrapper));
|
|
56
|
+
$.set_class(div_1, 1, $.clsx(__default__.caret));
|
|
57
|
+
});
|
|
58
|
+
$.append($$anchor, div);
|
|
59
|
+
};
|
|
60
|
+
$.if(node_1, ($$render) => {
|
|
61
|
+
if ($$props.cell.hasFakeCaret) $$render(consequent);
|
|
62
|
+
});
|
|
63
|
+
$.template_effect(() => $.set_text(text, `${$$props.cell.char ?? ""} `));
|
|
64
|
+
$.append($$anchor, fragment_1);
|
|
65
|
+
},
|
|
66
|
+
$$slots: { default: true }
|
|
67
|
+
}));
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
$.append($$anchor, fragment);
|
|
71
|
+
$.pop();
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
export { Slot as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Slot } from './Slot.svelte';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Group } from './Group';
|
|
2
|
+
import Root from './InputOTP.svelte';
|
|
3
|
+
import { Separator } from './Separator';
|
|
4
|
+
import { Slot } from './Slot';
|
|
5
|
+
export declare const InputOTP: {
|
|
6
|
+
Root: typeof Root;
|
|
7
|
+
Group: typeof Group;
|
|
8
|
+
Slot: typeof Slot;
|
|
9
|
+
Separator: typeof Separator;
|
|
10
|
+
};
|
|
11
|
+
export type * from './types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Group from "./Group/Group.js";
|
|
2
|
+
import InputOTP$1 from "./InputOTP.js";
|
|
3
|
+
import Separator from "./Separator/Separator.js";
|
|
4
|
+
import Slot from "./Slot/Slot.js";
|
|
5
|
+
//#region src/components/InputOTP/index.ts
|
|
6
|
+
const InputOTP = {
|
|
7
|
+
Root: InputOTP$1,
|
|
8
|
+
Group,
|
|
9
|
+
Slot,
|
|
10
|
+
Separator
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { InputOTP };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/components/InputOTP/styles.css.ts
|
|
2
|
+
var __default__ = {
|
|
3
|
+
caret: "styles_caret__oe9d1a6",
|
|
4
|
+
caretWrapper: "styles_caretWrapper__oe9d1a4",
|
|
5
|
+
group: "styles_group__oe9d1a1",
|
|
6
|
+
root: "styles_root__oe9d1a0",
|
|
7
|
+
separator: "styles_separator__oe9d1a7",
|
|
8
|
+
slot: "styles_slot__oe9d1a2",
|
|
9
|
+
slotActive: "styles_slotActive__oe9d1a3"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { __default__ as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PinInput as InputOTPPrimitive } from 'bits-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
import type { WithElementRef } from '../../types';
|
|
4
|
+
export type InputOTPProps = InputOTPPrimitive.RootProps;
|
|
5
|
+
export type InputOTPSlotProps = InputOTPPrimitive.CellProps;
|
|
6
|
+
export type InputOTPGroupProps = WithElementRef<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
7
|
+
export type InputOTPSeparatorProps = WithElementRef<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
@@ -20,6 +20,7 @@ export { Empty, type EmptyMediaVariant } from './Empty';
|
|
|
20
20
|
export { Field, type FieldOrientation, type FieldVariants, } from './Field';
|
|
21
21
|
export { Input, type InputProps, type InputType, } from './Input';
|
|
22
22
|
export { InputGroup, type InputGroupAddonAlign, type InputGroupButtonSize, } from './InputGroup';
|
|
23
|
+
export { InputOTP, type InputOTPGroupProps, type InputOTPProps, type InputOTPSeparatorProps, type InputOTPSlotProps, } from './InputOTP';
|
|
23
24
|
export { Item, type ItemProps, type ItemSize, type ItemVariant, } from './Item';
|
|
24
25
|
export { Label } from './Label';
|
|
25
26
|
export { OverflowTypography, type OverflowTypographyProps, type OverflowTypographyTooltipProps, } from './OverflowTypography';
|
package/dist/components/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import Label_1 from "./Label/Label.js";
|
|
|
26
26
|
import { Field } from "./Field/index.js";
|
|
27
27
|
import Input from "./Input/Input.js";
|
|
28
28
|
import { InputGroup } from "./InputGroup/index.js";
|
|
29
|
+
import { InputOTP } from "./InputOTP/index.js";
|
|
29
30
|
import { Item } from "./Item/index.js";
|
|
30
31
|
import Portal from "./Portal/Portal.js";
|
|
31
32
|
import Tooltip from "./Tooltip/Tooltip.js";
|
|
@@ -37,4 +38,4 @@ import ScalableContainer from "./ScalableContainer/ScalableContainer.js";
|
|
|
37
38
|
import { Select } from "./Select/index.js";
|
|
38
39
|
import SliderInput from "./SliderInput/SliderInput.js";
|
|
39
40
|
import { Tabs } from "./Tabs/index.js";
|
|
40
|
-
export { Accordion, Alert, Badge, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, CircularProgress, ContentState, DataGrid, DataGridSortHeader, Description, Dialog, Drawer, DropdownMenu_exports as DropdownMenu, Empty, Field, Input, InputGroup, Item, Label_1 as Label, OverflowTypography, Placeholder, Popover, Portal, RangeInput, ScalableContainer, Select, Separator, Slider, SliderInput, Spinner, Tabs, Tooltip, Typography, badgeVariants, buttonVariants };
|
|
41
|
+
export { Accordion, Alert, Badge, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, CircularProgress, ContentState, DataGrid, DataGridSortHeader, Description, Dialog, Drawer, DropdownMenu_exports as DropdownMenu, Empty, Field, Input, InputGroup, InputOTP, Item, Label_1 as Label, OverflowTypography, Placeholder, Popover, Portal, RangeInput, ScalableContainer, Select, Separator, Slider, SliderInput, Spinner, Tabs, Tooltip, Typography, badgeVariants, buttonVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { InputOTP } from '../components';
|
|
2
|
+
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> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const InputOTP: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type InputOTP = InstanceType<typeof InputOTP>;
|
|
19
|
+
export default InputOTP;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@max-ts/svelte",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Svelte component library.",
|
|
6
6
|
"author": "Tsepelev Maksim",
|
|
@@ -36,39 +36,39 @@
|
|
|
36
36
|
"svelte": "^5.53.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@biomejs/biome": "^2.4.
|
|
39
|
+
"@biomejs/biome": "^2.4.15",
|
|
40
40
|
"@changesets/cli": "^2.31.0",
|
|
41
|
-
"@chromatic-com/storybook": "^5.1
|
|
41
|
+
"@chromatic-com/storybook": "^5.2.1",
|
|
42
42
|
"@internationalized/date": "^3.12.1",
|
|
43
|
-
"@storybook/addon-a11y": "^10.
|
|
44
|
-
"@storybook/addon-docs": "^10.
|
|
43
|
+
"@storybook/addon-a11y": "^10.4.1",
|
|
44
|
+
"@storybook/addon-docs": "^10.4.1",
|
|
45
45
|
"@storybook/addon-svelte-csf": "^5.1.2",
|
|
46
|
-
"@storybook/addon-vitest": "^10.
|
|
47
|
-
"@storybook/sveltekit": "^10.
|
|
48
|
-
"@sveltejs/vite-plugin-svelte": "^7.
|
|
46
|
+
"@storybook/addon-vitest": "^10.4.1",
|
|
47
|
+
"@storybook/sveltekit": "^10.4.1",
|
|
48
|
+
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
49
49
|
"@tsconfig/svelte": "^5.0.8",
|
|
50
|
-
"@tsdown/css": "^0.
|
|
51
|
-
"@types/node": "^25.
|
|
50
|
+
"@tsdown/css": "^0.22.0",
|
|
51
|
+
"@types/node": "^25.9.1",
|
|
52
52
|
"@vanilla-extract/css": "^1.20.1",
|
|
53
53
|
"@vanilla-extract/rollup-plugin": "^1.5.3",
|
|
54
54
|
"@vanilla-extract/vite-plugin": "^5.2.2",
|
|
55
|
-
"@vitest/browser-playwright": "^4.1.
|
|
56
|
-
"bumpp": "^11.0
|
|
55
|
+
"@vitest/browser-playwright": "^4.1.7",
|
|
56
|
+
"bumpp": "^11.1.0",
|
|
57
57
|
"rollup-plugin-svelte": "^7.2.3",
|
|
58
|
-
"storybook": "^10.
|
|
59
|
-
"svelte": "^5.55.
|
|
60
|
-
"svelte-check": "^4.4.
|
|
61
|
-
"svelte2tsx": "^0.7.
|
|
62
|
-
"tsdown": "0.
|
|
58
|
+
"storybook": "^10.4.1",
|
|
59
|
+
"svelte": "^5.55.9",
|
|
60
|
+
"svelte-check": "^4.4.8",
|
|
61
|
+
"svelte2tsx": "^0.7.55",
|
|
62
|
+
"tsdown": "0.22.0",
|
|
63
63
|
"typescript": "^6.0.3",
|
|
64
|
-
"vite": "^8.0.
|
|
64
|
+
"vite": "^8.0.14",
|
|
65
65
|
"vite-tsconfig-paths": "^6.1.1",
|
|
66
|
-
"vitest": "^4.1.
|
|
66
|
+
"vitest": "^4.1.7",
|
|
67
67
|
"vitest-browser-svelte": "^2.1.1"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@floating-ui/dom": "^1.7.6",
|
|
71
|
-
"@lucide/svelte": "^1.
|
|
71
|
+
"@lucide/svelte": "^1.16.0",
|
|
72
72
|
"bits-ui": "^2.18.1"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|