@bysages/svelte 0.4.1 → 0.4.2
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/{Accordion-BkqRwmjT.mjs → Accordion-DF1vzXDg.mjs} +1 -1
- package/dist/Calendar-CWaU4MGJ.mjs +589 -0
- package/dist/{Carousel-D-v0Bza0.mjs → Carousel-BWWwu5Ma.mjs} +1 -1
- package/dist/{Checkbox-Dt_QeNLA.mjs → Checkbox-BZb8IR25.mjs} +1 -1
- package/dist/{ChevronIcon-BrLZJ0NH.mjs → ChevronIcon-C-MKLsfA.mjs} +1 -1
- package/dist/{Clipboard-BHy1YrlL.mjs → Clipboard-DBgbIGjV.mjs} +1 -1
- package/dist/{Collapsible-DKTSOxEd.mjs → Collapsible-CZ8qFLzP.mjs} +1 -1
- package/dist/{ColorPicker-DK1jZSSj.mjs → ColorPicker-D6PGvfQf.mjs} +1 -1
- package/dist/{Combobox-BNzikc6h.mjs → Combobox-Ba2u_SqJ.mjs} +1 -1
- package/dist/{DatePicker-BGt2KYR_.mjs → DatePicker-Dm81GmmF.mjs} +1 -1
- package/dist/{descriptions-DGuEJmgX.mjs → Descriptions-C1qZ05Ph.mjs} +2 -13
- package/dist/{Dialog-C_fbKqoA.mjs → Dialog-BbDr030S.mjs} +1 -1
- package/dist/{Drawer-DOOnBSMq.mjs → Drawer-C1r1wz3V.mjs} +1 -1
- package/dist/{Editable-Btl-QYDY.mjs → Editable-hjSbhWMK.mjs} +1 -1
- package/dist/{FileUpload-DHZf3u4d.mjs → FileUpload-C6JBpvet.mjs} +1 -1
- package/dist/{FloatingPanel-CkWYZ4MO.mjs → FloatingPanel-2z-iuVPc.mjs} +1 -1
- package/dist/{ImageViewer-CuTn5ho6.mjs → ImageViewer-8tDJvkkb.mjs} +1 -1
- package/dist/{InternalIcon-Clwbj4MY.mjs → InternalIcon-CbfKieOs.mjs} +1 -1
- package/dist/{JsonTreeViewTree-IqoSdRQR.mjs → JsonTreeViewTree-DkusAr3j.mjs} +1 -1
- package/dist/{Listbox-BQTnipRA.mjs → Listbox-gAL5Q59b.mjs} +1 -1
- package/dist/{Menu-CxPWabm-.mjs → Menu-BiwHDpdz.mjs} +1 -1
- package/dist/{NumberInput-FqS47j4x.mjs → NumberInput-B2gPYuJX.mjs} +1 -1
- package/dist/Pagination-f8XiX-Cs.mjs +210 -0
- package/dist/{PasswordInput-DxtreG-T.mjs → PasswordInput-BhlJF3Jd.mjs} +1 -1
- package/dist/{Popover-C2oWItCV.mjs → Popover-Dl-QAFG_.mjs} +1 -1
- package/dist/Progress-Byx2qRcT.mjs +191 -0
- package/dist/{RatingGroup-Btui4It7.mjs → RatingGroup-DTVzY6BA.mjs} +1 -1
- package/dist/{Select-Dv0dqYII.mjs → Select-5AJHEmMi.mjs} +1 -1
- package/dist/{StepsItem-BrDhhxjY.mjs → StepsItem-KwQ6SrNR.mjs} +46 -27
- package/dist/{Swap-DSxNn2gk.mjs → Swap-CfgxrCzJ.mjs} +1 -1
- package/dist/{TagsInput-Bz_NUGXo.mjs → TagsInput-DVuAOpBt.mjs} +1 -1
- package/dist/{Toast-B15KZZH0.mjs → Toast-BHSRo7N7.mjs} +1 -1
- package/dist/{ToggleGroup-NRzTANnd.mjs → ToggleGroup-DgBoC0hi.mjs} +1 -1
- package/dist/{TreeViewNodeCheckbox-l1l6EYyz.mjs → TreeViewNodeCheckbox-DGfG5yIl.mjs} +1 -1
- package/dist/{ai-attachments-BuH2tjOv.mjs → ai-attachments-nFUAAXoM.mjs} +1 -1
- package/dist/{ai-prompt-input-CV683FB3.mjs → ai-prompt-input-z0j3gpgu.mjs} +59 -54
- package/dist/{ai-reasoning-CesP6H0y.mjs → ai-reasoning-C2Ffu52i.mjs} +1 -1
- package/dist/{ai-response-Bu-iNsC-.mjs → ai-response-Bczv0TaC.mjs} +1 -1
- package/dist/{ai-tool-pBb7sCz2.mjs → ai-tool-DuhNqTWQ.mjs} +1 -1
- package/dist/{alert-ClMd57tZ.mjs → alert-Cji6_TKm.mjs} +1 -1
- package/dist/{back-top-CJXLTyyZ.mjs → back-top-WBPZ45WG.mjs} +1 -1
- package/dist/{banner-fF1_G7qu.mjs → banner-vdEHwWWw.mjs} +1 -1
- package/dist/{cascade-select-C4OSlWpx.mjs → cascade-select-CWjvNB4G.mjs} +1 -1
- package/dist/{checkbox-group-CZSQvm6H.mjs → checkbox-group-JVSnrwhR.mjs} +1 -1
- package/dist/components/accordion/index.d.mts +1 -1
- package/dist/components/accordion/index.mjs +1 -1
- package/dist/components/ai/index.mjs +4 -4
- package/dist/components/ai-attachments/index.mjs +1 -1
- package/dist/components/ai-prompt-input/index.mjs +1 -1
- package/dist/components/ai-reasoning/index.mjs +1 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-tool/index.mjs +1 -1
- package/dist/components/alert/index.mjs +1 -1
- package/dist/components/back-top/index.mjs +1 -1
- package/dist/components/banner/index.mjs +1 -1
- package/dist/components/calendar/index.d.mts +1 -1
- package/dist/components/calendar/index.mjs +9 -1
- package/dist/components/carousel/index.d.mts +1 -1
- package/dist/components/carousel/index.mjs +1 -1
- package/dist/components/cascade-select/index.mjs +1 -1
- package/dist/components/checkbox/index.d.mts +1 -1
- package/dist/components/checkbox/index.mjs +1 -1
- package/dist/components/checkbox-group/index.mjs +1 -1
- package/dist/components/chip/index.d.mts +1 -1
- package/dist/components/clipboard/index.d.mts +1 -1
- package/dist/components/clipboard/index.mjs +1 -1
- package/dist/components/collapsible/index.d.mts +1 -1
- package/dist/components/collapsible/index.mjs +1 -1
- package/dist/components/color-picker/index.d.mts +1 -1
- package/dist/components/color-picker/index.mjs +1 -1
- package/dist/components/combobox/index.d.mts +1 -1
- package/dist/components/combobox/index.mjs +1 -1
- package/dist/components/date-picker/index.d.mts +1 -1
- package/dist/components/date-picker/index.mjs +1 -1
- package/dist/components/descriptions/index.d.mts +1 -1
- package/dist/components/descriptions/index.mjs +13 -1
- package/dist/components/dialog/index.d.mts +1 -1
- package/dist/components/dialog/index.mjs +1 -1
- package/dist/components/drawer/index.d.mts +1 -1
- package/dist/components/drawer/index.mjs +1 -1
- package/dist/components/dynamic-input/index.mjs +1 -1
- package/dist/components/editable/index.d.mts +1 -1
- package/dist/components/editable/index.mjs +1 -1
- package/dist/components/file-upload/index.d.mts +1 -1
- package/dist/components/file-upload/index.mjs +1 -1
- package/dist/components/floating-panel/index.d.mts +1 -1
- package/dist/components/floating-panel/index.mjs +1 -1
- package/dist/components/form/index.d.mts +1 -1
- package/dist/components/image/index.mjs +1 -1
- package/dist/components/image-viewer/index.d.mts +1 -1
- package/dist/components/image-viewer/index.mjs +1 -1
- package/dist/components/json-tree-view/index.d.mts +1 -1
- package/dist/components/json-tree-view/index.mjs +1 -1
- package/dist/components/listbox/index.d.mts +1 -1
- package/dist/components/listbox/index.mjs +1 -1
- package/dist/components/media-player/index.mjs +1 -1
- package/dist/components/menu/index.d.mts +1 -1
- package/dist/components/menu/index.mjs +1 -1
- package/dist/components/number-input/index.d.mts +1 -1
- package/dist/components/number-input/index.mjs +1 -1
- package/dist/components/order-list/index.mjs +1 -1
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/password-input/index.d.mts +1 -1
- package/dist/components/password-input/index.mjs +1 -1
- package/dist/components/popover/index.d.mts +1 -1
- package/dist/components/popover/index.mjs +1 -1
- package/dist/components/progress/index.d.mts +1 -1
- package/dist/components/progress/index.mjs +1 -1
- package/dist/components/rating-group/index.d.mts +1 -1
- package/dist/components/rating-group/index.mjs +1 -1
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/split-button/index.mjs +1 -1
- package/dist/components/steps/index.d.mts +1 -1
- package/dist/components/steps/index.mjs +1 -1
- package/dist/components/swap/index.d.mts +1 -1
- package/dist/components/swap/index.mjs +1 -1
- package/dist/components/table/index.d.mts +1 -1
- package/dist/components/table/index.mjs +1 -1
- package/dist/components/tag/index.d.mts +2 -0
- package/dist/components/tag/index.mjs +2 -0
- package/dist/components/tags-input/index.d.mts +1 -1
- package/dist/components/tags-input/index.mjs +1 -1
- package/dist/components/toast/index.d.mts +1 -1
- package/dist/components/toast/index.mjs +1 -1
- package/dist/components/toggle-group/index.d.mts +1 -1
- package/dist/components/toggle-group/index.mjs +1 -1
- package/dist/components/transfer/index.mjs +1 -1
- package/dist/components/tree-select/index.mjs +1 -1
- package/dist/components/tree-view/index.d.mts +1 -1
- package/dist/components/tree-view/index.mjs +1 -1
- package/dist/{dynamic-input-5H3wZSDs.mjs → dynamic-input-BDF0xRDd.mjs} +1 -1
- package/dist/{icon-lWVQxDG6.mjs → icon-C6ohnKuW.mjs} +4 -3
- package/dist/{image-ojKJgHcu.mjs → image-BCYdfhgr.mjs} +1 -1
- package/dist/{index-BfpbvgWG.d.mts → index-BDEuWWx7.d.mts} +1 -1
- package/dist/index-BEZCr62O.d.mts +34 -0
- package/dist/{index-Cbc4doAM.d.mts → index-BpC1s3zv.d.mts} +6 -10
- package/dist/{index-CGKWHB6A.d.mts → index-C4FVU8_3.d.mts} +1 -1
- package/dist/{index-DXXhfdQC.d.mts → index-CA0W58ZE.d.mts} +2 -0
- package/dist/{index-C785xRlX.d.mts → index-CFxAJ3UH.d.mts} +1 -1
- package/dist/index-DQL1l90b.d.mts +42 -0
- package/dist/{index-DXw6GBt8.d.mts → index-DTYHFIbh.d.mts} +1 -1
- package/dist/index-DkvQPyaW.d.mts +33 -0
- package/dist/{index-550dAp3p.d.mts → index-M2f9hz3z.d.mts} +1 -1
- package/dist/{index-COWyuYkn.d.mts → index-fIWQxtE9.d.mts} +1 -1
- package/dist/index.d.mts +12 -11
- package/dist/index.mjs +23 -22
- package/dist/{media-player-CfMaLa8v.mjs → media-player-085Q_gL8.mjs} +2 -2
- package/dist/{order-list-06iEy0em.mjs → order-list-DtAaQ6VS.mjs} +22 -1
- package/dist/{select-E3cvud0r.mjs → select-CqOZTmfR.mjs} +2 -2
- package/dist/{split-button-BIkQu0B7.mjs → split-button-18nv8J3q.mjs} +1 -1
- package/dist/{table-847YLjld.mjs → table-LfPEezF-.mjs} +6 -4
- package/dist/tag-S2DR-cEP.mjs +122 -0
- package/dist/{transfer-D4UANNwH.mjs → transfer-kGHh9bJH.mjs} +1 -1
- package/dist/{tree-select-CyjhG4ZB.mjs → tree-select-BRQjFrHA.mjs} +1 -1
- package/package.json +2 -2
- package/dist/Pagination-OpR284GX.mjs +0 -180
- package/dist/Progress-ZSXSq5na.mjs +0 -115
- package/dist/calendar-D251DqRb.mjs +0 -469
- package/dist/index-CMVb7mmq.d.mts +0 -1813
- package/dist/index-CuonhYXR.d.mts +0 -21
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as SelectRoot, t as Select$2 } from "./Select-
|
|
1
|
+
import { n as SelectRoot, t as Select$2 } from "./Select-5AJHEmMi.mjs";
|
|
2
2
|
import { Select } from "@ark-ui/svelte/select";
|
|
3
3
|
import { HTMLAttributes } from "svelte/elements";
|
|
4
4
|
//#region src/components/select/native-props.d.ts
|
|
@@ -50,6 +50,8 @@ interface DataTableProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
50
50
|
/** Keep the (optional) footer row pinned to the viewport bottom. */
|
|
51
51
|
stickyFooter?: boolean;
|
|
52
52
|
initialSorting?: SortingState;
|
|
53
|
+
/** Band every other body row so wide measures keep the eye on line. */
|
|
54
|
+
striped?: boolean;
|
|
53
55
|
globalFilterPlaceholder?: string;
|
|
54
56
|
emptyText?: string;
|
|
55
57
|
/** Allow dragging header cells onto each other to reorder columns and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TreeViewBranchIndicator, n as TreeView$2, r as TreeViewRoot, t as TreeViewNodeCheckbox } from "./TreeViewNodeCheckbox-
|
|
1
|
+
import { i as TreeViewBranchIndicator, n as TreeView$2, r as TreeViewRoot, t as TreeViewNodeCheckbox } from "./TreeViewNodeCheckbox-DGfG5yIl.mjs";
|
|
2
2
|
import { TreeNode } from "@ark-ui/svelte/collection";
|
|
3
3
|
import { TreeView, TreeViewRootProps } from "@ark-ui/svelte/tree-view";
|
|
4
4
|
//#region src/components/tree-view/props.d.ts
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Component, Snippet } from "svelte";
|
|
2
|
+
import { FieldApi, FormApi, SvelteFormApi, createField, createField as useField, createForm, createForm as useForm } from "@tanstack/svelte-form";
|
|
3
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
4
|
+
//#region src/components/form/context.d.ts
|
|
5
|
+
/** The seam this family passes the engine through — the members the
|
|
6
|
+
* components drive, with the engine's field-name generics opened to
|
|
7
|
+
* `any`. The engine ships no "any form" alias: its loosest, `FormLikeAPI`,
|
|
8
|
+
* still pins names to `string`, which a concrete form's literal names
|
|
9
|
+
* cannot satisfy. */
|
|
10
|
+
interface AnyFormApi {
|
|
11
|
+
handleSubmit(): Promise<unknown>;
|
|
12
|
+
setFieldMeta(field: any, updater: (prev: any) => any): void;
|
|
13
|
+
Field: Component;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/form/props.d.ts
|
|
17
|
+
interface FormProps extends HTMLAttributes<HTMLFormElement> {
|
|
18
|
+
form: AnyFormApi;
|
|
19
|
+
children?: Snippet;
|
|
20
|
+
}
|
|
21
|
+
interface FormFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
22
|
+
form?: AnyFormApi;
|
|
23
|
+
name: string;
|
|
24
|
+
label?: string;
|
|
25
|
+
hint?: string;
|
|
26
|
+
required?: boolean;
|
|
27
|
+
invalid?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
children?: Snippet<[any]>;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/form/index.d.ts
|
|
33
|
+
/** The engine owns the values and the validation; these two are the
|
|
34
|
+
* assembly — one grid, one error routing. */
|
|
35
|
+
declare const Form: import("svelte").Component<FormProps, {}, ""> & {
|
|
36
|
+
Root: import("svelte").Component<FormProps, {}, "">;
|
|
37
|
+
};
|
|
38
|
+
declare const FormField: import("svelte").Component<FormFieldProps, {}, ""> & {
|
|
39
|
+
Root: import("svelte").Component<FormFieldProps, {}, "">;
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { SvelteFormApi as a, useField as c, FormProps as d, AnyFormApi as f, FormField as i, useForm as l, Form as n, createField as o, FormApi as r, createForm as s, FieldApi as t, FormFieldProps as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ListboxRoot, t as Listbox$2 } from "./Listbox-
|
|
1
|
+
import { n as ListboxRoot, t as Listbox$2 } from "./Listbox-gAL5Q59b.mjs";
|
|
2
2
|
import { CollectionItem, Listbox, ListboxRootProps } from "@ark-ui/svelte/listbox";
|
|
3
3
|
//#region src/components/listbox/props.d.ts
|
|
4
4
|
type ListboxRootProps$1 = ListboxRootProps<CollectionItem> & {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Snippet } from "svelte";
|
|
2
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
//#region src/components/tag/props.d.ts
|
|
4
|
+
interface TagProps extends HTMLAttributes<HTMLElement> {
|
|
5
|
+
/** The pigment the tag is inked with; ink is the solemn default,
|
|
6
|
+
* and the fixed pigments speak for their meaning. */
|
|
7
|
+
tone?: "ink" | "primary" | "success" | "warning" | "danger" | "info";
|
|
8
|
+
/** How the tag rests: a solid fill, an outline shell, a subtle
|
|
9
|
+
* wash. The pressed state always reads as solid. */
|
|
10
|
+
variant?: "solid" | "outline" | "subtle";
|
|
11
|
+
/** Render the tag as a pressed button the consumer can toggle. */
|
|
12
|
+
checkable?: boolean;
|
|
13
|
+
/** The pressed state held from outside; omit it and the tag keeps
|
|
14
|
+
* its own state from `defaultValue`. */
|
|
15
|
+
checked?: boolean;
|
|
16
|
+
defaultValue?: boolean;
|
|
17
|
+
/** Render the quiet removal seal. */
|
|
18
|
+
closable?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
onClose?: (event: MouseEvent) => void;
|
|
21
|
+
children?: Snippet;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/tag/index.d.ts
|
|
25
|
+
/** A small named seal for filtering and cataloguing. The resting shape
|
|
26
|
+
* is a span; `checkable` raises it to a pressed button, and `closable`
|
|
27
|
+
* hangs the removal seal inside — dismissal stays the consumer's state,
|
|
28
|
+
* the way the banner's does. */
|
|
29
|
+
declare const Tag: import("svelte").Component<TagProps, {}, "checked"> & {
|
|
30
|
+
Root: import("svelte").Component<TagProps, {}, "checked">;
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { TagProps as n, Tag as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ImagePreview, t as ImageViewer$1 } from "./ImageViewer-
|
|
1
|
+
import { n as ImagePreview, t as ImageViewer$1 } from "./ImageViewer-8tDJvkkb.mjs";
|
|
2
2
|
import { Dialog } from "./components/dialog/index.mjs";
|
|
3
3
|
import { Snippet } from "svelte";
|
|
4
4
|
import { HTMLAttributes } from "svelte/elements";
|
|
@@ -3,7 +3,7 @@ import { HTMLAttributes } from "svelte/elements";
|
|
|
3
3
|
interface ChipProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
4
|
value: number;
|
|
5
5
|
max?: number;
|
|
6
|
-
tone?: "ink" | "
|
|
6
|
+
tone?: "ink" | "primary" | "success" | "warning" | "danger" | "info";
|
|
7
7
|
variant?: "solid" | "subtle" | "outline";
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
package/dist/index.d.mts
CHANGED
|
@@ -38,15 +38,15 @@ import { a as BreadcrumbListProps, i as BreadcrumbLinkProps, n as BreadcrumbCurr
|
|
|
38
38
|
import { Browser } from "./components/browser/index.mjs";
|
|
39
39
|
import { n as ButtonGroupProps, t as ButtonGroup } from "./index-evrdvWRI.mjs";
|
|
40
40
|
import { n as ButtonProps, t as Button } from "./index-DCpx_Rui.mjs";
|
|
41
|
-
import { n as CalendarProps, t as Calendar } from "./index-
|
|
41
|
+
import { n as CalendarProps, t as Calendar } from "./index-BEZCr62O.mjs";
|
|
42
42
|
import { a as CardTitleProps, i as CardProps, n as CardDescriptionProps, r as CardPartProps, t as Card } from "./index-BHlsL8ta.mjs";
|
|
43
43
|
import { Carousel } from "./components/carousel/index.mjs";
|
|
44
44
|
import { n as CascadeSelectNode, r as CascadeSelectProps, t as CascadeSelect } from "./index-LXovbafa.mjs";
|
|
45
45
|
import { n as CheckboxGroupProps, r as CheckboxOption, t as CheckboxGroup } from "./index-znAFQEmQ.mjs";
|
|
46
46
|
import { Checkbox } from "./components/checkbox/index.mjs";
|
|
47
|
-
import { n as ChipProps, t as Chip } from "./index-
|
|
47
|
+
import { n as ChipProps, t as Chip } from "./index-fIWQxtE9.mjs";
|
|
48
48
|
import { ClientOnly, ClientOnlyProps } from "./components/client-only/index.mjs";
|
|
49
|
-
import { n as ClipboardRootProps, t as Clipboard } from "./index-
|
|
49
|
+
import { n as ClipboardRootProps, t as Clipboard } from "./index-BDEuWWx7.mjs";
|
|
50
50
|
import { Collapsible } from "./components/collapsible/index.mjs";
|
|
51
51
|
import { CollectionItem, CollectionOptions, FilePathTreeNode, FlatTreeNode, GridCollection, GridCollectionOptions, ListCollection, TreeCollection, TreeCollectionOptions, TreeNode, UseAsyncListProps, UseAsyncListReturn, UseListCollectionProps, UseListCollectionReturn, UseListSelectionProps, UseListSelectionReturn, createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useAsyncList, useListCollection, useListSelection } from "./components/collection/index.mjs";
|
|
52
52
|
import { ColorPicker } from "./components/color-picker/index.mjs";
|
|
@@ -59,7 +59,7 @@ import { n as DataViewProps, t as DataView } from "./index-3TmqYBnT.mjs";
|
|
|
59
59
|
import { DateInput } from "./components/date-input/index.mjs";
|
|
60
60
|
import { DatePicker } from "./components/date-picker/index.mjs";
|
|
61
61
|
import { n as DeferredContentProps, t as DeferredContent } from "./index-Cbd88ftD.mjs";
|
|
62
|
-
import { n as DescriptionsPartProps, r as DescriptionsRootProps, t as Descriptions } from "./index-
|
|
62
|
+
import { n as DescriptionsPartProps, r as DescriptionsRootProps, t as Descriptions } from "./index-BpC1s3zv.mjs";
|
|
63
63
|
import { Dialog, DialogOpenChangeDetails } from "./components/dialog/index.mjs";
|
|
64
64
|
import { n as DockProps, t as Dock } from "./index-CnrohEXe.mjs";
|
|
65
65
|
import { DownloadTrigger, DownloadTriggerBaseProps, DownloadTriggerProps, DownloadableData, UseDownloadProps, UseDownloadReturn, useDownload } from "./components/download-trigger/index.mjs";
|
|
@@ -74,7 +74,7 @@ import { FileUpload } from "./components/file-upload/index.mjs";
|
|
|
74
74
|
import { a as FloatButtonPlacement, i as FloatButtonItemProps, n as FLOAT_BUTTON_KEY, o as FloatButtonProps, r as FloatButtonContext, s as FloatButtonTriggerProps, t as FloatButton } from "./index-D8F1dVDW.mjs";
|
|
75
75
|
import { FloatingPanel } from "./components/floating-panel/index.mjs";
|
|
76
76
|
import { FocusTrap, FocusTrapBaseProps, FocusTrapProps } from "./components/focus-trap/index.mjs";
|
|
77
|
-
import { a as
|
|
77
|
+
import { a as SvelteFormApi, c as useField, d as FormProps, f as AnyFormApi, i as FormField, l as useForm, n as Form, o as createField, r as FormApi, s as createForm, t as FieldApi, u as FormFieldProps } from "./index-DQL1l90b.mjs";
|
|
78
78
|
import { Format } from "./components/format/index.mjs";
|
|
79
79
|
import { Frame } from "./components/frame/index.mjs";
|
|
80
80
|
import { n as GridProps, t as Grid } from "./index-CyVykdGO.mjs";
|
|
@@ -82,7 +82,7 @@ import { Highlight } from "./components/highlight/index.mjs";
|
|
|
82
82
|
import { HoverCard } from "./components/hover-card/index.mjs";
|
|
83
83
|
import { n as IconProps, t as Icon } from "./index-DEWaAoNb.mjs";
|
|
84
84
|
import { ImageCropper } from "./components/image-cropper/index.mjs";
|
|
85
|
-
import { n as ImageViewerPreviewProps, r as ImageViewerProps, t as ImageViewer } from "./index-
|
|
85
|
+
import { n as ImageViewerPreviewProps, r as ImageViewerProps, t as ImageViewer } from "./index-M2f9hz3z.mjs";
|
|
86
86
|
import { n as ImageProps, t as Image } from "./index-C-sa4baY.mjs";
|
|
87
87
|
import { n as InputGroupAddonProps, r as InputGroupProps, t as InputGroup } from "./index-DKfQGayE.mjs";
|
|
88
88
|
import { n as InputProps, t as Input } from "./index-Dq4bm9bV.mjs";
|
|
@@ -91,7 +91,7 @@ import { n as KbdProps, t as Kbd } from "./index-C6UrUbj8.mjs";
|
|
|
91
91
|
import { a as LayoutSiderProps, i as LayoutRegionProps, n as LayoutContext, r as LayoutProps, t as Layout } from "./index-BahdqXg4.mjs";
|
|
92
92
|
import { n as LinkProps, t as Link } from "./index-CvDp7tiS.mjs";
|
|
93
93
|
import { a as ListLeadingProps, i as ListItemProps, n as ListActionsProps, o as ListProps, r as ListContentProps, t as List } from "./index-C0aalhwd.mjs";
|
|
94
|
-
import { n as ListboxRootProps, t as Listbox } from "./index-
|
|
94
|
+
import { n as ListboxRootProps, t as Listbox } from "./index-DTYHFIbh.mjs";
|
|
95
95
|
import { Marquee } from "./components/marquee/index.mjs";
|
|
96
96
|
import { n as MasonryProps, t as Masonry } from "./index-DC6AI8rV.mjs";
|
|
97
97
|
import { a as MediaTextTrackOption, i as MediaSourceOption, n as Video, r as MediaPlayerProps, t as Audio } from "./index-9GiGGnGa.mjs";
|
|
@@ -116,7 +116,7 @@ import { RatingGroup } from "./components/rating-group/index.mjs";
|
|
|
116
116
|
import { Result } from "./components/result/index.mjs";
|
|
117
117
|
import { ScrollArea } from "./components/scroll-area/index.mjs";
|
|
118
118
|
import { SegmentGroup } from "./components/segment-group/index.mjs";
|
|
119
|
-
import { i as NativeSelectProps, n as Select, r as NativeSelectOption, t as NativeSelect } from "./index-
|
|
119
|
+
import { i as NativeSelectProps, n as Select, r as NativeSelectOption, t as NativeSelect } from "./index-C4FVU8_3.mjs";
|
|
120
120
|
import { n as SeparatorProps, t as Separator } from "./index-D61_Lx9o.mjs";
|
|
121
121
|
import { SignaturePad } from "./components/signature-pad/index.mjs";
|
|
122
122
|
import { n as SkeletonProps, t as Skeleton } from "./index-C0b8N_Aa.mjs";
|
|
@@ -130,8 +130,9 @@ import { n as StatDeltaProps, r as StatPartProps, t as Stat } from "./index-CRdy
|
|
|
130
130
|
import { Steps } from "./components/steps/index.mjs";
|
|
131
131
|
import { Swap } from "./components/swap/index.mjs";
|
|
132
132
|
import { Switch } from "./components/switch/index.mjs";
|
|
133
|
-
import { a as createColumnHelper, i as SortingState, n as DataTable, o as DataTableProps, r as FlexRender, t as ColumnDef } from "./index-
|
|
133
|
+
import { a as createColumnHelper, i as SortingState, n as DataTable, o as DataTableProps, r as FlexRender, t as ColumnDef } from "./index-CA0W58ZE.mjs";
|
|
134
134
|
import { Tabs } from "./components/tabs/index.mjs";
|
|
135
|
+
import { n as TagProps, t as Tag } from "./index-DkvQPyaW.mjs";
|
|
135
136
|
import { TagsInput } from "./components/tags-input/index.mjs";
|
|
136
137
|
import { n as TerminalProps, t as Terminal } from "./index-C5hCBtt4.mjs";
|
|
137
138
|
import { n as TextareaProps, t as Textarea } from "./index-D2B6EH5P.mjs";
|
|
@@ -146,10 +147,10 @@ import { Tooltip } from "./components/tooltip/index.mjs";
|
|
|
146
147
|
import { Tour, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails } from "./components/tour/index.mjs";
|
|
147
148
|
import { n as TransferItem, r as TransferProps, t as Transfer } from "./index-DWlpILHb.mjs";
|
|
148
149
|
import { n as TreeSelectNode, r as TreeSelectProps, t as TreeSelect } from "./index-DAnDXxRZ.mjs";
|
|
149
|
-
import { n as TreeViewRootProps, t as TreeView } from "./index-
|
|
150
|
+
import { n as TreeViewRootProps, t as TreeView } from "./index-CFxAJ3UH.mjs";
|
|
150
151
|
import { n as TypographyPartProps, t as Typography } from "./index-CZ0P3C6E.mjs";
|
|
151
152
|
import { n as UserProps, t as User } from "./index-CYtinraa.mjs";
|
|
152
153
|
import { n as VirtualListProps, t as VirtualList } from "./index-BKZC0MtK.mjs";
|
|
153
154
|
import { n as WatermarkProps, t as Watermark } from "./index-oF_zauHL.mjs";
|
|
154
155
|
export * from "@bysages/core";
|
|
155
|
-
export { Accordion, AiAction as Action, AiAction, type ActionProps, Affix, type AffixProps, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Ai$1 as AiConversation, AiLoader, AiMessage, AiMessage as Message, type AiPartProps, AiPromptInput, AiPromptInput as PromptInput, AiReasoning, AiReasoning as Reasoning, AiResponse, AiResponse as Response, AiSource, AiSource as Source, AiSources, AiSources as Sources, AiSuggestion, AiSuggestion as Suggestion, AiTool, AiTool as Tool, Alert, type AlertPartProps, type AlertProps, type AlertStatus, AngleSlider, type AnyFormApi, AspectRatio, type AspectRatioProps, type AttachmentProps, type AttachmentStatus, type AttachmentsProps, Audio, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, BackTop, type BackTopProps, Badge, type BadgeProps, Banner, type BannerCloseProps, type BannerPartProps, type BannerProps, type BannerStatus, Bento, type BentoProps, BlockUI, type BlockUIProps, Breadcrumb, type BreadcrumbCurrentProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbProps, type BreadcrumbSeparatorProps, Browser, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarProps, Card, type CardDescriptionProps, type CardPartProps, type CardProps, type CardTitleProps, Carousel, CascadeSelect, type CascadeSelectNode, type CascadeSelectProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, Chip, type ChipProps, ClientOnly, type ClientOnlyProps, Clipboard, type ClipboardRootProps, Collapsible, type CollectionItem, type CollectionOptions, ColorPicker, type ColumnDef, Combobox, Command, type CommandEntry, type CommandProps, Comment, type CommentProps, type ConfigContext, type ConfigDensity, ConfigProvider, type ConfigProviderProps, Container, type ContainerProps, type CreateToasterReturn, DataTable, type DataTableProps, type DataUIPart, DataView, type DataViewProps, DateInput, DatePicker, DeferredContent, type DeferredContentProps, Descriptions, type DescriptionsPartProps, type DescriptionsRootProps, Dialog, type DialogOpenChangeDetails, Dock, type DockProps, DownloadTrigger, type DownloadTriggerBaseProps, type DownloadTriggerProps, type DownloadableData, Drawer, DynamicInput, type DynamicInputProps, Editable, Ellipsis, type EllipsisProps, Empty, type EmptyDescriptionProps, type EmptyPartProps, type EmptyProps, type EmptyTitleProps, FLOAT_BUTTON_KEY, Field, type FieldApi, Fieldset, type FilePathTreeNode, type FileUIPart, FileUpload, type FlatTreeNode, FlexRender, FloatButton, type FloatButtonContext, type FloatButtonItemProps, type FloatButtonPlacement, type FloatButtonProps, type FloatButtonTriggerProps, FloatingPanel, FocusTrap, type FocusTrapBaseProps, type FocusTrapProps, Form, type FormApi, FormField, type FormFieldProps, type FormProps, Format, Frame, Grid, type GridCollection, type GridCollectionOptions, type GridProps, Highlight, HoverCard, Icon, type IconProps, Image, ImageCropper, type ImageProps, ImageViewer, type ImageViewerPreviewProps, type ImageViewerProps, Input, InputGroup, type InputGroupAddonProps, type InputGroupProps, type InputProps, JsonTreeView, Kbd, type KbdProps, Layout, type LayoutContext, type LayoutProps, type LayoutRegionProps, type LayoutSiderProps, Link, type LinkProps, List, type ListActionsProps, type ListCollection, type ListContentProps, type ListItemProps, type ListLeadingProps, type ListProps, Listbox, type ListboxRootProps, Marquee, Masonry, type MasonryProps, type MediaPlayerProps, type MediaSourceOption, type MediaTextTrackOption, type MentionEntry, Mentions, type MentionsProps, MentionsVessel, type MentionsVesselProps, Menu, Menubar, type MenubarEntry, type MenubarGroup, type MenubarProps, type MessageProps, type MessageRole, Meter, type MeterPartProps, type MeterRootProps, NativeSelect, type NativeSelectOption, type NativeSelectProps, NavigationMenu, NumberInput, OrderList, type OrderListProps, type OrderOption, PageHeader, type PageHeaderPartProps, Pagination, PasswordInput, PinInput, Popconfirm, type PopconfirmProps, Popover, Presence, type PresenceProps, PresenceProvider, Progress, ProgressGroup, type ProgressGroupProps, type ProgressSegment, type PromptInputProps, QrCode, RadioGroup, RatingGroup, type ReasoningProps, type ReasoningUIPart, type ResponseProps, Result, ScrollArea, SegmentGroup, Select, Separator, type SeparatorProps, SignaturePad, Skeleton, type SkeletonProps, Slider, type SortingState, type SourceDocumentUIPart, type SourceProps, type SourceUrlUIPart, type SourcesProps, Spinner, type SpinnerProps, SplitButton, type SplitButtonEntry, type SplitButtonProps, Splitter, Spotlight, type SpotlightProps, Stack, type StackProps, Stat, type StatDeltaProps, type StatPartProps, type StepStartUIPart, Steps, type SuggestionProps, type SvelteFormApi, Swap, Switch, Tabs, TagsInput, Terminal, type TerminalProps, type TextUIPart, Textarea, type TextareaProps, Timeline, type TimelineContentProps, type TimelineItemProps, type TimelineMarkerProps, type TimelineProps, Timer, Toast, Toaster, Toc, Toggle, ToggleGroup, type ToolProps, type ToolStatus, type ToolUIPart, Toolbar, type ToolbarProps, Tooltip, Tour, type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, type TourStepDetails, Transfer, type TransferItem, type TransferProps, type TreeCollection, type TreeCollectionOptions, type TreeNode, TreeSelect, type TreeSelectNode, type TreeSelectProps, TreeView, type TreeViewRootProps, Typography, type TypographyPartProps, type UIMessage, type UIMessagePart, type UseAsyncListProps, type UseAsyncListReturn, type UseDownloadProps, type UseDownloadReturn, type UseListCollectionProps, type UseListCollectionReturn, type UseListSelectionProps, type UseListSelectionReturn, type UseMentionsHandlers, type UseMentionsOptions, type UsePresenceContext, type UsePresenceProps, type UsePresenceReturn, User, type UserProps, Video, VirtualList, type VirtualListProps, Watermark, type WatermarkProps, createColumnHelper, createField, createFileTreeCollection, createForm, createGridCollection, createListCollection, createToaster, createTreeCollection, formatMediaTime, splitPresenceProps, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
|
156
|
+
export { Accordion, AiAction as Action, AiAction, type ActionProps, Affix, type AffixProps, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Ai$1 as AiConversation, AiLoader, AiMessage, AiMessage as Message, type AiPartProps, AiPromptInput, AiPromptInput as PromptInput, AiReasoning, AiReasoning as Reasoning, AiResponse, AiResponse as Response, AiSource, AiSource as Source, AiSources, AiSources as Sources, AiSuggestion, AiSuggestion as Suggestion, AiTool, AiTool as Tool, Alert, type AlertPartProps, type AlertProps, type AlertStatus, AngleSlider, type AnyFormApi, AspectRatio, type AspectRatioProps, type AttachmentProps, type AttachmentStatus, type AttachmentsProps, Audio, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, BackTop, type BackTopProps, Badge, type BadgeProps, Banner, type BannerCloseProps, type BannerPartProps, type BannerProps, type BannerStatus, Bento, type BentoProps, BlockUI, type BlockUIProps, Breadcrumb, type BreadcrumbCurrentProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbProps, type BreadcrumbSeparatorProps, Browser, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarProps, Card, type CardDescriptionProps, type CardPartProps, type CardProps, type CardTitleProps, Carousel, CascadeSelect, type CascadeSelectNode, type CascadeSelectProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, Chip, type ChipProps, ClientOnly, type ClientOnlyProps, Clipboard, type ClipboardRootProps, Collapsible, type CollectionItem, type CollectionOptions, ColorPicker, type ColumnDef, Combobox, Command, type CommandEntry, type CommandProps, Comment, type CommentProps, type ConfigContext, type ConfigDensity, ConfigProvider, type ConfigProviderProps, Container, type ContainerProps, type CreateToasterReturn, DataTable, type DataTableProps, type DataUIPart, DataView, type DataViewProps, DateInput, DatePicker, DeferredContent, type DeferredContentProps, Descriptions, type DescriptionsPartProps, type DescriptionsRootProps, Dialog, type DialogOpenChangeDetails, Dock, type DockProps, DownloadTrigger, type DownloadTriggerBaseProps, type DownloadTriggerProps, type DownloadableData, Drawer, DynamicInput, type DynamicInputProps, Editable, Ellipsis, type EllipsisProps, Empty, type EmptyDescriptionProps, type EmptyPartProps, type EmptyProps, type EmptyTitleProps, FLOAT_BUTTON_KEY, Field, type FieldApi, Fieldset, type FilePathTreeNode, type FileUIPart, FileUpload, type FlatTreeNode, FlexRender, FloatButton, type FloatButtonContext, type FloatButtonItemProps, type FloatButtonPlacement, type FloatButtonProps, type FloatButtonTriggerProps, FloatingPanel, FocusTrap, type FocusTrapBaseProps, type FocusTrapProps, Form, type FormApi, FormField, type FormFieldProps, type FormProps, Format, Frame, Grid, type GridCollection, type GridCollectionOptions, type GridProps, Highlight, HoverCard, Icon, type IconProps, Image, ImageCropper, type ImageProps, ImageViewer, type ImageViewerPreviewProps, type ImageViewerProps, Input, InputGroup, type InputGroupAddonProps, type InputGroupProps, type InputProps, JsonTreeView, Kbd, type KbdProps, Layout, type LayoutContext, type LayoutProps, type LayoutRegionProps, type LayoutSiderProps, Link, type LinkProps, List, type ListActionsProps, type ListCollection, type ListContentProps, type ListItemProps, type ListLeadingProps, type ListProps, Listbox, type ListboxRootProps, Marquee, Masonry, type MasonryProps, type MediaPlayerProps, type MediaSourceOption, type MediaTextTrackOption, type MentionEntry, Mentions, type MentionsProps, MentionsVessel, type MentionsVesselProps, Menu, Menubar, type MenubarEntry, type MenubarGroup, type MenubarProps, type MessageProps, type MessageRole, Meter, type MeterPartProps, type MeterRootProps, NativeSelect, type NativeSelectOption, type NativeSelectProps, NavigationMenu, NumberInput, OrderList, type OrderListProps, type OrderOption, PageHeader, type PageHeaderPartProps, Pagination, PasswordInput, PinInput, Popconfirm, type PopconfirmProps, Popover, Presence, type PresenceProps, PresenceProvider, Progress, ProgressGroup, type ProgressGroupProps, type ProgressSegment, type PromptInputProps, QrCode, RadioGroup, RatingGroup, type ReasoningProps, type ReasoningUIPart, type ResponseProps, Result, ScrollArea, SegmentGroup, Select, Separator, type SeparatorProps, SignaturePad, Skeleton, type SkeletonProps, Slider, type SortingState, type SourceDocumentUIPart, type SourceProps, type SourceUrlUIPart, type SourcesProps, Spinner, type SpinnerProps, SplitButton, type SplitButtonEntry, type SplitButtonProps, Splitter, Spotlight, type SpotlightProps, Stack, type StackProps, Stat, type StatDeltaProps, type StatPartProps, type StepStartUIPart, Steps, type SuggestionProps, type SvelteFormApi, Swap, Switch, Tabs, Tag, type TagProps, TagsInput, Terminal, type TerminalProps, type TextUIPart, Textarea, type TextareaProps, Timeline, type TimelineContentProps, type TimelineItemProps, type TimelineMarkerProps, type TimelineProps, Timer, Toast, Toaster, Toc, Toggle, ToggleGroup, type ToolProps, type ToolStatus, type ToolUIPart, Toolbar, type ToolbarProps, Tooltip, Tour, type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, type TourStepDetails, Transfer, type TransferItem, type TransferProps, type TreeCollection, type TreeCollectionOptions, type TreeNode, TreeSelect, type TreeSelectNode, type TreeSelectProps, TreeView, type TreeViewRootProps, Typography, type TypographyPartProps, type UIMessage, type UIMessagePart, type UseAsyncListProps, type UseAsyncListReturn, type UseDownloadProps, type UseDownloadReturn, type UseListCollectionProps, type UseListCollectionReturn, type UseListSelectionProps, type UseListSelectionReturn, type UseMentionsHandlers, type UseMentionsOptions, type UsePresenceContext, type UsePresenceProps, type UsePresenceReturn, User, type UserProps, Video, VirtualList, type VirtualListProps, Watermark, type WatermarkProps, createColumnHelper, createField, createFileTreeCollection, createForm, createGridCollection, createListCollection, createToaster, createTreeCollection, formatMediaTime, splitPresenceProps, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
package/dist/index.mjs
CHANGED
|
@@ -7,34 +7,34 @@ import { Field } from "./components/field/index.mjs";
|
|
|
7
7
|
import { n as MentionsVessel, t as Mentions } from "./mentions-fRKivTvN.mjs";
|
|
8
8
|
import { t as useMentions } from "./use-mentions-DeF_38di.mjs";
|
|
9
9
|
import { n as useConfig } from "./context-Da-QMQRq.mjs";
|
|
10
|
-
import { t as AiPromptInput } from "./ai-prompt-input-
|
|
10
|
+
import { t as AiPromptInput } from "./ai-prompt-input-z0j3gpgu.mjs";
|
|
11
11
|
import { Collapsible } from "./components/collapsible/index.mjs";
|
|
12
|
-
import { t as AiReasoning } from "./ai-reasoning-
|
|
13
|
-
import { t as AiResponse } from "./ai-response-
|
|
12
|
+
import { t as AiReasoning } from "./ai-reasoning-C2Ffu52i.mjs";
|
|
13
|
+
import { t as AiResponse } from "./ai-response-Bczv0TaC.mjs";
|
|
14
14
|
import { n as AiSources, t as AiSource } from "./ai-source-2eYEEt6r.mjs";
|
|
15
15
|
import { t as AiSuggestion } from "./ai-suggestion-BtlG02Sz.mjs";
|
|
16
|
-
import { t as AiTool } from "./ai-tool-
|
|
16
|
+
import { t as AiTool } from "./ai-tool-DuhNqTWQ.mjs";
|
|
17
17
|
import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "./AiLoader-C7LALoXc.mjs";
|
|
18
18
|
import { Ai } from "./components/ai/index.mjs";
|
|
19
|
-
import { n as Attachments, t as Attachment } from "./ai-attachments-
|
|
20
|
-
import { t as Alert } from "./alert-
|
|
19
|
+
import { n as Attachments, t as Attachment } from "./ai-attachments-nFUAAXoM.mjs";
|
|
20
|
+
import { t as Alert } from "./alert-Cji6_TKm.mjs";
|
|
21
21
|
import { t as AutoComplete } from "./autocomplete-b65dChlK.mjs";
|
|
22
22
|
import { AngleSlider } from "./components/angle-slider/index.mjs";
|
|
23
23
|
import { t as AspectRatio } from "./aspect-ratio-CIjPsfel.mjs";
|
|
24
24
|
import { Avatar } from "./components/avatar/index.mjs";
|
|
25
25
|
import { t as AvatarGroup } from "./avatar-group-BL7PyLo1.mjs";
|
|
26
|
-
import { t as BackTop } from "./back-top-
|
|
26
|
+
import { t as BackTop } from "./back-top-WBPZ45WG.mjs";
|
|
27
27
|
import { t as Badge } from "./badge-N_KoQG_c.mjs";
|
|
28
28
|
import { t as BlockUI } from "./block-ui-CHajwHI5.mjs";
|
|
29
29
|
import { t as Breadcrumb } from "./breadcrumb-g68_HJ2W.mjs";
|
|
30
30
|
import { t as ButtonGroup } from "./button-group-D9mgSVlR.mjs";
|
|
31
|
-
import { t as Banner } from "./banner-
|
|
32
|
-
import {
|
|
31
|
+
import { t as Banner } from "./banner-vdEHwWWw.mjs";
|
|
32
|
+
import { Calendar } from "./components/calendar/index.mjs";
|
|
33
33
|
import { t as Card } from "./card-DPVT_VaK.mjs";
|
|
34
|
-
import { t as CascadeSelect } from "./cascade-select-
|
|
34
|
+
import { t as CascadeSelect } from "./cascade-select-CWjvNB4G.mjs";
|
|
35
35
|
import { Carousel } from "./components/carousel/index.mjs";
|
|
36
36
|
import { Checkbox } from "./components/checkbox/index.mjs";
|
|
37
|
-
import { t as CheckboxGroup } from "./checkbox-group-
|
|
37
|
+
import { t as CheckboxGroup } from "./checkbox-group-JVSnrwhR.mjs";
|
|
38
38
|
import { t as Chip } from "./chip-DputaHcF.mjs";
|
|
39
39
|
import { ClientOnly } from "./components/client-only/index.mjs";
|
|
40
40
|
import { Clipboard } from "./components/clipboard/index.mjs";
|
|
@@ -49,12 +49,12 @@ import { t as DataView } from "./data-view-Ls3J45mK.mjs";
|
|
|
49
49
|
import { DateInput } from "./components/date-input/index.mjs";
|
|
50
50
|
import { t as DeferredContent } from "./deferred-content-SoEpwCs-.mjs";
|
|
51
51
|
import { DatePicker } from "./components/date-picker/index.mjs";
|
|
52
|
-
import {
|
|
52
|
+
import { Descriptions } from "./components/descriptions/index.mjs";
|
|
53
53
|
import { Dialog } from "./components/dialog/index.mjs";
|
|
54
54
|
import { DownloadTrigger, useDownload } from "./components/download-trigger/index.mjs";
|
|
55
55
|
import { Drawer } from "./components/drawer/index.mjs";
|
|
56
56
|
import { Input } from "./components/input/index.mjs";
|
|
57
|
-
import { t as DynamicInput } from "./dynamic-input-
|
|
57
|
+
import { t as DynamicInput } from "./dynamic-input-BDF0xRDd.mjs";
|
|
58
58
|
import { Editable } from "./components/editable/index.mjs";
|
|
59
59
|
import { t as Ellipsis } from "./ellipsis-ChktH2CQ.mjs";
|
|
60
60
|
import { t as Empty } from "./empty-CINZ_PLj.mjs";
|
|
@@ -70,7 +70,7 @@ import { t as Grid } from "./grid-CinYh-s4.mjs";
|
|
|
70
70
|
import { Highlight } from "./components/highlight/index.mjs";
|
|
71
71
|
import { HoverCard } from "./components/hover-card/index.mjs";
|
|
72
72
|
import { t as Icon } from "./icon-BF1JO1ek.mjs";
|
|
73
|
-
import { t as Image } from "./image-
|
|
73
|
+
import { t as Image } from "./image-BCYdfhgr.mjs";
|
|
74
74
|
import { ImageCropper } from "./components/image-cropper/index.mjs";
|
|
75
75
|
import { ImageViewer } from "./components/image-viewer/index.mjs";
|
|
76
76
|
import { t as InputGroup } from "./input-group-B-F5Gpvl.mjs";
|
|
@@ -86,7 +86,7 @@ import { Menu } from "./components/menu/index.mjs";
|
|
|
86
86
|
import { Menubar } from "./components/menubar/index.mjs";
|
|
87
87
|
import { t as Meter } from "./meter-BUcdK4Ln.mjs";
|
|
88
88
|
import { NavigationMenu } from "./components/navigation-menu/index.mjs";
|
|
89
|
-
import { t as OrderList } from "./order-list-
|
|
89
|
+
import { t as OrderList } from "./order-list-DtAaQ6VS.mjs";
|
|
90
90
|
import { NumberInput } from "./components/number-input/index.mjs";
|
|
91
91
|
import { Pagination } from "./components/pagination/index.mjs";
|
|
92
92
|
import { PasswordInput } from "./components/password-input/index.mjs";
|
|
@@ -101,12 +101,12 @@ import { RadioGroup } from "./components/radio-group/index.mjs";
|
|
|
101
101
|
import { RatingGroup } from "./components/rating-group/index.mjs";
|
|
102
102
|
import { ScrollArea } from "./components/scroll-area/index.mjs";
|
|
103
103
|
import { SegmentGroup } from "./components/segment-group/index.mjs";
|
|
104
|
-
import { n as Select, t as NativeSelect } from "./select-
|
|
104
|
+
import { n as Select, t as NativeSelect } from "./select-CqOZTmfR.mjs";
|
|
105
105
|
import { t as Separator } from "./separator-I0MEoHjO.mjs";
|
|
106
106
|
import { SignaturePad } from "./components/signature-pad/index.mjs";
|
|
107
107
|
import { t as Skeleton } from "./skeleton-BHn0Emeh.mjs";
|
|
108
108
|
import { Slider } from "./components/slider/index.mjs";
|
|
109
|
-
import { t as SplitButton } from "./split-button-
|
|
109
|
+
import { t as SplitButton } from "./split-button-18nv8J3q.mjs";
|
|
110
110
|
import { Splitter } from "./components/splitter/index.mjs";
|
|
111
111
|
import { t as Stack } from "./stack-uMjCwn_2.mjs";
|
|
112
112
|
import { t as PageHeader } from "./page-header-ByucbXX7.mjs";
|
|
@@ -115,7 +115,8 @@ import { t as Stat } from "./stat-DQ-5P4Gr.mjs";
|
|
|
115
115
|
import { Steps } from "./components/steps/index.mjs";
|
|
116
116
|
import { Swap } from "./components/swap/index.mjs";
|
|
117
117
|
import { Switch } from "./components/switch/index.mjs";
|
|
118
|
-
import { n as FlexRender, r as createColumnHelper, t as DataTable } from "./table-
|
|
118
|
+
import { n as FlexRender, r as createColumnHelper, t as DataTable } from "./table-LfPEezF-.mjs";
|
|
119
|
+
import { t as Tag } from "./tag-S2DR-cEP.mjs";
|
|
119
120
|
import { Tabs } from "./components/tabs/index.mjs";
|
|
120
121
|
import { t as Terminal } from "./terminal-DQAU6DW7.mjs";
|
|
121
122
|
import { TagsInput } from "./components/tags-input/index.mjs";
|
|
@@ -127,12 +128,12 @@ import { Toc } from "./components/toc/index.mjs";
|
|
|
127
128
|
import { Toggle } from "./components/toggle/index.mjs";
|
|
128
129
|
import { t as Toolbar } from "./toolbar-BTM5B0Nt.mjs";
|
|
129
130
|
import { t as Typography } from "./typography-DUWj7wex.mjs";
|
|
130
|
-
import { t as Transfer } from "./transfer-
|
|
131
|
+
import { t as Transfer } from "./transfer-kGHh9bJH.mjs";
|
|
131
132
|
import { ToggleGroup } from "./components/toggle-group/index.mjs";
|
|
132
133
|
import { Tooltip } from "./components/tooltip/index.mjs";
|
|
133
134
|
import { t as useTour } from "./use-tour-BfS5dCZb.mjs";
|
|
134
135
|
import { Tour } from "./components/tour/index.mjs";
|
|
135
|
-
import { t as TreeSelect } from "./tree-select-
|
|
136
|
+
import { t as TreeSelect } from "./tree-select-BRQjFrHA.mjs";
|
|
136
137
|
import { TreeView } from "./components/tree-view/index.mjs";
|
|
137
138
|
import { t as User } from "./user--GneY3yN.mjs";
|
|
138
139
|
import { t as VirtualList } from "./virtual-list-h85_wJw5.mjs";
|
|
@@ -142,7 +143,7 @@ import { t as Dock } from "./dock-BFyqUHAo.mjs";
|
|
|
142
143
|
import { t as Browser } from "./browser-KnMt333t.mjs";
|
|
143
144
|
import { t as Bento } from "./bento-ChsvZJOE.mjs";
|
|
144
145
|
import { t as Result } from "./result-CwLNxqk-.mjs";
|
|
145
|
-
import { n as Video, t as Audio } from "./media-player-
|
|
146
|
+
import { n as Video, t as Audio } from "./media-player-085Q_gL8.mjs";
|
|
146
147
|
import { t as formatMediaTime } from "./use-media-controls-BYYG0DgO.mjs";
|
|
147
148
|
export * from "@bysages/core";
|
|
148
|
-
export { Accordion, AiAction as Action, AiAction, Affix, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Ai$1 as AiConversation, AiLoader, AiMessage, AiMessage as Message, AiPromptInput, AiPromptInput as PromptInput, AiReasoning, AiReasoning as Reasoning, AiResponse, AiResponse as Response, AiSource, AiSource as Source, AiSources, AiSources as Sources, AiSuggestion, AiSuggestion as Suggestion, AiTool, AiTool as Tool, Alert, AngleSlider, AspectRatio, Audio, AutoComplete, Avatar, AvatarGroup, BackTop, Badge, Banner, Bento, BlockUI, Breadcrumb, Browser, Button, ButtonGroup, Calendar, Card, Carousel, CascadeSelect, Checkbox, CheckboxGroup, Chip, ClientOnly, Clipboard, Collapsible, ColorPicker, Combobox, Command, Comment, ConfigProvider, Container, DataTable, DataView, DateInput, DatePicker, DeferredContent, Descriptions, Dialog, Dock, DownloadTrigger, Drawer, DynamicInput, Editable, Ellipsis, Empty, FLOAT_BUTTON_KEY, Field, Fieldset, FileUpload, FlexRender, FloatButton, FloatingPanel, FocusTrap, Form, FormField, Format, Frame, Grid, Highlight, HoverCard, Icon, Image, ImageCropper, ImageViewer, Input, InputGroup, JsonTreeView, Kbd, Layout, Link, List, Listbox, Marquee, Masonry, Mentions, MentionsVessel, Menu, Menubar, Meter, NativeSelect, NavigationMenu, NumberInput, OrderList, PageHeader, Pagination, PasswordInput, PinInput, Popconfirm, Popover, Presence, PresenceProvider, Progress, ProgressGroup, QrCode, RadioGroup, RatingGroup, Result, ScrollArea, SegmentGroup, Select, Separator, SignaturePad, Skeleton, Slider, Spinner, SplitButton, Splitter, Spotlight, Stack, Stat, Steps, Swap, Switch, Tabs, TagsInput, Terminal, Textarea, Timeline, Timer, Toast, Toaster, Toc, Toggle, ToggleGroup, Toolbar, Tooltip, Tour, Transfer, TreeSelect, TreeView, Typography, User, Video, VirtualList, Watermark, createColumnHelper, createField, createFileTreeCollection, createForm, createGridCollection, createListCollection, createToaster, createTreeCollection, formatMediaTime, splitPresenceProps, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
|
149
|
+
export { Accordion, AiAction as Action, AiAction, Affix, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Ai$1 as AiConversation, AiLoader, AiMessage, AiMessage as Message, AiPromptInput, AiPromptInput as PromptInput, AiReasoning, AiReasoning as Reasoning, AiResponse, AiResponse as Response, AiSource, AiSource as Source, AiSources, AiSources as Sources, AiSuggestion, AiSuggestion as Suggestion, AiTool, AiTool as Tool, Alert, AngleSlider, AspectRatio, Audio, AutoComplete, Avatar, AvatarGroup, BackTop, Badge, Banner, Bento, BlockUI, Breadcrumb, Browser, Button, ButtonGroup, Calendar, Card, Carousel, CascadeSelect, Checkbox, CheckboxGroup, Chip, ClientOnly, Clipboard, Collapsible, ColorPicker, Combobox, Command, Comment, ConfigProvider, Container, DataTable, DataView, DateInput, DatePicker, DeferredContent, Descriptions, Dialog, Dock, DownloadTrigger, Drawer, DynamicInput, Editable, Ellipsis, Empty, FLOAT_BUTTON_KEY, Field, Fieldset, FileUpload, FlexRender, FloatButton, FloatingPanel, FocusTrap, Form, FormField, Format, Frame, Grid, Highlight, HoverCard, Icon, Image, ImageCropper, ImageViewer, Input, InputGroup, JsonTreeView, Kbd, Layout, Link, List, Listbox, Marquee, Masonry, Mentions, MentionsVessel, Menu, Menubar, Meter, NativeSelect, NavigationMenu, NumberInput, OrderList, PageHeader, Pagination, PasswordInput, PinInput, Popconfirm, Popover, Presence, PresenceProvider, Progress, ProgressGroup, QrCode, RadioGroup, RatingGroup, Result, ScrollArea, SegmentGroup, Select, Separator, SignaturePad, Skeleton, Slider, Spinner, SplitButton, Splitter, Spotlight, Stack, Stat, Steps, Swap, Switch, Tabs, Tag, TagsInput, Terminal, Textarea, Timeline, Timer, Toast, Toaster, Toc, Toggle, ToggleGroup, Toolbar, Tooltip, Tour, Transfer, TreeSelect, TreeView, Typography, User, Video, VirtualList, Watermark, createColumnHelper, createField, createFileTreeCollection, createForm, createGridCollection, createListCollection, createToaster, createTreeCollection, formatMediaTime, splitPresenceProps, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as defineFamily } from "./family-CzLaku1F.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
3
|
-
import { n as Select } from "./select-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
|
|
3
|
+
import { n as Select } from "./select-CqOZTmfR.mjs";
|
|
4
4
|
import { n as useMediaControls, t as formatMediaTime } from "./use-media-controls-BYYG0DgO.mjs";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
6
6
|
import * as $ from "svelte/internal/client";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
+
import { t as iconHtml } from "./icon-C6ohnKuW.mjs";
|
|
2
3
|
import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
|
|
3
4
|
import "svelte/internal/disclose-version";
|
|
4
5
|
import * as $ from "svelte/internal/client";
|
|
@@ -12,7 +13,7 @@ var rest_excludes = /* @__PURE__ */ new Set([
|
|
|
12
13
|
"options",
|
|
13
14
|
"label"
|
|
14
15
|
]);
|
|
15
|
-
var root = $.from_html(`<li draggable="" aria-roledescription="Sortable item" data-scope="order-list" data-part="item"><span data-scope="order-list" data-part="grip" aria-hidden="true">⋮⋮</span> <span data-scope="order-list" data-part="label"> </span> <span data-scope="order-list" data-part="controls"><button type="button" data-scope="order-list" data-part="move"
|
|
16
|
+
var root = $.from_html(`<li draggable="" aria-roledescription="Sortable item" data-scope="order-list" data-part="item"><span data-scope="order-list" data-part="grip" aria-hidden="true">⋮⋮</span> <span data-scope="order-list" data-part="label"> </span> <span data-scope="order-list" data-part="controls"><button type="button" data-scope="order-list" data-part="move"></button> <button type="button" data-scope="order-list" data-part="move"></button> <button type="button" data-scope="order-list" data-part="move"></button> <button type="button" data-scope="order-list" data-part="move"></button></span></li>`);
|
|
16
17
|
var root_1 = $.from_html(`<div><ol data-scope="order-list" data-part="list"></ol></div>`);
|
|
17
18
|
function OrderList$1($$anchor, $$props) {
|
|
18
19
|
$.push($$props, true);
|
|
@@ -65,9 +66,29 @@ function OrderList$1($$anchor, $$props) {
|
|
|
65
66
|
var text = $.only_child(span, true);
|
|
66
67
|
var span_1 = $.sibling(span, 2);
|
|
67
68
|
var button = $.child(span_1);
|
|
69
|
+
$.html(button, () => iconHtml("chevron-up", {
|
|
70
|
+
width: "12",
|
|
71
|
+
height: "12"
|
|
72
|
+
}, "<path d=\"M5 4h14\"/>"), true);
|
|
73
|
+
$.reset(button);
|
|
68
74
|
var button_1 = $.sibling(button, 2);
|
|
75
|
+
$.html(button_1, () => iconHtml("chevron-up", {
|
|
76
|
+
width: "12",
|
|
77
|
+
height: "12"
|
|
78
|
+
}), true);
|
|
79
|
+
$.reset(button_1);
|
|
69
80
|
var button_2 = $.sibling(button_1, 2);
|
|
81
|
+
$.html(button_2, () => iconHtml("chevron-down", {
|
|
82
|
+
width: "12",
|
|
83
|
+
height: "12"
|
|
84
|
+
}), true);
|
|
85
|
+
$.reset(button_2);
|
|
70
86
|
var button_3 = $.sibling(button_2, 2);
|
|
87
|
+
$.html(button_3, () => iconHtml("chevron-down", {
|
|
88
|
+
width: "12",
|
|
89
|
+
height: "12"
|
|
90
|
+
}, "<path d=\"M5 20h14\"/>"), true);
|
|
91
|
+
$.reset(button_3);
|
|
71
92
|
$.reset(span_1);
|
|
72
93
|
$.reset(li);
|
|
73
94
|
$.template_effect(($0, $1, $2, $3) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withSelfRoot, t as defineFamily } from "./family-CzLaku1F.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
3
|
-
import { n as SelectRoot, t as Select$2 } from "./Select-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
|
|
3
|
+
import { n as SelectRoot, t as Select$2 } from "./Select-5AJHEmMi.mjs";
|
|
4
4
|
import "svelte/internal/disclose-version";
|
|
5
5
|
import * as $ from "svelte/internal/client";
|
|
6
6
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
|
|
3
3
|
import { t as Button } from "./button-Cl45zjdj.mjs";
|
|
4
4
|
import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
-
import { t as iconHtml } from "./icon-
|
|
3
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as iconHtml } from "./icon-C6ohnKuW.mjs";
|
|
3
|
+
import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
|
|
4
4
|
import { n as useComponentMessages, t as formatMessage } from "./messages-DNzA55pH.mjs";
|
|
5
5
|
import { Pagination } from "./components/pagination/index.mjs";
|
|
6
|
-
import { n as Select$1 } from "./select-
|
|
6
|
+
import { n as Select$1 } from "./select-CqOZTmfR.mjs";
|
|
7
7
|
import "svelte/internal/disclose-version";
|
|
8
8
|
import * as $ from "svelte/internal/client";
|
|
9
9
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -83,6 +83,7 @@ var rest_excludes = /* @__PURE__ */ new Set([
|
|
|
83
83
|
"pageSizeOptions",
|
|
84
84
|
"stickyFooter",
|
|
85
85
|
"initialSorting",
|
|
86
|
+
"striped",
|
|
86
87
|
"globalFilterPlaceholder",
|
|
87
88
|
"emptyText",
|
|
88
89
|
"reorderable",
|
|
@@ -206,7 +207,7 @@ function DataTable$1($$anchor, $$props) {
|
|
|
206
207
|
10,
|
|
207
208
|
20,
|
|
208
209
|
50
|
|
209
|
-
]), stickyFooter = $.prop($$props, "stickyFooter", 3, false), reorderable = $.prop($$props, "reorderable", 3, false), rest = $.rest_props($$props, rest_excludes);
|
|
210
|
+
]), stickyFooter = $.prop($$props, "stickyFooter", 3, false), striped = $.prop($$props, "striped", 3, false), reorderable = $.prop($$props, "reorderable", 3, false), rest = $.rest_props($$props, rest_excludes);
|
|
210
211
|
const messages = useComponentMessages();
|
|
211
212
|
const globalFilterText = $.derived(() => $$props.globalFilterPlaceholder ?? messages().table.filterAll);
|
|
212
213
|
const SELECT_COL_ID = "__select";
|
|
@@ -549,6 +550,7 @@ function DataTable$1($$anchor, $$props) {
|
|
|
549
550
|
"data-scope": "table",
|
|
550
551
|
"data-part": "root",
|
|
551
552
|
"data-reorderable": reorderable() || void 0,
|
|
553
|
+
"data-striped": striped() || void 0,
|
|
552
554
|
[$.STYLE]: { "--bs-table-row-height": $0 }
|
|
553
555
|
}), [() => `calc(${baseRowHeight()}px * var(--bs-density-scale, 1))`]);
|
|
554
556
|
var node_5 = $.child(div_3);
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
|
|
3
|
+
import "svelte/internal/disclose-version";
|
|
4
|
+
import * as $ from "svelte/internal/client";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
|
+
//#region src/components/tag/Tag.svelte
|
|
7
|
+
var rest_excludes = /* @__PURE__ */ new Set([
|
|
8
|
+
"$$slots",
|
|
9
|
+
"$$events",
|
|
10
|
+
"$$legacy",
|
|
11
|
+
"tone",
|
|
12
|
+
"variant",
|
|
13
|
+
"checkable",
|
|
14
|
+
"checked",
|
|
15
|
+
"defaultValue",
|
|
16
|
+
"closable",
|
|
17
|
+
"disabled",
|
|
18
|
+
"onClose",
|
|
19
|
+
"children"
|
|
20
|
+
]);
|
|
21
|
+
var root = $.from_html(`<span data-scope="tag" data-part="close" aria-hidden="true"><!></span>`);
|
|
22
|
+
var root_1 = $.from_html(`<button><!> <!></button>`);
|
|
23
|
+
var root_2 = $.from_html(`<button type="button" data-scope="tag" data-part="close" aria-label="Remove"><!></button>`);
|
|
24
|
+
var root_3 = $.from_html(`<span><!> <!></span>`);
|
|
25
|
+
function Tag$1($$anchor, $$props) {
|
|
26
|
+
$.push($$props, true);
|
|
27
|
+
injectComponentStyle("tag");
|
|
28
|
+
let tone = $.prop($$props, "tone", 3, "ink"), variant = $.prop($$props, "variant", 3, "solid"), checkable = $.prop($$props, "checkable", 3, false), checked = $.prop($$props, "checked", 15), defaultValue = $.prop($$props, "defaultValue", 3, false), closable = $.prop($$props, "closable", 3, false), disabled = $.prop($$props, "disabled", 3, false), rest = $.rest_props($$props, rest_excludes);
|
|
29
|
+
let internalChecked = $.state($.proxy(defaultValue()));
|
|
30
|
+
const isChecked = $.derived(() => checkable() && (checked() ?? $.get(internalChecked)));
|
|
31
|
+
function toggle() {
|
|
32
|
+
if (disabled()) return;
|
|
33
|
+
const next = !(checked() ?? $.get(internalChecked));
|
|
34
|
+
$.set(internalChecked, next);
|
|
35
|
+
checked(next);
|
|
36
|
+
}
|
|
37
|
+
function dismiss(event) {
|
|
38
|
+
event.stopPropagation();
|
|
39
|
+
if (disabled()) return;
|
|
40
|
+
$$props.onClose?.(event);
|
|
41
|
+
}
|
|
42
|
+
var fragment = $.comment();
|
|
43
|
+
var node = $.first_child(fragment);
|
|
44
|
+
var consequent_1 = ($$anchor) => {
|
|
45
|
+
var button = root_1();
|
|
46
|
+
$.attribute_effect(button, () => ({
|
|
47
|
+
...rest,
|
|
48
|
+
type: "button",
|
|
49
|
+
"data-scope": "tag",
|
|
50
|
+
"data-part": "root",
|
|
51
|
+
"data-tone": tone(),
|
|
52
|
+
"data-variant": variant(),
|
|
53
|
+
"data-checkable": "true",
|
|
54
|
+
"data-checked": $.get(isChecked) || void 0,
|
|
55
|
+
"data-disabled": disabled() || void 0,
|
|
56
|
+
"aria-pressed": $.get(isChecked),
|
|
57
|
+
disabled: disabled(),
|
|
58
|
+
onclick: toggle
|
|
59
|
+
}));
|
|
60
|
+
var node_1 = $.child(button);
|
|
61
|
+
$.snippet(node_1, () => $$props.children ?? $.noop);
|
|
62
|
+
var node_2 = $.sibling(node_1, 2);
|
|
63
|
+
var consequent = ($$anchor) => {
|
|
64
|
+
var span = root();
|
|
65
|
+
var node_3 = $.child(span);
|
|
66
|
+
InternalIcon(node_3, { name: "x" });
|
|
67
|
+
$.reset(span);
|
|
68
|
+
$.delegated("click", span, dismiss);
|
|
69
|
+
$.append($$anchor, span);
|
|
70
|
+
};
|
|
71
|
+
$.if(node_2, ($$render) => {
|
|
72
|
+
if (closable()) $$render(consequent);
|
|
73
|
+
});
|
|
74
|
+
$.reset(button);
|
|
75
|
+
$.append($$anchor, button);
|
|
76
|
+
};
|
|
77
|
+
var alternate = ($$anchor) => {
|
|
78
|
+
var span_1 = root_3();
|
|
79
|
+
$.attribute_effect(span_1, () => ({
|
|
80
|
+
...rest,
|
|
81
|
+
"data-scope": "tag",
|
|
82
|
+
"data-part": "root",
|
|
83
|
+
"data-tone": tone(),
|
|
84
|
+
"data-variant": variant(),
|
|
85
|
+
"data-disabled": disabled() || void 0,
|
|
86
|
+
"aria-disabled": disabled() || void 0
|
|
87
|
+
}));
|
|
88
|
+
var node_4 = $.child(span_1);
|
|
89
|
+
$.snippet(node_4, () => $$props.children ?? $.noop);
|
|
90
|
+
var node_5 = $.sibling(node_4, 2);
|
|
91
|
+
var consequent_2 = ($$anchor) => {
|
|
92
|
+
var button_1 = root_2();
|
|
93
|
+
var node_6 = $.child(button_1);
|
|
94
|
+
InternalIcon(node_6, { name: "x" });
|
|
95
|
+
$.reset(button_1);
|
|
96
|
+
$.template_effect(() => button_1.disabled = disabled());
|
|
97
|
+
$.delegated("click", button_1, dismiss);
|
|
98
|
+
$.append($$anchor, button_1);
|
|
99
|
+
};
|
|
100
|
+
$.if(node_5, ($$render) => {
|
|
101
|
+
if (closable()) $$render(consequent_2);
|
|
102
|
+
});
|
|
103
|
+
$.reset(span_1);
|
|
104
|
+
$.append($$anchor, span_1);
|
|
105
|
+
};
|
|
106
|
+
$.if(node, ($$render) => {
|
|
107
|
+
if (checkable()) $$render(consequent_1);
|
|
108
|
+
else $$render(alternate, -1);
|
|
109
|
+
});
|
|
110
|
+
$.append($$anchor, fragment);
|
|
111
|
+
$.pop();
|
|
112
|
+
}
|
|
113
|
+
$.delegate(["click"]);
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/tag/index.ts
|
|
116
|
+
/** A small named seal for filtering and cataloguing. The resting shape
|
|
117
|
+
* is a span; `checkable` raises it to a pressed button, and `closable`
|
|
118
|
+
* hangs the removal seal inside — dismissal stays the consumer's state,
|
|
119
|
+
* the way the banner's does. */
|
|
120
|
+
const Tag = withSelfRoot(Tag$1);
|
|
121
|
+
//#endregion
|
|
122
|
+
export { Tag as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-CbfKieOs.mjs";
|
|
3
3
|
import { t as Button } from "./button-Cl45zjdj.mjs";
|
|
4
4
|
import { n as useComponentMessages, t as formatMessage } from "./messages-DNzA55pH.mjs";
|
|
5
5
|
import { Input } from "./components/input/index.mjs";
|