@max-ts/svelte 1.4.5 → 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,9 +1,9 @@
|
|
|
1
|
+
import Content from "./Content/Content.js";
|
|
2
|
+
import Description from "./Description/Description.js";
|
|
1
3
|
import Empty$1 from "./Empty.js";
|
|
2
4
|
import Header from "./Header/Header.js";
|
|
3
5
|
import Media from "./Media/Media.js";
|
|
4
6
|
import Title from "./Title/Title.js";
|
|
5
|
-
import Description from "./Description/Description.js";
|
|
6
|
-
import Content from "./Content/Content.js";
|
|
7
7
|
|
|
8
8
|
//#region src/components/Empty/index.ts
|
|
9
9
|
const Empty = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { WithElementRef } from '../../types';
|
|
2
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { WithElementRef } from '../..';
|
|
3
3
|
export type EmptyMediaVariant = 'default' | 'icon';
|
|
4
4
|
export interface EmptyMediaProps extends WithElementRef<HTMLAttributes<HTMLDivElement>> {
|
|
5
5
|
variant?: EmptyMediaVariant;
|
|
@@ -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 Content: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type Content = ReturnType<typeof Content>;
|
|
5
5
|
export default Content;
|
|
@@ -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 Description: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLParagraphElement>>, {}, "ref">;
|
|
4
4
|
type Description = ReturnType<typeof Description>;
|
|
5
5
|
export default Description;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import type { WithElementRef } from '
|
|
2
|
+
import type { WithElementRef } from '../..';
|
|
3
3
|
import type { FieldOrientation } from './types';
|
|
4
4
|
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
5
5
|
orientation?: FieldOrientation;
|
|
@@ -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
|
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
5
5
|
children?: Snippet;
|
|
6
6
|
errors?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLFieldsetAttributes } from 'svelte/elements';
|
|
2
|
-
import type { WithElementRef } from '
|
|
2
|
+
import type { WithElementRef } from '../../..';
|
|
3
3
|
declare const FieldSet: import("svelte").Component<WithElementRef<HTMLFieldsetAttributes>, {}, "ref">;
|
|
4
4
|
type FieldSet = ReturnType<typeof FieldSet>;
|
|
5
5
|
export default FieldSet;
|
|
@@ -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 Group: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type Group = ReturnType<typeof Group>;
|
|
5
5
|
export default Group;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import type { WithElementRef } from '
|
|
2
|
+
import type { WithElementRef } from '../../..';
|
|
3
3
|
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLLegendElement>> & {
|
|
4
4
|
variant?: 'legend' | 'label';
|
|
5
5
|
};
|
|
@@ -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
|
import { Separator } from '../../Separator';
|
|
5
5
|
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
6
6
|
children?: Snippet;
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLInputAttributes, HTMLInputTypeAttribute } from 'svelte/elements';
|
|
2
|
-
import type { WithElementRef } from '
|
|
2
|
+
import type { WithElementRef } from '../..';
|
|
3
3
|
export type InputType = Exclude<HTMLInputTypeAttribute, 'file'>;
|
|
4
4
|
export type InputProps = WithElementRef<Omit<HTMLInputAttributes, 'type' | 'size'> & ({
|
|
5
5
|
type: 'file';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import __default__ from "./styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
|
|
5
|
+
//#region src/components/InputGroup/Addon/Addon.svelte
|
|
6
|
+
var root = $.from_html(`<div><!></div>`);
|
|
7
|
+
function Addon($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), align = $.prop($$props, "align", 3, "inline-start"), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"class",
|
|
15
|
+
"children",
|
|
16
|
+
"align"
|
|
17
|
+
]);
|
|
18
|
+
const classNames = $.derived(() => [
|
|
19
|
+
__default__.addon,
|
|
20
|
+
__default__.align[align()],
|
|
21
|
+
$$props.class
|
|
22
|
+
]);
|
|
23
|
+
const focusControl = (element) => {
|
|
24
|
+
(element?.parentElement?.querySelector("input[data-slot=\"input-group-control\"], textarea[data-slot=\"input-group-control\"]"))?.focus();
|
|
25
|
+
};
|
|
26
|
+
var div = root();
|
|
27
|
+
var event_handler = (event) => {
|
|
28
|
+
if (event.target?.closest("[data-slot=\"button\"]")) return;
|
|
29
|
+
focusControl(event.currentTarget);
|
|
30
|
+
};
|
|
31
|
+
$.attribute_effect(div, () => ({
|
|
32
|
+
role: "group",
|
|
33
|
+
"data-slot": "input-group-addon",
|
|
34
|
+
"data-align": align(),
|
|
35
|
+
class: $.get(classNames),
|
|
36
|
+
onclick: event_handler,
|
|
37
|
+
...restProps
|
|
38
|
+
}));
|
|
39
|
+
var node = $.child(div);
|
|
40
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
41
|
+
$.reset(div);
|
|
42
|
+
$.bind_this(div, ($$value) => ref($$value), () => ref());
|
|
43
|
+
$.append($$anchor, div);
|
|
44
|
+
$.pop();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { Addon as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InputGroupAddonAlign } from '../types';
|
|
2
|
+
export declare const addon: string;
|
|
3
|
+
export declare const align: Record<InputGroupAddonAlign, string>;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
addon: string;
|
|
6
|
+
align: Record<InputGroupAddonAlign, string>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./../../../assets/src/theme.css.ts.vanilla-HT3RGHeI.css";
|
|
2
|
+
import "./../../../assets/src/components/InputGroup/Addon/styles.css.ts.vanilla-CyiC_NQA.css";
|
|
3
|
+
|
|
4
|
+
//#region src/components/InputGroup/Addon/styles.css.ts
|
|
5
|
+
var align = {
|
|
6
|
+
"inline-start": "styles_align_inline-start__12a78m01",
|
|
7
|
+
"inline-end": "styles_align_inline-end__12a78m02",
|
|
8
|
+
"block-start": "styles_align_block-start__12a78m03",
|
|
9
|
+
"block-end": "styles_align_block-end__12a78m04"
|
|
10
|
+
};
|
|
11
|
+
var __default__ = {
|
|
12
|
+
addon: "styles_addon__12a78m00",
|
|
13
|
+
align
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { __default__ as default };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import Button from "../../Button/Button.js";
|
|
2
|
+
import __default__ from "./styles.css.js";
|
|
3
|
+
import "svelte/internal/disclose-version";
|
|
4
|
+
import * as $ from "svelte/internal/client";
|
|
5
|
+
|
|
6
|
+
//#region src/components/InputGroup/Button/Button.svelte
|
|
7
|
+
function Button_1($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
const buttonSizeMap = {
|
|
10
|
+
sm: "small",
|
|
11
|
+
xs: "small",
|
|
12
|
+
"icon-sm": "icon",
|
|
13
|
+
"icon-xs": "iconSmall"
|
|
14
|
+
};
|
|
15
|
+
let ref = $.prop($$props, "ref", 15, null), size = $.prop($$props, "size", 3, "xs"), variant = $.prop($$props, "variant", 3, "ghost"), type = $.prop($$props, "type", 3, "button"), restProps = $.rest_props($$props, [
|
|
16
|
+
"$$slots",
|
|
17
|
+
"$$events",
|
|
18
|
+
"$$legacy",
|
|
19
|
+
"ref",
|
|
20
|
+
"class",
|
|
21
|
+
"children",
|
|
22
|
+
"size",
|
|
23
|
+
"variant",
|
|
24
|
+
"type"
|
|
25
|
+
]);
|
|
26
|
+
const classNames = $.derived(() => [
|
|
27
|
+
__default__.base,
|
|
28
|
+
__default__.sizes[size()],
|
|
29
|
+
$$props.class
|
|
30
|
+
]);
|
|
31
|
+
Button($$anchor, $.spread_props({
|
|
32
|
+
get size() {
|
|
33
|
+
return buttonSizeMap[size()];
|
|
34
|
+
},
|
|
35
|
+
get variant() {
|
|
36
|
+
return variant();
|
|
37
|
+
},
|
|
38
|
+
get type() {
|
|
39
|
+
return type();
|
|
40
|
+
},
|
|
41
|
+
get class() {
|
|
42
|
+
return $.get(classNames);
|
|
43
|
+
}
|
|
44
|
+
}, () => restProps, {
|
|
45
|
+
get ref() {
|
|
46
|
+
return ref();
|
|
47
|
+
},
|
|
48
|
+
set ref($$value) {
|
|
49
|
+
ref($$value);
|
|
50
|
+
},
|
|
51
|
+
children: ($$anchor, $$slotProps) => {
|
|
52
|
+
var fragment_1 = $.comment();
|
|
53
|
+
var node = $.first_child(fragment_1);
|
|
54
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
55
|
+
$.append($$anchor, fragment_1);
|
|
56
|
+
},
|
|
57
|
+
$$slots: { default: true }
|
|
58
|
+
}));
|
|
59
|
+
$.pop();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
export { Button_1 as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InputGroupButtonSize } from '../types';
|
|
2
|
+
export declare const base: string;
|
|
3
|
+
export declare const sizes: Record<InputGroupButtonSize, string>;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
base: string;
|
|
6
|
+
sizes: Record<InputGroupButtonSize, string>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./../../../assets/src/theme.css.ts.vanilla-HT3RGHeI.css";
|
|
2
|
+
import "./../../../assets/src/components/InputGroup/Button/styles.css.ts.vanilla-DPmQhx2j.css";
|
|
3
|
+
|
|
4
|
+
//#region src/components/InputGroup/Button/styles.css.ts
|
|
5
|
+
var sizes = {
|
|
6
|
+
xs: "styles_sizes_xs__fq6481",
|
|
7
|
+
sm: "styles_sizes_sm__fq6482",
|
|
8
|
+
"icon-xs": "styles_sizes_icon-xs__fq6483",
|
|
9
|
+
"icon-sm": "styles_sizes_icon-sm__fq6484"
|
|
10
|
+
};
|
|
11
|
+
var __default__ = {
|
|
12
|
+
base: "styles_base__fq6480",
|
|
13
|
+
sizes
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { __default__ as default };
|
|
@@ -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
|
+
|
|
5
|
+
//#region src/components/InputGroup/Input/Input.svelte
|
|
6
|
+
var root = $.from_html(`<input/>`);
|
|
7
|
+
function Input($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), value = $.prop($$props, "value", 15), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"value",
|
|
15
|
+
"class"
|
|
16
|
+
]);
|
|
17
|
+
const classNames = $.derived(() => [__default__.control, $$props.class]);
|
|
18
|
+
var input = root();
|
|
19
|
+
$.attribute_effect(input, () => ({
|
|
20
|
+
"data-slot": "input-group-control",
|
|
21
|
+
class: $.get(classNames),
|
|
22
|
+
...restProps
|
|
23
|
+
}), void 0, void 0, void 0, void 0, true);
|
|
24
|
+
$.bind_this(input, ($$value) => ref($$value), () => ref());
|
|
25
|
+
$.bind_value(input, value);
|
|
26
|
+
$.append($$anchor, input);
|
|
27
|
+
$.pop();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Input as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Input } from './Input.svelte';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./../../../assets/src/theme.css.ts.vanilla-HT3RGHeI.css";
|
|
2
|
+
import "./../../../assets/src/components/InputGroup/Input/styles.css.ts.vanilla-Dkc417RX.css";
|
|
3
|
+
|
|
4
|
+
//#region src/components/InputGroup/Input/styles.css.ts
|
|
5
|
+
var __default__ = { control: "styles_control__1s24l5e0" };
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { __default__ as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import __default__ from "./styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
|
|
5
|
+
//#region src/components/InputGroup/InputGroup.svelte
|
|
6
|
+
var root = $.from_html(`<div><!></div>`);
|
|
7
|
+
function InputGroup($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), disabled = $.prop($$props, "disabled", 3, false), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"class",
|
|
15
|
+
"children",
|
|
16
|
+
"disabled"
|
|
17
|
+
]);
|
|
18
|
+
const classNames = $.derived(() => [__default__.container, $$props.class]);
|
|
19
|
+
var div = root();
|
|
20
|
+
$.attribute_effect(div, () => ({
|
|
21
|
+
role: "group",
|
|
22
|
+
"data-slot": "input-group",
|
|
23
|
+
"data-disabled": disabled() ? "true" : void 0,
|
|
24
|
+
"aria-disabled": disabled(),
|
|
25
|
+
class: $.get(classNames),
|
|
26
|
+
...restProps
|
|
27
|
+
}));
|
|
28
|
+
var node = $.child(div);
|
|
29
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
30
|
+
$.reset(div);
|
|
31
|
+
$.bind_this(div, ($$value) => ref($$value), () => ref());
|
|
32
|
+
$.append($$anchor, div);
|
|
33
|
+
$.pop();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { InputGroup as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import __default__ from "./styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
|
|
5
|
+
//#region src/components/InputGroup/Text/Text.svelte
|
|
6
|
+
var root = $.from_html(`<span><!></span>`);
|
|
7
|
+
function Text($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"class",
|
|
15
|
+
"children"
|
|
16
|
+
]);
|
|
17
|
+
const classNames = $.derived(() => [__default__.text, $$props.class]);
|
|
18
|
+
var span = root();
|
|
19
|
+
$.attribute_effect(span, () => ({
|
|
20
|
+
class: $.get(classNames),
|
|
21
|
+
...restProps
|
|
22
|
+
}));
|
|
23
|
+
var node = $.child(span);
|
|
24
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
25
|
+
$.reset(span);
|
|
26
|
+
$.bind_this(span, ($$value) => ref($$value), () => ref());
|
|
27
|
+
$.append($$anchor, span);
|
|
28
|
+
$.pop();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Text as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Text } from './Text.svelte';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./../../../assets/src/theme.css.ts.vanilla-HT3RGHeI.css";
|
|
2
|
+
import "./../../../assets/src/components/InputGroup/Text/styles.css.ts.vanilla-Bu6aVU98.css";
|
|
3
|
+
|
|
4
|
+
//#region src/components/InputGroup/Text/styles.css.ts
|
|
5
|
+
var __default__ = { text: "styles_text__14dyhly0" };
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { __default__ as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import __default__ from "./styles.css.js";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
|
|
5
|
+
//#region src/components/InputGroup/Textarea/Textarea.svelte
|
|
6
|
+
var root = $.from_html(`<textarea></textarea>`);
|
|
7
|
+
function Textarea($$anchor, $$props) {
|
|
8
|
+
$.push($$props, true);
|
|
9
|
+
let ref = $.prop($$props, "ref", 15, null), value = $.prop($$props, "value", 15), restProps = $.rest_props($$props, [
|
|
10
|
+
"$$slots",
|
|
11
|
+
"$$events",
|
|
12
|
+
"$$legacy",
|
|
13
|
+
"ref",
|
|
14
|
+
"value",
|
|
15
|
+
"class"
|
|
16
|
+
]);
|
|
17
|
+
const classNames = $.derived(() => [__default__.textarea, $$props.class]);
|
|
18
|
+
var textarea = root();
|
|
19
|
+
$.remove_textarea_child(textarea);
|
|
20
|
+
$.attribute_effect(textarea, () => ({
|
|
21
|
+
"data-slot": "input-group-control",
|
|
22
|
+
class: $.get(classNames),
|
|
23
|
+
...restProps
|
|
24
|
+
}));
|
|
25
|
+
$.bind_this(textarea, ($$value) => ref($$value), () => ref());
|
|
26
|
+
$.bind_value(textarea, value);
|
|
27
|
+
$.append($$anchor, textarea);
|
|
28
|
+
$.pop();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Textarea as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Textarea } from './Textarea.svelte';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./../../../assets/src/theme.css.ts.vanilla-HT3RGHeI.css";
|
|
2
|
+
import "./../../../assets/src/components/InputGroup/Textarea/styles.css.ts.vanilla-DIqtGbwz.css";
|
|
3
|
+
|
|
4
|
+
//#region src/components/InputGroup/Textarea/styles.css.ts
|
|
5
|
+
var __default__ = { textarea: "styles_textarea__gxp1dz0" };
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { __default__ as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const InputGroup: {
|
|
2
|
+
Root: import("svelte").Component<import("./types").InputGroupProps, {}, "ref">;
|
|
3
|
+
Addon: import("svelte").Component<import("./types").InputGroupAddonProps, {}, "ref">;
|
|
4
|
+
Button: import("svelte").Component<import("./types").InputGroupButtonProps, {}, "ref">;
|
|
5
|
+
Input: import("svelte").Component<import("./types").InputGroupInputProps, {}, "value" | "ref">;
|
|
6
|
+
Text: import("svelte").Component<import("./types").InputGroupTextProps, {}, "ref">;
|
|
7
|
+
Textarea: import("svelte").Component<import("./types").InputGroupTextareaProps, {}, "value" | "ref">;
|
|
8
|
+
};
|
|
9
|
+
export type * from './types';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Addon from "./Addon/Addon.js";
|
|
2
|
+
import Button_1 from "./Button/Button.js";
|
|
3
|
+
import Input from "./Input/Input.js";
|
|
4
|
+
import InputGroup$1 from "./InputGroup.js";
|
|
5
|
+
import Text from "./Text/Text.js";
|
|
6
|
+
import Textarea from "./Textarea/Textarea.js";
|
|
7
|
+
|
|
8
|
+
//#region src/components/InputGroup/index.ts
|
|
9
|
+
const InputGroup = {
|
|
10
|
+
Root: InputGroup$1,
|
|
11
|
+
Addon,
|
|
12
|
+
Button: Button_1,
|
|
13
|
+
Input,
|
|
14
|
+
Text,
|
|
15
|
+
Textarea
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { InputGroup };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./../../assets/src/theme.css.ts.vanilla-HT3RGHeI.css";
|
|
2
|
+
import "./../../assets/src/components/InputGroup/styles.css.ts.vanilla-D7Moo4H4.css";
|
|
3
|
+
|
|
4
|
+
//#region src/components/InputGroup/styles.css.ts
|
|
5
|
+
var __default__ = { container: "styles_container__rl3s4j0" };
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { __default__ as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HTMLAttributes, HTMLInputAttributes, HTMLTextareaAttributes } from 'svelte/elements';
|
|
2
|
+
import type { WithElementRef } from '../..';
|
|
3
|
+
import type { ButtonProps } from '../Button/types';
|
|
4
|
+
export type InputGroupAddonAlign = 'inline-start' | 'inline-end' | 'block-start' | 'block-end';
|
|
5
|
+
export interface InputGroupProps extends WithElementRef<HTMLAttributes<HTMLDivElement>> {
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface InputGroupAddonProps extends WithElementRef<HTMLAttributes<HTMLDivElement>> {
|
|
9
|
+
align?: InputGroupAddonAlign;
|
|
10
|
+
}
|
|
11
|
+
export type InputGroupButtonSize = 'xs' | 'sm' | 'icon-xs' | 'icon-sm';
|
|
12
|
+
export type InputGroupButtonProps = Omit<ButtonProps, 'size'> & {
|
|
13
|
+
size?: InputGroupButtonSize;
|
|
14
|
+
};
|
|
15
|
+
export type InputGroupInputProps = WithElementRef<HTMLInputAttributes>;
|
|
16
|
+
export type InputGroupTextareaProps = WithElementRef<HTMLTextareaAttributes>;
|
|
17
|
+
export type InputGroupTextProps = WithElementRef<HTMLAttributes<HTMLSpanElement>>;
|
|
@@ -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 Actions: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type Actions = ReturnType<typeof Actions>;
|
|
5
5
|
export default Actions;
|
|
@@ -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 Content: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type Content = ReturnType<typeof Content>;
|
|
5
5
|
export default Content;
|
|
@@ -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 Description: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLParagraphElement>>, {}, "ref">;
|
|
4
4
|
type Description = ReturnType<typeof Description>;
|
|
5
5
|
export default Description;
|
|
@@ -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 Footer: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type Footer = ReturnType<typeof Footer>;
|
|
5
5
|
export default Footer;
|
|
@@ -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 Group: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type Group = ReturnType<typeof Group>;
|
|
5
5
|
export default Group;
|
|
@@ -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 Header: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type Header = ReturnType<typeof Header>;
|
|
5
5
|
export default Header;
|