@max-ts/svelte 1.4.4 → 1.5.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/src/components/Accordion/Content/{styles.css.ts.vanilla-H6EZa6yD.css → styles.css.ts.vanilla-CRgv-0Oa.css} +1 -1
- package/dist/assets/src/components/Accordion/Trigger/{styles.css.ts.vanilla-DAT8Bh3k.css → styles.css.ts.vanilla-KRizoSBo.css} +2 -8
- package/dist/assets/src/components/InputGroup/Addon/styles.css.ts.vanilla-CyiC_NQA.css +55 -0
- package/dist/assets/src/components/InputGroup/Button/styles.css.ts.vanilla-DPmQhx2j.css +37 -0
- package/dist/assets/src/components/InputGroup/Input/styles.css.ts.vanilla-Dkc417RX.css +27 -0
- package/dist/assets/src/components/InputGroup/Text/styles.css.ts.vanilla-Bu6aVU98.css +14 -0
- package/dist/assets/src/components/InputGroup/Textarea/styles.css.ts.vanilla-DIqtGbwz.css +28 -0
- package/dist/assets/src/components/InputGroup/styles.css.ts.vanilla-D7Moo4H4.css +63 -0
- package/dist/assets/src/components/Slider/{styles.css.ts.vanilla-Dnh1lH3w.css → styles.css.ts.vanilla-DAEoeJIB.css} +1 -1
- package/dist/assets/src/components/Tooltip/Content/{styles.css.ts.vanilla-jFnWFq35.css → styles.css.ts.vanilla-D_b_jcxS.css} +8 -11
- package/dist/components/Accordion/Content/styles.css.js +1 -1
- package/dist/components/Accordion/Item/Item.js +15 -19
- package/dist/components/Accordion/Trigger/Trigger.svelte.d.ts +1 -1
- package/dist/components/Accordion/Trigger/styles.css.js +1 -1
- package/dist/components/Alert/Alert.svelte.d.ts +1 -1
- package/dist/components/Alert/Description/Description.svelte.d.ts +1 -1
- package/dist/components/Alert/Title/Title.svelte.d.ts +1 -1
- package/dist/components/Badge/types.d.ts +1 -1
- package/dist/components/ButtonGroup/Text/Text.svelte.d.ts +1 -1
- package/dist/components/ButtonGroup/types.d.ts +1 -1
- package/dist/components/Calendar/Month/Month.svelte.d.ts +1 -1
- package/dist/components/Calendar/Months/Months.svelte.d.ts +1 -1
- package/dist/components/Calendar/Nav/Nav.svelte.d.ts +1 -1
- package/dist/components/Calendar/types.d.ts +1 -1
- package/dist/components/Card/Action/Action.svelte.d.ts +1 -1
- package/dist/components/Card/Card.svelte.d.ts +1 -1
- package/dist/components/Card/Content/Content.svelte.d.ts +1 -1
- package/dist/components/Card/Description/Description.svelte.d.ts +1 -1
- package/dist/components/Card/Footer/Footer.svelte.d.ts +1 -1
- package/dist/components/Card/Header/Header.svelte.d.ts +1 -1
- package/dist/components/Card/Title/Title.svelte.d.ts +1 -1
- package/dist/components/Carousel/Content/Content.svelte.d.ts +1 -1
- package/dist/components/Carousel/Item/Item.svelte.d.ts +1 -1
- package/dist/components/Carousel/types.d.ts +1 -1
- package/dist/components/DropdownMenu/CheckboxItem/CheckboxItem.svelte.d.ts +1 -1
- package/dist/components/DropdownMenu/Content/Content.svelte.d.ts +1 -1
- package/dist/components/DropdownMenu/Label/Label.svelte.d.ts +1 -1
- package/dist/components/DropdownMenu/Shortcut/Shortcut.svelte.d.ts +1 -1
- package/dist/components/Empty/Content/Content.svelte.d.ts +1 -1
- package/dist/components/Empty/Description/Description.svelte.d.ts +1 -1
- package/dist/components/Empty/Empty.svelte.d.ts +1 -1
- package/dist/components/Empty/Header/Header.svelte.d.ts +1 -1
- package/dist/components/Empty/Title/Title.svelte.d.ts +1 -1
- package/dist/components/Empty/index.js +2 -2
- package/dist/components/Empty/types.d.ts +1 -1
- package/dist/components/Field/Content/Content.svelte.d.ts +1 -1
- package/dist/components/Field/Description/Description.svelte.d.ts +1 -1
- package/dist/components/Field/Field.svelte.d.ts +1 -1
- package/dist/components/Field/FieldError/FieldError.svelte.d.ts +1 -1
- package/dist/components/Field/FieldSet/FieldSet.svelte.d.ts +1 -1
- package/dist/components/Field/Group/Group.svelte.d.ts +1 -1
- package/dist/components/Field/Legend/Legend.svelte.d.ts +1 -1
- package/dist/components/Field/Separator/Separator.svelte.d.ts +1 -1
- package/dist/components/Field/Title/Title.svelte.d.ts +1 -1
- package/dist/components/Input/types.d.ts +1 -1
- package/dist/components/InputGroup/Addon/Addon.js +48 -0
- package/dist/components/InputGroup/Addon/Addon.svelte.d.ts +4 -0
- package/dist/components/InputGroup/Addon/index.d.ts +2 -0
- package/dist/components/InputGroup/Addon/styles.css.d.ts +8 -0
- package/dist/components/InputGroup/Addon/styles.css.js +17 -0
- package/dist/components/InputGroup/Button/Button.js +63 -0
- package/dist/components/InputGroup/Button/Button.svelte.d.ts +5 -0
- package/dist/components/InputGroup/Button/index.d.ts +2 -0
- package/dist/components/InputGroup/Button/styles.css.d.ts +8 -0
- package/dist/components/InputGroup/Button/styles.css.js +17 -0
- package/dist/components/InputGroup/Input/Input.js +31 -0
- package/dist/components/InputGroup/Input/Input.svelte.d.ts +4 -0
- package/dist/components/InputGroup/Input/index.d.ts +1 -0
- package/dist/components/InputGroup/Input/styles.css.d.ts +5 -0
- package/dist/components/InputGroup/Input/styles.css.js +8 -0
- package/dist/components/InputGroup/InputGroup.js +37 -0
- package/dist/components/InputGroup/InputGroup.svelte.d.ts +4 -0
- package/dist/components/InputGroup/Text/Text.js +32 -0
- package/dist/components/InputGroup/Text/Text.svelte.d.ts +4 -0
- package/dist/components/InputGroup/Text/index.d.ts +1 -0
- package/dist/components/{Accordion/Item → InputGroup/Text}/styles.css.d.ts +2 -1
- package/dist/components/InputGroup/Text/styles.css.js +8 -0
- package/dist/components/InputGroup/Textarea/Textarea.js +32 -0
- package/dist/components/InputGroup/Textarea/Textarea.svelte.d.ts +4 -0
- package/dist/components/InputGroup/Textarea/index.d.ts +1 -0
- package/dist/components/InputGroup/Textarea/styles.css.d.ts +5 -0
- package/dist/components/InputGroup/Textarea/styles.css.js +8 -0
- package/dist/components/InputGroup/index.d.ts +9 -0
- package/dist/components/InputGroup/index.js +19 -0
- package/dist/components/InputGroup/styles.css.d.ts +5 -0
- package/dist/components/InputGroup/styles.css.js +8 -0
- package/dist/components/InputGroup/types.d.ts +17 -0
- package/dist/components/Item/Actions/Actions.svelte.d.ts +1 -1
- package/dist/components/Item/Content/Content.svelte.d.ts +1 -1
- package/dist/components/Item/Description/Description.svelte.d.ts +1 -1
- package/dist/components/Item/Footer/Footer.svelte.d.ts +1 -1
- package/dist/components/Item/Group/Group.svelte.d.ts +1 -1
- package/dist/components/Item/Header/Header.svelte.d.ts +1 -1
- package/dist/components/Item/Title/Title.svelte.d.ts +1 -1
- package/dist/components/Item/index.js +7 -7
- package/dist/components/Item/types.d.ts +1 -1
- package/dist/components/Popover/Content/PopoverContent.js +1 -1
- package/dist/components/Popover/index.js +2 -2
- package/dist/components/Popover/types.d.ts +1 -1
- package/dist/components/RangeInput/RangeInput.js +8 -8
- package/dist/components/RangeInput/types.d.ts +1 -1
- package/dist/components/Select/Content/Content.svelte.d.ts +1 -1
- package/dist/components/Select/Label/Label.svelte.d.ts +1 -1
- package/dist/components/Select/Trigger/Trigger.svelte.d.ts +1 -1
- package/dist/components/Slider/styles.css.js +1 -1
- package/dist/components/Slider/types.d.ts +1 -1
- package/dist/components/Tabs/index.js +2 -2
- package/dist/components/Tooltip/Content/Content.js +8 -6
- package/dist/components/Tooltip/Content/Content.svelte.d.ts +2 -2
- package/dist/components/Tooltip/Content/styles.css.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +5 -1
- package/dist/components/Tooltip/types.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components.d.ts +3 -1
- package/dist/components.js +2 -1
- package/dist/stories/InputGroup.stories.svelte.d.ts +19 -0
- package/dist/utils.d.ts +8 -2
- package/package.json +7 -4
- package/dist/assets/src/components/Accordion/Item/styles.css.ts.vanilla-D0hr7z3O.css +0 -6
- package/dist/components/Accordion/Item/styles.css.js +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import type { WithElementRef } from '
|
|
2
|
+
import type { WithElementRef } from '../../..';
|
|
3
3
|
declare const Title: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type Title = ReturnType<typeof Title>;
|
|
5
5
|
export default Title;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Group from "./Group/Group.js";
|
|
3
|
-
import Separator_1 from "./Separator/Separator.js";
|
|
4
|
-
import Header from "./Header/Header.js";
|
|
5
|
-
import Footer from "./Footer/Footer.js";
|
|
1
|
+
import Actions from "./Actions/Actions.js";
|
|
6
2
|
import Content from "./Content/Content.js";
|
|
7
|
-
import Title from "./Title/Title.js";
|
|
8
3
|
import Description from "./Description/Description.js";
|
|
9
|
-
import
|
|
4
|
+
import Footer from "./Footer/Footer.js";
|
|
5
|
+
import Group from "./Group/Group.js";
|
|
6
|
+
import Header from "./Header/Header.js";
|
|
7
|
+
import Item$1 from "./Item.js";
|
|
10
8
|
import Media from "./Media/Media.js";
|
|
9
|
+
import Separator_1 from "./Separator/Separator.js";
|
|
10
|
+
import Title from "./Title/Title.js";
|
|
11
11
|
|
|
12
12
|
//#region src/components/Item/index.ts
|
|
13
13
|
const Item = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
-
import type { WithElementRef } from '
|
|
3
|
+
import type { WithElementRef } from '../..';
|
|
4
4
|
export type ItemVariant = 'default' | 'outline' | 'muted';
|
|
5
5
|
export type ItemSize = 'default' | 'small';
|
|
6
6
|
export interface ItemProps extends WithElementRef<HTMLAttributes<HTMLDivElement>> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import PopoverPortal from "../Portal/PopoverPortal.js";
|
|
2
1
|
import __default__ from "../styles.css.js";
|
|
2
|
+
import PopoverPortal from "../Portal/PopoverPortal.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { Popover } from "bits-ui";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PopoverClose from "./Close/PopoverClose.js";
|
|
2
2
|
import PopoverPortal from "./Portal/PopoverPortal.js";
|
|
3
3
|
import PopoverContent from "./Content/PopoverContent.js";
|
|
4
|
+
import Popover$1 from "./Popover.js";
|
|
4
5
|
import PopoverTrigger from "./Trigger/PopoverTrigger.js";
|
|
5
|
-
import PopoverClose from "./Close/PopoverClose.js";
|
|
6
6
|
|
|
7
7
|
//#region src/components/Popover/index.ts
|
|
8
8
|
const Popover = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Popover as PopoverPrimitive } from 'bits-ui';
|
|
2
|
-
import type { WithoutChildrenOrChild } from '
|
|
2
|
+
import type { WithoutChildrenOrChild } from '../..';
|
|
3
3
|
export type PopoverProps = PopoverPrimitive.RootProps;
|
|
4
4
|
export type PopoverTriggerProps = PopoverPrimitive.TriggerProps;
|
|
5
5
|
export type PopoverCloseProps = PopoverPrimitive.CloseProps;
|
|
@@ -6,7 +6,7 @@ import "svelte/internal/disclose-version";
|
|
|
6
6
|
import * as $ from "svelte/internal/client";
|
|
7
7
|
|
|
8
8
|
//#region src/components/RangeInput/RangeInput.svelte
|
|
9
|
-
var root = $.from_html(`<div><!> <!> <input type="text"/> <!> <input type="text"/> <!>
|
|
9
|
+
var root = $.from_html(`<div><!> <!> <input type="text"/> <!> <input type="text"/> <!> <!></div>`);
|
|
10
10
|
function RangeInput($$anchor, $$props) {
|
|
11
11
|
$.push($$props, true);
|
|
12
12
|
let minValue = $.prop($$props, "minValue", 15), maxValue = $.prop($$props, "maxValue", 15), width = $.prop($$props, "width", 3, 150), label = $.prop($$props, "label", 3, ""), unit = $.prop($$props, "unit", 3, ""), size = $.prop($$props, "size", 3, "medium"), minInputRef = $.prop($$props, "minInputRef", 15, null), maxInputRef = $.prop($$props, "maxInputRef", 15, null), ref = $.prop($$props, "ref", 15, null), restProps = $.rest_props($$props, [
|
|
@@ -46,9 +46,9 @@ function RangeInput($$anchor, $$props) {
|
|
|
46
46
|
}
|
|
47
47
|
function onKeyDown(event) {
|
|
48
48
|
if (event.key === "Enter") {
|
|
49
|
-
if (minValue() < $$props.min) minValue($$props.min);
|
|
50
|
-
if (maxValue() > $$props.max) maxValue($$props.max);
|
|
51
|
-
if (minValue() > maxValue()) {
|
|
49
|
+
if (minValue() && minValue() < $$props.min) minValue($$props.min);
|
|
50
|
+
if (maxValue() && maxValue() > $$props.max) maxValue($$props.max);
|
|
51
|
+
if (minValue() && maxValue() && minValue() > maxValue()) {
|
|
52
52
|
const temp = minValue();
|
|
53
53
|
minValue(maxValue());
|
|
54
54
|
maxValue(temp);
|
|
@@ -134,8 +134,7 @@ function RangeInput($$anchor, $$props) {
|
|
|
134
134
|
},
|
|
135
135
|
$$slots: { default: true }
|
|
136
136
|
});
|
|
137
|
-
var
|
|
138
|
-
var node_4 = $.child(div_1);
|
|
137
|
+
var node_4 = $.sibling(node_3, 2);
|
|
139
138
|
{
|
|
140
139
|
let $0 = $.derived(() => [minValue() ?? $$props.min, maxValue() ?? $$props.max]);
|
|
141
140
|
Slider(node_4, {
|
|
@@ -148,6 +147,9 @@ function RangeInput($$anchor, $$props) {
|
|
|
148
147
|
get size() {
|
|
149
148
|
return size();
|
|
150
149
|
},
|
|
150
|
+
get class() {
|
|
151
|
+
return __default__.sliderClass;
|
|
152
|
+
},
|
|
151
153
|
type: "multiple",
|
|
152
154
|
get value() {
|
|
153
155
|
return $.get($0);
|
|
@@ -155,13 +157,11 @@ function RangeInput($$anchor, $$props) {
|
|
|
155
157
|
onValueChange
|
|
156
158
|
});
|
|
157
159
|
}
|
|
158
|
-
$.reset(div_1);
|
|
159
160
|
$.reset(div);
|
|
160
161
|
$.bind_this(div, ($$value) => ref($$value), () => ref());
|
|
161
162
|
$.template_effect(() => {
|
|
162
163
|
$.set_class(input, 1, $.clsx(__default__.inputClass));
|
|
163
164
|
$.set_class(input_1, 1, $.clsx(__default__.inputClass));
|
|
164
|
-
$.set_class(div_1, 1, $.clsx(__default__.sliderClass));
|
|
165
165
|
});
|
|
166
166
|
$.bind_value(input, minValue);
|
|
167
167
|
$.bind_value(input_1, maxValue);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import type { WithElementRef } from '
|
|
2
|
+
import type { WithElementRef } from '../..';
|
|
3
3
|
export type RangeInputSize = 'small' | 'medium' | 'large';
|
|
4
4
|
export interface RangeInputProps extends WithElementRef<HTMLAttributes<HTMLDivElement>> {
|
|
5
5
|
minValue?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Select as SelectPrimitive } from 'bits-ui';
|
|
2
2
|
import type { ComponentProps } from 'svelte';
|
|
3
|
-
import type { WithoutChild, WithoutChildrenOrChild } from '
|
|
3
|
+
import type { WithoutChild, WithoutChildrenOrChild } from '../../..';
|
|
4
4
|
import { Portal } from '../Portal';
|
|
5
5
|
type $$ComponentProps = WithoutChild<SelectPrimitive.ContentProps> & {
|
|
6
6
|
portalProps?: WithoutChildrenOrChild<ComponentProps<typeof Portal>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import type { WithElementRef } from '
|
|
2
|
+
import type { WithElementRef } from '../../..';
|
|
3
3
|
declare const Label: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type Label = ReturnType<typeof Label>;
|
|
5
5
|
export default Label;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./../../assets/src/theme.css.ts.vanilla-HT3RGHeI.css";
|
|
2
|
-
import "./../../assets/src/components/Slider/styles.css.ts.vanilla-
|
|
2
|
+
import "./../../assets/src/components/Slider/styles.css.ts.vanilla-DAEoeJIB.css";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Slider/styles.css.ts
|
|
5
5
|
var __default__ = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Slider as SliderPrimitive } from 'bits-ui';
|
|
2
|
-
import type { WithoutChildrenOrChild } from '
|
|
2
|
+
import type { WithoutChildrenOrChild } from '../..';
|
|
3
3
|
export type SliderSize = 'small' | 'medium' | 'large';
|
|
4
4
|
export type SliderProps = WithoutChildrenOrChild<SliderPrimitive.RootProps> & {
|
|
5
5
|
size?: SliderSize;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Content from "./Content/Content.js";
|
|
2
2
|
import List from "./List/List.js";
|
|
3
|
+
import Tabs$1 from "./Tabs.js";
|
|
3
4
|
import Trigger from "./Trigger/Trigger.js";
|
|
4
|
-
import Content from "./Content/Content.js";
|
|
5
5
|
|
|
6
6
|
//#region src/components/Tabs/index.ts
|
|
7
7
|
const Tabs = {
|
|
@@ -5,7 +5,7 @@ import * as $ from "svelte/internal/client";
|
|
|
5
5
|
import { Tooltip } from "bits-ui";
|
|
6
6
|
|
|
7
7
|
//#region src/components/Tooltip/Content/Content.svelte
|
|
8
|
-
var root_4 = $.
|
|
8
|
+
var root_4 = $.from_svg(`<svg><path d="m 0.52372243,0.10910656 c -0.1676883,0 -0.3188698,0.10099765 -0.38304509,0.25594925 -0.0641698,0.1548964 -0.0287017,0.3332318 0.0898753,0.4518088 L 3.5473966,4.1337031 c 0.077725,0.07778 0.1832001,0.1214516 0.2931533,0.1214516 0.1099531,0 0.2154286,-0.043672 0.2932085,-0.1214516 L 7.4505968,0.81686461 c 0.118577,-0.118577 0.1540119,-0.2969124 0.089831,-0.4518088 C 7.476247,0.21010421 7.3251098,0.10910656 7.1573882,0.10910656 Z" fill="inherit"></path></svg>`);
|
|
9
9
|
var root_2 = $.from_html(`<!> <!>`, 1);
|
|
10
10
|
function Content($$anchor, $$props) {
|
|
11
11
|
$.push($$props, true);
|
|
@@ -18,7 +18,7 @@ function Content($$anchor, $$props) {
|
|
|
18
18
|
"sideOffset",
|
|
19
19
|
"side",
|
|
20
20
|
"children",
|
|
21
|
-
"
|
|
21
|
+
"arrowClass",
|
|
22
22
|
"portalProps",
|
|
23
23
|
"arrow"
|
|
24
24
|
]);
|
|
@@ -58,12 +58,14 @@ function Content($$anchor, $$props) {
|
|
|
58
58
|
{
|
|
59
59
|
const child = ($$anchor, $$arg0) => {
|
|
60
60
|
let props = () => $$arg0?.().props;
|
|
61
|
-
var
|
|
62
|
-
$.attribute_effect(
|
|
63
|
-
class: [__default__.arrow, $$props.
|
|
61
|
+
var svg = root_4();
|
|
62
|
+
$.attribute_effect(svg, () => ({
|
|
63
|
+
class: [__default__.arrow, $$props.arrowClass],
|
|
64
|
+
viewBox: "0 0 7.68 4.35",
|
|
65
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
64
66
|
...props()
|
|
65
67
|
}));
|
|
66
|
-
$.append($$anchor,
|
|
68
|
+
$.append($$anchor, svg);
|
|
67
69
|
};
|
|
68
70
|
$.component(node_3, () => Tooltip.Arrow, ($$anchor, TooltipPrimitive_Arrow) => {
|
|
69
71
|
TooltipPrimitive_Arrow($$anchor, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
|
2
2
|
import type { ComponentProps } from 'svelte';
|
|
3
|
-
import type { WithoutChildrenOrChild } from '
|
|
3
|
+
import type { WithoutChildrenOrChild } from '../../..';
|
|
4
4
|
import { Portal } from '../Portal';
|
|
5
5
|
type $$ComponentProps = TooltipPrimitive.ContentProps & {
|
|
6
|
-
|
|
6
|
+
arrowClass?: string;
|
|
7
7
|
arrow?: boolean;
|
|
8
8
|
portalProps?: WithoutChildrenOrChild<ComponentProps<typeof Portal>>;
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./../../../assets/src/theme.css.ts.vanilla-HT3RGHeI.css";
|
|
2
|
-
import "./../../../assets/src/components/Tooltip/Content/styles.css.ts.vanilla-
|
|
2
|
+
import "./../../../assets/src/components/Tooltip/Content/styles.css.ts.vanilla-D_b_jcxS.css";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Tooltip/Content/styles.css.ts
|
|
5
5
|
var __default__ = {
|
|
@@ -20,7 +20,8 @@ function Tooltip$1($$anchor, $$props) {
|
|
|
20
20
|
"alignOffset",
|
|
21
21
|
"sideOffset",
|
|
22
22
|
"side",
|
|
23
|
-
"arrow"
|
|
23
|
+
"arrow",
|
|
24
|
+
"arrowClass"
|
|
24
25
|
]);
|
|
25
26
|
Provider($$anchor, {
|
|
26
27
|
children: ($$anchor, $$slotProps) => {
|
|
@@ -56,6 +57,9 @@ function Tooltip$1($$anchor, $$props) {
|
|
|
56
57
|
get sideOffset() {
|
|
57
58
|
return sideOffset();
|
|
58
59
|
},
|
|
60
|
+
get arrowClass() {
|
|
61
|
+
return $$props.arrowClass;
|
|
62
|
+
},
|
|
59
63
|
get side() {
|
|
60
64
|
return side();
|
|
61
65
|
},
|
|
@@ -16,6 +16,7 @@ export * as DropdownMenu from './DropdownMenu';
|
|
|
16
16
|
export { Empty, type EmptyMediaVariant } from './Empty';
|
|
17
17
|
export { Field, type FieldOrientation, type FieldVariants, } from './Field';
|
|
18
18
|
export { Input, type InputProps, type InputType, } from './Input';
|
|
19
|
+
export { InputGroup, type InputGroupAddonAlign, type InputGroupButtonSize, } from './InputGroup';
|
|
19
20
|
export { Item, type ItemProps, type ItemSize, type ItemVariant, } from './Item';
|
|
20
21
|
export { Label } from './Label';
|
|
21
22
|
export { Placeholder, type PlaceholderProps, type PlaceholderSize, } from './Placeholder';
|
package/dist/components.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ import { Empty } from "./components/Empty/index.js";
|
|
|
45
45
|
import { FieldOrientation, FieldVariants } from "./components/Field/types.js";
|
|
46
46
|
import { Field } from "./components/Field/index.js";
|
|
47
47
|
import { InputProps, InputType } from "./components/Input/types.js";
|
|
48
|
+
import { InputGroupAddonAlign, InputGroupButtonSize } from "./components/InputGroup/types.js";
|
|
49
|
+
import { InputGroup } from "./components/InputGroup/index.js";
|
|
48
50
|
import { ItemProps, ItemSize, ItemVariant } from "./components/Item/types.js";
|
|
49
51
|
import { Item } from "./components/Item/index.js";
|
|
50
52
|
import { PopoverProps } from "./components/Popover/types.js";
|
|
@@ -62,4 +64,4 @@ import { TooltipProps } from "./components/Tooltip/types.js";
|
|
|
62
64
|
import "./components/Tooltip/index.js";
|
|
63
65
|
import { TypographyAlign, TypographyColor, TypographyProps, TypographyVariant } from "./components/Typography/types.js";
|
|
64
66
|
import "./components/Typography/index.js";
|
|
65
|
-
export { Accordion, Alert, Badge, type BadgeVariant, Button, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarProps, Card, type CardVariant, Carousel, type CarouselProps, Checkbox, CircularProgress, type CircularProgressProps, ContentState, type ContentStateErrorProps, type ContentStateProps, DataGrid, type DataGridColumn, type DataGridColumns, type DataGridProps, DataGridSortHeader, type DataGridSortHeaderProps, type DataGridSorting, type DataGridState, index_d_exports as DropdownMenu, type DropdownMenuProps, Empty, type EmptyMediaVariant, Field, type FieldOrientation, type FieldVariants, Input, type InputProps, type InputType, Item, type ItemProps, type ItemSize, type ItemVariant, Label_1 as Label, Placeholder, type PlaceholderProps, type PlaceholderSize, Popover, type PopoverProps, RangeInput, type RangeInputProps, type RangeInputSize, Select, Separator, type SeparatorProps, Slider, type SliderProps, Spinner, type SpinnerSize, Tabs, type TabsProps, Tooltip, type TooltipProps, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, badgeVariants, buttonVariants };
|
|
67
|
+
export { Accordion, Alert, Badge, type BadgeVariant, Button, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarProps, Card, type CardVariant, Carousel, type CarouselProps, Checkbox, CircularProgress, type CircularProgressProps, ContentState, type ContentStateErrorProps, type ContentStateProps, DataGrid, type DataGridColumn, type DataGridColumns, type DataGridProps, DataGridSortHeader, type DataGridSortHeaderProps, type DataGridSorting, type DataGridState, index_d_exports as DropdownMenu, type DropdownMenuProps, Empty, type EmptyMediaVariant, Field, type FieldOrientation, type FieldVariants, Input, InputGroup, type InputGroupAddonAlign, type InputGroupButtonSize, type InputProps, type InputType, Item, type ItemProps, type ItemSize, type ItemVariant, Label_1 as Label, Placeholder, type PlaceholderProps, type PlaceholderSize, Popover, type PopoverProps, RangeInput, type RangeInputProps, type RangeInputSize, Select, Separator, type SeparatorProps, Slider, type SliderProps, Spinner, type SpinnerSize, Tabs, type TabsProps, Tooltip, type TooltipProps, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, badgeVariants, buttonVariants };
|
package/dist/components.js
CHANGED
|
@@ -22,6 +22,7 @@ import { Empty } from "./components/Empty/index.js";
|
|
|
22
22
|
import Label_1 from "./components/Label/Label.js";
|
|
23
23
|
import { Field } from "./components/Field/index.js";
|
|
24
24
|
import Input from "./components/Input/Input.js";
|
|
25
|
+
import { InputGroup } from "./components/InputGroup/index.js";
|
|
25
26
|
import { Item } from "./components/Item/index.js";
|
|
26
27
|
import { Popover } from "./components/Popover/index.js";
|
|
27
28
|
import Slider from "./components/Slider/Slider.js";
|
|
@@ -30,4 +31,4 @@ import { Select } from "./components/Select/index.js";
|
|
|
30
31
|
import { Tabs } from "./components/Tabs/index.js";
|
|
31
32
|
import Tooltip from "./components/Tooltip/Tooltip.js";
|
|
32
33
|
|
|
33
|
-
export { Accordion, Alert, Badge, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, CircularProgress, ContentState, DataGrid, DataGridSortHeader, DropdownMenu_exports as DropdownMenu, Empty, Field, Input, Item, Label_1 as Label, Placeholder, Popover, RangeInput, Select, Separator, Slider, Spinner, Tabs, Tooltip, Typography, badgeVariants, buttonVariants };
|
|
34
|
+
export { Accordion, Alert, Badge, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, CircularProgress, ContentState, DataGrid, DataGridSortHeader, DropdownMenu_exports as DropdownMenu, Empty, Field, Input, InputGroup, Item, Label_1 as Label, Placeholder, Popover, RangeInput, Select, Separator, Slider, Spinner, Tabs, Tooltip, Typography, badgeVariants, buttonVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { InputGroup } 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 InputGroup: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type InputGroup = InstanceType<typeof InputGroup>;
|
|
19
|
+
export default InputGroup;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { type SpacingKey } from './theme.css';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type Spacing = {
|
|
3
|
+
(value: SpacingKey): string;
|
|
4
|
+
(topBottom: SpacingKey, rightLeft: SpacingKey): string;
|
|
5
|
+
(top: SpacingKey, rightLeft: SpacingKey, bottom: SpacingKey): string;
|
|
6
|
+
(top: SpacingKey, right: SpacingKey, bottom: SpacingKey, left: SpacingKey): string;
|
|
7
|
+
};
|
|
8
|
+
export declare const negativeSpacing: Spacing;
|
|
9
|
+
export declare const spacing: Spacing;
|
|
4
10
|
export declare const calculateSize: (value?: string | number) => string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@max-ts/svelte",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Svelte component library.",
|
|
6
6
|
"author": "Tsepelev Maksim",
|
|
@@ -43,8 +43,6 @@
|
|
|
43
43
|
"@changesets/cli": "^2.29.8",
|
|
44
44
|
"@chromatic-com/storybook": "^5.0.0",
|
|
45
45
|
"@internationalized/date": "^3.11.0",
|
|
46
|
-
"embla-carousel-autoplay": "^8.6.0",
|
|
47
|
-
"embla-carousel-svelte": "^8.6.0",
|
|
48
46
|
"@storybook/addon-a11y": "^10.2.6",
|
|
49
47
|
"@storybook/addon-docs": "^10.2.6",
|
|
50
48
|
"@storybook/addon-svelte-csf": "^5.0.10",
|
|
@@ -58,12 +56,15 @@
|
|
|
58
56
|
"@vanilla-extract/vite-plugin": "^5.1.4",
|
|
59
57
|
"@vitest/browser-playwright": "^4.0.18",
|
|
60
58
|
"bumpp": "^10.4.1",
|
|
59
|
+
"embla-carousel-autoplay": "^8.6.0",
|
|
60
|
+
"embla-carousel-svelte": "^8.6.0",
|
|
61
61
|
"rollup-plugin-svelte": "^7.2.3",
|
|
62
62
|
"storybook": "^10.2.6",
|
|
63
63
|
"svelte": "^5.49.2",
|
|
64
64
|
"svelte-check": "^4.3.6",
|
|
65
65
|
"svelte-preprocess": "^6.0.3",
|
|
66
66
|
"svelte2tsx": "^0.7.47",
|
|
67
|
+
"tsc-alias": "^1.8.16",
|
|
67
68
|
"tsdown": "0.20.3",
|
|
68
69
|
"typescript": "^5.9.3",
|
|
69
70
|
"vite": "^7.3.1",
|
|
@@ -80,7 +81,9 @@
|
|
|
80
81
|
"dev": "tsdown --watch",
|
|
81
82
|
"play": "vite",
|
|
82
83
|
"test": "vitest",
|
|
83
|
-
"
|
|
84
|
+
"lint:types": "svelte-check --tsconfig ./tsconfig.json",
|
|
85
|
+
"lint:code": "biome check --write",
|
|
86
|
+
"lint": "pnpm run lint:types && pnpm run lint:code",
|
|
84
87
|
"release": "bumpp && pnpm publish",
|
|
85
88
|
"storybook": "storybook dev -p 6006"
|
|
86
89
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "./../../../assets/src/theme.css.ts.vanilla-HT3RGHeI.css";
|
|
2
|
-
import "./../../../assets/src/components/Accordion/Item/styles.css.ts.vanilla-D0hr7z3O.css";
|
|
3
|
-
|
|
4
|
-
//#region src/components/Accordion/Item/styles.css.ts
|
|
5
|
-
var __default__ = { item: "styles_item__thlklw0" };
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
8
|
-
export { __default__ as default };
|