fuma 1.0.21 → 2.0.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.
Files changed (195) hide show
  1. package/README.md +1 -1
  2. package/dist/action/list/handlers.d.ts +2 -2
  3. package/dist/action/list/index.d.ts +2 -0
  4. package/dist/action/list/index.js +1 -0
  5. package/dist/action/list/trigger.d.ts +7 -1
  6. package/dist/action/list/trigger.js +2 -2
  7. package/dist/private/Meta.svelte +32 -27
  8. package/dist/private/Meta.svelte.d.ts +29 -17
  9. package/dist/private/api.d.ts +1 -1
  10. package/dist/private/store.d.ts +0 -1
  11. package/dist/server/parseFormData.d.ts +1 -1
  12. package/dist/server/parseQuery.d.ts +1 -1
  13. package/dist/server/sse.d.ts +0 -1
  14. package/dist/store/isSmallScreen.d.ts +0 -1
  15. package/dist/store/param.d.ts +0 -2
  16. package/dist/store/session.d.ts +0 -1
  17. package/dist/ui/badge/Badge.svelte +4 -3
  18. package/dist/ui/badge/Badge.svelte.d.ts +19 -15
  19. package/dist/ui/button/ButtonCopy.svelte +35 -32
  20. package/dist/ui/button/ButtonCopy.svelte.d.ts +23 -21
  21. package/dist/ui/button/ButtonDelete.svelte +23 -21
  22. package/dist/ui/button/ButtonDelete.svelte.d.ts +32 -20
  23. package/dist/ui/card/Card.svelte +13 -10
  24. package/dist/ui/card/Card.svelte.d.ts +39 -24
  25. package/dist/ui/card/CardBasic.svelte +5 -4
  26. package/dist/ui/card/CardBasic.svelte.d.ts +29 -18
  27. package/dist/ui/card/CardCollapse.svelte +35 -31
  28. package/dist/ui/card/CardCollapse.svelte.d.ts +37 -23
  29. package/dist/ui/card/CardFullScreen.svelte +8 -6
  30. package/dist/ui/card/CardFullScreen.svelte.d.ts +35 -20
  31. package/dist/ui/card/CardLink.svelte +5 -4
  32. package/dist/ui/card/CardLink.svelte.d.ts +29 -18
  33. package/dist/ui/dialog/Dialog.svelte +41 -34
  34. package/dist/ui/dialog/Dialog.svelte.d.ts +36 -23
  35. package/dist/ui/dialog/DialogConfirm.svelte +6 -4
  36. package/dist/ui/dialog/DialogConfirm.svelte.d.ts +33 -19
  37. package/dist/ui/drawer/Drawer.svelte +47 -38
  38. package/dist/ui/drawer/Drawer.svelte.d.ts +81 -46
  39. package/dist/ui/drawer/drawerFly.d.ts +0 -1
  40. package/dist/ui/drawer/layers.d.ts +0 -1
  41. package/dist/ui/form/Form.svelte +106 -87
  42. package/dist/ui/form/Form.svelte.d.ts +29 -16
  43. package/dist/ui/form/FormInput.svelte +12 -6
  44. package/dist/ui/form/FormSection.svelte +24 -17
  45. package/dist/ui/form/FormSection.svelte.d.ts +37 -25
  46. package/dist/ui/icon/Icon.svelte +35 -32
  47. package/dist/ui/icon/Icon.svelte.d.ts +25 -21
  48. package/dist/ui/index.d.ts +0 -1
  49. package/dist/ui/index.js +0 -1
  50. package/dist/ui/input/FormControl.svelte +48 -36
  51. package/dist/ui/input/FormControl.svelte.d.ts +32 -30
  52. package/dist/ui/input/InputBoolean.svelte +29 -22
  53. package/dist/ui/input/InputBoolean.svelte.d.ts +43 -35
  54. package/dist/ui/input/InputCheckboxs.svelte +37 -34
  55. package/dist/ui/input/InputCheckboxs.svelte.d.ts +54 -39
  56. package/dist/ui/input/InputCheckboxsMenu.svelte +64 -47
  57. package/dist/ui/input/InputCheckboxsMenu.svelte.d.ts +56 -41
  58. package/dist/ui/input/InputCheckboxsTree.svelte +9 -6
  59. package/dist/ui/input/InputCheckboxsTree.svelte.d.ts +22 -18
  60. package/dist/ui/input/InputCheckboxsTreeNodes.svelte +36 -28
  61. package/dist/ui/input/InputCheckboxsTreeNodes.svelte.d.ts +20 -16
  62. package/dist/ui/input/InputCombo.svelte +76 -65
  63. package/dist/ui/input/InputCombo.svelte.d.ts +55 -39
  64. package/dist/ui/input/InputDate.svelte +36 -29
  65. package/dist/ui/input/InputDate.svelte.d.ts +20 -16
  66. package/dist/ui/input/InputDateTime.svelte +37 -30
  67. package/dist/ui/input/InputDateTime.svelte.d.ts +20 -16
  68. package/dist/ui/input/InputImage.svelte +52 -45
  69. package/dist/ui/input/InputImage.svelte.d.ts +40 -27
  70. package/dist/ui/input/InputImagePreview.svelte +24 -20
  71. package/dist/ui/input/InputImagePreview.svelte.d.ts +25 -21
  72. package/dist/ui/input/InputNumber.svelte +28 -22
  73. package/dist/ui/input/InputNumber.svelte.d.ts +20 -20
  74. package/dist/ui/input/InputOptionInParam.svelte +12 -10
  75. package/dist/ui/input/InputOptionInParam.svelte.d.ts +21 -17
  76. package/dist/ui/input/InputOptions.svelte +40 -34
  77. package/dist/ui/input/InputOptions.svelte.d.ts +19 -15
  78. package/dist/ui/input/InputPassword.svelte +22 -18
  79. package/dist/ui/input/InputPassword.svelte.d.ts +43 -35
  80. package/dist/ui/input/InputRadio.svelte +51 -46
  81. package/dist/ui/input/InputRadio.svelte.d.ts +53 -38
  82. package/dist/ui/input/InputRelation.svelte +129 -112
  83. package/dist/ui/input/InputRelation.svelte.d.ts +39 -53
  84. package/dist/ui/input/InputRelations.svelte +96 -90
  85. package/dist/ui/input/InputRelations.svelte.d.ts +35 -37
  86. package/dist/ui/input/InputSearch.svelte +14 -11
  87. package/dist/ui/input/InputSearch.svelte.d.ts +25 -21
  88. package/dist/ui/input/InputSelect.svelte +59 -46
  89. package/dist/ui/input/InputSelect.svelte.d.ts +23 -19
  90. package/dist/ui/input/InputText.svelte +29 -28
  91. package/dist/ui/input/InputText.svelte.d.ts +41 -28
  92. package/dist/ui/input/InputTextarea.svelte +20 -19
  93. package/dist/ui/input/InputTextarea.svelte.d.ts +20 -20
  94. package/dist/ui/input/InputTime.svelte +43 -36
  95. package/dist/ui/input/InputTime.svelte.d.ts +21 -36
  96. package/dist/ui/input/RelationAfter.svelte +13 -9
  97. package/dist/ui/input/RelationAfter.svelte.d.ts +24 -20
  98. package/dist/ui/input/SelectorList.svelte +16 -12
  99. package/dist/ui/input/SelectorList.svelte.d.ts +29 -20
  100. package/dist/ui/input/textRich/InputTextRich.svelte +63 -59
  101. package/dist/ui/input/textRich/InputTextRich.svelte.d.ts +36 -38
  102. package/dist/ui/input/textRich/SuggesionList.svelte +13 -9
  103. package/dist/ui/input/textRich/SuggesionList.svelte.d.ts +19 -15
  104. package/dist/ui/input/textRich/ToolMark.svelte +12 -9
  105. package/dist/ui/input/textRich/ToolMark.svelte.d.ts +22 -18
  106. package/dist/ui/input/textRich/ToolMarkColor.svelte +16 -12
  107. package/dist/ui/input/textRich/ToolMarkColor.svelte.d.ts +21 -17
  108. package/dist/ui/input/textRich/ToolMarkLink.svelte +46 -38
  109. package/dist/ui/input/textRich/ToolMarkLink.svelte.d.ts +18 -14
  110. package/dist/ui/input/textRich/ToolMenu.svelte +34 -19
  111. package/dist/ui/input/textRich/ToolMenu.svelte.d.ts +30 -26
  112. package/dist/ui/input/textRich/ToolMenuAlign.svelte +13 -9
  113. package/dist/ui/input/textRich/ToolMenuAlign.svelte.d.ts +18 -14
  114. package/dist/ui/input/textRich/ToolMenuInsert.svelte +12 -7
  115. package/dist/ui/input/textRich/ToolMenuInsert.svelte.d.ts +20 -16
  116. package/dist/ui/input/textRich/ToolMenuNode.svelte +14 -10
  117. package/dist/ui/input/textRich/ToolMenuNode.svelte.d.ts +18 -14
  118. package/dist/ui/input/textRich/ToolsBar.svelte +21 -14
  119. package/dist/ui/input/textRich/ToolsBar.svelte.d.ts +19 -17
  120. package/dist/ui/input/textRich/suggestion.d.ts +0 -1
  121. package/dist/ui/login/Login.svelte +37 -31
  122. package/dist/ui/login/Login.svelte.d.ts +18 -14
  123. package/dist/ui/menu/ContextMenu.svelte +37 -31
  124. package/dist/ui/menu/ContextMenu.svelte.d.ts +38 -25
  125. package/dist/ui/menu/DropDown.svelte +92 -83
  126. package/dist/ui/menu/DropDown.svelte.d.ts +46 -33
  127. package/dist/ui/menu/DropDownMenu.svelte +25 -18
  128. package/dist/ui/menu/DropDownMenu.svelte.d.ts +30 -19
  129. package/dist/ui/mode/ToggleMode.svelte +28 -16
  130. package/dist/ui/mode/ToggleMode.svelte.d.ts +34 -17
  131. package/dist/ui/pagination/Pagination.svelte +9 -8
  132. package/dist/ui/pagination/Pagination.svelte.d.ts +18 -14
  133. package/dist/ui/placeholder/Placeholder.svelte +4 -3
  134. package/dist/ui/placeholder/Placeholder.svelte.d.ts +28 -17
  135. package/dist/ui/placeholder/PlaceholderImage.svelte +6 -4
  136. package/dist/ui/placeholder/PlaceholderImage.svelte.d.ts +28 -17
  137. package/dist/ui/range/RangePicker.svelte +76 -63
  138. package/dist/ui/range/RangePicker.svelte.d.ts +29 -24
  139. package/dist/ui/range/RangePickerButton.svelte +45 -40
  140. package/dist/ui/range/RangePickerButton.svelte.d.ts +21 -19
  141. package/dist/ui/table/Table.svelte +35 -28
  142. package/dist/ui/table/Table.svelte.d.ts +24 -19
  143. package/dist/ui/table/TableBody.svelte +18 -12
  144. package/dist/ui/table/TableBody.svelte.d.ts +20 -15
  145. package/dist/ui/table/TableCell.svelte +13 -10
  146. package/dist/ui/table/TableCell.svelte.d.ts +19 -14
  147. package/dist/ui/table/TableFieldsEdition.svelte +58 -52
  148. package/dist/ui/table/TableFieldsEdition.svelte.d.ts +20 -15
  149. package/dist/ui/table/TableHead.svelte +20 -21
  150. package/dist/ui/table/TableHead.svelte.d.ts +19 -14
  151. package/dist/ui/table/TableViewSelect.svelte +50 -37
  152. package/dist/ui/table/TableViewSelect.svelte.d.ts +27 -23
  153. package/dist/ui/table/cell/TableCellArray.svelte +5 -3
  154. package/dist/ui/table/cell/TableCellArray.svelte.d.ts +18 -14
  155. package/dist/ui/table/cell/TableCellBoolean.svelte +4 -3
  156. package/dist/ui/table/cell/TableCellBoolean.svelte.d.ts +18 -14
  157. package/dist/ui/table/cell/TableCellNumber.svelte +2 -1
  158. package/dist/ui/table/cell/TableCellNumber.svelte.d.ts +18 -14
  159. package/dist/ui/table/cell/TableCellString.svelte +5 -2
  160. package/dist/ui/table/cell/TableCellString.svelte.d.ts +19 -25
  161. package/dist/ui/table/field.d.ts +32 -40
  162. package/dist/ui/table/field.js +1 -1
  163. package/dist/ui/table/head/TableHeadBoolean.svelte +6 -3
  164. package/dist/ui/table/head/TableHeadBoolean.svelte.d.ts +18 -24
  165. package/dist/ui/table/head/TableHeadDate.svelte +61 -113
  166. package/dist/ui/table/head/TableHeadDate.svelte.d.ts +18 -24
  167. package/dist/ui/table/head/TableHeadDefault.svelte +5 -2
  168. package/dist/ui/table/head/TableHeadDefault.svelte.d.ts +18 -24
  169. package/dist/ui/table/head/TableHeadNumber.svelte +67 -76
  170. package/dist/ui/table/head/TableHeadNumber.svelte.d.ts +18 -24
  171. package/dist/ui/table/head/TableHeadSelect.svelte +47 -41
  172. package/dist/ui/table/head/TableHeadSelect.svelte.d.ts +21 -27
  173. package/dist/ui/table/head/TableHeadString.svelte +14 -8
  174. package/dist/ui/table/head/TableHeadString.svelte.d.ts +18 -24
  175. package/dist/ui/tabs/Tabs.svelte +8 -5
  176. package/dist/ui/tabs/Tabs.svelte.d.ts +19 -15
  177. package/dist/ui/tabs/TabsIcon.svelte +31 -28
  178. package/dist/ui/tabs/TabsIcon.svelte.d.ts +21 -17
  179. package/dist/utils/eventEmitter.d.ts +4 -4
  180. package/dist/utils/tippy.d.ts +1 -1
  181. package/dist/validation/form.d.ts +0 -1
  182. package/dist/validation/zod.d.ts +96 -162
  183. package/dist/validation/zod.js +2 -4
  184. package/package.json +134 -138
  185. package/dist/ui/form/FormInput.svelte.d.ts +0 -152
  186. package/dist/ui/form/formInput.d.ts +0 -90
  187. package/dist/ui/slot/Slot.svelte +0 -35
  188. package/dist/ui/slot/Slot.svelte.d.ts +0 -22
  189. package/dist/ui/slot/Span.svelte +0 -4
  190. package/dist/ui/slot/Span.svelte.d.ts +0 -16
  191. package/dist/ui/slot/index.d.ts +0 -1
  192. package/dist/ui/slot/index.js +0 -1
  193. package/dist/ui/table/head/OrderButtons.svelte +0 -37
  194. package/dist/ui/table/head/OrderButtons.svelte.d.ts +0 -20
  195. package/dist/ui/table/head/index.d.ts +0 -19
@@ -1,31 +1,25 @@
1
- import { SvelteComponent } from "svelte";
2
1
  import type { TableField } from '../index.js';
3
2
  import { type Options } from '../../../utils/options.js';
4
- declare class __sveltets_Render<Item extends {
5
- id: string;
6
- }> {
7
- props(): {
8
- field: TableField<Item>;
9
- options: Options;
10
- multiSelect?: boolean | undefined;
11
- placeholder?: string | undefined;
3
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
4
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
5
+ $$bindings?: Bindings;
6
+ } & Exports;
7
+ (internal: unknown, props: Props & {
8
+ $$events?: Events;
9
+ $$slots?: Slots;
10
+ }): Exports & {
11
+ $set?: any;
12
+ $on?: any;
12
13
  };
13
- events(): {} & {
14
- [evt: string]: CustomEvent<any>;
15
- };
16
- slots(): {};
17
- }
18
- export type TableHeadSelectProps<Item extends {
19
- id: string;
20
- }> = ReturnType<__sveltets_Render<Item>['props']>;
21
- export type TableHeadSelectEvents<Item extends {
22
- id: string;
23
- }> = ReturnType<__sveltets_Render<Item>['events']>;
24
- export type TableHeadSelectSlots<Item extends {
25
- id: string;
26
- }> = ReturnType<__sveltets_Render<Item>['slots']>;
27
- export default class TableHeadSelect<Item extends {
28
- id: string;
29
- }> extends SvelteComponent<TableHeadSelectProps<Item>, TableHeadSelectEvents<Item>, TableHeadSelectSlots<Item>> {
14
+ z_$$bindings?: Bindings;
30
15
  }
31
- export {};
16
+ declare const TableHeadSelect: $$__sveltets_2_IsomorphicComponent<{
17
+ field: TableField;
18
+ options: Options;
19
+ multiSelect?: boolean;
20
+ placeholder?: string;
21
+ }, {
22
+ [evt: string]: CustomEvent<any>;
23
+ }, {}, {}, string>;
24
+ type TableHeadSelect = InstanceType<typeof TableHeadSelect>;
25
+ export default TableHeadSelect;
@@ -1,11 +1,17 @@
1
- <script generics="Item extends {id: string}">import { mdiMagnify } from "@mdi/js";
2
- import { page } from "$app/stores";
3
- import { DropDown } from "../../menu/index.js";
4
- import { Icon } from "../../icon/index.js";
5
- import { InputSearch } from "../../input/index.js";
6
- export let field;
7
- let tip;
8
- let searchValue = $page.url.searchParams.get(field.key) || "";
1
+ <script lang="ts">
2
+ import type { TippyInstance } from '../../../utils/tippy.js'
3
+ import { mdiMagnify } from '@mdi/js'
4
+ import { page } from '$app/stores'
5
+
6
+ import { DropDown } from '../../menu/index.js'
7
+ import { Icon } from '../../icon/index.js'
8
+ import { InputSearch } from '../../input/index.js'
9
+ import type { TableField } from '../index.js'
10
+
11
+ export let field: TableField
12
+
13
+ let tip: TippyInstance
14
+ let searchValue = $page.url.searchParams.get(field.key) || ''
9
15
  </script>
10
16
 
11
17
  <th class="p-1">
@@ -1,27 +1,21 @@
1
- import { SvelteComponent } from "svelte";
2
1
  import type { TableField } from '../index.js';
3
- declare class __sveltets_Render<Item extends {
4
- id: string;
5
- }> {
6
- props(): {
7
- field: TableField<Item>;
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: Props & {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
8
12
  };
9
- events(): {} & {
10
- [evt: string]: CustomEvent<any>;
11
- };
12
- slots(): {};
13
- }
14
- export type TableHeadStringProps<Item extends {
15
- id: string;
16
- }> = ReturnType<__sveltets_Render<Item>['props']>;
17
- export type TableHeadStringEvents<Item extends {
18
- id: string;
19
- }> = ReturnType<__sveltets_Render<Item>['events']>;
20
- export type TableHeadStringSlots<Item extends {
21
- id: string;
22
- }> = ReturnType<__sveltets_Render<Item>['slots']>;
23
- export default class TableHeadString<Item extends {
24
- id: string;
25
- }> extends SvelteComponent<TableHeadStringProps<Item>, TableHeadStringEvents<Item>, TableHeadStringSlots<Item>> {
13
+ z_$$bindings?: Bindings;
26
14
  }
27
- export {};
15
+ declare const TableHeadString: $$__sveltets_2_IsomorphicComponent<{
16
+ field: TableField;
17
+ }, {
18
+ [evt: string]: CustomEvent<any>;
19
+ }, {}, {}, string>;
20
+ type TableHeadString = InstanceType<typeof TableHeadString>;
21
+ export default TableHeadString;
@@ -1,8 +1,11 @@
1
- <script>import { page } from "$app/stores";
2
- import { Icon } from "../icon/index.js";
3
- export let tabs;
4
- let klass = "";
5
- export { klass as class };
1
+ <script lang="ts">
2
+ import { page } from '$app/stores'
3
+ import type { Tab } from './index.js'
4
+ import { Icon } from '../icon/index.js'
5
+
6
+ export let tabs: Tab[]
7
+ let klass = ''
8
+ export { klass as class }
6
9
  </script>
7
10
 
8
11
  <div
@@ -1,18 +1,22 @@
1
- import { SvelteComponent } from "svelte";
2
1
  import type { Tab } from './index.js';
3
- declare const __propDef: {
4
- props: {
5
- tabs: Tab[];
6
- class?: string | undefined;
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: Props & {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
7
12
  };
8
- events: {
9
- [evt: string]: CustomEvent<any>;
10
- };
11
- slots: {};
12
- };
13
- export type TabsProps = typeof __propDef.props;
14
- export type TabsEvents = typeof __propDef.events;
15
- export type TabsSlots = typeof __propDef.slots;
16
- export default class Tabs extends SvelteComponent<TabsProps, TabsEvents, TabsSlots> {
13
+ z_$$bindings?: Bindings;
17
14
  }
18
- export {};
15
+ declare const Tabs: $$__sveltets_2_IsomorphicComponent<{
16
+ tabs: Tab[];
17
+ class?: string;
18
+ }, {
19
+ [evt: string]: CustomEvent<any>;
20
+ }, {}, {}, string>;
21
+ type Tabs = InstanceType<typeof Tabs>;
22
+ export default Tabs;
@@ -1,31 +1,34 @@
1
- <script>import { page } from "$app/stores";
2
- import { onMount } from "svelte";
3
- import { urlParam } from "../../store/index.js";
4
- import { Icon } from "../icon/index.js";
5
- import { parseOptions } from "../../utils/options.js";
6
- export let options;
7
- export let showLabel = false;
8
- export let key;
9
- export let defaultValue = void 0;
10
- let _options = getOptions($page.url);
11
- onMount(
12
- () => page.subscribe(({ url }) => {
13
- _options = getOptions(url);
14
- })
15
- );
16
- function getOptions(url) {
17
- return parseOptions(options).map((option) => ({
18
- ...option,
19
- isActive: getIsActive(option, url)
20
- }));
21
- }
22
- function getIsActive(option, { searchParams }) {
23
- if (searchParams.get(key) === option.value)
24
- return true;
25
- if (!searchParams.has(key))
26
- return option.value === defaultValue;
27
- return false;
28
- }
1
+ <script lang="ts">
2
+ import { page } from '$app/stores'
3
+ import { onMount } from 'svelte'
4
+
5
+ import { urlParam } from '../../store/index.js'
6
+ import { Icon } from '../icon/index.js'
7
+ import { parseOptions, type Options, type Option } from '../../utils/options.js'
8
+
9
+ export let options: Options
10
+ export let showLabel = false
11
+ export let key: string
12
+ export let defaultValue: string | undefined = undefined
13
+
14
+ let _options = getOptions($page.url)
15
+ onMount(() =>
16
+ page.subscribe(({ url }) => {
17
+ _options = getOptions(url)
18
+ })
19
+ )
20
+
21
+ function getOptions(url: URL) {
22
+ return parseOptions(options).map((option) => ({
23
+ ...option,
24
+ isActive: getIsActive(option, url)
25
+ }))
26
+ }
27
+ function getIsActive(option: Option, { searchParams }: URL) {
28
+ if (searchParams.get(key) === option.value) return true
29
+ if (!searchParams.has(key)) return option.value === defaultValue
30
+ return false
31
+ }
29
32
  </script>
30
33
 
31
34
  <div class="flex items-center gap-[3px] rounded-lg bg-base-200 p-1">
@@ -1,20 +1,24 @@
1
- import { SvelteComponent } from "svelte";
2
1
  import { type Options } from '../../utils/options.js';
3
- declare const __propDef: {
4
- props: {
5
- options: Options;
6
- showLabel?: boolean | undefined;
7
- key: string;
8
- defaultValue?: string | undefined;
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: Props & {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
9
12
  };
10
- events: {
11
- [evt: string]: CustomEvent<any>;
12
- };
13
- slots: {};
14
- };
15
- export type TabsIconProps = typeof __propDef.props;
16
- export type TabsIconEvents = typeof __propDef.events;
17
- export type TabsIconSlots = typeof __propDef.slots;
18
- export default class TabsIcon extends SvelteComponent<TabsIconProps, TabsIconEvents, TabsIconSlots> {
13
+ z_$$bindings?: Bindings;
19
14
  }
20
- export {};
15
+ declare const TabsIcon: $$__sveltets_2_IsomorphicComponent<{
16
+ options: Options;
17
+ showLabel?: boolean;
18
+ key: string;
19
+ defaultValue?: string | undefined;
20
+ }, {
21
+ [evt: string]: CustomEvent<any>;
22
+ }, {}, {}, string>;
23
+ type TabsIcon = InstanceType<typeof TabsIcon>;
24
+ export default TabsIcon;
@@ -1,9 +1,9 @@
1
1
  export declare function createEventEmitter<EventMap extends Record<string, any>>(): {
2
2
  on<K extends keyof EventMap>(eventKey: K, callback: Callback<EventMap[K]>): () => void;
3
- once<K_1 extends keyof EventMap>(eventKey: K_1, callback: Callback<EventMap[K_1]>): () => void;
4
- off<K_2 extends keyof EventMap>(eventKey: K_2, callback: Callback<EventMap[K_2]>): void;
5
- clean<K_3 extends keyof EventMap>(eventKey: K_3): void;
6
- emit<K_4 extends keyof EventMap>(...args: EventEmitterArgs<EventMap, K_4>): void;
3
+ once<K extends keyof EventMap>(eventKey: K, callback: Callback<EventMap[K]>): () => void;
4
+ off<K extends keyof EventMap>(eventKey: K, callback: Callback<EventMap[K]>): void;
5
+ clean<K extends keyof EventMap>(eventKey: K): void;
6
+ emit<K extends keyof EventMap>(...args: EventEmitterArgs<EventMap, K>): void;
7
7
  };
8
8
  type Callback<Arg> = (arg: Arg) => unknown;
9
9
  type EventEmitterArgs<EventMap extends Record<string, any>, K extends keyof EventMap> = undefined extends EventMap[K] ? [type: K, parameter?: EventMap[K]] : [type: K, parameter: EventMap[K]];
@@ -1,5 +1,5 @@
1
1
  import 'tippy.js/dist/tippy.css';
2
2
  import { type Tippy, type Props as TippyProps, type Instance as TippyInstance, hideAll, delegate, createSingleton, animateFill, followCursor, inlinePositioning, sticky, roundArrow } from 'tippy.js';
3
- export declare const tippy: Tippy<TippyProps>;
3
+ export declare const tippy: Tippy;
4
4
  export type { TippyProps, TippyInstance };
5
5
  export { hideAll, delegate, createSingleton, animateFill, followCursor, inlinePositioning, sticky, roundArrow };
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import type { SubmitFunction } from '@sveltejs/kit';
3
2
  export type SetError = {
4
3
  [key: string]: (err: string) => void;