lapikit 0.5.9 → 0.6.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/dist/@types/actions.d.ts +6 -0
- package/dist/@types/index.d.ts +1 -0
- package/dist/@types/index.js +1 -0
- package/dist/@types/props.d.ts +1 -0
- package/dist/actions.d.ts +2 -0
- package/dist/actions.js +2 -0
- package/dist/animations/ripple.d.ts +1 -1
- package/dist/animations/ripple.js +36 -23
- package/dist/components/app/app.svelte +122 -8
- package/dist/components/card/card.svelte +49 -96
- package/dist/components/card/card.types.d.ts +22 -2
- package/dist/components/card/modules/card-actions.svelte +53 -0
- package/dist/components/card/modules/card-actions.svelte.d.ts +4 -0
- package/dist/components/card/modules/card-container.svelte +51 -0
- package/dist/components/card/modules/card-container.svelte.d.ts +4 -0
- package/dist/components/card/modules/card-content.svelte +56 -0
- package/dist/components/card/modules/card-content.svelte.d.ts +4 -0
- package/dist/components/card/modules/card-media.svelte +52 -0
- package/dist/components/card/modules/card-media.svelte.d.ts +4 -0
- package/dist/components/card/modules/card-title.svelte +56 -0
- package/dist/components/card/modules/card-title.svelte.d.ts +4 -0
- package/dist/components/dialog/dialog.svelte +1 -2
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +5 -0
- package/dist/{@legacy/stores/components.d.ts → components/modal/modal.d.ts} +1 -2
- package/dist/{@legacy/stores/components.js → components/modal/modal.js} +1 -1
- package/dist/components/modal/modal.svelte +1 -1
- package/dist/components/textfield/textfield.svelte.d.ts +1 -1
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +8 -3
- package/dist/utils/components.d.ts +1 -0
- package/dist/utils/components.js +16 -0
- package/dist/utils/outside.d.ts +1 -0
- package/dist/utils/outside.js +5 -0
- package/dist/{@legacy/stores → utils}/themes.d.ts +1 -0
- package/dist/{@legacy/actions/use-theme.js → utils/themes.js} +4 -1
- package/package.json +11 -32
- package/dist/@legacy/actions/accordion.svelte.d.ts +0 -9
- package/dist/@legacy/actions/index.d.ts +0 -2
- package/dist/@legacy/actions/index.js +0 -2
- package/dist/@legacy/actions/use-theme.d.ts +0 -1
- package/dist/@legacy/assets/icons/arrow-down.svelte +0 -12
- package/dist/@legacy/assets/icons/arrow-down.svelte.d.ts +0 -18
- package/dist/@legacy/assets/icons/arrow-up.svelte +0 -12
- package/dist/@legacy/assets/icons/arrow-up.svelte.d.ts +0 -18
- package/dist/@legacy/assets/icons/close-fill.svelte +0 -12
- package/dist/@legacy/assets/icons/close-fill.svelte.d.ts +0 -18
- package/dist/@legacy/assets/icons/loading-fill.svelte +0 -31
- package/dist/@legacy/assets/icons/loading-fill.svelte.d.ts +0 -18
- package/dist/@legacy/components/accordion/accordion.css +0 -36
- package/dist/@legacy/components/accordion/accordion.svelte +0 -39
- package/dist/@legacy/components/accordion/accordion.svelte.d.ts +0 -4
- package/dist/@legacy/components/accordion/modules/accordion-item.css +0 -68
- package/dist/@legacy/components/accordion/modules/accordion-item.svelte +0 -94
- package/dist/@legacy/components/accordion/modules/accordion-item.svelte.d.ts +0 -4
- package/dist/@legacy/components/accordion/types.d.ts +0 -33
- package/dist/@legacy/components/alert/alert.css +0 -130
- package/dist/@legacy/components/alert/alert.svelte +0 -89
- package/dist/@legacy/components/alert/alert.svelte.d.ts +0 -4
- package/dist/@legacy/components/alert/types.d.ts +0 -28
- package/dist/@legacy/components/alert/types.js +0 -1
- package/dist/@legacy/components/app/app.css +0 -26
- package/dist/@legacy/components/app/app.svelte +0 -79
- package/dist/@legacy/components/app/app.svelte.d.ts +0 -4
- package/dist/@legacy/components/app/types.d.ts +0 -10
- package/dist/@legacy/components/app/types.js +0 -1
- package/dist/@legacy/components/appbar/appbar.css +0 -38
- package/dist/@legacy/components/appbar/appbar.svelte +0 -40
- package/dist/@legacy/components/appbar/appbar.svelte.d.ts +0 -4
- package/dist/@legacy/components/appbar/types.d.ts +0 -15
- package/dist/@legacy/components/appbar/types.js +0 -1
- package/dist/@legacy/components/aspect-ratio/aspect-ratio.css +0 -19
- package/dist/@legacy/components/aspect-ratio/aspect-ratio.svelte +0 -25
- package/dist/@legacy/components/aspect-ratio/aspect-ratio.svelte.d.ts +0 -4
- package/dist/@legacy/components/aspect-ratio/types.d.ts +0 -5
- package/dist/@legacy/components/aspect-ratio/types.js +0 -1
- package/dist/@legacy/components/avatar/avatar.css +0 -102
- package/dist/@legacy/components/avatar/avatar.svelte +0 -46
- package/dist/@legacy/components/avatar/avatar.svelte.d.ts +0 -4
- package/dist/@legacy/components/avatar/types.d.ts +0 -22
- package/dist/@legacy/components/avatar/types.js +0 -1
- package/dist/@legacy/components/button/button.css +0 -240
- package/dist/@legacy/components/button/button.svelte +0 -102
- package/dist/@legacy/components/button/button.svelte.d.ts +0 -4
- package/dist/@legacy/components/button/types.d.ts +0 -29
- package/dist/@legacy/components/button/types.js +0 -1
- package/dist/@legacy/components/card/card.css +0 -105
- package/dist/@legacy/components/card/card.svelte +0 -67
- package/dist/@legacy/components/card/card.svelte.d.ts +0 -4
- package/dist/@legacy/components/card/types.d.ts +0 -20
- package/dist/@legacy/components/card/types.js +0 -1
- package/dist/@legacy/components/chip/chip.css +0 -224
- package/dist/@legacy/components/chip/chip.svelte +0 -131
- package/dist/@legacy/components/chip/chip.svelte.d.ts +0 -4
- package/dist/@legacy/components/chip/types.d.ts +0 -32
- package/dist/@legacy/components/chip/types.js +0 -1
- package/dist/@legacy/components/dialog/dialog.css +0 -129
- package/dist/@legacy/components/dialog/dialog.svelte +0 -67
- package/dist/@legacy/components/dialog/dialog.svelte.d.ts +0 -4
- package/dist/@legacy/components/dialog/types.d.ts +0 -24
- package/dist/@legacy/components/dialog/types.js +0 -1
- package/dist/@legacy/components/dropdown/dropdown.css +0 -13
- package/dist/@legacy/components/dropdown/dropdown.svelte +0 -115
- package/dist/@legacy/components/dropdown/dropdown.svelte.d.ts +0 -4
- package/dist/@legacy/components/dropdown/types.d.ts +0 -26
- package/dist/@legacy/components/dropdown/types.js +0 -1
- package/dist/@legacy/components/icon/icon.css +0 -78
- package/dist/@legacy/components/icon/icon.svelte +0 -49
- package/dist/@legacy/components/icon/icon.svelte.d.ts +0 -4
- package/dist/@legacy/components/icon/types.d.ts +0 -16
- package/dist/@legacy/components/icon/types.js +0 -1
- package/dist/@legacy/components/index.d.ts +0 -22
- package/dist/@legacy/components/index.js +0 -23
- package/dist/@legacy/components/list/list.css +0 -149
- package/dist/@legacy/components/list/list.svelte +0 -44
- package/dist/@legacy/components/list/list.svelte.d.ts +0 -4
- package/dist/@legacy/components/list/modules/list-item.css +0 -67
- package/dist/@legacy/components/list/modules/list-item.svelte +0 -76
- package/dist/@legacy/components/list/modules/list-item.svelte.d.ts +0 -4
- package/dist/@legacy/components/list/types.d.ts +0 -33
- package/dist/@legacy/components/list/types.js +0 -1
- package/dist/@legacy/components/modal/modal.css +0 -137
- package/dist/@legacy/components/modal/modal.svelte +0 -118
- package/dist/@legacy/components/modal/modal.svelte.d.ts +0 -4
- package/dist/@legacy/components/modal/types.d.ts +0 -26
- package/dist/@legacy/components/modal/types.js +0 -1
- package/dist/@legacy/components/popover/popover.css +0 -13
- package/dist/@legacy/components/popover/popover.svelte +0 -73
- package/dist/@legacy/components/popover/popover.svelte.d.ts +0 -4
- package/dist/@legacy/components/popover/types.d.ts +0 -20
- package/dist/@legacy/components/popover/types.js +0 -1
- package/dist/@legacy/components/separator/separator.css +0 -42
- package/dist/@legacy/components/separator/separator.svelte +0 -37
- package/dist/@legacy/components/separator/separator.svelte.d.ts +0 -4
- package/dist/@legacy/components/separator/types.d.ts +0 -15
- package/dist/@legacy/components/separator/types.js +0 -1
- package/dist/@legacy/components/spacer/spacer.css +0 -3
- package/dist/@legacy/components/spacer/spacer.svelte +0 -7
- package/dist/@legacy/components/spacer/spacer.svelte.d.ts +0 -4
- package/dist/@legacy/components/spacer/types.d.ts +0 -4
- package/dist/@legacy/components/spacer/types.js +0 -1
- package/dist/@legacy/components/textfield/textfield.css +0 -298
- package/dist/@legacy/components/textfield/textfield.svelte +0 -193
- package/dist/@legacy/components/textfield/textfield.svelte.d.ts +0 -4
- package/dist/@legacy/components/textfield/types.d.ts +0 -37
- package/dist/@legacy/components/textfield/types.js +0 -1
- package/dist/@legacy/components/toolbar/toolbar.css +0 -106
- package/dist/@legacy/components/toolbar/toolbar.svelte +0 -47
- package/dist/@legacy/components/toolbar/toolbar.svelte.d.ts +0 -4
- package/dist/@legacy/components/toolbar/types.d.ts +0 -27
- package/dist/@legacy/components/toolbar/types.js +0 -1
- package/dist/@legacy/components/tooltip/tooltip.css +0 -116
- package/dist/@legacy/components/tooltip/tooltip.svelte +0 -113
- package/dist/@legacy/components/tooltip/tooltip.svelte.d.ts +0 -4
- package/dist/@legacy/components/tooltip/types.d.ts +0 -23
- package/dist/@legacy/components/tooltip/types.js +0 -1
- package/dist/@legacy/index.d.ts +0 -3
- package/dist/@legacy/index.js +0 -24
- package/dist/@legacy/internal/config/presets.d.ts +0 -149
- package/dist/@legacy/internal/config/presets.js +0 -169
- package/dist/@legacy/internal/config/variables.d.ts +0 -3
- package/dist/@legacy/internal/config/variables.js +0 -3
- package/dist/@legacy/internal/core/actions/assets.svelte.d.ts +0 -8
- package/dist/@legacy/internal/core/actions/assets.svelte.js +0 -54
- package/dist/@legacy/internal/core/actions/dropdown.svelte.d.ts +0 -7
- package/dist/@legacy/internal/core/actions/dropdown.svelte.js +0 -148
- package/dist/@legacy/internal/core/actions/popover.svelte.d.ts +0 -7
- package/dist/@legacy/internal/core/actions/popover.svelte.js +0 -134
- package/dist/@legacy/internal/core/actions/tooltip.svelte.d.ts +0 -7
- package/dist/@legacy/internal/core/actions/tooltip.svelte.js +0 -131
- package/dist/@legacy/internal/core/animations/ripple.d.ts +0 -12
- package/dist/@legacy/internal/core/animations/ripple.js +0 -96
- package/dist/@legacy/internal/core/bin/ansi.d.ts +0 -40
- package/dist/@legacy/internal/core/bin/ansi.js +0 -44
- package/dist/@legacy/internal/core/bin/terminal.d.ts +0 -1
- package/dist/@legacy/internal/core/bin/terminal.js +0 -12
- package/dist/@legacy/internal/core/css.d.ts +0 -1
- package/dist/@legacy/internal/core/css.js +0 -16
- package/dist/@legacy/internal/core/formatter/component.d.ts +0 -5
- package/dist/@legacy/internal/core/formatter/component.js +0 -60
- package/dist/@legacy/internal/core/formatter/device.d.ts +0 -5
- package/dist/@legacy/internal/core/formatter/device.js +0 -66
- package/dist/@legacy/internal/core/formatter/index.d.ts +0 -7
- package/dist/@legacy/internal/core/formatter/index.js +0 -35
- package/dist/@legacy/internal/core/formatter/style.d.ts +0 -4
- package/dist/@legacy/internal/core/formatter/style.js +0 -15
- package/dist/@legacy/internal/core/formatter/theme.d.ts +0 -5
- package/dist/@legacy/internal/core/formatter/theme.js +0 -44
- package/dist/@legacy/internal/core/formatter/typography.d.ts +0 -5
- package/dist/@legacy/internal/core/formatter/typography.js +0 -12
- package/dist/@legacy/internal/core/minify.d.ts +0 -1
- package/dist/@legacy/internal/core/minify.js +0 -10
- package/dist/@legacy/internal/core/standard-colors.d.ts +0 -75
- package/dist/@legacy/internal/core/standard-colors.js +0 -75
- package/dist/@legacy/internal/core/x11-colors.d.ts +0 -4
- package/dist/@legacy/internal/core/x11-colors.js +0 -151
- package/dist/@legacy/internal/helpers/colors.d.ts +0 -1
- package/dist/@legacy/internal/helpers/colors.js +0 -50
- package/dist/@legacy/internal/helpers/convert.d.ts +0 -1
- package/dist/@legacy/internal/helpers/convert.js +0 -17
- package/dist/@legacy/internal/helpers/deep-merge.d.ts +0 -44
- package/dist/@legacy/internal/helpers/deep-merge.js +0 -80
- package/dist/@legacy/internal/helpers/outside.d.ts +0 -9
- package/dist/@legacy/internal/helpers/outside.js +0 -34
- package/dist/@legacy/internal/helpers/parser.d.ts +0 -10
- package/dist/@legacy/internal/helpers/parser.js +0 -93
- package/dist/@legacy/internal/helpers/scroll.d.ts +0 -1
- package/dist/@legacy/internal/helpers/scroll.js +0 -5
- package/dist/@legacy/internal/plugins/vite.d.ts +0 -8
- package/dist/@legacy/internal/plugins/vite.js +0 -33
- package/dist/@legacy/internal/types/components.d.ts +0 -14
- package/dist/@legacy/internal/types/components.js +0 -1
- package/dist/@legacy/internal/types/configuration.d.ts +0 -63
- package/dist/@legacy/internal/types/configuration.js +0 -1
- package/dist/@legacy/internal/types/index.d.ts +0 -2
- package/dist/@legacy/internal/types/index.js +0 -2
- package/dist/@legacy/stores/breakpoints.d.ts +0 -6
- package/dist/@legacy/stores/breakpoints.js +0 -14
- package/dist/@legacy/stores/devices.d.ts +0 -6
- package/dist/@legacy/stores/devices.js +0 -9
- package/dist/@legacy/stores/index.d.ts +0 -5
- package/dist/@legacy/stores/index.js +0 -5
- package/dist/@legacy/stores/themes.js +0 -4
- package/dist/@legacy/stores/viewport.d.ts +0 -7
- package/dist/@legacy/stores/viewport.js +0 -7
- package/dist/@legacy/styles/animation.css +0 -33
- package/dist/@legacy/styles/keyframes.css +0 -30
- package/dist/@legacy/styles/reset.css +0 -133
- package/dist/@legacy/styles.css +0 -0
- package/dist/@legacy/styles.css.d.ts +0 -4
- package/dist/@legacy/themes.css +0 -0
- package/dist/@legacy/themes.css.d.ts +0 -4
- /package/dist/{@legacy/components/accordion/types.js → @types/actions.js} +0 -0
- /package/dist/{@legacy/actions → components/accordion}/accordion.svelte.js +0 -0
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getAssets } from '../../internal/core/actions/assets.svelte.js';
|
|
3
|
-
import type { TextfieldProps } from './types.js';
|
|
4
|
-
|
|
5
|
-
//external
|
|
6
|
-
import { Icon } from '../index.js';
|
|
7
|
-
|
|
8
|
-
let {
|
|
9
|
-
ref = $bindable(),
|
|
10
|
-
prepend,
|
|
11
|
-
append,
|
|
12
|
-
prependInner,
|
|
13
|
-
appendInner,
|
|
14
|
-
value = $bindable(),
|
|
15
|
-
type = 'text',
|
|
16
|
-
density = 'default',
|
|
17
|
-
size = 'md',
|
|
18
|
-
variant = 'filled',
|
|
19
|
-
placeholder,
|
|
20
|
-
light,
|
|
21
|
-
dark,
|
|
22
|
-
counter,
|
|
23
|
-
min,
|
|
24
|
-
max,
|
|
25
|
-
prefix,
|
|
26
|
-
suffix,
|
|
27
|
-
message,
|
|
28
|
-
messagePrefix,
|
|
29
|
-
messageSuffix,
|
|
30
|
-
clearable,
|
|
31
|
-
persistentClear,
|
|
32
|
-
disabled,
|
|
33
|
-
error,
|
|
34
|
-
errorMessage,
|
|
35
|
-
persistentMessage,
|
|
36
|
-
hideSpinButtons, // only type="number"
|
|
37
|
-
readonly,
|
|
38
|
-
color,
|
|
39
|
-
background,
|
|
40
|
-
rounded,
|
|
41
|
-
...rest
|
|
42
|
-
}: TextfieldProps = $props();
|
|
43
|
-
|
|
44
|
-
const assets = getAssets();
|
|
45
|
-
|
|
46
|
-
let counterValue: number = $state(0);
|
|
47
|
-
let displayMessage: boolean = $state(false);
|
|
48
|
-
let displayClear: boolean = $state(false);
|
|
49
|
-
|
|
50
|
-
const inputClear = () => {
|
|
51
|
-
value = undefined;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
const handleFocus = () => {
|
|
55
|
-
if (!error && !persistentMessage) displayMessage = true;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
const handleBlur = () => {
|
|
59
|
-
if (!error && !persistentMessage) displayMessage = false;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
$effect(() => {
|
|
63
|
-
if (persistentClear) displayClear = true;
|
|
64
|
-
if (persistentMessage) displayMessage = true;
|
|
65
|
-
else if (error) displayMessage = true;
|
|
66
|
-
else if (!error) displayMessage = false;
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
$effect(() => {
|
|
70
|
-
const valueStr = value?.toString() || '';
|
|
71
|
-
|
|
72
|
-
if (valueStr && typeof max === 'number' && max > 0 && valueStr.length > max) {
|
|
73
|
-
const truncated = valueStr.slice(0, max);
|
|
74
|
-
if (typeof value === 'number') {
|
|
75
|
-
const numValue = Number(truncated);
|
|
76
|
-
value = isNaN(numValue) ? undefined : numValue;
|
|
77
|
-
} else {
|
|
78
|
-
value = truncated;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
counterValue = valueStr.length;
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
$effect(() => {
|
|
86
|
-
if (!persistentClear) {
|
|
87
|
-
if (value) displayClear = true;
|
|
88
|
-
else displayClear = false;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
</script>
|
|
92
|
-
|
|
93
|
-
<div
|
|
94
|
-
bind:this={ref}
|
|
95
|
-
{...rest}
|
|
96
|
-
class={[
|
|
97
|
-
'kit-textfield',
|
|
98
|
-
light && 'light',
|
|
99
|
-
dark && 'dark',
|
|
100
|
-
size && assets.className('textfield', 'size', size),
|
|
101
|
-
variant && assets.className('textfield', 'variant', variant),
|
|
102
|
-
density && assets.className('textfield', 'density', density),
|
|
103
|
-
disabled && 'kit-textfield--disabled',
|
|
104
|
-
readonly && 'kit-textfield--readonly',
|
|
105
|
-
error && 'kit-textfield--error',
|
|
106
|
-
type === 'number' && hideSpinButtons && 'kit-textfield--hide-spin-buttons',
|
|
107
|
-
rest.class
|
|
108
|
-
]}
|
|
109
|
-
style:--textfield-background={assets.color(background)}
|
|
110
|
-
style:--textfield-color={assets.color(color)}
|
|
111
|
-
style:--textfield-shape={assets.shape(rounded)}
|
|
112
|
-
>
|
|
113
|
-
{#if prepend}
|
|
114
|
-
<div class="kit-textfield-prepend">
|
|
115
|
-
{@render prepend?.()}
|
|
116
|
-
</div>
|
|
117
|
-
{/if}
|
|
118
|
-
<div class="kit-textfield-control">
|
|
119
|
-
<div class="kit-field">
|
|
120
|
-
{#if prependInner}
|
|
121
|
-
<div class="kit-textfield-prepend-inner">
|
|
122
|
-
{@render prependInner?.()}
|
|
123
|
-
</div>
|
|
124
|
-
{/if}
|
|
125
|
-
<div class="kit-field--field">
|
|
126
|
-
{#if prefix}
|
|
127
|
-
<span class="kit-field--field-prefix">
|
|
128
|
-
<span class="kit-textfield--field-prefix--text">{prefix}</span>
|
|
129
|
-
</span>
|
|
130
|
-
{/if}
|
|
131
|
-
<input
|
|
132
|
-
{type}
|
|
133
|
-
size="1"
|
|
134
|
-
{placeholder}
|
|
135
|
-
bind:value
|
|
136
|
-
onfocus={handleFocus}
|
|
137
|
-
onblur={handleBlur}
|
|
138
|
-
{...max && { maxlength: max }}
|
|
139
|
-
{...min && { minlength: min }}
|
|
140
|
-
{...disabled && { disabled: true }}
|
|
141
|
-
{...readonly && { readonly: true }}
|
|
142
|
-
/>
|
|
143
|
-
{#if suffix}
|
|
144
|
-
<span class="kit-field--field-suffix">
|
|
145
|
-
<span class="kit-textfield--field-suffix--text">{suffix}</span>
|
|
146
|
-
</span>
|
|
147
|
-
{/if}
|
|
148
|
-
</div>
|
|
149
|
-
{#if clearable}
|
|
150
|
-
<div
|
|
151
|
-
class={['kit-textfield-clearable', displayClear && 'kit-textfield-clearable--visible']}
|
|
152
|
-
>
|
|
153
|
-
<Icon icon="mgc_close_circle_fill" onclick={() => inputClear()} />
|
|
154
|
-
</div>
|
|
155
|
-
{/if}
|
|
156
|
-
|
|
157
|
-
{#if appendInner}
|
|
158
|
-
<div class="kit-textfield-append-inner">
|
|
159
|
-
{@render appendInner?.()}
|
|
160
|
-
</div>
|
|
161
|
-
{/if}
|
|
162
|
-
|
|
163
|
-
<div class="kit-textfield-outline"></div>
|
|
164
|
-
</div>
|
|
165
|
-
</div>
|
|
166
|
-
{#if append}
|
|
167
|
-
<div class="kit-textfield-append">
|
|
168
|
-
{@render append?.()}
|
|
169
|
-
</div>
|
|
170
|
-
{/if}
|
|
171
|
-
|
|
172
|
-
<div class={['kit-textfield-message', displayMessage && 'kit-textfield-message--visible']}>
|
|
173
|
-
<div class={['kit-message', error && 'kit-message--message-error']}>
|
|
174
|
-
{#if messagePrefix}
|
|
175
|
-
<div class="kit-message--prepend">{messagePrefix}</div>
|
|
176
|
-
{/if}
|
|
177
|
-
{#if message || error}
|
|
178
|
-
<div class="kit-message--message">
|
|
179
|
-
{error ? errorMessage || message : message}
|
|
180
|
-
</div>
|
|
181
|
-
{/if}
|
|
182
|
-
{#if counter || messageSuffix}
|
|
183
|
-
<div class="kit-message--append">
|
|
184
|
-
{#if counter}
|
|
185
|
-
{counterValue}{max ? `/${max}` : ''}
|
|
186
|
-
{:else if messageSuffix}
|
|
187
|
-
{messageSuffix}
|
|
188
|
-
{/if}
|
|
189
|
-
</div>
|
|
190
|
-
{/if}
|
|
191
|
-
</div>
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { Component } from '../../internal/types/index.js';
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
export interface TextfieldProps extends Component {
|
|
4
|
-
ref?: HTMLElement | null;
|
|
5
|
-
dark?: boolean;
|
|
6
|
-
light?: boolean;
|
|
7
|
-
value?: string | number;
|
|
8
|
-
type?: 'text' | 'email' | 'password' | 'number';
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
counter?: boolean;
|
|
11
|
-
min?: number;
|
|
12
|
-
max?: number;
|
|
13
|
-
variant?: 'outline' | 'text' | 'filled';
|
|
14
|
-
density?: 'compact' | 'comfortable' | 'default';
|
|
15
|
-
error?: boolean;
|
|
16
|
-
errorMessage?: string;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
color?: string;
|
|
19
|
-
background?: string;
|
|
20
|
-
size?: string | {
|
|
21
|
-
[key: string]: string;
|
|
22
|
-
};
|
|
23
|
-
readonly?: boolean;
|
|
24
|
-
hideSpinButtons?: boolean;
|
|
25
|
-
persistentMessage?: boolean;
|
|
26
|
-
persistentClear?: boolean;
|
|
27
|
-
clearable?: boolean;
|
|
28
|
-
message?: string;
|
|
29
|
-
messagePrefix?: string;
|
|
30
|
-
messageSuffix?: string;
|
|
31
|
-
append?: Snippet;
|
|
32
|
-
prepend?: Snippet;
|
|
33
|
-
prependInner?: Snippet;
|
|
34
|
-
appendInner?: Snippet;
|
|
35
|
-
prefix?: string;
|
|
36
|
-
suffix?: string;
|
|
37
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
.kit-toolbar {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
border-style: solid;
|
|
5
|
-
border-width: 1px;
|
|
6
|
-
border-style: solid;
|
|
7
|
-
border-radius: var(--toolbar-shape, var(--system-shape-md));
|
|
8
|
-
color: var(--toolbar-color, var(--kit-label-primary));
|
|
9
|
-
background-color: var(--toolbar-background, var(--kit-background-grouped-tertiary));
|
|
10
|
-
border-color: var(--toolbar-background, var(--kit-background-grouped-tertiary));
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/* density */
|
|
14
|
-
.kit-toolbar[breakpoint]kit-toolbar--density-default:not([class*='toolbar--orientation-vertical']) {
|
|
15
|
-
height: 3rem;
|
|
16
|
-
padding-inline: calc(var(--system-spacing) * 1.5);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.kit-toolbar[breakpoint]kit-toolbar--density-default[class*='toolbar--orientation-vertical'] {
|
|
20
|
-
width: 3rem;
|
|
21
|
-
padding: calc(var(--system-spacing) * 1.5) 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.kit-toolbar[breakpoint]kit-toolbar--density-compact:not([class*='toolbar--orientation-vertical']) {
|
|
25
|
-
height: 2.625rem;
|
|
26
|
-
padding-inline: calc(var(--system-spacing) * 0.75);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.kit-toolbar[breakpoint]kit-toolbar--density-compact[class*='toolbar--orientation-vertical'] {
|
|
30
|
-
width: 2.625rem;
|
|
31
|
-
padding: calc(var(--system-spacing) * 0.75) 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.kit-toolbar[breakpoint]kit-toolbar--density-comfortable:not(
|
|
35
|
-
[class*='toolbar--orientation-vertical']
|
|
36
|
-
) {
|
|
37
|
-
height: 3.5rem;
|
|
38
|
-
padding-inline: calc(var(--system-spacing) * 2.25);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.kit-toolbar[breakpoint]kit-toolbar--density-comfortable[class*='toolbar--orientation-vertical'] {
|
|
42
|
-
width: 3.5rem;
|
|
43
|
-
padding: calc(var(--system-spacing) * 2.25) 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.kit-toolbar[breakpoint]kit-toolbar--variant-text,
|
|
47
|
-
.kit-toolbar[breakpoint]kit-toolbar--variant-outline,
|
|
48
|
-
.kit-toolbar[breakpoint]kit-toolbar--variant-dash {
|
|
49
|
-
--toolbar-color: var(--base, var(--kit-background-grouped-primary));
|
|
50
|
-
background-color: transparent;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.kit-toolbar[breakpoint]kit-toolbar--variant-outline {
|
|
54
|
-
border-color: currentColor;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.kit-toolbar[breakpoint]kit-toolbar--variant-dash {
|
|
58
|
-
border-style: dashed;
|
|
59
|
-
border-color: currentColor;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.kit-toolbar[breakpoint]kit-toolbar--orientation-horizontal {
|
|
63
|
-
flex-direction: row;
|
|
64
|
-
width: 100%;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.kit-toolbar[breakpoint]kit-toolbar--orientation-vertical {
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
min-height: fit-content;
|
|
70
|
-
width: fit-content;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/* wrapper */
|
|
74
|
-
.kit-toolbar .kit-toolbar--wrapper {
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
/* margin-left: auto;
|
|
78
|
-
margin-right: auto; */
|
|
79
|
-
flex-direction: row;
|
|
80
|
-
height: auto;
|
|
81
|
-
width: 100%;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.kit-toolbar[breakpoint]kit-toolbar--orientation-vertical .kit-toolbar--wrapper {
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
height: 100%;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* location */
|
|
90
|
-
.kit-toolbar[breakpoint]kit-toolbar--location-top {
|
|
91
|
-
top: 0px;
|
|
92
|
-
z-index: 1004;
|
|
93
|
-
transform: translateY(0px);
|
|
94
|
-
position: fixed;
|
|
95
|
-
left: 0px;
|
|
96
|
-
width: calc(100% + 0px);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.kit-toolbar[breakpoint]kit-toolbar--location-bottom {
|
|
100
|
-
z-index: 1004;
|
|
101
|
-
transform: translateY(0px);
|
|
102
|
-
position: fixed;
|
|
103
|
-
left: 0px;
|
|
104
|
-
width: calc(100% + 0px);
|
|
105
|
-
bottom: 0px;
|
|
106
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getAssets } from '../../internal/core/actions/assets.svelte.js';
|
|
3
|
-
import type { ToolbarProps } from './types.js';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
children,
|
|
7
|
-
ref = $bindable(),
|
|
8
|
-
is = 'div',
|
|
9
|
-
classContent,
|
|
10
|
-
light,
|
|
11
|
-
dark,
|
|
12
|
-
variant,
|
|
13
|
-
rounded,
|
|
14
|
-
background,
|
|
15
|
-
color,
|
|
16
|
-
density = 'default',
|
|
17
|
-
orientation = 'horizontal',
|
|
18
|
-
location,
|
|
19
|
-
...rest
|
|
20
|
-
}: ToolbarProps = $props();
|
|
21
|
-
|
|
22
|
-
const assets = getAssets();
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<svelte:element
|
|
26
|
-
this={is}
|
|
27
|
-
bind:this={ref}
|
|
28
|
-
{...rest}
|
|
29
|
-
role="toolbar"
|
|
30
|
-
class={[
|
|
31
|
-
'kit-toolbar',
|
|
32
|
-
light && 'light',
|
|
33
|
-
dark && 'dark',
|
|
34
|
-
variant && assets.className('toolbar', 'variant', variant),
|
|
35
|
-
density && assets.className('toolbar', 'density', density),
|
|
36
|
-
orientation && assets.className('toolbar', 'orientation', orientation),
|
|
37
|
-
location && assets.className('toolbar', 'location', location),
|
|
38
|
-
rest.class
|
|
39
|
-
]}
|
|
40
|
-
style:--toolbar-background={assets.color(background)}
|
|
41
|
-
style:--toolbar-color={assets.color(color)}
|
|
42
|
-
style:--toolbar-shape={assets.shape(rounded)}
|
|
43
|
-
>
|
|
44
|
-
<div class={['kit-toolbar--wrapper', classContent]}>
|
|
45
|
-
{@render children?.()}
|
|
46
|
-
</div>
|
|
47
|
-
</svelte:element>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Component } from '../../internal/types/index.js';
|
|
2
|
-
type Variant = 'outline' | 'text' | 'dash';
|
|
3
|
-
type Density = 'compact' | 'comfortable' | 'default';
|
|
4
|
-
type Orientation = 'horizontal' | 'vertical';
|
|
5
|
-
type Location = 'top' | 'bottom';
|
|
6
|
-
export interface ToolbarProps extends Component {
|
|
7
|
-
is?: 'div' | 'header' | 'nav';
|
|
8
|
-
variant?: Variant | {
|
|
9
|
-
[key: string]: Variant;
|
|
10
|
-
};
|
|
11
|
-
rounded?: string;
|
|
12
|
-
density?: Density | {
|
|
13
|
-
[key: string]: Density;
|
|
14
|
-
};
|
|
15
|
-
dark?: boolean;
|
|
16
|
-
light?: boolean;
|
|
17
|
-
color?: string;
|
|
18
|
-
orientation?: Orientation | {
|
|
19
|
-
[key: string]: Orientation;
|
|
20
|
-
};
|
|
21
|
-
background?: string;
|
|
22
|
-
location?: Location | {
|
|
23
|
-
[key: string]: Location;
|
|
24
|
-
};
|
|
25
|
-
classContent?: string | string[] | undefined;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
.kit-tooltip {
|
|
2
|
-
inset: 0px auto auto 0px;
|
|
3
|
-
margin: 0px;
|
|
4
|
-
position: fixed;
|
|
5
|
-
z-index: 2000;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.kit-tooltip-content {
|
|
9
|
-
background-color: var(--tooltip-background, var(--kit-background-grouped-primary));
|
|
10
|
-
color: var(--tooltip-color, var(--kit-label-primary));
|
|
11
|
-
border-radius: var(--tooltip-shape, var(--system-shape-md));
|
|
12
|
-
border: 1px solid var(--tooltip-background, var(--kit-background-grouped-primary));
|
|
13
|
-
font-size: 0.875rem;
|
|
14
|
-
display: inline-block;
|
|
15
|
-
width: auto;
|
|
16
|
-
pointer-events: none;
|
|
17
|
-
overflow-wrap: break-word;
|
|
18
|
-
box-shadow: 0px 16px 29px -10px color-mix(in oklab, var(--kit-state-shadow) 60%, transparent);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/* density */
|
|
22
|
-
.kit-tooltip-content[breakpoint]kit-tooltip-content--density-default {
|
|
23
|
-
padding: 0.15rem 0.625rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.kit-tooltip-content[breakpoint]kit-tooltip-content--density-compact {
|
|
27
|
-
padding: 0.125rem 0.5rem;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.kit-tooltip-content[breakpoint]kit-tooltip-content--density-comfortable {
|
|
31
|
-
padding: 0.35rem 0.75rem;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.kit-tooltip-content--arrow::after {
|
|
35
|
-
content: ' ';
|
|
36
|
-
position: absolute;
|
|
37
|
-
border-style: solid;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.kit-tooltip-content--arrow.kit-tooltip-content--bottom::after,
|
|
41
|
-
.kit-tooltip-content--arrow.kit-tooltip-content--top::after {
|
|
42
|
-
left: 50%;
|
|
43
|
-
margin-left: -0.35rem;
|
|
44
|
-
border-width: 0.35rem;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.kit-tooltip-content--arrow.kit-tooltip-content--bottom::after {
|
|
48
|
-
bottom: 100%;
|
|
49
|
-
border-color: transparent transparent var(--tooltip-background) transparent;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.kit-tooltip-content--arrow.kit-tooltip-content--top::after {
|
|
53
|
-
top: 100%;
|
|
54
|
-
border-color: var(--tooltip-background) transparent transparent transparent;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.kit-tooltip-content--arrow.kit-tooltip-content--left::after,
|
|
58
|
-
.kit-tooltip-content--arrow.kit-tooltip-content--right::after {
|
|
59
|
-
top: 50%;
|
|
60
|
-
margin-top: -0.35rem;
|
|
61
|
-
border-width: 0.35rem;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.kit-tooltip-content--arrow.kit-tooltip-content--right::after {
|
|
65
|
-
right: 100%;
|
|
66
|
-
border-color: transparent var(--tooltip-background) transparent transparent;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.kit-tooltip-content--arrow.kit-tooltip-content--left::after {
|
|
70
|
-
left: 100%;
|
|
71
|
-
border-color: transparent transparent transparent var(--tooltip-background);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.kit-tooltip-content--top,
|
|
75
|
-
.kit-tooltip-content--bottom,
|
|
76
|
-
.kit-tooltip-content--right,
|
|
77
|
-
.kit-tooltip-content--left {
|
|
78
|
-
animation-duration: 150ms;
|
|
79
|
-
animation-name: enter;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.kit-tooltip-content--top {
|
|
83
|
-
--animate-enter-pos1: 0;
|
|
84
|
-
--animate-enter-pos2: 0.5rem;
|
|
85
|
-
--animate-enter-pos3: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.kit-tooltip-content--bottom {
|
|
89
|
-
--animate-enter-pos1: 0;
|
|
90
|
-
--animate-enter-pos2: -0.5rem;
|
|
91
|
-
--animate-enter-pos3: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.kit-tooltip-content--right {
|
|
95
|
-
--animate-enter-pos1: -0.5rem;
|
|
96
|
-
--animate-enter-pos2: 0;
|
|
97
|
-
--animate-enter-pos3: 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.kit-tooltip-content--left {
|
|
101
|
-
--animate-enter-pos1: 0.5rem;
|
|
102
|
-
--animate-enter-pos2: 0;
|
|
103
|
-
--animate-enter-pos3: 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@keyframes enter {
|
|
107
|
-
0% {
|
|
108
|
-
opacity: 0;
|
|
109
|
-
transform: translate3d(
|
|
110
|
-
var(--animate-enter-pos1),
|
|
111
|
-
var(--animate-enter-pos2),
|
|
112
|
-
var(--animate-enter-pos3)
|
|
113
|
-
)
|
|
114
|
-
scale3d(0.95, 0.95, 0.95) rotate(0);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getAssets } from '../../internal/core/actions/assets.svelte.js';
|
|
3
|
-
import { getPositionsTooltip } from '../../internal/core/actions/tooltip.svelte.js';
|
|
4
|
-
import type { PositionElement, TooltipProps } from './types.js';
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
children,
|
|
8
|
-
tooltip,
|
|
9
|
-
open = $bindable(),
|
|
10
|
-
label,
|
|
11
|
-
dark,
|
|
12
|
-
light,
|
|
13
|
-
rounded,
|
|
14
|
-
color,
|
|
15
|
-
background,
|
|
16
|
-
location = 'bottom',
|
|
17
|
-
delayDuration = 850,
|
|
18
|
-
density = 'default',
|
|
19
|
-
variant,
|
|
20
|
-
disabled,
|
|
21
|
-
avoidCollisions = true,
|
|
22
|
-
forceMount,
|
|
23
|
-
...rest
|
|
24
|
-
}: TooltipProps = $props();
|
|
25
|
-
|
|
26
|
-
const positionAxis = getPositionsTooltip();
|
|
27
|
-
const assets = getAssets();
|
|
28
|
-
|
|
29
|
-
let ref: HTMLElement | null = $state(null);
|
|
30
|
-
let refTooltip: HTMLElement | null = $state(null);
|
|
31
|
-
let timer: ReturnType<typeof setTimeout> | null = $state(null);
|
|
32
|
-
let axis: PositionElement = $state({ x: 0, y: 0, location: null });
|
|
33
|
-
let innerHeight = $state(0);
|
|
34
|
-
let innerWidth = $state(0);
|
|
35
|
-
let scrollX = $state(0);
|
|
36
|
-
let scrollY = $state(0);
|
|
37
|
-
|
|
38
|
-
axis = positionAxis?.values;
|
|
39
|
-
|
|
40
|
-
$effect(() => {
|
|
41
|
-
if (
|
|
42
|
-
open &&
|
|
43
|
-
ref &&
|
|
44
|
-
refTooltip &&
|
|
45
|
-
(scrollX > 0 || scrollY > 0 || innerHeight > 0 || innerWidth > 0)
|
|
46
|
-
) {
|
|
47
|
-
positionAxis.update(ref, refTooltip, location, true, avoidCollisions);
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
$effect(() => {
|
|
52
|
-
if (tooltip) forceMount = true;
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
const handleMouse = (state: string) => {
|
|
56
|
-
if (disabled) return (open = false);
|
|
57
|
-
if (state === 'enter') {
|
|
58
|
-
timer = setTimeout(() => {
|
|
59
|
-
open = true;
|
|
60
|
-
}, delayDuration);
|
|
61
|
-
} else if (state === 'leave') {
|
|
62
|
-
if (timer) {
|
|
63
|
-
clearTimeout(timer);
|
|
64
|
-
timer = null;
|
|
65
|
-
}
|
|
66
|
-
open = false;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
</script>
|
|
70
|
-
|
|
71
|
-
<svelte:window bind:innerHeight bind:innerWidth bind:scrollX bind:scrollY />
|
|
72
|
-
|
|
73
|
-
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
74
|
-
<span
|
|
75
|
-
bind:this={ref}
|
|
76
|
-
onmouseenter={() => handleMouse('enter')}
|
|
77
|
-
onmouseleave={() => handleMouse('leave')}
|
|
78
|
-
style:display="inline-flex"
|
|
79
|
-
>
|
|
80
|
-
{@render children?.()}
|
|
81
|
-
</span>
|
|
82
|
-
|
|
83
|
-
{#if open || forceMount}
|
|
84
|
-
<div
|
|
85
|
-
bind:this={refTooltip}
|
|
86
|
-
class={['kit-tooltip']}
|
|
87
|
-
role="tooltip"
|
|
88
|
-
aria-label={label}
|
|
89
|
-
style={`transform: translate(${axis.x}px, ${axis.y}px);display: ${open ? 'initial' : 'none'}`}
|
|
90
|
-
>
|
|
91
|
-
<div
|
|
92
|
-
class={[
|
|
93
|
-
'kit-tooltip-content animate-in',
|
|
94
|
-
light && 'light',
|
|
95
|
-
dark && 'dark',
|
|
96
|
-
rounded && assets.shape(rounded),
|
|
97
|
-
axis?.location && `kit-tooltip-content--${axis?.location}`,
|
|
98
|
-
variant && `kit-tooltip-content--${variant}`,
|
|
99
|
-
density && assets.className('tooltip-content', 'density', density),
|
|
100
|
-
rest.class
|
|
101
|
-
]}
|
|
102
|
-
style:--tooltip-background={assets.color(background)}
|
|
103
|
-
style:--tooltip-color={assets.color(color)}
|
|
104
|
-
style:--tooltip-shape={assets.shape(rounded)}
|
|
105
|
-
>
|
|
106
|
-
{#if tooltip}
|
|
107
|
-
{@render tooltip?.()}
|
|
108
|
-
{:else}
|
|
109
|
-
{label}
|
|
110
|
-
{/if}
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
{/if}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Component } from '../../../internal/types/index.js';
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
export interface TooltipProps extends Component {
|
|
4
|
-
open?: boolean;
|
|
5
|
-
dark?: boolean;
|
|
6
|
-
light?: boolean;
|
|
7
|
-
rounded?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
location?: 'top' | 'bottom' | 'left' | 'right';
|
|
10
|
-
color?: string;
|
|
11
|
-
background?: string;
|
|
12
|
-
delayDuration?: number;
|
|
13
|
-
variant?: 'arrow';
|
|
14
|
-
density?: 'compact' | 'comfortable' | 'default';
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
avoidCollisions?: boolean;
|
|
17
|
-
tooltip?: Snippet;
|
|
18
|
-
}
|
|
19
|
-
export type PositionElement = {
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
location: string | null;
|
|
23
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/@legacy/index.d.ts
DELETED