fuma 0.5.1 → 1.0.1
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/README.md +1 -1
- package/dist/private/Meta.svelte +32 -27
- package/dist/private/Meta.svelte.d.ts +1 -0
- package/dist/private/api.d.ts +1 -1
- package/dist/ui/badge/Badge.svelte +4 -3
- package/dist/ui/button/ButtonCopy.svelte +32 -26
- package/dist/ui/button/ButtonDelete.svelte +23 -21
- package/dist/ui/button/ButtonDelete.svelte.d.ts +1 -0
- package/dist/ui/card/Card.svelte +13 -10
- package/dist/ui/card/Card.svelte.d.ts +1 -0
- package/dist/ui/card/CardBasic.svelte +5 -4
- package/dist/ui/card/CardBasic.svelte.d.ts +1 -0
- package/dist/ui/card/CardCollapse.svelte +35 -31
- package/dist/ui/card/CardCollapse.svelte.d.ts +1 -0
- package/dist/ui/card/CardFullScreen.svelte +8 -6
- package/dist/ui/card/CardFullScreen.svelte.d.ts +3 -0
- package/dist/ui/card/CardLink.svelte +5 -4
- package/dist/ui/card/CardLink.svelte.d.ts +1 -0
- package/dist/ui/dialog/Dialog.svelte +41 -34
- package/dist/ui/dialog/Dialog.svelte.d.ts +1 -0
- package/dist/ui/dialog/DialogConfirm.svelte +6 -4
- package/dist/ui/dialog/DialogConfirm.svelte.d.ts +1 -0
- package/dist/ui/drawer/Drawer.svelte +47 -38
- package/dist/ui/drawer/Drawer.svelte.d.ts +16 -0
- package/dist/ui/form/Form.svelte +101 -83
- package/dist/ui/form/Form.svelte.d.ts +1 -0
- package/dist/ui/form/FormInput.svelte +12 -6
- package/dist/ui/form/FormInput.svelte.d.ts +30 -8
- package/dist/ui/form/FormSection.svelte +24 -17
- package/dist/ui/form/formInput.d.ts +7 -4
- package/dist/ui/icon/Icon.svelte +35 -32
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/index.js +0 -1
- package/dist/ui/input/FormControl.svelte +48 -36
- package/dist/ui/input/FormControl.svelte.d.ts +7 -9
- package/dist/ui/input/InputBoolean.svelte +29 -22
- package/dist/ui/input/InputBoolean.svelte.d.ts +5 -1
- package/dist/ui/input/InputCheckboxs.svelte +37 -34
- package/dist/ui/input/InputCheckboxs.svelte.d.ts +5 -1
- package/dist/ui/input/InputCheckboxsMenu.svelte +64 -47
- package/dist/ui/input/InputCheckboxsMenu.svelte.d.ts +5 -1
- package/dist/ui/input/InputCheckboxsTree.svelte +9 -6
- package/dist/ui/input/InputCheckboxsTreeNodes.svelte +36 -28
- package/dist/ui/input/InputCombo.svelte +76 -65
- package/dist/ui/input/InputCombo.svelte.d.ts +5 -1
- package/dist/ui/input/InputDate.svelte +36 -29
- package/dist/ui/input/InputDateTime.svelte +37 -30
- package/dist/ui/input/InputImage.svelte +52 -45
- package/dist/ui/input/InputImage.svelte.d.ts +1 -0
- package/dist/ui/input/InputImagePreview.svelte +24 -20
- package/dist/ui/input/InputNumber.svelte +28 -22
- package/dist/ui/input/InputNumber.svelte.d.ts +1 -5
- package/dist/ui/input/InputOptionInParam.svelte +12 -10
- package/dist/ui/input/InputOptions.svelte +40 -34
- package/dist/ui/input/InputPassword.svelte +22 -18
- package/dist/ui/input/InputPassword.svelte.d.ts +5 -1
- package/dist/ui/input/InputRadio.svelte +51 -46
- package/dist/ui/input/InputRadio.svelte.d.ts +5 -1
- package/dist/ui/input/InputRelation.svelte +119 -111
- package/dist/ui/input/InputRelation.svelte.d.ts +6 -12
- package/dist/ui/input/InputRelations.svelte +94 -90
- package/dist/ui/input/InputRelations.svelte.d.ts +5 -12
- package/dist/ui/input/InputSearch.svelte +13 -10
- package/dist/ui/input/InputSelect.svelte +59 -46
- package/dist/ui/input/InputText.svelte +29 -28
- package/dist/ui/input/InputText.svelte.d.ts +0 -3
- package/dist/ui/input/InputTextarea.svelte +20 -19
- package/dist/ui/input/InputTextarea.svelte.d.ts +1 -5
- package/dist/ui/input/InputTime.svelte +43 -35
- package/dist/ui/input/RelationAfter.svelte +13 -9
- package/dist/ui/input/SelectorList.svelte +16 -12
- package/dist/ui/input/SelectorList.svelte.d.ts +4 -0
- package/dist/ui/input/textRich/InputTextRich.svelte +63 -54
- package/dist/ui/input/textRich/InputTextRich.svelte.d.ts +5 -1
- package/dist/ui/input/textRich/SuggesionList.svelte +13 -9
- package/dist/ui/input/textRich/ToolMark.svelte +12 -9
- package/dist/ui/input/textRich/ToolMarkColor.svelte +16 -12
- package/dist/ui/input/textRich/ToolMarkLink.svelte +46 -38
- package/dist/ui/input/textRich/ToolMenu.svelte +34 -19
- package/dist/ui/input/textRich/ToolMenuAlign.svelte +13 -9
- package/dist/ui/input/textRich/ToolMenuInsert.svelte +12 -7
- package/dist/ui/input/textRich/ToolMenuNode.svelte +14 -10
- package/dist/ui/input/textRich/ToolsBar.svelte +17 -13
- package/dist/ui/login/Login.svelte +37 -31
- package/dist/ui/menu/ContextMenu.svelte +37 -31
- package/dist/ui/menu/ContextMenu.svelte.d.ts +1 -0
- package/dist/ui/menu/DropDown.svelte +92 -83
- package/dist/ui/menu/DropDown.svelte.d.ts +1 -0
- package/dist/ui/menu/DropDownMenu.svelte +25 -18
- package/dist/ui/menu/DropDownMenu.svelte.d.ts +1 -0
- package/dist/ui/mode/ToggleMode.svelte +19 -15
- package/dist/ui/mode/ToggleMode.svelte.d.ts +7 -1
- package/dist/ui/pagination/Pagination.svelte +9 -8
- package/dist/ui/placeholder/Placeholder.svelte +4 -3
- package/dist/ui/placeholder/Placeholder.svelte.d.ts +1 -0
- package/dist/ui/placeholder/PlaceholderImage.svelte +6 -4
- package/dist/ui/placeholder/PlaceholderImage.svelte.d.ts +1 -0
- package/dist/ui/range/RangePicker.svelte +76 -63
- package/dist/ui/range/RangePickerButton.svelte +43 -35
- package/dist/ui/table/Table.svelte +35 -28
- package/dist/ui/table/TableBody.svelte +18 -12
- package/dist/ui/table/TableCell.svelte +13 -10
- package/dist/ui/table/TableFieldsEdition.svelte +57 -51
- package/dist/ui/table/TableHead.svelte +19 -20
- package/dist/ui/table/TableViewSelect.svelte +50 -37
- package/dist/ui/table/cell/TableCellArray.svelte +5 -3
- package/dist/ui/table/cell/TableCellBoolean.svelte +4 -3
- package/dist/ui/table/cell/TableCellNumber.svelte +2 -1
- package/dist/ui/table/cell/TableCellString.svelte +5 -2
- package/dist/ui/table/head/TableHeadBoolean.svelte +6 -3
- package/dist/ui/table/head/TableHeadDate.svelte +54 -47
- package/dist/ui/table/head/TableHeadDefault.svelte +5 -2
- package/dist/ui/table/head/TableHeadNumber.svelte +65 -53
- package/dist/ui/table/head/TableHeadSelect.svelte +47 -41
- package/dist/ui/table/head/TableHeadString.svelte +14 -8
- package/dist/ui/tabs/Tabs.svelte +8 -5
- package/dist/ui/tabs/TabsIcon.svelte +31 -28
- package/package.json +32 -33
- package/dist/ui/slot/Slot.svelte +0 -35
- package/dist/ui/slot/Slot.svelte.d.ts +0 -22
- package/dist/ui/slot/Span.svelte +0 -4
- package/dist/ui/slot/Span.svelte.d.ts +0 -16
- package/dist/ui/slot/index.d.ts +0 -1
- package/dist/ui/slot/index.js +0 -1
|
@@ -1,44 +1,50 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { derived } from 'svelte/store'
|
|
3
|
+
import { page } from '$app/stores'
|
|
4
|
+
|
|
5
|
+
import { jsonParse } from '../../../utils/jsonParse.js'
|
|
6
|
+
import type { TableField } from '../index.js'
|
|
7
|
+
import { DropDown } from '../../menu/index.js'
|
|
8
|
+
import { Icon } from '../../icon/index.js'
|
|
9
|
+
import { type Options, parseOptions } from '../../../utils/options.js'
|
|
10
|
+
import { urlParam } from '../../../store/param.js'
|
|
11
|
+
import { mdiOrderBoolAscendingVariant } from '@mdi/js'
|
|
12
|
+
|
|
13
|
+
export let field: TableField
|
|
14
|
+
export let options: Options
|
|
15
|
+
export let multiSelect = false
|
|
16
|
+
export let placeholder = 'No option'
|
|
17
|
+
|
|
18
|
+
let _options = initOptions($page.url)
|
|
19
|
+
page.subscribe(({ url }) => (_options = initOptions(url)))
|
|
20
|
+
|
|
21
|
+
$: optionsActive = _options.filter((option) => option.isActive)
|
|
22
|
+
|
|
23
|
+
function initOptions({ searchParams }: URL) {
|
|
24
|
+
const selection = searchParams.get(field.key)
|
|
25
|
+
const selections = jsonParse<string[]>(searchParams.get(field.key), [])
|
|
26
|
+
|
|
27
|
+
function getActive(value: string) {
|
|
28
|
+
if (!multiSelect) return selection === value
|
|
29
|
+
return selections.includes(value)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return parseOptions(options).map((option) => ({
|
|
33
|
+
...option,
|
|
34
|
+
isActive: getActive(option.value)
|
|
35
|
+
}))
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const getHref = derived(urlParam, (params) => (value: string) => {
|
|
39
|
+
const selections = jsonParse<string[]>(params.get(field.key), [])
|
|
40
|
+
if (!multiSelect) return params.toggle({ [field.key]: value }, 'skip', 'take')
|
|
41
|
+
if (selections.includes(value)) {
|
|
42
|
+
const newSelections = selections.filter((v) => v !== value)
|
|
43
|
+
if (!newSelections.length) return params.without(field.key)
|
|
44
|
+
return params.with({ [field.key]: JSON.stringify(newSelections) }, 'skip', 'take')
|
|
45
|
+
}
|
|
46
|
+
return params.with({ [field.key]: JSON.stringify([...selections, value]) }, 'skip', 'take')
|
|
47
|
+
})
|
|
42
48
|
</script>
|
|
43
49
|
|
|
44
50
|
<th class="p-1">
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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">
|
package/dist/ui/tabs/Tabs.svelte
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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,31 +1,34 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export let
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fuma",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jonas Voisard",
|
|
@@ -54,44 +54,42 @@
|
|
|
54
54
|
"!dist/**/*.spec.*"
|
|
55
55
|
],
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@sveltejs/kit": "^2.5.6"
|
|
58
|
-
"svelte": "^4.0.0"
|
|
57
|
+
"@sveltejs/kit": "^2.5.6"
|
|
59
58
|
},
|
|
60
59
|
"devDependencies": {
|
|
61
|
-
"@sveltejs/adapter-auto": "^3.
|
|
62
|
-
"@sveltejs/kit": "^2.
|
|
60
|
+
"@sveltejs/adapter-auto": "^3.2.0",
|
|
61
|
+
"@sveltejs/kit": "^2.9.0",
|
|
63
62
|
"@sveltejs/package": "^2.3.1",
|
|
64
|
-
"@sveltejs/vite-plugin-svelte": "^3.1.0",
|
|
65
63
|
"@tailwindcss/typography": "^0.5.13",
|
|
66
64
|
"@types/debounce": "^1.2.4",
|
|
67
|
-
"@types/eslint": "^8.56.
|
|
65
|
+
"@types/eslint": "^8.56.10",
|
|
68
66
|
"@types/node": "^20.12.7",
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
70
|
-
"@typescript-eslint/parser": "^7.
|
|
71
|
-
"autoprefixer": "^10.4.
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
68
|
+
"@typescript-eslint/parser": "^7.7.0",
|
|
69
|
+
"autoprefixer": "^10.4.19",
|
|
72
70
|
"daisyui": "^4.10.2",
|
|
73
|
-
"eslint": "^8.
|
|
71
|
+
"eslint": "^8.57.0",
|
|
74
72
|
"eslint-config-prettier": "^9.1.0",
|
|
75
|
-
"eslint-plugin-svelte": "^2.
|
|
76
|
-
"postcss": "^8.4.
|
|
77
|
-
"postcss-load-config": "^5.0.
|
|
78
|
-
"prettier": "^3.
|
|
79
|
-
"prettier-plugin-svelte": "^3.
|
|
80
|
-
"prettier-plugin-tailwindcss": "^0.5.
|
|
81
|
-
"prisma": "^5.
|
|
82
|
-
"publint": "^0.1.
|
|
83
|
-
"svelte": "^
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"vitest": "^1.2.0"
|
|
73
|
+
"eslint-plugin-svelte": "^2.37.0",
|
|
74
|
+
"postcss": "^8.4.38",
|
|
75
|
+
"postcss-load-config": "^5.0.3",
|
|
76
|
+
"prettier": "^3.2.5",
|
|
77
|
+
"prettier-plugin-svelte": "^3.2.3",
|
|
78
|
+
"prettier-plugin-tailwindcss": "^0.5.14",
|
|
79
|
+
"prisma": "^5.22.0",
|
|
80
|
+
"publint": "^0.1.16",
|
|
81
|
+
"svelte-check": "^3.6.9",
|
|
82
|
+
"tailwindcss": "^3.4.3",
|
|
83
|
+
"tslib": "^2.6.2",
|
|
84
|
+
"typescript": "^5.4.5",
|
|
85
|
+
"vite": "^6.0.2",
|
|
86
|
+
"vitest": "^1.5.0"
|
|
90
87
|
},
|
|
91
88
|
"dependencies": {
|
|
92
89
|
"@lucia-auth/adapter-prisma": "^4.0.1",
|
|
93
90
|
"@mdi/js": "^7.4.47",
|
|
94
|
-
"@prisma/client": "5.
|
|
91
|
+
"@prisma/client": "5.22.0",
|
|
92
|
+
"@sveltejs/vite-plugin-svelte": "5.0.1",
|
|
95
93
|
"@tiptap/core": "^2.3.0",
|
|
96
94
|
"@tiptap/extension-color": "^2.3.0",
|
|
97
95
|
"@tiptap/extension-highlight": "^2.3.0",
|
|
@@ -109,16 +107,17 @@
|
|
|
109
107
|
"axios": "^1.6.8",
|
|
110
108
|
"dayjs": "^1.11.10",
|
|
111
109
|
"debounce": "^2.0.0",
|
|
112
|
-
"devalue": "^4.3.
|
|
110
|
+
"devalue": "^4.3.3",
|
|
113
111
|
"litepicker": "^2.0.12",
|
|
114
|
-
"lucia": "^3.
|
|
115
|
-
"mode-watcher": "^0.
|
|
112
|
+
"lucia": "^3.2.2",
|
|
113
|
+
"mode-watcher": "^0.5.0",
|
|
116
114
|
"oslo": "^1.2.0",
|
|
117
|
-
"svelte
|
|
118
|
-
"svelte-
|
|
115
|
+
"svelte": "^5.4.0",
|
|
116
|
+
"svelte-easy-crop": "^3.0.1",
|
|
117
|
+
"svelte-sonner": "^0.3.28",
|
|
119
118
|
"tippy.js": "^6.3.7",
|
|
120
119
|
"ts-node": "^10.9.2",
|
|
121
|
-
"zod": "^3.22.
|
|
120
|
+
"zod": "^3.22.5"
|
|
122
121
|
},
|
|
123
122
|
"scripts": {
|
|
124
123
|
"dev": "vite dev --host",
|
package/dist/ui/slot/Slot.svelte
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<script context="module"></script>
|
|
2
|
-
|
|
3
|
-
<script generics="Slot extends _Slot">import {} from "svelte";
|
|
4
|
-
import { component } from "../../utils/component.js";
|
|
5
|
-
import Span from "./Span.svelte";
|
|
6
|
-
export let slot = void 0;
|
|
7
|
-
export let args = void 0;
|
|
8
|
-
function getComponentAndProps(_slot) {
|
|
9
|
-
if (typeof _slot === "function") {
|
|
10
|
-
if (isComponentType(_slot))
|
|
11
|
-
return { component: _slot, props: {} };
|
|
12
|
-
if (!args) {
|
|
13
|
-
console.error("args prop is required with slot as function");
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
const result = _slot(args);
|
|
17
|
-
return getComponentAndProps(result);
|
|
18
|
-
}
|
|
19
|
-
if (typeof _slot === "object")
|
|
20
|
-
return _slot;
|
|
21
|
-
return component(Span, { content: _slot });
|
|
22
|
-
}
|
|
23
|
-
function isComponentType(fun) {
|
|
24
|
-
return !!fun.prototype?.constructor?.name;
|
|
25
|
-
}
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
{#if slot}
|
|
29
|
-
{@const s = getComponentAndProps(slot)}
|
|
30
|
-
{#if s !== null}
|
|
31
|
-
<svelte:component this={s.component} {...s.props} />
|
|
32
|
-
{/if}
|
|
33
|
-
{:else}
|
|
34
|
-
<slot />
|
|
35
|
-
{/if}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
type _Slot = ((...args: any) => ComponentAndProps | ComponentType | string) | ComponentAndProps | ComponentType | string;
|
|
3
|
-
import { type ComponentType } from 'svelte';
|
|
4
|
-
import { type ComponentAndProps } from '../../utils/component.js';
|
|
5
|
-
declare class __sveltets_Render<Slot extends _Slot> {
|
|
6
|
-
props(): {
|
|
7
|
-
slot?: Slot | null | undefined;
|
|
8
|
-
args?: (Slot extends (...args: any) => any ? Parameters<Slot>[0] : undefined) | null | undefined;
|
|
9
|
-
};
|
|
10
|
-
events(): {} & {
|
|
11
|
-
[evt: string]: CustomEvent<any>;
|
|
12
|
-
};
|
|
13
|
-
slots(): {
|
|
14
|
-
default: {};
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export type SlotProps<Slot extends _Slot> = ReturnType<__sveltets_Render<Slot>['props']>;
|
|
18
|
-
export type SlotEvents<Slot extends _Slot> = ReturnType<__sveltets_Render<Slot>['events']>;
|
|
19
|
-
export type SlotSlots<Slot extends _Slot> = ReturnType<__sveltets_Render<Slot>['slots']>;
|
|
20
|
-
export default class Slot<Slot extends _Slot> extends SvelteComponent<SlotProps<Slot>, SlotEvents<Slot>, SlotSlots<Slot>> {
|
|
21
|
-
}
|
|
22
|
-
export {};
|
package/dist/ui/slot/Span.svelte
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
content: string;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type SpanProps = typeof __propDef.props;
|
|
12
|
-
export type SpanEvents = typeof __propDef.events;
|
|
13
|
-
export type SpanSlots = typeof __propDef.slots;
|
|
14
|
-
export default class Span extends SvelteComponent<SpanProps, SpanEvents, SpanSlots> {
|
|
15
|
-
}
|
|
16
|
-
export {};
|
package/dist/ui/slot/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Slot } from './Slot.svelte';
|
package/dist/ui/slot/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Slot } from './Slot.svelte';
|